News for hackers. Stuff that matters.

gkafkg8y8

> It would be interesting to know how they will judge the results of this experiment when it concludes.

Personally, I don't plan to discuss politics any more or less than when this topic was posted, so I guess I'm not part of the experiment.

Re:1.4B records from “Have I been pwned” for analysis on Monday December 05, 2016 @08:19PM (#13111478)
I used to be somewhat interested by stats on passwords, etc. from breach data dumps.

haveibeenpwned is a helpful and legit site, though I think it should have used email confirmation instead of requiring only an email address.

I also respect Troy along with many other security researchers. Even those that are up to no good in the security world in some ways have contributed good things; after all, the rest of us are stronger and more vigilant now than we used to be because of their work.

However, this anonymized data will almost certainly be used by black hats more than white hats, and I don't see how this release is good for the majority of those that were affected by these breaches.

You have inventory. Now is the time to start selling them. See it as an opportunity.
Re:No Spanking, No Time-Out, No Problems on Sunday December 04, 2016 @02:52PM (#13101454)
What I've learned about parenting:

* Your kids may grow up to act like you, so act in a way that you want your children to emulate.

* Talk to them in a way and have expecations of them that are developmentally appropriate. Use your wisdom and conscience to determine how to do this.

* Expect your children to have certain responsibilties and behave in a certain way, to start working for the familiy or for others when they become old enough (possibly to make their own money), volunteer to help others, and respect their parents, family, others, and themselves.

Beyond that, it just depends on the situation.

I've seen some bad parenting, though. It usually involves anger, psychosis, manipulation, spoiling, irrationally defending their child, drug use, etc. If you or your child is the common thread in problems, it's probable that you or your child are at fault. If you can't handle things, get outside help. And if your kid is exhibiting bad or dangerous behavior to themselves or others, get help.

Re:Rust: 128 bit integers preparing to be released on Sunday December 04, 2016 @11:55AM (#13100572)
It would also good to address arbitrary size floating point numbers in Rust.

Huon Wilson worked on an implementation a year ago:

https://github.com/huonw/float

Related- there was a discussion a few years back in Reddit about future-proofing math/numbers in Rust:

https://www.reddit.com/r/rust/comments/1uy7rt/an_appeal_for_...

However, when it comes to speed, working with primitive types has gotta be faster if supported natively, so anything else anytime soon will play second fiddle.

> Businesses complaining about greedy Americans being overly litigious may want to look in a mirror.

Sure, but it goes both ways.

On one hand, companies are overly litigious for reasons described in the post. I've been frustrated at least once that I couldn't be part of a class action suit because there wasn't a recall for a design flaw costing me thousands; I knew however that a class action suit probably would've resulting in a small check at most.

On the other hand, there are law firms that advertise on television to get people to claim malpractice, etc. and "get money." And there are patent trolls that are purely exploiting.

I think it's fair to say there is a lot that could be done for reform.

Re:Forwarding issues related to MACs starting with 4 or 6 on Saturday December 03, 2016 @09:22AM (#13095756)
> "This 4/6 MAC issue was well documented in BCP128 back in 2007. The control-word drafts mentioned that there would be dragons related to 4 and 6 back in 2004."

This reminds me a little of what Mr. Prosser said to Arthur Dent in the Hitchhiker's Guide to the Galaxy about the demolition notice for Arthur's house: "It was on display at the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying beware of the leopard."

You can't make the assumption that engineers will be able to keep all of this in their heads. The IEEE is not going to review every document and put together a compendium of bear traps awaiting them in the future, and they aren't going to review every historic document before every decision, either.

If the few that knew what would happen made an incorrect assumption of prior knowledge, then they dropped the ball in reminding those that needed to know.

Since nobody remembered, they should have just been informed of the mistake and a possible solution or assistance provided.

It's ok to try tackling a big problem, as long as you know when pause for a while and come back to it later.

What if Ramanujan had been told by Hardy to stay home and stop working on big things that he hadn't had sufficient experience in? While there will ever only be one Ramanujan, he wouldn't have developed into what he did had he restricted himself. He made a lot of mistakes, and that didn't kill his career nor did it stop him from producing many great works.

Similarly, Bezos obsessed about a simple online bookstore website. Jobs obsessed over details for a small number of devices. Torvalds obsessed over an operating system he wrote. DHH obsessed over a web application framework open source project for his company. If you obsess over something, it has a much better chance for success.

If you believe in it, and you see a path to it, don't give up.

Re:What This Here Compound Needs Is Some Hydrogen Peroxide on Thursday December 01, 2016 @08:04AM (#13079074)
Explosions and threats of explosions bring many kids (middle/high school/freshmen) into it.

If you have money, this is nice for the younger ones: https://melscience.com/

Or one of the numerous chemistry sets available- preferably something with a lot of chemicals that are unsafe. I personally almost killed myself mixing things when I was an adolescent.

And in the 80s there was this: https://archive.org/details/Chem_Lab_1985-Simon_and_Schuster...

If kids aren't interested in chemistry, it's that the teacher/cirriculum/resources available to the students is just piss poor... and unfortunately that is the norm. It's so easy to keep kids engaged if you continue doing experiments that astound.

Re:The Emacs dumper dispute on Thursday December 01, 2016 @07:53AM (#13079022)
Looks like it's in a few Slackware repos but I'm having trouble finding it in deb/yum/Arch pkg:

https://pkgs.org/search/uemacs

JASSPA version (the package is jasspa, but searching on microemacs just to show results more thoroughly):

https://pkgs.org/search/microemacs

Re:The Emacs dumper dispute on Thursday December 01, 2016 @07:02AM (#13078808)
It's also available in deb/rpm/pkg:

https://pkgs.org/download/mg

Note: pkgs.org list is not all-inclusive; there are more Linux distros in which it's included.

Re:The Emacs dumper dispute on Thursday December 01, 2016 @06:33AM (#13078717)
Kilo's supported commands are[1]:

  CTRL-S: Save
  CTRL-Q: Quit
  CTRL-F: Find string in file (ESC to exit search, arrows to navigate)
It's available in a lot of well-used distros: https://pkgs.org/search/kilo but doesn't look like it's in Arch, etc.

Kilua looks cool also as it has more similar keybindings to Emacs[2]:

  Ctrl-x Ctrl-o Open a new file in the current buffer.
  Ctrl-x Ctrl-s Save the current file.
  Ctrl-x Ctrl-c Quit.
  
  Ctrl-x c      Create a new buffer
  Ctrl-x n      Move to the next buffer.
  Ctrl-x p      Move to the previous buffer.
  Ctrl-x b      Select buffer from a list
  
  M-x           Evaluate lua at the prompt.
  Ctrl-r:       Regular expression search.
but the goal would be to have that available in a package manager in a default install, so that after logging into any server where I'm a sudoer, I could:

  sudo apt-get install some_package
  sudo yum -y install some_package
  pacman -S some_package
  ...
[1]: https://github.com/antirez/kilo [2]: https://github.com/skx/kilua
Re:The Emacs dumper dispute on Wednesday November 30, 2016 @10:07PM (#13076892)
I've loved and used Emacs for ~20 years, but if Emacs were to become slow, then if I were to have a replacement editor that could do the following (w/no X or window manager) without additional config in Linux, I'd use it instead:

  arrow keys to move
  add and delete text anywhere
  paste from terminal buffer
  ctrl-s -> search (and continue to find next match)
  ctrl-v -> down
  ctrl-esc -> up
  ctrl-k -> kill line
  ctrl-x ctrl-s -> save
  ctrl-x ctrl-c -> quit
  ctrl-a -> goto beginning of line
  ctrl-e -> goto end of line
I don't even use selection anymore, because I can just use the terminal window copy/paste.
Re:The Emacs dumper dispute on Wednesday November 30, 2016 @10:00PM (#13076853)
> Emacs dumper has always been a dumpster fire.

This made me laugh. Thanks!

Re:India has launched a 648MW solar power plant on Wednesday November 30, 2016 @07:11AM (#13070063)
> By 2022, India aims to power 60 million homes by harnessing 100 gigawatts of solar energy.

That could power 82 Doc Brown DeLorean time machines[1].

In comparison, the 2013 estimate for world energy consumption was 12.3 terawatts[2], which would power 10165 Doc Brown DeLorean time machines.

[1]: https://en.wikipedia.org/wiki/DeLorean_time_machine

[2]: http://www.webcitation.org/6fzEHL2Bz

Re:How to grow into your best developer self on Tuesday November 29, 2016 @08:13AM (#13062795)
> Definitely read the comments.

I agree. I'm very senior now, bordering on ancient (or at least in the last part of the age tail), and especially over the past 8-10 years (perhaps back to 18 years if you consider the explosion of OOP/OOD and Java to be a tagalong trend) group-think has been a serious problem in development.

The problem with group-think is that that it isn't moderate thinking that is an average of all well-informed people. It can be influenced by a few that have good design skills and say things in a way that people want to believe. I personally have just said whatever came to mind, bullshitting because I was bored, and got many karma points for comments that I'd not thought out, and have definitely seen other comments that were similar. This is especially true when you are shooting down what could be good ideas. A lot of us just like to argue for arguments' sake. Now, a lot of times that is good, but it is very important to try things out that you on your own think are reasonable and see for yourself.

For example, what if HN had been around when PhP was developed and a group of bored naysayers had shot it down because it wasn't organized enough and would promote bad practices. Those things were true- you could write bad PhP code. However, a lot of what exists today was born of people just having fun coding in PhP, and those people wouldn't have learned from their time in PhP, because it never would have come about.

Re:Windows 10 in-place upgrades are a severe security risk on Monday November 28, 2016 @11:13PM (#13060721)
Although I think it's strange what they exclude. For example, they didn't include Calculator in Windows Server 2016 LTSB:

http://www.zdnet.com/article/windows-server-2016-ltsb-whats-...

Sure, maybe you wouldn't use it that much, but it's small and useful.

Since the post had mentioned what Linus uses...

For the OS, Linus had been using Fedora Workstation at least until a year ago, last I heard. Linus doesn't like how Gnome deals with the 2016 XPS 13 Developer Edition either: http://www.zdnet.com/article/linus-torvalds-reveals-his-favo...

"...has the same resolution as my desktop, but apparently because the laptop screen is smaller, Gnome seems to decide on its own that I need an automatic scaling factor of 2, which blows up all the stupid things (window decorations, icons etc) to a ridiculous degree.".

To fix he said: "You need to go to the shell and run: gsettings set org.gnome.desktop.interface scaling-factor 1."

Here's what Linus had at home, desktop-wise, as of Jul 18, 2014:

https://www.youtube.com/watch?v=fuS-3HSnpq4

But personally...

My ultimate Frankenstein laptop in would be something similar to the dimensions of a MacBook Pro (2016), but with a few USB3 ports, memory card reader, headphone jack, function keys and full length touch bar atop the function keys. Then just max it out so I can run intense builds/tests, and emulate Windows, macOS, and Linux.

As for the OS, for now I would use macOS. I like Pantheon in ElementaryOS, though. I like that Elementary tries to emulate what drew developers to macs 2006-2010 (prior to Mac App Store when you got apps by downloading them and didn't have to control-click to open unsigned ones and have both Launchpad and Appstore when before it was just the /Applications directory). I've used various Debian-based distros, but could be swayed to Fedora, maybe.

If I had money, I'd have a nice desktop and have all of the coolest games. But I don't, so I have a thin factor laptop that just works and just big enough to read comfortably.

For the screen, I'd suggest checking it out in the store first and making sure it feels right. The 13" on a macbook (air/pro) feels larger imo because of bezel and the different aspect ratio (16:10 vs 16:9).
Re:Let's Colonize Titan on Sunday November 27, 2016 @08:06AM (#13048935)
> Would't be better if they tried to "fix the planet" instead?

It would be, but based on what I hear, it's too late. Also, you can't easily keep Earth from being hit by a giant meteor or a large CME that takes out all of our electronics and sends us back to the bronze age.

Re:Let's Colonize Titan on Sunday November 27, 2016 @07:22AM (#13048803)
The main two reasons we wouldn't settle anything beyond Earth would be:

1. Lack of interest.

2. Lack of time.

#1 is the biggest problem as far as we know right now. #2 is a problem only if we destroy our planet to the point where we can't expend resources or time, or we overpopulate and run out of resources, or a natural disaster sets us back too far or kills us.

We have sufficient resources right now, we're just not focused on the effort enough. If every government said, "You, need to change what you are doing and start helping us get off of this planet," and changed laws and regulations to encourage or enforce this, it would happen. Is that realistic? Not really. That's the reason that Musk and others are focusing so much on space. Because, if they don't do it, then who?

Re:I made an iPhone game with PhoneGap and won't do it again on Saturday November 26, 2016 @05:35PM (#13046329)
Can anyone say what the easiest development platform is to use to write a 2D game that uses code instead of a GUI, has tutorials that don't expect that you know the language/API/environment that well, and is free to use?

I've looked at several, but either I can't develop for iOS/Android for free (beyond the charges to get setup as a developer by required by Apple, Google, etc.) or the barrier to entry always kills my time, then I go onto something else. LÖVE https://love2d.org/ was the only one I actually got anything playable with, but Lua/LÖVE was a little finicky and got frustrating. I want to be up and running and deploying to an emulator with something interesting in no more than 30 minutes, and I don't care how blocky it looks.

Years ago I wrote homebrew games, so I'm not new to concepts required, but I don't want anything too complex.

Re:Cards Against Humanity is digging a hole in the earth on Saturday November 26, 2016 @12:59PM (#13044962)
Maybe they are reburying the Atari 2600 E.T. cartridges using a deeper hole this time in an undisclosed location. Perhaps they were never meant to be uncovered.
Re:Cards Against Humanity is digging a hole in the earth on Saturday November 26, 2016 @12:21PM (#13044702)
I wish I could give more than ~$1.797693 x (10^308).

That means that they can't dig longer than ~3.417998 x (10^300) years.

If you'd like to find the exact amount, you can copy this into the custom amount field and keep altering digits until you come up with the right number:

  179769313000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
I have a feeling whatever the actual number is would be extremely important to our survival as a species, like something I'd need to enter into an Apple II+ every 108 minutes to discharge electromagnetic energy safely or the "Underworld" hieroglyphs would be displayed.

http://lostpedia.wikia.com/wiki/Hieroglyphs

Re:Cards Against Humanity is digging a hole in the earth on Saturday November 26, 2016 @11:21AM (#13044370)
Are we sure this isn't some ruse to fund a fallout shelter?
Re:Cards Against Humanity is digging a hole in the earth on Saturday November 26, 2016 @10:55AM (#13044196)
Hopefully they will at least let people in need use the hole.
Re:Debian putting everything on the /usr on Saturday November 26, 2016 @09:57AM (#13043787)
You seem convinced that $PATH handles everything. That's not accurate. Deployment scripts can make automated changes to config files and need paths. One package assumes a hardcoded path for another package- typically a symlink, but if those symlinks are moving around, that could break.

And the package management system isn't off-topic if one of the reasons for moving paths is to become more standard. Apt, Yum, Pacman, etc. all have different ways of doing things, and if the goal is to become more standard, then you have to wonder why the Linux community has not banded together on a single packaging system standard.

Re:How We’ve Built a Remote Company Culture to Be Grateful For on Saturday November 26, 2016 @09:12AM (#13043550)
> rock star

Yeah, when I hear this, ninja, jedi, or anything like that, I've learned to stay away. They say that because they want to convince you that if you work with them you'll become something great. Instead, they have a crappy situation and you will be the king/queen of crap.

Re:How We’ve Built a Remote Company Culture to Be Grateful For on Saturday November 26, 2016 @08:57AM (#13043500)
I'm an introvert. I have absolutely loved working from home on my own when I've done it in the past. But, when I was interacting with a manager or someone whom I had never worked in-person with and didn't interfact with much online, I always felt insecure and vulnerable. Then there are the awkward "everyone needs to fly to headquarters and meet everyone else for team-building" moments; the anticipation of those get-togethers always made me feel uncomfortable.

Older »