<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>riddled</title><generator>Tumblr (3.0; @blogriddle)</generator><link>http://blog.riddle.pl/</link><item><title>.uiStream .uiStreamMessage {
      font-size:...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lbdkkaCMiD1qa3bxno1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;.uiStream .uiStreamMessage {
      font-size: 13px !important;
    }&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;.uiStream .uiStreamMessage .actorName {
  display: inline !important;
}
&lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.riddle.pl/post/1481168963</link><guid>http://blog.riddle.pl/post/1481168963</guid><pubDate>Thu, 04 Nov 2010 20:24:00 +0100</pubDate></item><item><title>WebKit’s Search Input</title><description>&lt;p&gt;Code needed to make &lt;code&gt;&amp;lt;input type="search"&amp;gt;&lt;/code&gt; look exactly like &lt;code&gt;type="text"&lt;/code&gt;.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;input[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://css-tricks.com/webkit-html5-search-inputs/"&gt;More on the topic&lt;/a&gt;.&lt;/p&gt;</description><link>http://blog.riddle.pl/post/1262394361</link><guid>http://blog.riddle.pl/post/1262394361</guid><pubDate>Thu, 07 Oct 2010 15:34:00 +0200</pubDate><category>css</category><category>form</category><category>form field</category><category>search field</category><category>input</category><category>input search</category></item><item><title>Stop writing single-line CSS</title><description>&lt;p&gt;Writing single-line CSS is not a matter of preference.&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Adding ending slashes in HTML5 because you’re switching from XHTML is a preference.&lt;/li&gt;
&lt;li&gt;Using MooTools over jQuery is a preference.&lt;/li&gt;
&lt;li&gt;Writing curly braces in new lines is a preference.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Single-line CSS is not your preference – it’s a shitty way to code, debug and optimize and I’m gonna prove it to you right now.&lt;/p&gt;

&lt;p&gt;Your arguments go like this:&lt;/p&gt;

&lt;h3&gt;It’s syntactically valid!&lt;/h3&gt;

&lt;p&gt;Just because you can skip whitespace in CSS, doesn’t mean you should. Sure, you are a smart cookie and you can read it very quickly, breaking long chains of well-known properties and their values in real time. CSS is rather easy.&lt;/p&gt;

&lt;p&gt;Let’s switch gears for a while. Look at this JavaScript:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;for (var l,i=0;i&amp;lt;10;i++){l=(i % 2)?'even':'odd';}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It’s perfectly valid and passes JSLint too. Ok, you probably know JavaScript well. Let’s try something else.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(1..16).map { |x| (1..16).map { |y| (1..16).map { |z| [x,y,z] if x**2 + y**2 == z**2} } }.reduce(:+).reduce(:+).compact
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I hope one day you will have to work with stuff like this so you can understand that unreadable code is always bad code, even if it executes.&lt;/p&gt;

&lt;h3&gt;It’s quicker to write!&lt;/h3&gt;

&lt;p&gt;Probably, but the quality suffers.&lt;/p&gt;

&lt;p&gt;I have seen many stylesheets in countless projects and those with single-line rules are almost always full of redundant selectors and redeclared properties. I’m talking about this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;.footer li h3 { margin: 0 0 6px; font-weight: bold; display: inline; color: #e92e2e; }
.footer li h3 a { font-weight: normal; font-size: 1em; color: #e92e2e; }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Color property should be declared like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;.footer li h3,
.footer li h3 a {
  color: #e92e2e;
}

.footer li h3…
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;When you write CSS, you need to constantly optimize. You have to reorder selectors, move properties around and shrink rulesets while new functionality is being added. You can’t just move to the bottom of file, dump and overwrite.&lt;/p&gt;

&lt;p&gt;Single-line CSS is quicker to write when you stop caring about stuff you already coded. If you don’t remember what you code, you will end up with repetitions and bloat.&lt;/p&gt;

&lt;h3&gt;I can see much more on the screen!&lt;/h3&gt;

&lt;p&gt;Only vertically. Horizontally you have many, many problems:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Long rulesets are being wrapped – nice column of selectors stops being nice&lt;/li&gt;
&lt;li&gt;With wrapping disabled, you are limited by the viewport – code bloat increases, as you won’t remember about invisible code&lt;/li&gt;
&lt;li&gt;Even if you refactor and move code around, you end up decreasing readability.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;All of this doesn’t really matter, though. Tell me: why on Earth would you force a coding style on your peers to compensate for your shitty editor?&lt;/p&gt;

&lt;p&gt;There are many text editors and IDEs that will take care about screen estate. Editors that can &lt;a href="http://macrabbit.com/espresso/images/screenshots-1.1/MainEditPreview-thumb.jpg"&gt;collapse unused rules or sections&lt;/a&gt;. Editors with project inspectors, allowing you to &lt;a href="http://macrabbit.com/cssedit/screenshots/MainSource.jpg"&gt;jump to particular selector&lt;/a&gt;. Or those that have &lt;a href="http://macromates.com/"&gt;powerful, tweakable capabilities&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;It has smaller size!&lt;/h3&gt;

&lt;p&gt;Really. You want to compress front-end code by hand, while developing the site / application. Do you omit spaces after periods in sentences too?&lt;/p&gt;

&lt;p&gt;Learn what minimization means and how you can do it automatically in production environment. If you have no idea how to do it yourself, your back-end guy or sysadmin will help. And if you’re a one-man-army, just Google around and use some online tools at the very end. On a copy.&lt;/p&gt;

&lt;h3&gt;If you want, you can use a reformatter. You hipster.&lt;/h3&gt;

&lt;p&gt;It will probably be the &lt;a href="http://procssor.com/"&gt;first thing&lt;/a&gt; I do when I must edit your code. Make no mistake – it’s not a solution, this is me fixing your shit. You don’t ask people to use Tidy on your HTML before making back-end templates, do you?&lt;/p&gt;

&lt;h3&gt;I just like it.&lt;/h3&gt;

&lt;p&gt;First, you should read about &lt;a href="http://sethgodin.typepad.com/seths_blog/2010/01/quieting-the-lizard-brain.html"&gt;lizard brain&lt;/a&gt;. Second, realize that your coding style will interfere with efficiency of your co-workers. Even if you end up with someone who also writes single-line CSS, her style might be different. She may be using OOCSS approach (however strange that would be for such a messy person) and she will curse you under her breath for your screen-long selectors.&lt;/p&gt;

&lt;p&gt;You may indeed like it, but if you ever need to work with someone else and produce high-quality code, this is not how you do it. In  team environment single-line CSS will be the first reason for pouring coffee on your new MacBook.&lt;/p&gt;

&lt;p&gt;If you’re a lone hunter, do what you like. Browse 4chan, smoke, have 5 espressos a day, whatever. But don’t tell me I should not criticize you for writing single-line CSS. If I care enough to do this, you probably deserve to be better than you are right now.&lt;/p&gt;</description><link>http://blog.riddle.pl/post/1204336832</link><guid>http://blog.riddle.pl/post/1204336832</guid><pubDate>Tue, 28 Sep 2010 14:51:00 +0200</pubDate><category>css</category><category>single-line css</category><category>syntax</category><category>style</category><category>performance</category><category>productivity</category></item><item><title>Accessible image replacement with CSS3</title><description>&lt;p&gt;Image replacement is as old as CSS tips and tricks posted online. Here’s &lt;a href="http://www.mezzoblue.com/tests/revised-image-replacement/"&gt;a list of available techniques&lt;/a&gt;. Recently I’ve become particularly interested in the Gilder/Levin method. It uses additional &lt;code&gt;span&lt;/code&gt; element, positioned over the parent. This span then gets &lt;code&gt;background-image&lt;/code&gt; treatment, covering underlying text.&lt;/p&gt;

&lt;p&gt;I normally use it like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;h1&amp;gt;Futurama &amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/h1&amp;gt;

h1 {
  position: relative;
  width: 256px;
  height: 133px;
}

h1 span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("image.png") no-repeat;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Why do I bother? This is the only (sane) method allowing images to be disabled or not downloaded at all. And why would I care about this?&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;I want to provide alternative way to access all content on the page, full stop. This is supposed to be a replacement, not obliteration.&lt;/li&gt;
&lt;li&gt;There is a small lag between rendering DOM element and downloading the image. Browsers are so fast these days that it can happen even on broadband.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;It’s all good and I use it all the time for logo elements (headings usually get @font-face anyway). The only thing that bugs me is that additional span element. Today I learned how to get rid of it.&lt;/p&gt;

&lt;p&gt;Note: In my daily work I support only modern browsers (including IE8), so if you need to support earlier versions of Firefox (3.0) or IE 4.0, stop reading. ;)&lt;/p&gt;

&lt;p&gt;Code looks like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;h1&amp;gt;Futurama&amp;lt;/h1&amp;gt;

h1 {
  position: relative;
  width: 256px;
  height: 133px;
}

h1:after {
  content: url("image.png");
  position: absolute;
  left: 0;
  top: 0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://riddle.pl/public/tests/css3-image-replacement/"&gt;Test it here&lt;/a&gt;, works like a charm. I used &lt;code&gt;content: url()&lt;/code&gt; by purpose – there is a strange bug that won’t allow text to be covered in IE8 just by using &lt;code&gt;background-image&lt;/code&gt;. Image must have the same dimensions as parent element or you must clip it adding &lt;code&gt;overflow: hidden&lt;/code&gt; to &lt;code&gt;h1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you have any comments and/or improvements, &lt;a href="mailto:piotr.petrus@gmail.com"&gt;get in touch&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;PS: “CSS3” in the title refers to the ability to position generated content (which was indeed introduced in CSS2). Don’t send angry emails. :)&lt;/p&gt;</description><link>http://blog.riddle.pl/post/766857984</link><guid>http://blog.riddle.pl/post/766857984</guid><pubDate>Sun, 04 Jul 2010 00:37:00 +0200</pubDate><category>image replacement</category><category>ir</category><category>css3</category><category>accessibility</category><category>demo</category></item><item><title>Twitter Searches</title><description>&lt;p&gt;Tracking &lt;a href="http://razorjack.net/quicksand/"&gt;stuff you’ve created&lt;/a&gt; on Twitter can be difficult due to tons of spam, useless retweets and hashtag memes. This is what I had to type into Twitter’s search box:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;Quicksand&lt;/em&gt; &lt;strong&gt;http&lt;/strong&gt; -RT -youtu -♫ -&amp;#8220;now playing&amp;#8221; -nowplaying -lastfm -&amp;#8220;lady gaga&amp;#8221; -&amp;#8220;britney spears&amp;#8221;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Mrs Spears and Gaga are specific to this query, but the rest may come handy in every search. If the project is new and everyone’s getting excited, you may want to delete “-RT” to see an avalanche of tweets.&lt;/p&gt;</description><link>http://blog.riddle.pl/post/392815365</link><guid>http://blog.riddle.pl/post/392815365</guid><pubDate>Tue, 16 Feb 2010 15:38:13 +0100</pubDate><category>twitter search</category><category>twitter</category></item><item><title>Masking Layer Styles</title><description>&lt;p&gt;If there’s one reason for doing most of the interface design work in Photoshop, it’s gotta be its “Layer Styles”. For those of you living under a rock, Layer Styles allow to add dynamic—duh—layers like shadows, gradients and borders to any bitmap. Combine them with vector shapes and the result is pretty versatile.&lt;/p&gt;

&lt;p&gt;However, there’s a small shortcoming of this great feature: you can’t edit pixels in any dynamic layer directly. So for example, if you want to erase one side of button’s border, you can’t &lt;em&gt;just&lt;/em&gt; do it.&lt;/p&gt;

&lt;p&gt;It takes more than that, and I’d like to show you how it’s done properly. We’re gonna use another neat and undervalued feature called Layer Mask.&lt;/p&gt;

&lt;p&gt;Because mere theory isn’t fun, let’s attempt to make something (kinda) useful – like recreating Mac OS X’s deafult window resizer. Heaps of fun, I know. I’ve decided to build it without much finesse, by gluing vector rectangles one near another. How you do it isn’t so important, but you should end with something like this: (max zoom)&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2010-01-08/01-path.png" width="620" height="624" alt=""/&gt;&lt;/p&gt;

&lt;p&gt;To make it look realistic, we need another three lines of white semitransparent pixels. This is where Layer Styles kick in. Choose Drop Shadow from &lt;img src="http://riddle.pl/public/blog/img/2010-01-08/tool-add-fx.png" width="20" height="14" alt="fx"/&gt; menu and tweak values to resemble this:&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2010-01-08/02-layer-style.png" width="620" height="334" alt=""/&gt;&lt;/p&gt;

&lt;p&gt;These settings will create a 1px drop shadow (without any blur), like this:&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2010-01-08/03-drop-shadow.png" width="620" height="624" alt=""/&gt;&lt;/p&gt;

&lt;p&gt;As you can see now, the shadow appears underneath every pixel. We don’t want that. Choose menu Layer → Layer Mask → Reveal All (or click &lt;img src="http://riddle.pl/public/blog/img/2010-01-08/tool-add-mask.png" width="18" height="14" alt="Add Mask in the bottom of Layers window"/&gt;). Layer’s icon will change to &lt;img src="http://riddle.pl/public/blog/img/2010-01-08/mask.png" width="16" height="16" alt="gray square with dot inside"/&gt;. Then pick Pencil Tool (1px) and draw a straight &lt;strong&gt;black&lt;/strong&gt; line, in this area: (red was used just for presentation)&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2010-01-08/04-mask-area.png" width="620" height="624" alt=""/&gt;&lt;/p&gt;

&lt;p&gt;You’ll notice that a part of the layer has disappeared, but it’s still not perfect. To correct it, choose Layer → Layer Mask → Disable (or choose it from layer’s contextual menu). Layer’s icon will change to &lt;img src="http://riddle.pl/public/blog/img/2010-01-08/mask-disabled.png" width="16" height="16" alt="gray square crossed with red X"/&gt; and you’ll see the improved look:&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2010-01-08/05-final.png" width="620" height="610" alt=""/&gt;&lt;/p&gt;

&lt;p&gt;Tested in Adobe Photoshop CS4. Hopefully this will increase your real productivity, have fun!&lt;/p&gt;</description><link>http://blog.riddle.pl/post/377358704</link><guid>http://blog.riddle.pl/post/377358704</guid><pubDate>Mon, 08 Feb 2010 04:42:00 +0100</pubDate><category>photoshop</category><category>layer mask</category><category>layer styles</category><category>photoshop cs4</category><category>how to</category></item><item><title>

This is BumpTop for Mac transforming Finder’s desktop into a 3d space. Problems:

I’ve got some...</title><description>&lt;p class="image"&gt;&lt;a href="http://www.flickr.com/photos/riddle_/4291095812/" title="BumpTop for Mac by riddle_, on Flickr"&gt;&lt;img src="http://farm5.static.flickr.com/4041/4291095812_79afb0b18f.jpg" width="500" height="313" alt="BumpTop for Mac"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is &lt;a href="http://bumptop.com/mac/"&gt;BumpTop for Mac&lt;/a&gt; transforming Finder’s desktop into a 3d space. Problems:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;I’ve got some ugly, &lt;a href="http://farm3.static.flickr.com/2683/4290380015_68b1f0cd91_o.png"&gt;pixelated menus&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Doesn’t respect file’s “Hide Extension” flag (default for .webloc bookmarks) when renaming.&lt;/li&gt;
&lt;li&gt;Dragging files to Trash displays a second, non-3d-transformed picture that won’t disappear when it’s no longer hovered over Dock.&lt;/li&gt;
&lt;li&gt;No way to drag screenshots from Skitch.app to the desktop (display’s error).&lt;/li&gt;
&lt;li&gt;For that matter, no way to drag anything non-standard from any app. No links, text clippings.&lt;/li&gt;
&lt;li&gt;Images dragged from Safari are saved in the center, not where I dropped them.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Conclusion: Very neat, but buggy. Uninstalled.&lt;/p&gt;</description><link>http://blog.riddle.pl/post/344562913</link><guid>http://blog.riddle.pl/post/344562913</guid><pubDate>Wed, 20 Jan 2010 18:49:00 +0100</pubDate></item><item><title>1BigMess</title><description>&lt;p&gt;I’m a huge fan of &lt;a href="http://agilewebsolutions.com/products/1Password"&gt;1Password&lt;/a&gt;. A single button in Safari lets me in to every site and all I have to remember is (you guessed) one password. Yesterday marks the day when version 3 was released. It uses a new and &lt;a href="http://help.agile.ws/1Password/keychain_comparison.html"&gt;better&lt;/a&gt; keychain, has plenty of amazing features and support for 64bit Safari (yeah!). Well-done upgrade.&lt;/p&gt;

&lt;p&gt;But my eyes hurt when I look at this:&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2009-11-20/1Password-main.png" width="546" height="320"/&gt;&lt;/p&gt;

&lt;p&gt;I know not many people see this window very often, but I think whoever designed it went overboard. Let’s outline what is really wrong and why.&lt;/p&gt;

&lt;p&gt;Sidebar is widely used in variety of apps since Leopard was released. As you can see it’s not exactly the same in every app but it’s conveniently similar. Finder and iTunes use slightly different background (other apps follow) and white text shadow for headers varies but they all look pretty coherent.&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2009-11-20/sidebars.png" width="601" height="702"/&gt;&lt;/p&gt;

&lt;p&gt;1Password on the other hand uses much darker background (with matching selection color) and oversized headers. Icons don’t match the same style and saturation and some of them are too big.&lt;/p&gt;

&lt;p&gt;Main part of 1Password’s window is taken by a list with all passwords. What is wrong with that? Scrollbar. Take a look at scrollbars in Mac OS X:&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2009-11-20/scrollbars.png" width="234" height="524"/&gt;&lt;/p&gt;

&lt;p&gt;On the left there’s default Aqua scrollbar, then Apple’s flat variation used for the first time in iTunes. I think we can all agree iTunes 9 looks like a glowing turd, but it actually manages to make that flat scrollbar prettier. And then there’s 1Password with its own invention. Let’s take a closer look.&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2009-11-20/scrollbars-1.png" width="550" height="315"/&gt;&lt;/p&gt;

&lt;p&gt;Our password app wanted to have a flat scrollbar but it failed – bottom part is shorter, arrows lack shadow, there’s no depth and there’s no left border that would separate it from the table view. I’m not sure if you can choose iTunes-esque scrollbar in Interface Builder, but if you can’t you should &lt;a href="http://gomockingbird.com/mockingbird/"&gt;build something better&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Next up: bottom toolbar.&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2009-11-20/footers.png" width="355" height="274"/&gt;&lt;/p&gt;

&lt;p&gt;They aren’t really the same, but every app using this interface element makes it in the same, &lt;strong&gt;unified&lt;/strong&gt; gray. 1Password once again chooses the dark side and paints it with dark gray.&lt;/p&gt;

&lt;p&gt;Lastly, there’s this thing:&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2009-11-20/1password.png" width="668" height="543"/&gt;&lt;/p&gt;

&lt;p&gt;Nobody tells guys at Agile Web Solutions to make editing data boring (Address Book), but I see so many custom elements and pointless decorations that my head hurts. And there’s more.&lt;/p&gt;

&lt;p class="image"&gt;&lt;img src="http://riddle.pl/public/blog/img/2009-11-20/1password-hover.png" width="354" height="100"/&gt;&lt;/p&gt;

&lt;p&gt;Text shadow everywhere, outer and inner. Misaligned labels. Custom (keyboard inaccessible) controls. Squeezed footer text despite plenty of space. Yellow band and tilted screenshot screaming “&lt;a href="http://www.youtube.com/watch?v=8Wcr63XMfeY"&gt;Look at me&lt;/a&gt;!” simultaneously. Paper clip, curled page, drop shadow, gradient and abstract drawing. I’m wondering where bevel is hiding. &lt;a href="http://riddle.pl/public/blog/img/2009-11-20/bevel.png"&gt;Christ&lt;/a&gt;.&lt;/p&gt;

&lt;hr&gt;&lt;p&gt;I still love this piece of code for all the hard work it does. But Mac apps &lt;strong&gt;are&lt;/strong&gt; details, fretted over and over. Interface should be recognizable but not juvenile. That’s why Cultured Code’s or Panic’s creations fit in the system yet are engaging. 1Password? Not so much.&lt;/p&gt;</description><link>http://blog.riddle.pl/post/250760366</link><guid>http://blog.riddle.pl/post/250760366</guid><pubDate>Fri, 20 Nov 2009 13:47:00 +0100</pubDate><category>1password</category><category>interface</category><category>ui</category><category>ux</category></item><item><title>If you’re like me, you watch a lot of videos online – The Daily Show, Colbert Report, Zero...</title><description>&lt;p&gt;If you’re like me, you watch a lot of videos online – The Daily Show, Colbert Report, Zero Punctuation to name but a few. If I had to focus only on what’s currently playing, I wouldn’t be doing anything constructive at all. So if a clip is longer than 2-3 minutes, I usually pull the tab out from Safari, resize and pan the viewport, place it somewhere on the screen and go back to whatever I was doing before.&lt;/p&gt;

&lt;p&gt;Cumbersome.&lt;/p&gt;

&lt;p&gt;Then the &lt;a href="http://twitter.com/riddle/status/4132032542"&gt;idea struck me&lt;/a&gt;. I could make a bookmarklet that would do all the hard work for me. And I did: &lt;a class="bookmarklet" href="javascript:(function()%7B_cutoutpage_script=document.createElement('script');_cutoutpage_script.type='text/javascript';_cutoutpage_script.src='http://riddle.pl/public/bookmarklets/cutoutpage.js?x='+(Math.random());document.getElementsByTagName('head')%5B0%5D.appendChild(_cutoutpage_script);%7D)();"&gt;Cut-out Page&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tested in Safari 4 and Firefox 3.5. Feel free to modify, steal, rewrite, whatever. I should put it on GitHub, but I’m still git-less afer upgrading to Snow Leopard. And lazy.&lt;/p&gt;

&lt;p&gt;Known bugs:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Safari’s window resizes programatically only if there are no other tabs.&lt;/li&gt;&lt;li&gt;Firefox will reload Flash object when script gets rid of scrollbars. Weird bug, but hey – it’s Firefox, remember?&lt;/li&gt;&lt;/ul&gt;</description><link>http://blog.riddle.pl/post/214121783</link><guid>http://blog.riddle.pl/post/214121783</guid><pubDate>Fri, 16 Oct 2009 00:45:26 +0200</pubDate></item><item><title>Hey, what’s up? Long time no see.

I have something to confess: I got caught up in a rat...</title><description>&lt;p&gt;Hey, what’s up? Long time no see.&lt;/p&gt;

&lt;p&gt;I have something to confess: I got caught up in a rat race.&lt;/p&gt;

&lt;p&gt;Constant improvement, lighter CSS, better typography, more accessibility, fluent writing.&lt;/p&gt;

&lt;p&gt;For heaven’s sake, I maintained a site that had &amp;#8220;&lt;a href="http://perfectionorvanity.com/"&gt;perfection&lt;/a&gt;&amp;#8221; in the URL.&lt;/p&gt;

&lt;p&gt;How could I top that? The point is, I couldn’t.&lt;/p&gt;

&lt;p&gt;That’s why you’re now reading a list of short, &lt;a href="http://twitter.com/riddle"&gt;less-than-140-character&lt;/a&gt; sentences.&lt;/p&gt;

&lt;p&gt;I need to start doing this again, and stop worrying about being perfect.&lt;/p&gt;

&lt;p&gt;Brace yourself, because even I don’t know what happens next.&lt;/p&gt;</description><link>http://blog.riddle.pl/post/213148854</link><guid>http://blog.riddle.pl/post/213148854</guid><pubDate>Wed, 14 Oct 2009 23:24:40 +0200</pubDate></item></channel></rss>

