News for hackers. Stuff that matters.

skarap

Re:Throw away code on Saturday September 26, 2020 @03:15AM (#24597013)
Python isn't weakly-typed.

> Over the years, I’ve used Perl a lot (that one doesn’t care if it’s int or string… no, correction, in Perl everything is a string, ints just don’t exist. Well, kind of). It’s probably the language designed for throw away coding. I’ve done some Python too (that’s like Perl, but with proper objects in it, and everything is a dictionary there).

The author has almost no real programming experience with Python. Perl experience seems to overlap with sysadmin-related work at least partially, where it's usually used as better Bash. All their repositories in GitHub are Rust. So almost all of "real" programming they did used Rust.

Why would anyone who know Rust way better than any other language prefer to do their prototypes using anything else?

Re:Apple of 2019 is the Linux of 2000 on Monday October 14, 2019 @10:21AM (#21248549)
> Things break at random for reasons you can't understand and the only way to fix it is to find terminal commands from discussion forums, type them in and hope for the best.

Depends on whom you ask. There are people who use it exactly because when "things break at random" they absolutely can understand the reasons and actually fix it in contrast to some other OSes (or Linux from more recent years).

To repeat my comment from a previous discussion which brought a lot of downvotes: what happens when (not if) a self-driving car runs-over and kills someone (e.g. because of a software bug)? Do such cases cause criminal penalties? Who is penalized? Or will all cases of autonomous car accidents with deaths become civil cases? If so - do human drivers get the same new rules or if they kill someone by accident (because they got distracted) they still go to jail? Is that fair?

In this particular case I assume the operator will be thrown under the bus, which is also unfair.

Re:Google's CardDAV server isn't standards compliant (2014) on Monday February 19, 2018 @11:58AM (#16413988)
Exactly. Asynchronous programming + promises + some unhandled failure case somewhere and you end up with timeouts instead of error responses.
Re:Waymo Launches Its Self-Driving Armada on Tuesday January 30, 2018 @09:16AM (#16265419)
So what happens when one of these cars runs over someone?

Tough luck, 5 million dollars to the family?

The email you're searching wasn't posted to the list. You won't find it - no matter the interface.
Re:Oh shit, git: Getting myself out of bad situations on Monday December 18, 2017 @12:04PM (#15953121)
One can read any amount of similar articles, but if they don't understand the data model behind all this, git will remain a complex and fragile beast for them. The feature-set is huge to be able to just remember all possible commands for all possible scenarios. If you don't know what index is or what a branch is, this all will look like a bunch of nonsense. On the other hand - your ruby code won't seem too logical either if you don't know the language.

So if git is the tool you use to get your job done - don't hesitate to spend a day or 2 on reading how it works and how you're supposed to use it.

> Deciding to hire both, and then assigning them to the same team is clearly the wrong solution

Couldn't Microsoft also get into trouble by hiring just one of them (the other one could have a good case for being treated unfairly)? And what if they don't have 2 separate teams which need new members? Should they create a new team just to make sure they don't heart anybody's feelings?

> Rape is much more common than false accusations of rape.

You're throwing away a datapoint - "the police decided not to press charges or Bob was found not-guilty in court".

Re:When the Judge Distrusts Your Lawyers on Sunday December 03, 2017 @02:11AM (#15836424)
> Once a judge catches a lawyer in a lie the judge will question everything the lawyer says.

Not a lawyer, but isn't is taken for granted that lawyers (along with everybody else) are lying in courts and that it's the jurors and judge's job to find out who is lying?

Re:SSH vs. OpenVPN for Tunneling on Sunday November 26, 2017 @05:53AM (#15780330)
`ip link set qlen 1000 dev tun0` (so it matches the eth0 queue, instead of being an order of magnitude smaller) on both ends of the tunnel, and you get 90% of direct connection speed from openvpn:

  $ iperf3 -c 10.1.0.2
  Connecting to host 10.1.0.2, port 5201
  [  4] local 10.1.0.1 port 38274 connected to 10.1.0.2 port 5201
  [ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
  [  4]   0.00-1.00   sec  3.12 MBytes  26.1 Mbits/sec    0    802 KBytes
  [  4]   1.00-2.00   sec  22.3 MBytes   187 Mbits/sec    0   2.24 MBytes
  [  4]   2.00-3.00   sec  21.4 MBytes   179 Mbits/sec    0   2.45 MBytes
  [  4]   3.00-4.00   sec  23.3 MBytes   196 Mbits/sec    0   2.39 MBytes
  [  4]   4.00-5.00   sec  23.4 MBytes   196 Mbits/sec    0   2.58 MBytes
  [  4]   5.00-6.00   sec  21.5 MBytes   180 Mbits/sec    0   2.70 MBytes
  [  4]   6.00-7.00   sec  23.5 MBytes   197 Mbits/sec    0   2.68 MBytes
  [  4]   7.00-8.00   sec  22.6 MBytes   189 Mbits/sec    0   2.78 MBytes
  [  4]   8.00-9.00   sec  22.4 MBytes   188 Mbits/sec    0   2.45 MBytes
  [  4]   9.00-10.00  sec  23.5 MBytes   197 Mbits/sec    0   2.69 MBytes
  - - - - - - - - - - - - - - - - - - - - - - - - -
  [ ID] Interval           Transfer     Bandwidth       Retr
  [  4]   0.00-10.00  sec   207 MBytes   174 Mbits/sec    0             sender
  [  4]   0.00-10.00  sec   207 MBytes   174 Mbits/sec                  receiver

  iperf Done.
Re:Firefox 57.0 Released on Tuesday November 14, 2017 @11:26AM (#15696428)
1
Re:Firefox Send: Private, Encrypted File Sharing on Wednesday October 11, 2017 @11:14AM (#15450413)
Mandatory XKCD link: https://xkcd.com/949/
> the only reason we used this at a previous company was to kind of handwave around hey we have this tool doing regular security checks

That's the only reason for most of their clients. "We get periodic security scans from a respected vendor, yes sir!".

I can't rule out that the scanners might work, but if the vendor isn't naive, they'd be optimizing for their real target audience.

Re:Optimizing web servers for high throughput and low latency on Thursday September 07, 2017 @04:44PM (#15195534)
One congestion-control parameter which don't get it's fair share of articles is initcwnd. And for HTTP traffic over high bandwidth+latency links it has much larger impact than the choice of the cc algorithm.

See https://www.cdnplanet.com/blog/tune-tcp-initcwnd-for-optimum...

It's... sad.

A few months ago a friend was asking whether I know a service to convert a gif to a video. Which was also sad.

Re:The Difficulties of Running a Sex-Inspired Startup on Tuesday August 29, 2017 @01:18AM (#15122252)
Maybe it's just that potential investors don't get how the startup is going to earn money?
Note that SELinux mitigates the issue with default configuration.
Re:The Future of Go Summit – Ke Jie vs. AlphaGo on Tuesday May 23, 2017 @06:12AM (#14400095)
I read someone saying "we're best at creating things which do some things better than us".
Re:Decommission of Cyrus Email on Sunday May 07, 2017 @07:28AM (#14284932)
> They have a tendency of 541-ing mails for no apparent reason

There is a reason. It makes people switch from own email servers to gmail.

My two-year-old son calls my DSLR "phone". So I guess you're right. Just like "WiFi cable".
Re:An analysis of the Nomx secure communications device on Thursday April 27, 2017 @01:40PM (#14213329)
Interesting findings. Though I didn't get why the author concentrated so much on the security issues of the UI while the real issue is that the whole thing is snake oil. I mean - what if the UI was great, had https and there were no CSRF vulnerabilities? Would this be considered a secure product?
Re:Survivorship Bias on Friday April 21, 2017 @04:41AM (#14163952)
Meta: I can't believe how often xkcd nails it.
Re:Electron is flash for the desktop (2016) on Wednesday April 12, 2017 @03:24AM (#14095528)
I don't think developers have anything to do here. There are two kinds of companies: those which don't care for quality, security, performance, good/evil and those which are bankrupt, because they were constrained by those ideas while their competitors were not.
Now they just need to feed it its own source and turn it into Skynet source.
Re:Performance bugs – the dark matter of programming bugs on Wednesday March 22, 2017 @10:33AM (#13931207)
It wouldn't go down with flat files even if you hosted it on an arduino connector to your phone's tethered wifi.
Would be nice to have an option to disable this for intranets. Otherwise - a very good thing to do.
Re:Real-time notifications from systemd to Slack on Monday March 13, 2017 @06:57AM (#13856718)
What if slack is down/unreachable? Won't it keep the service from starting?
Re:Unix System Call Timeouts on Monday March 13, 2017 @03:04AM (#13855779)
And what about unlink()? Should it have a timeout? How would one use it?
You don't expect "Jet Airways" (or any other airline) to say that directly, do you?

Older »