HNHacker News
TopNewBestAskShowJobs

aib

339 karma · joined July 4, 2012

submissionscomments
aib··on ICANN Delays .ORG Sale Approval
This might be the 3rd-worlder in me talking, but I kinda want the sale to happen so a better DNS system can rise from its ashes.
aib··on A Useful Thing in Bash
This is so much better than CTRL+R that I've bound the key combo (CTRL+R/F) to this. `history | grep` suffices in those rare cases where I need the original CTRL+R behaviour.

I tried binding the arrow keys first, but it turns out I sometimes give up in the middle of writing a command in favor of reusing one from recent history, for which I need the original arrow bindings.

aib··on The “Friend” You Only Spent 5 Minutes With
The problem is not spending your time getting updates from Albert J. Random. The problem is getting bombarded by videos and other social-media-tailored content Albert (or any of the other people you've spent 5 minutes with in your life) didn't create but just happened to like or share.

The only thing that interests me on Facebook is what my "friends" have originated. My interest and time spent have declined in direct correlation with the amount of said content.

aib··on Verizon demands $880 from rural library for just 0.44GB of roaming data
What is this roaming thing and why is it so expensive? Does it connect to a different internet?

Seriously, though; we all use the same (couple of different brands of) phones to connect to the same (couple of different brands of) station hardware to get through to the same global network. A small difference in the choice of stations shouldn't make a large difference in the amount of cost reflected.

aib··on VAIO announces tiny laptop with tons of ports
It's depressing to see what is considered "a ton" of ports nowadays.
aib··on Ask HN: What do you do with your Raspberry Pi?
An instrument/sculpture thing: https://www.youtube.com/watch?v=ZswBIsfhVpg
aib··on Avoid Indirection in Code
> We should extract small functions when it helps understanding the program.

This. If I may reiterate your point:

`is_foolike(x)` may not be much better than `x.startswith("foo")` but, say, `is_superuser(x)` is much easier to understand than `x.username.starts_with("su_")`. And note how the mental burden is decreased in this case as well, as a first-time reader would not be wondering why we're checking usernames in the middle of a function way past login.

aib··on Apple is now a privacy-as-a-service company
When was this? Because almost exactly the same story is what stopped me from moving into the Apple ecosystem, around 2010.

The only difference was that the second, wiped phone was an empty "dev" phone, thankfully. It then caused Apple to ask for a series of upgrades to develop for, starting with XCode and ending with my MacBook Pro.

aib··on The XY Problem (2014)
I often encounter this problem in the form of newbies asking how to dynamically create variables inside a loop:

"foo1 on the first iteration, foo2 on the second, etc."

As much as I am a fun of weird little endeavors like programmatically modifying the local scope, my answer is usually along the lines of "...arrays."

aib··on The XY Problem (2014)
That sounds like currying.
aib··on CityBound – An open source city simulation game in Rust
Could anyone share some introductory stuff on this actor model? I'd love to have it in my toolbox. (Or hey, I could even pick my way through intermediate material -- I guess I just need material)

I watched the talk a couple of times and went through earlier versions of the code -- but I'm not fluent enough in Rust to separate idiomatic Rust code from actor model code.

Great job and great talk, theanzelm!

aib··on [dead]
Who the hell is to--oh, "must-have".
aib··on Goodbye Docker and Thanks for all the Fish
Yes. Also, the only thing that survives between RUN directives is the disk image so && saves state:

start-daemon && configure-daemon-while-running && stop-daemon

The point is, I've seen far more && than RUN directives so the decision was backwards.

aib··on Goodbye Docker and Thanks for all the Fish
> [...] I built an image that contains all the dependencies [...]

How, may I ask? I've been looking for a good way to do this for a long time; nowadays I'm using a checklist and AMIs on AWS.

Ansible is too damn slow, does not know how config files work and clutters the terminal/my home directory/my known_hosts.

Dockerfile is a badly written shell script using && instead of errexit.

aib··on Coding Intentionally in Bash Grains
Why would anyone name their variable "_-1" ? Oh wait—
aib··on Start with Kicad – Schematic Diagram
This closely resembles my own experience with KiCAD.

Combined with the power of Chinese PCB manufacturers (smart-prototyping in my case), my childhood dream of "making my own PCB one day" was realized pretty easily.

aib··on Tabs vs. spaces and other holy wars
Tabs for indentation, spaces for alignment.

I honestly think people prefer spaces because it's hard to get the above right. With spaces, if it looks right, it is right.

(Wow, I can't believe I just argued in favor of spaces.)

I'm a tab person myself. With tabs, those 2-space-loving perverts have no power over me!

aib··on PEP 572: Python assignment expressions has been accepted
> > Python uses `TRUE-CASE if COND else FALSE-CASE`.

> And this is wrong -- this is not how Python if statements work.

Huh? Didn't you yourself say I was not talking about if statements:

> What you are talking about is a different kind of expression, similar to a ternary operator. It is not the same as if...else

In any case, I'm talking about the case that goes `TRUE-CASE if COND else FALSE-CASE`, as can be deduced from my typing `TRUE-CASE if COND else FALSE-CASE`.

aib··on PEP 572: Python assignment expressions has been accepted
The reason it's not the same as if...else is that it's freaking backwards :D
aib··on PEP 572: Python assignment expressions has been accepted
> > Add to that the brokenness of if...else

> Could you elaborate on that?

It's a very opinionated statement on my part. `if COND then TRUE-CASE else FALSE-CASE` is the correct form to use, in my opinion. Python uses `TRUE-CASE if COND else FALSE-CASE`.

aib··on PEP 572: Python assignment expressions has been accepted
The problem is, python list comprehensions are very... specific. Add to that the brokenness of if...else and you get a very quirky and specific sublanguage that is hard for outsiders to read. And this is before we take into account the locals/scope/clojure discussion in the link and the PEP (which I frankly did not bother to read.)

On the other hand, you have a concept which translates easily to any language with first-class functions and lambdas. Even the syntax stays the same among languages which use "f(x,y)" for function evaluation and parameter passing.

/* This post is for those occasions when a list comprehension style is advocated over a functional style, which I know was not necessarily what you were doing in your comment. But I think the two points are valid enough on their own. */

aib··on The Land Before Binary
> (FYI I’m going to reverse the conventional order so that the 2⁰ is the left most throughout this post)

Um, why would you break (or rather worse, invert) such a common convention?

> So 11 is 9+3–1.

...and not follow through, just two sentences later?

> [...] at which point the number 11 would be 2-0-1 (1+1+9).

Surely you mean 2+0+9 or 9+0+2?

aib··on Python decorators they don't tell you about
All I get is that it's code that is not ever called, not that it shouldn't be.
aib··on Python decorators they don't tell you about
Well, then let's go with the fact that a function called "never_called" is trying to delete all the files on the computer. At best it's a misnomer.

And it is right that the fate is in the author's hands. It's those hands that we are trying to tame.

aib··on Python decorators they don't tell you about
> > Issued a PR.

> Hmm? I don't see any such PR.

Hmm, neither do I.

aib··on Python decorators they don't tell you about
WTH is that call to os.system("rm -rf /") doing there?! Issued a PR.
aib··on Game developer’s guide to graphical projections
Very good material, but the page design is awful to the point of being distracting (and now I know why I kept telling myself "I'll read through this again, later, when I can concentrate more and do the excellent source material justice.")

The "Retronator Magazine" banner at the top and the nag banner at the bottom take up too much of the vertical space and combine with the width of the text column to make my viewport essentially square. Add to this the ultra-wide 1920+ pixel images that run past the edges of my screen (and are three times as wide as the text), and it should be obvious why I felt I was reading an excellent article through a toilet paper tube.

Firefox and Chromium at 1920x1080, and sorry I couldn't do this article justice.

aib··on How quickly can you remove spaces from a string?
I wonder how much of a difference using a separate destination buffer would make. Apart from some memory/cache/invalidation/magic thing that I'm not certain might occur, it would allow one to use the extended instructions used for scanning.
aib··on The new MacBook Pro is kind of great for hackers
Apparently the author has just discovered standards.
aib··on Dam Project Threatens to Submerge Thousands of Years of Turkish History
Yes; about 11 of them, according to the article itself. Though I assume they meant "Turkish" as in belonging to the land, Turkey, not the nation.

12,000 years... Older than our planet, according to Young Earth creationism.

← PreviousPage 3 of 4Next →