News for hackers. Stuff that matters.

marekmroz

If you like fiction and satire, China Dream by Ma Jiang is good.
Re:Flask API – Browsable Web APIs for Flask on Thursday February 27, 2014 @02:27PM (#7314344)
RE: Eve requiring Mongo, according to slide s 57-61 at https://speakerdeck.com/nicola/eve-rest-api-for-humans Eve supports pluggable backends - is Mongo really needed?
Admittedly, I only took a cursory look at Splinter, but in my opinion Robot Framework[1][2] is much closer to plain English. This can be good if you know what you're doing and can come up with consistent naming and test/keyword organization conventions, or bad if used by someone without basic understanding of a concept of a function, white space delimiters, etc.

Still, it is super flexible, and I enjoyed using is a lot. Nice feature is having executable requirements if BDD is used. I.e. you can implement keywords to execute given-when-then req's and they became your test.

[1](http://robotframework.org/) [2](http://code.google.com/p/robotframework/)

Re:FizzBuzz solved using only bit twiddling on Monday October 28, 2013 @04:00PM (#6629372)
Funny thing is, as soon as I saw OP's solution I fired up IPython to do the same thing in Python. :)

Admittedly mine was not as elegant as I haven't thought of using izip with 3 iterables. Still, I don't think that lambda and islice is really needed... xrange(100) guarantees a finite number of iterations already.

   from itertools import *
   fizzer = cycle(['Fizz','',''])
   buzzer = cycle(['Buzz','','','',''])
   fizzbuzzer = izip(xrange(100), fizzer, buzzer)
   for f in fizzbuzzer:
       print f[1] + f[2] if f[1] or f[2] else f[0]

EDIT: the output from your version does not look right. "Fizz" and "Buzz" are on the wrong index positions. 0 1 fizz 3 buzz fizz 6 7 fizz buzz ...
It is not so much the specifics of the BART strike described in the article that I find relevant, as it is the general attitude displayed by the “lucky elite class of tech workers”. [1] There is certain mix of privilege, arrogance and ignorance reflected in the idea that all it would take to implement Obamacare is to give 20 start-ups $15M each, and the problem would be solved. Voila, a quick, easy and financially viable technical solution! Sadly, the problems runs much deeper than just the technology (see other comments reflecting on procedural and political issues hampering development, changing requirements, unrealistic expectations and so on), and to ignore the systematic issues is naive.

[1] Quoted from the linked article

Sounds like delusions of tech bro intelligentsia... [1]

[1] http://jacobinmag.com/2013/10/delusions-of-the-tech-bro-inte...

"Rouge" whistleblower group? Really Ars? As opposed to what, an NSA approved whistleblower group?
Re:Too scared to write a line of code on Saturday May 25, 2013 @12:41AM (#5766369)
> too many methods and layers of extraction

Surely, you mean abstraction?

Re:Good sleep, good learning, good life on Tuesday February 19, 2013 @08:57PM (#5248491)
I don't know much about babies, but the way you phrased it made sound like "Beatings will continue until morale improves" approach.
Re:City of Munich disagrees with HP's Linux migration study on Tuesday February 05, 2013 @11:52AM (#5171650)
>>> I haven't used OpenOffice in years

That's like eons in actively developed software. I believe giving LibreOffice a spin may change your notion of the quality of the OS alternative. As an anecdote, Excel 2003 has 65K row limit. In current LO it's ~ 1M rows if I remember correctly. I will admit that it is a bit apples to oranges, since Excel 2003 was created way back, but in practical terms, that is what I get on my office desktop. Being able to run LO as an alternative can be a life saver...

Except this is not what has been happening. There have been many stories reported of FBI actively trying to make someone into a terrorist. Some of the supposed perpetrators even contacted the police while under pressure from FBI to commit acts they would not want to do. Forgive me but I do not have time currently to dig up more than one, but this one I have fresh in my memory: http://www.thisamericanlife.org/radio-archives/episode/471/t...

It's a story of a sting/long con op gone really bad. Have a listen and see that it is nothing like the hypothetical that you posted.

Edit: If anyone is interested, more similar stories can be found in democracynow.org and bestoftheleft.com podcast archives.

Re:BlackBerry 10 Live Webcast on Wednesday January 30, 2013 @01:08PM (#5140793)
Native camera app on BB10 has instagram-like filters, maybe that's why it is not included.
If by breaking in you mean walking in through open, unsecured doors...
Re:The Simple Math Behind Early Retirement on Friday January 18, 2013 @04:44PM (#5081242)
On the flip side, making more and more money just to spend it on useless crap that gives instant but short-lasting gratification is also silly. The way I see it, it's a scale, and hitting a balance, not striving for either of the extremes, should be a goal worth pursuing.
Re:A cry for help on Thursday January 17, 2013 @10:22PM (#5076896)
Please don't bring up this ridiculousness yet again...
Re:Via introduces APC Paper: A $99 Android PC on Thursday January 17, 2013 @09:25AM (#5072770)
What is next, "scissors" - a solder-it-yourself kit?
Re:White House raises petition signature threshold to 100K on Wednesday January 16, 2013 @01:56PM (#5068372)
Sadly this is likely true. Just look at the effectiveness of mass protests and legislation put in place in last 2-3 years to make them illegal (UK, Canada, Poland come to mind).
Re:Backbone.js v0.9.10 Released on Tuesday January 15, 2013 @09:24PM (#5064769)
I found the JavaScript Jabber podcast [1] to be a great source of information on front-end JavaScript Frameworks, as well as some discussion with framewor authors that can help figure out how they differ.

Backbone: http://javascriptjabber.com/004-jsj-backbone-js-with-jeremy-... Ember: http://javascriptjabber.com/034-jsj-ember-js/ Angular: http://javascriptjabber.com/032-jsj-angular-js/ Knockout: http://javascriptjabber.com/013-jsj-knockout-js-with-steven-... enyo: http://javascriptjabber.com/033-jsj-enyo-js/

[1]http://javascriptjabber.com/

I think he committed no crime other than maybe trespassing.

* MIT network was open * Everyone on this open network had access to the JSTOR articles * No EULA or any other agreement or license was presented to the user that would define what constitutes abusing the above mentioned privileges

Nobody is discussing whether he did the things he did. What we are discussing is whether anyone in their right mind would consider this a crime.

So there.

(edited to expand on my point)

How can you be a prisoner of conscience when plea bargain requires that you admit your guilt?
Re:Canadian Prime Minister: $400M to Strengthen Canadian VC on Tuesday January 15, 2013 @01:15AM (#5059000)
Why not move then? It's millions, man! Millions!
Re:Canadian Prime Minister: $400M to Strengthen Canadian VC on Tuesday January 15, 2013 @01:14AM (#5058996)
It is not.

It is Steven Harper and Jim Flaherty privatizing profits and outsourcing costs to the people, business as usual.

Remember ~$2 billion dollars disappearing into thin air[1]? Well, I mean, there was the $2m fakelake[2], an unlawful prison[3], and a 'terrorist' was caught[4] (and released[5]) but I still think Canadians did not get their money's worth. Sonic cannon's manufacturers, on the other hand, made out quite nicely. Oh, Canada...

[1]http://www2.macleans.ca/2010/06/17/why-host-a-billion-dollar...

[2]http://www.cbc.ca/news/canada/story/2010/06/23/g20-fake-lake...

[3]http://www.cbc.ca/news/canada/toronto/story/2012/06/28/toron...

[4]http://www.torontolife.com/daily/informer/from-print-edition...

[5]http://www.cbc.ca/news/canada/toronto/story/2012/05/15/toron...

Re:We switched to Node.js: the good and the not so good on Monday January 14, 2013 @10:52AM (#5055093)
Have you tried writing services in Python and running on gunicorn or gevent?
Re:Rant: Backbone, Angular, Meteor, Derby on Friday January 04, 2013 @05:06PM (#5010246)
> <snip> but once you get up and going (...) </snip>

See, that's the problem. How do you get to "up and going" if the docs are sparse?

Just to be clear, this is not meant as a criticism of Ember, just a general observation that I have made time and time again when looking at new projects and reading comments saying things like "yes, X is not documented and hard to get into but once you get up and going it's all roses"

Re:Ubuntu bug: grep -R doesn't automatically search amazon on Wednesday January 02, 2013 @04:17PM (#4999368)
This again..?
Re:Quora Plans To Expand Beyond Q&A on Friday December 21, 2012 @01:34PM (#4953871)
>> Quora and Wikipedia have long been seen as complementary <<

That depends on who is looking ...

Re:JetBrains Doomsday Sale - 75% off for 24 hours only on Thursday December 20, 2012 @06:50PM (#4950725)
Hey @rdemmer, I appreciate the effort you and other Jetbrains guys and gals put in keeping HN up to date with the server meltdown situation, but your comment does not address my (admittedly first-world) problem at all. I know I can get the trial and register when the keys eventually arrive. What I am saying is that if they arrive after the sale ends, I won't be able to get promo price on 1 year license extension, as to buy the extension one has to provide the license key.
Re:JetBrains Doomsday Sale - 75% off for 24 hours only on Thursday December 20, 2012 @05:33PM (#4950473)
That really sucks, I finally managed to get PyCharm and WebStorm today and was hoping to also get 1yr license extension for both. It looks like it is not possible w/o the license key, which is nowhere to be seen so far...
Re:JetBrains Doomsday Sale - 75% off for 24 hours only on Thursday December 20, 2012 @04:04PM (#4949978)
You only need one license (as long as only one instance of the ide is running).
Re:JetBrains Doomsday Sale - 75% off for 24 hours only on Thursday December 20, 2012 @12:42PM (#4948877)
This is something that I was also confused about. Is it exactly the same, or almost the same, and if it is not, then what are the tradeoffs? After a bit of googling I found this on PyCharm's confluence site: http://confluence.jetbrains.net/display/PYH/PyCharm+vs.+Inte...

I decided to just get PyCharm, considering that I will not need Jython intergration, interface is less cluttered, and IntelliJ Python plugin does not handle Flask projects natively, whereas PyCharm does.

One other thing to consider is that If I don't need most of IntelliJ's features, paying $100 a year for updates is a bit wasteful if all that I need is covered by a $59 PyCharm renewal.

edit: typos

Older »