Posts Tagged development

An old Firefox trick with a Windows 7 twist.

I’ll come right out and say it.  I never would have thought I would have been excited about an OS release (again) but I am starting to like it. So many things I used to use third party programs for are now built into Windows 7 and they did a decent job too.While I could fill several posts about the tricks I’ve found (and I probably will in the near future) this particular post is about a trick I just figured out how to do.

The new task bar in Windows 7 functions very similar to OS X's Dock Bar

The new task bar in Windows 7 functions very similar to OS X's Dock Bar

A quick description of the windows 7 feature I’m talking about, In windows 7 you have the ability to ‘Pin’ applications to the task bar.  In all honesty, it feels very similar to the Mac OS X dock bar. The ‘Pinned Application’ becomes the task bar entry while the program is running and remains once the application has ended. It doesn’t do any nifty scaling of the application’s Icon, but it is none the less effective.

Windows 7 Task Bar Multiple Windows + 'peek'

Windows 7 Task Bar Multiple Windows + 'peek'

Also very important to my article is the changes to the Windows Grouping feature as it was called in Windows XP. They’re now called Combined Taskbar buttons. As you can see from the screenshot to the right, multiple windows appear as layered icons in the task bar, and when you hover your mouse over this group of icons you’ll be able to see the contents of those windows if you have Aero Peek enabled.

As you can tell from my screenshots that I use Firefox as my primary browser (and I use Pidgin and FooBar 2000 but that’s neither here nor there) and it’s a great browser for many reasons I don’t need to expand on here. If you’re not using it, you don’t know what you’re missing! get it here!

I tend to have several separate Firefox profiles depending on what I’m going to be doing at the time. I have my normal day-to-day browsing profile, my Web Developer profile (You don’t want to try and casually browse with some of the more advanced dev plugins installed, odd things happen) and a clean profile with no addons.  If you’re not familiar with Firefox profiles please read this article. The one missing tidbit of information from that article is if you add -no-remote to the command arguments, you can run multiple copies of Firefox, each using a different profile to store it’s data.

None of this is news. It’s been written, blogged, twittered, stumbled, shared, and posted about.  I’ve always launched my devel environment with the -no-remote argument and my normal one with out it. The problem I ran into was Windows 7 (and Windows XP) would group all Firefox windows together on the same taskbar button. I usually turned off window grouping to combat this problem in XP.  I’ve grown quite fond of Windows 7’s way of handling Combined Taskbar entries and I wanted to find a way to have one taskbar entry for each profile I was running. Thankfully I found out how!

Firefox Development Shortcut Information

Firefox Development Shortcut Information

Two Firefox instances with multiple windows appear as two "stacks" of task bar entries.

Two Firefox instances with multiple windows appear as two "stacks" of task bar entries. Warning: large image.

The Solution turned out to be as simple as creating a copy of the Firefox installation in my Program Files directory.  When creating the shortcut that launches the second profile as described in the article above, use the copy of Firefox as the target Application. I went as far as to rename the shortcut and add a custom icon to it. See my example on the right. After creating the shortcut, execute the shortcut. If you did it right, it will create a new taskbar entry with the name and icon you specified in the shortcut. You then have to right click on the taskbar entry and select “Pin this program to Taskbar”.

There are a few little side notes. You don’t have to keep the original shortcut around. The process of pinning to the task bar actually creates a copy of the shortcut used to launch the program into C:\Users\<user>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar and you can delete the one you created initially. I’d also recommend disabling Firefox’s Default Browser check. Make sure one of your installations is configured to be default, not the other or else Firefox will ask you each time. Finally, changing the icon of the shortcut does not change the icon of the Firefox window itself, as indicated by the red arrow on the image to the left.  It will only change the icon on the task bar as indicated by the green arrow.

, , , , , ,

1 Comment

Data Weaving

Today I am working diligently on a new project. I was busily moving textual data from various applications I use in my development and into an excel spreadsheet for quick reference later. From three different files opened in two different (and both very large) applications and Excel 2007 all at the same time. If computers were ever revolt mine’s going to go straight for the jugular.

Then after I finished building the table in Excel I realized I had to create multiple (24 to be exact) template files for all the pages this new project required. I didn’t feel like typing the command out (I used touch on my Linux devel box) so I copied the text I needed for the base of the file name, tacked on the remainder of the file name and removed the carriage returns with a quick recorded macro in UltraEdit 32, and pasted it into my shell window. BAM!

OK for most of you that will probably be complete gibberish. And that’s OK. It just suddenly dawned on me what exactly I was doing to accomplish my goal.  Such a contrived, inefficient but effective way of doing it.  Also as suddenly, the phrase “Data Weaving” popped into mind.

, , , ,

No Comments

Setting up Subversion and Trac on CentOS 5

I stumbled upon this article and I must say it’s a great guide for getting both of these applications up and running correctly. I now use a slightly modified process to create new projects on my dev server. This in conjunction with a quick and dirty WordPress blog installed on my dev server’s root for posting links to the various parts of my new project and it’s an impromptu development environment!

Also on a side note, I switched away from Gentoo to CentOS for my dev server. Not that I do not enjoy Gentoo (I’m a geek, give it a break) but I needed a turn-key enviroment for development. So far I’ve been satisfied with CentOS. Since it’s based on Red Hat Enterprise Linux it’s solid as a rock and help is easy to find.

, , , , ,

No Comments