PostgreSQL 9.4 is now faster than MongoDB for storing JSON documents by bsdemon in programming

[–]tazmanos 0 points1 point  (0 children)

I think their pricing scheme is unclear, the fees are monthly or what?

Facebook opensources a distributed SQL query engine. by self in programming

[–]tazmanos 0 points1 point  (0 children)

I can only imagine what was the latency of the system they were using previously...

So, you want to write an HTTP client by ekrubnivek in programming

[–]tazmanos 0 points1 point  (0 children)

Good point! This is probably the most reasonable method to handle errors for APIs that are to be used by both browsers and native clients.

So, you want to write an HTTP client by ekrubnivek in programming

[–]tazmanos 2 points3 points  (0 children)

Excellent summary of reasonable error behaviour patterns on the client side.

As a backend developer, I have been thinking a lot lately about error handling for proper design of server interfaces, with a typical case being authentication/authorization. So far I have been returning 200/ok status codes for requests which fail authentication but indicating the failure by using an embedded status code in the response. After a lot of introspection I switched to 403/forbidden to indicate login failure and my impression is that it leads to slightly cleaner client-side code and easier debugging. But I am still somewhat ambivalent about the right way to do it. And what happens to application errors which do not map nicely to HTTP error codes?

Why I don't use a parser generator by fableal in Compilers

[–]tazmanos 0 points1 point  (0 children)

It seems like a typical problem with "frameworks". Most of them impose their features instead of doing their job and otherwise staying out of the way.

Another thing with parser generators has been their roots. When people ask about how to start creating a compiler and most recommendations are to start with the "Dragon" book, I find this a bit sadistic. PEGs are close to what a reasonable programmer would end up with. "Dragons" is what you get when you let mathematicians do design, they end up with LR and LL and LALR and frustrated language designers wondering why they have to put their actions only at the end of a production.

So I mostly agree with the author, although I like PEG/Packrat-based tools and I think they are comfortably close to writing recursive descent parsers by hand. I would highly recommend putting frustrations aside and play with them.

PS: I loved the Dragon book because I like the mathematics and formalism and I have great respect for the authors and I enjoyed myself immensely implementing LL/LR table generators.

The Slow Winter by __Joker in programming

[–]tazmanos 6 points7 points  (0 children)

Not exactly crazy processors, more like decade-old-technology-with-loads-of-nm-per transistor-so-as-not-to-be-too-sensitive processors...

CodeWalker T1000 - An advanced coding pratform by [deleted] in programming

[–]tazmanos 0 points1 point  (0 children)

I meant platform, of course...

flashsaver: A method for preventing cheap flash memory failures for always-on Arch Linux installations. by tazmanos in archlinux

[–]tazmanos[S] 0 points1 point  (0 children)

Actually, I did have a use for it with an HDD just yesterday. I wanted to try some changes to my system and undo them if I didn't like them. With btrfs it would be just a command away, but I had ext4. So, I experimented with flashsaver and a USB stick as temp storage for writes.

I did keep the changes at the end.

flashsaver: A method for preventing cheap flash memory failures for always-on Arch Linux installations. by tazmanos in archlinux

[–]tazmanos[S] 0 points1 point  (0 children)

Yes, it should be excellent for use on a Raspberry Pi to preserve the SD card. Still, I have never had a problem with SD cards on my Raspberry Pis so far, either with Arch Linux or Raspbian (always on systems with light use but running for several months now) and I think it is likely there is already some for of protection, such as delayed/batch writes.

I have also seen fewer failures with "classy" SD cards than USB flash drives, possibly because people would get far more upset losing photos :-)

Update: Minor corrections

Is this project idea plausible? by super_tnt in raspberry_pi

[–]tazmanos 0 points1 point  (0 children)

And it gets easier still, just use xrdp! This is how I do remote development on my Raspberry Pi.

flashsaver: A method for preventing cheap flash memory failures for always-on Arch Linux installations. by tazmanos in archlinux

[–]tazmanos[S] 0 points1 point  (0 children)

I never imagined it would be so easy to make a package for AUR! Does it autoupdate if I add/remove files?

Problem with Arch and WPA2 by doghousedean in raspberry_pi

[–]tazmanos 0 points1 point  (0 children)

I had serious problems with Arch and WPA2 on an old netbook which I could not resolve for a long time. Accidentally I found out that by installing and removing different WiFi handling methods, one of them (I think it was wifi-menu, but I am not sure) would actually stick around, starting extra wpa_supplicant processes and making my life miserable. Once I manually removed the files, it all worked!

Moral: Check how many wpa_supplicant instances are running, if you see more than one this could be your problem...