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

I can recommend the book and especially the email web course.


I like cheet.js better, the code seems much easier to read.


I failed in doing something very similar. Could you explain how you split the image up into triangles?


There is a link at the bottom of the page that links to https://medium.com/@williamngan/kubist-6ed1d8025806 which appears to be an explanation on how it works.


In the demo there's also a second mode called "Cell" that seems reminiscent of sampling via Poisson Disc, which you can read more about in Mike Bostock's excellent "Visualizing Algorithms" post.[0]

[0] - http://bost.ocks.org/mike/algorithms/


Yep, both delaunay ("Triangle") and voronoi ("Cell") uses "best candidate algorithm" to distribute the points by default. It's similiar to poisson disc.

The "Analyze image" uses JSFeat to apply a computer vision algorithm (feature point detection) to add some "interesting" points based on the image.


Yes. I use d3.geom.delaunay or d3.geom.voronoi to create the delaunay or voronoi tessellation.

http://bl.ocks.org/mbostock/4341156

Then for each polygon, I take its points (center point or vertices or an arbitrary point) and find the corresponding pixel on the image. Then I extract the rgb color, and use that to fill the polygon (as solid color or gradient).



I have seen this line of thought some times now but I can't help but having a hard time believing it to be true. The notion that in other countries people have the right to express themselves freely is not particularly hard to grasp and pass on, even if told otherwise by state media (which are probably not very well respected under oppressive regimes.)


Think of it as molding and allowing. The nation molds people into producing the same unsurprising results (I mean the frequency of couch-potatoes-who-get-offended-by-the-sight-of-alcohol-but-not-guns is unmatched in the rest of the world, despite the freedom) and lets them to make unrespectful drawings. In which case the nation is as much producing the drawings as the individuals.


Generate tons of mostly dumb ideas for

* recreational programming

* getting filthy rich

If it gives you a good idea let me know! (:


Isn't it a bit redondant ?


What do you mean?


They explain that on their website.


Oh, I see:

>> A true cryptographic hash cannot be decrypted. However, to keep things simple the word hash is used loosely to refer to the random set of characters that is generated -- like a YouTube hash.

What?


That is something that hashid avoids.


I'd like something like this for XML.


I've seen attempts at it before. It gets pretty complicated, because of attribute/content split. You're basically choosing between something so generic and complicated it's hardly any better than a validating text editor with autocomplete, or something so cut down that it is by default specialized to its use case, in which case it is basically just a specialized editor of some sort that happens to serialize to XML, which is common, and no longer is a "general XML editor".


I know. This project uses a json schemas which are somewhat similar so xml schemas though. Maybe a converter could be developed.


Then you'd have the 60 hour work week pretty quick.


I'd quit. I'm a specialist and will easily find another job.


You seem not to understand the depth of that statement.

It's not that one company would have excess hours; all of them would. So, you would be free to find a new position. . . at another company with a 60 hour work week.

Look at the history of the labor movement. Those in power tended to abuse those that weren't; long hours, unsafe conditions, etc. Now, unless you work in a coal mine or foundry, we can count out unsafe work conditions.

That really leaves one other option. . . . . .


This is so senseless i dont know how to respond. It is like saying legal guns will increase the crime rate because they can kill. Companies compete to get specialists (look at how many perks average startup or google offers). Low skilled jobs? Who cares about them.


You know, I spent all night pondering your statement, and I came to the conclusion that you're either incredibly sheltered and immature, or a complete ass.

First off, it's not the same. There is no, or very low incentive for gun owners to commit crimes; especially when compared to the possible consequences.

If there are no protections for workers, though, there is every incentive for businesses to abuse their employees. History proves this statement true. That is, of course, unless I'm just not aware of a number of businesses who willingly limited their abuse before the labor movement.

And yes, the average startup and google and other tech sector businesses offer good perks. . . . That is not normal for a majority of careers, you know that, right?

And this, "Low skilled jobs? Who cares about them." Is either one of the most terrible statements I've read on HN, or one of the best trolls I've seen; boy, oh boy, did it get me worked up.

That is a terrible way to live. Do you understand how much of your life relies on low skilled jobs? Do you buy your food from a grocery store? Do you shop for clothes? Do you purchase anything that you don't personally create? At some point, low-skilled workers interacted with the goods you purchase.

The attitude that the only reason people work low-skill jobs is because they aren't smart or capable enough for anything else is very, very immature and incredibly ignorant. Specifically, your attitude that they apparently deserve to be treated worse and (in the context of our conversation) deserve to be abused by their employer because of their low-skilled jobs is awful, just simply awful. You should be ashamed.


And it's not just about abuse of power - 60-hour-workweek companites would simply rather quickly outcompete those that had 40 hour weeks, except in rare cases.


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

Search: