News for hackers. Stuff that matters.

thesystemis

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.

Re:Daily Sketches in 2016 on Monday January 02, 2017 @03:30AM (#13299819)
thanks!
Re:Daily Sketches in 2016 on Monday January 02, 2017 @03:29AM (#13299812)
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...

Re:Land Lines on Thursday December 29, 2016 @09:38AM (#13277453)
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)
Re:Land Lines on Thursday December 29, 2016 @07:14AM (#13276883)
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.
Re:Land Lines on Thursday December 29, 2016 @01:11AM (#13275932)
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"

Re:Land Lines on Thursday December 29, 2016 @12:05AM (#13275727)
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.

Re:Land Lines on Wednesday December 28, 2016 @11:53PM (#13275702)
fixed! thanks!
Re:Land Lines on Wednesday December 28, 2016 @11:52PM (#13275697)
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.

Re:Land Lines on Wednesday December 28, 2016 @11:46PM (#13275677)
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...

Re:Land Lines on Wednesday December 28, 2016 @10:08PM (#13275403)
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.

Re:Land Lines on Wednesday December 28, 2016 @09:55PM (#13275376)
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.

Re:Land Lines on Wednesday December 28, 2016 @09:43PM (#13275348)
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.

Re:Land Lines on Wednesday December 28, 2016 @09:29PM (#13275308)
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.
Re:Daily sketching in 2016 on Wednesday December 28, 2016 @09:22PM (#13275283)
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

Re:Land Lines on Wednesday December 28, 2016 @09:12PM (#13275247)
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!)
Re:Land Lines on Wednesday December 28, 2016 @08:55PM (#13275186)
thanks! that's great to hear
Re:Land Lines on Wednesday December 28, 2016 @08:55PM (#13275183)
the line is limited to a certain lengths since simpler lines (curves, etc) provide better matches
Re:Land Lines on Wednesday December 28, 2016 @08:40PM (#13275127)
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

Re:Land Lines on Wednesday December 28, 2016 @08:21PM (#13275052)
I helped make this (with the google data arts team), happy to answer any questions about it.
Re:Magic Leap Alleges Workers Stole Its Secrets on Saturday May 28, 2016 @08:08AM (#11791363)
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.
Re:Magic Leap Alleges Workers Stole Its Secrets on Saturday May 28, 2016 @01:06AM (#11790652)
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

Re:TiltBrush by Google on Thursday March 03, 2016 @01:57PM (#11219053)
(update - google took it down. thanks again for pointing it out to me...)
Re:TiltBrush by Google on Thursday March 03, 2016 @03:52AM (#11215731)
author of inkspace here, thanks for pointing this out. I will try to flag this...
Re:Our Director of Engineering on the new Wired.com on Monday March 02, 2015 @09:58AM (#9132072)
of note -- new yorker also transitioned to a wordpress backed system recently:

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

Re:Uber Executive Suggests Digging Up Dirt on Journalists on Tuesday November 18, 2014 @09:06AM (#8623856)
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.
Re:Uber Executive Suggests Digging Up Dirt on Journalists on Tuesday November 18, 2014 @08:43AM (#8623806)
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.

Older »