HNHacker News
TopNewBestAskShowJobs

dottrap

1,373 karma · joined January 30, 2013

submissionscomments
dottrap··on Credit card fraud warning signs
So if you see one of these warning signs, what should you do?

What if it is a legitimate order? You don't want to turn down a real customer?

I presume if you try contacting the person and asking them if it is a fraudulent order, they will deny it. (I suppose if you can't reach them, that is good enough indication to cancel the order as fraudulent.)

Can you call the credit card companies or payment processors and ask them to do their own fraud checks to see if it is okay, or are they going to leave you on the hook if it still goes bad? (I suspect the latter.)

dottrap··on If you’re not a Prime member, Amazon won’t sell you "The Last Jedi"
Costco also allows non-members to buy from their pharmacy.
dottrap··on 100 days with Rust: a series of brick walls
Lua has been known to remove things. The language still remains small and clean after over 20 years. The creator has given some talks about how breaking compatibility (e.g removing features) requires its own thought process. There are different types of changes. The easiest to change are the ones that can be detected immediately in existing real world programs whereas the hard changes are the kinds that could go silently undetected by users until it is too late.
dottrap··on RIP Bob Givens, Looney Tunes and Tom and Jerry Artist
Bob Givens helped design the look of Bugs Bunny. This early model sheet is attributed to him.

http://johnkstuff.blogspot.com/uploaded_images/WildHare_Mode...

Full link from: http://johnkstuff.blogspot.com/2006/06/bugs-bunny-evolution-...

dottrap··on It's the Latency, Stupid (1996)
It's still called Bonjour. It is the 15th anniversary of Bonjour. Cheshire gave it a section at the very end of this year's WWDC Networking talk.

https://developer.apple.com/videos/play/wwdc2017/709

dottrap··on Writing a Simple Linux Kernel Module
"And finally, you’ll need to know at least some C. The C++ runtime is far too large for the kernel, so writing bare metal C is essential."

That line reminded me that NetBSD added Lua for writing kernel modules. (https://news.ycombinator.com/item?id=6562611)

Anybody have any experiences to share from this?

dottrap··on Google pulls YouTube off the Amazon Echo Show
I've never seen anybody who's made a serious attempt to look at the numbers claim YouTube is profitable. All say the opposite.

Some random examples:

CBS Marketwatch: https://www.cbsnews.com/news/4-reasons-youtube-still-doesnt-...

Business Insider: http://www.businessinsider.com/youtube-still-doesnt-make-goo...

Motley Fool: https://www.fool.com/investing/general/2015/03/01/youtube-is...

And none of these include this year's Adpocolypse.

dottrap··on Google pulls YouTube off the Amazon Echo Show
According to Eli the Computer Guy, it is something like:

YouTube costs: $6.3 billion per year

YouTube revenue: $4 billion

So they are losing $2.3 billion per year.

Eli the Computer Guy made a lot of waves around a year ago because his account was both incorrectly flagged for a "Community Strike" and his appeal was incorrectly dismissed which effectively left his channel dead in the water and he announced he was quitting. After outrage, a human finally stepped in and fixed the mess. Then later that year, his account was deleted by Google in the middle of a live stream without any explanation. (It was later restored, without explanation.)

Eli, talking as business entrepreneur, has talked a lot about the problems of YouTube as a platform. He frequently does business analysis and goes over numbers.

He has also broken down their cost structure, and yes, their expenses can really be that high. In addition to the massive number of videos that get uploaded every minute, they must also make multiple encodings of each one, and then all that needs to be mirrored to all the CDNs. (He was trying to figure out if he could do self-hosting...he felt if he just needed to make downloadable video files you watch offline, it can be done cheaply, but for streaming convenience, that's where things get expensive.)

Eli also quoted Susan Wojcicki stating that they still see YouTube as in the investment stage, which means they still are pumping money into it with no expectation that it's going to turn a profit anytime soon.

dottrap··on Why Is YouTube Demonetizing LGBTQ Videos?
YouTube has been demonetizing everything across the board, from gaming videos to non-political sketch comedies, and without much explanation.

This is all part of the "Adpocalypse" that YouTube content creators have been complaining about this past year.

Content creators are left guessing why many of their videos are being demonetized. Even fairly bland material gets demonetized by "the algorithm". Some speculate just having a somewhat risqué hashtag or image in the poster image is enough to get demonetized.

dottrap··on Intel delays Cannonlake 10nm processor for the third time
Because being able to dual boot Windows or even Linux is a serious consideration for important segments of the market. Companies that buy computers for their employees are going to be more hesitant to blanket approve Macs for their employees if they can't easily be repurposed to support their Windows (or Linux) need.

Getting all software developers on board to do another architecture transition is also a massive undertaking. Apple has lots of experience in this area. Steve Jobs was asked how long the PowerPC to Intel transition would take and he said 7 years. That's because current Macs still need to be supported and some key vendors like Microsoft and Adobe were extremely slow at transitioning their products.

LLVM bitcode is not architecture agnostic. You still need different builds for ARM vs Intel.

dottrap··on W3C abandons consensus, standardizes DRM, EFF resigns
Did Apple actually support this proposal? Seems like their own self-interest would want them to reject this. The lack of a standardized web DRM would push developers to native apps which benefits Apple. And web DRM doesn't benefit the iTunes eco-system.
dottrap··on Did California plastic bag ban result in San Diego's current hepatitis outbreak?
Related: Plastic Bag Ban Responsible For Spike In E. Coli Infections, Study Says

http://www.huffingtonpost.com/2013/02/07/plastic-bag-ban_n_2...

dottrap··on Cassini's Saturn Mission Goes Out in a Blaze of Glory
They are worried Earth microbes on the satellite might eventually be confused for life on the moon.
dottrap··on I don’t know who the Web Audio API is designed for
OpenAL has multiple implementations, including the popular open source OpenAL Soft. They are not all closed source.

OpenAL does have a recording API so it isn't pure playback only.

But you are right in that the OpenAL scope is fairly limited. It was designed for games, particularly for rapid and frequent playback of simultaneous short sound effects. Because of this, the memory management issues you bring up are not often an issue. You load all the buffers you need at the beginning of the level and you keep reusing them without any more memory allocation/deallocation.

OpenSL ES was adopted by Android in 2.3 (API 9). However, they just recently seemed to invent yet another API, and seem to be leaving OpenSL behind.

dottrap··on A startup founder and ex-Facebook engineer’s story of the BSD + Patents license
I did that, but I don't know what to look for. I searched for React but it didn't find anything. The article claims Apple uses React. I wanted to verify that claim.
dottrap··on A startup founder and ex-Facebook engineer’s story of the BSD + Patents license
How can you tell if Apple is using React for their documentation page?
dottrap··on Smarter speed bump using non-Newtonian liquid
Badenova posted the first video on the page in 2010.

It's been 7 years. Anybody know how adoption has been?

dottrap··on Write a hash table in C
Also there is the header-only khash.h [3], complete with benchmarks:

https://attractivechaos.wordpress.com/2008/08/28/comparison-...

(Also provides kbtree.h, ksort.h, kstream.h, kvec.h)

[3] https://attractivechaos.wordpress.com/programs/

Also there are the stb header-only libraries. There is a hash table implementation buried inside stb.h

[4] https://github.com/nothings/stb

dottrap··on Swift 5: start your engines
Swift on Android:

https://academy.realm.io/posts/swift-on-android

Young but potential.

dottrap··on Disney acquires own streaming facilities, will pull Netflix content
> If every studio thinks I'm going to pay them $10+ a month to stream their content, they are going to be very mistaken.

I agree. But taking a step back, Disney is probably the one company that can justify this the most by owning so many properties:

the traditional Disney stuff, Star Wars/Lucasfilm, the Marvel movies, Pixar, The Muppets, Touchstone, ESPN, ABC, A&E, Lifetime, History channel. They even have a 30% stake in Hulu.

dottrap··on Where Tcl and Tk Went Wrong (2010)
Lua was successful for good reasons. And Lua itself acknowledged Tcl, but didn't have the right trade offs for them.

"In 1993, the only real contender was Tcl, which had been explicitly designed to be embedded into applications. However, Tcl had unfamiliar syntax, did not offer good support for data description, and ran only on Unix platforms. We did not consider LISP or Scheme because of their unfriendly syntax. Python was still in its infancy. In the free, do-it-yourself atmosphere that then reigned in Tecgraf, it was quite natural that we should try to develop our own scripting language ... Because many potential users of the language were not professional programmers, the language should avoid cryptic syntax and semantics. The implementation of the new language should be highly portable, because Tecgraf's clients had a very diverse collection of computer platforms. Finally, since we expected that other Tecgraf products would also need to embed a scripting language, the new language should follow the example of SOL and be provided as a library with a C API."

http://www.lua.org/doc/hopl.pdf

dottrap··on Sega releasing every console game for free with ads on mobile
Eurogamer hates it too: "Unity ports run much worse than older emulation, even on high-end devices"

http://www.eurogamer.net/articles/2017-06-21-sega-releases-c...

dottrap··on Our understanding of the way the body handles salt may be wrong
This needs to be paired with Scientific American: It's time to end the war on salt

https://www.scientificamerican.com/article/its-time-to-end-t...

dottrap··on Fixing a bug in “Airwolf” code from 1984 [video]
Here's another one if you don't already have it. Numb3rs shows Objective-C/UIKit code (UITableViewCell and NSArray *crayon)

https://mtgap.wordpress.com/2009/08/14/objective-c-reference...

dottrap··on “A closure is a poor man’s object; an object is a poor man’s closure” (2003)
The TV show NCIS borrows from this philosophy. Gibbs always smacks the back of his underling's heads when they do something stupid. But if he doesn't, they worry he has given up on them. They also made it a point saying that smacking the front of the head would be offensive.
dottrap··on San Fran is so expensive, some tech companies can't convince employees to move
Even more odd is that San Jose is a larger city than San Francisco.
dottrap··on Uber finds one allegedly stolen Waymo file on an employee’s personal device
Judge Judy was a New York judge from 1982–1996, starting as a criminal court judge and then promoted to supervising family court judge in Manhattan, until her retirement (followed by tv show).
dottrap··on How I legally got scammed for $250 by an upscale apartment complex
Most likely the data was wrong. The credit report industry has a 20% error rate.

See the old 60 Minutes investigation on this.

http://www.cbsnews.com/news/40-million-mistakes-is-your-cred...

dottrap··on Discussions with Apple regarding license agreement
Interesting that Apple was that much of their revenue. Reminds me a little of PortalPlayer from the iPod days, though it was much more dependent on Apple (90% of its revenue). But I remember the rumor mill echoed Apple was unhappy with them. Eventually, Apple decided to switch MP3 chip suppliers and the PortalPlayer imploded.

http://www.eetimes.com/document.asp?doc_id=1160843

dottrap··on What can Rust do for astrophysics?
Is the code in gravity_calculate_acceleration correct? I think 'j' will always be 0 in the inner-loop, which seems to defeat the purpose of having a j variable.

    void gravity_calculate_acceleration(int n_particles, double m[], double x[][3], double a[][3]) {
        double G = 6.6742367e-11; // m^3.kg^-1.s^-2
        for (int i=0; i<n_particles; i++){
    		a[i][0] = 0;
    		a[i][1] = 0;
    		a[i][2] = 0;
            for (int j=0; i<n_particles; i++){
                if (j == i) {
                    continue;
                }
                double dx = x[i][0] - x[j][0];
                double dy = x[i][0] - x[j][0];
                double dz = x[i][0] - x[j][0];
                double r = sqrt(dx*dx + dy*dy + dz*dz);
                double prefact = -G/(r*r*r) * m[j];
                a[i][0] += prefact * dx;
                a[i][1] += prefact * dy;
                a[i][2] += prefact * dz;
            }
        }
    }
← PreviousPage 4 of 15Next →