82 karma · joined Sep 6, 2007 (19y ago) · 29 submissions
comment 18y ago · link · parent
I disagree that the Python documentation is poor or out-dated. However, it is fragmented in what could be considered a confusing manner. I’ve often been searching for a particular piece of documentation, wondering if I should be looking in the tutorial, the library reference, or the language reference.
comment 18y ago · link · parent
post = {'name': 'ijoshua', 'email': 'spam@example.com', 'extra': 'data'}
filter = ['name', 'email']
for k in filter: locals()[k] = post[k]
print name, emailcomment 18y ago · link · parent
comment 18y ago · link · parent
I did not realize this was an argument. I guess I lost.
Seriously, though, the most interesting arguments don't resolve for quite some time, if ever. For example, who was the winner in the infamous Torvalds v. Tanenbaum argument over monolithic versus micro-kernels? One could say that Torvalds "won," in the sense that Linux became far more successful than Minix. Yet, Windows and Mac OS are both based, in part, on a micro-kernel architecture, and both have a greater share of the market than Linux.
comment 19y ago · link · parent
comment 19y ago · link · parent
http://{domain}/feeds/people/{user-id}
Notice that "domain" is a variable. In any case, why would you worry about Google being able to store data that is publicly accessible through a standardized API?
comment 19y ago · link · parent
I wouldn't say the deficiency is _inherent_, but the powerful indexing ability of a relational DB that we take for granted seems to be necessarily _ad hoc_ in an object-oriented DB. From my understanding, the index in an OODB is just another object in the database, which may be a B-tree, a hash table, or a simple sequential list. So far, that's fairly similar to the RDB. However, the indices in the RDB are closely coupled to the table that stores the records. The RDB "knows" that it should update the index when the table is modified. On the other hand, there isn't a table of records in the OODB, so there isn't a close coupling of the index to the data store. It may be entirely up to the application to manage the integrity of the index.
comment 19y ago · link · parent
comment 19y ago · link · parent
http://www.zeldman.com/2007/06/20/remove-maybe-from-invitati...
comment 19y ago · link · parent
[Edit: it seems that I cannot type Unicode characters into a comment here...]
28.
Password Security: A Case History(wolfram.schneider.org ↗)
1 points · by ijoshua · 19y ago · discuss
comment 19y ago · link · parent
I've used this technique to store sensitive personal data which must be recoverable (i.e. credit card numbers.) When a new number is obtained, a few bytes of salt are randomly generated. The data, plus the salt, are passed to a symetric cipher, and the ciphertext and salt are stored in a database.
[edit: there's some discussion of this in the article comments.]