275 karma · joined Jan 9, 2012 (14y ago) · 69 submissions
1.
In-order Tree Traversal without recursion or a stack(geeksforgeeks.org ↗)
2 points · by lathamcity · 13y ago · discuss
2.
Ridiculously detailed Carnegie Mellon machine learning parody of online scam ads(oneweirdkerneltrick.com ↗)
6 points · by lathamcity · 13y ago · 1 comment
comment 14y ago · link · parent
In modal.register.js:100, 128, 337
$("#veriImg").attr("src", "/present/captchaImage.action?t=" + new Date().getTime());
It doesn't seem like the expected value of the captcha ever actually gets registered on the server side.
My one idea of stopping before the Ajax request and setting the verification code equal to an empty string to try to match a null/undefined on the server side didn't work.
It's possible that, in some really obvious error, the server makes its own request based on a current timestamp to get the captcha value to match against and uses a later timestamp, but the time difference because of latency means that I can't test that without guessing a bunch of times.
comment 14y ago · link · parent
That's lousy journalism - not mentioning what the specific weather conditions were, and making it sound like the seawater was some sort of simple throwaway answer instead of the scientifically obvious answer that it actually is.
"Why Did 17 Plug-In Cars Burn?" "What caused more than a million dollars-worth of plug-in hybrid vehicles, including 16 Fisker Karma luxury sedans, to catch fire Monday night at Port Newark?"
It really should say what the other car was. It's impossible to guess at any sort of trend, because the other car could break it and we aren't told what it was. Was it another Fisker car, indicating a consistent problem with the company in this instance? Were there similarities in the design? All we know is that it was a plug-in vehicle.
Wikipedia, by the way, says it was a Prius: http://en.wikipedia.org/wiki/Fisker_Karma#Fire_incidents
comment 14y ago · link · parent
The same example is true of taking adderall to study for tests. In high school, I didn't take adderall, but I know a lot of kids who did and they would remember information a lot better and score above what they should have been. So if there was some kid who was objectively a worse student than me and he was getting the same grades as me, we both look the same. If everybody started doing it, I'd be left behind or pushed into a lower bracket by virtue of being the only person who didn't do it - who wasn't willing to risk my health (I think, don't know too much about it) for a higher grade. I don't think this will happen, but there are a lot of other examples:
-Doping in bicycling
-Working an insane amount of hours on your startup/job
-Spending months/years studying for the GMAT to get into business school
-Corruption or lying in politics
-Autotuning in the music industry
-High school kids taking all these leadership roles and such things that they don't really care about to try to show passion and get into Harvard. Same for grad school applications.
etc. etc.
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
I glanced at the comments to see if anyone said "It's broken" and nobody did, so I went back and tried hitting the play button but nothing happened, same result.
Then I read the first comment on here and went back one more time and it worked; however, this time when it spins and I click on a red dot nothing happens and I get ' error parsing d="" ' in the console, with the line being /quakes/:1, which is just the <html> tag.
12.
Star Wars blaster speed analysis using physics and perspective(wired.com ↗)
1 points · by lathamcity · 14y ago · discuss
comment 14y ago · link · parent
I debugged it for you - the outerHTML property isn't supported in Firefox < 11. Here's the solution from StackOverflow:
function outerHTML(node){ return node.outerHTML || ( function(n){ var div = document.createElement('div'), h; div.appendChild( n.cloneNode(true) ); h = div.innerHTML; div = null; return h; })(node); }
comment 14y ago · link · parent
Level 0: Saw the post title and didn't think he needed to look at it because he was so confident in his abilities already.
Level 1: Read the post, noticed a lot that he didn't know but didn't intend to do anything about it.
Level 2: Read the post and went out and learned everything in it that he didn't know.
Level 3: Read the post, figured out which things from it he didn't know but might need to or want to, and learned those.
Oh, and a special level -1: Read the post, noticed a lot of things that he didn't know, and decided the post was stupid because clearly he's an amazing programmer and the post didn't agree with that self-assessment.
comment 14y ago · link · parent
My one complaint is that the programming assignments weren't interesting at all. The results were interesting, but the setups were mostly given to us, and we just had to code an algorithm that was in our notes. For someone who understands the basics of linear algebra and programming, it was just a syntax challenge, and that got irritating after a bit so I stopped doing them.
I won't get the certificate for completing the course, but I have a few extra hours of free time each week to add this second course, so I'm happy. I doubt that the actual homework that Stanford students taking this course get is so easy and repetitive, though, and I'm positive they wouldn't complain about not getting to retake quizzes after getting poor grades.
Not to knock the course. I've learned a lot and the professor (Andrew Ng) does a good job.
comment 14y ago · link · parent
comment 14y ago · link · parent
20.
Optimal, complex solution vs. simple, requirements-meeting solution(programmers.stackexchange.com ↗)
1 points · by lathamcity · 14y ago · discuss
22.
Why I'm the Best Programmer in the World (Jeff Atwood, not me)(codinghorror.com ↗)
1 points · by lathamcity · 14y ago · 1 comment
comment 14y ago · link · parent
-Linkbait articles rapidly accelerating to the front page while good stuff like questions or Show HN gets lost in "New".
-The slight trend in the community towards vitriol and nasty criticism, which there was a lot of chatter about two or three weeks ago.
In both cases, in my understanding, there's a lot of upvoting of the controversial links/comments from new people with low karma, which is how they're kind of taking control of the community.
I came up with some ideas in the shower about this. First, I thought it might be a good idea to create some logarithmic mapping of karma value to vote weight. The weight wouldn't give the user more karma for being up-voted by a high-karma person, but it would factor into the site's systems. That way, people with more karma have more of an impact on the community.
Second, I thought that the quality of a user's previous submissions should factor into their reputation or something on this site somehow. Maybe HN could look at the trend of votes earned on recent comments and the ratio of downvotes:upvotes or downvotes:views (since controversial comments get upvoted a lot, we want to look at how many times they were downvotes, not the total score since that will probably be very positive regardless of how many downvotes there were) and use that information to somehow affect the user. i.e. if someone is getting a lot of upvotes for mocking someone's project in a nasty but particularly clever way but also getting a considerable number of downvotes, the system should say hey, this guy writes posts that a lot of people don't think belong on our website, and then take action on that somehow.
Note, I'm "new" (198 karma, joined about a year ago) so I may not know what I'm talking about.
comment 14y ago · link · parent
Right now I'm in the middle of a seven-month internship with IBM. Back at the start, I distinctly remember when Hacker News was full of articles discussing 42 Floors' open job offer to you, and I felt miserable - "I could be that awesome if only I managed myself better" - and determined to spend the entire seven months in a mad self-improvement frenzy.
At the start of the summer I made this big sheet of paper with little letters and numbers next to each day to be crossed off. There were different things I wanted to do each day - read a bit of this book, work a little on this project - and they were all meticulously planned out. Since the work was divided up into such small chunks, however, it was easy to just miss one because ultimately it didn't matter. I also resented that the paper was planning out my day so much. Once I'd missed one, it was easy to miss another, and pretty soon it all fell apart. I don't think it's a good idea at all to micromanage yourself this much.
Next, I tried making the goals slightly more long-term. I divided up what I wanted to do into months instead of days, making columns for each month between now and January and writing down what I wanted to accomplish in each month, all the books I wanted to read, etc. The problem again was expecting too much of myself and being too strict on myself. When I wrote down a reading list, suddenly reading the books didn't feel enjoyable anymore - it was something I was forcing myself to do and so something that I had to do. Even writing "Do a Rails project" made it less of an enjoyable experience because I felt like I was doing it because I had to instead of because I wanted to, even though I had only written it down in the first place because I wanted to do it.
I've grappled with the second goal set for the last two months, talking to my friends and discussing a lot of the same ideas that you wrote about in your blog. I think you and I both came to the same conclusion, which is that you just need to have some vague idea of where you want to go and go there in a way that you'll enjoy. When the inspiration hits, you'll be free and flexible enough to do something with it, instead of being imprisoned by goals. So right now, my goals are just "Learn more about algorithms and do cool projects", which I'm enjoying a lot more. In particular, I think that we as programmers have a bad habit of assuming that we're capable of a lot more than we actually are, an assumption that kind of handicaps us by making us think we can jump into things in an unrealistic way such that we feel frustrated when we're not as godlike as we imagined.
If this is utterly unreadable, thank Bill Clinton, haha.
26.
Google Comic: 20 things I learned about browsers and the web(20thingsilearned.com ↗)
2 points · by lathamcity · 14y ago · discuss
comment 14y ago · link · parent
comment 14y ago · link · parent
http://www.amazon.com/Build-Your-Own-Ajax-Applications/dp/09...
I got it at a used book store for $5. The second chapter was page after page of code to build an app to be used for the rest of the book. None of it was explained, and of course it didn't work for me and I didn't know if I'd made a typo or if it was just outdated. The book promised that the code would be available online, but the website was defunct. It ended up in the garbage at the end of the school year.
30.
What is the worst programming book you ever read?(programmers.stackexchange.com ↗)
4 points · by lathamcity · 14y ago · 2 comments