Muthu's Cloud

Every cloud has a silver lining

Excited about Google Drive. Oh no… Stop.. Read their Terms and Conditions..

Just dont get too excited about Google Drive. Did you read their License? Of course you are not.

It says the following:

our Content in our Services: When you upload or otherwise submit content to our Services, you give Google (and those we work with) a worldwide licence to use, host, store, reproduce, modify, create derivative works (such as those resulting from translations, adaptations or other changes that we make so that your content works better with our Services), communicate, publish, publicly perform, publicly display and distribute such content.
The rights that you grant in this licence are for the limited purpose of operating, promoting and improving our Services, and to develop new ones. This licence continues even if you stop using our Services (for example, for a business listing that you have added to Google Maps).”
While every one else says “Your content in our services, Google says “Our content in our services” Buddy watch it…

I love Micorsoft – Sky drive not only for they offering 25GB of storage but their Terms and conditions are so nice:

“Your Content: Except for material that we license to you, we don’t claim ownership of the content you provide on the service. Your content remains your content. We also don’t control, verify, or endorse the content that you and others make available on the service.”

Thanks to:

Cnet

Printing without Status Dialogues in C# (Silent printing)

In developer’s life, it is so common we used to encounter lot of issues. I am working in a small proof concept. Automatically printing documents to file or printer in C# (.Net Framework 4.0).

  1.         private void Print()
  2.         {
  3.             if (m_streams == null || m_streams.Count == 0)
  4.                 throw new Exception(“Error: no stream to print.”);
  5.             PrintDocument printDoc = new PrintDocument();
  6.             if (!printDoc.PrinterSettings.IsValid)
  7.             {
  8.                 throw new Exception(“Error: cannot find the default printer.”);
  9.             }
  10.             else
  11.             {
  12.                 printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
  13.                 m_currentPageIndex = 0;
  14.                 if (printDoc.PrinterSettings.PrinterName == “Microsoft XPS Document Writer”)
  15.                 {
  16.                     printDoc.PrinterSettings.PrintToFile = true;
  17.                     if (filename == “”)
  18.                         printDoc.PrinterSettings.PrintFileName = DateTime.Now.Ticks.ToString() + “.xps”;
  19.                     else
  20.                         printDoc.PrinterSettings.PrintFileName = filename;
  21.                 }
  22.                 printDoc.Print();
  23.             }
  24.         }

    But while printing the documents to file, I was annoyed by a pop up which showed me Printing page 1 of 5. I wanted to get rid of that.  
    After a bit google and MSDN, I have found that Print controller PrintController class Controls how a document is printed, when printing from a Windows Forms application.
    If you look at the PrintDocument class Meta data view, you will notice the following statement.
  1.         // Summary:
  2.         //     Gets or sets the print controller that guides the printing process.
  3.         //
  4.         // Returns:
  5.         //     The System.Drawing.Printing.PrintController that guides the printing process.
  6.         //     The default is a new instance of the System.Windows.Forms.PrintControllerWithStatusDialog
  7.         //     class.
  8.         [SRDescription("PDOCprintControllerDescr")]
  9.         [Browsable(false)]
  10.         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  11.         public PrintController PrintController { get; set; }

    MSDN states the following:
    The .NET Framework includes three print controllers that are derived from PrintController that help accomplish common tasks. The StandardPrintController prints a document to a printer. The PreviewPrintController generates a preview of what the document will look like when printed and is used by the PrintPreviewControl and PrintPreviewDialog classes. The PrintControllerWithStatusDialog provides a printing status dialog during the printing process.

    So I have just introduced a new statement before
    PrintDocument.Print()
      printDoc.PrintController = new StandardPrintController();
    Voila it started working like a magic.  Also I liked to call it as “Silent Printing”. Hope this helps some one in need.

Design magazines that must be subscribed – Part 1

I was web developer for more than 8 years. One thing which I don’t like to do is web design. I always depend on some one else for Style sheets, web sites design, images. Most of the times, I used curse myself, why I am not a web designer.

Recently, We three colleagues joined and started a small start up company called “3ITGuys“. This time I don’t wanted to depend on any one to for style sheets and images.  I started learning designing and started searching for inspirations and resources. The first design resource which I found is “smashingmagazine“.  Yes. Its love at first sight. I have subscribed them immediately.

What I liked in there web site?

  1.  Web site design (First impression)
  2. Most of the design resources web sites primarily concentrating freebies and Impressive web designs. I am kind of tired of seeing those kind of websites. Mostly those were look like copy cats. but they used change the order of the sites. But Smashing Magazine, They are really standing out in what they are doing. They are providing lots of Design resources and articles about Designs, Usability,  User Experience, Techniques and ideas like “Why free lancing gets fails” , Typography and more.

 

 

So If you wanted to start designing, I highly recommend this site to subscribe.

Configuring a MySQL 5.1 Instance on Windows 7 Professional x64 Fails

I have tried to install MySQL in Windows 7 64 bit operating system. But the installation hung at MySql Server Configuration and it was not able to create configuration file. I have tried the following.

  1. Uninstalled and reinstalled MySql
  2. Manually deleted the installation folder in C:\Program Files\MySQL\MySQL Server 5.5
  3. Temporarily disabled the firewall.
  4. Checked Event Viewer for error logs

Still it was not working. Finally I decided to check the configuration file available at C:\Program Files\MySQL\MySQL Server 5.5\bin\mysql_config.pl. You have to open it with Notepad and with Administrator privileges so that you can edit and save them.

and found the following entry were wrongly created i.e., pointed to wrong directory (Highlighted entry)

my $ldata = ‘C:/Program Files/MySQL/MySQL Server 5.5/data’;

my $execdir = ‘C:\Program Files (x86)\MySQL/bin’;
my $bindir = ‘C:\Program Files (x86)\MySQL\/bin’;

# ———————————————————————-
# If installed, search for the compiled in directory first (might be “lib64″)
# ———————————————————————-

my $pkglibdir = fix_path(‘‘C:\Program Files (x86)\MySQL/lib’,”libmysql/relwithdebinfo”,
“libmysql/release”,”libmysql/debug”,”lib/mysql”,”lib”);

 

and I changed them to point to C:/Program Files/MySQL/MySQL Server 5.5/ 

Voila., The magic happened and the configuration have been completed successfully.

 

 

Hope this helps some one in trouble.

Windows 8 – Right direction and decision at Right Time from Microsoft

Recently Microsoft has release Windows 8 Developers preview and I am very excited on seeing the preview videos. I got Lenovo W510 one of the powerful laptops available in the market. So I decided to install it and test it.

I already got 3 Operation systems in my LapTop. 1. Windows 7 Professional – Primary 2. Windows 7 Professional – Virtual 3. Kubuntu (Ubuntu) – Primary. My laptop has already 4 partitions and I was not able create one more partition for Windows 8. So I decided to sacrifice Kubuntu.

Stupid Mistake:

I have just removed Kubuntu parition from Windows 7 OS which removed the Boot loader. As a result I was not able to login to my machine at all. I dont have Windows 7 CD to recover. :-( . I was in a panic situation for moment as I didnt take back up of my machine. Then I calmed down. I have used my Windows 8 USB boot loader and repaired the Boot loader and finally I was able to login.

Partition Night Mare:

When I have tried to install Windows 8 an Unpartitioned space, It failed with usual windows error message “0XXddFFEF”. What does it mean? Who knows? And I didnt care about that. I have logged in to Windows 7 again and tried to format the Unpartitioned Disk space. For some strange reason, It didnt allow me to format and create partition on that space. After some long search I found this tool MiniTool Partition Wizard Home Edition 7.0 which helped me to partition my hard disk.

Installation:

The installation procedure went really smooth and I didnt find any difficulties. The first time boot up was slow and it gives you options to configure your default operating system and wait time. Find the attached screen shots.

Conclusion:

After the installation, Operating system expects you to provide your windows live Id. But it is optional. I have just started navigating thru various options. I am very impressed so far. Also I have decided to participate Microsofts beta testing program. This is just a beginning. Watch this space. More things to come

Introduction to Complex UIs Using jQuery UI

Guys,

I have come across this and found it is very useful..

 

Building a web application with jQuery makes the task easier. Similarly, building a web application with a complex UI is made easier with jQuery’s sister project jQuery UI. With jQuery UI we have a collection of interactions, widgets and a theme builder at our fingertips that allows us to make a cohesive UI.

 
To continue reading
click here

Android vs iPhone

When two iPhone users meets in Subway:

User 1:  Whats is it? iPhone 3?…

User 2:  Oh yeah…

User 1: Oh ok….

User 2:  ?…..

 

But when 2 Android users (Heros?!…) meets in Subway:

 

Hero 1: Hey dude.. Whats your phone?…

Hero 2: Dude., it is HTC Evo 4G  3D

Hero 1: Oh cool. So it contains Android version 2.3 right?…

Hero 2: Yes dude. It is amazing. and especially HTC Sence 3.0.

What is yours ?

Hero 1: I got HTC Evo 4G. But I rooted it to Cynogen mod 7.0

Hero 2:  Oh cool man. I have to wait for it to get for Custom ROM

Hero 1: Yeah. May be you have to wait for another month or 2.

Hero 2: Blah.. Blah….

Hero 1: Blah.. Blah….

 

Android makes friends every where except iPhone. 

 

Google Screen Capture Tool – Chrome Tools

Do you know Google Chrome has wonderful tool called Screen Capture?

It is wonderful tool which helps you to capture a entire page / region / Visible content or Screen region of the your desktop or browser. You can convert them loss less Screen shots (PNG format) or Lossy Screen Shot.

Also it helps you to define your short cut keys to capture the screen shots. Look at the following screen shot of my Chrome settings:

 

It’s easy to use this extension to capture visible content of a tab, a region of a web page, or the whole page as a PNG image.

You can also edit your captured image before saving it as a PNG image. Highlighting, redacting and adding text are supported.

What set this extension apart are:
- Super fast when capturing page image, esp. for large pages
- Support horizontal scroll for large pages that do not fit in one tab screen horizontally
- Intelligently detect floating objects on a page and avoid repeating capture of the same floating objects if whole page capture requires scrolling
- Works on Windows, Linux and Mac

You can download it from here

Are you going to install VS2010 in your new Laptop

Hi Guys,

Did you buy new laptop? Are you going to install VS2010? Please stop and read this blog. Please install them in the following order.Otherwise you are at risk to format your OS and reinstall everything once again :-(

 

1. Install IIS  with the following features: ( Control Panel –> Programs –> Turn Windows Features on / Off)

i)  Internet Information Services with the following options selected.

 

iii) Your system will be restarted once.

 

iv) Install Visual Studio 2010

 

v) Install Sql Server 2008

 

You will be good to go.

GMail new theme

GMail new Theme

Hey Friends,

 

Are you bored with old Gmail look?

Do you know you know Google has updated their Themes recently.Here we go.

 

Google introduced a new preview theme ”Preview (Dense)

 

1. Go to settings of Gmail ( write corner – circle like icon)

2. Click on Themes

 

 

3. select Preview (Dense) or Preview.

 

 

4. Thats it. Brand new look for you

 

Post Navigation

Follow

Get every new post delivered to your Inbox.

Join 65 other followers