HNHacker News
TopNewBestAskShowJobs

duerrp

57 karma · joined August 9, 2015

submissionscomments
duerrp··on I hate almost all software (2011)
> just a WM (XMonad), a browser (Firefox+vimperator), Emacs > and a terminal (urxvt, which I only use occasionally) Exactly my setup... now if only Firefox would not peg a CPU core or two in the background and slow down to a grind ever so often... (despite NoScript, uBlock origin etc.)
duerrp··on Choose Firefox Now, Or Later You Won't Get A Choice (2014)
This... :set gui=none
duerrp··on Show HN: Augmented Reality App to Predict the Sun and Moon Location
There's a lot of libraries that do the hard work for you though... Anyway, if an EKF is too much effort, you could also try the "Madgwick" filter:

Madgwick, S. O., Harrison, A. J., & Vaidyanathan, R. (2011). Estimation of imu and marg orientation using a gradient descent algorithm. In Proceedings of the IEEE International Conference on Rehabilitation Robotics

duerrp··on So you think you know C?
Thanks for the tip, your link is missing an A at the end though...

https://www.youtube.com/watch?v=hEx5DNLWGgA

duerrp··on The Beauty of Bounded Gaps (2013)
There's a nice documentary on Zhang (and the progress his work triggered) here:

https://www.youtube.com/watch?v=XIIyKWxGhEA

duerrp··on Turning off syntax highlighting
did you try magit?

Maybe it is of limited use for non-emacs users, but imho it's a fantastic way to use git with a perfect balance between making simple things very easy to do and allowing (almost) anything you can do with the CLI while providing excellent visual feedback.

duerrp··on How I built a keyboard by hand
The Japanese keyboard layout is great for that! I am using Control on the Muhenkan and Henkan buttons left and right of the space bar and Alt on Alt and Katakana/Hiragana/Romaji buttons next to them. I also have Caps lock mapped to Control if pushed and Esc when released without another key (xcape) - works great!
duerrp··on Texture – As open as LaTeX and as simple as a classic word processor
As a side note, if you are already in emacs, you could write your articles in org-mode instead of LaTex.

It's gotten to a point where I am starting to see Latex exclusively as a language to compile to, not something you want to write yourself.

If you haven't used a well-configured org-mode, have a look at this demo for example https://www.youtube.com/watch?v=2t925KRBbFc. There's nothing out there (open source or proprietary) that comes close for scientific work in my opinion.

duerrp··on Uber's Failure in Japan
I was wondering the same thing...
duerrp··on Code Is Never “Perfect”, Code Is Only Ever “Good Enough”
That's a great metaphor...
duerrp··on Google deletes artist’s blog, a decade of his work
Not sure if it's the best way or not, but I use offlineimap...
duerrp··on Run code inline in Atom using Jupyter kernels
Org mode rocks! And with ob-ipython you basically get same functionality as the notebook...

https://github.com/gregsexton/ob-ipython

duerrp··on Tesla confirms “Autopilot” crash in Montana
It is misleading though...
duerrp··on Tesla confirms “Autopilot” crash in Montana
Also, are they counting all previous versions of the software instead of just the latest?

Moreover, I wonder how the human drivers in the statistics fare if you correct for drunk driving / using cellphone, etc. In my opinion, any autopilot worth it's name should be an order of magnitude better than the average human driver.

duerrp··on Go Terminal_ Elegant and Efficient Linux Terminal
While I agree with you that urxvt is a great tool, I disagree with the suggestion that the terminal is "a solved problem" (or that vim is perfection). There is a lot of room for innovation, though not necessarily in the direction that Go Terminal is going.
duerrp··on Fatigue Is a Brain-Derived Emotion that Regulates to Ensure Protection (2012)
I don't know why this is down... the article is from 2012.
duerrp··on Nim for scientific computing: Back to the future
Sounds very interesting... I'd love to have a look.
duerrp··on IBM is still making ThinkPad keyboards
That sounds great! I am trying it right now...

FYI it's here: https://github.com/alols/xcape

duerrp··on Show HN: Pyexperiment
Ok, I gave the motivating example another shot... not sure if it helps, but please let me know if you have any suggestions.
duerrp··on Show HN: Pyexperiment
Thanks for the kind words. Until I left academia I used to work with matlab a lot, and pyexperiment is probably a result of trying to get that experience while making scripts that can easily be shared along with the data needed to run them.

E.g., the issue with irreversible mutation of data is addressed in pyexperiment with rotating state (and log) files. For example if you store the state of your experiment in one run, and then change it in the next, you will get a backup of the old state with a numerical extension (by default up to 5 backups are rotated). Moreover, pyexperiment by default comes with commands to display stored state and configuration options (though they still need to be improved), and both are stored in formats compatible with a host of other software (including matlab).

Btw., along the same lines, I love ipython notebooks, but the way I use them makes them very hard to share, and compared to plain python scripts, version control is a pain (even with the usual hacks to make diffs readable).

duerrp··on Show HN: Pyexperiment
Thanks for the feedback. I will try to improve the example and make it more "experimental".
duerrp··on Show HN: Pyexperiment
Interesting, thanks. I didn't know yeoman (nor much javascript), but I am looking into it right now.
duerrp··on Show HN: Pyexperiment
Thanks for your feedback. I see your point, but at this point I am kind of attached to the name - as a researcher many of my scripts are related to some kind of experiment. This also explains the NumPy and matplotlib dependencies. As for structlog, if I understand the documentation correctly, you could easily add structlog to your project on top of pyexperiment, right?
duerrp··on Show HN: Pyexperiment
Thanks for the comments, I just added another motivating example right at the top of the README. Is it clearer now?
duerrp··on Show HN: Pyexperiment
Thanks, very interesting. I am reading through your code right now... maybe there's something I can add to pyexperiment.
duerrp··on Show HN: Pyexperiment
Thanks, I'll try to rephrase the readme...
duerrp··on Show HN: Pyexperiment
Thanks for the suggestion, I'll try to put more examples in the readme.
duerrp··on Show HN: Pyexperiment
>> So...it's for configuration management? What do >> "experiments" have to do with this?

Yes and no, pyexperiment handles configuration management for you (by using argparse and configobj etc.), but it's main point is that it saves you from having to set up these components. My main goal was to reduce the overhead of writing the same "framework" code every time, so pyexperiment sets you up with simple one-command solutions for many common tasks.

>> What does this package do that isn't done by click, >> docopt, or argparse?

It will set you up with a framework where e.g., you don't have to write the same boilerplate code to get a multiprocessing cabable logger that logs to a file. You just call log.debug("bla") and that's it.

duerrp··on Show HN: Pyexperiment
Pandas and matplotlib are great, I use them all the time. Yet whenever I write a python script for such experiments, beyond some point, I find myself writing code that parses command line arguments, handles simple configuration options, saves the results of my computation in a shareable way, etc.

Pyexperiment collects these bits and pieces into a library where I can just write the relevant stuff - it's mainly solving my own pain-point and I thought I could share it.

duerrp··on Show HN: Pyexperiment
I'd love to hear some feedback...