Static images have correct headers – Apache sends them by default. Different story is with all dynamic generating content – if you don’t send correct headers user’s browser will load it every time. It’s not always good, because generated thumbnails doesn’t change every time and should be cached in browser’s cache. If you want to [...]

Sssssssscripting blog yesterday wrote about writing your own web crawler (in Ruby) and I immediately remember that I have done similar projects in past. Only difference is, I had developed web scrappers which were used to monitor e-commerce websites market. Believe me, when you run online shop, having ability to look at rivals prices in [...]

NetBeans 7.0 hands-on experience

February 13th, 2009

NetBeans 7.0 Milestone 1 was released about two months ago, and final version should reach us (maybe) April or May. Because with previous, 6.5, version I had some problems, I decided to try new version. Compared to NetBeans 6.5 (version 20081110) I find some differences, which today I’m going to show you.
To start with, 7th [...]

As searchengineland.com reports, today Google, Microsoft and Yahoo agreed on new meta tag – canonical tag.
Canonical tag is the easiest way so far to remove duplicated content which is not duplicated at all. For example, image that I have a page accessible through „http://dev.juokaz.com/page/hello.php” URL. All links below will point to same page and, if [...]

Parallel processes in PHP

February 12th, 2009

When I was coding Ray-Tracer project for my Computer Science studies in university, I ran into using Haskell parallel map function (map calls function for all list elements). Ray-Tracer runs reflections, shadows, ray-casts, etc. detection for every single pixel in scene and since everything is mathematical calculations, it’s paralleling is almost trivial.
Parallel map functions does [...]

More than a year ago I’ve read very interesting article in Lamneth blog about MySQL Sudoku solver. I’ve searched for some time, but information was very minimal and I couldn’t find a way to contact original author. So I decided to try it myself and easily found working solution.
Beauty of solving Sudoku puzzle in MySQL [...]

Spam-safe email links

February 10th, 2009

There are thousands of ways to protect your email from being read by a spam bot. Complex ones uses images or Flash to display email as graphics, other uses JavaScript to dynamically create email anchors. I always try to use simple and still powerful methods, which both work as expected and are easy to implement, [...]

Versioning is essential for source code control and there is fabulous amount of possible benefits. One of the possibilities is to let your source code know and make decisions using it’s version (revision) number.
For example, if you change your CSS code, you want users to get it immediately and not after their browser cached version [...]

I find more more articles about NetBeans 6.5 IDE for PHP, for example this Mike’s article. Why people like it so much? After some weeks spent reading all these articles, I finally decided to throw away all other editors and try new-and-shiny NetBeans.
Initial configuration (keyboard shortcuts, SVN config, project setup, etc.) took only 5 min [...]

In some situations, you need Checkbox and Radio elements functionality merged together. For example, imagine available discounts list where user can pick only one, but can pick none, because maybe he wants to use it later (lets say discounts are one-time). How would you do it in HTML?
Yesterday I was working with same problem and [...]