Better HN
topnewbestaskshowjobs
Log inSign up

devnonymous

2,757 karma · joined Dec 2, 2013 (12y ago) · 829 submissions

Just your run of the mill anonymous developer named Steve. github, can ? https://github.com/lonetwin
Submissions

comment 10y ago · link · parent

Genuine question: Did the author not know about pushd / popd or was there a use case where pushd/popd were just not good enough?

comment 10y ago · link · parent

There isn't an builtin way to do this in bash but what you are asking for is 2 things:

* Trigger an action on changing a directory

* That action should be to change your bash history file

The second part is pretty easy to do -- you just change the $HISTFILE environment variable and export it. For the first part though, you can either use a naive little function that replaces bash's builtin `cd`[1] or you can use any one of the many tools specifically created for this sort of a thing:

  http://swapoff.org/ondir.html
  https://github.com/kennethreitz/autoenv
  http://direnv.net/
  https://github.com/cxreg/smartcd
Note however, that most unix tools are angnostic to the current working dir so...

  $ /path/to/cmd /some/other/path/to/argument
  $ cd /path/to && ./cmd /some/other/path/to/argument
  $ cd /some/other/path/to && /path/to/cmd argument
...might all do the same thing but will be saved in different history files if you implement what you need.

[1] http://superuser.com/a/296554/267793

comment 10y ago · link · parent

Of interest to people who don't already know, the minister in context here is a technocrat and a maker[1] and the prime minister of Singapore himself has know to have been a very good mathematician and coder[2].

[1] http://vivian.balakrishnan.sg

[2] http://arstechnica.com/information-technology/2015/05/prime-... https://en.m.wikipedia.org/wiki/Lee_Hsien_Loong#Education

comment 10y ago · link · parent

Of all the answers here that provide stats, I wonder what percentage of those have actually measured the time versus just giving numbers that 'feel about right'. If there is one thing I've learned about stats it is that 96.60% of people's gut feel is usually wrong ;-)

That said, about the question asked. I can attest to the fact that in general thinking and writing good tests greatly reduces time spent debugging. Also, adding judicious and useful logging for the critical / edge cases helps a whole lot.

comment 10y ago · link · parent

Nice talk (although I just read the highlighted transcript). Not the usual 'This is how we do it. We be so cool!' rather 'This is why we choose to do it this way, these are the tradeoffs and this is what doesn't work too well...'

636.

Show HN: A pythonic wrapper over atd to schedule deletion of files/directories(github.com ↗)

24 points · by devnonymous · 10y ago · 6 comments

637.

Auto-install missing python modules(lonetwin.github.io ↗)

2 points · by devnonymous · 10y ago · 1 comment

comment 10y ago · link · parent

What kind of reviews are you looking for (design or content) ?

What is the intent of the CV? (Eg: what do you wish to communicate? No goals or objectives in there, do you want to become a game programmer or do something else?)

what do you mean by 'good'?...

And lastly, why have you posted a jpg file?

639.

Show HN: A pythonic wrapper over atd to schedule deletion of files/directories(github.com ↗)

3 points · by devnonymous · 10y ago · discuss

comment 10y ago · link · parent

Great news! Better late than never! I hope they (or a client of theirs) create a BK backed service soon. I for one, think we need more than just github and altassian in the market if only to ensure the businesses don't take their users for granted (hint: sourceforge)

comment 10y ago · link · parent

So having a genuine need to be able to actually use tools that you wrote rather than something a company 'licenses' to you so that can modify, and share these tools is being a douche? Odd that you would think that companies that treat their users like untrustworthy hackers are not douches but those users are!

comment 10y ago · link · parent

I personally am unconvinced that the barrier to voice messaging is the interface. I think it is deeper than that. It is psychological. People are not (yet) comfortable speaking into inanimate objects that do not respond back instantly. I imagine that most people still feel silly speaking 'into' or 'at' an object and waiting. People don't type with their voice for the same reason they ask 'can you hear me' in a video conference or say 'hello' and wait for a response at an automatic gates, door bells that need people at the other end to respond or open, at drive in counters... etc.

That said, I completely agree with the WhatsApp bit. It is changing the way people interact...and it is surprising that it hasn't been as popular in the US.

comment 10y ago · link · parent

For those who found that interesting - There's an also a comic made using the foreword to ' Amusing ourselves to death ' which also contrasts the two:

http://highexistence.com/amusing-ourselves-to-death-huxley-v...

It's a pity the comic had to be removed from its original site citing copyright reasons. imho, it could have been considered as fair use. Sad.

644.

Big changes: I am leaving ownCloud, Inc. today – Frank Karlitschek(karlitschek.de ↗)

4 points · by devnonymous · 10y ago · discuss

645.

Consciousness occurs in 'time slices' lasting only milliseconds, study suggests(sciencealert.com ↗)

7 points · by devnonymous · 10y ago · discuss

comment 10y ago · link · parent

Sorry, I might've jumped the gun and read it in way that was unintended. The statement could very well have been '...That or a person's unique insight and persistence.'

I guess the reason I misread is because as I was reading the post I was thinking 'wow, that's awesome ! she did all of that despite being a woman in the 1800s (when typically I presume this behavior would be frowned upon)' and then I read the last bit and thought, is he saying that she did that because she was a woman ?

Interesting how the content you read (past tense) influences what you read.

comment 10y ago · link · parent

Oh that last statement... Such a disappointment. The entire post was well written and brought out the point of a partnership and 'doing what it takes', 'giving it all you've got' pretty well and then it ends with 'a woman's ingenuity and persistence'. Is that the point of the post? That sometimes you need a woman 'cos they bring some special ingenuity and persistence?

comment 10y ago · link · parent

The way I see it, donations are pretty similar to investments (without the expectations of returns). In other words if you are serious about giving and want to approach it systematically to optimize effect, do the same thing as investment - first do your research, and then spread out your donations over a reasonably wide range of options, instead of lumping it all into one charity. If you're very serious, keep monitoring performance. Of course this is all easier said than done and is also an oversimplification

649.

India's Government Is Becoming Increasingly Antiscience(blogs.scientificamerican.com ↗)

1 points · by devnonymous · 10y ago · discuss

comment 10y ago · link · parent

Two things:

a. No, you're probably not a bad programmer. Companies who recruit solely based on codility type questions are... How do I put it?... Not smart.

b. Learning things like analysis of algorithms, data structures and other computer science fundamentals is useful, even if you might not use them directly, they will influence the way you think.

It is never too late to start and given an open mindset, willingness to apply oneself and consistent practice, it won't take long to understand the basics of computer science. I usually recommend this is a starting point :

http://interactivepython.org/runestone/static/pythonds/index...

comment 10y ago · link · parent

If Facebook really had good intentions they would use the money they spend on these 'marketing campaigns' towards actually providing free internet access. These guys are disgusting. For once I hope the quirky and unpredictable Indian legal system actually turns on the crazy full blast and summons Mark Zuckerberg himself to answer ...

</venting>

652.

Put Facebook's Free Basics Service on Hold, TRAI Tells Reliance Communications(tech.economictimes.indiatimes.com ↗)

2 points · by devnonymous · 10y ago · 1 comment

comment 10y ago · link · parent

This is going very quickly from

  > Nothing to worry about, I trust the people in charge
  > to do the right thing, after all they did show better
  > judgement in the past
to

  > We hope the people in charge know what they are doing
The worst part is this (Narendra Modi/BJP led) government is enjoying popular support these days due to the progressive steps that they have taken as far as public spending on development and infrastructure are concerned. These appear to be well thought out and are pro-development (albeit might also be involved in cronyism)

However, in this one instance the government seems to think that Facebook's Free Basics thing is a 'Good Thing'. I hope better sense prevails !

654.

FB, Google, Wikipedia support net neutrality in US but violate it in India(scroll.in ↗)

4 points · by devnonymous · 10y ago · discuss

comment 10y ago · link · parent

No ! just say no ! Don't do it ! This repo is created by an emacs lovers who pretends to use vim and then creates subversive plugins just so that they can spread confusion, fear and chaos among vim users !!

:-)

Ah, well, whatever peels your banana...

656.

The Untold Story of America's Mass Killings(masskillings.usatoday.com ↗)

4 points · by devnonymous · 10y ago · discuss

comment 10y ago · link · parent

After many years and many jobs i've bought into this philosophy - good work environment, good work and good pay; 3 out of 3 is ideal, 2 out of the 3 is minimum. If you can't get at least 2 out of those 3, just quit. Don't worry about how it would look on your resume. If you know your stuff there will always be places who will accept 'toxic work environment' as a reasonable explanation for quitting a job. In fact, if you are going to use that excuse, it is better that you quit now rather than a year from now to avoid answering the question 'if it was so bad, why did you stick around for over a year? '

658.

Chennai floods: The Hindu not published for first time since 1878(bbc.com ↗)

156 points · by devnonymous · 10y ago · 25 comments

comment 11y ago · link · parent

Please add the 2014 tag
1
212223
28