rest vs rpc
by solomon on Apr.01, 2011, under Programming
Well, i came across a great comparison article and i want to share it. Well this is because my bookmarking system sucks. So when i need to save a document, i post it in my blog. Yeah it sucks.
http://md314159265.wordpress.com/2006/10/30/comparison-of-rest-vs-xml-rpc/
Noob guide to marketing chart
by solomon on Mar.25, 2011, under Tech
I’m not a marketing guy, but the following cool chart will be very helpful anyone in the industry. I put it down here to remember. Yep, primitive way of bookmarking. (inner voice: i want delicious back)
Twitter Updates
by solomon on Feb.08, 2011, under Uncategorized
I guess it would be kinda cool if my posts are published as twitter entries. I have installed a new plugin. And this is my first post to test it out.
Getting PHP headers without apache mod headers
by solomon on Feb.08, 2011, under php, Programming
It sometimes happen. You are in a restricted environment -like a shared hosting- and somehow you want to reach the custom headers without enabling the apache module “mod_headers”. Than following little function will do your job.
function getHeaders()
{
$headers = array();
foreach ($_SERVER as $k => $v)
{
if (substr($k, 0, 5) == "HTTP_")
{
$k = str_replace('_', ' ', substr($k, 5));
$k = str_replace(' ', '_', strtolower($k));
$headers[$k] = $v;
}
}
return $headers;
}
P.S. If you have the possibility to use the mod_headers, than you’re free to use apache_get_headers() function.
Mac Maintenance Scripts
by solomon on Jan.03, 2011, under mac
Mac OSX schedules and runs some kind of maintenance scripts. Those scripts only removes some invisible system log files that is not a big deal. But the thing is, it schedules the scripts at 3:30 am of the day, week or month. But off course you can manually run them via following command
sudo periodic daily weekly monthly
It’s ok not to see a output when you run the command.
Think beyond DB
by solomon on Nov.12, 2010, under php, Programming, Tech
I found a good presentation by the project lead of Zend Framework. He explains the data persistance and why good OO programming instead of refactoring is saves a lot of time.
How to re-locate SVN repository
by solomon on Nov.01, 2010, under linux, Programming
Recently our local svn server location is changed. We use ip-address rather than a domain name for the svn server, so we needed to change the repository location in our working copies.
To change the svn location, use the following syntax:
svn switch --relocate svn://oldhostname/myrepository svn://newhostname/myrepository
Edit: I’m so lost that i forgot to exclude the username and password variables from the code above
Macbook Pro Liquid Incident
by solomon on Oct.02, 2010, under Uncategorized
Recently, a fair amount of tea has been poured over the keyboard of my macbook pro. And after a few hours, the keys got sticky. I had try to go for a keyboard replacement but it turns out to be very expensive procedure and it will take some time. Then I have found the following video explains the replacement of a macbook key.
Adding Colors to VIM
by solomon on Aug.29, 2010, under Uncategorized
I was not happy with default settings of the vim editor on snow leopard. Following are my settings. So far i don’t have a problem with them. Just put in a file named .vimrc on home folder.
set nocompatible set selectmode=mouse set backupdir=/tmp set directory=/tmp set guifont=Lucida_Console:h8 set guioptions-=T set errorfile=/tmp/vim.errors.log set ic set fileformats=dos,unix,mac highlight StatusLineNC guifg=#ff0000 guibg=#000000 highlight StatusLine guifg=#00ff00 guibg=#000000 set hls hi Normal guibg=black guifg=white hi Search guibg=white guifg=black hi IncSearch guibg=white guifg=black set mousef set tabstop=2 syntax on
KICK-ASS!!! Fucking Hilarious
by solomon on Aug.29, 2010, under Movies
First time in my life, i am amazed by a “based-on” movie, and it’s really fun as the original comic book. Well they’ve slightly changed the story, but it still rocks. Still I need to say that I did not like the way that they turn this into a “will-be-continued” story. Also i didn’t like that kick-ass got laid with sweet Kate. Well that guy is a true loser, come on. Other than that, it’s really fun movie. One of the best.
