News for hackers. Stuff that matters.

tod222

Yep, good times!
From 'man perlop':

           Customary  Generic        Meaning        Interpolates
               ''       q{}          Literal             no
               ""      qq{}          Literal             yes
--

where {} can be any bracket pair.

   my $string1 = q<a single quote '>;
   my $string2 = qq<a double quote ">;
> anyone else still having nightmares from trying to escape quotes and meta chars in a shell?

This was a major reason I downloaded Perl 1.0 off Usenet in 1987.[1]

[1]https://news.ycombinator.com/item?id=36657782

See also The Timeline of Perl and its Culture https://history.perl.org/PerlTimeline.html
Yes, writing shell scripts calling awk and sed was awful, just an aesthetic nightmare to work with. Properly quoting strings was always problematic, and while Usenet was available there wasn't a plethora of information like nowadays. This was a few years before Bash was released.

Through my use of Usenet I learned that a better reader program was available called 'rn', which I downloaded and built. It had an amazing handwritten install script (autoconf was years off) which could automatically configure and build rn on any *NIX system. All developed by a fellow named Larry Wall.

rn was truly a joy to use and made reading Usenet swift and efficient. It would get updated with the fixes that came across Usenet that I'd apply using the clever 'patch' program, also written by Larry Wall.

Based on my experience with his other software, when Larry Wall released Perl on Usenet I immediately downloaded, built, and started using it. As promised, for scripting things not requiring a C program, it was massive improvement. Version 2.0 came out and brought many great new capabilities.

I wasn't writing software while versions 3 and 4 came out; I started using it again after version 5 and the appearance of CPAN. Over the years I've used Perl extensively for task automation and data wrangling.

Python now dominates Perl's niche because it's easier to learn and interfaces better with C. It's also less flexible, which compared to Perl is a virtue. One of Perl's mottos is TMTOWTDI—there's more than one way to do it. But many of them are bad. Much of Perl's poor reputation ("line noise") stems from this.

But when Perl was released it was a revelation, like a drab day when the clouds suddenly part letting warm sunlight pour down on the land.

Exactly.

To recap for folks unfamiliar with the history:

Peter Thiel co-founded the electronic payments company that developed PayPal.

Musk co-founded an online bank which had massive security holes.

The two companies merged and Musk was fired before the name was changed to PayPal.

See part 1 of Common Sense Skeptic's video on YouTube: Debunking Elon Musk

Board members Henry Kissinger and William Perry unwittingly admitted they were dupes ten months prior to the first Carreyrou article in a Dec. 2014 article by Ken Auletta in The New Yorker: [1]

Kissinger, who is ninety-one, told me that Holmes “has a sort of ethereal quality—that is to say, she looks like nineteen. And you say to yourself, ‘How is she ever going to run this?’ ” She does so, he said, “by intellectual dominance; she knows the subject.”

Board members are clearly charmed by Holmes. She is a careful listener, and she is unnervingly serene; employees say that they can’t remember an instance when she raised her voice. “She has sometimes been called another Steve Jobs, but I think that’s an inadequate comparison,” Perry, who knew Jobs, said. “She has a social consciousness that Steve never had. He was a genius; she’s one with a big heart.”

1: https://archive.fo/yhpXZ

Sure, it was cool to see, but it was inevitable that someone would do it. Once Dean Kamen demonstrated self-balancing wheelchairs and Segways, anyone paying attention could foresee subsequent applications such as self-landing boosters.

There are a lot of smart people in the world who, with the same backing that Musk received, could lead a company to achieve those goals. Without spreading themselves so thin that they make mistakes affecting thousands of people. Our tendency to elevate and idolize people who are aggressive and self-promoting leaves little room for those blessed by the absence of those traits.

It's ridiculous that on a day when thousands face unemployment that there are excited stories about flamethrowers being shipped.

WAVE (Web Accessibility Evaluation Tool) shows numerous contrast errors[1]. (Click the contrast button on the sidebar.)

[1] http://wave.webaim.org/report#/https://news.ycombinator.com/...

Google's definition of hacker is worse than Merriam-Webster's

You'd think Google would get this right.Merriam-Webster's definition[1]: 3: an expert at programming and solving problems with a computer 4: a person who illegally gains access to and sometimes tampers with information in a computer system Google's definition[2]: 1. a person who uses computers to gain unauthorized access to data. informal an enthusiastic and skillful computer...

( Read More... | 1 comment | 3 points | on HN )
Re:Norway, where no salaries are secret on Sunday July 23, 2017 @04:16PM (#14834162)
I'm sorry, I think your analysis of the cause of the power disparity is wrong. It's not due to numbers.

It's because power disparity is inherent in hierarchical organizations. The CEO is just one person, but their position at the apex of the hierarchy gives them power over everyone else in the organization. Power disparity is baked into the hierarchy—it's not a hierarchy without it.

Unions are a way to balance the power of the employee group against the management hierarchy. Unfortunately unions are also subject to the corruption that accompanies power.

Re:Images and video showing extent of Oroville dam damage on Saturday March 04, 2017 @03:49AM (#13790019)
Some…yeah, where some is the 1.7 million cubic yards of rubble now clogging up the Thermalito Diversion Pool. [1]

When you look at photos or drone videos of the erosion near the main spillway, it's clear that an immense amount of rock has been eroded away (the color changes from brown to gray). [2]

Juan Browne discusses the type and strength of the rock in one of his excellent videos about the Oroville crisis. [3] (Note that he demonstrates the weakness of the rock where he is standing, which is across the river from the spillway and might not be the same rock.)

[1] http://www.mercurynews.com/2017/03/03/spoil-sites-for-orovil...

[2] https://www.youtube.com/watch?v=TpXtMZwpDqs

[3] https://youtu.be/ilkU_ivYTqQ?t=679

Re:I’m Done Pretending SF Tech Is Visionary on Saturday October 15, 2016 @11:10PM (#12716676)
> like facebook did when their cheating got out

I have no idea what this refers to. Care to elaborate?

> Surely there are successful terrorist plots that have succeeded that we are unaware of.

No. Terrorists even take credit for things they had nothing to do with. The goal of a terrorist is to strike fear into the population by committing crimes in the most public way possible. Secrecy of the result doesn't serve this goal. The other reason to publicize is for recruiting purposes.

We certainly know the number of successful plots. Failed plots and fizzles, perhaps not.

Re:Is this c/10 spaceship known? on Wednesday March 09, 2016 @10:59PM (#11257318)
The Life community goes back decades!

Some members recently have put together a distributed soup search project to catalog objects that appear naturally. While the c/10 spaceship wasn't found in the search, a number of interesting things have been discovered. For more information about the catalog effort (named "catagolue" for Game of Life), the object database, and the distributed client, see http://catagolue.appspot.com/home

Re:John McAfee offers to unlock killer's iPhone for FBI on Saturday February 20, 2016 @09:14AM (#11140079)
> With all due respect to Tim Cook and Apple, I work with a team of the best hackers on the planet. These hackers attend Defcon in Las Vegas, and they are legends in their local hacking groups, such as HackMiami. They are all prodigies, with talents that defy normal human comprehension. About 75% are social engineers. The remainder are hardcore coders. I would eat my shoe on the Neil Cavuto show if we could not break the encryption on the San Bernardino phone. This is a pure and simple fact.

[Emphasis added.]

His team will bluff its way into the phone.

(Quoted from McAfee's original op-ed referenced by the original linked article: www.businessinsider.com/john-mcafee-ill-decrypt-san-bernardino-phone-for-free-2016-2)

Re:Winning Hyperloop design revealed by MIT engineers on Thursday February 04, 2016 @04:10PM (#11037240)
> Right now this is just a fancy maglev.

Precisely. There are no air intakes on the nosecone. None needed, since there's no air hockey suspension.

I'm surprised more people didn't notice this. I was shocked when I saw the change.

The Best Overall Design Award was given by SpaceX to a design that's not Hyperloop as we know it—just a maglev in a tube.

Re:Winning Hyperloop design revealed by MIT engineers on Thursday February 04, 2016 @03:55PM (#11037148)
There have been some comments, but I'm not sure I've seen this excellent take on the issue.

From the linked document:

> So what’s the value of getting the vibration mode shapes of this little section of the Hyperloop? Simple: it makes pretty pictures you can put in your proposal.

and

> Nothing in this section of the proposal has “demonstrated the capability of the Hyperloop,” nor was it intended to. This is not simply an error. This is eyewash for the rubes, the surest sign you’re dealing with a snake oil salesman.

And now the winning design from MIT drops the air hockey suspension for conventional magnetic levitation.

The purpose of Hyperloop isn't to build a fast, new LA-SF link, it's to kill the California High-Speed Rail project. It's a classic case of FUD. https://en.wikipedia.org/wiki/Fear,_uncertainty_and_doubt

Re:Winning Hyperloop design revealed by MIT engineers on Thursday February 04, 2016 @03:40PM (#11037037)
If built on the moon or Mars it wouldn't need the tube, since the winning design uses magnetic levitation.
Re:Winning Hyperloop design revealed by MIT engineers on Thursday February 04, 2016 @03:38PM (#11037019)
No the article is good because it accurately describes the winning design, which drops the air hockey for a maglev. Check the MIT site for details.
Re:Winning Hyperloop design revealed by MIT engineers on Thursday February 04, 2016 @03:34PM (#11036987)
> Let me repeat that: the first serious proposal is no faster than a train and can't actually be used for transporting anything. Making it, as a suggestion for high speed transport, completely useless.

Yes, although this can be handwaved away by saying it's not a full-scale model and the test track is too short for higher speeds.

What I find more interesting is that the winning design isn't even true Hyperloop, as the air hockey suspension is replaced by maglev. There's no air intake on the front because magnets are used.

The winning design doesn't validate the Hyperloop concept since it replaces a critical element and becomes just a maglev in a tube with a rail. It wouldn't surprise me if the tube disappeared in the next iteration.

Re:Winning Hyperloop design revealed by MIT engineers on Thursday February 04, 2016 @03:24PM (#11036899)
Yes. Furthermore, there is no air hockey.

The winning design is a maglev.

You're smearing someone while citing the notorious author that Politico dubbed a "misinformation monger."

Please stop wasting our time.

Re:Launch, Land, Repeat on Saturday January 23, 2016 @05:04PM (#10960332)
Randall Munroe explains this very nicely in his piece on Orbital Speed[1]:

> But getting to space is easy. The problem is staying there.

> To avoid falling back into the atmosphere, you have to go sideways really, really fast…The speed you need to stay in orbit is about 8 kilometers per second. Only a fraction of a rocket's energy is used to lift up out of the atmosphere; the vast majority of it is used to gain orbital (sideways) speed.

Highly recommended.

1: https://what-if.xkcd.com/58/

Twitter Spam on Behalf of Bleacher Report (Time Warner)

This afternoon, while searching Twitter on the string "Le’Veon Bell" in the wake of his injury, I saw that the live results returned a large number of bot accounts spamming the same headline and link to a story on the site Bleacher Report. [1]A subset of the bot accounts that spammed that story have Bleacher Report URLs in the majority of their links. [2]Bleacher Report is owned by Turner...

( Read More... | 1 comment | on HN )
Re:Jack in a Box: Can Twitter Be Saved? on Saturday October 17, 2015 @12:06AM (#10403349)
A penny per character?

This is overpriced by several orders of magnitude and would instantly spark a huge user revolt.

Artificial scarcity as a business model, ugh.

> It could be to Twitter what in-app purchases are to "free-to-play" games like Candy Crush -- a way to skip out of a grind.

Intentionally design your user experience to suck, but it gets better if the user pays.

I don't like your ideas.

Re:What should I do about YouTube? on Saturday January 24, 2015 @12:28AM (#8938909)
> "…corrupted is too strong a word….subsumed."

She is being extremely generous. Corrupted is exactly the right word.

The parent comment highlights the two sentences starting with "I don’t think they are evil." But I was particularly struck by the end of that paragraph:

"The people who work at Google, Facebook, etc can’t imagine how everything they make is not, like, totally awesome. If it’s not awesome for you it’s because you just don’t understand it yet and you’ll come around. They can’t imagine scenarios outside their reality and that is how they inadvertently unleash things like the algorithmic cruelty of Facebook’s yearly review (which showed me a picture I had posted after a doctor told me my husband had 6-8 weeks to live)."

Algorithmic cruelty is such a great turn of phrase.

(Edit: This is a reply to a now-deleted comment about a CA ballot question to kill the CA high speed rail project and instead fund a Hyperloop pilot.)

Hyperloop was originally intended to elicit exactly this response—replace a project based on current technology with a pie-in-the-sky research project based on an unproven tech.

There have been many pilot projects in transit tech that were never successful enough to merit subsequent wide deployment. Is anyone connected to airline finances at all concerned about Hyperloop? If Hyperloop was real then airlines would be panicking.

An analysis reported earlier here was that it will either be half as fast as proposed, or will cost more due to requiring larger diameter tubes. [1]

If you read old discussions here on HN you'll find serious questions about the design's ability to cope with both seams and thermal expansion in the tube. [2][3][4] One proposal previously discussed here replaces Musk's design with a knitted carbon fiber tube. [5] Anyone who discounts the seriousness of the thermal expansion issue would do well to read the Heat Orders FAQ from Virginia Railway Express. [6]

Hyperloop is back in the news because the pilot project is Musk's carrot dangled to the state of Texas to allow him to build showrooms, see "Tesla's Musk woos Texas lawmakers with talk of track, car plant". [7] The Hyperloop test track is about benefiting Tesla, not building out Hyperloop. It's a political bargaining chip.

[1] https://news.ycombinator.com/item?id=7000412 [2] https://news.ycombinator.com/item?id=6202327 [3] https://news.ycombinator.com/item?id=6202966 [4] https://news.ycombinator.com/item?id=8773406 [5] https://news.ycombinator.com/item?id=6658988 [6] http://www.vre.org/feedback/frequently_asked_questions/faq_h... [7] http://www.reuters.com/article/2015/01/15/autos-tesla-texas-...

Older »