marekmroz | 5 years ago | on: Jack Ma makes first live appearance in three months in online meet
marekmroz's comments
marekmroz | 12 years ago | on: Flask API – Browsable Web APIs for Flask
marekmroz | 12 years ago | on: PhantomJS, Selenium, and Django: Headless Browser Testing for the Rest of Us
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/)
marekmroz | 12 years ago | on: FizzBuzz solved using only bit twiddling
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
...marekmroz | 12 years ago | on: “The real problems are with the back end of the software”
[1] Quoted from the linked article
marekmroz | 12 years ago | on: “The real problems are with the back end of the software”
[1] http://jacobinmag.com/2013/10/delusions-of-the-tech-bro-inte...
marekmroz | 12 years ago | on: Google handed over years of e-mails belonging to WikiLeaks chatroom admin
marekmroz | 13 years ago | on: Too scared to write a line of code
Surely, you mean abstraction?
marekmroz | 13 years ago | on: Good sleep, good learning, good life
marekmroz | 13 years ago | on: City of Munich disagrees with HP's Linux migration study
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...
marekmroz | 13 years ago | on: Iceland Kicked Out FBI Agents Who Flew in Unannounced to Investigate WikiLeaks
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.
marekmroz | 13 years ago | on: BlackBerry 10 Live Webcast
marekmroz | 13 years ago | on: Youth expelled from Montreal college after finding security flaw
marekmroz | 13 years ago | on: The Simple Math Behind Early Retirement
marekmroz | 13 years ago | on: A cry for help
marekmroz | 13 years ago | on: Via introduces APC Paper: A $99 Android PC
marekmroz | 13 years ago | on: White House raises petition signature threshold to 100K
marekmroz | 13 years ago | on: Backbone.js v0.9.10 Released
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/
marekmroz | 13 years ago | on: IBM Exec Husband of Aaron Swartz Prosecutor Takes to Twitter to Defend His Wife
* 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)
marekmroz | 13 years ago | on: IBM Exec Husband of Aaron Swartz Prosecutor Takes to Twitter to Defend His Wife