News for hackers. Stuff that matters.

jlblatt

I purposefully didn't include details around this as I didn't want to exclude any options or drive the discussion toward US politics.

I can say my #1 goal is long term security and stability for her. That might be accomplished by amassing a pile of money here, yes. Looking for alternatives for her to use on her own accord, if she desires.

Thank you, I will check that out.

I asked here because I figured I wasn't the only one on this forum that might want to know their options, and that the prevalence of STEM backgrounds and world experiences on here would offer some unique options that wouldn't otherwise be feasible for others.

Ask HN: How best to secure citizenship outside the US for my daughter?

Background: 38 y/o software engineer, married, with a 9 month old daughter, currently in the DC area. Due to the political climate in the US (off-topic for this thread/forum) I'm interested in securing an alternative citizenship for my daughter at some point in her lifetime. I understand this would be a large undertaking and assume it's not really feasible to cast a wide net, so I was hoping...

( Read More... | 5 comments | on HN )
Re:Tetris on Tuesday December 11, 2018 @11:41PM (#18661447)
> $(document).ready(function(){ if('ontouchstart' in document.documentElement) alert("..."); });

This worked in 2012 I swear! Oh the shame now however :'(

Thank you! The timing of EVERYTHING was by far the hardest part, as evidenced by your comments, there's something intrinsically familiar about the Tetris (or Breakout or Galaga or etc...) version you are used to. I modeled this one to be closest to the first I played, the 80s GameBoy version.

That said- I've noticed these myself in some form or another. 2 & 3 are related- I need to delay more as the block sits atop a collision. 1 I thought was off but just couldn't justify the time to prove it.

Thanks for the feedback!

Re:Tetris on Tuesday December 11, 2018 @03:11PM (#18658452)
Man, has any game been implemented more times than Tetris? It was always one of those things I wanted to do and finally got around to hacking together a javascript version of it a few years ago:

http://cortexture.net/tetris/

I would love to add multiplayer to in someday...

Also, if you haven't read the Kotaku review of "Tetris" (the game in general, not any specific release/platform), it is not only profound but hilarious: https://kotaku.com/tetris-the-kotaku-review-1718328217

> The best-known and best-loved video game ... is not a Skinner box of rewards for players but a bleak encounter with futility ... Tetris ends with certain death. It is a jigsaw puzzle that must be assembled on deadline, yet never can be ... The enemy in Tetris is not some identifiable villain ... but a faceless, ceaseless, reasonless force that threatens constantly to overwhelm you, a churning production of blocks against which your only defense is a repetitive, meaningless sorting. It is bureaucracy in pure form, busywork with no aim or end, impossible to avoid or escape. And the game’s final insult is that it annihilates free will. Despite its obvious futility, somehow we can’t make ourselves stop rotating blocks. Tetris, like all the stupid games it spawned, forces us to choose to punish ourselves.

Doesn't a drive thru also hand you a disposable bag filled with a bunch of other stuff that's about to become trash- napkins, wrappers, straws, etc...? Just toss it in there dude, try not to let it bother you.
Re:Show HN: Three.js Particle Visualizer and Portfolio Site on Thursday February 22, 2018 @01:03PM (#16439711)
Hi all, thanks for checking it out. I like to mess with OpenGL and Three.js in my sparetime, 9 - 5 I'm usually doing web dev. Posting this more for the visualizer but I would love feedback on anything.
I feel like this is solvable using binary to assign which bottles to which prisoners, but only if there were 16 bottles. For example, bottle 11 dec = 1011 bin. So bottle 11 would be tasted by prisoners 1, 3, and 4. Then if 1, 3, and 4 die, we know bottle 11 is poisoned. Every combination of prisoner deaths would point to a unique bottle.

Except 17. Fencepost error on my part maybe?

Re:Google Deactivates Web Search API on Tuesday May 03, 2016 @10:50PM (#11625827)
This should be (and is currently) downvoted but it did make me look up DDG's API.
Re:Show HN: Tetris using KineticJS on Sunday May 31, 2015 @06:33PM (#9635867)
Hi HN- I wrote this several months back just for fun, trying to emulate the gameplay of the 1989 Gameboy version as much as possible (with the exception of instant drop and the ghost block). Enjoy!
Re:AwSnap – This link crashes Chrome on Monday April 06, 2015 @12:34PM (#9329002)
TY, I'll update the readme.md when I get home tonight.

And you are right, it was initially marked as "Won't Fix" because it was not immediately reproducible, but further research yielded it being discovered as an "already fixed" dupe.

FYI it seems there is a minimum age (a minute or so) to a comment in order to reply. At least that was my experience last night.

Re:AwSnap – This link crashes Chrome on Monday April 06, 2015 @12:16PM (#9328883)
The dev reached out to me privately, I wouldn't infer anything based on the responses here.
Re:AwSnap – This link crashes Chrome on Monday April 06, 2015 @03:10AM (#9326980)
Yes, that's why I feel like this is more significant than a simple crash at first glance- no one would purposefully craft a 256+ unchecked character URL, unless they are being malicious, in which case they absolutely will craft a 256+ unchecked character URL.
Re:AwSnap – This link crashes Chrome on Monday April 06, 2015 @01:31AM (#9326743)
Hah, that click was definitely my karma for today, ty.

But the reason I posted this is because it doesn't rely on Javascript to eat up memory- anyone can post a malformed/long link to a web forum and crash the thread/site for other Chrome users immediately, without clicking thru.

Re:AwSnap – This link crashes Chrome on Monday April 06, 2015 @12:41AM (#9326569)
Totally valid, and not negative at all. See: https://news.ycombinator.com/item?id=9326370
Re:AwSnap – This link crashes Chrome on Sunday April 05, 2015 @11:50PM (#9326370)
I did file a Chromium bug last week, #472347. I filed under security (as I was unsure) so it's not public, but it was pretty much immediately marked as 'Won't Fix'. Hence the repo ;)
Re:AwSnap – This link crashes Chrome on Sunday April 05, 2015 @11:44PM (#9326354)
Wow, that's an even better guess than the other (not mine) I posted: https://news.ycombinator.com/item?id=9326350
Re:AwSnap – This link crashes Chrome on Sunday April 05, 2015 @11:43PM (#9326350)
Suggestion from a reply to my bug report (filed under security so it's non-public) points to a dupe of:

https://code.google.com/p/chromium/issues/detail?id=472899

and fixed in:

https://chromium.googlesource.com/chromium/src/+/5922e15ca3d...

FWIW

Re:AwSnap – This link crashes Chrome on Sunday April 05, 2015 @11:09PM (#9326277)
Yup, it's not "serious", but could be used to DOS I believe.
Re:AwSnap – This link crashes Chrome on Sunday April 05, 2015 @11:04PM (#9326265)
Could be. My concern is:

1) Most people don't have SSL enabled for most (if any) sites that are optional.

2) Most normal users are using the standard build for MacOS/Win, not the dev channel, and not Linux.

3) This requires no XSS or anything remotely tricky. Just a couple hundred bytes of HTML, and that's it.

4) Most web forum filters and formatting code (including Markdown) let this thru just fine.

Maybe I'm blowing it out of proportion, but if you wanted to be a jerk to a whole lot of people very easily, you probably could.

EDIT: Grammar

Re:AwSnap – This link crashes Chrome on Sunday April 05, 2015 @10:06PM (#9326090)
It seems hit or miss so far- Shardj just pointed out that https:// doesn't seem to crash at all.