News for hackers. Stuff that matters.

duerrp

Re:I hate almost all software (2011) on Tuesday February 07, 2017 @04:39AM (#13588250)
> 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.)
This... :set gui=none
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

Re:So you think you know C? on Wednesday November 09, 2016 @01:34AM (#12906749)
Thanks for the tip, your link is missing an A at the end though...

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

Re:The Beauty of Bounded Gaps (2013) on Sunday November 06, 2016 @10:01PM (#12888485)
There's a nice documentary on Zhang (and the progress his work triggered) here:

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

Re:Turning off syntax highlighting on Sunday November 06, 2016 @09:58PM (#12888471)
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.

Re:How I built a keyboard by hand on Tuesday October 11, 2016 @05:43AM (#12682805)
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!
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.

Re:Uber's Failure in Japan on Saturday August 27, 2016 @01:08AM (#12371108)
I was wondering the same thing...
That's a great metaphor...
Re:Google deletes artist’s blog, a decade of his work on Friday July 15, 2016 @07:20AM (#12100176)
Not sure if it's the best way or not, but I use offlineimap...
Re:Run code inline in Atom using Jupyter kernels on Friday July 15, 2016 @07:12AM (#12100141)
Org mode rocks! And with ob-ipython you basically get same functionality as the notebook...

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

Re:Tesla confirms “Autopilot” crash in Montana on Wednesday July 13, 2016 @05:30AM (#12084982)
It is misleading though...
Re:Tesla confirms “Autopilot” crash in Montana on Wednesday July 13, 2016 @05:29AM (#12084979)
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.

Re:Go Terminal_ Elegant and Efficient Linux Terminal on Wednesday July 06, 2016 @11:25PM (#12047318)
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.
I don't know why this is down... the article is from 2012.
Re:Nim for scientific computing: Back to the future on Thursday October 22, 2015 @12:27AM (#10430399)
Sounds very interesting... I'd love to have a look.
Re:IBM is still making ThinkPad keyboards on Monday October 05, 2015 @08:00PM (#10335877)
That sounds great! I am trying it right now...

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

Re:Show HN: Pyexperiment on Thursday August 13, 2015 @10:39PM (#10058349)
Ok, I gave the motivating example another shot... not sure if it helps, but please let me know if you have any suggestions.
Re:Show HN: Pyexperiment on Monday August 10, 2015 @11:35PM (#10038961)
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).

Re:Show HN: Pyexperiment on Monday August 10, 2015 @11:24PM (#10038936)
Thanks for the feedback. I will try to improve the example and make it more "experimental".
Re:Show HN: Pyexperiment on Sunday August 09, 2015 @12:22PM (#10030589)
Interesting, thanks. I didn't know yeoman (nor much javascript), but I am looking into it right now.
Re:Show HN: Pyexperiment on Sunday August 09, 2015 @09:36AM (#10030256)
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?
Re:Show HN: Pyexperiment on Sunday August 09, 2015 @08:18AM (#10030130)
Thanks for the comments, I just added another motivating example right at the top of the README. Is it clearer now?
Re:Show HN: Pyexperiment on Sunday August 09, 2015 @07:42AM (#10030084)
Thanks, very interesting. I am reading through your code right now... maybe there's something I can add to pyexperiment.
Re:Show HN: Pyexperiment on Sunday August 09, 2015 @07:41AM (#10030079)
Thanks, I'll try to rephrase the readme...
Re:Show HN: Pyexperiment on Sunday August 09, 2015 @07:40AM (#10030077)
Thanks for the suggestion, I'll try to put more examples in the readme.
Re:Show HN: Pyexperiment on Sunday August 09, 2015 @04:47AM (#10029888)
>> 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.

Re:Show HN: Pyexperiment on Sunday August 09, 2015 @04:36AM (#10029872)
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.

Older »