Better HN
topnewbestaskshowjobs
Log inSign up

ehsanu1

1,377 karma · joined Apr 26, 2011 (15y ago) · 616 submissions

ehsanul@ehsanul.com

I'm actually ehsanul (http://news.ycombinator.com/user?id=ehsanul) here on HN, but I switched Google accounts.

Submissions

comment 14y ago · link · parent

You seem to be misunderstanding. Read your parent's last line again. "Empty space" is indistinguishable from encrypted data. On the hard disk, everything will just look like randomized bits, empty space and data alike. There is no way to write the program you propose without the encryption key(s). So there's no way to tell, unless you have all the keys.

comment 14y ago · link · parent

See Nile/Gezira: http://www.vpri.org/pdf/tr2009016_steps09.pdf

Also, the STEPS project in general (read the progress reports): http://www.vpri.org/html/writings.php

They talk about "active" or "runnable" maths. The programming languages they create aim to basically mirror mathematical expressions. This in turn makes the programming stack much smaller and easier to comprehend.

comment 14y ago · link · parent

Don't know about hygiene, but eating with your hands is definitely more convenient for food designed with utensil-less eating in mind. I doubt the reason knives and other utensils aren't used many places (such as South East Asia) has anything to do with some taboo regarding violence during dinner.

And I hope your last sentence there was just tongue in cheek. :)

comment 14y ago · link · parent

I'm not sure where you got that definition of "ad hominem", but in my understanding, it refers to any argument that attacks an opponent directly instead of refuting the opponents claims/arguments. Wikipedia says it's an attempt to negate the truth of a claim by pointing out a negative characteristic or belief of the person supporting it.

http://en.wikipedia.org/wiki/Ad_hominem

But for the record I did not, in any way, mean to suggest that natep was lesser in any way. But I do think there's an arrogance to him schooling me on how things work on HN given our relative positions.

I think it's pretty clear to everyone reading this thread who's being arrogant.

comment 14y ago · link · parent

Surely they don't send you your old password, but a freshly generated one? Then they could still be hashing them after emailing you.

comment 14y ago · link · parent

You may be interested in this (see the section about Nothing and Maru): http://www.vpri.org/pdf/tr2011004_steps11.pdf

A lot of work there has been done in completely replacing the entire current software development stack with something more reasonable (in terms of size/bloat and design). They aim for a full system (frontend user apps to the metal) in under 20,000 lines of code. Check it out. Quite the alternative to C, and everything.

comment 14y ago · link · parent

JS has gotchas and some really bad parts, but if you know the language well and know what you're doing, I think it's quite pleasant actually for many problems. Have you done much programming with JS, and if so, what was so unpleasant about it?

Though, I think I've heard pretty much all the complaints against JavaScript, many of which are addressed by using something like CoffeeScript.

comment 14y ago · link · parent

Why should there be less friction to go to a web page rather than install a game?

Perhaps there shouldn't be as much friction to install a game as going to a web page, but you can't deny that installing a game is currently not nearly as streamlined and easy as clicking a link. Even though it could be, or even should be. The main issue is that you have to wait to install the full game. A WebGL game would instead just download the minimum required to play the first level, and get you started playing the game ASAP.

The other thing though about a game being tied to a link is that it becomes a part of the web. Others will link directly to the actual game, rather than a page that lets you download/install the game natively. This ease of sharing is what makes it really powerful to have an in-browser game. The web is simply the ultimate form of distribution. It also seems less invasive compared to installing - you are not making any changes to your computer. Just close the web page, and it's gone (ignoring cookies/cached files). Whereas a native game will create all sorts of shortcuts and basically embed itself into your system. This is more of a perception problem with "installing" in the eyes of the average consumer.

comment 14y ago · link · parent

I have to think about some of the weird multi-row insert bugs I have run into on MySQL and think that they are thread concurrency problems, but with PostgreSQL (single threaded model) things just hum along well.

Surely that shows that there is an issue with multi-threaded programming being prone to bugs rather than parallelism in general? It seems to me like many of the people advocating parallelism as the future of software believe we have to invent better ways to manage that parallelism as well, current methods (particularly threading) being deficient. For example, see Guy Steele's work on Fortress. [1]

[1] http://www.infoq.com/presentations/Thinking-Parallel-Program...

comment 14y ago · link · parent

Well, I'm working on a web-based real-time multi-player game, and I'd say that UDP would be very welcome by me. When I'm on a good connection, TCP is fine and things work perfectly. But as soon as my connection becomes just a tiny bit unreliable and packets start dropping, it becomes completely unplayable, as TCP has to retransmit those dropped packets before any new packets are processed.

Since all we get is TCP right now though, you can take advantage of that at least and easily do things like send deltas instead of absolute positions, and even things that depend on reliable order of transmission (which you can't rely on if it were UDP), in order to reduce bandwidth use.

comment 15y ago · link · parent

In fact, if one has sufficient savings and has no worries about career, quitting the full-time job also makes a lot of time/energy for the kids. That's pretty drastic, but I'd consider it myself in the future.

comment 15y ago · link · parent

A possible explanation: http://thedailywtf.com/Articles/Thinking-Machines.aspx

comment 15y ago · link · parent

when externally applied heat shocked open the radiators in the cold palms of anesthesia patients, warmed blood was returned straight to the heart, and the body was reheated from the inside out. Applying a mild vacuum to the hand intensified this effect.

It doesn't need a vacuum, but it does help. They don't seem to mention why.

comment 15y ago · link · parent

The point of making the billion dollars yourself is having a say in where it gets spent, not in "giving it all away" indiscriminately. Indeed, someone else might choose to just keep their billions in the family, for the sake of obnoxious levels of luxury. I'm sure there are some billionaires exactly like that.

Anyways, the whole problem with trying to become a billionaire is that it's really a lottery. Sure, someone determined could probably earn a few million through effort alone, but becoming a billionaire requires a special mix of smarts, hard work, and luck. Mostly luck, disproportionately so. You can't just will yourself to earn billions.

comment 15y ago · link · parent

The thing is, upvotes are a function of what shows up on the front page. So it makes sense.

comment 15y ago · link · parent

If the h-ratio of a user is greater than an admin-specified threshold, we flag the user as detrimental to the overall quality of the site and their upvotes would either be discounted or ignored entirely.

Nit-picking here, but I suppose tansey meant "If the h-ratio is smaller", rather than "greater", since you'd want to ignore upvotes from those who upvote honeypots too much, rather than flag them too much.

comment 15y ago · link · parent

I think you're right on the money when you mention submission of low-quality articles. These articles end up drowning out the good stuff on the new page, especially with all the linkbait headlines. The honeypot approach would help, but the drowning out of good material on the new page would not be solved with honeypots alone.

comment 15y ago · link · parent

Well, I doubt there would be much of a speed difference when using canvas/drawImage, since I assume "calculating the frame" involves just use some arithmetic on the dimensions of each frame - which is pretty trivial in terms of CPU use at 60fps.

Anyways, you're right, with lots of assets it probably is a much better way to organize sprites into spritesheet. I just never did anything on that scale. 45 animation frames? Sheesh, I'm happy if I can get 5 or 6. :)

comment 15y ago · link · parent

While I agree with your sentiment, I don't believe davidw wants longer sentences for the sake of length. He simply wants people to use fully formed sentences, with variety in their structure and sophistication. If you ever see some Reddit threads, you may be inclined to agree.

comment 15y ago · link · parent

I suppose spritesheets would making loading time faster since there would be fewer files. But other than that, it's just a neat way of organizing sprites, which can also be managed with a good naming convention tying together related sprites. Is there any other reason to use a spritesheet?

Well, if you're using dom-based animation, spritesheets also work better for animations since it's much faster to adjust background-image-position in a div, compared to just replacing the background-image.

comment 15y ago · link · parent

IMO this is probably one of the better coded HTML5 games out there

I genuinely have no idea how I can improve the quality of the code in this.

I won't jump to conclusions, but this attitude is kind of indicative of the Dunning-Kruger effect (http://en.wikipedia.org/wiki/Dunning-Kruger_effect) being at play, especially given that you seem to be blaming browser makers for your game crashing.

Even the very best programmers can think of ways to improve the quality of their code. In fact, they're more likely to find problems in their own code - that's part of why they're the best.

In any case, assuming you aren't suffering from the Dunning–Kruger effect, can you mention what attempts you've made to narrow down the problem?

Have you tried disabling parts of the game (like rendering for example) to see if the browser still crashes? That would be a simple, albeit tedious, way of narrowing down where the problem is. Come up with a minimal crash case.

If you find a legitimate problem across all 4 browsers, then you can use that minimal case to demonstrate the problem and file a bug report. Or, more likely, you'll figure out what's wrong in your code this way and fix it.

comment 15y ago · link · parent

Sounds like filing away some documentation when you do your taxes would be a simple solution to this annoying problem. But I'm not self employed, so what do I know.

comment 15y ago · link · parent

You'd get a better reaction from people if you assumed you're at fault instead of blaming 4 independent browser makers as all being at fault.

nookie here mentions memory use, so why don't you use the profiler in Chrome's web developer tools to find the memory leak (assuming there is a memory leak, as nookie implies). I believe they have some tools to help you in that regard.

comment 15y ago · link · parent

When did you last try Octave? Professor Andrew Ng recommended using Octave (probably because it's free) for the online Stanford machine learning class (http://ml-class.org/).

565.

Finderr: Get exact searches back on Google without quotes(finderr.org ↗)

2 points · by ehsanu1 · 15y ago · discuss

comment 15y ago · link · parent

Cool, was about to put something together just like this, but don't have to now. Just submitted it here on HN.

comment 15y ago · link · parent

Perhaps Swype would be a decent enough replacement? They advertise 40+ WPM: http://www.swype.com/about/key-features/
1
1718192021