Matt Refghi's Blog http://www.mattrefghi.com/wordpress Technology and other written works Sat, 13 Feb 2010 23:39:23 +0000 http://wordpress.org/?v=abc en hourly 1 How to Temporarily Disable System Beeps http://www.mattrefghi.com/wordpress/2010/02/how-to-temporarily-disable-system-beeps/ http://www.mattrefghi.com/wordpress/2010/02/how-to-temporarily-disable-system-beeps/#comments Sat, 13 Feb 2010 09:05:32 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=1235 Computers have a means of communicating without external speakers - they do so via hardware beeps. These are the main scenarios I've seen where a computer beeps:

  • There is a problem when the system tries to boot, so it attempts to communicate what went wrong - via a sequence of beeps.
  • Too many keys were pressed at once on the keyboard.
  • The system is configured to beep whenever an alert dialog appears.

The last one I found particularly annoying when I was developing Visual Basic 6 applications at my day job. For some reason, Visual Studio 6 likes to communicate with you via alert dialogs. Visual Studio .NET corrected this - instead of a typical alert box, they list the errors and warnings in another pane. Despite this, some of our code was still in VB6, so I had to use it. Thankfully, there is an easy way to disable the beeps.

In Windows Server 2003:

1) Click Start > Run.

2) When the Run dialog appears, type "cmd" and press ENTER.

3) When the command prompt appears, type "net stop beep", and press ENTER.

Typing "net stop beep" in the console will temporarily disable the system beep feature.

If you want to disable the beep permanently, here are some instructions.

]]>
http://www.mattrefghi.com/wordpress/2010/02/how-to-temporarily-disable-system-beeps/feed/ 0
A Chrome Extension That Does Nothing http://www.mattrefghi.com/wordpress/2010/02/a-chrome-extension-that-does-nothing/ http://www.mattrefghi.com/wordpress/2010/02/a-chrome-extension-that-does-nothing/#comments Sat, 06 Feb 2010 13:02:54 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=1221 Since it was first introduced, Google Chrome has been my browser of choice. So, when version 4 was released, I was particularly pleased to see the new extensions feature. When I went to view the extensions gallery, a particular entry stood out from the rest:

The Chrome Extensions gallery features an extension that does nothing.

This extension does nothing.

Right there among the top rated extensions, I found one that did nothing:

A close-up of the Nothing extension - over 2500 ratings (4.5 star average), and 464 people are "using" it.

When I viewed the details about the extension, it became obvious that many people were fueling the joke by adding supportive comments. Still, you see glimmers of confusion every now and then.

The "Nothing" extension's page - showing comments, and more.

The last comment is my favorite.

]]>
http://www.mattrefghi.com/wordpress/2010/02/a-chrome-extension-that-does-nothing/feed/ 1
Capturing Only the Active Window with Print Screen http://www.mattrefghi.com/wordpress/2010/01/capturing-only-the-active-window-with-print-screen/ http://www.mattrefghi.com/wordpress/2010/01/capturing-only-the-active-window-with-print-screen/#comments Sun, 31 Jan 2010 16:01:10 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=1196 Print Screen takes a screenshot of the entire Windows desktop.

Print Screen takes a screenshot of the entire Windows desktop.

Ah, yes... Print Screen. I've been using the Prt Scr key for many years now - for a long time, it was my primary method of taking screenshots. However, when I started working as a developer, I quickly discovered the benefits of using specialized screenshot utilities. Presently, I use Snipping Tool and Jing much more than Print Screen. The problem was always that Print Screen would copy the whole desktop, which is particularly frustrating when you have multiple monitors. Soon after starting as a developer, I was told that pressing Alt + Prt Scr would copy only the active window to the clipboard. This proved convenient in the cases where I wanted exactly that - just one window. Compare both the screenshots in this post to get a better idea of what I mean.

Alt + Print Screen only takes a screenshot of the active window.

Alt + Print Screen only takes a screenshot of the active window.

]]>
http://www.mattrefghi.com/wordpress/2010/01/capturing-only-the-active-window-with-print-screen/feed/ 0
Task Manager Has a Tiny Footprint Mode http://www.mattrefghi.com/wordpress/2010/01/task-manager-has-a-tiny-footprint-mode/ http://www.mattrefghi.com/wordpress/2010/01/task-manager-has-a-tiny-footprint-mode/#comments Sun, 31 Jan 2010 00:04:32 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=1182 If you use Windows, chances are, you know about the Task Manager.Task Manager window showing performance data.

Windows Task Manager is a task manager application included with Microsoft Windows NT family of operating systems that provides detailed information about computer performance and running applications, processes and CPU usage, commit charge and memory information, network activity and statistics, logged-in users, and system services. The Task Manager can also be used to set process priorities, processor affinity, forcibly terminate processes, and shut down, restart, hibernate or log off from Windows.

Typically accessed via CTRL+ALT+DEL, this handy tool was never intended to be widely used. Watch below for a laugh as engineer David Bradley takes a friendly jab at Bill Gates, regarding the feature:

I use it very often, mainly to kill processes, change priorities, and monitor system performance. That's why, a few years ago, I was surprised to find a somewhat hidden feature in there. Simply double-click anywhere in the main Task Management window, and it will switch over to Tiny Footprint mode. The menu bar and tab bar disappear, and the contents are maximized.

Task Manager window showing performance data in Tiny Footprint mode.

Task Manager window showing performance data in Tiny Footprint mode. The content takes up more space, making it easier to read.

Apparently, some people were accidentally activating this mode, and didn't know how to change it back. To help those people, Microsoft added a knowledge base article. All you have to do to is double-click the window contents once more.

]]>
http://www.mattrefghi.com/wordpress/2010/01/task-manager-has-a-tiny-footprint-mode/feed/ 1
Changing Drive Letters In Windows http://www.mattrefghi.com/wordpress/2010/01/changing-drive-letters-in-windows/ http://www.mattrefghi.com/wordpress/2010/01/changing-drive-letters-in-windows/#comments Sun, 24 Jan 2010 13:16:29 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=1154 At home, I use multiple external hard drives; however, I don't always leave them on. I usually have just one of them running at a time. Today, when my turned on my main external hard drive, it was assigned the drive letter I by Windows, whereas it usually used F. This caused some problems - some of my shortcuts expect it to be the F drive.

When I look at my drives in Windows, here is what I see:

A view of my connected drives, as seen through "My Computer".

My drives. Notice how "F" is actually free?

Looking at the drives, I don't quite understand why Windows thought I would be a good idea. I'm guessing it remembers another drive that had F, and wants to reserve it. Why it didn't do that before, is beyond me.

To correct the shortcuts, I had to change the drive letter of the drive - which would make the paths valid again. I only had to do this once before, so I thought I'd offer the steps here, in case someone else would find it useful. The change is made using the Disk Management tool that comes with Windows.

In Windows 7, either:

  • Search for "Disk Management" in the Start menu, and select the "Create and format hard disk partitions" option.

or

  • In a "Run Command" window, enter "diskmgmt.msc".

You'll be presented with the Disk Management screen:

The main interface of the Disk Management dialog, which is part of Windows

Once there, simply right-click the disk you wish to change, and select "Change Drive Letter and Paths".

You'll be presented with the following dialog:

The "Change Drive Letter and Paths" dialog allows to modify the drive letter associated with any given drive.

Select the drive letter, and press "Change".

When the dialog opens, select the letter you want to use. In my case, I changed the "Assign the following drive letter:" field value from I to F.

The "Change Drive Letter or Path" dialog

After that, press OK.  You're get a warning saying:

Some programs that rely on drive letters might not run correctly. Do you want to continue?
Just press "Yes", and you're all done.
]]>
http://www.mattrefghi.com/wordpress/2010/01/changing-drive-letters-in-windows/feed/ 2
Copying the Contents of Windows Dialogs http://www.mattrefghi.com/wordpress/2010/01/copying-the-contents-of-windows-dialogs/ http://www.mattrefghi.com/wordpress/2010/01/copying-the-contents-of-windows-dialogs/#comments Sat, 23 Jan 2010 16:49:39 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=1143 As a developer, I very often see error messages - some of those originate from the products I develop, and I have to report them as bugs. Whenever I get an error message in a dialog, I typically take a screenshot, and add that to the bug base issue. That's fine, but it means people can't search for that error message in the bug base - in order to enable that, I'd usually just manually type out the error message, rather than take a screenshot. That was before. Today, I'd just press CTRL+C to copy the error dialog contents.

That's right, whenever you see a dialog in Windows, like this:

A typical Windows error message dialog.

You can press CTRL+C to copy, and then open up Notepad, and press CTRL+V to paste:

The dialog title, contents, and even the button text are saved to the clipboard.

I had no idea this was possible until I read a Lifehacker article explaining it.  Since I've started using it, I've found it very useful in my every day work. Maybe you will too!

Just a note, though - it doesn't seem to work everywhere. For example, JavaScript alert dialogs can't be copied in Firefox, but they can in Internet Explorer.

]]>
http://www.mattrefghi.com/wordpress/2010/01/copying-the-contents-of-windows-dialogs/feed/ 0
Yahoo! Answers: Coughing With Your Mouth Closed http://www.mattrefghi.com/wordpress/2009/12/yahoo-answers-coughing-with-your-mouth-closed/ http://www.mattrefghi.com/wordpress/2009/12/yahoo-answers-coughing-with-your-mouth-closed/#comments Thu, 17 Dec 2009 04:26:03 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=1031 Yet again, I was looking for some information online, and I found this ridiculous question and answer.

Question: "Can u cough with your mouth closed with out any thing happening?"

"Can u cough with your mouth closed with out any thing happening?"

While difficult to take seriously, Yahoo! Answers does at least offer a good laugh. TZAKX44YUFZ5

]]>
http://www.mattrefghi.com/wordpress/2009/12/yahoo-answers-coughing-with-your-mouth-closed/feed/ 0
To Love and Hate NoScript http://www.mattrefghi.com/wordpress/2009/11/to-love-and-hate-noscript/ http://www.mattrefghi.com/wordpress/2009/11/to-love-and-hate-noscript/#comments Sat, 21 Nov 2009 07:33:47 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=982 Mozilla Firefox has always been one of my favorite browsers. The only contender that was able to knock it from its #1 position was Google Chrome. Even though Chrome is still lacking in a few departments (extensions, bookmark management), I swear by it because of the overall performance. Plus, whenever they release a major version, I know they'll have further performance enhancements - that's just what they do. I also prefer the minimalistic nature of their user interface - which, as it turns out, also integrates beautifully with my operating system, Windows 7.

Despite Firefox dropping to #2 in my list, I still use it regularly for web development. They have plenty of extensions to keep me coming back: Firebug, Web Developer, ColorZilla, HTML Validator, and... well, NoScript. All of those extensions are excellent; however, NoScript sometimes irritates me.

NoScript Firefox extension provides extra protection for Firefox, Flock, Seamonkey and other mozilla-based browsers: this free, open source add-on allows JavaScript, Java and Flash and other plugins to be executed only by trusted web sites of your choice (e.g. your online bank), and provides the most powerful Anti-XSS protection available in a browser.
NoScript's unique whitelist based pre-emptive script blocking approach prevents exploitation of security vulnerabilities (known and even not known yet!) with no loss of functionality...

NoScript Firefox extension provides extra protection for Firefox, Flock, Seamonkey and other mozilla-based browsers: this free, open source add-on allows JavaScript, Java and Flash and other plugins to be executed only by trusted web sites of your choice (e.g. your online bank), and provides the most powerful Anti-XSS protection available in a browser.

NoScript's unique whitelist based pre-emptive script blocking approach prevents exploitation of security vulnerabilities (known and even not known yet!) with no loss of functionality...

Certainly sounds great - and it works very well too. I really get a sense of safety in knowing I can selectively enable specific elements on webpages, blocking everything else by default. The functionality they offer is great. The problem I have is more with the developers, not the extension. You see, here's the problem: NoScript is regularly updated, so you're very likely to see this on a regular basis:

NoScript is updated often - each time you choose to install an update, you have to restart Firefox.

Kind of annoying, but by itself, not a deal breaker. After an restarting Firefox due to the update, I'm immediately greeted by the following page:

The NoScript homepage - content aggressively mixed with advertising, affiliation links, and donation buttons.

Let me state this very clearly: Every time I update NoScript, I'm thrown to that page. Ugh.  Sure, they show me the change log, news, and more - but they also show me ads... a lot of them. Let's start by looking at how much of the site is devoted to ads. I'll highlight pure advertisements in red, affiliations in pink, and donation controls in orange:

The NoScript homepage with the advertising, donation controls, and affiliation links highlighted.

That's quite a lot of advertising on the main page... and it is above the fold of the page. It's not the worst I've ever seen, but it is still a significant assault on my eyes. I won't show you screenshots of what the rest of the page looks like, but trust me - it follows the same trend. If you'd like to see it all, you can visit it here. That said, I get the whole "we're starving programmers and we need the money" thing, but I expect a certain amount of elegance in pursuing revenue. Considering their previous shady practices, though, I'm not entirely surprised.

Another aspect of their advertising that particularly bothers me is how they claim to be "your friendly web cop", keeping you safe, and yet, they are suggesting software that they probably never even tried. I'm particularly referring to the "PC slowing you down? Free scan" and "Top tip! Click here to check if your drivers are up-to-date!" ads. I would never click on those things... but I know some people that might, especially if they are shown on a security-related site. At first glance, even I have to ask myself if it is an ad - it almost looks like it could be another software offering from the same company. Things like that really make me want to start using AdBlock Plus again... and that's not cool, since I am a web developer myself.

Overall, if their site was more tastefully presented, and the ads were more respectful in number and placement, I'd have less of a problem with them showing me their page every time I update. In its current state, it is just so obvious to me that they are money-hungry - to the point where they put little thought behind the resulting user experience.  Even with that aspect improved,  a pretty page could still be an annoyance if you are automatically thrown to it once a week. Thankfully, the NoScript guys have a way for you to disable the feature. Hurrah!

SolutionHow to make it so the NoScript page does not automatically appear whenever you update.

With the latest version of NoScript installed (In my case, 1.9.9.15):

1) Right-click the NoScript icon, and select Options.

2) Click the "Notifications" tab.

3) Find the checkbox titled "Display the release notes on updates", and uncheck it.

4) Click "OK".

That's it! The NoScript page should no longer be force-fed to you after every update. Take a moment to truly enjoy that fact.

If you're ever wondering about what they added in a particular update, you can check the update-specific release notes from within Firefox itself. In the Add-ons Manager, click the "Updates" tab, select the NoScript update, and click the "Show Information" button at the bottom of the dialog. Once clicked, you'll see additional information about the update:

You can view an extension's release notes right in Firefox.

Now... remind me, NoScript developers, why I need to see your homepage every time you release a new minor version? For the sake of your advertising revenue, perhaps?

]]> http://www.mattrefghi.com/wordpress/2009/11/to-love-and-hate-noscript/feed/ 0 A Good Place to Find Free Loading Animations http://www.mattrefghi.com/wordpress/2009/11/a-good-place-to-find-free-loading-animations/ http://www.mattrefghi.com/wordpress/2009/11/a-good-place-to-find-free-loading-animations/#comments Sat, 14 Nov 2009 18:57:29 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=968 As I was working on one of my personal web development projects today, I realized I would need a loading animation. Thankfully, I remembered a very useful web service I discovered a long time ago - AjaxLoad.info. The site is specifically designed to provide free, customizable loading animations - in GIF format.  They have at least 25 different types of loading animations - so if you're looking for one, I recommend you check what they have to offer.

AjaxLoad.Info - screenshot of the webpage.

As for the "free" factor - in case you're wondering: there aren't any specific licenses associated with the images, but the front page clearly states that "generated gifs are totally free for use". That said, enjoy.

]]>
http://www.mattrefghi.com/wordpress/2009/11/a-good-place-to-find-free-loading-animations/feed/ 1
An Easier Way to Search for Domain Names http://www.mattrefghi.com/wordpress/2009/11/an-easier-way-to-search-for-domain-names/ http://www.mattrefghi.com/wordpress/2009/11/an-easier-way-to-search-for-domain-names/#comments Tue, 03 Nov 2009 01:04:09 +0000 Matt Refghi http://www.mattrefghi.com/wordpress/?p=959 In the past, whenever I wanted to search for available domain names, I checked with individual domain registrars. While this worked, it really wasn't optimal- every time I wanted to check another domain's availability, I had to press Back in my browser, re-enter a domain, re-submit the request, and then I'd know. Most websites were set up like this, unfortunately. Furthermore, if I wanted to compare domain registration fees, I'd have to check multiple websites.

I'm happy to say that these inconveniences are now no longer an issue. The solution lies in a site called Instant Domain Search. The webpage aims to facilitate the process of searching for a domain, and to do so, it:

  • searches automatically as you type
  • lists different rates from leading registrars
  • lists domains names that are for sale

Check it out:

Instant Domain Search in action.

Personally, I'm never going back to the old method.

]]>
http://www.mattrefghi.com/wordpress/2009/11/an-easier-way-to-search-for-domain-names/feed/ 0