Dec 12, 2013

Spring @RequestMethod Double Slashes

Ran into a painful issue with Spring-3.0.5's @RequestMethod not handling double slashes. It absorbs single slashes in urls as well!

package com.jostens.spring3template.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Test of spring's handling of double slashes
 * 
 * @see http://webmasters.stackexchange.com/questions/8354/what-does-the-double-slash-mean-in-urls
 */
@Controller
public class SlashTestController {
 @RequestMapping(value = "/productDetail/{param1}/{param2}/{param3}", method = RequestMethod.GET)
 @ResponseBody
 public String slashTest1(HttpServletRequest request,
   @PathVariable String param1, @PathVariable String param2,
   @PathVariable String param3) throws Exception {
  return "slashTest1\n"
   + request.getServletPath() + "\n"
   + "param1[" + param1 + "]\n" + "param2[" + param2 + "]\n" + "param3[" + param3 + "]\n";
 }

 @RequestMapping(value = "/productDetail/{param1}//{param3}", method = RequestMethod.GET)
 @ResponseBody
 public String slashTest2(HttpServletRequest request,
   @PathVariable String param1, @PathVariable String param3)
   throws Exception {
  String param2 = "-";
  return "slashTest2\n"
   + request.getServletPath() + "\n"
   + "param1[" + param1 + "]\n" + "param2[" + param2 + "]\n" + "param3[" + param3 + "]\n";
 }

 @RequestMapping(value = "/productDetail/{param1}/{param2}", method = RequestMethod.GET)
 @ResponseBody
 public String slashTest3(HttpServletRequest request,
   @PathVariable String param1, @PathVariable String param2)
   throws Exception {
  return "slashTest3\n"
   + request.getServletPath() + "\n"
   + "param1[" + param1 + "]\n" + "param2[" + param2 + "]\n";
 }
}

Logged as SPR-11220 RequestMapping maps double-slashes to single slashes.

Orgel Klang Elektro Tanz

I like the fonts used on Orgel Klang Elektro Tanz
Maria Alternate & Cg Triplet Is Maria the same as Maria Alternate? Nice Alternatives to helvetica.

Dec 2, 2013

Ross' Soviet Poster

«Чтобы строить — надо знать. Чтобы знать — надо учиться»

From here. Not really bold or angular enough to be considered Konstructivism. Yet a good engineering education statement, "To build, you need to know. To know you need to study."

Nov 30, 2013

It's on Cruise Control

Anchorman 2 stole this line from Bloom County, the original strip is here.

Nov 28, 2013

Spock in Eclipse

I was having to run spock from the command line (Cygwin), until I fixed the CatalogSpock project using this article as reference. Not sure if it was

./gradlew cleanEclipse eclipse
from kousnit's block, or tweaking the pom.xml as per mrhaki's blog

Incidentally Mr. Haki has two interesting books groovy and gradle:

Nov 7, 2013

Antechamber font

Cool font Antechamber by Alex Varanese

Nov 4, 2013

Recommender Systems

Ran into this toolkit, lenskit, put out by Michael Ekstrand, who is one of the instructors of the Recommender Systems course.

TIL: Galois Lattices

Galois Lattices

jquery script to gather h1-h6 header tag text from a web page

var ht={};
ht["title"] = $("title").text().trim();
ht["description"] = $("meta[name=description]").attr("content").trim();
ht["keywords"] = $("meta[name=keywords]").attr("content").trim();

var hs=[];
for (var i=0;i<6;i++) {
  hs[i]="h"+(i+1);
  ta=[];
  $(hs[i]).each(function() {
    var t = $(this).text().trim();
    ta.push(t);
  });
  ht[hs[i]] = ta.join(",");
}
console.log(ht);

Nov 1, 2013

Wicked

For Quincy's birthday, we went to Wicked at the Orpheum in Minneapolis, MN. It is based on the book, Wicked, by Gregory Maguire. I liked the neon and steampunk like set. It reminded me of a Russian Constructivism play I saw once in Minneapolis with exposed mechanisms as part of the backdrop.
Photos from Jenn Gambatese's site. Purse??? Videos:

Popular

Defying Gravity

Dancing through life - what I like to call the Mentos song

For Good

More Jenn Gambatese from all shook up

Oct 29, 2013

Enhance

* - Enhance

Community - Enhance

Oct 23, 2013

Oct 16, 2013

Banff world tour

Saw this interesting exploration video about the Banff film festival at the Midwest Mountaineering Adventure Expo site.

North Face: skiing in Kyrgystan

Oct 14, 2013

MongoDB for Java Week Two

One of the students, Daniel Hodgin, created this Cheat sheet for the mongo command line.

Syllabus

Suggestion from in the forum: Create a MONGODB_HOME environment variable and place it in the CLASSPATH and PATH: %MONGODB_HOME%/bin.

Vista open cmd window here

I used to use the WindowsXP Power tool to get this, I never realized this is the procedure for how you do the same in Vista.

Oct 11, 2013

Tchaikovsky Storm vs. Tempest

The Storm

The Tempest

The Tempest - animation

Thievery Corporation

Take my soul

Resolution

Oct 9, 2013

Free online courses

Here are the courses I signed up for this fall:

Oct 8, 2013

No sound at startup of each video on youtube

Irritating, if you're trying to watch video courses. It's been there a week?

Sep 11, 2013

Shokunin

Jiro Dreams of Sushi an excellent documentary. Jiro has a small restaurant in terms of size but it focuses on quality not quantity. Interesting to see their apprenticeship. Chefs practice for ten years. Every ingredient is scrutinized, tested. Some meats require lengthy marinating or massaging. From the rolls to the rice, there is an art to how each portion of the meal is prepared. Much like manufacturing process, they scrutinize their portions and ratios. From the purchase of the fish from the market, to the preparation, and eventually the display, QA/QC is very important to the entire process. They continuously improve upon their methods. Even though they thought everything that could be done had been done after WWII, Jiro was still creating new dishes. He would wake from dreaming with a new idea, which is when you try to

Sep 7, 2013

Android Maps Setup

Some notes from today

  1. Maps
  2. Requires play
  3. Android 4 required to run maps sample project:
  4. Boost memory in windows above 768MB: config.ini fix
  5. How to set up sample project so it really runs: Stack overflow
  6. There there's this issue: Google Play services out of date. Requires 3225100 but found 3136130

Sep 3, 2013

The Invisibles

TIL The Invisibles stars a young Richard Dawson.

Open Graph protocol library for Java

I wasn't that impressed with the Java offerings out there that I could find for the Open Graph protocol.

I need to investigate these, could they have some shareable libraries?

Unsatisfied, I started a project at github: ogp-java. It does not handle multiple fields yet (2 image tags for instance).

Sep 1, 2013

General nanosystems

According to this article, General Nanosystems closed July 31, 2013. Sorry to see them go, they were awesome

Aug 27, 2013

Milk Inc. - Walk on Water

Preston wanted the sheet music to this.

UK Version

German Version

Acoustic - Tsunami

Acoustic 1

GeoPaddler

Added some pages to Guesttime.com this weekend for tracking geolocation, working on the complementary system for other OS, at geopaddler (SVN)

I've seen some interesting map applications, but none that combine the features I sought:

  • Grouping of geo/time data

  • Secure sharing of geo/time data

  • Sharing cautions, waypoints

  • Distance/velocity measurement

How many lights does it take to light up a roundabout

link to the truck crash last year. map of streetlights. Map to light pollution

How Did You Know (77strings)-Kurtis Mantronik pres. Chamonix

Official Video

My take 10/04/2009

Aug 23, 2013

Grammatically fixing songs

  • U2: I still haven't found that for which I'm looking.
  • Salt 'n Pepa: Push it. Push it real well.
  • Simon and Garfunkel: Havimg seen Julio and me down by the school yard.
  • Van Halen: Because that's of what dreams are made.

Jul 19, 2013

TIL: Pergola

A Pergola would be nice in the backyard (or over a driveway).

Jul 18, 2013

Reading Finding Serenity

Nice collection of essays, in Finding Serenity however no mention of Starhunter yet, the series I believe Joss Whedon based a number of the concepts in Firefly upon.

Jul 7, 2013

ST:TNG Geordi Connections

Christy Henshaw looks like, but is not the same actress as Dr. Leah Brahms. Julie Warner plays the former, and Susan Gibney plays the latter. Though Susan Gibney didn't play Christy, she did later play a DS9 character, Erika Benteen.

May 29, 2013

TIL: Kerbal Space Program

Kerbal space program is a program that let's you simulate rockets, satellites, stations, vehicles. Interesting compared to Space MAX/ shuttle station programs of the day.

Staging analysis

Munar Footage

A Cake Odyssey

May 28, 2013

Nice JS Math package

Saw Mathjs last week when researching some math in js libraries. Looks pretty nice.

May 24, 2013

Ruby/Heroku/Twilio App

Twilio Ruby App

References

Two Problems

From Jeff B at work:

May 20, 2013

Brain games careers

In brain games, they introduce Apollo Robbins as a Deception Specialist.

May 19, 2013

Studio C

Blind date

Thesis Defense

May 7, 2013

Vox

I love this font, Vox, and Vox round.

May 6, 2013

Selectivizr and CSS3 Media Queries

Great article summarizing the status quo for media query workarounds for IE.

As is typical in the web, there is no end-all solution:

  • Respond only supports min and max width and print/screen media types, and does not support em width selectors.
  • css3-mediaqueries-js doesn't support the media attribute of link and style tags.
  • Selectivizr supports import but not style tags.

It seems like there is a conflict, between selectivizr and css3mediaqueries.

This article looks at a solution for getting over that issue with respond and selectivizr.

Here is a discussion of the issue.

This discussion is closer to what I need but still no official solution.

Apr 30, 2013

Vection

I think that would be interesting to play with Vection in video games. Vection is the perception of self-motion induced by visual stimuli.

4 am sirens

Usually it's pretty quiet out in the country, except for a passing train horn, and the wind pressing on the siding. Woke up to hear a lot of sirens in the morning, must have been this fire at the elementary school. I just hope it's not really arson. Who is that messed up? It's difficult enough for local governments to get funding for education as it is.

Apr 22, 2013

Brain Games

Love this show, Brain Games, especially the "gentleman thief" Apollo Robbins. To test one of the visual phenomena, I created this quick canvas experiment, braingame01. The flashing white to black dots continue at the same rate, but when a border is added, they appear to alternate.

Apr 21, 2013

Github: Calendar Service

Calendar Service is a github Jersey/java project. In it, I'm making a webservice for serving up links for iCalendar documents. I'm thinking of using iCal4j as the API.

Star Trek: Disaster

Similar but not exactly like the script, "Then I shall appoint you my executive officer in charge of radishes."

However, we never find out what Marissa's science fair project is.

Blue Angels

The Blue Angels and Thunderbirds summer appearances might be cancelled due to sequestration. What they inspire in terms of skill and teamwork is awe-inspiring and I wish that Congress would make the decisions necessary to keep the government working in a steady-state, for the programs that really matter, create, build, and inspire.

Van Halen - Dreams Douglas A-4F Skyhawk II version

Dreams F/A-18 version

FC Kahuna - Hayling - "Don't think about all those things you fear. Just be glad to be here."

The Taste of Tea

Borrowed The Taste of Tea from the library this weekend. Interesting, long movie that only captures a little of everyone's characters, but very relaxing view of life in the countryside in rural Japan.

The Haruno family is an interesting group of individuals. The littlest girl, Sachiko keeps viewing massive versions of herself, daydreaming, such as seeing a giant version of her head in the back of the classroom. There are other odd interactions such as bumping into a couple of costumed characters in a train, a ghost Yakuza, a man buried alive in mud, and a throwdown fight between the sister and her co-worker.

They all have life-changing conflicts and face important changes during this time. The little girl has trouble with gymnastics. The young boy wants to make a girlfriend. The grandfather wants to create pop music. The mother returns to artistry in anime. The uncle readdresses a relationship he skipped out on earlier.

At the end it feels like a life tale - sunsets are beautiful, birdsongs are soothing, even if life seems difficult, it's not really that bad (except for the couple Yakuza related scenes).

Apr 19, 2013

Apr 14, 2013

Success Kid

The Chip

Picked up The Chip by T. R. Reid at a Hudson bookstore. Interesting historical, limited technical look at the steps leading up to the invention of the silicon processor chip. Before each of several inventions several things happened, the people had worked on similar more fundamental problems elsewhere, so they were versed in what had been attempted and what to stay away from, they were motivated by engineering limitations of cost, numbers, and size, and they had a gap of time to work on the problem "in the lab".

Apr 10, 2013

Blakes 7 on SyFy?

A new version of Blakes 7 may be arriving soon. Hope it is interesting. I loved the original.

Apr 4, 2013

Mar 31, 2013

Steampunk Cards

Saw these Steampunk playing cards, very slick, only $5.95.

Mar 30, 2013

Sylver

Wikipedia has a note that Silvy De Bie left in February, but there is no reference to this yet on the Sylver website. It's unfortunate, I really liked their music. Probably as they got older, wouldn't it be nice to move on from music and fame and live a little more normal life?

Mar 29, 2013

Vegetable Soup - Outerscope

Used to watch this show as a kid. Messed up but I think it was the first sci fi I was exposed to. Plenty of examples though of labeling in children's programs, "Wierdos".

Cranes

Here comes the future...

Future Song

Zen is Emmet

According to this article, Zen coding is now Emmet. Here is an Emmet plugin for Eclipse

Mar 24, 2013

Javascript end loop wrapper

I was taking an HTML5 Game Development course and saw a neat trick for wrapping at the end of a sequence:

index = index + 1 % array.length;
It saves 3 lines of code, the usual:
index++
if (index > array.length) {
index = 0;
}

Mar 21, 2013

Arc reactor

Here is a DIY visual description on how to make a low cost (non-functional) Arc reactor like Iron Man's stunt double probably wears.

Chrome DevTools Course

codeschool

Mar 20, 2013

Orbital

My son and I have started playing Orbit War from Steve Jackson Games this week. Here is my physics 2d engine experimentation somewhat related to this: orbital.

Mar 17, 2013

Space Madness

Maybe something good maybe something bad.

Mar 11, 2013

Robo Hamster

Picked up an Arduino Shield last week and a Robo Hamster. Robo is short for Roborovski. He seems pretty smart though a little messy. It's interesting a golf ball sized creature can do so much.

Mar 3, 2013

Backbone

Started taking a backbone course at http://backbone.codeschool.com/

Mar 1, 2013

Feb 25, 2013

Skyfall

What it truly means.

Feb 17, 2013

Summer Wars

Saw this will be at minicon. A lot of the movies listed there look pretty interesting.

Con of the North 2012 - Day Two

Played Nanuk in the morning. Seems the odds are typically with the doomers in that game. Played a campaign as a Loremaster Faen in an Unearthed Arcana, Pathfinder hybrid. Picked up Imperium, first edition, a GDW space game. Looks like Dylan is still sick, so I'm staying home today from the con.

Feb 15, 2013

Con of the North 2012 - Day One

Played 3 games today, 7 wonders, Blue Planet - a FASA RPG, and Castle Panic, all of which were fun in their own right.

Redlight: Housed up piano chords takin' me back to the 90s


Lost in Love



Get out of my head

Feb 9, 2013

Zedd and Foxes - Clarity

I wonder if they obtained copyright permission from Egypt to use all the pyramids.

JT Holodeck

Feb 3, 2013

Jan 29, 2013

Curve

Coming up roses

Jan 28, 2013

Little Free Library

I first saw one of these Little Free Libraries at the Hospital/clinic in Hudson. This is a neat idea. I remember our American History course had this idea though in our room at John F. Kennedy Senior High in Bloomington, MN. I have a books saved up that I think I'll drop off at the one in Hudson. The motto is, "Give a book, return a book".

Jan 27, 2013

Orchestral Trance

pvd for an angel

Dune (Happy Hardcore)

Million miles from home

Dark side of the moon

Are you ready to fly (based on Rozwalla?)

Jan 26, 2013

SpeedTest.net

Work

Home

Home, March

Jan 21, 2013

Jan 16, 2013

Counting songs

Thievery Corporation - Warning Shots: "A one to the two and three and..."

Atmosphere - Puppets: "One for the bass two for the drums..."

Jan 6, 2013

Loud Commercial Act

Now with the loud commercial act in place, somehow there should be a way to measure RMS, average decibles, submission to the FCC. Seriously it's gotten worse not better since the law is passed. Does every cable station have a waiver?