As Spring draws nearer in the northern hemisphere, so too does this year’s Google I/O. Earlier today, we announced that registration for this year’s event will open on March 13th at 7:00 AM PDT. Tickets are in high demand, so be sure to mark your calendar! Of course, we’ll continue to offer live streaming and recordings of many sessions as we’ve done in the past for those who can’t join us at Moscone Center (and for attendees who can’t be in two sessions at once).
Another thing to mark on your calendar is the upcoming launch of the SpaceX Dragon spacecraft next Friday, March 1st. In the early hours of the morning (much earlier than Fridaygrams get posted), SpaceX will host a live webcast covering the launch. What’s more, they might just answer your question! Head over to their Google+ page for details on how to submit that burning question via YouTube.
If you find yourself scratching your head after looking at your calendar and wondering where this bizarre time-telling scheme ever came from, fear not! One YouTube user offers us “A Short History of the Modern Calendar”. It’s still annoying to deal with this mess of dates when coding, but at least it wasn’t devised purely to torment us. Why isn’t there an SI unit of month?
Once per 7-day week, Fridaygram puts away the compiler and brings you the latest in fun science and other nerd stuff. Occasionally, we meander through recorded history as well. “Those who cannot remember the past are condemned to GOTO 10.”
(Cross-posted with the App Engine and Enterprise Blogs)
Support is as important as product features when choosing a platform for your applications. And let’s face it, sometimes we all need a bit of help. No matter which Google Cloud Platform services you are using — App Engine, Compute Engine, Cloud Storage, Cloud SQL, BigQuery, etc. — or what time of day, you should be able to get the answers you need. While you can go to Stack Overflow or Google Groups, we realize some of you may need 24x7 coverage, phone support or direct access to a Technical Account Manager team.
To meet your support requirements, we’re introducing a comprehensive collection of support packages for services on Google Cloud Platform, so you can decide what level best fits your needs:
Sign up or click here to find out more information about the new Google Cloud Platform support options.
Brett McCully is the Manager of the Google Cloud Platform Support team and is currently based in Seattle.
Posted by Ashleigh Rentz, Editor Emerita
public static void invokeExample() { String s; MethodType mt; MethodHandle mh; MethodHandles.Lookup lookup = MethodHandles.lookup(); MethodType mt = MethodType.methodType(String.class, char.class, char.class); MethodHandle mh = lookup.findVirtual(String.class, "replace", mt); s = (String) mh.invokeExact("App Engine Java 6 runtime",'6','7'); System.out.println(s); }
public static void viewTable(Connection con, String query) throws SQLException { try ( Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(query) ) { while (rs.next()) { // process results // } } catch (SQLException e) { // con resource is auto-closed, no need to do anything here! // } }
Map<String, List<String>> myMap = new HashMap<>();
Map<String, List<String>> myMap = new HashMap<String, List<String>>();
public class SuperHeroes { public List listSuperHeroes() { List list = new ArrayList(); list.add(new SuperHero ("Champion of the Obvious", "Brad Abrams")); list.add(new SuperHero ("Mr. Justice", "Chris Ramsdale")); return list; } }
@Api(name = "superheroes", version = "v1") public class SuperHeroesV1 { ... }
$ curl http://localhost:8888/_ah/api/superheroes/v1/superheroes { "items": [ { "knownAs" : "Champion of the Obvious", "realName" : "Brad Abrams" }, { "knownAs" : "Mr. Justice", "realName" : "Chris Ramsdale" }
Real result = superheroes.list().execute();
GTLQuerySuperHeroesV1 *query = [GTLQuerySuperHeroesV1 queryForSuperHeroesList]; [service executeQuery:query completionHandler:^(GTLServiceTicket *ticket, GTLSuperHeroes *object, NSError *error) { NSArray *items = [object items]; }];
// ... var ROOT = 'https://' + window.location.host + '/_ah/api'; gapi.client.load('superheroes', 'v1', loadSuperheroesCallback, ROOT); // Get the list of superheroes gapi.client.superheroes.superheroes.list().execute(function(resp) { displaySuperheroesList(resp); });
getUserMedia
'They're surprisingly motivated, excited to contribute, genuinely interested, and productive to boot. Initial estimates indicate we may get years worth of work done and one student has already earned commit status, two others are getting close.' -- Sean Morrison, BRL-CAD Organization Administrator and Mentor, two weeks after the start of the contest
‘One of my favorite quotes, one you probably have seen before, from a student: "this is my first patch to an open source project"’ -- Walter Bender, Sugar Labs Organization Administrator and Mentor
It’s hard to overlook: flu season is upon us with a vengeance this winter, particularly in the United States and Japan. Once again, Google.org’s Flu Trends tabulates the numbers that paint the map deep red and puts the historical data at your fingertips to prove that yes, this is worse than you remember it being last year. Take care of your health, drink lots of fluids, and consider taking a holiday to the southern hemisphere for some sweet summer days if you aren’t sick... The Australian waterfront is a beautiful shade of light green on the flu map.
If Australia isn’t far enough away from the germs and viruses (does anyone still use “virii” for the plural?), how about an excursion into near-earth orbit or beyond? Although NASA isn’t doing any human spaceflights at present, the agency is planning for the future by taking a second look at the past. Engineers of a new generation are test-firing a 40 year old engine built for the Saturn V rockets used during the Apollo missions. It’s part of the early planning for future heavy-lift rockets.
We hope you’re feeling well, but if you’re sick at home this weekend, spend some time recuperating in front of the TV with the Computer History Museum channel on YouTube. Our down-the-street neighbours often invite Silicon Valley luminaries to speak about their work and their lives. Among them, our own Eric Schmidt was there last November to tell a few stories of Google’s early days and give some insight into where the web is taking us. Get well soon!
Each week, Fridaygram nurses you back to health with a dose of data and fun for your weekend enjoyment. Fridaygram is not a doctor, please consult actual medical professionals if you are ill. Ashleigh is our blog’s Editor Emerita and fills in when Scott takes some well-deserved time off. (No, he’s not out sick today.)