Hacker Newsnew | comments | show | ask | jobs | submit | tzury's commentslogin

The `xrange` example suggests that in Python 3.x, `range `(which is equivalent to xrange in python 2.x is slower than range in python 2.x.

This is a double patently IMHO.



tzury 29 days ago | link | parent | on: Online JSON editor

This is the one I have been using for so long... and it is open source as well.



Can someone tell what software was in used to products charts ?


ascheink 43 days ago | link

We developed our own tool, based on https://github.com/Quartz/Chartbuilder that uses Javascript and d3 to draw charts.


skeletonjelly 44 days ago | link

Nate Silver willed them into existence.

I often wonder this about newspaper ones as well. I guess graphic designers custom make a fairly large amount.


qwerty_asdf 44 days ago | link

How can y'all not know 'bout R?


...just kidding, lots of people don't know about R, but check it out, because it's pretty badass!

I'd be curious to know if people still use Processing, professionally?



tzury 53 days ago | link | parent | on: New DuckDuckGo design

Dear Gabriel Weinberg, after so many posts on HN, I am still missing the point behind DDG.

Can you tell me, the end user, what are other benefits of using DDG aside _privacy_ (given I am using chrome/incognito by default)?


dandelion_lover 52 days ago | link

I guess, first of all, believing google in terms of incognito mode is a strange thing. Especially on proprietary browser. I suggest to check out, what is free software and why it is important [1]. [1]. https://www.gnu.org/philosophy/free-sw.html.


As a coder who get shocked every time those running lines and "ACCESS GRANTED" pop-ups appear as that guy just break into the bank account and other phony stuff, I have to say that it did not started in here at all.

Hollywood has been faking it all the way, from ridicules gun-shots scenes, bombs explosions, cars that keep driving after getting smashed and street-kids who can shot and kill in one hand.

It is simply that code, software and hacking is closer to us than the other examples, so we care about it that it will look real.

Also, how would you show an owned server? a prompt that reads:

  # root
This means nothing to the masses.

[1] - regarding bombing scenes, I think is one of those rare directors who don't fake it, rather make it looks as realistic as possible, see Hurt Locker and Zero Dark Thirty as examples.

[a] http://www.imdb.com/title/tt0887912/?ref_=nm_flmg_dr_3

[b] http://www.imdb.com/title/tt1790885/?ref_=nm_flmg_dr_1


jff 69 days ago | link

The guns thing really is pretty epidemic. There's a huge thread over on Something Awful about this, hundreds of pages of people pointing out how the movie's "M-16" is actually an SKS dressed up funny and how it doesn't have any sights, that kind of thing. Similar thing is most cases: how hard would it have been to buy a real AR-pattern rifle? And when they hire a consultant, they ignore them half the time, just like with computer stuff in movies.


jbaudanza 69 days ago | link

I also think it's interesting how TV and movies portray caring for gunshot victims.

In the movies, the first priority is to remove the bullet from the victim, usually in a dramatic and agonizing way. Once the bullet is removed, the victim is miraculously cured.

In reality, the first priority is to stop the bleeding. Most of the time, doctors won't even attempt to remove the bullet. The bullets are sterilized from the explosion, and you'll generally do more harm than good by trying to remove it.


bwhite 69 days ago | link

This is so true. I remember how irate I was when I realized that Rambo III insisted that a thinly mocked-up Browning was actually a DShK. That annoyed me but not nearly as much as Neo's Scorpions ejecting what looked like 5.56 casings on the floor during the lobby gun fight. Maybe necked-down brass looks sexier pinging off the floor.

But worse than all of this is what happens in movies when people are shot. People inevitably fly backwards, sometimes tens of feet. There's a nice Quora answer about this [1]. I get the need for a great action shot, but it's a thumb in the eye to everyone who actually has even a ballpark concept of kinetic energy delivery.

[1] http://www.quora.com/Guns-and-Firearms/Does-shooting-someone....


JetSpiegel 69 days ago | link

Or if you don't want to register, http://tvtropes.org/pmwiki/pmwiki.php/Main/BlownAcrossTheRoo...


wtmcc 69 days ago | link

I assume “ACCESS GRANTED” is preferred over your root prompt because it is more legible to the vast majority of viewers.

In fact, I suspect one noble goal in ItsAUnixSystem-style sequences is making sure everybody watching understands what’s going on: The access was granted, dummy.

Of course sometimes that’s gonna conflict with realism.


KhalilK 69 days ago | link



JetSpiegel 69 days ago | link

Indeed, the whole point it to make it easier for the view to get what's going on.



pearjuice 69 days ago | link

Not only is the hacking and programming in most screen flicks fake or far from reality, it also continues to amaze me how some shows are completely dependent on the falsehood that some people can use a computer to hack, mine and get everything they want as long as it has a keyboard.

Take for example "Criminal Minds". It is about a group of profilers at the FBI who catch serial killers. There is this one girl on the team who consistently manages to find out ANYTHING with the computer she owns and greatly assists the team of profilers; she can access ANY database on ANY computer. So the team says "give me a list of people with x and y from z between 2000 and 2002" and she gets it (after, of course, fast scrolling green text on a black background).

Rambo movies must give the same feeling to people in the military. A scene which might be cringe-worthy to anyone in tech:



Great tool, added to toolchain.

If you never came across Firefox Tamper Data Add-on, this might be a great opportunity to mention it.


A different tool, yet targeting similar audience (us).


tzury 84 days ago | link | parent | on: Citizen Kubrick (2004)

It is worth mentioning that in his 1968's Film you see video conferences and touchscreen tablets - as skype and iPad was invented by him.

Samsung even used it in their case agains Apple..



acqq 83 days ago | link

> touchscreen tablet

No, I haven't seen anybody used touchscreen there.


We can even recognize that "the tablet" is by IIX and that it has 10 real buttons (1..9 than 0):


So it was probably then designed as a portable flat TV. Still it looks good.


fredoralive 83 days ago | link

The device is by IBM, not IIX. The site below has some better pictures of the device's logo (and some other bits of “IBM” hardware), along with lots of pictures of Kubrick's preference for san-serif fonts:



acqq 83 days ago | link

You're right, I haven't seen that even better resolution photo.


We see even the brand:

So it is a flat TV set after all, made by IBM.


This is the page you need to read!



dang 85 days ago | link

Yes. We changed it.


Nice, though when I test the examples (edit items [1]), I would expect better than confirm/alert usage.

1. http://visjs.org/examples/timeline/08_edit_items.html


abuzzooz 88 days ago | link

It's just an example to illustrate the callback functionality. The focus is on the visualization part, not the popup.


jamiesonbecker 88 days ago | link

What's wrong with confirm/alert? It's built into javascript, mobile friendly, and a lot less buggy than most libraries.


TuringTest 87 days ago | link

It's modal, so it blocks the entire browser until the dialog is dismissed. That's terrible interaction design, except for actions that would melt your computer.

I understand that the library focus is on visualization and not on realistic and usable examples; I put the blame on browser implementors - they should have fixed that problem years ago, instead of relying on developers to do the right thing.

Edit - Update: I've tried it on Firefox and it does the right thing, blocking only the current tab; blocking the whole application must be a Chrome-only thing.


single page version: http://www.smithsonianmag.com/travel/how-japan-copied-americ...



Guidelines | FAQ | Lists | Bookmarklet | DMCA | News News | Bugs and Feature Requests | Y Combinator | Apply | Library | Contact