archive-org.com » ORG » I » INCISE.ORG

Total: 182

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • urllib3 testrun
    google domain In the first sequential benchmark httplib2 and urllib3 are pretty even Sometimes one is faster sometimes the other is It s a wash This makes sense because they both have persistent connections In the second sequential benchmark httplib2 is always much faster due to it pulling everything from its on disk cache In the last benchmark urllib3 tends to execute in 1 3 to 1 2 the time it would sequentially by using a thread pool and a connection pool each with a size of 4 There is no comparison with httplib2 here because httplib2 currently is not thread safe Conclusions urllib3 is no faster than httplib2 if used in a sychronous sequential manner even if fetching from the same domain over and over httplib2 is incredibly faster than urllib3 if you are fetching the same content over and over and can take advantage of caching urllib3 is much faster than httplib2 if you run multiple threads which httplib2 is currently not capable of This is urllib3 s killer feature The speed benefits from caching vs multi threaded downloading may be hard to accurately predict and it s not trivial to swap out one library for the other

    Original URL path: http://incise.org/urllib3-testrun.html (2016-04-30)
    Open archived version from archive

  • torrentfinder
    feed it a list of search phrases and it outputs a single HTML file that contains the top matches for each search phrase ranked by number of seeders View the README and download or fork the code from Github Here

    Original URL path: http://incise.org/torrentfinder.html (2016-04-30)
    Open archived version from archive

  • syncing non-networked computers with rdiffdir
    I would like all of those changes to be easily transferred to work The solution I ve found is rdiffdir which is part of duplicity The man page describes how to use it pretty well if a bit tersely rdiffdir options sig nature basis dir signature file rdiffdir options delta signature file new dir delta file rdiffdir options patch basis dir delta file So to copy my music collection changes from home to work I would do the following 1 Create a signature of the out of date directory at work This generates a fairly large file about 200MB for my music collection and not really compressible at all but it s still much smaller than the actual directory contents work rdiffdir signature Music music sig 2 Bring the signature file home on a flash drive and run the delta command This will compare the signature with the contents of the up to date directory and put all of the required changes into a delta file which will be quite large home rdiffdir delta music sig Music music delta 3 Put the delta file onto the flash drive and take it back to work If it s too large you

    Original URL path: http://incise.org/syncing-non-networked-computers-with-rdiffdir.html (2016-04-30)
    Open archived version from archive

  • transcoding music
    noconsolecontrols ao pcm file tmp pipe whatever m4a lame preset standard tmp pipe whatever mp3 rm f tmp pipe Substitute your preferred lame flags To do all files in a directory recursively mkfifo tmp pipe find name m4a while read filename do mp3 filename basename filename m4a mp3 mplayer noconsolecontrols ao pcm file tmp pipe filename lame preset standard tmp pipe mp3 filename done rm f tmp pipe Add maxdepth

    Original URL path: http://incise.org/transcoding-music.html (2016-04-30)
    Open archived version from archive

  • amp6
    org 6 00 1 spdt rocker switch web tronics 1 29 2 8012 dpdt on off on toggle switch web tronics 1 34 2 shipping handling web tronics 11 65 1 total 107 84 Plus maybe 10 20 for a chassis of some sort I m not sure if I ll reuse something weird like a metal lunchbox or get one of the cheap enclosures from web tronics like this one concerns about specific parts source selector switch es Rotary switches seem to be more expensive than toggles for the same amount of switching I don t have much personal preference so toggles it is Most switches have copper contacts the parts inside which actually touch each other when switched which are fine for most purposes but can cause sound degradation if used with audio especially line level which is relatively weak Gold plated contacts avoid this problem by the fact that gold doesn t oxidize but gold contacts are usually plated over nickel which is a comparatively poor conductor although the real world significance of this is questionable Nickel is looked down upon by audiophiles which is of dubious validity but we can mostly ignore the issue because switches with silver contacts seem to be more common anyway and maybe cheaper Silver contacts do oxidize but the layer of silver oxide is very thin and the action of switching will generally wipe it away not to mention the fact that silver oxide is conductive anyway while copper oxide is a semiconductor and apparently acts as an insulator in this circumstance If you only had two inputs an on on DPDT would be appropriate but I want four inputs so I ll use two DPDT on off on switches with one switching between source 1 2 and the other switching

    Original URL path: http://incise.org/amp6.html (2016-04-30)
    Open archived version from archive

  • postgres array stuff
    as select 1 i from generate series 1 array upper 1 1 as i language sql immutable Using this the original query would become insert into foo select from explode array myarray Matching existing records to an array of possible matches Just use IN update foo set a true where b in myarray Array building aggregate function Also in the link mentioned above is a reference to the array accum

    Original URL path: http://incise.org/postgres-array-stuff.html (2016-04-30)
    Open archived version from archive

  • a hack to prevent flash from raising firefox windows to the top
    I thought of an idea with library preloading and gave it a whirl and it worked Download http incise org files dev interceptor c Usage gcc interceptor c o interceptor so shared lX11 ldl rdynamic LD PRELOAD interceptor so export LD PRELOAD firefox look at messages if you want to exit Packages needed Ubuntu libx11 dev gcc libc dev Other distros BSDs you basically need gcc and whatever packages will give you the files Xlib h and dlfcn h The basic idea of how it works is that in X11 windows raise themselves by calling XRaiseWindow We can intercept these calls and conditionally drop them causing the window to stay right where it is There are some imperfect heuristics involved which you may need to alter It looks for a window with WM CLASS of Gecko Firefox bin so if you are using Mozilla or any other Gecko browser besides Firefox then it will be different To check run xprop grep WM CLASS and click the cross cursor on your browser window This is what you will need to change it to It also only blocks XRaiseWindow requests from windows that are more than 400 pixels wide and tall This

    Original URL path: http://incise.org/flash-making-firefox-raise-itself.html (2016-04-30)
    Open archived version from archive

  • thoughts while learning erlang
    is 104 101 108 108 111 y gives you the ordinal value of the letter y I guess that s kinda fun I m starting to get feelings about Erlang similar to C it s somewhat perverse but in a way I can appreciate boilerplate stuff filename foo erl needs module foo at the top of it which is annoyingly redundant although i wonder what happens when the two differ could this be useful somehow nope otherwise it will break code loading well that s pointless The export list which says which functions in a module get publicly exported is redundant I feel like I m writing C header files again that s hyperbole somewhat function name overloading Looking for the same function name but with a different number of arguments seems a little annoying It would be a little more obvious to just give them different names This may just be a deficiency in the coding style of the tutorial I am reading arbitrary base integers not really very useful for me but i always thought it was a cool idea when i heard of it in smalltalk i think base value where base is 2 36 speaking of

    Original URL path: http://incise.org/thoughts-while-learning-erlang.html (2016-04-30)
    Open archived version from archive



  •