blog’s amazing Rotating Header Image

Posts under ‘web development’

A desktop application with Adobe AIR for scanning documents on Mac OS X

Even though we’re specialized in web development, we like new challenges.
One of our client asked if we could build a desktop application for sales agents. Agents need to scan images, also add several information using a form and submit the data when Internet connection is available. Even though it sounds easy, it can be a [...]

Ask git to check if your code is error free!

How about syntax checking your work before issuing a commit? I’m sure you know how it feels when those tiny last minute changes – hey it needs no testing! – just break your app after deployment.
If git is your version control system of choice, make sure you don’t miss the pre-commit hook feature, which was [...]

HipHop for PHP – the buzz summary you should really read

HipHop for PHP from Facebook hit the streets several days ago resulting in dozens of posts about the technology. Let’s see what the PHP community says:

Marco Tabini enlists the HipHop features and encourages using it
the echolibre blog talks about possible security/buffer overflow implications, and mentions similar available solutions
Ilia Alshanetsky provides an excellent and thorough overview: [...]

Google Closure: How not to write JavaScript

Dmitry Baranovskiy, the creator of the Raphaël and gRaphaël JavaScript libraries has serious criticism against the Google Closure JS library.
According to Dmitry:

“It’s a JavaScript library written by Java developers who clearly don’t get JavaScript.”
poorly optimized loops and unoptimized switch statements
memory caching with unlimited size: “I’m not sure what this pattern is called in Java, but [...]

Active Desktop replacement with Adobe AIR

Interested in simulating XP’s Active Desktop without Active Desktop? We’ve had taken the challenge!
Why?
One of our clients wanted a central web application running on the desktop which provides nearly realtime business information for more than a hundred users in a company. After some discussion with the company’s IT staff we’ve chosen Active Desktop as all [...]

Five Tips To Make Good Object-Oriented Code Better – Brandon Savage

Brandon Savage has some great tips regarding coding OOP:

“Use Objects. Lots of Objects”
“Use Interfaces To Make APIs Predictable”
Use Dependency Injection”
“Composition Over Inheritance”
“Create Loosely Coupled Classes”

As you can see it’s absolutely not rocket science nor these are new invetions: these rules simply help to avoid typical OOP pitfalls and keep your applications well structured.

Google releases Closure, the tools behind the JS geniuses

Google released Closure, the library and toolset that powers Docs and other Google products.
Closure includes:

Closure Compiler – removes dead code and rewrites and minimizes what’s left, checks syntax, variable references and types, and warns about common JavaScript pitfalls.
Closure Library – a JS library with widgets, controls, lower-level utilities for DOM manipulation, server communication, animation, data [...]

“Micro” Optimizations That Matter

Brandon Savage compiled a good summary of application performance tips. Definitely not the difference between using single and double quotes in your code: these are easy to implement and effective (=”micro”) methods to improve responsiveness of your code, like:

Caching
Eliminate Any Sort Of Logged Errors
Enable Output Buffering For Everything
Make Use Of A Content-Delivery Network
Determine What Data [...]

Watch out for your CRON jobs

Running CRON jobs is not an easy task if you want to do it perfectly: fortunately we’re doing it similarly as it’s recommended by the Percona guys:
- prevent running multiple copies using file locks
- watch for errors
- store historical run times (use logging)
Further details and code sample in Watch out for your CRON jobs at [...]

PHP memory_limit calculator for image resizing

Do you have some image resizing PHP code out in the wild? You’d better prepare yourself: your code may break anytime if you don’t pay attention to the memory limit settings of PHP. (God, it could already did!)
Take care of the plenty megapixel images and avoid trouble now!
How many memory do you really need? Find [...]