Category Archives: Applications

Create a Twitter Box in Your Sidebar - Part II

My Sidebar Twitter box tutorial seems to have struck a chord with WordPress users and it has generated some interesting questions. One of them, from TheNext2ShineBlog posed an interesting problem I decided to look into in more detail:

the only thing I would like to change is the time aspect (23 days ago // 4 hours ago). Is there a css code to hide that link without taking away the links from the original twitter message?

What TheN2S is refering to is the tail end of each Twitter message that reads either “less than a minute ago”, “a few minutes ago” etc up to “X days ago”.

Careful inspection of the JavaScript that generates the Tweets for the application (found here) shows that the time information is a core function of the Twitter system so it is coded into the main structure of the application itself. Therefore it is hard to siply remove it unless you want to create your own custom JS. But TheN2S is on the right track in asking if it can be removed by way of CSS.

Lifting a random tweet off my own site I found that the main body the JS spits out is contained within a span tag while the tail end with the time info is not:

<li>
   <span>@<a href="http://www.twitter.com/webb_art">webb_art</a> DropBox works well for me and is platform independent: <a href="http://www.getdropbox.com/">	http://www.getdropbox.com/</a></span>
   <a href="http://twitter.com/mor10/statuses/1003495851" style="font-size: 85%;"> about 15 hours ago</a>
</li>

That means we can use CSS to hide the content not in the while maintaining the visibility of the content that is. That requires some additions to the original CSS code:

#twitter_div ul li span {
	visibility: visible;
}
 
#twitter_div ul li span a {
	color: #D78E42;
	visibility: visible;
}
 
#twitter_div ul li a {
	visibility: hidden;
}

The first two single out the regular and link contents within the span specifically and set their visibility to visible. This is done because the last style sets the visibility of all anchors within list items under the twitter_div ID to hidden. So we are really working backwards - first hiding everything and then unhiding it in particular cases.

By adding these three style elements the time information will be hidden by the CSS while everything else shows up normally.

A better desktop with RocketDock and Vista Start Menu

Sitting in front of a computer about 80% of your working day it is important that your work environment - that is your desktop - is both visually pleasing and functional. Having switched to Windows Vista not too long ago and just bought a new laptop I spent some time customizing my desktops to increase functionality and decrease clutter. Along the way I found some useful applications and some nice tricks that I’d like to share with you.

Get a Dual-Monitor Wallpaper with DisplayFusion

One of the things that has bugged me from day one was that out of the box neither XP nor Vista allowed you to have different wallpapers on different screens if you have a dual screen setup. I’ve been working with two screens for years and a cohesive background graphic for my workspace has always been one of the items on my wishlist. When I came across the beautiful Mandolux multi-monitor wallpapers I decided that now was the time so I started digging around on the web for a small app that would let me split my desktop in half so to speak. After some trial and error I landed on DisplayFusion - a free multi-monitor desktop wallpaper application that runs on both XP and Vista alike. The application is light and easy to use and combined with a Mandolux wallpaper the result (as seen at the top of this article) is quite stunning.

Keep your tools handy with RocketDock

It’s no secret that I’m a Windows guy and I have less than kind things to say about it’s rival the Mac. But that doesn’t mean I’m not willing to say that Steve Jobs and his fruity company hasn’t come up with some briliant ideas. Ideas like the customizeable launch bar. Fortunately clever coders have created several clones of this application that run in Windows environments. One of these is the nice and spiffy RocketDock. It lets you drag and drop any application, folder or whatever else comes to mind into a dockable launch box and makes them available to you with one click. I’ve installed it on both my office computer and my laptop (as seen below) and moved the regular Windows Taskbar to the left hand side to get it out of the way. Now I have all my frequently used applications handy with one click at the bottom of my screen and if I want to dig deeper I can always go to the Taskbar. As Candide would say, it’s the best of all possible worlds.

Harness the launching power of the Vista Start Menu

An often overlooked application that I myself wasn’t fully aware of until recently is the Vista Start Menu search box. More than just a regular search box, this powerful feature lets you launch any application by simply writing (part of) it’s name and hitting Enter. This comes in handy when you want to launch a seldom used or hidden application like the equally genius Snipping Tool which for some bizarre reason is hidden within Vista. The search box catalogues all your applications and lets you launch them without digging through folder trees on the Program menu.

“But wait. That’s exactly what Launchy does” you might say (if you’re a real nerd or a Lifehacker reader). And you are right. But think about this for a second: Why would you use a third party application to do something that has been built into the operating system anyway? Sadly the prevalence of Launchy and applications like it on Vista systems shows how buggy the transition from XP to Vista has been. But fret not: If you’re already a Launchy user, try switching over to the Vista Start Menu for a while and you’ll see that you can safely get rid of that extra 3rd party bulk and still get pretty much the same results.