HNHacker News
TopNewBestAskShowJobs

michaelx386

126 karma · joined May 1, 2014

submissionscomments
michaelx386··on Wasavi – a browser extension that transforms TEXTAREA elements into a VI editor
This is great, one thing I'd like to do is map j and k to gj and gk to make it easier to move between wrapped lines. It kind of works in Wasavi but it doesn't seem to move directly above or below the previous position.
michaelx386··on Wasavi – a browser extension that transforms TEXTAREA elements into a VI editor
Just tested this and Vimperator does allow vi mode in text areas if control+t is pressed. It's not as slick as wasavi but it works. There's also the option of launching an external gvim window when control+i is pressed inside a textarea, which is a cool feature for more in depth editing tasks.
michaelx386··on Fountain – A markup language for screenwriting
There's a nice python program that can turn Fountain files in to PDF, HTML or FDX files: https://github.com/vilcans/screenplain/
michaelx386··on More Dirty Coding Tricks from Game Developers (2010)
That one's included in the article, bottom of page 1 called "Flash forward"[0]

> someone figured out if you played the games in an odd, and very specific order, the flash memory would sort of work. So an extra leaflet was added to every box explaining how to use this "feature."

[0] http://www.gamasutra.com/view/news/249475/More_dirty_coding_...

michaelx386··on Listen to Wikipedia
It would be good to have a "click to unmute" option as the default for how a browser handles audio. Click to play works well for Flash plugins, it might be good for audio as well.
michaelx386··on Fixing a Disk Space Alert at 3 AM
I love this ballast file idea. It reminds me of a programming story by Noel Llopis[0] where a game developer was working with a strict memory limit and placed static char buffer[1024 * 1024 * 2]; in the code as an insurance policy[1]:

[0] http://gamesfromwithin.com

[1] http://www.dodgycoder.net/2012/02/coding-tricks-of-game-deve...

michaelx386··on Monsti – a free and open source CMS written in Go
Can anyone explain the significance of the @@ characters in some of the urls here? I've not seen these in urls before and wonder if there's a specific reason why they're there.

Example: http://demo.monsti.net/@@login

michaelx386··on Game systems integration
I've found http://gameprogrammingpatterns.com a big help as someone new to design patterns and game development in general.
michaelx386··on Publishing Effective Modern C++, Part 1
Bob Nystrom wrote a blog post[0] about self-publishing his book, Game Programming Patterns[1]. He used Kindle Direct Publishing and compares it against sales from CreateSpace, Smashwords and iBooks.

[0] http://journal.stuffwithstuff.com/2014/11/20/how-my-book-lau...

[1] http://gameprogrammingpatterns.com

michaelx386··on FOAM: New JavaScript Framework by Google Engineers
Until this is fixed, the source files for the demos are available here: https://github.com/foam-framework/foam/tree/master/demos
michaelx386··on John Carmack's First Game
There's a video of someone playing Shadowforge and Wraith on YouTube: https://www.youtube.com/watch?v=o7py_FGQ5tU
michaelx386··on Node.js Tools for Visual Studio
For anyone else like me who didn't know about this \\?\ syntax:

http://stackoverflow.com/questions/21194530/what-does-mean-w...

https://msdn.microsoft.com/en-us/library/windows/desktop/aa3...

michaelx386··on Bug 1202858 – Restarting squid results in deleting all files in hard-drive
Would zsh still protect me if the script explicitly uses Bash (i.e. #!/bin/bash)? Sorry if this is a dumb question, I'm unsure how shells work when calling other kinds of shell scripts.
michaelx386··on BBC gives children mini-computers in Make it Digital scheme
There's a book by David Kushner called Jacked[0] about GTA's development. He's also the author of Masters of Doom[1].

[0] http://www.amazon.co.uk/dp/0007434855

[1] http://www.amazon.co.uk/dp/0749924896

michaelx386··on CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
Thank you, it's not always clear when a reboot is needed after an update. I do it with kernel updates but wouldn't have in this case until I read your comment and ran the command to check.

If would be nice if package managers would let us know when this is necessary, I expect that might be a hard thing to get right though.

michaelx386··on Is 'SimCity' Homelessness a Bug or a Feature?
> a common strategy was to make the nobledwarfs accommodation floodable with lava

I've not played Dwarf Fortress for a while, but were there any consequences to killing the nobledwarfs like that? The game is so comprehensive I'm wondering if the creators considered that strategy.

michaelx386··on Why is Golang popular in China?
> Google has a special place in the hearts of Chinese developers

Why is this? Is it because of Android or something else?

michaelx386··on Hotel Wi-Fi blocking: Marriott is bad
Found some details[0] on how they're doing this:

> Marriott operates a Wi-Fi monitoring system manufactured by a third party that was installed at the Gaylord Opryland. Among other features, the system includes a containment capability that, when activated, will cause the sending of de-authentication packets to Wi-Fi Internet access points that are not part of Marriott’s Wi-Fi system or authorized by Marriott and that Marriott has classified as “rogue.”

[0] https://apps.fcc.gov/edocs_public/attachmatch/DA-14-1444A1.t...

michaelx386··on I made a debugger that draws the state machine of the program
The font looks like Terminus. The background transparency effect and hidden scrollbars can be set-up with most terminals, this one is probably urxvt. As for the borderless/undecorated window, that's probably done via the Window Manager. DWM[0] for example doesn't paint window decorations but there's usually a way to set this up in Gnome/Unity/KDE/etc as well.

[0] http://dwm.suckless.org

michaelx386··on Focus – Steal back your productivity
There's a variation on the Pomodoro technique which has been working well for me. It was recommended by a Pomodoro program I use called Tomate[0] which defaults to a minimum 10 minute timer instead of 25 minutes:

> The rationale is that the hardest part of working is getting at it. Past the first ten minutes, continuing to work is far easier. So you only have to commit to the first ten minutes, your motivation should do the rest.

[0]: https://gitorious.org/tomate/pages/Home

michaelx386··on Komments – Simple comment embedding
It sometimes convinces me to go ahead with a service if I know I can get data out later down the line. It might be worth building it anyway to encourage more people to sign up, even if most users never end up using it.
michaelx386··on Show HN: Stoffi – a music player
At a glance this looks like a good project to learn from, specifically about how to structure non-trivial programs. I write lots of spaghetti code and struggle to keep things separate. This code looks clean and well documented.
michaelx386··on Help the Gnome Foundation Defend the Gnome Trademark Against Groupon
They say Groupon's Gnome is an operating system, do you know any details of how they built it? Is it Linux based, etc?
michaelx386··on TCP is harder than it looks
What makes this story so great is how determined they were to find the real problem even though it was already "fixed" by changing the routes. Who knows how much anguish this person has spared other people by not giving up until the problem was truly solved. Doing it with such skill and ingenuity was the icing on the cake, I could read these kind of stories all day.
michaelx386··on TCP is harder than it looks
Great story with the added bonus of showing me the GNU Units command. What a fantastic program, no more Googling when I need to convert stuff.
michaelx386··on Khan Academy Lite
> I'm sure they don't expect a how-to on making a shiv half way through a KA video

If the prison doesn't screen and approve, a computer technician could smuggle banned content in among the regular Khan Academy videos.

michaelx386··on How I reverse-engineered Google Docs to play back any document's keystrokes
I broke out in to a cold sweat watching this as I remembered all the times I've inadvertently pasted sensitive stuff in to a document. It's still very cool though, I'll just need to remember to be careful when sharing documents.
michaelx386··on Pro Git, 2nd Edition
This book just achieved the impossible and helped me understand the rebase command properly. I'm ordering the printed version as soon as it's available.
michaelx386··on Microsoft buys Minecraft for 2.5B
You never know with Microsoft these days. They've recently started releasing source code so anything's possible. I do think they'll port it though.
michaelx386··on CLion, the new C/C++ IDE from JetBrains
This is timely for me. I'm still new to C++ and have been using vim so far. I'm having trouble figuring out a way to easily refactor C++ code (e.g. renaming things across multiple files). In Python there are vim plugins which do a good job of this, but I haven't found any good plugins for C++ refactoring.

It might be worth learning a new environment if it makes this easier.

Page 1 of 2Next →