Better HN
topnewbestaskshowjobs
Log inSign up

thesystemis

344 karma · joined Jul 26, 2009 (17y ago) · 69 submissions

developer of openframeworks (openframeworks.cc) and artist (daily code sketches: http://instagram.com/zach.lieberman)

twitter.com/zachlieberman

Submissions

1.

Daily code sketching in 2017(blog.usejournal.com ↗)

1 points · by thesystemis · 8y ago · discuss

comment 9y ago · link · parent

last year I made a resolution to do daily code sketches for fun:

https://www.instagram.com/zach.lieberman/

I have learned a great deal from the act of daily coding and treating code like a creative medium without any pressure on what I make or why. I found myself tackling hard challenges so I wouldn't get bored and learning a variety of new tricks to help make the sketching easier. I wrote about the process here:

https://medium.com/@zachlieberman/daily-sketches-2016-28586d...

I think daily activities are the best for growing -- short, concentrated, and limited in scope and can fit with the rest of your life.

comment 9y ago · link · parent

thanks!

comment 9y ago · link · parent

I just saw this thread... I wrote this article (and made the sketches here: https://www.instagram.com/zach.lieberman/) -- happy to answer any questions!

also if it's helpful to anyone, I do open office hours once per week and I am happy to talk to anyone about sketching, creative code or anything else:

https://medium.com/@zachlieberman/open-office-hours-124e1b79...

5.

Open office hours(medium.com ↗)

1 points · by thesystemis · 9y ago · discuss

comment 9y ago · link · parent

I'll take a look - thanks! note that we do limit the line somewhat since the best matches are curves, lines, etc and self intersecting lines don't match very well.. The best kinds of lines are like the ones in this video (https://www.youtube.com/watch?v=w6-LK9BOVTA)

comment 9y ago · link · parent

sorry! this is a bug based on how many events the mouse is firing and I've open an issue for it -- I will take a look at the app with a gaming mouse and work on a fix.

comment 9y ago · link · parent

thanks -- do you know what graphics card that is? also you can try enabling "Override software rendering list" in chrome://flags/ -- I don't have a great handle on what gpus are blacklisted, but I know there are some that are.

putting this in the address bar can give you a lot of info as well "chrome://gpu"

comment 9y ago · link · parent

I'm not on the data arts team (I collaborated with them on this) but I'll ping them to answer.

This was a passion project, they approached me with a set of data -- satellite images, and we discussed different ways of visualizing them, etc.

comment 9y ago · link · parent

fixed! thanks!

comment 9y ago · link · parent

thanks! I am using a metric from the dollar gesture recognizer

http://depts.washington.edu/madlab/proj/dollar/index.html

which gives a value for how close to polylines are (it normalizes them and does some distance calculations)

the way the vp tree works is you provide a set of data and a metric for distance (in my case, the data was the polylines and the metric was from dollar) and it computes the structure. As long as the metric observes some basic principles (I think it's called triangle inequality) the spatial division will work and you can do a fast search for nearest neighbors.

comment 9y ago · link · parent

I think that's a great idea... I will take a look at that. here's a hack in the meantime someone put together for doing that:

https://gist.github.com/spite/90e3dbf8e117660f6788a5748ae06c...

comment 9y ago · link · parent

no it's a really good question! I think this just has to do with the line detection algorithm and it tending to find more curves than sharp angle lines -- this is what the matches look like when you draw a Z:

http://imgur.com/a/YErmM

they are not as good as when you draw a curve and I think it's just trimming based on general poor matches. I've found if I round the Z or make the angle less extreme I can get better results.

comment 9y ago · link · parent

the matching is based on the input (lines from the line detection) and we do some tricks to try to get better matches if the results aren't great. One trick is for matches that aren't super great, we start to trim the line slight from the start so if the first pass is a bad match, we try 95% of the line (ie, the last 95%) then trim is some more, etc.

another thing to note is that the app progressively loads data in the background so you get better results after the first minute or so once all the data is loaded -- the app launches with only 20% of the overall data.

comment 9y ago · link · parent

there's actually no backend! the matching is done client side.

here's a technical write up:

https://developers.google.com/web/showcase/2016/land-lines

the trick for making it fast is vantage point trees (https://en.wikipedia.org/wiki/Vantage-point_tree) which help with nearest neighbor searching through extremely large data sets.

comment 9y ago · link · parent

sorry to hear that! can you provide more info about your platform? this app uses webgl and we check for webgl support when the page loads.

comment 9y ago · link · parent

this is a write up of a year of doing code based sketches -- last year I started to do a sketch per day here:

https://www.instagram.com/zach.lieberman/

I am happy to answer any questions about this if it's helpful

comment 9y ago · link · parent

also another tip -- you can click on the city name in the left corner to load the same view in google earth (if you are curious about what you are looking at!)

comment 9y ago · link · parent

thanks! that's great to hear

comment 9y ago · link · parent

the line is limited to a certain lengths since simpler lines (curves, etc) provide better matches

21.

Daily sketching in 2016(medium.com ↗)

7 points · by thesystemis · 9y ago · 1 comment

comment 9y ago · link · parent

also if it's helpful, there's a technical write up here: https://medium.com/@zachlieberman/land-lines-e1f88c745847#.k...

and overview video: https://www.youtube.com/watch?v=w6-LK9BOVTA

comment 9y ago · link · parent

I helped make this (with the google data arts team), happy to answer any questions about it.

comment 10y ago · link · parent

thanks! -- I didn't know the history. these notes are from 2008 (long after opencv was open sourced) but it's clear from his linkedin page that he was a part of the founding team at intel.

comment 10y ago · link · parent

He wrote the Learning OpenCV book but I'm not sure it's accurate to say he created openCV... It was created by intel internally (by a ton of folks like Vadim Pisarevsky) and later open sourced.

https://en.wikipedia.org/wiki/OpenCV

comment 10y ago · link · parent

(update - google took it down. thanks again for pointing it out to me...)

comment 10y ago · link · parent

author of inkspace here, thanks for pointing this out. I will try to flag this...

comment 11y ago · link · parent

of note -- new yorker also transitioned to a wordpress backed system recently:

http://www.nytimes.com/2014/07/09/business/media/the-new-yor...

comment 12y ago · link · parent

I don't think it's wrong to argue that point, ie, "I wish this reporter would understand how we work to create a safer environment, look at the stats, etc" but I think it's far out of line to go beyond that and assign "personal responsibility" to someone who is arguing against your product, especially around these sort of crimes. To me, that seems like taking the argument to a really personal place and also, trivializing what should be a serious discussion.

comment 12y ago · link · parent

sorry I respectfully disagree -- here a SVP of a company is essentially saying, "by recommending people to not use my product, you are responsible if they get assaulted" -- it's essentially shifting the blame around a sex crime in a way that to my eyes really minimizes who is responsible for such crimes, the perpetrators. It's also such a flippant remark that it seems to me to show a callous indifference to what it means to be a victim of such a crime.

ps, agree with scarmig's point -- he's not "blaming the victim" but it does feel like shifting the blame, which minimizes what these crimes mean.

123