söndag 22 juli 2012

fredag 20 juli 2012

Postgis in Play Framework

Possible solution for geometry column in play framework JPA

https://groups.google.com/forum/?fromgroups#!topic/play-framework/f-vp8JgJda0

 [...]
import com.vividsolutions.jts.geom.
Point;
[...]
@Column(name = "the_geom", columnDefinition = "GEOMETRY")
@Type(type = "org.hibernatespatial.GeometryUserType")
public Point theGeom;
[...]

onsdag 11 juli 2012

CSS Reset

referencing Eric Meyer, on resetting in css for fixing so and so browsers behaviour


http://meyerweb.com/eric/tools/css/reset/

Blue border around image fix

How to remove the blue border around an image, particurlarly concerning IE, do the following


a img{
    border: none;
}

also, where it came from, http://stackoverflow.com/a/3003704

söndag 1 juli 2012

Play Framework 2.0 lecture

From JFokus about Play Framework 2.0

http://www.jfokus.se/jfokus/video.jsp?v=3081

Styling links within links in divs

Just a quickie to horisontally align links in divs inside a li element

<!DOCTYPE html>
  <html>
  <head>
  <style type="text/css">
  li{
    list-style: none;
  }
  div.my-spaced-links{
    display: inline;
    margin-left: 10px;
    padding: 10px;
  }
  </style>
  </head>
  <body>
  <ul>
  <li><a href="#">Första</a></li>
  <li><span><div class="my-spaced-links"><a href="#">Två1</a></div><div
  class="my-spaced-links"><a href="#">Två2</a></div></span>
</li>
  </ul>
  </body>
  </html>

Wrap anchor tag around other tags

How to succesfully wrap an anchor tag around other tags, in HTML5
http://davidwalsh.name/html5-elements-links

Remove whitespace, ImageMagick

Remove whitespace from a picture in imagemagick

http://hilbertastronaut.blogspot.se/2008/08/imagemagick-crops-your-white-space.html

Show images - Flexslider

Flexslider - show of images on a page

http://www.woothemes.com/flexslider/

Test site in browsers

Testing site crossbrowser - online

http://browserstack.com

http://crossbrowsertesting.com/

Styling input-fields using CSS3

CSS3 style input field using gradients

http://www.webstuffshare.com/2010/04/stylize-input-element-using-css3/

Gradient - crossbrowser

CSS Gradient cross-browser from IE 5.5
http://www.puremango.co.uk/2010/04/css-gradient-background/