Facing new challenges everyday

PostgreSQL, idle connections and firewalls

July 9th, 2011

I recently had a problem where an entire website goes down from nothing, I checked the Apache logs, the application server logs and no big exceptions has been found.

After check the postgres database logs and few hours of searches on the web I finally could think in a small possibility, the firewall closing idle connections opened by application servers, so I decided to set the tcpKeepAlive property on JDBC connection, after that the issue seens to be gone.

I hope this post may be useful for someone

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Unrar4iOS – A port of unrar to iOS platform

November 15th, 2010

Recently I started a project which must understand the CBR format, for those that doesn’t know, CBR is a comics file format, which consists of several image files archived in RAR archive format.

In order to be able to read CBR archive contents and uncompress them I need to port unrar library to iOS, after some quick research I found an existing work done in this way, it’s pretty old, but gave me some insight about how to start.
(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Getting started with Powershell

September 4th, 2010

Powershell is an awesome scripting language for Windows machines, last Sunday I wrote a small script to gather computer monitor info stored on windows registry, this is one of the possibilities behind the power of powershell, you can do much more than it.

Here’s a sample script:

1
2
3
4
5
6
7
8
[CmdletBinding(DefaultParameterSetName="Name")]
param (
    [Parameter(Mandatory = $TRUE, ParameterSetName="Name", HelpMessage="Your name")]
    [String]
    $Name
)

write-output "Hello $Name"

(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Data driven application with GTK+ and APR DBD routines

June 19th, 2010

I have been trying to find a reason to study c programming for a long time, now I found a reason to do it, I wrote a very small application that uses APR and GTK+ where I can manager costumers and suppliers contact info.

Before start coding you must pay attention to the following requirements:

  • Apache APR
  • GTK+
  • pkg-config

All the requirements above can be easily installed in your system by using the linux distribution package management system, you can also visit their respective sites to download the sources, compile them and install the binaries. The Apache APR sources can be found at apr.apache.org and GTK+ sources at gtk.org
(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Adding Mask to UITextField

February 19th, 2010

Cocoa Touch is an awesome API, it contains a large set o frameworks that can be used to create fantastic applications for iPhone, iPod Touch and iPad, but if we compare Cocoa Touch with Cocoa API for MacOSX we won’t find some cool features like masking on input controls.
(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare
« Previous PageNext Page »

Visitors Around the World

Polls

How Is My Site?

View Results

Loading ... Loading ...

Categories

Meta

Links

hosted by easy2use.net