Archive for May, 2010

 

  • Archives

  • Categories

The worst part of SVN is that it’s got lots of .svn folders hidden in every single versioned directory. It has never occurred to me how terrible an idea this is until I delete a directory. I had this weird deja vu that I’m going to regret issuing that rm -rf command but I did so anyway. It’s versioned, I tell myself.

Ah, but there’s a catch

No. Once I did that I spend the next 30 minutes trying several commands to recover it, such as svn revert and svn update. They don’t work because the current directory’s .svn folder is still there and it’s just silly SVN’s way of knowing its there. Every command to revert led me, falsely, to believe my folders are all still there.

So I downloaded an entire new copy of the files I just deleted and put them back. That failed as the files I have restored manually don’t have the .svn folders. I tried committing the restored copies and the SVN server will just say the “Commit failed” with the reason “Server sent unexpected return value (405 Method Not Allowed) in response to MKCOL request for ‘…’”.

Don’t tell me what I can’t do!

Well… The thing is I wasn’t convinced. In an act of folly I deleted the parent directory which now resulted in the whole project just dead basically. Fantastic.

I should add that at this moment it all came back to me. I am certain this SHITuation happens to me at least a dozen time especially when I’m half awake.

As least Git doesn’t have that issue. Every time I use SVN, I have this feeling I’m walking on thin rope fearing to offend the Tiki gods. I guess I’m just not smart enough for SVN.

 

This blog has been “crashing” every other day. I finally decided to use Amazon S3 which is quite affordable. I’ll be monitoring it a while before I go gaga over it.

 

So now Facebook starts doing this. Erm, they gonna track my devices now?

Register this computer for Facebook

(Register this computer for Facebook.)

This is a hassle as I delete all cookies very often.

 

So it seems babies do know what’s better for them:

Psychologists say babies know right from wrong even at six months

The research was carried out by a team led by Paul Bloom, professor of psychology at the Infant Cognition Center at Yale University in Connecticut in the US, and used the ability to differentiate between unhelpful and helpful behavior as their indicator of moral judgement. The results contradict the theories of Sigmund Freud and others, who thought human beings start out as “amoral animals”, or a moral blank state…

In one experiment babies between six and ten months old were repeatedly shown a puppet show featuring wooden shapes with eyes. A red ball attempts to climb a hill and is aided at times by a yellow triangle that helps it up the hill by getting behind it and pushing. At other times the red ball is forced back down the hill by a blue square. After watching the puppet show at least six times the babies were asked to choose a character. An overwhelming majority (over 80%) chose the helpful figure. Prof. Bloom said it was not a subtle statistical trend as “just about all the babies reached for the good guy.”

In another experiment the babies were shown a toy dog puppet attempting to open a box, with a friendly teddy bear helping the dog, and an unfriendly teddy thwarting his efforts by sitting on him. After watching at least half a dozen times the babies were given the opportunity to choose one of the teddy bears. The majority chose the helpful teddy.

Bloom said there is mounting scientific evidence that this may not be true and that “some sense of good and evil seems to be bred in the bone.” (Source: Psysorg)

Interesting results although I don’t think this is a good experiment to find out whether babies know how to choose right from wrong.

 

This year marks the 50th anniversary of the good, old-fashioned copy machine. But, as Armen Keteyian reports, advanced technology has opened a dangerous hole in data security.

Yes they have a hard disk and they store a lot of images and can be a potential privacy issue.

 

I’m done with my Human-computer interaction paper. It wasn’t like I expect. I don’t think I’ll do well for this. I had very little time to study for this too.

And yeah, my server went down again. I thought 512 MB is enough. I might be migrating from Rackspace Cloud to somewhere cheaper, we’ll see.

 

It’s late at night and I am still coding my project. Worst of all is that the code that I am (possibly) more proud of than the rest of the code I have is the isNumeric function:

var isNumeric = function isNumeric (s) {
        return !isNaN(parseFloat(s));
}

There, here is it. The rest of the code very well deserves to be deleted. Unpresentable, at best.

 

WordPress powered and Django inspired.
Love and elephants come after.
RSS: Posts and comments.