News for hackers. Stuff that matters.

Walkman

Re:Websocketd on Saturday January 26, 2019 @08:12AM (#19006134)
> Each inbound WebSocket connection runs your program in a dedicated process. Connections are isolated by process.

I see you and 10,900 other "software developers" get the point of WebSocket. It's especially "impressive" when you written the whole thing in Go and could have used goroutines and channels, which could easily handle hundreds of thousand of connections (maybe millions). Terrible design!

For a long time I thought every software developer must be smart, but a lot of them don't see the big picture very often.

Why this bothers me so much? You created something that a lot of developers think is good enough, so less innovation will happen and more and more slow websites will appear because of tech like this...

Re:Cancelling Dropbox Pro is hard on Friday January 25, 2019 @06:00PM (#19003442)
Stupid shit like this is the reason I moved everything to my own Nextcloud instance. It's completely free, open source and surprisingly have a BETTER user interface than Dropbox. Rclone can sync to the WebDav interface.

https://nextcloud.org/

https://rclone.org/webdav/#nextcloud

Re:Reahl – A Python-only web framework on Sunday January 20, 2019 @04:45AM (#18952203)
You took a declarative language (HTML) and mad it imperative (Python). Why is that a good thing?
The article has 9 subchapters. It could have 2 or 3 by saying "Install GitLab", but maybe GitLab can't run on a Raspberry? If you are not restricted to a Pi however, try GitLab and you are done with all the steps described in this article.
Re:How to teach Git on Wednesday January 16, 2019 @02:27PM (#18924115)
This is very good explanation, but only explains what happens with the files, nothing about the graph what is a git repository. This talk helped me tremendously to finally understand what's going on in git: https://www.youtube.com/watch?v=1ffBJ4sVUb4

It is one of the best talks about git for beginners with an unfortunate title :D

Also, this interactive visual tool helped me to understand branching: https://learngitbranching.js.org/

For me personally, the only reason for doing something is always that if it is useful for others (solves a problem, creates real value in the world) it worth doing. Extra points if I could make money with it :). If not, I was not able to continue working on it.
Depression is a serious mental illness, in which 7-10% of the patients die (because of suicide). Not kidding. It is caused by the imbalance of serotonin and readrenalin neurotransmitters.

Depression is NOT a synonym for "bad mood" or "being tired", it's much more serious than that.

Re:Strong and Weak Technologies on Sunday January 13, 2019 @07:39AM (#18896445)
Very good point!
Re:Google cans the Chromecast Audio on Friday January 11, 2019 @05:45PM (#18887917)
It's about the stupid trend they kill things which have not enough interest. That's why we can't have nice things...
Re:Google cans the Chromecast Audio on Friday January 11, 2019 @05:33PM (#18887839)
I would not buy anything from Google at this point. Definitely will not use anything else except Gmail.
Re:Adding Glue to a Desktop Environment on Tuesday January 08, 2019 @01:38PM (#18858117)
And you can write your own. I use i3wm and was not satisfied how it handles Window Titles by default, so I wrote my own daemon for renaming windows automatically, which makes a huge difference for me: https://github.com/kissgyorgy/i3-window-title-changer
Re:Ask HN: Is web development still a viable career choice? on Tuesday January 08, 2019 @09:00AM (#18855502)
I don't understand how is this a question? Do you really want to learn it because it seems to me that you are trying to find a bogus reason not to... no offense, but if you don't like it, you shouldn't pursue this career, otherwise the simple answer is there is huge demand and good salary for Web Developers.
Re:Coconut: Pythonic functional programming on Thursday January 03, 2019 @02:42PM (#18818490)
Coconut, aka take a beautiful language and fuck it up with ugly syntax :D Well done!
Re:AdGuard DNS: A Privacy-Oriented DNS Server on Monday December 31, 2018 @09:44AM (#18794661)
Another great solution is Pihole: https://pi-hole.net/

It does not just protects your privacy, but improves your bandwidth too.

Troy Hunt wrote about it a couple of months ago: https://www.troyhunt.com/mmm-pi-hole/

They are enabled by default and you can't simply just disable, some of them will still start. You have to mask them in order to block them entirely. Also it doesn't matter if you have ntpd running, systemd-timesyncd still started for us...
That's starting to be not true. In the beginning, there was just systemd, now starting with bionic, it's components are tied together so much that's it's hard to turn them off or not use it. I liked systemd a lot, but started to understand the complaints when we had a lot of problems with systemd-timesync, systemd-resolved and co...
Re:Things I Don’t Know as of 2018 on Saturday December 29, 2018 @08:25AM (#18783457)
I know most of these things in detail, I can understand them and use most of them daily. I know NOTHING about JavaScript at all. It's ok, you work on frontend, I'm on backend.
This is NOT Open Source in a way you think it is yet, because the repo doesn't have a LICENSE attached to it, so the owner own every right and you are not allowed to sell it or do whatever you want with it.
Re:My one-liner Linux Dropbox client on Tuesday December 25, 2018 @08:28PM (#18759954)
Yes, I also found that git is too much hassle for notes.
Re:Hyper.sh cloud service will shut down on Jan 15 on Friday December 21, 2018 @02:49PM (#18735996)
It's a shame. It was one of the most innovative cloud provider and my personal favourite.
Re:Go Modules in 2019 on Wednesday December 19, 2018 @03:03PM (#18718995)
Go works with Jupyter Notebook pretty well. It's a little bit complicated to set up, but it is the same REPL than you use for Python: https://walkman.cloud/s/dtoSfw753YSiMAs
Re:Go Modules in 2019 on Wednesday December 19, 2018 @02:56PM (#18718918)
Go's main use case is for writing concurrent servers (mostly web servers) or daemons and command line applications that need to be really fast. Go is a generic programming language, but Python is "more generic", which I mean that you can go far more in a lot more domains (one of them is scientific computing and data analysis) than with Go. If you want to use go for data analysis I suspect that it would feel "a lot more work" to do the same thing than it would take in Python, mostly because it's a lower-level language and the ecosystem is not that huge than for Python yet.
It's interesting, we have developed a very similar framework internally for our appliance and use it in our product for 4 years. We "present" files from templates filled with variables coming from the user interface and those presenters call "notifiers" (e.g. restarting a systemd service when a file changed on disk).
Re:Reasons Python Sucks on Tuesday December 18, 2018 @03:58PM (#18710493)
A great example of how Trump has been elected. He lied a lot, (or said stupid things because he was ignorant in a topic) but it doesn't matter, because rebuttal takes a bit more effort than saying stupid things so what he said stuck with a lot of people. Sorry, but this article is just ignorant in almost every point.
Oh, wow, I realized I started doing 2) a couple of months ago, because one of my coworker is thinking in completely different ways about code in general, which forces me think in completely new and different ways. I already questioned my judgement about "good" or "bad" and started thinking in terms of "different" and I'm truly starting to believe it.
I still find the idea of a digital wedding invitation pretty strange, because here in Hungary the bride and the fiancé invite everybody in person together. Maybe distant relatives are invited by mail or something.

Is digital invitation a common thing nowadays? Or was it more common even years ago in other countries?

> "on average they close 12 annotations before they click on one of them."

Yes, and that is only by accident because I couldn't fucking click on the X because you put it on the corner on purpose. I'm really glad they will go away!

Older »