Better HN
topnewbestaskshowjobs
Log inSign up

duerrp

57 karma · joined Aug 9, 2015 (11y ago) · 33 submissions

Submissions

comment 9y ago · link · parent

> 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.)

comment 9y ago · link · parent

This... :set gui=none

comment 9y ago · link · parent

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

comment 10y ago · link · parent

Thanks for the tip, your link is missing an A at the end though...

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

comment 10y ago · link · parent

There's a nice documentary on Zhang (and the progress his work triggered) here:

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

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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!

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

I was wondering the same thing...

comment 10y ago · link · parent

That's a great metaphor...

comment 10y ago · link · parent

Not sure if it's the best way or not, but I use offlineimap...

comment 10y ago · link · parent

Org mode rocks! And with ob-ipython you basically get same functionality as the notebook...

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

comment 10y ago · link · parent

It is misleading though...

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

I don't know why this is down... the article is from 2012.

17.

Raffaello D'Andrea of ETH Zurich and Verity Studios Demos New Generation of UAVs(ted.com ↗)

1 points · by duerrp · 10y ago · discuss

comment 11y ago · link · parent

Sounds very interesting... I'd love to have a look.

comment 11y ago · link · parent

That sounds great! I am trying it right now...

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

comment 11y ago · link · parent

Ok, I gave the motivating example another shot... not sure if it helps, but please let me know if you have any suggestions.

comment 11y ago · link · parent

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).

comment 11y ago · link · parent

Thanks for the feedback. I will try to improve the example and make it more "experimental".

comment 11y ago · link · parent

Interesting, thanks. I didn't know yeoman (nor much javascript), but I am looking into it right now.

comment 11y ago · link · parent

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?

comment 11y ago · link · parent

Thanks for the comments, I just added another motivating example right at the top of the README. Is it clearer now?

comment 11y ago · link · parent

Thanks, very interesting. I am reading through your code right now... maybe there's something I can add to pyexperiment.

comment 11y ago · link · parent

Thanks, I'll try to rephrase the readme...

comment 11y ago · link · parent

Thanks for the suggestion, I'll try to put more examples in the readme.

comment 11y ago · link · parent

>> 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.

12