Better HN
topnewbestaskshowjobs
Log inSign up

ferrari8608

709 karma · joined Jul 11, 2014 (12y ago) · 169 submissions

I write bugs.
Submissions

comment 10y ago · link · parent

You suppose wrong. You are correct though that it is normal to view and say things about a junkie as I do.

comment 10y ago · link · parent

> Will they design games for this and simply cut out graphics features to make it run on the slower version?

That's how the relationship between high-end PC games and the consoles work right now, so it's probably the case.

comment 10y ago · link · parent

I would hope CRV's immigrant staff are documented. If so, what's the beef with Trump? His official stance on immigration is to try to combat illegal immigration and temporarily pause immigration from unstable countries.

comment 10y ago · link · parent

Which would of course be the optimal solution. I always forget about that object.

comment 10y ago · link · parent

I just wanted to point out a bit of syntax from the article. I'm a huge fan of compact variable declaration if statements. The code from the article:

    if name in names:
        names[name] += 1
    else:
        names[name] = 1
That can actually be written as just one neat, readable line:

    names[name] = names[name] + 1 if name in names else 1
It may not be as readable to some who are used to spelling it out as an if/else block, but I really prefer the one line way. It reads closer to regular English I think.

comment 10y ago · link · parent

I learned something new. It's not a big deal, but I'm glad it was posted nonetheless.

comment 10y ago · link · parent

"We're sorry but the page that you're looking for can not be found. The URL may be misspelled or may have changed. Try searching for the content in the search box below or select from AP's latest news instead. "

Just plugging "wikileaks" into the search box returned the correct URL:

http://bigstory.ap.org/article/b70da83fd111496dbdf015acbb798...

8.

ReactOS 0.4.2 Released(reactos.org ↗)

3 points · by ferrari8608 · 10y ago · discuss

comment 10y ago · link · parent

I would love to see that core sample. The tree isn't, or at least doesn't appear to be very big, so the rings must have been tiny.

comment 10y ago · link · parent

One of the commenters on that article said:

"just for the pleasure, anyone want to try a simple

rm -rf --no-preserve-root /"

I don't have a Windows 10 computer, so I can't test this myself. I would love to know what happens though. Does this subsystem have Windows' typical self-preservation mindset, or is it full-on UNIX style?

comment 10y ago · link · parent

It's much simpler to me. Tuples are used when you need a sequence but don't need to modify the contents, for instance returning multiple objects from a function call. Lists are used when you want to add things to it.

Namedtuples are wonderful! It's like a class with only attributes, except you don't have to define a new class and get slapped across the back of your head by more experienced programmers for creating a useless class. Access objects by index, by name, or by iteration. It's very versatile.

comment 10y ago · link · parent

The fact they didn't want us to know

comment 10y ago · link · parent

We don't, but I haven't seen any around.

comment 10y ago · link · parent

Could the obesity epidemic have a little to do with this? With around two thirds of the US population overweight, that's a lot of conventionally unattractive people. For males especially, being overweight drastically reduces the odds of being noticed by a potential partner. I suspect hormone imbalances, part of the metabolic syndrome umbrella shared with the symptom of obesity, might also have a hand in this.

comment 10y ago · link · parent

I haven't had any font issues with Manjaro (Deepin community release) or Antergos (MATE). Text looks great right out of the box. I can't say the same for vanilla Arch, but that's to be expected really.

I've been using The Deepin Desktop Environment for a bit over a month now, and I have to say it is easily the best desktop environment out there for Windows users right now. It looks close enough to 7 and 10 to be familiar, but it's far easier to use. Deepin OS is now my go-to recommendation for new Linux users, especially since they have an agreement with Codeweavers to include Crossover in the distro free of charge.

comment 10y ago · link · parent

Bad in what way(s) in particular?

comment 10y ago · link · parent

It doesn't really seem like a decent comparison when you look at the comments and read that he used two different graphics drivers for the comparison. Proprietary for the first demo, open source nouveau for the second (which I suppose is more impressive considering their differences, but anyway). Anyone know why that is?

comment 10y ago · link · parent

>but it freezes on files larger than 1 MB

That's a pretty large bug. Considering what JSON is supposed to be used for, passing data between two programs/processes, files larger than 1 MB should have been accounted for.

Does it freeze then crash, freeze until the OS takes care of it, or freeze temporarily then resume?

comment 10y ago · link · parent

It's not nice to abuse innocent cats.

    python -mjson.tool < unformatted.json | vim -
If you're not using cat to concatenate things, the shell can probably handle the job.

comment 10y ago · link · parent

> erases the file first and >> appends without erasing

This isn't the issue.

comment 10y ago · link · parent

Yes, you are absolutely correct. In our production code, which is currently running 2.7, we make extensive use of the itertools versions of those functions (imap, ifilter, etc.) for this reason. The itertools functions behave exactly like the Python 3 builtins, as iterators. The memory footprint is minimal, and they are just overall faster.

comment 10y ago · link · parent

I've never understood why that phrase applies to Python when the language still has the map, filter, reduce, etc. functional functions. Generators and comprehensions completely removed the need for those, yet the functions remain even in Python 3.

On the subject of printing, there are actual reasons for having this duplicate functionality. The main way to print is of course the print function in three, or print statement in two. The print function was lacking the ability to flush the buffer before that was introduced in three. You would have to call sys.stdout.flush(), whereas now the print function includes the boolean "flush" keyword argument. The second way to print is to call sys.stdout.write(), which does not automatically append a newline. That functionality was implemented in the print function with the "end" keyword argument. You can pass it an empty string in place of the newline.

So for most use cases, print() is just fine. Sometimes you want finer grained control, and for that you would use the sys module.

comment 10y ago · link · parent

Same here, but Monster was my poison of choice. I lost 50 lbs with keto and haven't looked back. Everything just got better.

I think bulletproof coffee is a bit overrated though. I tried it and couldn't get into it, and that's with very good quality coffee. A bit of heavy cream is nice sometimes though.

comment 10y ago · link · parent

Voat.co is worth checking out. It's like a smaller Reddit with an emphasis on preserving free speech.

comment 10y ago · link · parent

It's a shame your comment has fallen victim to the disagree button. While I disagree with you, which I'll get to in a moment, it greatly disappoints me how some of the supposed intellectual thinkers on this site would like to hide your comment because they disagree with it. I didn't find it to be spam or inflammatory, which is to my understanding the type of post the down arrow is supposed to be used for.

Anyway, what he did was legal. There's nothing to be held accountable for. Whether or not it's right or wrong in general is not really a topic I'm interested in. Since the legal process worked as it's supposed to, I believe this to be what you might call right though. Gawker has had this coming. If they hadn't made it so easy by publishing garbage, Theil would have been powerless.

123456