Hacker Newsnew | past | comments | ask | show | jobs | submit | dexter313's commentslogin

Why would you intentionally leave in potential vulnerabilities, if you hypothetically have the option to release bug free code and boast about it.


You never have the option of releasing bug-free code. So if they released code with bugs, called it bug-free, and boasted about it, someone would come along, prove them wrong, and embarrass them.


They wouldn't boast about it directly, simply having a bug bounty where no bugs were found/reported would do the boasting for them.


The publicity wouldn't be as effective. However, I can't see them doing this.


Interesting, i thought minecraft had more complicated algorithms.

Does anyone have any examples on a more specific 2d terrain generation (side-scroller).


Not a side-scroller, but here's a screenshot from a terrain generator that I wrote:

http://i.imgur.com/HgMWbXe.png

the white dot in the center is a control point that the user can drag around. That point defines a mountain. Height decays exponentially with distance from the control point. The height function is perturbed by an underlying noise function.

Edit: It's all done in JS/WebGL using a fragment shader and blatting the output onto static canvas elements. These are then composited for the larger image. It supports scrolling and zooming. I could never get the performance quite to where I wanted it.


And for another example: I wrote a terrain generator for the Abyss in Dungeon Crawl. Since the player is trapped in a hellish Lovecraftian place, the requirements for coherence are much more lax than Minecraft for example.

The algorithm defines some regular (columns, etc) and irregular (random walls) building blocks and then switches between them with Worley noise.

The code is available here: https://gitorious.org/crawl/crawl/blobs/master/crawl-ref/sou...


You can use simple cellular automata to create somewhat natural-looking cave formations: http://rcfox.ca/random-cave-map-generation/


By "set of stairs" do you mean a simple vertical line that cuts trough all of terrain?


Well, I see the image as top-down view of one level in a cave. Going down stairs would mean generating another level.

It's entirely legitimate to see it as a side-view, in which case yes, you'd be cutting through the terrain.


Minecraft also has biomes, which customise the terrain generation to produce regions of a particular type of terrain like forest, desert, sea, etc and some intermediary biome types like beaches. I don't know how it distributes the main biomes, but it may use one noise algorithm for that and another within each biome. Plus applying some rules to handle the borders between biomes. There is a lot more to it that just "It's Perlin noise".


I was always wondering, if PayPal locks a 200k$ account, where does that money go?


Typically, to the account holder either (a) after they submit the requested documentation or (b) after 180 days if their account was terminated in order to cover future chargebacks. You just don't read that part of the story because people write about it on day one, not after they understand and have resolved the problem.


It doesn't "go" anywhere, it's just a balance. It remains locked until some resolution of an investigation happens, it's no different than when a bank account is frozen.


Were you lying about being an american student?


No, I had an old U.S. account and I wasn't able to change the country. I created a venezuelan account later on, but I saw that the U.S. account provided some features, so I stupidly thought that was ok to then transfer the money to the Venezuelan account. I started to sell licenses while I was outside the U.S.


Exact same issue here! I moved to England and there's no way I can change my Country. So, my address is correct but not the Country! Paypal just sucks really!

I just wonder why don't you Emmanuel provide more information.


The whole movie in... First Person Perspective!

or even better;

The whole movie is a first person game and every viewer has a mouse and keyboard, every move from everyone is integrated/averaged together and this moves the character on the movie screen.


They have to make it quieter first. There is no way i could use anything so loud with roommates sleeping in the next room.

I think towel is still better for home usage as it wipes any remaining soap/stain off your skin in hard to reach places, and after a while you can always wash it in a washing machine.


Important part:

Prosecutors Ortiz and Stephen Heymann turned to a standard trick while pursuing the case, mounting a total of thirteen felony counts against Swartz and arguing that his college prank aimed at “liberating” a collection of academic articles with little commercial value was a serious crime. Although each of these counts bordered on the preposterous, Ortiz and Heymann clearly reckoned that at least one or two would stick during the jury-room bargaining process. More to the point, they assumed that the risk of their success even on bogus charges would be enough to pressure Swartz into accepting a guilty plea on all the counts in exchange for a reduced sentence — which is what they offered him. The process was fundamentally corrupt and shameful. But observers of the American criminal-justice system also know that it was a common one.


Thanks for highlighting that; I read the article and felt that this paragraph stood out for the right reasons.

I've read some negative comments about the article, which surprised me; as this paragraph proves, the article isn't painting Ortiz as a rogue exception to the rule.


I kinda liked it; Even if you skip something the story is written in a way so it doesn't matter too much.


It sure is an interesting concept. I didn't really want to know all about North Korea. And somehow, thanks to the layout, I think that I got the general idea in a better way than I would have if it has been one big column.

It feels with an approximation algorithm that enables parallel processing to an usually linear task. It saves some time to get the general idea.


The page reminds me of when my wife and I watched Solaris (2002) without realizing our DVD player was on shuffle. We both enjoyed the nonlinear narrative for a good 45m before we realized what was wrong.

Fixing the problem seemed to make the movie worse for us.


What illegal products are you talking about?


The previous website Kim owned was http://www.megaupload.com which got shut down last year due to hosting illegal content.


Megaupload was basically the pirate bay if it were run as a business.


The pirate bay is run as a business. They make a lot of money from advertising. They are also branching out into politics now.


This statement makes no sense whatsoever.


Piece is the keyword here.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: