We’re currently on a project where we had to integrate Twilio. One of the services Twilio provides is a way for clients to call a phone number that reroutes back to your web application for further instructions. When I first got started, the first challenge was figuring out how to develop with Twilio and get [...]
Author Archives: pablokang
iPad custom fonts
Wish I had found this doc earlier for a project I just completed. So custom fonts can be embedded in iOS 3.2 as described in What’s New in iOS: iOS 3.2: Custom Font Support Applications that want to use custom fonts can now include those fonts in their application bundle and register those fonts with [...]
sysctl
Occasionally my shared memory segment settings in my /etc/rc file aren’t applied correctly during startup and I get the following error when I try to start Postgres:
1 2 3 4 |
FATAL: could not create shared memory segment: Cannot allocate memory
DETAIL: Failed system call was shmget(key=5432001, size=33554432, 03600).
HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory or swap space. To reduce the request size (currently 33554432 bytes), reduce PostgreSQL's shared_buffers parameter (currently 3584) and/or its max_connections parameter (currently 103).
The PostgreSQL documentation contains more information about shared memory configuration. |
I would expect my shared memory size to be 167772160 instead of 33554432 since my /etc/rc file looks like this:
1 2 3 4 5 |
sysctl -w kern.sysv.shmmax=167772160
sysctl -w kern.sysv.shmmin=1
sysctl -w kern.sysv.shmmni=32
sysctl -w kern.sysv.shmseg=8
sysctl -w kern.sysv.shmall=65536 |
Restarting my machine helps, but doing that [...]
jQTouch slide transition fix for Android 2.0
A client of Blazing Cloud recently wanted to support animated screen transitions in their mobile platform and came to us for help. We decided to integrate the latest jQTouch (version 1, beta 2) into their framework since we had heard good things about it. Unfortunately, many animated transitions in Android don’t work very well. Worst [...]
Our First Chef Cookbook
We recently deployed an Amazon EC2 instance and I was tasked with installing and configuring Red5 and Openfire on the system. As I often do, I took careful notes of what I did on a wiki, which is useful to have in case another instance needs to be brought up later. Manual installation using notes, [...]