Better HN
topnewbestaskshowjobs
Log inSign up

devposter

124 karma · joined Dec 19, 2017 (8y ago) · 25 submissions

Submissions

1.

How to Plot Valentine Heart with Python and Matplotlib(youtube.com ↗)

6 points · by devposter · 6y ago · 2 comments

comment 7y ago · link · parent

Including the comment in first line and blank lines there are 30 lines. If we ignore them, yes, 20 lines.

comment 7y ago · link · parent

> My wife and I recently watched a two-night 7-hour PBS special “Joseph Campbell, and the Power of Myths.” Campbell, a college professor for almost 40 years, said that he always advised his students to “follow their bliss” and not to settle for jobs and avocations that are not what they truly want to do.

Follow your bliss -- Such a succint and delightful advice!

comment 7y ago · link · parent

Me too. When I get a new system, the first thing I do is map CapsLock to Escape.

On Windows, I use the Uncap [ https://github.com/susam/uncap ] tool because it does not require install or restart. The tool has good documentation to map CapsLock to Escape for Linux and MacOS too.

On the flip side, I struggle to use Vim when I need to do so someone else's computer. :-D

comment 7y ago · link · parent

They are called "windows" in Vim. That's why many related commands begin with Ctrl+w.

comment 8y ago · link · parent

I don't think Walmart is allowed to compete directly in India due to FDI regulations.

comment 8y ago · link · parent

Are you serious about these links as examples of nice things that Amazon has open sourced? Most of the projects there are development kits to work with Amazon products only.

comment 8y ago · link · parent

For those wondering what these projects are, here are the direct URLs to their project pages:

- https://hapijs.com/

- http://lacinia.readthedocs.io/

Here are a couple of other interesting Walmart Labs projects I came across:

- https://www.electrode.io/

- https://github.com/walmartlabs/thorax

- http://oneops.com/

comment 8y ago · link · parent

A delightful thing I notice in their GitHub page is that Clojure seems to be the second most used language in Walmart Labs.

Seriously, Walmart and Clojure? Who would have imagined! I always thought of Walmart as a boring and traditional company that sells cheap goods. So when I heard about Walmart Labs, I thought all their coding must be in C++ or Java or even Cobol (who knows!).

But to see them using a dialect of Lisp like Clojure and Go more than Java and C++ warms my heart. :-)

comment 8y ago · link · parent

Amazon has built a giant business on top of open source technologies. Don't you think it is natural for the open source community to expect that Amazon give something back to them out of courtesy?

The GP asked for a good thing that came out of Walmart Labs hinting at the idea that good things come out from Amazon but not Walmart Labs. Then a few commenters pointed out a few links showing the good things that came out of Walmart Labs. All of these good things happen to be open source. So it is quite natural to ask what good things Amazon bothered to open source after having built a billion dollar business on top of open source.

comment 8y ago · link · parent

FSF's pedantry in the "Emacs in Perl" joke page is fascinating:

"The Free Software Foundation does not claim copyright for this joke."

comment 8y ago · link · parent

Hugo is nice and extremely fast. But one thing that I find unintuitive in Hugo is how the layout files are arranged. I can never remember them without referring to the documentation or the source files of an existing Hugo site everytime I need to create a new Hugo site.

For example, the base layout template needs to go to themes/<THEME>/layouts/_default/base.html but the layout for a blog needs to go to themes/<theme>/layouts/<TYPE>/single.html. Then there is list type layout too to define the blog index pages. Is the home page a single page or a list page? Can the entire home page be defined as a base template? It gets confusing.

Then the whole {{ define <BLOCK> }} and {{ block <BLOCK> }} syntax to embed one template in another is quite unintuitive as well. I think Jekyll has much more sane layout that is easy to keep in head. Also in Jekyll one can define list pages without any special naming convention just by using its templating for-loops. I find Hugo less intuitive than others but the fact that Hugo does not require me to learn Ruby is a win.

Custom written shell commands or Python code or even plain SSI includes are a great way to host static content too.

comment 8y ago · link · parent

Do you have the link to the studies?

comment 8y ago · link · parent

I used to believe I am a night person. Once upon a time I would remain awake until 2 a.m., sometimes until 4 a.m. too, hacking away on some interesting technical problem with no fixed time for when to go to bed. It was impossible for me to wake up before 9 a.m. My professional working hours were between 1:00 PM and 9:00 PM. Since I was working remotely, this scheduled worked fine and led me to believe I am a night person.

About two years ago, I got a non-remote regular job where I need to travel across the city to get to my office. I began waking up early at 6:00 a.m. to reach office early before the traffic begins to peak. My professional working hours are now 6:30 a.m. to 2:30 p.m. My personal hacking hours are 6:00 p.m. to 8:00 p.m. I go to bed by 10:00 p.m. I have become a morning person and I see no difference in productivity.

If I had to choose if one is better than the other, although it would be a difficult choice, I would choose being a morning person is better for the sole reason that I go to bed at a fixed time and I don't keep hacking away at problems indefinitely until 4:00 a.m. when both body and mind are tired.

But at the same time, if my circumstances changed and I had to turn into a night person again, I don't think I would have any difficulty doing that.

I think human beings cannot be categorized into such black and white categories for many things. We are, by nature, adaptable species.

comment 8y ago · link · parent

Why do you think it should be difficult?

I almost always interview my immediate management chain (immediate manager and boss of my immediate manager) before taking a job.

comment 8y ago · link · parent

If someone says cross platform and it supports Linux, Mac, and BSDs, that is good enough for me. I have not done any development work on Windows in my entire life just like I have not done any development work on my Android phone.

Just offering a counterviewpoint.

17.

TopHN – When you have time for only one Hacker News story(tophn.org ↗)

10 points · by devposter · 8y ago · 2 comments

18.

A JavaScript library for working with audio(github.com ↗)

2 points · by devposter · 8y ago · discuss

19.

The Echo Dot was the best-selling product on Amazon this holiday season(techcrunch.com ↗)

186 points · by devposter · 8y ago · 399 comments

20.

RMS lifestyle(stallman.org ↗)

1 points · by devposter · 8y ago · discuss

21.

Census Records Leaked in Marketing Firm's Exposure of 123M Households(darkreading.com ↗)

1 points · by devposter · 8y ago · discuss

22.

Apple revises its controversial guidelines on template-based apps(techcrunch.com ↗)

4 points · by devposter · 8y ago · discuss

23.

Alibaba Cloud is opening its first data center in India(techcrunch.com ↗)

1 points · by devposter · 8y ago · discuss

24.

Massive Cloud Leak Exposes Alteryx, Experian, US Census Bureau Data(darkreading.com ↗)

9 points · by devposter · 8y ago · 1 comment