Profile

Cover photo
Mitchell Foley
Works at Google
Attended Rensselaer Polytechnic Institute
160 followers|40,818 views
AboutPostsPhotosYouTube

Stream

Mitchell Foley

Shared publicly  - 
 
It’s perhaps the chief complaint heard from just-arrived college students in Boston: Why isn’t the T open past 12:30 a.m.? Now, a T-affiliated group has a solution: If college students want late-night MBTA service, colleges should pay for it. In a report released Friday by the MBTA Rider Oversight Committee — a group of riders, advocates, and T employees who advise the transit agency — the organization proposed overhauling the T’s college discoun...
1
Add a comment...

Mitchell Foley

Shared publicly  - 
 
(new Date(2013,2,10,2,30,0)).getTime()

Firefox: 1362900600000
Chrome: 1362897000000
Me: FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
1
3
Mitchell Foley's profile photoDidier Girard's profile photoJulien JAKUBOWSKI's profile photoAlexandre Genon's profile photo
3 comments
 
It's a timezone / DST issue. Both browsers will behave differently depending on where you are and if your timezone has DST or not.
Add a comment...

Mitchell Foley

Shared publicly  - 
 
Hey look I'm on the internet.

I think slides are going to be posted somewhere on the I/O site. I'll reshare once they put them up.
6
2
Sam Xin's profile photoMichael Inniss's profile photoTom Rybka's profile photoJohn A. Tamplin's profile photo
5 comments
 
any further info regarding the release of the new timeline etc.. ?
Add a comment...

Mitchell Foley

Shared publicly  - 
 
Hey look at this thing I'm going to do.
11
1
Xavi Ramirez's profile photoMitchell Foley's profile photoShauvik Roy Choudhary's profile photoJim Wilson's profile photo
3 comments
 
Can you please share your slides from the talk?
Add a comment...

Mitchell Foley

Shared publicly  - 
 
These are things I've printed out with my receipt printer. I've been working on an android app that will print out random creatures so we can play Momir Basic and MoJhoSto.

Read these links if you're not familiar with the games:
http://www.starcitygames.com/magic/multiplayer/12118_The_Momir_Basic_Primer.html
http://www.gatheringmagic.com/mojhostos/

Still got some work to do, but we're getting there. It'll be done by PAX East.

http://github.com/walkingeyerobot/mojhosto

Also, a picture of a fluffy kitten.
1
Add a comment...

Mitchell Foley

Shared publicly  - 
 
I can't get my cards out if there is a fluffy kitten in the way.
4
Chris Lozaga's profile photo
 
If every box is labelled "misc" why label? Lol.
Add a comment...
Have him in circles
160 people
Zhe Lu's profile photo
Eric Wyler's profile photo
Dan Marchand's profile photo
Mitch Weight's profile photo
Xavi Ramirez's profile photo
Emilie McConville's profile photo
Lynn Foley's profile photo
Ari Choquette's profile photo
Houda Zanibel's profile photo

Mitchell Foley

Shared publicly  - 
 
I did not expect this result. I thought the regex would have been much slower.
when we know foo is of type number, determine if foo is an integer
1
Rich Conlan's profile photoDaniel Lin's profile photoMitchell Foley's profile photo
4 comments
 
+Daniel Lin Clever! I like it!
Add a comment...

Mitchell Foley

Shared publicly  - 
 
We've been playing this game a bunch at work, and it's been a blast. I think we could easily play this over a hangout sometime. Any interest? It would probably only last ~45 minutes.

I'd write a quick program to email everyone their roles randomly. We'd have to all promise not to IM each other outside of the hangout. Everyone would accept or reject missions using paper they just hold up to the screen, and the secret voting could be done with an anonymous google docs poll.
The Resistance is a game where players attempt to deduce one another's identities. The setting of the game is an imagined battle between a resistance group trying to overthrow the malignant government and the government spies infiltrating the resistance group. It is similar in structure to party ...
3
Mitchell Foley's profile photoJulián Caballero's profile photoXavi Ramirez's profile photoAmelia Yu's profile photo
9 comments
 
You guys should do it in person as well. :D It's a great game. 
Add a comment...

Mitchell Foley

Shared publicly  - 
 
I'm looking to start using a graph database, and so far I think neo4j and orient don't have what I'm looking for.

I need to be able to store an undirected, complete graph, where the edges store a number. I want to be able to search that graph with things like "starting at this node, give me the set of all nodes I can travel to only following edges with a value greater than n".

Searching for such a thing is hard, or maybe I just don't know the right terminology.

Ideas?
1
Mitchell Foley's profile photoJim Wilson's profile photo
7 comments
 
Since you're setting up the system from scratch, you could put something in front of the REST API - like a thin Node service. The shim would take note of the node being updated and inform a queue to rescan.

I don't know the context of the project, so all I can do is guess, but that might be a way to get started.

Another choice would be to use another system as the canonical source of data and use the graph as a sort of queriable index.

E.g. store the data in CouchDB and use its changes API to feed a graph database as well as a queue of work to rescan the graph to index the affected node list (or whatever it is you're trying to do).
Add a comment...

Mitchell Foley

Shared publicly  - 
 
So jQuery is absolutely terrible with SVG elements. It may have been too much of a pain to do it properly, which is understandable. Most of what I want to do is DOM traversal, which I would have expected to be pretty straightforward.

$elem.siblings('selector'); // doesn't work
$elem.parent().find('selector'); // works fine

$('<line x1="0" y1="0" x2="10" y2="10"/>'); // does not create a proper line element. somehow.

$elem.addClass('foo'); // doesn't work
elem.classList.add('foo'); // works fine (note elem isn't a jQuery object in this case)

Maybe I shouldn't be using jQuery at all for this, and just roll my own solution. Or find a jQuery plugin that does what I want.
1
Julián Caballero's profile photoJim Wilson's profile photoMitchell Foley's profile photo
7 comments
 
https://github.com/jquery/sizzle/pull/202 - I'll have you know that .children, .siblings, and others will work once this is pulled.

Hopefully I'll submit another patch soon for the other things I was complaining about.
Add a comment...

Mitchell Foley

Shared publicly  - 
 
Today I learned about "pointer-events: none;", which is reasonably amazing.

Thanks to +Ned Burns , lord of CSS.
Echo apis are created to simulate Ajax calls: /echo/json/ for JSON, http://jsfiddle.net/echo/jsonp/ for JSONP, /echo/html/ for HTML and /echo/xml/ for XML. Please read API documentation and follow exa...
3
Xavi Ramirez's profile photoMitchell Foley's profile photo
2 comments
 
I have an SVG map. You click on a region, then on another region, and it draws an arrow between the two regions. I don't want the arrow to be clickable. I was about to draw an invisible mouse layer on top of everything when +Ned Burns showed me this.

It's something that will be on my github once I get a little further along.
Add a comment...

Mitchell Foley

Shared publicly  - 
 
Never give up on your dreams.
1
Add a comment...
People
Have him in circles
160 people
Zhe Lu's profile photo
Eric Wyler's profile photo
Dan Marchand's profile photo
Mitch Weight's profile photo
Xavi Ramirez's profile photo
Emilie McConville's profile photo
Lynn Foley's profile photo
Ari Choquette's profile photo
Houda Zanibel's profile photo
Education
  • Rensselaer Polytechnic Institute
    Computer Science, 2004 - 2008
Links
Contributor to
Work
Employment
  • Google
    Software Engineer, 2011 - present
Basic Information
Gender
Male