Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
All Aboard the SP&S 700 - http://www.sps700.org/
"Your bike looks like a spider web"
DB Cooper stuck it to the man and got away with it, but don't try and candy over his story, he used violence against bystanders. #ip7
Can hear the drum corps from across the river.
A Curious Course on Coroutines and Concurrency - http://www.dabeaz.com/corouti...
Portland Twitter Trends | Happn.in - http://happn.in/pdx
Answer by Karl Anderson for Generally a Good Idea to Always Hash Unique Identifiers in URL? - http://stackoverflow.com/questio...
Hashing or randomizing identifiers or other URL components can be a good practice when you don't want your URLs to be traversable. This is not security, but it will discourage the use (or abuse) of your server resources by crawlers, and can help you to identify when it does happen. In general, you don't want to expose application state, such as which IDs will be allocated in the future, since it may allow an attacker to use a prediction in ways that you didn't forsee. For example, BIND's sequential transaction IDs were a security flaw. If you do want to encourage crawling or other traversal, a more rigorous way would be to provide links, rather than by providing an implementation detail which may change in the future. Using sequential integers as IDs can make many things cheaper on your end, and might be a resonable tradeoff to make. - Karl Anderson
"We'll wash our pants when we get home" - truck driver.
Mapping Weird Portland - Google Maps - http://maps.google.com/maps...
Was going to say that I learned that steam locomotives have Jesus bolts too, but apparently those aren't what I think they are.
Answer by Karl Anderson for Python Twisted and database connections - http://stackoverflow.com/questio...
Within Twisted, you basically want a wrapper around a function which returns a Deferred, such as the Twisted DB layer. However, you can't busy-wait, since that's using up your reactor cycles, and checking for a task to complete using the Twisted non-blocking wait is probably inefficient. Will inlineCallbacks or deferredGenerator solve your problem? They require a modern Twisted. See the twistedmatrix docs. def thingummy(): thing = yield makeSomeRequestResultingInDeferred() print thing #the result! hoorj! thingummy = inlineCallbacks(thingummy) Another option would be to have two methods which execute the same SQL template, one which uses runInteraction, which blocks, and one which uses runQuery, which returns a Deferred, but that would involve more code paths which do the same thing. - Karl Anderson
Colin Meagher :: In Motion Photography - http://www.inmotionphoto.com/vision...
Miller - Resources - Improving Your Skills - http://www.millerwelds.com/resourc...
Instant Action is hiring a Python developer.
Answer by Karl Anderson for Generating Separate Output files in Hadoop Streaming - http://stackoverflow.com/questio...
Just write to the file. You have a Python interpreter. - Karl Anderson
Mac OS X (Tiger and Leopard) Configuration Tips - http://web.ipac.caltech.edu/staff...
various config including x11 - Karl Anderson
Index of /xquartz/downloads - http://static.macosforge.org/xquartz...
includes x11 locales, which enables more prefs - Karl Anderson
Homebrew Wii hackers - let me know if you're looking for a contract gig.
Guard Dog Moly Lubricants - Motorcycle Products - http://guarddogmolylubricants.com/prod-mo...
Other ways to read this feed:Feed readerFacebook