September 2011
4 posts
Democracy is not an easy system to sustain, particularly for countries whose...
Democracy is essentially a contract between those who are governed and those who...
– Democracy - Opposing Viewpoints
Reith Lectures of Daw Su
Just a collection of links for the lectures that Daw Aung San Suu Kyi has given on BBC’s Reith Lectures Sessions.
Session 1 - Aung San Suu Kyi: Liberty 28 Jun 2011 - MP3 Audio - Transcript
Session 2 - Aung San Suu Kyi: Dissent: 05 Jul 2011 - MP3 Audio - Transcript
I don’t think there is one best practical action. But for young people outside...
– Aung San Suu Kyi @ BBC’s Reith Lecture - On what young people should do to improve the change in Burma, to get the change in Burma.
August 2011
1 post
The mind is its own place,
and in itself
can make a Heaven of Hell,
a Hell of...
– John Milton
(if you are smiling, you really want to watch this TED video)
July 2011
1 post
June 2011
2 posts
May 2011
24 posts
1 tag
Insecurity, The Enemy In Me
You make me hide Behind my fear Of being so inadequate.
You work your silent Magic to Destroy all my relationships.
You find my weakness, Bring it forward, Displayed for me to see.
And in my fear, I’m paranoid That others see and flee.
I could have love And friendships true, But you cast doubt on those.
You show me all My cons that aren’t, And hide me from my pros.
I think that I...
1 tag
People versus Persons →
Found this article looking around what actually is the correct usage.
2 tags
//via Bizarro Comics
2 tags
//via Bizarro Comics
3 tags
3 tags
3 tags
CakePHP HABTM relation Data Format
The following is the format for $data that CakePHP expect on your Model->saveAll($data) call, using the example of Article and Tags.
array(
'Article' => array(
//Article data goes here as usual
)
'Tag' => array(
'Tag' => array(
1,
2,
3
)
)
);
Just thought I should note down in case I forget again, like I just...
Angry Birds - Chrome Web Store →
Angry Birds is now on Chrome webstore with Canvas goodness for free!
Accelerated Learning
Like what you are learning.
Find a comfortable space with no distraction.
Chunk your study time.
Jump into the deep end of the pool.
Apply what you are learning ASAP.
Try different methods of absorbing information.
Focus on patterns.
Just taking note after reading the article from Simple Dollar.
1 tag
return;
When a geek send you return; in the chat, get the fuck out of the conversation, and be quick about it.
You don’t want him throwing tantrums at you, or worst, a stack of formidable 1337 speak curses.
2 tags
2 tags
How do you define a variable in MySql?
Here’s how:
SET @name = "Mike", @twitter = "@mmhan";
/** usage **/
SELECT * FROM `users` WHERE `name` = @name AND `twitter` = @twitter;
Many of us believe that when we feel down, we should try to focus inwardly and evaluate our feelings and our situation in order to attain self-insight and find solutions that might ultimately resolve our problems and relieve unhappiness. Susan Nolen-Hoeksema, I, and others have compiled a great deal of evidence challenging this assumption. Numerous studies over the past two decades have shown that...
3 tags
Writing Secure PHP
I was reading this article called Writing Secure PHP, and found a little treasure in that article.
It’s a hand-out for clients listing out a few basic security details.
Just noting it down here in case I might need it in time.
3 tags
Using PHP to upload to S3
So, my boredom continues on resulting in this:
Guess what, with this tutorial on nettuts, it’s pretty easy too!
2 tags
Diving into S3
Outta boredom and curiosity, I followed a tutorial on nettuts and viola! The following image is served from Amazon S3!
It is, however, such a shame that it took me this long to start dipping my toes in S3.
A government big enough to give you everything you want, is strong enough to...
– Thomas Jefferson
2 tags
Creating a zip of modified or created files in GIT
So, how do you create a zip file of all the files that was changed to deploy?
Easy does it as answered by Jefromi:
git archive -o [PATH] [NewCommit] $(git diff --name-only [OldCommit] [NewCommit])
So it may goes like:
git archive -o ../latest.zip HEAD $(git diff --name-only 2f646b HEAD)
2 tags
Facebook Graph API OAuthException
Ever encountered an OAuthException that has the following message?
The post's links must direct to the application's connect or canvas URL.
It is due to the settings from the screenshot below.
Just ensure Stream post URL security is disabled.
Weekly Eleven did an interview with Saya APK →
Download the journal and check out page 4.
1 tag
April 2011
22 posts
2 tags
How to define a Class in Javascript
First of all, There is no such thing as a Class in Javascript. It’s all objects. Hence use functions and literals to simulate “Class”y development.
//Way 1: Function simulating class.
function Phone(model){
this.model = model;
}
myPhone = new Phone("Android");
//Way 2: literal as singleton
var Phone = {
model: 'Android'
};
//Way 3: Singleton into function...
8 Scenes That Prove Hollywood Doesn't Get... →
I want a pair of those! →
1 tag
How to Be Consistent and Get Stuff Done →
Some highlights on why the consistency for things you do and sustaining and finishing something is much more important than starting many things and failing them.
The bottom line is: got a leash on your enthusiasm and make sure your activities are light and sustainable.
1 tag
The Psychology of Waiting Lines →
Pretty much self-explanatory and a great read for a paper of 9 pages.
1 tag
Think of what you do have instead of what you... →
Pointing to hierarchy as a model of reference, the author says, we as human, got our hierarchy of needs mixed up keeping up with the Jones and the mass media and the advertisements’ effect that we often think things we don’t really need as a basic need, like having that Netbook for lounging away in the living room while watching the HBO on your big screen TV.
What we do need to do,...
Keep Up With Trending News On Your iPad With... →
With iPad and flipboard’s success, everyone is now so much into the news aggregators.
1 tag
#listeningto West Ryder Pauper Lunatic Asylum by...
2 tags
Download Squad says "Farewell, Internet" →
but why…???
2 tags
2 tags
1 tag
Laika Come Home by Gorillaz
In my defence, it’s not just the monkey on the cover that had me listening to this album, not that it fails to rock.