Time Lapse Screenshots

I wrote a script for time lapse screenshots.

The newest version can be found on github.

The version as of writing.
timelapse.sh usage(requires scrot)
 ./timelapse dir_name second_interval limit
Note if limit is negative, it is the same as having no limit.

#!/bin/sh
mkdir $1
i=0
t=-1
if [ $# -eq 3 ]
	then
	t=$3
	fi
while [ $i -ne $t ]
	do
	sleep $2
	a=`date +%Y%m%d_%H%M%S`
	#a=$i
	scrot $1/$a.png
	i=$[$i+1]
	done

video.sh usage(requires mencoder)
./video.sh dir_name width height fps filename

#!/bin/sh
mencoder mf://$1/*.png -mf w=$2:h=$3:fps=$4:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o $5

An demo.

Confidence destroyer

I know this person, let's call her JJ. When ever I feel confident about myself, I talk to her.

It's a habit. If I don't talk to her, I would go
"Hey, I'm on the top of the wooooooorld~ MUHAHAHAHAHAHA,.. I'm so getting into a good graduate school..."

Some of the talks I remember, goes basically like this. due to my lame memory, I can't recite things word by word.
M = Me

(Talking about a USAMTS problem... the USAMTS t-shirt I have features that problem... if you see me wearing something black with cubes in the back, then you know that's the problem)
M: I don't see how that's possible.
J: flip this way so the face on cube one that's facing forward is now facing down, and then rotate the side facing forward 180° = =, apparently u don't play the rubiks cube..
M: orz

M: OMG there is a IMO gold and IMO silver in Stony Brook.
J: I know a IMO gold live right next door / I had lunch with a putnam fellow/ blah blah with IMO/Putnam people
M: orz

M: I took the Putnam today.
J: me too, a dozen people there are IMO gold or Putnam fellow.
M: orz

M: I'm thinking of doing independent study on analysis next semester.
J: I'm in this analysis class where half of the people have been to IMO. It's hard to stay above average.
M: orz

M: I'm in BNL this summer, I assume you are doing something with the same scale of awesomeness in MIT.
J: I'm in the AI lab, coding, working with Marvin Minsky, the FATHER of AI.
M: orz

My confidence crumbles every time xD. It is a good thing...

I'm in a place where people think I'm pretty good. I become modeled into thinking "Hey, I'm pretty good." It's a scary thought if I'm actually not that good. JJ can always help me adjust to the view I'm suppose to have. Since I will be competing(unsuccessfully...) with people with skills even beyond JJ in the future for positions in the academia, I can't stop short and think "Hey, I'm pretty good."

Thank you for all your support JJ. Also thank you for believing me that I can transfer to MIT when I don't even believe it myself. I will try my best.

Tags:

I might have ADHD all my life

For some unknown reason i discussed ADHD with my parents when they refuse to understand there are common disorders prevent people from learning.

While discussing it, I found striking similarity of ADHD's symptoms and what I have. I did some wikipedia and convinced I'm likely to have ADHD.

Predominantly inattentive type symptoms may include:
Be easily distracted, miss details, forget things, and frequently switch from one activity to another [YES, I found it impossible reading in a car, a train, a plane or anything where I feel I'm moving around. Or if I can see anything moving or hear any sound.]
Have difficulty focusing on one thing [YES]
Become bored with a task after only a few minutes, unless doing something enjoyable [YES, that's why I fail at everything except things I enjoy]
Have difficulty focusing attention on organizing and completing a task or learning something new [YES]
Have trouble completing or turning in homework assignments, often losing things (e.g., pencils, toys, assignments) needed to complete tasks or activities [YES, no pen can stay with me for more than 3 days unless I don't use that pen.]
Not seem to listen when spoken to [YES, ok this might be of some other reason, most people are boring]
Daydream, become easily confused, and move slowly [YES, but then again, it seems a lot of people are easily confused]
Have difficulty processing information as quickly and accurately as others [YES, especially in fields where I have no background]
Struggle to follow instructions. [YES, I epically fail at every lab class]
Predominantly hyperactive-impulsive type symptoms may include:
Fidget and squirm in their seats [YES, I can't hold one comfortable position during sitting, unless I'm asleep]
Talk nonstop [If I'm talking to you, then yes, else no. If I'm alone, I talk to myself, but that should be another kind of beast.]
Dash around, touching or playing with anything and everything in sight [NO]
Have trouble sitting still during dinner, school, and story time [YES]
Be constantly in motion [YES, unless I'm on my bed]
Have difficulty doing quiet tasks or activities. [NO]
and also these manifestations primarily of impulsivity:[34]
Be very impatient [YES]
Blurt out inappropriate comments, show their emotions without restraint, and act without regard for consequences [don't know, it only happen around people I know]
Have difficulty waiting for things they want or waiting their turns in games [YES, I have to beat this 4 year old in SOULCALIBER]

I have almost all symptoms.
These symptoms are general, I do feel normal people will have a few of them too. Having this many? it strike me as having a problem.

When i was young(elementary school level), I have been described by my parents and teachers as having hyperactivity. Non of them are doctors however. I like how my family have the culture of not seeing any doctors(unless it's FREE checkup). So they don't care if I might have hyperactivity disorder, it's not something that will kill me.

I also fall into my own world during class. Wondering stuff until I was called to answer some question the teacher asked. Ahh, lots of embarrassment.

I doubt any of them considered I have attention deficit disorder. Not many kids can follow orders when they are young. Therefore I have no idea such thing even existed, until I'm in my 11th grade in US. I even doubt such disorder is not something people made up so they can take it easy on school work.

Even if I have ADHD, I can still live out a normal life. My grades are better than average, and if I didn't do well at something, clearly I wasn't working hard enough. There should be no reason for anyone to even assume I might have a disorder. I must have a brain that perform above average, and I just don't use them in things like English, History and stuff, how else can the huge gap between my math and English grade be explained?

I didn't spend much time on the courses I suck at, fits the description "Become bored with a task after only a few minutes". Self disciplines issue? It must be.

Maybe not.

Concentration have always been a problem. I can read a book and mind drift away into something else by one keyword. and when I finish drifting, I already turned the page, everything in between is lost. This is SCARY. I read a book and not remember what I have read, most of the time. How do I learn at all? Read a paragraph k times until I think I have read it. The GEB took me a month to complete, and now i can only remember the main themes. All the details are lost.

This prevent me enjoy fictions. I have stopped reading fictions 5 years ago.(Ok i lied, I read 3 pages of twilight for reasons I don't want to disclose). Things jump around, nothing makes sense. I forget things I read in the beginning. And I start read plot summaries instead on wikipedia because that's about the attention span I can handle.

Of course, this could also be a memory problem.

Concentration are related to boredom. If I can't concentrate on doing one thing, and keep getting distracted by thoughts that appear to be more interesting, of course I found what I'm doing bored.

What about math? I do find it boring to read textbooks. I'm glad in math, you read and understand a few sentences, the rest can be done by pure thought experiments. In high school, I come up with formulas and solutions during the exam.
So is the CS classes I took in college, it's ALL theory classes. It's not that I have read a lot more texts, I just remember some points and try to figure things out in small chunks when I'm reading texts on how language unite people during ESL classes. Wow, epic distractions.

I can't just do thought experiment and suddenly knows what happens in 1800's art culture. These are the kind of knowledge where I must gather though intense text intakes. Not able to concentrate greatly decreases my desire to know.

I never thought this was a problem at all. I thought it applies to everyone. The idea of "learning is not easy" circles around. Then I went to college and see people crunch though dense texts(they don't even like) like nothing. Hearing someone complete John Hull's Options, Futures, and Other Derivatives in a week. (she got a phd in physics from caltech, so this is not a good example of normal person, but it still affects me psychologically). Something must be wrong with me, or I'm just surrounded by people who are way too brilliant in feeding on knowledge(If that's true then I must be a elitist who only make friends with really brilliant people... not a good thing either).

During the summer research, I have even more doubts in my ability. I can code fast, grasp new concepts really quickly and work hard enough that my mentor want me to intern with him during this fall. Except I can't learn well because I can't concentrate. You will see me moving in and out from the office 5 times more frequent than the other 2 people in my room combined. I observe the differences between me and the other researcher, they are not easily distracted. I even get distracted by my own thought during group meetings. It's not they are knowledgeably septate them from me, it's the power to concentrate.

This remind me how the year before, I have hard time reading a book on radiation detection. The mind slips I walks into makes learning a dense topic almost impossible.

During coding I always miss some small stuff, it's hard to write a program that compiles the first time(usually I need to compile k/10 times to make it work, where k is the amount of lines). Finding mistake in my own code is difficult because I always forget my definition of the variable(like what is this variable v correspond to?). People who do programming competitions totally owns me in this category. IDK if I'm better than a normal programmer.

I can IM with someone and forgot I'm IMing someone and start doing something else. Usually it's when I receive a message, and forgot to turn to the window right away, and forgets about it. That certainly get people mad. Later I developed the skill to switch between tasks periodically as soon as a task become non urgent. It greatly decreases my response time, but still, not good enough. This is the reason I decided to stopped using all IM systems a few days ago. Back to good old email.

If it is indeed true that I had ADHD all my life, then I can change for the better. To make myself having the power or a normal human! How awesome is that? The power of owning GRE and get into a good graduate school. mmmmm, normal human ability rocks.

Get diagnosed by doctors in China is cheaper than the US. Hmmmm...

Tags:

I need a new design for this site

After using Elinks on POJ. I'm very amazed with how POJ turned out. It looks super elegant!
See the image here
I think simplicity is the key to design.
I'm no designer, but I would be perfectly happy if every website can be accessed in elinks style I showed.
So what should the style look like?
Everything have the same fixed size font. It's possible to have bold fonts for strong characters or something. At most 16 colors can be used. Too many colors doesn't help bring up the contents.
Minimum CSS for layout. In fact, there should only be layout for simple positions. It should have 1 column layout because it's awesome.
What about sidebars? you might ask.
Sidebar is overrated. When is the last time I looked at the sidebar? If one need to see list of recent comments, recent blog post and stuff, they should go to a special page that show stuff like this. Most sidebar items are not useful content at all.

Adapting the unix philosophy on content presentation.

"Write a site that show one thing and show it well"

Tags:

Human Identification Number

Many country have national identification number for their citizens(even non-citizens).
How about a universal human identification number?

This number should be powerful(as powerful as SSN) and we can show it in the open. Not like SSN, no one can put them online.
Why can we put our AIM user name and other usernames online? Because the number itself isn't the only way to authenticate. There is a password too.

We also need a government agency that authenticate if a person is who they claim to be.
Then it's possible to have 1 ID for EVERYTHING.

There is a similar idea. OpenID.
How about, government create something similar to the OpenID and replace it completely.

We can establish a world identification organization in the united nations... but hey, having a one world government, it be much easier to enforce rules.

Human civilizations have developed for this many years, and there is no unified government yet. Humans, I am disappoint.

Tags:
Honey Pot that kill bots