Archive for the ‘Uncategorized’ Category

Defaults – a convenience or a time bomb?

All programmers at all languages are familiar with the concept of default values. Many languages allow default parameter values when calling a functions, some provide a function overloading mechanism which is an expansion of this idea. For example in python you can have named parameters with default values: def multiply(v, mult=2.0) return v * mult [...]

Yet another visual diff for git

I’m relatively new to git and I’m already in love with it, but there was one thing that bugged me and I couldn’t get a good answer anywhere else, so I wrote my own thing, posting it so maybe you can find it helpful. The problem: Use a visual diff tool for git; and view [...]

Flash and encryption? No way dude!

I was asked by a fellow worker whether flash can be? Short answer: no. Long answer below. But why would you even want to encrypt flash? I asked. He told me about a product he’s working on, some kind of hook for online games which identifies cheaters and bots as they play in real-time  by [...]

Required: CSS islands

Hey CSS guys, how about a CSS island tag?! This is what I’m talking about: <html> <style> h1 { font-size: bigger; } </style> <body> lots of html code…. <cssisland resets=”h1;h2;div.img;#id”> <style> h1 { font-size: smaller; } </style> here all page css code is preserved except for h1, h2, div.img and #id h1 has a smaller [...]

Widgets – iframe vs. inline

When writing a widget, should you use an iFrame or make the widget inline? Widgets are small web applications that can easily be added to any web page. They are sometimes called Gadgets and are vastly used in growing number of web pages, blogs, social sites, personalized home pages such as iGoogle, my Yahoo, netvibes [...]

Sometimes look on the bright side of life

I’m a big fan of Jeff Atwood, author of coding-horror and, co-author of the stack-overflow podcast so when I started this new blog I thought wouldn’t it be cool if I found a cool domain name a-la coding-horror or stack-overflow or such? But then I realized that all those names have negative connotations: stack-overflow (see [...]

The hitchhikers guide to bookmarklet authoring

I’ve written several bookmarklets lately so I wanted to write a tutorial/Q&A to help newbees and share what I’ve learned. Please leave comments if you have questions or you think I got something wrong and good luck with your first bookmarklet. What are bookmarklets?, Bookmarklets are small plugins/extensions to your browser. They are called that [...]

Hello Pretty World

As professional programmers you’re familiar with the term Pretty-print. Getting a cool domain name isn’t easy these days, so after weeks in search I was happy to finally get PrettyPrint.me how cool is that? Code aesthetics and readability is just one of the things I care about the most when writing code.I’m a professional software developer with [...]