Skip to main content

Posts

Showing posts from May 16, 2012

Deploying / Continuous integration of a Symfony 2 application with Jenkins/Hudson

I've developed an application which uses the Symfony 2 framework. The application code resides in a Bundle, and on my local machine I just downloaded the Symfony2 Standard Distribution and added the Bundle to the src folder as the tutorials describe, before editing the config / routing files appropriately. That's served me well from a development perspective.

php offline documentation

I was looking for PHP offline documentation for Mac OSX, i came across the official offline PHP documentation and the one called PHPfi , however it seems PHPfi uses the same php offline documentation data, the problem is i am not able to find many functions with the official documentation for example, i was searching for PDO syntaxes with MySQL Support which is not at all included in the package. as i travel frequently i am out of internet many a times and sometimes i feel helpless without the documentation. i would like to know if there is some kind of applications for OSX which is upto date with user comments as in php.net?

Java efficiency

I'm playing with some piece of code calculating the time needed to compute some Java code to get a feeling of the efficiency or inefficiency of some of Java's functionality. Doing so I'm stuck now with some really strange effect I just can't explain myself. Maybe someone of you can help me understand it.

Memory consumption issues of a Java program

I have a Java program that runs on my Ubuntu 10.04 machine and, without any user interaction, repeatedly queries a MySQL database and then constructs img- and txt-files according to the data read from the DB. It makes tens of thousands of queries and creates tens of thousands of files.

Do I really need a service layer?

My web application is written using Spring MVC + Hibernate. My model is "Customer" entity POJO. I have got a DAO object "CustomerDAO", its method "saveCustomer(c)" contains the code interacting with Hibernate; Then I created a " CustomerService with a "saveCustomer(c)" method who simply pass the customer object to the dao for saving; Finally there are "CustomerController" and customer.jsp, who are responsible for the view layer, the jsp's form fields are bound to a Customer object on the controller side. The controller calls the service.

Java native launcher performance

I have a program written in Java and a native launcher written in C++, based on a sample at http://www.codeproject.com/Articles/17352/JVM-Launcher . A strange thing is that running my program with my native launcher take more CPU than using java.exe (~5% vs 15-20%). I have been giving this situation some thought but it still doesn't make much sense. I've tried increasing the JVM heap size, (re)built the native launcher in release mode, used different JRE version(1.6_24, 1.6_31, 1.7_03) but no luck.

Use system PIN dialog in Android application

Background I am trying to write an application which works like described below.

How much to grow buffer in a StringBuilder-like C module?

In C, I'm working on a "class" that manages a byte buffer, allowing arbitrary data to be appended to the end. I'm now looking into automatic resizing as the underlying array fills up using calls to realloc . This should make sense to anyone who's ever used Java or C# StringBuilder . I understand how to go about the resizing. But does anyone have any suggestions, with rationale provided, on how much to grow the buffer with each resize?