The shortcut to locking your Windows desktop Comments

Download Squad by Grant Robertson - Jun 25, '07 11:30am

Filed under: , , ,

Here's a neat trick for those of you with a paranoid need to lock down your workstation on a regular basis. Sure, you could hit Ctrl-Alt-Del and click "Lock Workstation" but, that's a multi-keystroke + mouse kind of operation. Hackaback writes with a better and quicker way.

Create a new shortcut anywhere you like on your desktop, and instead of giving the target to an application or document, use this: "rundll32 user32.dll, LockWorkStation". Name it what you will -- "Lock me!" comes to mind -- and you'll have a double-clickable icon that will instantly lock up your valuable data.
Read | Permalink | Email this | Comments

Be the first to comment this (no registration)

Corbis' microstock site lets photographers set fee Comments

CNET News.com - Jun 25, '07 6:10pm
SnapVillage, launched Monday, differs from rivals in letting contributors decide how much they want to charge for images.
Be the first to comment this (no registration)

eBay Ads Back on Google Comments

BetaNews.Com - Jun 25, '07 11:55am
eBay has resumed advertising on Google AdWords, a little over a week after it stopped advertising on the site in an apparent retaliatory move over Google's planned protest party at the eBay annual seller's conference in Boston.
Be the first to comment this (no registration)

Google Scalability Session Report Comments

InfoQ Personalized Feed for Unregistered User - Registered to upgrade! - Jun 25, '07 5:05pm
Dare Obasanjo shared his notes on a session given by Jeff Dean at the Google Conference on Scalability, "MapReduce, BigTable, and Other Distributed System Abstractions for Handling Large Datasets".
Be the first to comment this (no registration)

Title buffer overflow in Safari 3.0.2 for Windows Comments

CNET News.com - Jun 25, '07 1:35pm
Blog: A recently patched browser from Apple springs another leak.
Be the first to comment this (no registration)

A look at Ruby on Rails IDEs Comments

InfoWorld Daily by Tom Sullivan - Jun 25, '07 2:59pm
App dev: Martin Heller has an update on Ruby on Rails IDEs. Those would be Aptana IDE + Rails (nee RadRails), Ruby in Steel and ActiveState Komodo. "The Rails IDE market is continuing to evolve quickly," Heller explains. Editor's letter: Jon Williams has moved his New York CTO blog to InfoWorld.com, and three people have joined the Open Sources blog: Zack Urlocker from MySQL, Savio Rodrigues from IBM, and Dave Dargo. Whereas Dargo is a "man of mystery and intrigue," editor in chief Steve Fox writes, "the most surprising name here is probably Savio's because he works for a company... READ MORE
Be the first to comment this (no registration)

TorrentSpy begins weeding out copyright content Comments

CNET News.com - Jun 25, '07 12:55pm
Blog: As company battles accusations that it aids copyright violators, TorrentSpy founder launches filtering system.
Be the first to comment this (no registration)

Apple patches Safari a second time Comments

InfoWorld: Top News - Jun 25, '07 11:14am

(InfoWorld) - Apple Friday issued security updates to patch four vulnerabilities in Mac OS X and the Safari beta, marking the second time in eight days that the company has had to fix its newest browser, which runs on both Mac and Windows XP and Vista machines.

The 2007-006 update for Mac OS X 10.3, "Panther" and 10.4 "Tiger," fixes a pair of problems in Safari -- the production-quality versions bundled with the operating system -- including a memory corruption vulnerability that could end with an attacker in control of the Mac. "Visiting a maliciously crafted Web page may lead to an unexpected application termination or arbitrary code execution," Apple said in its alert.

The second bug, and to Apple, the less serious of the two, is a cross-site scripting flaw (XSS) in Safari that could be used by phishing sites to steal usernames and passwords.

Apple Friday also updated the Safari beta, first released June 11, to version 3.0.2 for both Mac and Windows. Mac Safari 3.0.2 patches another XSS bug, while the Windows edition fixes that, plus a separate vulnerability that could let an attacker disguise the browser's address bar, perhaps as part of a spoofed site meant to trick users into divulging confidential information, such as bank account passwords.

For Mac users, 2007-006 and the Safari update are mutually exclusive. If a Mac user has installed Safari Beta 3, only the Safari update will be offered; users who haven't bothered to try out the beta will see only the standard Mac OS X update. Windows users can update Safari to 3.0.2 by downloading the new version from Apple's site, or by running the optional Apple Software Update utility.

The just-patched Safari bugs were credited to a team at Adobe Systems, as well as to researchers at Westnet, an Australian Internet service provider, and Westpoint, a U.K.-based security company. None were accredited to Dave Maynor, one of several researchers who dug up vulnerabilities within a few hours of Safari 3.0's launch last week. Maynor, who said he had found half-a-dozen bugs straight away, refuses to disclose his findings to Apple, part of a year-long feud that goes back to a wireless hack demo Maynor and another researcher gave at last August's Black Hat security conference.

"Due to the cries of 'it doesn't count, it's beta,' we are waiting to release any further information till the browser is released in a final state," Maynor said in an e-mail earlier this week.

Be the first to comment this (no registration)

Visual ReSharper Comments

ASP.NET Weblogs by Bil Simser - Jun 25, '07 11:52am

ReSharper 3.0 is out now in final form and looks great. Here's a visual walkthrough of some of the 3.0 features, along with some old and otherwise existing ones ReSharper has to offer.

Code Analysis

ReSharper 3.0 has more code analysis features than previous versions. For example here it tells me that I can make this field read-only. Why? Because it's only ever initialized in the declaration and never gets assigned again. You'll also get this suggestion with fields that are initialized in constructors only (but this is a test fixture so there's no constructors). A quick hit of Alt + Enter and I can change this field to the suggestion ReSharper is offering.

ScreenShot010

Putting your cursor on the field and hitting Ctrl + Shift + R let's you select from a list of applicable refactorings. By applicable I mean they're context sensitive to the type, scope, and value you're looking at. For example here I get a set of refactorings I can do to a field.

ScreenShot011

Now if I hit the same shortcut on a method I get these offerings. Note that I can now invoke the Change Signature refactoring (and others) but Encapsulate Field is no longer available. ReSharper recognizes I'm in a method and not a field and does things in a smart fashion by filtering the refactoring menu down to only what's valid.

ScreenShot012

Another suggestion is when methods are only ever referenced by a local class and don't access external values or objects. In that case, ReSharper will suggest that you make the method static. This will reduce on execution time (but we're only talking about saving a few mips here, so don't get too excited).

ScreenShot013

With this (and other refactorings) you can press Alt + Enter to see a list of options. This also appears as a small light bulb in the left hand gutter and shows you a list of refactorings and optimizations you can perform on a method or variable.

ScreenShot014

Navigation

ReSharper not only offers great productivity with it's refactorings, but it really helps out when you're trying to navigate around your codebase. With a few simple keystrokes, you'll be flying through your code in no time.

You can search for a type name by pressing Ctrl + N. This brings up a window for you to type in and narrow down the search. For example here I entered "MI" which shows me all the classes that start with "MI". You'll also notice that "ModuleInfoElement" is also included. This is because the search filters on CamelCase names, which you can also filter down even further.

ScreenShot015

Here we've filtered the "MI" list down a little more by entering "MIC".

ScreenShot016

Even further we enter "MICV" which shows me the view, presenter, and fixture.

ScreenShot017

Documentation and Guidance

ReSharper also knows about your code and can tell you about it. This helps as sometimes you just don't know what a method is expecting or why a parameter is passed to a method.

Here I have my mouse cursor in the parameter to the Add method and pressed Ctrl + P to show parameters and documentation. This is culled from the XML comments in your codebase so it's important to document these!

ScreenShot019

ReSharper also has the ability to generate some simple documentation (via the Ctrl + Q key) in the form of a popup. This provides information about a type, it's visibility, and where it's located (along wtih hyperlinks to types in the popup). Very handy for jumping around (although you do have to engage the mouse).

ScreenShot022

Other Productivity Features

A few other small features that I always find useful.

Ctrl + Shift + V

This pops up a dialog which contains all of the things you've recently copied to the clipboard. You can just highlight the one you want and insert it. Very handy when you have a small snippet that you want to re-use.

ScreenShot023

Ctrl + Alt + V

One of my favorites as I hate typing out values for objects. I'd rather just create the object and not worry about it (ala Ruby) however in C# you do sometimes want a variable around. ReSharper helps you by creating a dialog for taking a method and introducing a variable. It understands the return type and even suggests a name for you. Very quick when you want to reduce the keystrokes:

ScreenShot027

There are a ton of more features that are out there. If you're interested, you should check out Joe White's 31 days of ReSharper he posted back in March/April that has a small tip every day from installation and setup to almost all of the refactorings and tools ReSharper has to offer. Awesome.

Be the first to comment this (no registration)

LinkedIn to open up to developers Comments

CNET News.com - Jun 25, '07 9:42am
Blog: The social networking company plans to launch an API to connect to other services.
Be the first to comment this (no registration)
© 2007 · wiredb.com · All trademarks are properties of their respective owners.