Huy Nguyen
huyng.com · Personal blog · on HN since 2009
Huy Nguyen is a developer who writes about Python, shell tools, and Mac utilities, and created the Bashmarks shell script.
What HN saysCommenters recommend his Bashmarks tool for bookmarking directories in the shell, and he himself points to an improved version.
16HN people shared it
4linked it in comments
13stories submitted
562story points
10 years agolast shared
2009people per year2026
Most-shared posts
- 1A guide to analyzing Python performance6 people · 93 points · first shared 2012 · 7 comments on HN
- 2Bashmarks - directory bookmarks for the shell3 people · 5 points · first shared 2013 · 1 comments on HN
- 3Bashmarks3 people · 2 points · first shared 2010 · discussion on HN
- 4Don't waste your time by cd-ing in the terminal1 people · 449 points · first shared 2011 · 118 comments on HN
- 5The CRM114 Discrimnator - Your own personal secretary on Mac OSX1 people · 6 points · first shared 2009 · discussion on HN
- 6Are cloud services the new subprime mortgage?1 people · 4 points · first shared 2009 · 3 comments on HN
- 7Don’t Hash Your Secrets, Here’s why in Python1 people · 2 points · first shared 2010 · discussion on HN
- 8Easy way to run multiple django sites off same code-base1 people · 1 points · first shared 2009 · discussion on HN
- 9Geocams1 people · first shared 2009
What HN people wrote when they linked it
makmanalp · 2017-04-20
I feel for you. Perhaps some of this may help:
It sounds like you're mostly having trouble with OpenCV, which has a horrid API, especially the python version adds another layer of confusion on top of it, and dumping things back and forth from opencv Mat objects to numpy arrays sucks and wastes time. The documentation also is fairly bad. The error messages, like you say, kinda suck. So I can't help you much with that but know that the opencv python bindings fall WAY below the standard of what's considered good. Stuff like simplecv is a bit better but doesn't cover nearly as much as OpenCV does.
Numpy itself is great though, for how little code you often need for a complex, vectorized matrix operation. I've used stuff like Eigen (or even boost matrices or raw BLAS stuff) which I think is way more painful to deal with. For the annoying cruft that any of those bring, the minor speed boost over numpy isn't worth it for me most of the time.
The other thing is, when folks complain about the slowness of python when doing computationally heavy stuff like this, it's often the situation that they have a bunch of vectorized operations, and in the middle somewhere, they stick in something like a regular python for loop, which is orders of magnitude slower. The trick, especially for hot loops, is to just avoid using anything but vectorized operations. In something like C++ of course you're less likely to notice this happening because there is much less overhead, but there'd still be an…
pmontra · 2014-07-04
I suggest bashmarks http://www.huyng.com/projects/bashmarks/ to bookmark directories and jump there with a quick command.
I also like to alias ..="cd .." and alias ...="cd ../.." to quickly navigate up.
ffffruit · 2011-08-10
Also good - bashmarks - directory bookmarks for the shell.
http://www.huyng.com/bashmarks-directory-bookmarks-for-the-shell/
huyegn · 2011-02-19
Hey Guys,
This is my blog.
FWIW, I've actually switched away from using the script mentioned in the link posted by OP and have moved towards using an improved version below.
http://www.huyng.com/bashmarks-directory-bookmarks-for-the-shell/
This new version has 3 commands:
- "s" for save current directory as a bookmark
- "g" for jump to bookmark's directory
- "l" for list all bookmarks.