Web Info & Tutorials

December 7th, 2006

BLENDY BACKGROUNDS EXPLAINED

Matthew O'neill wrote a tutorial on Super-Easy Blendy Backgrounds:

Recently, while trying to implement a few different navigation ideas that a designer had thrown my way, I became frustrated with my weak image editing skills. The design was gradient-heavy, so a traditional approach to navigation markup and styling would require a dozen or so background-image slices to meet the varying colors and height requirements.

After spending a mortifying amount of time creating the images—I’m a programmer by trade, so anything more complicated than MS Paint gives me the willies—I had to take a step back and figure out a better way. What if, after finishing, I needed to tweak the height? Or, God forbid, the color palette? My head was going to explode if I had to open an image editor again, so the Super Easy Blendy Backgrounds technique was born.

The article follows the typical pattern of "hmm, well in IE 7 we found that you needed to do this" and walks you through all of the fixes (we won't say hacks).

They end up with:

<style type="text/css">.grad img {
  height: 100%;
  left: 0px;
  position: absolute;
  top: 0px;
  width: 100%;
  z-index: 0;
}
.box {
  border: solid orange 2px;
  float: left;
  margin: 1px;
  position: relative;
  width: 165px;
  padding: 5px;
}
.box * {
  margin: 0px;
  position: relative;
  z-index: 1;
}
* html .grad {
  filter: progid:DXImageTransform.Microsoft.AlphaImage »
Loader (src='grad_white.png', sizingMethod='scale');
}
* html .grad img {
  display: none;
}
* html .box {
    position:static;
}
.blue {
  background-color: #2382a1;
}
.green {
  background-color: #4be22d;
}
.pink {
  background-color: #ff009d;
}
</style>

<!--[if IE 7]>
<style type="text/css">
.box {
  border: solid red 2px;
  height:2.5em;
}
</style>
<![endif]-->
 

December 7th, 2006

RETREVO: SEARCH AND PREVIEW

Retrevo is a service in gamma (shamelessly stolen from Flickr) that lets you search for consumer electronics.

It almost feels like an RSS reader in that you can have a left pane of results, and preview the full sites on the right hand side.

Retrevo

December 7th, 2006

GOT API? FAST API SEARCHING

There have been a lot of these, but here is one more.

Got API has a fast api search that can query across a lot of the APIs that you use day to day. You select the APIs that you care about, and search away.

gotAPI

December 7th, 2006

DWR 2.0 RC 1 AVAILABLE

Joe Walker has announced the prototypal promulgation politician for DWR 2.0, the favourite Java remoting toolkit.

New in a nutshell

JavaScript Proxy API

DWR crapper dynamically create JavaScript from a Java API. This is finished at runtime kinda than make time, so we crapper ingest it to far curb some browsers. This makes it rattling cushy to indite things same chitchat applications, or anything specially dynamic. Messages are dispatched to clients using Reverse Ajax.

Reverse Ajax

DWR supports 3 structure to asynchronously designate messages from the computer to the browser: Comet (long-lived protocol connections), Polling and Piggyback. Of these Comet and Polling are astir (fast but order player meshwork traffic) and Piggyback is supine (slower but doesn’t requirement player meshwork traffic). DWR automatically selects the prizewinning method transparently to the programmer.

Security

Two of the the large generic dangers to ajax applications today arr Cross-Site Scripting (XSS), which most grouping are alive of, and the newborn agency in the hack-box: Cross-Site Request Forgery (CSRF). DWR helps you protect your place against these attacks by providing semiautomatic endorsement against CSRF attacks for some configurations, and by defaulting to a fashion where XSS attacks are reduced.