HNHacker News
TopNewBestAskShowJobs

throwaway66666

781 karma · joined January 6, 2018

COO during the day. Throwaway during the night.
submissionscomments
throwaway66666··on Scheduling in React
We used this technique in the IE6 days (with settimeout nonetheless). We had a very big list that was being filtered as the user typed, and we would perform 10 dom operations (they were all creating and appending elements to the dom), then timeout for 15ms, then 10 more operations, etc. If the user changed the text, we would clear the most recent timeout which would stop the chain, it was very clean actually. I suppose with requestAnimationFrame it's a bit nastier as you 'd need like a __dirtyRequestStop boolean check to break the scheduling, but probably much more elegant performance wise.

The concept behind it, is that you give "air to the UI thread to breath". Basically instead of locking it for 100ms you lock it for less at the time, which is perceivable as just a delay, rather that the window completely freezing. Users would see the list progressively be created sometimes which was cool too, gave it a feeling of "this is doing some heavy work behind the scenes" without really doing much.

documentFragment also was used for constructing the elements before appending the fragment to the main element :) I am wondering if that technique has any merit today, since it really helped back then.

What is old will be new again :)

throwaway66666··on U.S. users are leaving Facebook by the millions, Edison Research says
Steam? Can you please elaborate, I am getting old I didn't even know steam had a social component. (except people leaving reviews, or posting to game forums about parts of the game)
throwaway66666··on Firefox Experiments I Would Have Liked to Try
So much this. Also the ability to change the background from black to white (with a slider or an easy to reach color picker that doesn't involve opening the console). It's so hard to notice when an image starts and ends when it has black at the sides, or to be able to distinguish transparent pixels easily.
throwaway66666··on Case Study: Npm uses Rust for its CPU-bound bottlenecks [pdf]
Users who suggest cryptography are getting downvoted (myself included). I am curious as to why. Is it perceived as spam or an attack on nodejs? Encrypted cookies and JWT (json web tokens) rely on a similar strategy so this is pretty standard. It would be pretty secure as long as the encryption key is not unique, so definitely not criticism on the NPM team but mere theories as to why a (what one would assume is a) database or memory bottle-neck is being presented as a CPU bottleneck in this scenario.
throwaway66666··on Case Study: Npm uses Rust for its CPU-bound bottlenecks [pdf]
My gut feeling is that the user keys are not random generated, but actually encrypted strings that contain the permission values. Decrypting them with modern encryption algorithms (like ChaCha) is pretty CPU intensive.
throwaway66666··on A listing of companies that don't do whiteboard job interviews
> Also, take home challenges are probably very discriminatory towards older candidates with families. So maybe just as subtle way of age discrimination?

And whiteboard interviews are discriminatory towards people with anxiety who have trouble thinking clearly when they are in the spotlight with all eyes on them, no? Where does the microaggressions game start and end?

My current company does,

-Offer choice between live coding and take home assignment. Regardless of picking the assignment, we do have multiple questions like "given this piece of code find the bug", but they won't require writing actual code.

-Home assignment for remote candidates. With a second round where we discuss and provide feedback (or the candidate explains their thought process) if needed. The candidate is also judged how feedback is received and argued about. If adequate documentation has been supplied we skip the second round too, or just do it in email back n forth.

-And if you have an impressive active blog and an active github profile you probably evade both live coding and assignment (but still get asked the usual questions about architecture, algorithm use, whether you 'll be a good personality/culture-fit etc).

Despite being "nice" our rejection ratio is quite high (at least in my team), and people who picked the assignment themselves/no-pressure applied then bitched about it on glassdoor. Even though they had the option to not have to do it at all. I don't get it.

throwaway66666··on Did Strava copy its mobile route builder from another app?
When patent trolls sue competitors for copying features we 're unhappy. When somebody copies "my idea" we 're unhappy.

What is a good solution? Copying but giving attribution?

throwaway66666··on We Need Chrome No More
Thanks for commenting. My comment was meant to to be slightly exagerated but since your response is grounded, I 'll rephrase mine too :)

The evangelist tweets (I won't dig them because it's not cool) are 100% real, but keep in mind they were meant to be humorous and not official stance.

Firefox 3 got released in 2008, but firefox 3.5 (arguably the best browser at the time) was released a year later. Mozilla released many firefox updates in the meantime I believe they did so even after firefox 4 was released (no forced update from 3.5 to 4).

Firefox 4 was delayed to my understanding due to the whole html5 hype and trying to support as many of the new standards as possible (this info is from twitter so it might be wrong).

Lots of projects in limbo, not much different than google pushing NaCl, Dart, webkit prefixes. It looks bad only when paired with the general low activity. There were some chat logs leaked of mozilla people talking about adding webkit prefix support to firefox. Some where getting very angry over this. Today firefox supports the webkit prefixes :p must have been a multi-year argument.

Lack of mp4 support was due to MPEG LA owning the rights to h264. Mozilla didn't wanna pay the patent owners, in the end cisco created openh264 and mozilla used that, in 2014 nonetheless. Webm was not added because it wasn't a web standard. In my opinion both h264 and webm events got dealt in poor judgement but whatever.

The Yahoo change was due to an expensive multi-year contract between Mozilla and Yahoo. Money before users. I remember people defending it by saying that yahoo search is powered by Bing, not by yahoo themselves.

In general mozilla used to be this awesomely perceived company... no not company, foundation! They organized things like place giant firefox stickers in your city and gain online fame, and sending a cake to the IE team with every major release they did. Spearheaded the whole open web movement. It was Richard Stallman with Charisma 10! And then.. kinda suddenly stopped and became more like the Apache Foundation. Cool and all but slow and old.

throwaway66666··on Gpu.js – GPU Accelerated JavaScript
GPU 491 times faster. Something's iffy, but I love the idea.
throwaway66666··on We Need Chrome No More
If anyone's to blame it's mozilla's criminal laziness. There I said it. We were stuck with firefox 3 for 3 years (early 2008-2011), on a time where chrome was getting a +1 version every month or 2 months.

I remember Mozilla "evangelist" employees hard at work, tweeting "version doesn't matter, it's the changelog that matters, chrome team could have changed two background colors and did +1 to the version counter".

Great battle move. Then, Firefox 4 got released and everyone hated the new interface. Even ex-mozilla cofounder JWZ complained that it feels beta even though it's a fully mature product out for a decade now and that's unacceptable. Also, No mp4 support. Oh yeah. They added it in Firefox 20 finally (then no webm support. They finally added it in January 2019. Good job)

In the meantime, Mozilla engineering kept fooling around with projects that went nowhere. Fennec Fox for mobile, what happened to that? THE JAVASCRIPT PHONE! FLASH TO JS CONVERTER, where is that now? That JS only Video Codec ORBX.js? that Eich said "I saw the future today" 10 years ago, and it's still not out yet. PDF JS (in it's first release made opening large PDF files on Firefox impossible) etc etc. Many good things came of from it too, like asmjs (ancestor of wasm), but in general there seemed a direction of everywhere, neither arriving here nor there.

Mozilla then switched the default search engine of Firefox to Yahoo! At a time when Yahoo was in the spotlight for rapidly dying and looking for a pity-acquisition!! It also came bundled with great bugs that kept resetting the default search engine back to yahoo - https://support.mozilla.org/en-US/questions/1206101

To give praise where praise is worth, Mozilla did realize their mistakes got back from their 9 year vacation (2009-2018) and Firefox today is finally very stable and relatively fast compared to Edge and Safari.

I know I am sounding trollish and bitter, but the truth is that I am just sad at how Firefox fell. What happened? Did people get lazy as their savings grew? Where key individuals poached away by Google and Apple? Did they burn out? Something surely must have happened...

throwaway66666··on One of the Biggest At-Home DNA Testing Companies Is Working with the FBI
It means you will be unidentified by political groups. EG let's say a right wing goverment in France finding all the gypsies in Paris.

Or a life insurance corporation seeing that you have predisposition for heart disease, and refusing to provide services to you.

throwaway66666··on Self-driving cars will "cruise" to avoid paying to park
Hello, I am from the future. You will not be able to buy a self driving car. You will however be able to rent it, on an hour, minute, or per mile basis. Not too different from what you can do today with a lyft/uber. It will be "your car" only if you book it for let's say 3 full months. The very next day it will drive away on it's own. Max period of 'ownership' will be 6 months.

This will be known as "THE FLEET SERVICE", and every major car manufacturer, car seller, and car renter will jump on it. Lyft will be competing with GM will be competing with hertz.

There is so much more money to be made when one car is servicing many people, and when you pay for it non stop, or it plays ads to you during your commute. Records your schedule, destinations, music preferences, and unencrypted http traffic and sells it to advertisers. You can buy, sorry, rent the privacy X models, for a premium. Sometimes the cars will take different routes, to make sure you drive buy a starbucks, perhaps you will request it to stop to get a coffee. This will be advertised as a "learns your preferences and the things you love", but most of the time, it will just choose to slow down a bit when it drives by that huge billboard, you should really look at, while on the highway.

Think of this like when comcast owns the router in your house, and makes it be a node for their xfinity service, and has you locked out of admin panel. Or when your ISP injects JS in the html served to you. Or for when you run serverless on amazon. Point being, there is more money to be made in a renter's market than an owner's market.

You will, however be able to buy a semi-autonomous vehicle like you can do today, but fully autonomous will be prohibited, as the main companies will lobby with dumb excuses like "Who will be responsible in the case of a fatal accident? The company will be". Also, if you spend 150k to buy an autonomous model, and we update the service, your model gets no update and stops working in a year. The rented models always work. Governments will be against this, but will finally comply when law enforcement and tax agencies get free access to all information, though they will deny that is the case.

Hackers and open source enthusiasts will "hack" some cars to modify them to run custom software (linux self driving distro), or install adblockers and location spoofers for privacy reasons. A practice that will instantly become illegal and be branded as domestic terrorism.

throwaway66666··on Instacart paying 80 cents an hour because worker received a large tip
So you are essentially thanking and tipping instacart, not the worker. Evil like a villain from a disney movie.
throwaway66666··on What do you dislike about React Native?
I agree with you that on desktop the situation is a bit different. I 've only played around with UI on OSX, and for some reason it is way harder than native ui on ios (old NextStep api vs UI api). Fonts are handled differently. The coordinate system is different (starting from the bottom left corner if I remember correctly). Coding for multiple screens; like tracking pointer position on windows on different screens is awkward. Lots and lots of legacy stuff.

Perhaps windows is better? What about linux? :p But I see why people are disliking the native ui situation on desktop.

throwaway66666··on What do you dislike about React Native?
I will probably be heavily downvoted but here goes nothing. I have not used React Native yet, but I followed and was heavily invested in the "write once deploy anywhere" trend between 2009 - 2014.

From phonegap (before it became cordova), to Adobe Air with it's bad performance and "native extensions", to Appcelerator Titanium that put a nodejs server in your phone and even had Windows Phone 7 support, to cordova, to Haxe, to sencha and others. Appcelerator Titanium was the only ones that did real native for some cases like scrollviews, Haxe used custom C++ apis, the rest used webviews, and adobe air was basically flash emulated that ran like shit.

Write once deploy anywhere, meant write once, deploy somewhat anywhere, spend double the time to make that promise true. Kinda like having to do IE6 support in the past. I was deep in that madness up until mid-2014. At that point I decided to buy a macbook and give native development a try (obj-c for ios and java for android -- When I say native I mean real native and not React Native).

What a magical experience! Things that are tough to do in web even today, like real never-ending scroll lists, are a breeze in native with their reusable cells. Things like standard headers and modals, are already built in and a few lines away. And I actually prefer the touch event handlers on both ios and android to the web's "mouse/touch/PointerEvents" ones.

I do not understand why web developers have such a knee jerk reaction to native development. ObjectiveC/Swift and Java are actually easy to write. Tooling (especially for ios) is fantastic. In my experience, it is much faster to write UI interfaces in Objective C and Swift (I never use xcode's UI builder) than html+JS. But the real joy is being able to harness the real power of your phone. I run some C++ algorithms on both ios and android (I guess C/C++ is the original cross platform) that on android are faster than the built-in Java apis themselves! And of course, true multithreading!

But here we are, non-stop chasing the "no! I want javascript in my frontend, and in my servers, and javascript in my ios apps and android too!" dream.

Perhaps React Native accomplishes that. I hope it really does and solves that decade-long promise of "write once deploy anywhere". I guess all what I 'm trying to say is, don't be afraid of native people! Web devs are willing to go through insane hoops and loops instead of just... giving the real thing a go. So weird.

throwaway66666··on Quora User Data Compromised
The email I received from about my real-name being leaked was signed with "The Quora Team". That's kinda ironic, don't you think?

But still, it is not about finger pointing and blaming one individual. It is about a spokeperson for the public.

The guarantee that things will improve. Someone who will handle announcements and communications with the public and will vouch using their real name and reputation that things will improve. Someone who will explain what went wrong and what actions are taken to ensure this does not happen again. Employee training in place? Tier'ed access of data and information to employees. Stricter policies, eg you can't take a database backup home? etc etc.

Again, no crucifixation required, but pinning an identity can be good, because you know that there is someone and who that someone is that puts all their energy into fixing this mess.

Think of someone like Stamos at facebook. I don't know if his contribution in the end was a net positive or not, but it is good to know that there is someone that is focused on the issue.

throwaway66666··on Quora User Data Compromised
And it must end with "-The Quora Team"

Because we will leak your data, but we won't bother designating a responsible spokeperson be it security officer, cto, vp of engineering or principal architect. It will be the all nebulous quora team.

throwaway66666··on Quora User Data Compromised
>given Quora's tenure (almost nine years!) that this is the first breach is pretty amazing

I am sorry but this is #ShitHackerNewsSays worthy. Let me fix it for you

>given Equifax's tenure (almost 119 years! Since 1899) that this is the first breach is pretty amazing

Better now? Downvote me if you want, but there are no pats in the back for having PII leaks, no matter the years.

throwaway66666··on Quora User Data Compromised
In 2013 a quora moderator contacted me and demanded that I provide my real name, and information that my name is real or they would ban my account. I tried reasoning with them, that I just wanted to view content and did not attend to write answers or interact etc, plus, they had a valid email address and facebook profile (also fake name on facebook). They fought back "we actually want proof of your real name like a scan of ID". I danced around and did not end up giving them a scan of my id, but I changed it to my real name.

Today my information is probably leaked. Information I didn't want to give and that they threatened me for it.

Where is the apology Quora? From all the recent leaks this is the one that pisses me off the most, because it's the one that was forced unto me.

throwaway66666··on Google paid Andy Rubin $90M while keeping silent about a misconduct claim
I believe 100% that R. DeVaul is scum and I am not trying to attack the story, but the burning man part is too difficult to believe.

Tickets for burning man go on sale 6 months before, cost $1000 and become sold out in 30 minutes. It's a festival in the middle of the desert that you have to go pretty prepared if you want to last more than half a day (coolers, water, van, etc).

How did someone find tickets for 2 people a week before, drove to the desert with their mother because they honestly thought it was an interview test.

EDIT: Maybe she was going to be at burning man with her mom eitherway. She just decided to get some more business oriented clothes for when she would hang with her new work mates. That makes sense. But now it makes zero sense for the article to mention the burning man story.

throwaway66666··on Deep Angel: AI that erases objects from images
And spam church is supposedly built by this fake corp - http://kendallcorp.mit.edu/

-------------------- Text on website (un-zalgofied) says

The Kendall Corporation has been providing infrastructure for worship since 1964. With over a hundred funded fads, religions and spiritual movements across the five continents, Kendall Corporation is the leading powerhouse for seeding creeds.

1. Do you have an early-stage development of a conducive mesostructure?

2. Are you good at building platforms to enlighten, seduce and draw crowds in?

3. Is a network of your making growing at superlinear speed?

Please reach out to us; we may be able to provide angel funding for your startup idea.

https://www.dropbox.com/s/6v4t2vegand2v1l/Spam%20Church_Stor...

(removed address and phone number -- even though fake, I don't like linking people's info)

---------------------

Looks like an MIT Media Lab graduate's painfully pretentious arg/art project (i love it) :D

throwaway66666··on A Constructive Look at TempleOS (2015)
"Thou cannot kill God" - Ecclesiastes 640, verse 480

It sadly seems so, but it has not been confirmed.

What is weird is that his site used to have a donations button - https://archive.fo/ltjBH Then someone changed it to suggest donations to charities in honor of his passing - https://archive.fo/M8Iut And now it's completely removed - https://www.templeos.org/

throwaway66666··on Peak Valley?
I live in SF and face daily the eldritch horror abominations NIMBY's brought upon this world. It's getting increasingly hard trying to keep my sanity. Their nextdoor incantations against a 24 hour bus schedule because it will degrade road quality (true story). The little leaflets they put in my mail inviting me to join their cthonian ceremonies of opposing and punishing a neighbor's hybris. The heretic wanted to remodel his parking space, but construction will raise up dust which their kids will breath while playing outside (true story). Trying to reason with them is impossible, it only results in madness..

Ok now, joking aside (though the 2 examples I mentioned are 100% true, they opposed a late-night bus because it would cause noise + somehow degrade road quality. Who can reason with old-bitter people with too much time on their hands?).

The issue I am seeing with them selling to developers for huge amounts of money, is that the developers will want to make that that amount of money++ back. Current zoning laws limit the height of buildings, so... their only option is to only build small insanely overpriced condos and grant permissions only to super-upscale businesses, that only rich or rich-young-tech people can afford and want. Perhaps the market will correct that in time, but powerful people as aways will fight for that to not happen.

I feel we need more relaxed zoning laws, let people build bigger and higher.

throwaway66666··on Eating in 10-hour window can override disease-causing genetic defects
No, I was living alone while going to school. I would starve myself so I could save more money. What is the difference between X day fasts and what I did?

I am not trying to claim that fasting doesn't work, just noting my personal experience. For me it certainly worked in the sense that I saw the fakeness of "if you don't eat for X days you get super hungry or weak/sick/you die", I was perfectly ok.. but not amazing.

throwaway66666··on Eating in 10-hour window can override disease-causing genetic defects
I 've spent 3.5/4 years eating nothing except on the weekends (my undergrad). So I would go for 2-5 days at a time without food. Not because of fasting fads or anything, I didn't even know what fasting was. I was just from a very poor family and if I wanted to go for vacations with my friends or party in the weekend or buy a computer I had to save every penny I could. (that's how I bought my first laptop etc). I would eat properly during holidays and the summer only at my parent's home.

I was very skinny, but somehow still had fat. Sometimes I bought pants from the women's section or I would take pants to my mom to sew the waist tighter, because I was so thin I couldn't find clothes that fit me (I have some pictures of me wearing my 108lb girlfriend's pants stashed somewhere). I exercised a bit but seeing me without a shirt you could tell I had manboobs and a tiny-lil bit of a potbelly and no abs at all, not even the skinny ones.

At some point I developed fainting on sight of blood. I would brush my teeth, and if I scratched my gum and blood came out -- I had to run to the bed asap before passing out. To this day I don't know if I was just afraid of blood (blood doesn't affect me anymore), or I had gotten so weak I was actually nearing total collapse. Blood tests were surprisingly fine I just had low iron.

Looking at that period back, I 'm trying to see if the advertised benefits applied to me. I didn't get sick much, but I don't get sick in general. Aging... well what can you say to an 18-22 year old about aging. My libido was low which makes sense I guess. Energy, regular levels. I don't know, I was just a very thin dude, fasting or not, no major epiphanies or amazement. I suppose it's amazing that one can survive fine, no suffering, going for so long without food, but it wasn't better than eating.

I am very surprised at how people swear by it. Maybe life is much worse when you eat 3 meals per day? I don't know, nowadays (early 30s) I eat 2 meals and exercise a lot and I 'm pretty content. I think for me, exercise did the trick that elevated both my mood and my energy levels.

Would I do the crazy 5-day 4 year fast again? If I was young and "hungry" sure, but it's definitely miserable. Food can be a great social thing to do with friends, and a cool experience especially when trying new dishes and restaurants. The huge food diversity in SF spoiled me.

Edit: back then I was very ashamed of my fasting and try to hide it from friends etc. A few weeks ago I was shocked when a coworker told me he was doing a 7 day water-only fast. We 've come a long way!

throwaway66666··on San Francisco Denies Scooter Permits for Bird, Lime, Uber and Lyft
I felt the same to be honest (my comment above was meant to be somewhat humorous). I 'm pretty sure many of the ones thrown around where parked properly and someone just kicked them down. Pretty sad.
throwaway66666··on San Francisco Denies Scooter Permits for Bird, Lime, Uber and Lyft
Who cares though, they are all the same. (I forgot which company's I used, until I checked my phone now to see the app). They really didn't work much on brand recognition, I 'm surprised people have favorites
throwaway66666··on San Francisco Denies Scooter Permits for Bird, Lime, Uber and Lyft
I recently went south to LA and SD, and the scooters are awesome there. I saw them mostly near the beach, and 0 thrown in the middle of the pavement, none blocking exits or riding them obnoxiously. They even have scooter police that will give you a ticket if you go too fast (I am not saying that as necessarily a good thing, just that they seem to have their stuff together as cities). For the first time I actually made an account and hopped on one of them.

However, in SF they overdid it. I don't know if SF residents got replaced by a bunch of self-entitled nerdy manchildren, but holy hell they were obnoxious. You would see 5-6 of them blocking the entrance to a restaurant (at anchorsteam brewery tap room especially). Thrown down in the middle of the pavement. People riding them on the sidewalk yelling "GOTTA GO FAST", going somewhat fast (at least have some dignity and dress like Sonic the hedgehog if you 're gonna do that). Think of an 80s action movie where the punks or hell's angels type of gangs run amok in the city, but it's dudes wearing startup t-shirts on electric scooters instead. Anyway, I 'm not a nimby but their presence in SF really left a sour taste.

But after seeing them in LA and San Diego I am convinced they can work super nicely if a little bit of common sense is applied. Maybe the SF populous is early adopters and jumped on the latest trend with too much passion, or maybe those companies put on the streets too many units. I don't know, but it can be done right and I 'd really like to see them back.

throwaway66666··on “I Used AI to Clone My Voice and Trick My Mom into Thinking It Was Me”
I went camping in the alps once. On our last night, my friend took a bowl and gathered ashes from the campfire. Half ritualistic, half jokingly, she said that those ashes mark our trek and experiences, that she would carry the ashes back home no matter what.

I was very confused how she would pass a bowl of unidentified ash from the airport security (we only had a backpack each). She drafted a poorly done and obviously fake death certificate. It was not campfire ash anymore, it was the remains of her father.

The people at the airport were visibly awkward, they tried to be as accommodating as they could. She flew back home with a plastic bowl of ashes from our campfire, it even had some parts of birch and branches.

Airport security was easily fooled. And the author's mom is easily fooled too, motherly instincts be damned. Would a neural net be fooled by the author's attempts? I know for sure that an automated security system would sound the alarm on my friend. I 'd like to see adversarial networks fighting each other on such premises. A son network trying to fool the mother network and vice versa ad infinitum, at least 1 billion of simulation hours in. What kind of wonders would come out

throwaway66666··on Good thing in PHP nobody talks about
Which one has more chances into resulting the version variable not being overwritten. var const_version = 0.5; or const version = 0.5;

Guidelines, good/bad practices and patterns are merely suggestions, enforcement is king.

← PreviousPage 4 of 5Next →