Archive for September, 2009

Spoken Git Commit Log — Another Annoyance at the Office

Wednesday, September 30th, 2009 by Jesper Rønn-Jensen

Here is a short one-liner that really annoyed my colleagues today. I set my mac to read aloud all changes in the repository since yesterday: git log –pretty=format:”%an commit %s, %ad.” –date=relative –since=yesterday |say if you remove the “say” command in the end it’s actually pretty readable: pagerbak commit VA17, 34 minutes ago. pagerbak commit […]

Print CSS Background Logo Hack

Tuesday, September 29th, 2009 by Jesper Rønn-Jensen

I learned this nice little hack to bypass the standard browser setting that normally prevents background images from being printed. The hack makes use of converting the background-image to a list item with an image. /* Hack, to trick the browser to print another logo Unfortunetaly, Firefox on Windows doesn’t show logo on print — […]

Bash or Ruby for removing multiple Trac Spam Tickets

Monday, September 28th, 2009 by Jesper Rønn-Jensen

I had to clean up a public Trac ticket db where anonymous tickets are allowed. I had to issue commands like this: trac-admin . ticket remove 58 I keep forgetting the shell syntax for doing a loop over numbers. But actually a ruby script was just right for the task: ruby -e “(49..75).each{|i| %x(sudo -u […]

Internal Apps In Firefox

Wednesday, September 23rd, 2009 by Jesper Rønn-Jensen

This post is probably highly irrelevant unless you work at Capgemini and want to use the internal nordic applications in Firefox. Read on if you want to access systems like CTR (time reporting), Event calendar, Skills database, PDR, Project forms or similar applications in Firefox. Problem is that the systems are not accessible at all […]

Sell More: Add Next Steps To Your Status Messages

Monday, September 21st, 2009 by Jesper Rønn-Jensen

Sometimes, when doing web development, we forget that not everybody are as familiar with the web jargon as ourselves. This example from Pixum (internet photo developer) shows a good detail: The status message from Pixum gives immediate feedback that makes it easy to go to next step Note that the status message contains a link […]

Greasemonkey Debugging Tips: How to Determine Why your Script Is Not Running

Friday, September 18th, 2009 by Jesper Rønn-Jensen

After running into some trouble with getting a Greasemonkey to work, I just wanted to share this list with you of things to look out for when your Greasemonkey script does not seem to run. What are the common pitfalls you see around. I’ll gladly add them here. I am trying to get a Greasemonkey […]

CSS Styling Buttons Problem with Underlined Text

Wednesday, September 16th, 2009 by Jesper Rønn-Jensen

I ran into the challenge the other day to style a<button> element to make it look like a link (with underline and everything). Unfortunately, the <button> element does not react to text-decoration: underline; But according to a discussion at the CSS Creator forum, there is a way out: I was just messing around with it […]

2 Must-Know HTML Table Colum Features Any Webdeveloper Should Be Aware Of

Wednesday, September 2nd, 2009 by Jesper Rønn-Jensen

I was reading up on the good old HTML specification and discovered a feature I had always wanted — and it’s already there:
Creating widths of columns that will work like percentages, but will also pay attention to any small, fixed-width columns.

Take a look at HTML’s proportional widths and amount alignment features.

Selection Groups in Rails made less cumbersome

Tuesday, September 1st, 2009 by Jesper Rønn-Jensen

I made this addition today after (once again) struggling with option groups for a nested Rails model. My solution: create a new tag for FormOptionsHelper: grouped_select http://gist.github.com/179075