HNHacker News
TopNewBestAskShowJobs

Zecc

613 karma · joined October 10, 2010

submissionscomments
Zecc··on The Creepy Corridors of Video Games
And a classical parody: https://www.everydaynodaysoff.com/wp-content/uploads/2009/10...
Zecc··on Phantom – forward-thinking concept of OS that's not Linux-derived
That's peanuts compared to the typos in "tommorow", also in the FAQ.
Zecc··on Show HN: A game I made in 48 hours
Took me some time (heh), but I've finally "compelted" the game.

I really did enjoy the music.

Zecc··on CityBound – An open source city simulation game in Rust
You might be interested in hearing what Chucklefish, the creators of Starbound, have to say about Rust::

https://www.reddit.com/r/rust/comments/78bowa/hey_this_is_ky...

https://www.rust-lang.org/static/pdfs/Rust-Chucklefish-White...

Zecc··on Why does this innovative method of subtraction from a third grader always work?
As do I, sort of. To subtract mentally I adjust the numbers of both sides by the same amount so it rounds up nicely in either side.

In this case I'd go:

    61-17 =>(-1 on both sides)=>
    60-16 =>(-10 on both sides)=>
    50-6 =>("normal" borrow)=>
    44  
Had it been, say 148-34, I could go either:

    148-34 =>(+2)=>
    150-36 =>(-6 with borrow)=>
    144-30 =>(-30)
    114  

 or most likely  

    148-34 =>(+2)=>
    150-36 =>(-30)=>
    120-6 =>(-6)
    114  
though in this simple case I'd just

    148-34 =>(set the 100 aside)=>
    48-34 =>(split digits)=>
    40-30 + 8-4 =
    10+4 =>(join digits again)=>
    14 =>(put the 100 back in)=>
    114
This is in line with answers that were given to the Math Exchange question. Edit: @srtjstjsj put it nicely when they call it "breaking apart".
Zecc··on Substituting JavaScript with HTML
> What is ajax

Server-side validation relying on JavaScript. You still have to wait for the server to respond, and now you need to implement UI to tell the user something is happening in the background. But at least you can start proactively validating before the user actually submits the form, so there's that.

Zecc··on The Grave Accent and XSS
It pisses me off to no end when software uses keyboard shortcuts like Ctrl+` or even just ~. These are simply unusable with my keyboard.
Zecc··on Firefox 51.0
You probably got a more relevant result by searching for "E10s" than if you had searched for "Electrolysis", too.
Zecc··on Casual Introduction to Low-Level Graphics Programming
Looking at the page's source code you can actually see the whole text there.

Thrice: inside the `content` attributes of `<meta property="og:description">`, `<meta itemprop="description">`, and `<meta name="twitter:description">`.

The `content`attribute of `<meta name="description">` is empty. A missed opportunity.

Zecc··on Casual Introduction to Low-Level Graphics Programming
But think of the important reasons why this page requires JavaScript:

-

-

-

Zecc··on JsonLogic – Build complex rules, serialize them as JSON
Source code is a structured serialization. And it also happens to be plain text.

Edit: or were you referring to data rather than logic?

Zecc··on Moving to GitLab: Yes, it's worth it
I couldn't help noticing Gogs is hosted on GitHub...

  https://github.com/gogits/gogs
Zecc··on Proposed JavaScript Standard Style

    let sql = `delete from order_lines`
            ` where order_id = ${orderId}`;
Without a lint complaining about a missing semicolon you wouldn't notice this bug.

This has happened to me with a rather more complex query.

Zecc··on Aphantasia: How It Feels to Be Blind in Your Mind
> a song gets stuck in your head from lack of "closure".

I usually turn off my car's stereo only at the end of musical phrases for just this reason. This phenomenon happens a lot to me.

There is a song, stuck in my head since a little over a decade ago, which ends with a fade out, not providing any closure at all.

It still pops up occasionally, but fortunately I can usually override it by recalling any of a number of favorite other song loops I have collected through the years and haven't gotten tired of yet.

Zecc··on Voronoi Diagrams on the GPU
> http://patriciogonzalezvivo.com/2015/thebookofshaders/

is also available as the more memorable:

http://thebookofshaders.com/

Zecc··on Pine64 (64-bit quad core for $15) Quick Start Guide
> dd is the “copy and convert” command. The letters “dd” have nothing to do with what the tool actually does.

It dumps data.

Zecc··on Pine64 (64-bit quad core for $15) Quick Start Guide
I'm not the parent commenter and I'm not on a Mac, but I assume it's the bash glob for a single character match (much like * matches multiple characters, ? matches a single character). Which means the actual file path should be something like `/dev/rdisk0`.

Edit: oh, I guess you meant the ? in `bs=?M`, in which case I don't know. Probably damurdock's way of not committing to a particular value in their post.

Zecc··on Bash on Ubuntu on Windows
They don't care about other people in the same room trying to concentrate on what they're doing?
Zecc··on Cash: An absurdly small jQuery alternative for modern browsers
FWIW, the Response object has the `ok` property [1] as a shorcut. It is equivalent to testing whether status is between 200 and 299.

If it's really that important to you, you can always create your own wrapper around fetch

    function fetch2(uri) {
       return fetch(uri).then( (res) => {
         if (res.ok) {
           return Promise.resolve(res);
         } else {
           return Promise.reject("Request failed with status "+res.status+" ("+res.statusText+")");
         }
       } );
    }

    fetch2('some-url')
      .then( (res) => {
       console.log('Success', res.status, res.statusText);
      })
      .catch( (err) => {
       console.log(err);
      });

  [1]: https://developer.mozilla.org/en-US/docs/Web/API/Response/ok
Zecc··on The Tools of a Blind Programmer
> In any case, it's never a good idea to question someone with a different set of abilities than you have with a "is it really that hard?" Their experience far outweighs your naive intuition about what's easy and hard for them.

Wise words, certainly. I apologize if my tone came across as condescending. I asked out of genuine curiosity, as I figured that someone who did not rely on their eyes could have a different, but not worse, perhaps even better understanding of space and spatial relations than someone who does (accounting for individuals being unique, and all that).

But perhaps I'm being blinded by my own eyes. After reading the article wlesieutre linked to, I believe it might be the case.

Zecc··on The Tools of a Blind Programmer
> I'm genuinely curious how you would think of three dimensional objects without ever being able to see them... [...] > without reference to anything you can see with your eyes, how would you describe space?

But the thing is: I wouldn't have to. People without sight live in space too. What mental models of the universe anyone has inside their head may vary wildly, but at the end of the day a torus is still torus-shaped when the lights are out, and West is to your right when you turn North while upside down.

Zecc··on The Tools of a Blind Programmer
Is it really that hard for a blind person to intuit geometry? I would have figured one does not require working eyes to understand space.
Zecc··on Xamarin now free in Visual Studio, and Xamarin SDK being open-sourced
Seems like it's been "embrace, open source code" lately.
Zecc··on Redox – A Unix-Like Operating System Written in Rust
Am I the only one reminded of a certain energy drink?
Zecc··on Museum of Endangered Sounds
The whole site is just a frame around http://mrgory.info/sm/
Zecc··on You have ruined JavaScript (2014)
I wish we would stop beating around the bush and just add templating to HTML already; not as the current ‛template‛ element proposal, which still looks like DOM manipulation, but actual "expressions inside template attributes and content + data context set in code" like every templating library is doing. And don't forget conditionals and repeaters while you're at it.
Zecc··on Django CMS 3.2 released
> Take a look at Wagtail.io

Good grief. Thin white and black text on a red background. Why do you hate my eyes? Why??

Zecc··on Ask HN: How do you remember syntax?
No, it was Einstein. I looked it up.
Zecc··on The xkcd survey
I considered typing that, but went with "five totally random words phoropter".
Zecc··on The Mill CPU Architecture – The Compiler [video]
Plus, I think they mention somewhere their whole long-time plan is to only license the architecture to third-party hardware manufacturers.
← PreviousPage 8 of 12Next →