Search

1/24/2013

Android File Transfer

Android File Transfer

Android File Transfer is an application for Macintosh computers (running Mac OS X 10.5 or later) you can use to view and transfer files between your Mac and an Android device (running Android 3.0 or later).

1/14/2013

jqeury defer

$.when(df1, df2, ${{}}.delay(3000).promise()).done( ->

)

1/12/2013

Why don't audio and video events bubble?

Why don't audio and video events bubble?

The reason why event bubbling exists is solve the ambiguous question of which element is the intended target of the event. So, if you click on a div, did you mean to click the div, or its parent? If the child doesn't have a click handler attached, then it checks the parent, and so on. I'm sure you know how that works. The reason why audio events don't bubble is because they don't make sense on any other element. There's no ambiguity when you trigger a timeupdate on an audio element whether it's meant for the audio element itself or its parent div, so there's no need to bubble it. Really, you should attach your event handlers to to lowest element you can, and when it comes to audio and video, you should attach your handlers directly. You can read a fuller history of event bubbling here

HTML 5: Is it <br> <br/> or <br />?

HTML 5: Is it <br> <br/> or <br />?

Simply
is sufficient. The other forms are there for compatibility with XHTML; to make it possible to write the same code as XHTML, and have it also work as HTML. Some systems that generate HTML may be based on XML generators, and thus not have the ability to output just a bare >br< tag; if you're using such a system, it's fine to use <br/>, it's just not necessary if you don't need to do it. Very few people actually use XHTML, however. You need to serve your content as application/xhtml+xml for it to be interpreted as XHTML, and that will not work in IE (it will also mean that any small error you make will prevent your page from being displayed, in browsers that do support XHTML). So, most of what looks like XHTML on the web is actually being served, and interpreted, as HTML. See Serving XHTML as text/html Considered Harmful for some more information.

1/11/2013

adb

input text: adb shell input text "https://warhol.htcsense.com.local/stories" change hosts file on android device http://stackoverflow.com/questions/7794659/how-to-change-the-hosts-file-on-android

1/02/2013

Life begins at the end of comfort zone.

Feynman's Nobel Ambition From ``Surely you're joking, Mr. Feynman'', by Richard Feynman

http://www.physics.ohio-state.edu/~kilcup/262/feynman.html Then I had another thought: Physics disgusts me a little bit now, but I used to enjoy doing physics. Why did I enjoy it? I used to play with it. I used to do whatever I felt like doing - it didn't have to do with whether it was important for the development of nuclear physics, but whether it was interesting and amusing for me to play with. When I was in high school, I'd see water running out of a faucet growing narrower, and wonder if I could figure out what determines that curve. I found it was rather easy to do. I didn't have to do it; it wasn't important for the future of science; somebody else had already done it. That didn't make any difference. I'd invent things and play with things for my own entertainment. So I got this new attitude. Now that I am burned out and I'll never accomplish anything, I've got this nice position at the university teaching classes which I rather enjoy, and just like I read the Arabian Nights for pleasure, I'm going to play with physics, whenever I want to, without worrying about any importance whatsoever. Within a week I was in the cafeteria and some guy, fooling around, throws a plate in the air. As the plate went up in the air I saw it wobble, and I noticed the red medallion of Cornell on the plate going around. It was pretty obvious to me that the medallion went around faster than the wobbling. I had nothing to do, so I start to figure out the motion of the rotating plate. I discover that when the angle is very slight, the medallion rotates twice as fast as the wobble rate - two to one [Note: Feynman mis-remembers here---the factor of 2 is the other way]. It came out of a complicated equation! Then I thought, ``Is there some way I can see in a more fundamental way, by looking at the forces or the dynamics, why it's two to one?'' I don't remember how I did it, but I ultimately worked out what the motion of the mass particles is, and how all the accelerations balance to make it come out two to one. I still remember going to Hans Bethe and saying, ``Hey, Hans! I noticed something interesting. Here the plate goes around so, and the reason it's two to one is ...'' and I showed him the accelerations. He says, ``Feynman, that's pretty interesting, but what's the importance of it? Why are you doing it?'' ``Hah!'' I say. ``There's no importance whatsoever. I'm just doing it for the fun of it.'' His reaction didn't discourage me; I had made up my mind I was going to enjoy physics and do whatever I liked. I went on to work out equations of wobbles. Then I thought about how electron orbits start to move in relativity. Then there's the Dirac Equation in electrodynamics. And then quantum electrodynamics. And before I knew it (it was a very short time) I was ``playing'' - working, really - with the same old problem that I loved so much, that I had stopped working on when I went to Los Alamos: my thesis-type problems; all those old-fashioned, wonderful things. It was effortless. It was easy to play with these things. It was like uncorking a bottle: Everything flowed out effortlessly. I almost tried to resist it! There was no importance to what I was doing, but ultimately there was. The diagrams and the whole business that I got the Nobel Prize for came from that piddling around with the wobbling plate.