News for hackers. Stuff that matters.

zelcon5

Re:Leftpad-rs on Thursday March 24, 2016 @06:30AM (#11351744)
Lol this is all pretty funny. I also did this but in C++ to make fun of that JS crap.

https://gist.github.com/zelcon5/7dc42bf91ea958132a0d

- "padding" can go either left or right.

- generic function

- minimal lines of code

Wow so great, make me a dependency for Windows11, Apache, Firefox, and toasters.

Time is relevant. It should not be treated like a footnote in considering the importance of certain laws. If Thomas Jefferson were alive today, I think he would have used military force against Apple, or at the very least threatened Tim Cook to a duel.

To answer your question, the judges should cite their own judgement.

Am I the only one who sees how blind it is to continue citing 18th century politicians in 2016? Can we finally deprecate the "founding fathers"?
Re:Selection and Use of Manganese Dioxide by Neanderthals on Tuesday March 01, 2016 @12:37AM (#11200968)
More proof that Neanderthals were as smart as, if not smarter than, _Homo sapiens sapiens_.
Re:Why hasn't functional programming taken over yet? on Saturday February 27, 2016 @09:18PM (#11189488)
Because programming is primarily a business and it's cheaper to hire dumb programmers for whom functional programming is too difficult.
Re:AppImage: Linux apps that run anywhere on Saturday February 27, 2016 @09:11PM (#11189462)
Of course not. Hehehee. Stuff like this makes people like me happy, because of all the exploits.
Re:AppImage: Linux apps that run anywhere on Saturday February 27, 2016 @09:10PM (#11189460)
Oh exploitable!
Re:Ask HN: Broke, no money for rent or food? What should I do? on Saturday February 27, 2016 @09:35AM (#11187166)
I've bought crappy but running cars before for $200 (outright, no loan). If I were you, I would spend all day today on craigslist for a little junk car that you can sleep in. Shoplift food from supermarkets that will fit in your pocket. Beg on the street for spare change. Clean your body in public restrooms. Try to find drunk women at night who will let you sleep over in exchange for sex (and conversely, if you're a woman, this whole homelessness problem is much easier).

That would be the American way. The Western European way is probably going to the welfare office and getting a 1000€ check.

Re:Acceptable Ads explained: monetization on Saturday February 27, 2016 @08:28AM (#11187015)
Adblockers may use more than the URI, but it starts with the URI and if it does not match, then it does not block.

If a video file is served from cdn.example.com/video/?file=3w0rjwo, then have a DoubleClick ad serve from cdn.example.com/video/?file=0239fjad with phony HTTP headers including mime type.

How is this _not_ exactly what I said it was though? The author even says in the readme that it's a NIH version of Haskell.

I love PL mental masturbation as much as anyone else, but stuff like this is equivalent to an oil spill in a freshwater lake with 20 endangered species.

Re:Acceptable Ads explained: monetization on Friday February 26, 2016 @06:37PM (#11185130)
Why doesn't Google et al provide a shim for web servers to proxy ads off their own domains, with the same URI routes as the actual content? That way, an adblocker would also prevent the content from being served. (Why waste your networking load on non-paying customers?)

The main obstacle is that this introduces a middleman---so Google et al should only offer this service to the BIG money-makers (like nytimes.com) until they can ship something secure. Adblocking "problem" solved.

WHY don't Ad companies do this? I can see this as an Apache/nginx module or middleware libraries for whatever web server is used, without having to change anything else. How long would this take for the army of 140 IQ Google codemonkeys…like 1 day lol?

An ad-hoc, informally specified, bug-ridden, slow implementation of half of Haskell
Re:Amazon Free Shipping minimum is now $49 on Monday February 22, 2016 @02:26AM (#11149157)
Despite the temptation to bikeshed Amazon, I'd have to say this is quite justified. Amazon seemed TOO cheap for a lot of things. It was amazing they made any money at all. Now that they have a monopoly, they can stop with the freebies.
Re:Go 1.6 is Released on Friday February 19, 2016 @04:49PM (#11136910)
> generics

Go makes it easy for third party applications to parse the language,so generics are possible with pre-processing/codegen; e.g., https://clipperhouse.github.io/gen/