HNHacker News
TopNewBestAskShowJobs

pstadler

2,836 karma · joined April 8, 2011

  https://pstadler.dev
  https://github.com/pstadler
  https://twitter.com/pstadler
  https://infosec.exchange/@ps
[ my public key: https://keybase.io/ps; my proof: https://keybase.io/ps/sigs/5fJvRJSJfeFNB0mGiAzfHVBuEv0TYYxMGMd4TWc-DZo ]
submissionscomments
pstadler··on Highly Available Block Storage
I just migrated my Kubernetes/Rancher stack from NYC2 to NYC1 in order to use block storage. Eager to see whether this plays well with GlusterFS.
pstadler··on PHP Sucks
Symfony is the worst thing that could've happened to PHP. Dependency injection with varying degrees of XML/YAML madness everywhere. It's terribly slow and pretty much unusable w/o several caching layers in front. I can honestly say that I hate this framework with a passion, and the language too. PHP's core and a big part of the community is copying features and methodologies from Java, but they will never get close to its performance, nor its functionalities. I left the ecosystem when PHP 5.1 was around... I left for good.
pstadler··on Docker for Mac Beta Review
I'm wondering how Docker for Mac handles conflicting entries in /etc/exports. This is currently still a problem when using dlite and vagrant on the same host[1].

[1] https://github.com/nlf/dlite/issues/176

pstadler··on Netflix Is Dumping Anti-Virus, Presages Death of an Industry
Photo caption says: "Netflix is quitting anti-virus. Will its millions of users benefit?"

Wat?

pstadler··on How I Hacked Amazon’s $5 WiFi Button
Check out Nuimo[1]. It's a small programmable device featuring a simple LED matrix style display while supporting multiple types of interactions. I could even see this in use at factories for ordering supplies for a specific machine or calling service technicians to it.

[1] http://senic.com

pstadler··on The Rising Appeal of Apprenticeship
In Switzerland it's common to start an apprenticeship after 9 years of school if you have an idea what you want to do. Turning just sweet sixteen I did one myself as an "Application Developer" in the airline industry. This lasted four years and gave me some kind of diploma - not exactly a degree in CS, but I gained enough experience to get a well paid job with some responsibilities afterwards. During the apprenticeship the salary is more or less symbolic. Now at the age of 30 I've almost 10 years of experience in the real world, and never had any debt to pay off (although higher education is also very affordable in Switzerland). The nature of software engineering (e.g. contributing to open source projects, learning by doing, etc.), a sense of responsibility and a natural hunger for wisdom is in my experience enough material for a good position. Many of my friends, including myself, never did a bachelor or master degree but became great engineers and project leaders nevertheless. What often matters more than deep theoretical understanding is actually doing things such as dealing with pressure, deadlines and customers, getting along with a team and solving complex problems in an pragmatic way, because that's what actually happens in most of the jobs. I don't say this is the better way to go, instead I want to say that having a certain academic degree should not be seen as the only promising career path.
pstadler··on Show HN: Boreal – A New iOS Client for Hacker News
I agree, MiniHack is the cleary the top iOS client for HN.
pstadler··on Show HN: 'git inject' – amend commits other than HEAD
This is neat. Let me add that I use `git commit --amend` relatively often. Useful not only for adding "forgotten" files and changes, but also for editing the commit message.
pstadler··on Silk
Rocket launch: http://r.weavesilk.com/?v=4&id=jpw105cfr2t
pstadler··on Silk
"Moth cave" http://r.weavesilk.com/?v=4&id=rya105c4jxy
pstadler··on The French School Where Panama Canal Pilots Train in Cute Little Ships (2014)
I had the opportunity to cross the Panama Canal on a 48ft sailing yacht, starting on the Atlantic side. Inside the watergates we were tied together with two other yachts, one on each side (ours had the strongest engine, so we were in the middle). The canal itself is mostly surrounded by jungle, and you get a specific time slot for crossing it because the traffic is usually quite high, and the watergates need some time to get filled. During the trip it didn't really feel like there was much going on, even though many large vessels crossed us in both directions.

Thanks for posting this and bringing back some memories.

pstadler··on Appropriate Uses for SQLite

  "The SQLite website (https://www.sqlite.org/) uses SQLite itself, of course,
  and as of this writing (2015) it handles about 400K to 500K HTTP requests
  per day, about 15-20% of which are dynamic pages touching the database.
  Each dynamic page does roughly 200 SQL statements. [...]"
Wait... What? They're saying that their dynamic pages are executing 200 SQL statements per request?

Off-topic: I enjoyed reading this article which was posted here a while ago http://www.sqlite.org/testing.html

pstadler··on Show HN: Kaiwa, a Modern Open-Source XMPP Web Client
There's Candy: http://candy-chat.github.io/candy/
pstadler··on GitHub under ongoing DDoS attack
For what it's worth there's an article[1] from Craig Hockenberry. His servers were hit by massive amounts of traffic from China earlier this year, targeted (randomly?) at Iconfactory's website. The charts are quite impressive.

[1] http://furbo.org/2015/01/22/fear-china/

pstadler··on GitHub under ongoing DDoS attack
I'm looking forward for a post from GitHub describing what exactly was thrown at them and how they were able to mitigate it.
pstadler··on GitHub under ongoing DDoS attack
It appears that the first attack was targeted at https://github.com/cn-nytimes/ and https://github.com/greatfire/ [1]. Accessing these two pages still responds with `alert("WARNING: malicious javascript detected on this domain")` which is supposed to be executed on the (innocent) client's browser.

[1] https://news.ycombinator.com/item?id=9275381

pstadler··on Making a web app in one hour is easy and awesome
One more hour can't hurt: http://caniwearshorts.today/?location=Z%C3%BCrich%2C+Switzer...
pstadler··on Show HN: Shipit, pure JavaScript deployment tool used by Ghost blogging platform
Glad to see some more effort going into deployment tooling. I think the main goal of reinventing such tools in different languages is to get rid of the need of having dependencies outside of the current project's platform, which makes sense, for me at least.

Shameless plug: I'm the author of Flightplan[1], a library which provides a simple, yet powerful interface to execute sequences of shell commands on local and remote host(s).

[1] https://github.com/pstadler/flightplan

pstadler··on Taming non-terminating Bash processes
The alternative is bash voodoo magic.. the same magic that gave us shellshock.

I love this one.

pstadler··on Taming non-terminating Bash processes
I need to know the PID of the subshell, inside the subshell. $BASHPID was introduced to hold this value. While $$ still contains the PID of the parent process and $! is not available inside the subshell after all.
pstadler··on Taming non-terminating Bash processes
Results from dns-sd are not necessarily being delivered instantly and there might be no lines which contain this flag to check of it's the last entry. It's also rather ugly to create a named pipe for this purpose, don't you think?
pstadler··on Taming non-terminating Bash processes
$BASHPID is not working with subshells prior to Bash v4.
pstadler··on Taming non-terminating Bash processes
This will stay in the loop if there's no output or if no flag == 3 is received.
pstadler··on Taming non-terminating Bash processes
Thanks man, your feedback is appreciated. I'm well aware of the dirty nature of this solution[1] but it seems to be the only way to achieve this within context (OS X, Alfred).

[1] https://github.com/pstadler/non-terminating-bash-processes#c...

Edit: $! is not working with the distributed Bash version (currently 3.2) on OS X. Unfortunately, dns-sd is the only utility to discover network services on OS X. There are many projects which use the same hack involving dns-sd.

I invite you to find a better solution to this problem.

pstadler··on Pixel Art + Star Trek = Pixel Trek
I opened this page with the expectation too see some simple images, only to find myself walking through the enterprise. Awesome! But then I was wandering around enjoying the scenery with no clue what to do and very little interaction. Don't get me wrong, it's really cool. Please bring more, there's a lot of potential.
pstadler··on This Little-Known iOS Feature Will Change the Way We Connect
I could be wrong but I think the excellent Command-C[1] app is using this technology.

[1] http://danilo.to/command-c

pstadler··on Flightplan – a Node.js library for streamlining deployments and sysadmin tasks
Author here. I'm planning to add "with a dead serious DSL" to the introduction text.
pstadler··on Pngquant – Lossy PNG compressor
Available in Homebrew:

    brew install pngquant
pstadler··on Accuracy takes power: one man’s 3GHz quest to build a perfect SNES emulator
It's interesting to know how much effort is put into making a good emulator. Especially the part with reverse engineering the coprocessors inside some of the cartridges:

> LLE is also a very expensive operation, monetarily speaking: to obtain the DSP program code requires melting the integrated circuit with nitric acid, scanning in the surface of a chip with an electron microscope, and then either staining and manually reading out or physically altering and monitoring the traces to extract the program and data ROMs. This kind of work can cost up to millions of dollars to have done professionally, depending upon the chip's complexity, due to the extremely specialized knowledge and equipment involved.

pstadler··on Named Pipes in Bash
You can create named pipes explicitly:

    $ mkfifo ~/pipe
    $ ./background.sh > ~/pipe &
    $ tail -f ~/pipe
http://www.linuxjournal.com/article/2156
← PreviousPage 4 of 6Next →