Skip to main content

Hacking new technology

Our team always used to hit the edge cases quickly... Some technologies might be there for years, but when we start hacking, we'll immediately come across a situation that might faced only by veterans. Our experience with Delphi (one of the coolest technologies), ASP.NET MVC, MonoRail/ASP.NET, iPhone/Android programming proved that. This time, with another new technology... fingers crossed...

Comments

Popular posts from this blog

Attraction, Status, and the Curious Pattern Behind Some Marriages

There has been a lot of discussion lately about celebrity divorces. As someone who closely observes human behavior, I have been thinking about a possible pattern behind some relationships. Before explaining my thought, I should mention something about my own background. From childhood, I was never particularly drawn to the idea of physical beauty. In fact, I even had a somewhat negative view of it. This may have come from the value systems around me while growing up. I also remember a religious gathering where someone said that a woman's beauty reflects her inner mind. Even at that time, I instinctively rejected that idea. Over the years, however, I have started noticing certain patterns in couples. When couples walk closely together, sit near each other, and interact affectionately in public, there often seems to be an interesting dynamic. In many such cases, the woman appears more attractive than the man. Sometimes she also seems more powerful in...

3-years of Ubuntu MATE - Good and the bad

Many people are getting shocked to know that I'm using Ubuntu in my workplace. Linux/Ubuntu is more of an alien here as Windows 10 and Mac OSX is having good market here. First of all, I'm a very happy Windows XP user. In XP, I used to do most of my JavaScript and PHP in  Devl , the editor that our team has developed. Reason for switching to Ubuntu MATE Primary reason for switching to Ubuntu was, at one point of time PHP team stopped supporting Windows XP . So, we're left with few options: 1. Upgrade to Windows Vista, 2. Switch to Ubuntu. We chose the second option to experiment it. One of the major challenges was choosing the right code editor and we chose VS Code . Ubuntu MATE - Pros Linux comes with lots of command line tools. I have started to do many tasks using these shell scripts and found very productive. We switched from Google Chrome to Chromium for good. Ubuntu MATE - Cons We started with GNOME for desktop, but it was memory hungry and was not ...

Converting PSD with PHP/ImageMagick

After seeing feature rich options in Imagick PECL extension at Mikko Koppanen 's (the author) website and also impressed with ImageMagick 's features, I have decided to use it for the PSD to XHTML conversion website that I'm architecting and managing. Since, the team wants programming help for converting PSD images, I have tried it (documentation is sparse on PSD handling) Converting PSD to PNG/JPEG/etc Note that, flattenImages() is needed for layered/multi-page PSD file. <?php $im = new Imagick('test.psd'); $im->flattenImages(); $im->setImageFormat('png'); $im->writeImage('test.png'); ?> Extracting PSD layers One by one <?php $im = new Imagick('test.psd'); $im->setImageFormat('png'); for ($i = 0, $num_layers = $im->getNumberImages(); $i $im->setImageIndex($i); $im->writeImage('layer' . $i . '.png'); } ?> Note that, there is a better version below In a single call with writeIm...