News for hackers. Stuff that matters.

viperscape

Re:4 developers picking a random restaurant (Problem) on Wednesday May 16, 2018 @08:05PM (#17087474)
But that means waiting for the third party right?
Re:Ask HN: Security of Passwordless Login? on Tuesday May 08, 2018 @05:55PM (#17025580)
Magic links are susceptible to man in middle attacks if your DNS is compromised, like on public WiFi, because the reset token is in the URI itself. So you're most vulnerable when you click the link.
I was just about to comment on magic and pokemon cards! Maybe even baseball packs. All could be traded for real cash, and obviously were! It's such a grey line though, the original intent of the cards is to not be traded around for cash, but be used to play games or simply collect (without the intent to sell) and be enjoyed. To be frank, I'm glad the world is cracking down on the digital forms of this, I think it's a bit corrupt-- explicitly targeting minors with considerably less self-control. In my opinion, it's right up there with apps that use in-game currency gems/coins that you can purchase with real money; because kids targeted by that game audience often don't understand the repercussions on such activities. I think there needs to be a very fine line drawn where a child cannot make a digital purchase, even if inadvertent. Regardless. It shouldn't be a "we suggest you set up parental controls", literally the device should be locked down from entirely preventing such behavior and must then be overrode by an adult.
You didn't take a multivitamin? How did your body handle lack of vitamin c? or d?
Re:Why people have trouble reading neutral faces on Tuesday April 24, 2018 @05:40PM (#16916883)
Have you tried Botox? Might be a good way to test your theory
just recently saw this, where you see two custom 275 lbs monoblock tube amp-- I thought it was extreme but cool: http://www.stereomojo.com/Small%20Speaker%20Shootout%202007/...
Re:Next-Gen Display: MicroLEDs on Thursday March 22, 2018 @05:59PM (#16653102)
I don't understand in general why OLED is taking so long to be mass produced for TVs and monitors. It's like just now becoming mainstream, with what seems like two actually purchasable products.
Gattaca, here we go
The article mentions "cannabis abuse" a few times, what metric is there to put use into the abuse column?
"scheme web framework", except there are multiple scheme implementations and variants. I don't understand why the word scheme is even used, each scheme is basically a silo.
How does this differ or compete with platforms such as patreon? Also I signed up and it defaulted to Artist, I feel like major category type should be chosen during onboarding. Also, sign in with Google should be a thing I think.
Re:Launch HN: Slite (YC W18) – Note App for Teams on Tuesday February 27, 2018 @04:30PM (#16478130)
Looks like OneNote http://onenote.com
Re:Ask HN: What project did you tackle to learn C? on Saturday February 10, 2018 @03:03PM (#16349276)
I second this. Write a basic game with 2d graphics, use SDL, and save and load the state to file. To take it a step further and write a networked version with your own basic byte encoding if each move and game state to keep in sync. This would teach you a ton of various topics.
The last two bother me especially. Only thing I can think of is that bodies are expendable and for police that means good second skins, they get first or second dibs. No need for cyborg parts when blasters kick so much butt.

The stack backup reasoning is lame, "too expensive" is not really defining, and if a stack can be transferred to another stack, having two with one in a strongbox seems logical. You possibly lose memories then, but live on. It seems to come down mostly to money and socioeconomic disparity. At one point someone says, fixing a broken leg is too expensive. That's ridiculous

This is awesome, thanks for sharing !
A bit of a stretch, but you can use Electron (https://electronjs.org/) which ties to nodejs, and use nodejs to call out to C.
Good point! I think you'd have to implement a lock of some sort, and check for it in application logic-- that way both can be updated simultaneously... not ideal!
Re:S-Expressions (1997) on Tuesday February 06, 2018 @10:13AM (#16316700)
> any possibility of ambiguity is effortlessly dealt with

"(+ 1)" is rather ambiguous and evaluates to 1, compared to "1 + ", which is very straight forward-- it's an incomplete expression and no evaluation can be done.

That sounds like expected behavior. Both users are incrementing a value of 100, which would be 101 in both cases. It's not atomic.

If User A incremented 100, and saved it down; then User B loaded this saved state and incremented 101, it'd be 102.

Re:OpenSC2K – An Open Source Remake of SimCity 2000 on Monday February 05, 2018 @10:26AM (#16309301)
Copyright is pretty straight forward in the US. https://www.copyright.gov/help/faq/faq-duration.html This game is still under copyright and including the assets for public consumption is considered illegal, unless otherwise specified by the rights holder
Re:Memory Safety in Rust: A Case Study with C on Saturday February 03, 2018 @03:18PM (#16299381)
Having learned Rust and used it for nearly 2 years, I am now happy using C. I think most issues in C are easily catchable. Here me out:

1. If using Int for indexing or any sort of len or count, make sure it's positive when needed, and within bounds of what's allocated. As in if you plan on allocating huge data, plan it out and use the right data type.

2. If you alloc, then free when done. If you free, set to Null; and before you free, check for Null.

3. If you realloc, in particular, check that it actually worked and prepare for basic error handling.

Rust requires all of these steps by default.

Finally, just test some of your code. Rust makes this easy, and encourages it.

I still really like C.

Re:Memory Safety in Rust: A Case Study with C on Saturday February 03, 2018 @03:06PM (#16299306)
Why is double free so commonly an issue? Isn't setting to Null after free and checking for Null before hand a common practice?
Re:C++ and the Culture of Complexity (2013) on Wednesday January 31, 2018 @10:36AM (#16274620)
Not to do the c vs c++ thing, I too prefer c. For over 20 years actually I have preferred c to c++; all the while learning and enjoying other languages like rust. c still is missing some crucial stuff in my opinion-- there are times where I wish generics existed, and when you tie that to a trait system like in rust it's really a pity to not have something like that in c. Couple that with really great package managers for libraries in other languages, and a coherent way to use the libraries, makes one long for more when working in c; it's really missing great and easy code sharing that so many other languages have at their front and center.
Well depending on the surgery that might be advisable, it's an anti-inflammatory and heading off inflammation is usually beneficial.
Re:Pebble is dead and hardware buttons are going with it on Sunday January 28, 2018 @12:28PM (#16252161)
Older resistance style touchscreen s would work well here, this is where the capacitance screens fail easily.
Re:Ivy – A static website generator built in Python on Sunday January 28, 2018 @08:06AM (#16251137)
No purchase necessary! The title and the slogan on the site seem to infer something else. It's public domain source, it says at the bottom of the page. Glad to see more static generators, not sure how this is better or different than the other many
Re:Unsafe Zig Is Safer Than Unsafe Rust on Friday January 26, 2018 @10:07AM (#16239665)
Also curious, would one ever do this in C? I understand the need in Rust and Zig, but in C is this usual?
Re:How to Run Your Own Mail Server (2017) on Friday January 26, 2018 @09:54AM (#16239576)
What do you use for the mail server? Do you do any sort of backups or failover? Just curious
Re:An update on Redis Streams development on Thursday January 25, 2018 @04:40PM (#16234940)
is it strictly in-mem? for instance if redis is restarted is there an option for unread streams to be saved with redis persistence

Older »