August 2007
68 posts
Co różni stronę internetową od papierowego dziennika? W świetle prawa - nic....
– “Rz”: wyrok SN utrudni życie Internautom
You Are a Planeswalker →
Composite Primary Keys →
This free software is an extension to the database layer of Rails â ActiveRecords â to support composite primary keys as transparently as possible.
Aplikacja webowa - wybór technologii →
doctest-mode →
doctest-mode is an Emacs major mode for editing text files that contain Python doctest examples.
The Shrinking Python Web Framework World →
Doctest for Ruby →
Google Summer of Code 2007: PyBlosxom ... finale →
A disappointing SoC experience →
High Performance Ruby MVC: Merb →
The Rails Way: Testing the Right Stuff →
Rewriting Software →
Userzy fotka.pl na temat jabbera ... →
DictMixin →
Anarchizm według Chomsky'ego →
Universal Floating Point Errors →
Does Syntax Matter? →
A bright future: security and modern type systems →
Haskell: more than just hype? →
2 tags
Calculate size of a project with Ruby
ruby -e ‘print %w{css sh py html}.inject(0){|s,e| s+=Dir[“**/*.#{e}”].inject(0){|s,f| s+=File.read(f).split(“\n”).size}}, ” lines of code\n”’
Debugging in Python →
Of Microformats and the Semantic Web →
Data normalization, is it really that good? →
1 tag
Finished reading Producing Open Source Software. Thanks to Karl and Google.
She says, "I pray Although they fall on deaf ears, Am I supposed to take it on myself? To get out of this place"
An Approach to Composing Domain-Specific Languages... →
How well do you know prototype →
Exploring DreamHost's Promo/Discount Code →
The Most Excellent and Lamentable Tragedy of... →
2 tags
Somehow pyvix.vix.VM.copyFileFromGuestToHost terminates the interpreter if the source file on guest machine doesn’t exist. It doesn’t leave a core or a stack trace and simply leaves without reason. Strange.
As it turned out, building a big computer is a good excuse to talk to people...
– Richard Feynman and The Connection Machine
What the hell are Monads? →
Continuing Sudoku →
Sudoku solver via constraint programming
1 tag
with_delay implementation in Ruby
It turns out with_delay I mentioned earlier can be implemented in Ruby, using set_trace_func.
class LineTracer def self.enable(proc) set_trace_func lambda { |event, file, line, id, binding, classname| if event == “line” if @last_line.nil? @last_line = line elsif line == @last_line.succ proc.call @last_line = line end...
1 tag
Partial solution for cleanup&return problem
I couldn’t solve cleanup&return problem in Python. Now, there seems to be a solution by using exceptions and with statement (thus Python 2.5 only):
from __future__ import with_statement def cleanup_on_return(cleanup_func): class ReturnNow(Exception): pass def raise_return_now(): raise ReturnNow class CleanupClass(object): def __enter__(self):...
Compile-Time Metaprogramming →
1 tag
Software documentation observation #2
Writing documentation is really a wonderful way to find bugs.
Because you’re going to explain things you have to get a good understanding of the system inner workings, and that will often reveal hidden problems.
Drawn into Python vs. Ruby argument →
browser.chrome.load_toolbar_icons →
To enable favicons for bookmarks in Firefox/SeaMonkey.
2 tags
I really need code generation
Another place were I’d like to have macros. A macro like this:
with_delay(5): first_command() second_command() third_command()
would generate:
first_command() delay(5) second_command() delay(5) third_command()
Dynamic Help in Web Forms →
I had enough Firefox instability. Switched to SeaMonkey.
1 tag
Z-index only works on elements that have been positioned (eg ...
– W3schools
The Computer Revolution hasn’t happen yet
200 minutes well spent
A Taste of Haskell, part I and part II