HNHacker News
TopNewBestAskShowJobs

eriknstr

1,862 karma · joined May 29, 2016

Dear HN, please delete this account.
submissionscomments
eriknstr··on How to Avoid Going to Jail Under 18 U.S.C. For Lying to Government Agents
And also, if someone was murdered a few blocks down and then you refuse to say anything and say that you want your lawyer, won't that just needlessly make them suspect you for the murder? I'm all for encryption and a right to privacy and so on but I mean when it's obvious they just want to solve a crime and they are looking for info from you as a witness, well I don't see any reason not to be helpful.
eriknstr··on Ffffound is shutting down
Wiki page doesn't contain much info. http://www.archiveteam.org/index.php?title=Ffffound%21
eriknstr··on Emojipedia.org
Emojipedia is a great resource, I use it frequently to find emojis by name.
eriknstr··on Why don't schools teach debugging? (2014)
True you probably can't set the breakpoint in your IDE but thanks to source maps you can still view the original source in the debugger.

https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_...

eriknstr··on Glob Matching Can Be Simple and Fast Too
OP, what version(s) of the BSD libc did you test? What OS, which version of the OS.

macOS only? NetBSD? FreeBSD? OpenBSD?

If you tested on FreeBSD, please file a bug at https://bugs.freebsd.org/bugzilla/enter_bug.cgi?product=Base...

I'm not a project member but I'm a user of the system so it's in my interest that issues like this are resolved.

Please let me know whether or not you file a bug so that if you do I don't duplicate bug reports and if you don't I can do some benchmarking myself.

eriknstr··on OpenLara – Web-based classic Tomb Raider engine remake
Oh man this is positively insane! The original Tomb Raider games are probably my all time favorite video games. I recently revisited Tomb Raider for PlayStation in an emulator on my laptop. I find it a bit mind-blowing that OpenLara in the browser seems to be performing better than the native PSX emulator did.

I think perhaps the ctrl-action button is more sensitive here than it was in the original PC version? In order to get out of the water hole I had to swim into the corner basically. It was a long while since I played the original on PC though so who knows.

Mad respect.

eriknstr··on Lyrebird – An API to copy the voice of anyone
If nothing else the source material you use would likely be recordings that others made, so you will not own the copyright on the source material and with how copyright works the synthesized recordings might be considered derivative works of the source material. IANAL, TINLA.
eriknstr··on Stop Guessing Languages Based on IP Address
Yes, oh my god, that's terrible :( I prefer LibreOffice but sometimes I run into Excel at a job or similar and the last time I did the computer I had to use was using Norwegian locale (I've been living in Norway since the age of four) and there was no way to switch it to English without admin privileges (which to me is a pretty huge WTF moment by its own right), and even if I had been able to I don't know if Excel has the English locale installed or not.

So when I had to use Excel all the formulas were named in Norwegian.

I downloaded a portable version of LibreOffice but that triggered the anti-virus :I

Sometimes I would use Google Docs instead but for company confidential information I obviously won't upload that data to Google so then I'm stuck with Excel. Even for non-critical data Google Docs might not be an option simply because you are working on the file together with someone else who is using Excel and constantly uploading and downloading the file would be annoying, as well as the risk of Google Docs not supporting 100% of the features of Excel leading to complicated spreadsheets getting mangled. (Same problem with using LibreOffice to work with someone using Microsoft Office.)

eriknstr··on How SSH got port number 22
Personally I think it's great that you reposted your comment.

I suggest however that when you do, you add a line to the bottom that says something along the line "This comment was based on an earlier comment I made X days ago using another account." when you do just to keep people from accusing you of plagiarizing others.

eriknstr··on OpenLara – Web-based classic Tomb Raider engine remake
It says that it's inspired by OpenTomb. From a cursory glance it does not seem to me that it's using OpenTomb.
eriknstr··on Show HN: Replacing WordPress with GitHub Issues-like Blog Comments
If HN asked you to discontinue it, shouldn't others avoid doing it also?
eriknstr··on A simple I2C master implementation on the MSP430
Link works fine for me now. In case it stops working again, here's a snapshot hosted at another archival site: http://archive.is/cRT4A
eriknstr··on Stop Guessing Languages Based on IP Address
On a related note, part of the reason that I've had my computers configured to use English language is that it's easier to find solutions, both in terms of searching for problems like clicking foo does not produce bar to following guides for how to do something with a document in LibreOffice, a picture in GIMP or Inkscape, a 3D model in Blender etc.

Aside from that, like many others I also find the English interfaces to be far superior in quality to localized interfaces which will often have errors in their translation. Furthermore some choices of words in translations just look plain dumb to me even though they are correct.

eriknstr··on Mine3D: A Web 3D Minesweeper Game
Pretty good game, nice work.
eriknstr··on File System Improvements to the Windows Subsystem for Linux
I suppose it might be named that way due to trademark conserns.

Naming something as "X for Y", where "Y" is a trademark owned by someone else is often done, but I haven't seen "Y for X".

Just speculating.

eriknstr··on The origins of XXX as FIXME
I use XXX to mean note/attention.

I do so because "NOTE" on it's own does not "scream loudly enough" to me when I read it, and as for "ATTN" I associate that with the writing on a letter when you want to send it to a specific person in an organization.

Here are a couple of examples from my own code:

https://github.com/eriknstr/TEMPer2-getdegs/blob/cfde4306623...

    // XXX: Feels a bit stupid to check user_set_iterations each iteration.
https://github.com/eriknstr/klondike/blob/d33accd6965d8d2476...

    // XXX: https://bugs.chromium.org/p/chromium/issues/detail?id=615638
https://github.com/eriknstr/interweb/blob/6c2985f8d8a9d63d08...

    #
    # Domain and records to update with the current WAN address of the router
    #
    # XXX: First record must expose origin server's IP address.
    #      This is by design because I need to be able to
    #      log onto my machine remotely using SSH
    #      so having a DNS name for the IP of the host
    #      makes more sense than not having it.
    #
    #      If this is not acceptable to you, then this script
    #      is not suitable for your use-case.
    #
eriknstr··on The origins of XXX as FIXME
Perhaps XXX001, XXX002, XXX003 and so on?
eriknstr··on Ask HN: What are the OSS alternatives to iOS/Android?
>what exactly "not open" means in the hardware context

As natch said, lack of documentation. This lack of documentation prevents others from developing their own drivers etc.

>why so many manufacturers do not make "open" hardware

Multiple reasons. The first four of which I am confident that often play a large role, and the two last of which are more speculation.

1. Companies might feel that open hardware would put them at a disadvantage because others could copy them.

2. Company might have licensed portions of the hardware from other companies and therefore must adhere to agreements about not sharing information about the licensed hardware with others.

3. Maintaining an open project is a lot of work for a company. Everything from ensuring that the whole process is repeatable, to having a team of lawyers approve everything for release.

4. There is no incentive. Users buy their phones either way, even if everything is closed and proprietary.

5. Regulations regarding wireless communications hardware might apply?

6. Company might be using software tools in the hardware development process that they can't share freely so even if they did share the files others still wouldn't be able to use the files for anything?

eriknstr··on Databases have failed the web
>there’s even a plugin to directly build a GraphQL API from your postgresql database

Would like a link for this.

eriknstr··on The Power of Prolog
I've worked a bit on it. My solution is not incredible or anything, probably there are far more efficient and/or elegant solutions out there. Mine is not done yet but I'm going to continue with this one later and by then the activity in this thread will be over so I leave this link here now.

https://github.com/eriknstr/puzzles/blob/master/zebra/soluti...

eriknstr··on The Power of Prolog
>Zebra puzzle

Interesting puzzle. I copied the puzzle text to a separate text file so that one does not accidentally read anything else in the Wikipedia article.

https://pastebin.com/0DWbSSx3

eriknstr··on Turtles on the Wire: Understanding How the OS Uses the Modern NIC (2016)
I see you in comments here on HN every so often and I enjoy reading what you have to say. I've been wondering -- and sorry for going totally off-topic here -- whether or not you picked your username inspired by the Xen hypervisor initial domain dom0.

https://wiki.xen.org/wiki/Dom0

eriknstr··on The Debugging Mindset
I have a stray dash in the above comment. Too late to edit now. Where I said "in-order" I meant to say "in order".
eriknstr··on Medieval villagers mutilated the dead to stop them rising, study finds
Thanks, I thought it might be something relating to execution but was confused by the Google results which was had a Wikipedia article stating "scaffolding, also called scaffold or staging, is a temporary structure used to support a work crew and materials to aid in the construction, maintenance and repair" as well as a lot of pictures of such structures.
eriknstr··on Education of a Programmer
>Harry Potter and the Method of Rationality

Never heard of it before. For anyone else interested; http://www.hpmor.com/

eriknstr··on Education of a Programmer
While I agree that the person that is using the word "magic" might often do so for the reason that you say, I think it is better to state it as "an implementation detail" rather than using the word "magic". Not because you and I don't understand what is meant but because by using that word we give power to the idea that something is beyond comprehension when that is not what we meant.
eriknstr··on Medieval villagers mutilated the dead to stop them rising, study finds
Disturbing practice but interesting article. Good point about hypocrisy on the part of the people of that era.

I was wondering though, what is meant in the following sentence:

>And in 1908, a last known attempt was made in Germany to swallow blood at the scaffold.

What does "swallow blood at the scaffold" mean in this context?

eriknstr··on Medieval villagers mutilated the dead to stop them rising, study finds
Not really surprising. I've heard about corpses being fastened in their coffins with a metal pole through the corpse and that said practice is the origin of the idea that you can kill a vampire by driving a wooden stake through their heart.
eriknstr··on The Debugging Mindset
Is that quote intentionally saying that you have contradicting premises, and by extension is the statement in that sentence that contradictions do not exist contradicted by the later part of the sentence, or is there something about the sentence that I'm not understanding?
eriknstr··on The Debugging Mindset
Some JavaScript frameworks use method chaining in-order to give you something very similar to what you are talking about.

  $('#my-div').css('background', 'blue').height(100).fadeIn(200);
Personally I don't use JavaScript frameworks very often so I'm still not very used to this.

The first time I encountered it I didn't like it at all but now I think it's ok.

Something else that also enables code similar to what you are talking about is using named arguments in Python.

  somewhat_similar(barfoo=thing, using_fnord=mahjong, baz_provider=xyzzy, quux_helper=fob)
but personally the way I use named arguments is only for the select few arguments that will sometimes appear and sometimes not in combinations that make the ordering alone insufficient to handle this.

In my code regardless of language, I generally try to order the argument with target as the first argument, source(s) second and additional arguments following that.

Somewhat related to these things is also the fact that I use constants and enums for values rather than "true" and "false" when calling functions that take booleans as arguments.

As I noted in another comment I generally work on small programs at a time. This makes it generally ok for me to remember or to find the arguments taken by a function even though I don't have autocompletion.

← PreviousPage 7 of 18Next →