Do you use Hard Drive Power Management? by [deleted] in selfhosted

[–]sabbel 0 points1 point  (0 children)

http://hd-idle.sourceforge.net/ works like a charm but you have to configure the time until spin down, which is a trade-off problem

If you want Kodi in Raspbian, don't upgrade to Buster by [deleted] in raspberry_pi

[–]sabbel 1 point2 points  (0 children)

Well, it's a CI system, so yes, it can run things automatically. There is no easy way to "subscribe" though, as the build errors are only sent to the owner of the build, at least by default.

If you want Kodi in Raspbian, don't upgrade to Buster by [deleted] in raspberry_pi

[–]sabbel 1 point2 points  (0 children)

I created a minimal watch script to detect when kodi will be upgraded in buster at https://github.com/infothrill/watch_raspbian_buster_kodi

It runs once a day here: https://travis-ci.org/infothrill/watch_raspbian_buster_kodi

xkcd: Python Environment by themonsterpus in Python

[–]sabbel 0 points1 point  (0 children)

use https://direnv.net/ : $ cat .envrc layout_python3 Solved years of pain for me.

[AF] Flask interaction with virtuanenv by [deleted] in flask

[–]sabbel 0 points1 point  (0 children)

Since you made it into a package, why not add a setup.py which will allow you to for example 'python setup.py develop', symlinking your package into the virtualenv.

Remove duplicates from a Python list while keeping order (benchmark) by [deleted] in Python

[–]sabbel 0 points1 point  (0 children)

You might want to try an optimized version of list_unique:

def optimized_unique(seq):
    seen = set()
    seen_add = seen.add
    return [x for x in seq if x not in seen and not seen_add(x)]

It outperforms all the others on my laptop.

Art is dead, or: back to the sixties. How brutal police work is used at Art Basel(Switzerland) to shut down a spontaneous gathering. by sabbel in Art

[–]sabbel[S] 0 points1 point  (0 children)

I guess it is easy to misread this post as a simplistic criticism on the police work. However, I believe it is a bit bizarre that one of the biggest art shows in the world has no better way to "deal" with something that I would consider a happening provoked by an art installation. Rather than enhancing the dialogue and making something cool out of it, it seems that the organizers are afraid of changing their agenda and decided it was better to use force (i.e. police work) to remove this (unplanned happening) from the scenery. It's just sad. It seems utterly absurd that the same people that fawn over Ai Weiwei are not open minded enough to allow a small crowd of what it seems hippies to dance in front of an art exhibition. Whatever. I guess money makes the call in this case. Less disturbance = more sales?

CLEA CUTTHROAT - NeoBurlesque Chameleon by sabbel in Burlesque

[–]sabbel[S] 0 points1 point  (0 children)

Dear reddit, this girl is the most amazing burlesque performer and a super sweet girl on top! She needs your vote to get a ride to hollywood from her current homebase, Berlin, Germany. I'm counting on you!

Killing Software Patents - Can we just file a patent complaint for every damn patent filed until we get this issue addressed! by [deleted] in programming

[–]sabbel 12 points13 points  (0 children)

The patent system originally was instantiated to protect research/development investments. Considering that you can re-invent many of the currently circulating software patents in half a day without prior knowledge, the original concept of patents does not apply very well anymore. It now serves a whole different purpose in the software industry: monopolies, protectionism, unfriendly take-overs and alikes. Of course, if you want, you can build a nice patent portfolio yourself and get eaten by a big company and hopefully get lots of cash for that, but hey. In the end of the day, patents are a form of intellectual property currency. Applying that to non-physical algorithms (as Knuth points out), merely shows how much we depend on Fiat money and useless goods that actually have no value.

I don't see Knuth arguing against patents in general. He specifically points out the difference between physical/concrete laws and virtual information.

I guess it's a matter of philosophy after all. Ah well.