Sivish Web Solutions

Navigation Menu

Visual Studio 2012 Release Candidate – Set up Experience..

Posted by on May 31, 2012 in ASP.NET, Blog, c#, VS2012 | 0 comments

Visual Studio 2012 RC has been released today. and I am very happy to download and install Express edition for Web. ¬†I cannot resist myself ūüôā So quickly I would like to share my set up experiences. The installer has been modified to match Windows 8 standards.¬†While installing the ¬†product, it wanted me to restart my machine couple of times. First time, after installing the framework (.Net Framework 4.5) and second time after installing the complete product. So look at the screen shots below in the order.. ūüôā This slideshow requires JavaScript. You can found “what’s New” from the following link. I will be back with few tutorials about new...

Read More

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

Posted by on Apr 25, 2012 in Blog, Google | 0 comments

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:...

Read More

Printing without Status Dialogues in C# (Silent printing)

Posted by on Apr 24, 2012 in Blog, c#, Printing, VS2010 | 3 comments

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). ¬† ¬† ¬† ¬†¬†private void Print() ¬† ¬† ¬† ¬† { ¬† ¬† ¬† ¬† ¬† ¬† if (m_streams == null || m_streams.Count == 0) ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† throw new Exception(“Error: no stream to print.”); ¬† ¬† ¬† ¬† ¬† ¬† PrintDocument printDoc = new PrintDocument(); ¬† ¬† ¬† ¬† ¬† ¬† if (!printDoc.PrinterSettings.IsValid) ¬† ¬† ¬† ¬† ¬† ¬† { ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† throw new Exception(“Error: cannot find the default printer.”); ¬† ¬† ¬† ¬† ¬† ¬† } ¬† ¬† ¬† ¬† ¬† ¬† else ¬† ¬† ¬† ¬† ¬† ¬† { ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† printDoc.PrintPage += new PrintPageEventHandler(PrintPage); ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† m_currentPageIndex = 0; ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† if (printDoc.PrinterSettings.PrinterName == “Microsoft XPS Document Writer”) ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† { ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† printDoc.PrinterSettings.PrintToFile = true; ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† if (filename == “”) ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† printDoc.PrinterSettings.PrintFileName = DateTime.Now.Ticks.ToString() + “.xps”; ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† else ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† printDoc.PrinterSettings.PrintFileName = filename; ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† } ¬† ¬† ¬† ¬† ¬† ¬† ¬† ¬† printDoc.Print(); ¬† ¬† ¬† ¬† ¬† ¬† } ¬† ¬† ¬† ¬† } 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. ¬† ¬† ¬†...

Read More

Design magazines that must be subscribed – Part 1

Posted by on Apr 23, 2012 in Blog, Design | 0 comments

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? ¬†Web site design (First impression) 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...

Read More

Configuring a MySQL 5.1 Instance on Windows 7 Professional x64 Fails

Posted by on Mar 2, 2012 in Blog, MySql | 0 comments

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. Uninstalled and reinstalled MySql Manually deleted the installation folder in¬†C:Program FilesMySQLMySQL Server 5.5 Temporarily disabled the firewall. Checked Event Viewer for error logs Still it was not working. Finally I decided to check the configuration file available at¬†C:Program FilesMySQLMySQL Server 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...

Read More

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

Posted by on Sep 24, 2011 in Blog, Windows 8 | 0 comments

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...

Read More