laplace's demon

rest vs rpc

by 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/

1 Comment more...

Noob guide to marketing chart

by 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)

Leave a Comment more...

Twitter Updates

by 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.

1 Comment more...

Getting PHP headers without apache mod headers

by 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.

Leave a Comment more...

Mac Maintenance Scripts

by 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.

Leave a Comment more...

Think beyond DB

by 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.

Leave a Comment :, more...

How to re-locate SVN repository

by 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 :)

Leave a Comment : more...

Macbook Pro Liquid Incident

by 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.

Leave a Comment more...

Adding Colors to VIM

by 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
Leave a Comment more...

KICK-ASS!!! Fucking Hilarious

by 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.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...