Saturday, February 28, 2009

Disable the Dashboard from launching in Mac OS X

If you are one of the few users who hate the Dashboard in OS X or want to consume some memory, here is a easy way to disable your Dashboard from launching.

1. Open Terminal, it’s inside Utilities folder under Applications

2. Type the following command,

defaults write com.apple.dashboard mcx-disable boolean YES

This would disable the Dashboard from launching with the Finder in the dock after you restart your computer.

To undo any of these actions just use the following command,

defaults write com.apple.dashboard devmode NO

del.icio.us Tags: ,,
Technorati Tags: ,,

Friday, February 27, 2009

Detach Dashboard Widgets to live on your Mac OS X Desktop all the time

Dashboard widgets are very convenient way to launch useful applications in a second or two. If you want your Dashboard widgets to remain active in our desktop all the time without needing to launch it, here is a simple way to make your Dashboard widgets available all the time in your desktop.

1. Launch Terminal, it’s in the Utilities folder under Applications

2. Type the following in the terminal

defaults write com.apple.dashboard devmode YES

3.Logout and log back in

To detach a widget off of the Dashboard and onto your desktop, just do the following,

1. Press F12 or whatever key you assigned to activate the dashboard.

2. Begin dragging the widget and press F12 again, before letting up on the mouse button

3. Drop the widget wherever you want it to be.

Now the widget will live in your Dashboard all the time.

del.icio.us Tags: ,,
Technorati Tags: ,,

Thursday, February 26, 2009

Track your energy consumption and greenhouse gas emissions: Microsoft Dynamics

Microsoft recently unveiled its new Environment Sustainability Dashboard solution for Microsoft Dynamics AX that can use the power of software in gathering carbon footprint data and help companies focus on efficiently reducing their greenhouse gas emissions.

Energy dashboard can give in-depth data for opportunities to increased efficiency delivering bottom-line cost savings also helps track the impact on the environment.

More information can be found in Microsoft Dynamics AX website

Technorati Tags:
  
del.icio.us Tags:

Wednesday, February 25, 2009

Monitor your Electronic devices energy consumption using Cisco EnergyWise

Launched in February 2009, Cisco EnergyWise, a free software upgrade to Cisco’s entire line of Catalyst switching gear. This technology allows you to monitor the energy consumption of electronic devices in workspace and switch them off when idle.

Cisco has an online calculator which can estimate the amount of savings you can get by using the tool.

del.icio.us Tags:

Technorati Tags:

Tuesday, February 24, 2009

Bring back the Quick launch bar to Windows 7

Lot of Windows users use the Quick launch bar to use the programs they use frequently, Windows 7 a new Taskbar is more useful than the Quick Launch bar. What if you like the Quick launch bar better?

Here is how you could bring back the Quick launch bar back to Windows 7.

1. In start menu type Edit group policy or in the Run dialog type gpupdate.msc

2. Click on User Configuration, Administrative Templates & Start Menu & Taskbar.

3. Double click on “Show quick launch on taskbar”, select Enable

4. Click on the Tasbkar –> Toolbar and New Toolbar

5. Navigate to C:\Users\<username>\AppData\Roaming\Microsoft\Internet Explorer and select Quick launch folder and press Select Folder

Now you can use the Quick launch like the way you are used to.

Technorati Tags: ,

del.icio.us Tags: ,

Monday, February 23, 2009

Windows 7 Beta hotkey cheat sheet

If you are already having fun with Windows 7 beta, here is a cool cheat sheet with very useful hotkeys.

General Hotkeys:

Win+Up Maximize
Win+Down Restore / Minimize
Win+Left Dock a window to left hand side of the screen
Win+Right Dock a window to right hand side of the screen
Win+Shift+Left Jump to left monitor
Win+Shift+Right Jump to right monitor
Win+Home Minimize / Restore all other windows
Win+T Focus the first taskbar entry (Pressing again will cycle through them, you can can arrow around.)
Win+Shift+T cycles backwards.
Win+Space Peek at the desktop
Win+G Bring gadgets to the top of the Z-order
Win+P Project to external display options (projector, extend desktop, etc)
Win+X Mobility Center (same as Vista, but still handy!)
Win+# (# = a number key)
Launches a new instance of the application in the Nth slot on the taskbar.
Example: Win+1 launches first pinned app, Win+2 launches second, etc.
Win + + Zoom in using magnifier
Win -- Zoom out using magnifier

 

Windows Explorer

Alt+P Show/hide Preview Pane

Taskbar modifiers

Shift + Click on icon Open a new instance
Ctrl + Shift + Click on icon Open a new instance as Admin privileges
Shift + Right-click on icon Show window menu (Restore / Minimize / Move / etc)
Right-click on icon History of previously visited
Shift + Right-click on grouped icon Menu with Restore All / Minimize All / Close All, etc.
Ctrl + Click on grouped icon Cycle between the windows (or tabs) in the group


For a complete list of Windows Vista hotkeys (which should be largely unchanged except where noted above), visit this page on Microsoft.com or look in the Windows Help file.

If there’s something you think I should add, post a comment!

del.icio.us Tags: ,,

Technorati Tags: ,,

Sunday, February 22, 2009

Snipping Tool: Capture Screenshots

Many are still agnostic about an in-build tool available in Windows Vista that is capable of taking screenshots and windows snippets.

Snipping Tool is located under All Programs –> Accessories

or you can search for Snipping Tool in Start Menu search box.

It’s capable of making Free-form snip, Rectangular snip, Window snip and a Full screen snippet.

Technorati Tags:

del.icio.us Tags:

Saturday, February 21, 2009

Customize Google using Firefox browser extensions

You can make your Google searches faster, smarter and safer in your firefox browser using Firefox extensions. All tools are available for free in download.com

CustomizeGoogle:

CustomizeGoogle is a Firefox extension that lets you add search results from other search engines like MSN, Yahoo etc., it also removes ad’s from google. All features can be configured from the options menu in Tools –> CustomizeGoogle Options.

GooglePreview:

GooglePreview is a Firefox browser extension which lets you view thumbnails of websites, Amazon or ebay products, stock charts, in Google or Yahoo search results page.

McAfee SiteAdvisor:

McAfee SiteAdvisor is a browser extension available for both Internet Explorer and Firefox. It warns you about Web-based security threats including spyware, adware, spam, viruses, browser exploits, and online scams.

del.icio.us Tags:
Technorati Tags:

Friday, February 20, 2009

TinyChat: The instant online chat room

Tinychat is a very simple website to create online chat room with just one click of a button. It generates a unique URL where others can use to join the chat room.

Here is an example chat root. Tinychat came online on January 25, 2009 and getting really popular as the hang out spot for Twitter users

Chatzy is another similar online.

Technorati Tags: ,

del.icio.us Tags: ,

Thursday, February 19, 2009

Edit Boot configuration : BCDEDIT

Boot configuration in Windows XP can be modified my editing the boot.ini file. Since Windows Vista, followed by Windows 7 and Windows Server 2008 there aren’t any boot.ini file, it’s being replaced by BCDEDIT options.

BCDEDIT is a command line utility that lets you modify the Boot configuration from an elevated command prompt. bcdedit /? will show all the possible options.

bcdedit /enum will enumerate all the current boot options

Before editing the boot settings EXPORT your boot settings, just in case you want to revert back the changes.

bcdedit /export <path>

<path> is the file system path where you want to save your back-up.

Importing the settings can be done by using /import switch

Create a new boot entry:

bcdedit /copy {current} /d “Windows 7”

A new entry would be created, make sure you copy the GUID displayed or you can get it back from /enum

C:\Windows>bcdedit /copy {current} /d "Windows Seven"
The entry was successfully copied to {abaf4cf1-d937-11dd-b0dc-a58f6476c5bd}

Editing the partition to boot:

C:\Windows>bcdedit /set {abaf4cf0-d937-11dd-b0dc-a58f6476c5bd} systemroot \Windows7

\Windows7 is the partition where my Windows 7 files are located.

If you are craving why isn’t there a UI, well, here is your answer. After creating an entry this would show up in msconfig tool and you can do the rest of the settings via the msconfig tool.

In Run or Start menu search box, type msconfig, to launch the msconfig tool.

image

Now, you can change the timeout before boot, Set a default partition etc.

del.icio.us Tags:

Technorati Tags:

Wednesday, February 18, 2009

Google Gears : Check your Gmail emails offline (without Internet connection)

Google Gears is an open source project that allows web application to be more powerful. Using Gears you can access your Gmail offline, when there is no internet connection.

Here is how you do it,

Install Google Gears from http://gears.google.com

Restart your Internet Browser and log-in to your Gmail.

Click Settings in the upper right and navigate to Labs tab.

Select Enable and press Save Changes

Now, you will see Offline in the upper right, click on it to install Offline access for Gmail.

Sync is pretty fast from my personal experience, there is also  a Progress bar which indicates how many messages have been archived for Offline access.

Now you can Search your Gmail and compose mail even when you have no Internet connectivity.

Thunderbird is also another tool that let you access your email offline.

Technorati Tags:

del.icio.us Tags:

Tuesday, February 17, 2009

Memory allocation and Constructors in C++

Similar to C, C++ objects can be allocated in three ways:

On the stack (automatic storage)

Fixed address (static storage)

On the free store (on the heap, dynamic storage)

Complementing malloc() and free() in C, C++ uses new() and delete()

Technorati Tags:

del.icio.us Tags:

Monday, February 16, 2009

Base Class access specifiers : C++

Access is controlled, not visibility in C++. It’s easy with a easy example to wrap your head around this.

Rule 1) Whether the derived class declares the base class using the public access specifier in the class-head

Private base class members: Inaccessible

Protected: Will be protected unless its private

Public: Will be public unless private or protected is used.

Rule 2) What the access to the member is in the base class.

A derived class without a base-class access specifier, is considered private if the derived class declaration uses the class keyword. The derivation is considered public if the derived class declaration uses the struct keyword.

class Derived : Base

is similar to, class Derived : private Base

struct Derived : Base

is similar to, struct Derived : public Base

MSDN example illustrates this very clearly.

del.icio.us Tags:

Technorati Tags:

Sunday, February 15, 2009

Subconscious Binary to Decimal conversion and vice versa

Here is a quick tip to do Binary to Decimal conversion and vice versa in your subconscious mind without using any external tools.

Binary is a base 2 system, which means there is either zero or one.

Converting from Decimal to Binary :

Step 1:

First lets convert a decimal number 23 to binary. We are trying to split the number 23 in the following buckets from left to right.

16

8

4

2

1

Step 2:

Starting with the first bucket, how many 16’s are in 23, which would be one and the remaining would be 7, fill in the buckets with either 1 or 0, and keep subtracting as you go. Now we got the binary equivalent of 23

1

0

1

1

1

Converting from Binary to Decimal:

Here is a binary number, lets try to convert to decimal

0

1

1

1

0

Step 1:

We are trying to add up for every 1’s using the following template in the following buckets from left to right.

16

8

4

2

1

Step 2:

There is one 8 + one 4 + one 2 = 14

Tag your music files

Music Tag editor is a free tool available for download here. Changing the metadata of music files can be a long grueling process when done manually.

This tool offers an easy menu to change tag information, much better tagged information can be downloaded automatically from freedb.org.

My MP'3’s, MP3 Tag ($24.95), Media Monkey Standard, 123Tag and CATraxx ($39.95) offers various features for music tagging.

Technorati Tags:

del.icio.us Tags:

Saturday, February 14, 2009

Replace XP address bar with Vista style Breadcrumb bar

If you are one of those folks who haven’t found a reason to upgrade to Vista yet but still interested in using Vista style Breadcrumb bar, fortunately for you Quizo's software have made a plug-in that brings the Vista breadcrumbs to Windows XP.

You can download from their website.QT Address Bar Screen 1

Once you have installed their plug-in you have to enable it in the Windows Explorer to see it.

QT Address Bar Screen 2

If the bar is not positioned right, unlock the toolbar and place it in the right stop and lock the toolbar.

del.icio.us Tags: ,

Technorati Tags: ,

Friday, February 13, 2009

Cloud computing: Future of technology consumption

Cloud computing is still at its early stage, but its the future of how technology will be consumed online. The primary advantages are great cost savings for a reliable, stable and scalable service.

Scalability : Depending on utilization or demands you can easily to grow or shrink your hardware resources on the cloud on demand with no difference to the consumers.

Instant: Resources are there whenever you need it. Servers are released back to the cloud when not in use.

Savings: Pay for what you use. You can work on building your business instead of worrying about hardware and scalability.

The future of Cloud computing is very promising, loosely coupled services running on an agile, scalable infrastructure should eventually make every enterprise a node in the cloud.

There are plenty of service providers and it depends on what is right for your business. I have listed few simple tools and websites which offers services without snapping off your budget.

Amazon Simple Storage Service:

Also called S3 is a pay-as-you go service which offers storing and retrieving any amount of data on the web. aws.amazon.com/s3 has a simple calculator to compare costs.

Basecamp:

There is a 30 day free trial for this service which will enable you for collaborative environment. The services are priced at $24 per month includes 3GB of space, unlimited users and 15 active projects. basecamphq.com has more information.

Mozy:

Starting at $4.95 per month offers unlimited backup of your hard drive on the cloud. Pro and Enterprise solutions are available at mozy.com

Joyent:

Offers collaborative communications, on-demand storage and scalable infrastructure. Starts at $45 per month, more information can be found at joyent.com.

Technorati Tags:

del.icio.us Tags:

Thursday, February 12, 2009

Restoring deleted Recycle Bin icon in Windows Vista

Deleting the Recycle Bin in Desktop doesn’t really delete the actual Recycle Bin, it just deletes the Recycle Bin icon in the desktop.

If you have accidently deleted the Recycle Bin, here is a way to restore it.

  • Open the Control Panel from the Start menu
  • In the search box in top right corner of Control Panel window type “Recycle Bin”
  • Select the first option “Show or hide common icons on the desktop” under Personalization.
  • Select Recycle Bin and click ok.
  • Now your Recycle Bin icon is restored to your desktop.

    Wednesday, February 11, 2009

    TuneWiki app gives song’s lyrics on your phone

    TuneWiki is a free Google Andriod music player which provides lyrics while the song is being played, download songs for free and play music videos.

    You can use TuneWiki to create a playlist, listen to top 50 videos and songs, and search for song lyrics in multiple languages. TuneWiki's real ambition shows in its tools to search, save, and play YouTube music videos with synchronized lyrics

    del.icio.us Tags: TuneWiki

    Technorati Tags: TuneWiki

    Tuesday, February 10, 2009

    Plants that Give You Better Indoor Air

    Kamal Meattle used at a New Delhi business part just three indoor plant species to increase oxygen, filter air, and boost general health.

    Kamal’s presented this at TED 2009 conference. Check out his slides at How to Grow Your Own Fresh Air - TED 2009 Talk.

    Technorati Tags:

    del.icio.us Tags:

    Monday, February 9, 2009

    Microsoft Offering Free Domain Name and Hosting for 1 Year

    Microsoft Office Live Small Business offers a domain name (any available .com, .net, .org, or .info), email, business management tools, collaboration tools, and more, for free.

    Check in with the Microsoft Office Live Small Business video tour for more information on what to expect if you decide to sign up. The service is free for one year, and a nominal fee of $15/year after that.

    del.icio.us Tags:

    Technorati Tags:

    Sunday, February 8, 2009

    Update Facebook and Twitter at the same time

    Here is a quick way to set your Facebook status every time you update your Twitter status.

    Login to your Facebook and add the Twitter application and select

    “Allow Twitter to update your Facebook Status”

    Now your Facebook and Twitter accounts work in harmony.

    Technorati Tags:

    del.icio.us Tags:

    Saturday, February 7, 2009

    Secure your Windows Vista PC

    Windows Vista is the most secure OS available from Microsoft till date, but it takes some extra steps to keep the bad guys at bay. There is a wealth of in-box features available in Vista to accomplish this and in some cases adding a few pieces of software would help lock down your computer.

    Windows Update:

    windows-update Run Windows Update frequently to keep updated with latest critical Microsoft updates. Type Windows Update in the Start menu search box (Press Start button and type)

    Windows Security Center:

    Current health status of your computer can be monitored at Windows Health Center (Click Start, Control Panel, Security Center, or you can simply type 'security' in the Control Panel Search box). Red or Yellow status implies you are not fully protected. There is no in-box antivirus software, I would recommend AVG Anti-Virus 8, its free.

    Windows Defender :

    defender

    Windows Vista ships with Windows Defender in-box and protects your computer against pop-ups, slow performance and security threats caused by spyware and other potentially unwanted software. Easy way to find out this application is to type 'Defender' in your Start menu search (Hit WinKey and start typing).

    Enable Windows Firewall for Inbound and Outbound connections:

    firewall Windows Firewall in Vista blocks incoming traffic that is considered malicious or suspicious by default, but outbound traffic flies under the radar. This setting can be changed via Windows Firewall Advanced Security option. Open Start menu or click on start button and type wf.msc and hit enter. For each profile--Domain, Private, and Public--change the setting to Block, and then click OK.

    3rd party firewall protection:

    zonealarm I recommend adding a more robust third-party firewall. I suggest either Comodo Firewall Pro or ZoneAlarm, both of which are free and fare very well in independent firewall testing.

    Restrict Unwanted Guests:

    autolock

    If you share your computer, you don’t want the other users to guess the Admin password.

    Here's how to limit the guesses.

    1. Click Start, type Local Security Policy.
    2. Click Account Lockout Policy.
    3. Choose Account Lockout Threshold.
    4. At the prompt, enter the number of invalid log-ins you'll accept (say, 3).
    5. Click OK and close

    Secure Your Internet Explorer Settings

    IE Windows Security Center also monitors your Internet Explorer Security settings and alerts you if they aren’t at recommended levels.

    You can adjust the settings in your IE to make it more secure by doing the following,

    1. Within Internet Explorer, click Tools in the menu bar.
    2. From the drop-down menu, click Internet Options.
    3. Choose the Security tab.
    4. Within the Security tab, click Custom Level.

    Secure your DNS with OpenDNSopendns-

    Domain Name System (DNS) is an internet service that translates domain names in to IP addresses. For example, the domain name www.example.com might translate to 198.105.232.4. Lately, DNS servers have come under attack, where crooks try to redirect commonly used DNS names to their own servers. One way to stop such attacks is by using OpenDNS.

    Go to Start, Control Panel, Network and Internet, and then click Network and Sharing Center. Under the tasks listed on the left, click Manage Network Connections. In the Manage Network Connections window, do the following.

    1. Right-click on the icon representing your network card.
    2. Click Properties.
    3. Click Internet Protocol Version 4.
    4. Click the Properties button.
    5. Select the Use the following DNS server addresses radio button.
    6. Type in a primary address of 208.67.222.222.
    7. Type in a secondary address of 208.67.220.220.
    8. Click OK.
    Live With User Account Control
    uac

    UAC is one of the controversial security features in Vista, but UAC is meant to warn you of potential danger. So if you wish not to deal with UAC frustrations and don’t want to turn off this setting, try TweakUAC instead, a free utility that offers the ability to turn UAC on or off as well as an intermediate "quiet" mode that keeps UAC on but suppresses administration elevation prompts.

    Check my previous blog to Dealing with UAC frustrations

    Generate System Health Report:HealthReport

    Generate a system health report to check all your tweaks are in place. Open the Control panel and type Generate a system health report in the search box.

    *adapted from PC World with more info.

    del.icio.us Tags: ,

    Technorati Tags: ,

    Friday, February 6, 2009

    Tuning up your Windows XP Operating System

    There is no one single software that can take care of tuning up every part of your Windows XP Operating Systems, though they like to claim so. Here are some expert tips to tune up and tweak your XP OS.

    1. Run Windows Update or use the "Automatic Update" option and update your driver software's from manufacturers website.

    2. Install Anti-Virus tool, there are plenty of free and licensed tools. AVG is the one I would recommend and its free. Do a complete scan regularly.

    3. Install Anti-spyware software (Ad-aware, Spybot S&D & Spyware Doctor are all good ones) and keep it updated. Spyware Blaster runs in the background and stops spyware installing itself.
    Do a complete scan regularly.

    4. Enable "Windows Firewall" and download Zone Alarm its free.

    5. Clear all unused items in Start Up (Start menu -> All Programs -> Startup)

    6. Open appwiz.cpl in Run dialog (WinKey + R) and uninstall unused software applications.

    7. Keep your desktop clean to increase the startup time, or move them other than Desktop.

    8. Clear Start menu list in taskbar start menu properties

    9. Internet Explorer: Delete "Temporary internet files"

    10. Delete Prefetch and Temp folder contents in Windows Folder

    11. Open msconfig tool (Start>Run> "msconfig") and navigate to Services and Startup tabs to remove unused services.

    12. Delete items from systray that are not used.

    13. Clear Recycle Bin contents periodically.

    14. Run Windows Disk Cleanup , right click on a drive from My Computer, select properties and click Disk Cleanup.

    15. Run MS Disk Defragmenter at least once in 3 months.

    Technorati Tags: ,

    del.icio.us Tags: ,

    Thursday, February 5, 2009

    Windows Debugging Skills: Why is it crucial?

    Its estimated that developers spend 60-70% of the overall development time in debugging. In fact, debugging is responsible for 80% of all software project overruns.

    Debugging is difficult mostly because of the fear of unknown as its hard to determine how long will it take to find and fix errors, not to mention whether or not the defect will actually be fixed.

    It remains a big challenge for developers to first discover that a problem exists, classify the bug, locate the issue actually lies in the code, and finally create a solution to fix the issue without regressing new bugs.

    My next posts will be targeted specifically on tips, suggestions, tools and processes to improvise your debugging skills, ultimately reduce the turnaround time to fix bugs.

    del.icio.us Tags:

    Technorati Tags:

    Wednesday, February 4, 2009

    Windows Key Shortcuts

    There are a bunch of things that can be done using standard Windows key shortcuts. I have listed a few here.

    If you are already a Windows user, you probably know pushing the Windows Key would bring up the Start Menu.

    WinKey + B: Navigate to the first item in the System tray or the notification area, use tab or arrow keys to navigate around the taskbar.

    WinKey + D: Show Desktop (minimizes all the open windows)

    Pressing WinKey + D again or WinKey + Shift + M would unminimize all windows

    WinKey + F: Opens the Search Window.

    WinKey + R: Opens the Run dialog

    WinKey + Tab: Tab through different window, gives a full 3D-Flip explorer window view unlike alt+tab

    WinKey + Ctrl + Tab: Shows the 3d-Flip explorer view and can be scrolled using left, right, up and down keys.

    WinKey + T: Cycles through open applications via Taskbar

    WinKey + Pause/Break: Opens the System properties window. Opening Sysdm.cpl in Run dialog would do the same.

    WinKey + F1: Windows Help

    WinKey + L: Locks the Computer, user needs to re-login

    WinKey + U: Ease of Access settings

    WinKey + Spacebar: Opens the sidebar if its already open.

    Ctrl + Shift + Esc : Opens the Task Manager

    Menu Bar: Press the alt key to toggle on/off the Menubar.

    User Logging Shortcuts:

    Shutdown: WinKey (and then) three right arrows and press Enter
    WinKey (and then) three right arrows and press U
    Restart: WinKey (and then) three right arrows and press R
    In Run dialog type: Shutdown /r /t 0
    To Switch Users: WinKey (and then) three right arrows and press W
    Sleep mode: WinKey (and then) one right arrow and press Enter

    Customized shortcuts:
    Users can customize their own shortcuts with as many shortcut keys that Windows can offer. There are many everyday applications which might not have a convenient shortcut so the user can create their own shortcuts.
    To set a shortcut, type the name of the application in the Start menu search box, right click on the application, select properties and navigate to the shortcut tab. Enter the shortcut key which you want to activate the application with.

    Copy As Path:
    To copy the entire tree stucture of a file or a folder, select the file/folder and shift right click to see Copy As Path option in the context menu.

    Open an elevated command prompt:
    Here is a simple way to open a command prompt with Administrative privileges. Open the start menu and type cmd, press Ctrl + Enter when it appears.

    Technorati Tags:
    del.icio.us Tags:

    Tuesday, February 3, 2009

    Who is a Technology Guru?

    "The university training, for me, wasn't the classes. The process of training your mind to think critically and how you build a frame of reference; how you go about decision making and problem solving. You learn to look for interrelationships" - Dwain Kinghorn, Altris (Symantec Corp.)

    "People will no longer care about the desktop, they'll just care about the applications and data. This is of course what the desktop is today, it's just a way to find applications and data, so once the Internet takes over that role the desktop will lose importance." - Mark Shavlik, Shavlik Technologies LLC

    Who is a Technology Guru:

    Technology gurus come in all shapes and sizes, from all different backgrounds. Some are naturally gifted, other work their butts off to get that smart. The lesson here is that almost anyone, with the right education, avocation and inspiration, can become a guru.


    "A person's limitation on what they can achieve in life are not the limitations of abilities and skills, but the mental barriers that exist in the person's head about what they can be. The more barriers we can break in our heads, the more we can achieve" - Ratmir Timashev, Veeam Software, Aelita Software (acquired by Quest)

    del.icio.us Tags:

    Technorati Tags:

    Monday, February 2, 2009

    Robocopy for fast copy operations across network

    Robust File Copy is a command line utility is available in Vista and Windows Server 08, also its in Windows Resource Kit.

    Usage in Command Prompt:

    Robocopy source_path destination_path file_name

    Robocopy /? gives more usage information

    Robocopy provides key advantages when it comes to copying files over network like taking care of network outages and resuming copy and progress indicator.

    del.icio.us Tags:

    Technorati Tags:

    Sunday, February 1, 2009

    The art of reading code


    It’s harder to read code than to write it” – Joel Spolsky

    Code is read more often than it is written” – Adam Barr

    There is plenty of information about writing code, improvising your code, writing an efficient code blah, blah.. blah.. but ability to read code is an area often overlooked.

    Let me start with a simple question. We are going to see 3 program examples and I have only one question, what does this program do? I can give one hint, the answer is not, it depends, we aren’t Lawyers :)


    1)

    using System;
    using System.Windows.Forms;
    class Script
    {
    static public void Main(string[] args)
    {
    MessageBox.Show("Hello World!");
    for (int i = 0; i < args.Length; i++)
    {
    Console.WriteLine(args[i]);
    }
    }
    }

    Code language: VB.NET

    2)

    main() { printf("hello, world"); }

    main( ) { extrn a, b, c; putchar(a); putchar(b); putchar(c); putchar('!*n'); }

    a 'hell'; b 'o, w'; c 'orld';

    Code language: C++

    3)

    <service name="GreeterUMO">

    <inbound>

    <stdio:inbound-endpoint system="IN" transformer-refs="StdinToNameString"/>

    </inbound>

    <component class="org.mule.example.hello.Greeter"/>

    <outbound>

    <filtering-router>

    <vm:outbound-endpoint path="chitchatter"/>

    <payload-type-filter expectedType="org.mule.example.hello.NameString"/>

    </filtering-router>

    <filtering-router>

    <vm:outbound-endpoint path="userErrorHandler"/>

    <payload-type-filter expectedType="java.lang.Exception"/>

    </filtering-router>

    </outbound>

    <default-service-exception-strategy>

    <vm:outbound-endpoint path="systemErrorHandler"/>

    </default-service-exception-strategy>

    </service>
    <custom-transformer name="StdinToNameString" class="org.mule.example.hello.StdinToNameString"/>
    <service name="ChitChatUMO">

    <inbound>

    <vm:inbound-endpoint path="chitchatter" transformer-refs="NameStringToChatString"/>

    </inbound>

    <component class="org.mule.example.hello.ChitChatter"/>

    <outbound>

    <outbound-pass-through-router>

    <stdio:outbound-endpoint system="OUT" transformer-refs="ChatStringToString" />

    </outbound-pass-through-router>

    </outbound>

    </service>
    Code language: Mule
    In essence, all three of them do pretty much the same thing, which is write "Hello World"
    Why read code?

    Style: look at examples of how others write code

    Transition: The code you own today might be owned by someone else and vice versa
    Example: Used to figure out how something is done.
    Improvise: add to or change the code
    Review: participate in formal or informal review
    Bug: debug an issue in a broader code base
    Interview: developing interviewing skills.
    Lets chew on this topic a bit, will talk about reading code in detail in my next blog.

    del.icio.us Tags:

    Technorati Tags: