Slashdot Mirror


MIT Researchers Bring JavaScript To Google Glass

colinneagle (2544914) writes "Earlier this week, Brandyn White, a PhD candidate at the University of Maryland, and Scott Greenberg, a PhD candidate at MIT, led a workshop at the MIT Media Lab to showcase an open source project called WearScript, a JavaScript environment that runs on Google Glass. White demonstrated how Glass's UI extends beyond its touchpad, winks, and head movements by adding a homemade eye tracker to Glass as an input device. The camera and controller were dissected from a $25 PC video camera and attached to the Glass frame with a 3D-printed mount. A few modifications were made, such as replacing the obtrusively bright LEDs with infrared LEDs, and a cable was added with a little soldering. The whole process takes about 15 minutes for someone with component soldering skills. With this eye tracker and a few lines of WearScript, the researchers demonstrated a new interface by playing Super Mario on Google Glass with just eye movements."

70 comments

  1. Headache by Dan+East · · Score: 5, Funny

    the researchers demonstrated a new interface by playing Super Mario on Google Glass with just eye movements

    Followed by the researchers demonstrating how to try and relieve a headache by massaging their temples with their thumbs.

    --
    Better known as 318230.
    1. Re:Headache by Anonymous Coward · · Score: 2, Insightful

      I got a GREAT BIG COCK

      Yeah and tell it to stop crowing at 6am or I'm gonna shoot it and deep fry it.

    2. Re:Headache by Anonymous Coward · · Score: 0

      Yes, these guys = FAIL. Just adding anew item to the list of unwanted unneeded technology.
      Hope they enjoy flicking through porn libraries and groaning in public when they add their p0rn hack.

    3. Re:Headache by TubeSteak · · Score: 1

      Speaking of headaches, TFA didn't bother linking to the website of what we're all talking about
      http://www.wearscript.com/en/latest/

      --
      [Fuck Beta]
      o0t!
    4. Re:Headache by MrBigInThePants · · Score: 1

      Sir, this is no time for quips and jests. This is a serious and devastating moment.

      My heart goes out to all "Glassholes" (From my readings I believe that is what they prefer to be called) and the exquisitely priced fandanglery they prefer to wear on their futuristic heads.
      The evil that JavaScript will unleash upon their world will be terrifying and its effects widespread - the limited power of their Glasshole devices will be naught a match for the mighty appetite of the beast that is known as JS.
      Mark my words, in the not so distant future we will pine for the social lubricant that is the joyful, carefree bubbling of the typical Glasshole, with their shiny rimmed brand of invasive humour and the charmingly distracted way they drive about town.

      It is truly, truly a sad day.

      I think we should all have a moments silence out of respect for our beloved Glassholes.

    5. Re:Headache by Mashiki · · Score: 5, Funny

      First two things showing up on Google glass after JS showing up:
      Popup ads.
      The second? UR PENIS TOO SMALL! VIAGRA CHEAP!!!!111!

      --
      Om, nomnomnom...
    6. Re:Headache by Anonymous Coward · · Score: 0

      I think we should all have a moments silence out of respect for our beloved Glassholes.

      So this is another routinely scheduled Scroogling by Microsoft's pet sockpuppet colineagle?

      Carry on, 'Softies. Enjoy your two minutes of hate.

    7. Re:Headache by e133tc1pher · · Score: 2

      No joke, that was seriously tedious and took me hours to get right (https://www.youtube.com/watch?v=QSn6s3DPTSg). The real point of the video was to show that we made a cheap eye tracker ($25) add-on for Glass along with a better pupil detection algorithm than was previously available (https://github.com/wearscript/wearscript-eyetracking). We're working with accessibility labs to use it as an input device for users who can't use the touchpad on Glass. The goal is to make it widely available for people to hack on so that everyone benefits as opposed to $10k proprietary systems that have bad support for modern software/devices. Adding in Mario was just an easy point of reference, everyone knows the relative complexity of that as opposed to a synthetic test.

    8. Re:Headache by MrBigInThePants · · Score: 1

      I would respond to you post but it is rather incomprehensible.

      I don't like MS at all. It is highly likely that I did not like MS before you did. (and that I initially liked it before you also when it was not what it is today)

      And the only hate I see here is in your post...

    9. Re:Headache by Opportunist · · Score: 1

      Well, in this day and age, you don't need to love MS to hate Google, ya know...

      I'm strictly neutral on the issue. I think both have turned into something we'd be better off without.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    10. Re:Headache by LifesABeach · · Score: 1

      It's a little light on detail. It's a shame no one recorded your work, maybe using the Glass ware? You might want to talk to someone in the Signing community, your interface might "pick up" some "pointers" there.

  2. Wow, that opens a up a whole world of dontgiveadam by BrendaEM · · Score: 3, Funny

    Flash will be next.

    --
    https://www.youtube.com/c/BrendaEM
  3. MIT researchers? by oneiros27 · · Score: 3, Informative

    ... Brandyn White, a PhD candidate at the University of Maryland, and Scott Greenberg, a PhD candidate at MIT ...

    At least this time we can blame Network World for the crappy headline, and not someone here at Slashdot. We can just blame them for not bothering to read the summary, much less the article.

    --
    Build it, and they will come^Hplain.
    1. Re:MIT researchers? by godrik · · Score: 1

      Welcome to the world of PR and marketing. If there is any kind of involvement from a famous party, no matter how small the involvement, the famous party always gets the credit. MIT is more famous than University of Maryland so they get the credit.

      Note that I have no clue how much each person contributed to this particular project. But if it is done by somebody famous (or at a famous entity), it becomes great, if you had done the same thing, nobody would talk about it.

    2. Re:MIT researchers? by Anonymous Coward · · Score: 0

      It's fucking annoying how much press MIT gets, though. A professor at Maryland could cure AIDS, and some undergrads at MIT could inject the cure into a patient, and the headline would still be talking about how bright the MIT undergrads are.

    3. Re:MIT researchers? by MBC1977 · · Score: 1

      Not saying your sentiment is wrong, but most people know about the tech wizards at MIT. Most people know Maryland for its college basketball team. Best way I could see to counter this effect is to not involve the people at MIT when a new discovery is made / published.

      --
      Regards,

      MBC1977,
    4. Re:MIT researchers? by e133tc1pher · · Score: 1

      Brandyn here, it can be annoying but in this instance MIT sponsored the event (it was at the Media Lab) so it's an easy mistake. No harm, anyone who looks into it knows that I'm at Maryland.

    5. Re:MIT researchers? by Missing.Matter · · Score: 1

      In academia, most of the actual research is done by PhD candidates. The PIs get the funding and then disappear from the project for three years until it's time to get more funding.

  4. Somebody tell them by rmdingler · · Score: 1

    Javascript should not be received Pig in the 'Poke style.

    --
    Happiness in intelligent people is the rarest thing I know.

    Ernest Hemingway

  5. Glasshole by Anonymous Coward · · Score: 0

    Yeah, but ultimately you're still a Glasshole.

    1. Re:Glasshole by TomGreenhaw · · Score: 0

      It's a shame that an experiment for wearable technology has been stigmatized by ignorant misconceptions about the technology and people experimenting with it.

      --
      Greed is the root of all evil.
    2. Re:Glasshole by Anonymous Coward · · Score: 1, Interesting

      What misconcenptions or ignorance? Google Glass users are predominately self-obsessed assholes. Maybe you Google fangirls need to get your panties untwisted just because not all of us want to deepthroat Sergey Brin like you?

    3. Re:Glasshole by Anonymous Coward · · Score: 0

      wearable technology has been stigmatized by ignorant misconceptions

      That's not a real stigmata though, it's just the Microsofties doing their Scroogling. They need their two minutes of hate.

    4. Re:Glasshole by BitZtream · · Score: 0

      Yes, its a shame that the predictable result of an over priced waste of materials is that only pretentious pricks are the only one who use it.

      Its of course also entirely predictable.

      I do know at least 2 people with Google Glass that don't fall into that category strictly ... but they pretty much thing Google Glass is retarded since they used it for a few days.

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    5. Re:Glasshole by Anonymous Coward · · Score: 0

      Looks like the Google Defense Force's fangirls are out in full force.

    6. Re:Glasshole by Opportunist · · Score: 1

      Actually, I was looking forward to getting affordable HMDs. The idea that they will just very likely not be "mine" at all is kinda discouraging, though.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    7. Re:Glasshole by tapspace · · Score: 1

      The idea that they will just very likely not be "mine" at all is kinda discouraging, though.

      That should be completely revolting to you.

  6. Now it's doomed by Kardos · · Score: 2

    So how long is it going to be before someone writes some sort of java script that blinds the user?

    1. Re:Now it's doomed by Anonymous Coward · · Score: 5, Funny

      So how long is it going to be before someone writes some sort of java script that blinds the user?

      There are other kinds?

    2. Re:Now it's doomed by Opportunist · · Score: 1

      Begone and don't tempt me, Satan!

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  7. Re:Wow, that opens a up a whole world of dontgivea by Hsien-Ko · · Score: 1, Funny

    I don't think anyone would want to flash a glasshole...

  8. Re:Wow, that opens a up a whole world of dontgivea by Anonymous Coward · · Score: 0
    This is yet another colinneagle-submitted Scroogling.

    Go back to Redmond and play with your Bings, luddites.

  9. why all the javascript hate? by Anonymous Coward · · Score: 0

    It's honestly one of my favorite languages.

    1. Re:why all the javascript hate? by freeze128 · · Score: 3, Informative

      Because it's responsible for all the things people hate about web pages. Pop-up ads, pop under ads, floating ads, flash ads, flash exploits, java exploits....

      A better question would be: What has javascript done that's GOOD?

    2. Re:why all the javascript hate? by antifoidulus · · Score: 1

      Because it's responsible for all the things people hate about web pages. Pop-up ads, pop under ads, floating ads, flash ads, flash exploits, java exploits....

      Um...what? How is Javascript even remotely implicated in flash/java applet exploits?

    3. Re:why all the javascript hate? by Anonymous Coward · · Score: 0

      Fair enough. I like it because it allows for tons more flexibility in a webpage - but I agree I especially hate those "layered" ads. Thanks

    4. Re:why all the javascript hate? by raymorris · · Score: 2

      Often, the vulnerability will be in a Java or Flash applet and the exploit will be via JavaScript. A vulnerable applet just sits there being vulnerable until a bad guy takes control of it via script. That's why this setting exists:

      1. Open Internet Explorer.

      2. Click the Tools menu and then click Internet Options.

      3. Click the Security tab, click the Internet icon and then click Custom Level.

      4. Scroll down to the Scripting section. Under Active scripting, select the Enable option. Then, under Scripting of Java applets, select Enable. Click OK.

      5. Surf for 20 twenty minutes.

      6. Restore from backup because you've probably been pownd.

    5. Re:why all the javascript hate? by Opportunist · · Score: 1

      Mine too!

      But then again, I'm in IT-Security. I endearingly call it "part of the job security package".

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    6. Re:why all the javascript hate? by Anonymous Coward · · Score: 0

      How is the Javascript *language* responsible for these? Shipping a vulnerable JS interpreter and/or developing annoying ads using that technology causes all those problems. The language itself is actually very good and quite clean.

    7. Re:why all the javascript hate? by cascadingstylesheet · · Score: 2

      Because it's responsible for all the things people hate about web pages. Pop-up ads, pop under ads, floating ads, flash ads, flash exploits, java exploits.... A better question would be: What has javascript done that's GOOD?

      Says the man who's never used jQuery ... you can't be serious.

      Yes, with great power comes great responsibility. But don't throw the baby out with the bathwater. (And I have more cliches where those came from!)

    8. Re:why all the javascript hate? by Anonymous Coward · · Score: 0

      Because it's responsible for all the things people hate about web pages.

      Yet for some bizarre reason, people continue to surf with it enabled.

    9. Re:why all the javascript hate? by Ryanrule · · Score: 1

      Notice how this whole pages doesnt need to reload every time you click something?

    10. Re:why all the javascript hate? by Anonymous Coward · · Score: 0

      And that's JavaScript's fault?

      No matter the tools, they will be used in good and bad ways.

    11. Re:why all the javascript hate? by Anonymous Coward · · Score: 1

      Says someone who assumes that a supposed misuse of JavaScript equates to faulty language.

    12. Re:why all the javascript hate? by Anonymous Coward · · Score: 0

      No, the BROWSER is what is responsible. Put any other language in it's place and you'd still have the same holes.

  10. Dork^2 by PPH · · Score: 1

    We attach something to the thing we attached to our glasses.

    --
    Have gnu, will travel.
  11. Ph.D.? by poached · · Score: 1

    I didn't know soldering some electronics together and porting a language to a platform is Ph.D. level work.

    1. Re:Ph.D.? by e133tc1pher · · Score: 5, Interesting

      I didn't know soldering some electronics together and porting a language to a platform is Ph.D. level work.

      Agreed. This is my research http://scholar.google.com/cita... . WearScript is a tool that helps us in our current research (which is an extension of this https://www.youtube.com/watch?... ). When you do research you can either use tools that already exist or you can take a detour and invest in making better tools so you can do more effective research, that's what this is.

    2. Re:Ph.D.? by Opportunist · · Score: 1

      Well, now maybe the PISA results start to make sense?

      Give it another 20 years and you'll probably get your Ph.D. for being able to assemble a computer (and of course write a 100+ page essay about it).

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  12. The lengths we go to by djhaskin987 · · Score: 2

    just to play super mario.

  13. I'm betting on Python Eyes by CrowdedBrainzzzsand9 · · Score: 1

    I'm betting on Python Eyes, O-O=====, object-oriented mayhem.

  14. "The Glass - it does nothing!" by Applehu+Akbar · · Score: 1

    With Javascript on Glass, can malware be far behind? Would affected users be stumbling around blinded? Would IT-conscious Glassholes get tired of having to say "OK, Glass: Yes to the umpteenth fucking Java update dialog today!"

    1. Re:"The Glass - it does nothing!" by Opportunist · · Score: 1

      Well, considering we just had a story today how texting is one of the leading causes of accidents, I dare predict that Glass users won't really need JS to stumble around blindly...

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  15. Re:Wow, that opens a up a whole world of dontgivea by Anonymous Coward · · Score: 0

    It's the glass wearers that will be flashing.

  16. Lawsuits acommin by Anonymous Coward · · Score: 0

    Like future Repetitive Stress Disorder for peoples fingers working their texting devices the Eye Strain that will result from these devices will be making a bunch of lawyers very rich.

    Imagine having to move your eyes very precisiely for hours at a time for these things?

    Fun Fun Fun...

  17. Anthony David by Anonymous Coward · · Score: 0

    Google Glass is great for street photography and journalism as I can secretly take pictures of strangers without their permission in public places and publish or sell the photos for fine art and photojournalism, so for me Google Glass and its camera is great for my freedom of speech and it will help me educate and beautify the world with my photographs. After all, nobody should have privacy in public.

  18. Sofia Berati by Anonymous Coward · · Score: 0

    Google Glass is great for street photography and journalism. It allows me to take photos of people without their permission.

  19. Now we need to protect ourselves against by Anonymous Coward · · Score: 0

    cross-eyed scripting attacks?

  20. Re:Wow, that opens a up a whole world of dontgivea by Anonymous Coward · · Score: 0

    Flash will be next.

    Ah, young webmaster,
    Java leads to Javascript.
    Javascript leads to Flash.
    Flash leads to ... suffering.

  21. Agreed 110% - it's shit... apk by Anonymous Coward · · Score: 0

    The "webboys" made the SAME MISTAKE as MS with macros allowing script into documents - you do THAT? The "trash comes blowing in the door from outside" (ala malicious script): We were FAR BETTER OFF doing CGIBins/WinCGI server-side, in a TRUE Client-Server fashion (just getting a resultset back from server side) for security if anything @ all.

    APK

    P.S.=> Any time you "take the easy way out" & "make it easier for the masses"? THIS is the result... apk

    1. Re:Agreed 110% - it's shit... apk by Anonymous Coward · · Score: 0

      Go ahead and do your UI and various other event-specific functionality customizations on the server... Be. My. Guest. We'll see how far you get.

    2. Re:Agreed 110% - it's shit... apk by Anonymous Coward · · Score: 0

      Additionally: WHY THE HELL would I put business logic into a front end (in a clientserver applicaiton, a REAL one, not a webchump parody of one, lol...) for?

      That is security violation #1 doing that! Front ends (be they REAL programs, not webcrap) or webcrap, should NEVER, EVER have business logic in them, OR their links they create... it opens doors for trouble (like SQLInjection etc.)

      (Which is WHY you "webchumps"' shit is SO chock full of holes in security, & so much so, it's not even funny... fact, period!)

      APK

      P.S.=> Webchumps - making mistakes those of us from the clientserver world KNEW OF decades ago, & corrected for... lol! apk

  22. Terrible idea. by Anonymous Coward · · Score: 0

    Terrible idea. What a waste of battery, due to Javascript's inefficiency. (The same applies to the Web -- the number of petawatt hours wasted per year executing Javascript is mind-boggling.)

  23. Re:Wow, that opens a up a whole world of dontgivea by ghmh · · Score: 1

    Now you can use your eyeballs to try and get Mario to punch the monkey!

  24. Less malicious script = farther by Anonymous Coward · · Score: 0

    Plus, as far as what you're saying? ASP.NET seems to do the job just fine on THAT account (& I've always thought of it as an IMPROVED version of ISAPI dlls running server side, albeit minus their tendency to leak ram that is, due to garbage cleanup).

    * Bottom-line on "webboy" development (it's for chumps & weaklings anyhow) - too many "moving parts" b.s. is involved (sites accessing shit from WHO KNOWS how many 100's of other sites to top it all off).

    APK

    P.S.=> "Web Development" (doesn't even COUNT as far as I am concerned), is for noobz & squids, vs. actual applicaiton development (it's why the less skilled types go for it, it's all they can manage to do, lol, point-blank)... apk

  25. PISA == Flawed test used only to bash US. by sethstorm · · Score: 1

    The only way that PISA results can ever make sense is if you understand their primary flaw: they do not control for admissions standards and thus penalize more open admission systems (like the US), versus more closed admissions systems (about everywhere else, namely Europe and Asia).

    As for assembling a computer from the parts up, it would require a lot more than one might think.

    --
    Twitter supports and protects racists - by smearing their critics with the "Hate Speech" label.
    1. Re:PISA == Flawed test used only to bash US. by Opportunist · · Score: 1

      Well, technically the admission standards in the US are not more permissive, just different. Brains don't matter, just money does.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    2. Re:PISA == Flawed test used only to bash US. by sethstorm · · Score: 1

      Well, technically the admission standards in the US are not more permissive, just different. Brains don't matter, just money does.

      Some of the features of the US system that make it more permissive:
        Highly permeable education tracks - moving between each is performance based(and sometimes not even that), not specifically test-based.
        Three named tracks exist(Honors/AP,Regular,Remedial), but all provide the same opportunity to access post-secondary education.
        Post-secondary options provide the same opportunity to all participants - a 4 year degree.

      In short, one test score at one point in your life won't determine the rest of your life, unlike about every other nation in the world.

      --
      Twitter supports and protects racists - by smearing their critics with the "Hate Speech" label.
  26. Nice, but useless until available for all. by sethstorm · · Score: 1

    When Glass is available in a full and free form for the Rest of Us, then maybe some of this might be of good use. It seems like about every interesting use is being removed from it until it is turned into something that pales in comparison to the developer units.

    Of course, some Glasshole (or a few of them) would take that as a personal offense instead of responding to the top shortcoming of Glass - lack of general availability.

    --
    Twitter supports and protects racists - by smearing their critics with the "Hate Speech" label.