Readit News logoReadit News
bsurmanski commented on Asus Zenbook Duo 2024   asus.com/us/laptops/for-h... · Posted by u/zhyder
bsurmanski · 2 years ago
This would be amazing for Nintendo DS emulation
bsurmanski commented on Google Fires Employee of over 16 Years with Automated Email   medium.com/developer-purp... · Posted by u/Tozen
toyg · 3 years ago
That's an amazing similitude, I must note it down. I reckon the last bit could be even "got to fetch it from the network", since you'll likely have to hit Stack overflow..
bsurmanski · 3 years ago
To stretch out the metaphor, asking a knowledgeable coworker could be "read from RAM", then documentation could be "read from disk"; or vice versa. But I find having someone to bounce questions off of easier than reading docs
bsurmanski commented on Valve is paying open-source developers to work on Proton, Mesa, and more   old.reddit.com/r/linux/co... · Posted by u/raybb
yellow_lead · 3 years ago
I was thinking of doing this - how do you like it? How's coding on it?
bsurmanski · 3 years ago
Not op, but I bought one. It's essentially a Linux laptop with a control interface built in. For emulators and steam games, it's really nice to have an option to play on the tv (with the dock). I don't see it being an especially nice coding experience; you'd need an external keyboard, mouse, and monitor. And without a dock, all it has is a single USBC port. Though it has a full KDE desktop, so it should be feasible.
bsurmanski commented on Ask HN: Is it the “worst” time to buy a house?    · Posted by u/rootsudo
bsurmanski · 4 years ago
It mostly comes down to the fed, and their response to inflation.

If you think their response will reign inflation in check, we'll probably see the market 'crash' and a recession like the late 80s.

If you think their response will be soft, and persistent inflation is the new norm, we'll probably see the market act more like the 70s.

Maybe they walk the line, but I don't see how that's possible. Monetary policy is just so of-the-mark right now.

Another screwball is WFH. That could sap demand for large cities and push demand in suburbs and smaller towns.

bsurmanski commented on Passwordle   rsk0315.github.io/playgro... · Posted by u/snthueoa
residualmind · 4 years ago
Yeah because the algo is known, it is SHA256.

The thing is you don't know the length of the password. It could be more than the number of hydrogen atoms in the universe, or 12. You still have to brute force or look up one possible solution (or collision thereof).

The whole thing just shows that a hash makes ZERO applicable inferable assertions about the message (password).

Thats the definition of evenly distributed hashing functions: change anything in the message, including length, and there will be no identifiable relation between the hashes of one messsage and the next you try,

bsurmanski · 4 years ago
I think for something this checking the source for the generation algorithm is fair game. here it is:

  function randomInt(n) {
    return Math.floor(Math.random() * n);
  }

  function randomPassword() {
    let letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    let digits = '0123456789';
    let punctuation = '!"#$%&\'()\*+,-./:;<=>?@[\\]^_`{|}~';
    let s = letters.repeat(7) + digits.repeat(4) + punctuation.repeat(3);
    let length = 14;
    let res = Array.from({length}, (() => 
      s[randomInt(s.length)])).join('');
    return res;
  }
looks like it's 14 characters long, and each character has an independent 72.8% / 8% / 19.2% chance of being a random letter / digit / punctuation. There are 94 symbols total, so 94^14 possible solutions; roughly 92 bits of entropy. Even if you assume 10 letters, 1 digit, 3 punctuations (the "likely" distribution) it's still 75 bits of entropy. You might be able to gain an advantage through knowledge of the PRNG state, but the PRNG in v8 (xorshift128+) has a period of 2^128 - 1.

So not great odds...

bsurmanski commented on How Inuit parents teach kids to control their anger (2019)   npr.org/sections/goatsand... · Posted by u/Tomte
abznp · 4 years ago
That is all fine for children, but in real life there are many situations where displaying anger is a perfect tool.

In a movie whose title escapes me, Jack Nicholson plays an anger management therapist who is hired to coach someone 24h per day. He explicitly includes exposing his trainee to situations where he should display anger.

This whole 100% stoicism movement is quite suspect to me. It is mostly a thing for administrator types who read the 48 laws of power and some manosphere sites. It is also Orwellian, since complete suppression of emotions is a central theme in Orwell's books.

I've come to view it as a parlor trick for administrators to appear superhuman and unapproachable.

Actually creative and productive people are more in touch with their emotions and sometimes let them out.

bsurmanski · 4 years ago
The movie title is: "Anger Management", starring Jack Nicholson and Adam Sandler
bsurmanski commented on Nikon is slowly discontinuing more Nikkor reflex F-mount lenses   nikonrumors.com/2021/05/1... · Posted by u/giuliomagnifico
CrazyCatDog · 5 years ago
I used to upgrade with every Nikon cycle (prosumer fx bodies). But I stopped with the d750–I still, to this day, don’t understand/appreciate the advantage of mirrorless… can someone knowledgeable kindly inform me? Fwiw I use a prime 50mm and a 70-200 2.8
bsurmanski · 5 years ago
I'd say it depends on what you're shooting. I have a d5600 and Z5.

The Z5 is better for baby pictures.

The d5600 is still better for hiking and travel pictures.

The Z5 is better under low-light and dynamic subject conditions. Particularly because the digital viewfinder is clearer in the dark, the eye/face autofocus and low light autofocus performance is much better (much fewer missed shots), the Z5 has sensor-shift stabilization, and there is no mirror slap affecting lower shutter speeds. For landscapes where there is lots of light, a lightweight and battery conservative d5600 still does the job excellently.

bsurmanski commented on Jumping Frenchmen of Maine   en.wikipedia.org/wiki/Jum... · Posted by u/samclemens
bsurmanski · 5 years ago
There's a song titled "Jumping Frenchmen of Maine" by the instrumental post-rock band "El Ten Eleven". They're my goto coding music
bsurmanski commented on In January, there were more real-estate agents than homes for sale in the U.S.   wsj.com/articles/new-real... · Posted by u/undefined1
starclerk · 5 years ago
Time in the market > timing the market.

As long as you don't put more than ~30% of your money into a single asset (e.g. a house), then you're pretty certain to always make money in the long-term.

bsurmanski · 5 years ago
heh, good luck finding a house worth less than 30% of your net worth.
bsurmanski commented on California to Require All New Vehicles Be Zero-Emission by 2035   bloomberg.com/news/articl... · Posted by u/pseudolus
Bhilai · 5 years ago
Please educate me, isn't climate change a lost cause now? We know its inevitable and despite wide awareness, no one basically does anything. Individual action is not going help and US government does not even believe that any such thing is happening and has relaxed EPA regulations on polluters and such, so is CA restricting sale of fossil fuel vehicles going to matter in the long run?
bsurmanski · 5 years ago
Everyone is hesitant to make change because "it's going to cause too much economic impact". If someone demonstrates that it's possible to change without screwing over their economy, it's likely other states and countries will follow.

Just because the USA has federal administration that doesn't want to act on climate change right now doesn't mean that it won't get a greener administration in the future.

As for being a lost cause, isn't it preferable to minimize the effect, at least? would you rather the sea levels go up by 2.0 meters or 1.5 meters?

u/bsurmanski

KarmaCake day250February 12, 2015
About
Brandon Surmanski

Computer Engineering Graduate from the University of Ottawa, Canada

Software Engineer at Google

Working on the OWL programming language: https://github.com/bsurmanski/wlc

twitter: bsurmanski

View Original