News for hackers. Stuff that matters.

RazerM

Re:Quirks of Python Package Versioning on Thursday August 03, 2023 @12:07PM (#36987777)
> to parse, compare, and reason about Python versions.

If in addition to the above you want to mutate Python versions, you may consider my parver package[1]. It also doesn't normalise the input unless you ask it to, so you can preserve your preferred format after mutating.

[1]: https://github.com/RazerM/parver

Re:PostgreSQL anti-patterns: read-modify-write cycles (2014) on Wednesday December 21, 2016 @12:20PM (#13230799)
SQLAlchemy suppports optimistic concurrency control[1] and row level locking[2]

[1]: http://docs.sqlalchemy.org/en/latest/orm/versioning.html

[2]: http://docs.sqlalchemy.org/en/latest/orm/query.html#sqlalche...

> And, if you want an example of what atheists do during times of hardship, look to soviet Russia or even Nazi Germany.

There's nothing about being an atheist that promotes hatred. There isn't a holy text for Atheism that tells people to believe or do things.

Besides, it's a tired argument without merit: https://michaelsherlockauthor.wordpress.com/2014/10/21/the-a...

Re:Why You Still Can’t Use a Chip Card Everywhere on Monday July 25, 2016 @05:56AM (#12157554)
Don't you have to sign? I'm from the UK but in Germany I have to sign sometimes and it takes longer to print a receipt and sign it than to enter 4 digits. This is assuming a fast terminal; I've used slow ones in the past.
Re:Working with Binary Data in Python on Monday December 07, 2015 @05:49AM (#10688686)
Have you tried bitarray[1]?

[1]: https://pypi.python.org/pypi/bitarray

Re:OS X Command Line Utilities on Thursday May 15, 2014 @03:58AM (#7748291)
It seems odd to have

  open /Applications/Safari.app/
as an example, when

  open -a safari
does the same thing.
Re:Apple security rules leave inherited iPad useless on Wednesday March 05, 2014 @10:29AM (#7347462)
Activation Lock prevents them being able to activate the device after restore without the mother's Apple ID and password.
Re:Warning: Google Authenticator upgrade loses all accounts on Wednesday September 04, 2013 @05:45AM (#6326495)
You can store the key (the alternative to using a QR code) you're given to set up 2FA in the first place.
From the HN Guidelines [1]:

> On-Topic: Anything that good hackers would find interesting. That includes more than hacking and startups. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual curiosity.

> Off-Topic: Most stories about politics, or crime, or sports, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably off-topic.

[1]: http://ycombinator.com/newsguidelines.html

From the reference frame of the garage, the ladder is moving with a relativistic velocity and therefore experiences length contraction. From the equally valid reference frame of the ladder, it is the garage that is moving with a relativistic velocity, making it even smaller (so the ladder wouldn't fit).
Not everyone studies this level of physics at all, and it certainly "gratifies one's intellectual curiosity".
Re:Stanford Javascript Crypto Library on Friday August 30, 2013 @06:59AM (#6301093)
Off-topic, but 'masel' is the Scots word for 'myself'.
Re:A Real Keyboard for Programmers? on Thursday August 29, 2013 @02:22PM (#6297573)
Yeah, I type 'properly' with every key belonging to a specific finger. I can only press a few keys belonging to my left index and middle finger while pressing shift, the others require an awkward hand position.
Re:A Real Keyboard for Programmers? on Thursday August 29, 2013 @01:40PM (#6297232)
What's wrong with caps lock? Only when using an editor is there an easy shortcut to capitalise multiple characters at a time.

Typing a word in caps using the shift keys is uncomfortable due to alternating which hand presses shift.

Re: I'm Building a GitHub for Writers on Thursday August 29, 2013 @01:23PM (#6297112)
This site doesn't work very well on mobile http://imgur.com/opmjUGn
Re:The cardinal UX mistake we made, you might be making it too on Thursday August 29, 2013 @09:48AM (#6295777)
I was about to post an identical comment http://imgur.com/Pdwf6HW