News for hackers. Stuff that matters.

arocks

Re:Happy 20th Birthday, Django on Tuesday July 15, 2025 @12:08PM (#44572629)
Re:Ask HN: Does procrastination advice help you? on Friday February 23, 2024 @08:52AM (#39480548)
No it really didn't help much. There are a number of reasons. A tip or a hack cannot solve what is essentially an emotion regulation problem. You probably don't procrastinate on all tasks. For example you can probably read reddit or play games all day. But you dread even starting some tasks. It might be due to multiple reason: past failures, critical feedbacks etc. You will need to introspect and solve that complicated emotion.

Of course, if you notice a broad pattern in every part of your life please consider professional help.

Re:Nvidia Vulkan Ray Tracing Tutorials on Saturday April 04, 2020 @12:40AM (#22776230)
At the risk of tooting my own horn, here is a ray tracing tutorial series in Python: https://www.youtube.com/playlist?list=PL8ENypDVcs3H-TxOXOzwD...
Re:Ask HN: What habits make a programmer great? on Thursday July 06, 2017 @12:20PM (#14711493)
https://chrome.google.com/webstore/detail/github-repository-...

I think this Chrome extension called "GitHub Repository Size" might be exactly what you are looking for

Re:Dutch men confirmed as world's tallest on Tuesday July 26, 2016 @05:27AM (#12164367)
Countries like India are heavy users of diary products. Lactose intolerance is rare too. But always fare very poorly in the height rankings. So it cannot be concluded that it is diary products alone.
Re:Stop Comparing JSON and XML on Tuesday January 05, 2016 @03:20AM (#10842033)
It is a great example "Worse is better"[1]. XML has a lot more functionality than JSON but very few people can fully understand all the X* family of specifications, whereas JSON is a _lot_ easier and handles majority of the use cases.

There are many, many real life situations where a developer needs to choose between using JSON, XML or YAML to store their configuration data, message formats etc. Simply stating that JSON is good only in one scenario and XML must be used in every other is over-simplification.

[1]: https://www.dreamsongs.com/RiseOfWorseIsBetter.html

Re:Guide to Personal Productivity Methods on Wednesday December 02, 2015 @06:35AM (#10662354)
My biggest problem with these list making solutions are what I call the collateral tasks. For example, my list says "Buy a Christmas gift for Jen".

When I start shopping online, I realize that I don't know much about Jen, so I need to call a friend. Lots of discussion later, I finalize on something to buy then I need to think of a personal note to write.

At the checkout, my banking application tells me that my internet password needs to be changed. The whole process gets aborted!

Probably, I exaggerated a little but my point being that each task involves a million micro steps which may or may not be anticipated. No wonder there is a lot of procrastination!

Re:Visual question answering using CNN+RNN on Monday November 30, 2015 @09:50AM (#10649634)
I have seen sites using captchas which ask such visual questions thinking that only a human can answer them. This project really makes me doubt the effectiveness of such techniques.
Re:The original Unix init system (1972) on Saturday September 12, 2015 @02:32AM (#10207470)
Wasn't Burroughs B5000 the first computer to have all system software written in a high level language in the 1960s?

[1]: https://en.wikipedia.org/wiki/Burroughs_large_systems#B5000

Re:Python Wheels on Tuesday August 04, 2015 @04:12AM (#10002181)
Actually using wheels on Windows is a superior solution for most packages now.
Re:OverType – The Over-the-Top Typewriter Simulator on Sunday August 02, 2015 @09:01AM (#9990593)
Another equally good simulator (built in Om, React): http://cmdrdats.github.io/undertype/
Re:What's new in Magit 2.x on Thursday July 23, 2015 @01:10PM (#9937075)
Even if you don't use Emacs, I believe you _have_ to try magit. It will quickly become an essential part of your git workflow. You could zoom out to grasp the overall state of your project, dive into specific details and perform intricate surgery of your git history, all with single-key presses. It is pure genius.
It seems most of the content is under "Standard YouTube Licence"[1]. Since this is historical footage I would have preferred if it was under Creative Commons, so that it could be included in other videos. Anyways, this makes YouTube even more useful for preserving and making notable videos more accessible.

[1]: https://www.youtube.com/static?template=terms

Re:Two.js on Thursday July 16, 2015 @10:59PM (#9901091)
Is it possible to use this for creating videos with motion graphics? Even the possibility of a frame by frame render would be awesome.
Re:A game whose source code fits in one tweet on Monday June 29, 2015 @11:15PM (#9802706)
If you liked this then you might find my Python one liner games interesting [1]. They fit a tweet in most cases.

[1]: http://arunrocks.com/python-one-liner-games/

Re:A brief introduction to OCaml on Tuesday June 16, 2015 @05:48AM (#9724711)
Right. Since you mention the installation instructions from Real World OCaml and the examples in the book need you to use Core, it is likely that beginners would experience these issues.
Re:How to write a book in Emacs on Sunday June 14, 2015 @10:43AM (#9715065)
Thank you so much for writing this. It is useful not just for Emacs users but to anyone who prefers writing their book in a text-based markup rather than Microsoft Word. It also explains how to collaborate with someone who uses Word exclusively.

Unfortunately, every tool has a quirk and we eventually need to settle on a workflow that somehow works, even though everything might be open source as you have described in the case of Pandoc. But I believe Emacs is the best authoring tool for books due to its versatility.

Re:A brief introduction to OCaml on Sunday June 14, 2015 @04:05AM (#9714140)
It seems `int_of_float` and `float_of_int` are deprecated by the Jane Streets Core library. It even throws errors on utop. I believe they need to be replaced by `Int.of_float` and `Float.of_int` respectively.

EDIT: Some more corrections:

1. `List.hd []` doesn't raise an error as its return type is an option. So the result is a `None`.

2. `List.map` and `List.filter` arguments should be reversed. First argument should be a list and the second should be the mapping function.

Re:Is ReactJS really fast? on Monday June 01, 2015 @09:57AM (#9638564)
While the article shows some really good performance improvements, the tone is really sensationalist. While challenging 'comparison demos' in leiu for proof, the author responds with... yet another comparison demo

The title is not entirely falsified either - ReactJS is fast out of the box. Other frameworks can be tuned to achieve comparable speeds. But in most cases, ReactJS still wins.

Sorry, you are right. I had meant to write pyglet as my preferred option.
This is an excellent option to teach programming to kids. Pygame has been always the recommended game library for Python due to its maturity. But Pygame had been my preferred option as it had less boilerplate and seemed more Pythonic. However, its project activity is quite low.

Pygame Zero seems like the best of both worlds.

Re:Haskell at Front Row Education on Sunday May 10, 2015 @01:45PM (#9520666)
> ...the time-tested Real World Haskell is now fairly outdated, but the more recent Beginning Haskell is perfectly relevant.

Wow, I was not aware of this.

It will surely work in Django 1.8. But whether the Django 1.8 recommendations like turning `urlpattern` into a list [1] or using `TEMPLATES` setting [2] have been applied is a different matter altogether.

[1]: https://github.com/mineta/taskbuster-boilerplate/blob/master...

[2]: https://github.com/mineta/taskbuster-boilerplate/blob/master...

Re:10X Programmer and Other Software Engineering Myths on Tuesday March 31, 2015 @09:24AM (#9295939)
I am glad that someone took the efforts to dig around and dispel these myths. But then even more important is the question - why we don't have enough evidence based scientific studies in the world of software?

My guess is that it is because no two software projects are alike. Differences stemming from differing technology stacks, to domains or people skills, it is practically impossible to generalize anything across them.

Unless we all standardize on a one true way of software engineering, such folklores will continue to exists and there will be a dearth in repeatable conclusions.

PS: However, I do agree with Laurent that we can work towards aggregating numbers from several real software projects than rely on unsubstantiated folklore.

Re:Introduction to KumaScript on Monday March 30, 2015 @06:52PM (#9293164)
The wiki platform itself, i.e. Kuma, is written on Django [1]. Along with KumaScript, the architecture is useful to understand how a modern wiki can be designed.

[1]: https://developer.mozilla.org/en-US/docs/MDN/Kuma

Older »