HNHacker News
TopNewBestAskShowJobs

canadev

338 karma · joined February 27, 2013

submissionscomments
canadev··on Standard Markdown
I've landed on the guy's markdown pages (he refers to this in the podcast) several times, trying to figure out how to do stuff in markdown. I find the page hard to read (the font is tiny; I always resize it), and the examples rarely seem to describe what I am trying to achieve.
canadev··on What your first-grade life says about the rest of it
I really enjoyed this article (in a sad sort of way). I read an article in the NYT that was sort of similar about a month ago (just looked it up: http://www.nytimes.com/2014/08/10/opinion/sunday/nicholas-kr...).

Now, I really don't know a whole lot about these subjects, but it strikes me that a basic income system would serve society as whole very well here.

In fact, I've always had a theory that the best way to do things would be what I call a "relaxed meritocracy." Basically: everyone has access to housing, food, medical care, and education at a decent standard -- the bare minimums for life, plus a little bit on top so that it's not horrible. (Like living at a dorm room in university.) Then, capitalism on top. Incentive to do well, and the freedom to experiment with stuff that may just crash-and-burn. And nobody is ever well-and-truly left behind.

Can someone please poke holes in why this would be a bad idea?

canadev··on I Ghostwrite Chinese Students' Ivy League Admissions Essays
It's definitely an interesting read, but I don't know how true it rings to me.

> In one admissions cycle, I wrote over a hundred essays and earned enough money to pay my bills for the rest of the year, pay off my car loan, and—as a treat for my hardworking hands—receive $150 Japanese manicures on a biweekly basis.

[...]

> At the end of every writing season, I always swear I will quit, but I’m still broke with no idea about the shape of my future.

Either she's a great writer, and horrible at managing her finances, or she is lying. No?

canadev··on Popping a shell on the Oculus developer portal
I liked this. I also wonder if it'd be worthwhile for me to take a few months off of work and try just poking away at security bounty programs. I doubt it would pay off to start with, but it seems like a pretty lucrative path. I know the OWASP Top 10, but don't really know my way around Burp Suite or anything.
canadev··on The Road Ahead
as opposed to...?
canadev··on Yahoo stopping all new development of YUI
Great to hear a personal side of this story, from both a technical and human point of view. Thanks.
canadev··on The Abandoned Facebook Tech That Now Helps Power Apple
So, I'm an application developer, for the most part. I write stuff and I don't know a whole lot about databases other than how to create some tables/collections, do some basic indexing, and read the slow query log. Even running the explain commands, I have to spend half a day reading the docs and then I've forgotten everything after a few weeks.

I want to know: Can someone tell me how/where to focus my efforts to learn more? In my day job, I use mostly MongoDB these days, but also some MySQL. I have a few resources that I'm aware of:

- http://aphyr.com/tags/Jepsen - Have browsed this and found it interesting.

- MySQL reference manual http://dev.mysql.com/doc/#manual

- MongoDB Manual docs.mongodb.org/manual/

- High Performance MySQL - I purchased this book but never got past the first chapter. Not to say that I can't...

- use-the-index-luke.com/ - Rarely read this, but have given it a half-hearted start from time to time.

- http://www.mysqlperformanceblog.com/ - ditto

I don't know when to use a relational database and when to use NoSQL. I don't know the differences between the various NoSQL databases. I don't know the ins-and-outs of any of the systems and I don't know how to determine what path to go for high availability, geo-distribution, replication, etc.

I find it all very overwhelming and would like to learn more. I'd like to be able to pull plugs in things and see my systems stay up (which, I'm sure would require intimate knowledge of at least one system). Does anybody have any suggestions? How valuable do you think this stuff is?

canadev··on Intermediate C Programming Notes
Could you recommend some modern books on C programming?
canadev··on ITerm2 2.0
So, I have this bash script that runs AppleScript that I use to start up a bunch of servers at once, each in their own Terminal tab. At the heart of it is this 'new-tab' function[1]. I don't really like AppleScript, and would like to not use it.

Can I duplicate this functionality using iTerm, without using AppleScript?

[1] Here's the code; I cobbled it together from some StackOverflow snippet or something: https://gist.github.com/anonymous/f16a46c327a14ec8a5b5

canadev··on Where Online Services Go When They Die
They mention this in the article:

> This same STAGE.DAT got Prodigy in trouble in the early 1990s when users discovered that it could contain fragments of data culled from their PCs. As it turns out, Prodigy's client was filling in "empty" portions of STAGE.DAT with random snippets of system memory. Users were convinced Prodigy was spying on them, uploading this data to its servers (it wasn't); Prodigy denied this and released a tool for the paranoid to zero out their STAGE.DAT files.

canadev··on Show HN: Virtual File System in PHP
I am curious, what is the point of using something like this?
canadev··on JavaScript Modules
Modules are a good thing.

I quite like npm as far as package managers go (the default installation directory being ./node_modules is a big improvement over the global rubygem directory, IMO).

All the same, I don't mean to be overly negative but code like this is why I am not a fan of JS:

var isNode = typeof process !== "undefined" && {}.toString.call(process) === "[object process]";

I mean, I am no JS expert but it took me a couple of minutes just to parse this thing, and this is the next generation. I just don't like it.

canadev··on My Critique of HealthKit as Both iOS Dev and Registered Nurse
From the footnotes:

"The personal fitness industry is another story, however. HealthKit is an excellent, well, fit there."

canadev··on HTTP/2.0 – Please admit defeat
What does "LC" mean in that post?
canadev··on Firefox Developer Tools – Editable box model, Sublime Text keys
Very happy to see Copy as cURL. Just wrote a crappy script to make copy-pasted cookies from the request window into curl parameters two days ago.

I am sure I will use this quite frequently.

canadev··on GopherCon 2014 Videos
Nice!
canadev··on Jekyll 2.0.0 is released
Is there any sort of interactive static site generator, for people who are not very computer literate to use?

(I write code, so it's not for me, but I am wondering if I could say, setup a template for a friend, and have them fill in the content of the pages.)

canadev··on GopherCon 2014 Videos
I see. Thank you.
canadev··on GopherCon 2014 Videos
I am watching the keynote, it looks interesting. I don't know Go at all, though I know several languages including C.

I don't quite know what he is talking about when he talks about main and initialization. Can anyone elaborate on this for me?

I hate to say this because I feel like a jerk in doing so, but I'm about 25 minutes in and the little gopher that scrolls across the screen (some sort of advertisement, I think) is so distracting. It is awful.

canadev··on Moving On
Well said.

Something like this happened to me once. I am a pretty good dev and I write solid code. But I'd been doing a lot of drugs and my mental health was way off base and I started talking to my boss about how I was the best programmer in the company and how he wasn't paying me enough and some other silly shit. Eventually I managed to convince him to convert me to a contractor, so I was working at the same job, without benefits, for a whopping $5K extra a year (if I worked 40/hrs a week for 48 weeks).

He didn't let me go as full-time before making sure that I had access to mental health resources -- his biggest concern was that I get the help I needed, but I assured him that living in Canada (I worked remotely) I had access to mental health care if I needed it. Of course I was certain that I did not need it.

Eventually, things came to a head, and I experienced psychosis to the point where I called the cops and told them someone was spying on me and they certified me and took me away to a psych ward against my wishes.

Things have changed a lot since then and I am much healthier and haven't used any non-prescription drugs (including alcohol) for about a year and a half (I'm lying, I have tried and failed to quit cigarette smoking a few times). The whole me getting taken away incident was about 3 years ago and neither of us work for that company any longer. But I've made amends for the grief I caused him (really, my description above just scratched the surface), and we are on good terms. Today I consider him a friend.

He was the first person who told me to get help. Honestly, that means so much to me.

If anybody wants any more context or someone to talk to about substance abuse problems or mental health issues, I am definitely no professional, but I have personal experience and would be happy to let you know how things went for me and how I got my life back together. My psychiatrist doesn't think it's necessary to see me anymore (I'm a bit torn on that one) and jokes that they should hire me because I've learned and followed their program so well. But a big hint for the main thing behind my success (first suggested to me by my psychiatrist, in fact): To paraphrase Craig Ferguson, "You can find us at the beginning of the phonebook." (I know a lot of people can't get over the "god"/"higher power" thing. Neither can I. But I still followed the instructions and they worked for me. I think it's akin to Cognitive Behavioral Therapy and Mindfulness Meditation.)

canadev··on An analysis of Facebook photo caching
Why is it that an infinite sized cache has < 100% hit ratio?
canadev··on Burying the URL
I remember talking to a friend who owns a Mercedes recently and he was telling me how he had to take his car into the shop and they gave him a fancy loaner (an ML 63, IIRC). He talked about all the cool gadgetry in there like blind-spot monitors, side rear view mirror wipers, and such.

He also mentioned that the cars are pretty much impossible to work on on your own since you need to have the right diagnostic equipment, as opposed to a car one might have bought 15-20 years ago, where a good manual was all that you needed to get into the thick of it.

While I agree that knowledge of the inner functioning should not be required for using a product, I think that it would be nice if there was some sort of effort made to allow one to poke inside. I am guessing that with Chrome there will be some sort of setting that you can use to undo this change (I use Firefox, and rarely, but occasionally, use the about:config tool).

This concept is something I've been playing out in my mind and that I'm starting to explore in my programming. A simple interface that "doesn't make me think" (me being the user), and a well-tucked-away "Advanced" button that, having given the proper warnings, allows the user to poke around on the inside.

canadev··on Living with Lag [video]
Ever been owned by a HPB? High latency can be compensated for.

http://www.urbandictionary.com/define.php?term=HPB

canadev··on Freelancer.com is destroying my life
I have sympathy for the guy.

- He has faced some hardships.

- Obviously the Freelancer.com customer support team is giving him the runaround.

- It's hard to see anybody in trouble and not feel bad for them.

I do wonder though, why doesn't he plan better? Having found himself in a tough situation a couple of years ago:

- Why didn't he build some savings before becoming a freelancer? Doesn't he understand that is a really bad idea?

- Why didn't he test the waters of Freelancer.com with a much smaller project? Any time you have some middleman between you and your money it seems like you want to know that they are not going to jerk you around.

At this point, it seems like he should go to one of those "work for cash" places and do some quick manual labor to get at least some of his bills paid off. And then learn how to avoid this sort of situation in the future...

canadev··on DigitalOcean Indicator
Personally, I like the MacBook Air. I don't see why you couldn't get one of those and run Ubuntu on it.
canadev··on Mobile-Payments Startup Square Discusses Possible Sale
Wow, $100m a year is a lot of money.

Could hire a team of 10 top notch devs for $200K + $100K in benefits for $3m/year. Supposing you had a sales staff that cost the same, that's $6m. Make it an even ten with hardware designers and support staff.

canadev··on Postman: a powerful HTTP client (for Chrome) to test web services
> It drives us nuts in the Plan9 community that Bash history and readline is seen as some sort of productivity tool.

I don't understand what this means, can you explain?

I personally have a .bash_profile (more generally, a collection of dot files) in a git repo that I share between machines. I also find myself using Meta-. and CTRL-R quite frequently.

canadev··on Fine grain Cross-VM Attacks on Xen and VMware are possible
So, if I use a VPS, how do I protect myself?

I am not clear on what to do here. I don't knowingly use AES anywhere; does using bcrypt/scrypt for my PW hashing help at all or is that unrelated?

canadev··on Go Performance Tales
Same here. I really enjoyed reading it, but I don't understand a lot of what it is talking about. I also bookmarked it. When the post had 0 comments I was tempted to post something to the effect of what I just said, but I figured it didn't really add any value.
canadev··on Let's Hear It. The truth about how hard you've worked to get your startup going
Is this a for-fun-and-interest project or do you expect to make money off of it?

Because while I'd enjoy taking a gander over the site, I don't want to give you my email address, and if the site is just a free thing I'd kind of expect to be able to read it without giving it to you.

← PreviousPage 3 of 5Next →