HN user

dan_netwalker

-1 karma
Posts0
Comments15
View on HN
No posts found.

Hiroshima's "Little Boy": the first in history nuclear explosive device used to attack an enemy faction. According to figures published in 1945, 66,000 people were killed as a direct result, and 69,000 were injured to varying degrees. Total amount of nuclear fuel on site: approximately 600 to 860 milligrams of matter. Milligrams! And a big part of that got aniquilated in the explosion.

Chernobil: one nuclear reactor explodes spreading radioactive materials in aerosol form. Total amount of nuclear fuel on site: 180 tonns.

Fukushima: six nuclear reactors, one of them a plutonium reactor, gets severilly damaged after several eathquakes and a tsunami hits the nuclear plant, starts spreading radioactive materials in aerosol form and dumping tonns of contaminated water to the sea. Total amount of nuclear fuel on site: 7,200 tonns.

Call me pesimistic, but I think this is an entirelly different leage, one that may make Chernobil look like a propane gas escape. And I wish I'm wrong...

Well, in fact you could serialize/unserialize the objects and store them somewhere, making use of the "magic" functions __sleep() and __wakeup(), if I recall correctly. But yes, as soon as the web server ends the response or the script gets to the end, it's finished

Yeah, I know. But working on a wood statue with a humble knife should not be an excuse for the chainsaw guy to call you a dumb bastard for not be doing the statue with the chainsaw, "like proper men should do". Yes, the quoted phrase was actually heard on my office. Go figure...

( ...and I don't have anything against ruby. I'm learning rails. www.railsforzombies.com is great. In fact, my php is made on cakephp and lithium, which are pretty similar to rails... )

Ok, wait. Time out. What whould be the difference between:

try{ some ifs ... return x ... more ifs ... throw ... return y }catch{ handle exceptions }finally{ do_something_finally() }

and

try{ some ifs ... return x ... more ifs ... throw ... return y }catch{ handle exceptions } do_something_finally()

I'm missing something, I'm not?

You are right, this war is far from over. Just I wasn't considering the whole war, but this battle, this game in particular. We'll see how the next battle starts, and then we'll play our moves the best we can, but this time, in this game to be precise, I think is a check mate. And a speedy one, too. Maybe.

No, he means when you open your browser and type "www.piratebay.p2p", some program under the hood will 1) connect to a tracker, 2) get the ip from the tracker in a similar fashion to what bittorrent does to get seeds and 3) continue with the navigation as always.

By connecting to this tracker, the translation from "www.someplace.com" to 12.13.14.15 (what the machine really understands) is done regardless what the ICANN dns says. No way to redirect to a "this page is closed" server, no web page can be cut off the internet. Check mate.

In case this gives you an idea: in my linux laptop I just have two different users in the laptop, one that is configured to use a local tor proxy and another "non protected". Depending of if I'm out in the open or at home I use one of another. When I need some data from my protected user when in "unprotected mode" I sftp:// myself, but usually I do it the other way (unprotected data from protected mode). Much simpler, I think...

I'll make an educated guess... the advancement is knowing that if you make a machine that can bruteforce 6 sides x 2 turn directions, you can stop searching once a 20th movement is not enough to get the cube solved, and in the worst scenario, you will check ( 6 x 2 )^20 movements in total. I think that scores as test cases :P

I miss one "stupid" feature of git gui: the tools menu. I have some small tools in my ~/.gitconfig for things like creating and mergin "feature trees". Like:

[guitool "Development/Feature/Create"]

cmd = git checkout development && git checkout -b feature__\"$ARGS\" development

argprompt = yes

[guitool "Development/Feature/Merge into Development"]

cmd = git checkout development && git merge --no-ff feature__\"$ARGS\" && git checkout feature__\"$ARGS\"

argprompt = yes

[guitool "Development/Feature/Finish"]

cmd = git checkout development && git merge --no-ff feature__\"$ARGS\" && git branch -d feature__\"$ARGS\"

argprompt = yes

...or for more mundane tasks...

[guitool "Tools/Switch branch"]

cmd = git stash clear && git stash save \"cambiando a rama $ARGS\" && git checkout \"$ARGS\" && git stash pop

argprompt = yes

[guitool "Tools/Pull"]

cmd = git pull

[guitool "Tools/Sincronice"]

cmd = git checkout master && (git push && git pull) || (git pull && git push && git pull)

I know, those are stupid hacks, but this let me do lots of work withought touching the terminal unless I really have to. Any chance getting something like this in gitg?