My Stats

  • Posts - 113
  • Comments - 95
  • Trackbacks - 0

Recent Comments

Recent Posts


Post Categories

Last year Microsoft released VS 15 and add a interesting new feature called “ Diagnostic Tools debugger window

Few days ago I want to profile one of the web-application written in MVC3.  In my case scenario I just want to write a stopwatch and check the difference between execute 2 thing by different different way.  

So I write a c# controller and add a index and add some code in it with stopwatch. huh, It’s look silly right ?

There is better way to do this.  Just add 2 breakpoint to c# code. One in starting of execution and one is another. When you hit the first breakpoint just press f5 to release the current breakpoint. The next breakpoint point will point by visual studio when your code executed. Now you can see how much time it’s take to process.

If you are running some heavy code that you want to check how much time it will take to execute then you can use this trick to check the time it11







This feature offer you to see the time it’s take to execute without putting stopwatch in the code. You can check many other things  like  Process memory, information about CPU, Memory usage and CPU usage.

Now if you made little changes in your code and check the time that it will take to execute then it’s the best option to do this thing. Forget all Stopwatch idea you see on Stackoverflow to profile your app.


For more information look at this article written by Visual studio team

If you work in Visual studio 2015 update 1 and got issue like this“

An error was encountered during code generation. The changes you have made in the designer have not been committed to the source code”

then you are not alone. Many developer found this issue. Check this page for detail.

For fix this problem install this

This will fix this problem in Visual studio update 1.

Few months ago I work on a .net project which I downgrade to .net 2.0 for some reason (from .net 4). Downgrade the project is not going to a good experience but at the end we win the War. We finally downgrade the project to .net 2.


For System.Linq I use LinqBridge 

So Chart control will not show to you unless you have a project made in .net 3.5+

I research a lot and many trick is no longer works.


Here is the trick to implement the Chart control.

Actually my chart in winform is working (in .net 2 code is ready but only visual studio refuse to run it) so I make a new Winform project in .net 3.5 add the dll reference and add the chart to form. This is all I need to use it in my project.

When I compile it’s done (.net 3.5)

Now I copied the same dll to .net 2 project. You can add this dll in .net 2 and it will run on system those contain .net 2 framework. You need to copy local the chart dll (so it will not require anything on client pc).


Now When you open the form it will not show anything but it  will run perfectly. My Visual studio 2015 simply refuse it because it’s doesn’t get it. But it will run perfectly.


For any debug issue you can simply make a copy and change it to .net 3.5  and debug it for fix. Copy the same code back in .net 2 and it will run.


The only thing that you will miss is you can’t see when you open the form in design mode. You need to use another copy in .net 3.5 to debug it. Except this, this code will work fine.

If your visual studio run too slow for download the nuget package that is common to the most project you build in daily rutine then you can follow same trick as 2013.

open the local appdata folder by this


open the nuget > cache folder and add it to

Tools > options > Package source > Add it here and next time choose Offline for package source and you can save your time and bandwidth both.

If you compile your winform project (regardless to target version of .net framework) and it’s can’t be compiled on another machine (which don’t have update 1 RC as yours) then here is the trick to fix it.


Delete Every obj folder in root of every projects. if you have multiple project then consider this stackoverflow post to do it faster

Now when you done after delete all obj folder you can simply click F5 and it will be run fine.



The first news came in last days was  Waterstones to stop selling Kindle in most stores . Then this news came up

Drop That Kindle! 10 Reasons Print Books Are Better Than E-Books

Later on , On Internet many people are show their opinion about kindle & physical books.

So Let’s talk about Kindle. Amazon made their product kindle for reading, reading without make eyestrain.


1. Worst PDF support “":-

Few months ago I contact my university and they send me bunch of PDF files. I seriously want to read them but kindle doesn’t help me anything. Kindle show “print” as prtr. Many character are missing from a single words.  Sentence can’t be read without brainstorming. At that time I finally end up using Google play books which help me to read PDF.


2. No colors :-

I recently tried the comics in Amazon through Kindle Unlimited. The problem is actually the colors can’t be seen in grayscale based e-ink kindle. I read comics but kindle has no good software support for Comics. If I zoom and move to next page I need to set the same again for next page. I used a Android app which save my settings and make same position when I move to another page. The colors can be seen in android device but not in Kindle


3.  Kindle Unlimited is Actually Kindle Limited :-

When I open Amazon India site and go to  Kindle unlimited , All I see is nudity , pornography and matter that is totally useless or just related to adult. No matter what kind of books you are reading they willi just show you porn. So Who men want his family to use his kindle and see this crap every ime visit the site.


They don’t even have a single books from top 200 popular books selected by goodreads (Goodreads is also part of Amazon). Kindle unlimited is actually pay for thing that no body care.


In last day I read a book and trying to remove after reading but It’s can’t be done, I just check what happen to the books :- The book is now removed from Kindle unlimited and show for buy option at the price. So there is no author who really want to share his hard-work for kindle unlimited. Maybe amazon not pay them well so they don’t like it.


4. Bugs & missing features.


If you write a mail to Amazon , Jeff (CEO) or any other department they will respond you “Your idea are valuable to us, We can definitely understand what kind of problem you feel. ”.


See some psycho of Amazon (KU stands for kindle unlimited).

1. You can’t return KU books from Kindle By Context Menu (similar to right click) in Kindle device.

2. No option in either to return books.

3. No option to show how much I have read in Mange Kindle content and device section.

4. You can’t buy books from kindle apps on android. You need to go to browser and search. I didn’t get it what is the reason behind this joke.

5. If you make a search and buy something in kindle store. Next time when you make search there is no option to exclude my purchased books and borrowed books.

6. Device’s screensaver can’t be set. Last time I jailbroke my Kindle 4 and it’s work better. Duokan is work better than kindle’s own firmware. They don’t update things, not make features, just ship crap software from last thing. Just release a font and all media write “Amazon Blah Blah”.  These paid agent in Media write it like amazon release something Like a OS.

Ok, it’s just a E-reader but what exactly use of Goodreads. My kindle work faster then kindle paperwhite. All I can blame is goodreads which  I never use in Kindle. Same as Browser which is another useless piece. They add browser to just show a feature like “See, Kindle has browser”. Who even can’t load a single HTML Page.


Writing a mail to Customer support is like talking with a tape recorder. When I told support that I want to read my PDF they told me to convert. Nor Send to kindle nor calibre works. I tried to read books and all diagram in books is just damaged and now it’s can’t be easily understand that what is this diagram about. So kindle support is not helpful when you got in a problem.They are just tape-recorder and got paid for behave like a tape-recorder.

Kindle don’t have flexibility in any kind ,

Storage is limited. You can’t extend it or change it.

Font is limited, You can’t just put your TTF file (Like duokan does in kindle).

When you pay for books, You don’t hold any right ( I write about this in clearly in point 8)

The device screensaver and other thing can’t be modified like a android phone. When I use my android phone, I just use Flipboard and every kind of article read very easily and interface is so good of flipboard. Same way Kindle doesn’t allow me to put any of android app nor they have their own eco-system. They don’t even support Epub and other format.


8.  When you pay for books in Kindle you don’t have any right. In last day I read on and one men talking about that kindle is closing their account because suspicious account by someone after his account hacked. He lost 4 digit amount in $ books. He told same thing that it’s totally lose. If you bought a books and suddenly delete it , you can’t recover it. Amazon support will tell you “We don’t have it”.

So Most of talk end up like.

1. “Does amazon have any option so I can remove the books that I already read in amazon when I search”,  “We don’t have it.”

2. “Do you have something in Hindi,” “You can look at this page”. The page is itself a jokes that he doesn’t contain any good books or just few books. Ok, it’s not Amazon’s fault. I can’t blame it.

9. If you broke your kindle you can’t get it fixed once your kindle goes out of warranty. There is no service center either which fix the device for you at any price.

So if you broke a Chinese phone or any other device, 99.99% chances are you can get it fixed in any shop of a popular market. but when kindle is broken, Amazon make you feel bad. a broken device eat mind of person and feel bad when he see his money is lost in broken device.

10. Forget the backlight for a seconds, If you really into the book, You can read it in even in light. or another way if you read on kindle at 3 AM in morning your eyes still get pressure on eyes.

In last days, My kindle broke & I feel this is a good thing happen to me. If something bad happen to you early then it’s good because you got time to learn from it. So I finally put my kindle in dust-bin and move on to physical book.


Let’s compare.

Backlight :- Who need the backlight ? Are you lazy enough to read even a glass of water, There is a proper light you can manage in your room when you read. You still have many option to read without disturbing other.

Pixels :- Pixels in paperwhite is just a useless kind of feature. You can’t read a comic as colored. Even I tried to use to see color content, it’s totally crap. I tried some magazine from USA and they have some kind of quality but that’s not our domestic hero.

Sharing :- Kindle have either not have a feature and if have a feature it’s not work in every country. If it’s work in Every country it’s useless. You need to depend on amazon everytime for the thing pay for.

Now I can share my books with everyone without any trouble.

Kindle unlimited cost me 199INR and give me totally shit for reading. There is many library in this country which give you lifetime validity membership. If you have pay them 1000 you can borrow any books under 1000. This membership only expire when you die. So It’s not limit myself to a holy crap that amazon do in Kindle unlimited.

Same way, in last 12 months I never bought a paperback in I simply go to store and read thing to check and buy books there. You can say to me You can better buy same books from amazon. But wait, When I see dozen of person work in the shop I thing I pay for good. At-least it’s feed some people who sit for a day in book shop and just help other to let them choose their book. I am not sure How much amazon pay to seller and other people in their retail chain.

So My kindle is broken just not means I am ready to go to a new war, I just simply better use physical books and read them without any digital mumbo-jumbo. My books will not damage like kindle does And buying a books from store still give me good feeling. When I go to store I charged fully but I see people how they choose books and there are thing to see  , learn , listen. Amazon eat them all by giving a piece of crap device in the hand of customer.

So Thanks for reading my post, When you pay to amazon for a eBook then a person who use pirated book have more right then you, You have DRM and you can’t put it another place without amazon login. The men who use pirated copy have more right then you. He can share their books without anyone.


When you pay for a software, The person who use pirated material have same thing as you but in E-books You are locked in DRM and men who use pirated are free to share everything with anyone at anytime.


I can write 100 other thing in my post but I need to stop now. I am happy to have my paperback books, I can feel the text, see the colors and it’s feel better then senseless eBooks. 


Thanks you again for reading my post about horrible kindle.  Happy reading Smile

In previous version of Visual studio (2013 actually) Web Essentials 2013 compile everything easily. If you just fork something and start editing less file it’s save the .css file in same folder where the .less file reside.


In Web Essentials 2015 the compiling process for less has been removed and it’s work no more. If you trying to use  tools like Simpless or winless they will not work because currently when I tried to use winless and simpless I got error like the file has been used by another process and visual studio show me file save dialog everytime and after saving it’s not work.


Don’t worry guys, As mads remove the less compiler from their extension it’s look like he has made another extension to make less compiling work.

You can download it from the given link. The only cons of this extension is it’s not automatically compile the less file. You need to right click on file and save the location of file to make it work.

Finding a good Music streaming is really so hard. Today I play guvera and thing to let use it for future. Now See what it happen to me.


First I tried to pay it doesn’t work. I tell the support and it telling me that give us error so we look into it. It’s error 25004 Payment failed.


It’s working on other site but not in Guvera. I thing it’s hourly issues and it’s maybe has fixed now. I tried to payment again and they charge me 1447.39 (49.91 29 times on same date). the phone that is registered continuously ping by the notification.


I see nothing has been changed in my account. My account is still free. Now I have contact their support by email. I got no answer. Maybe They don’t send mail after 4 PM.

I will update this when I get update back from Guvera. Right now Let’s see what happened.














Here is the screenshot to show what happened with my account.


2 Year ago I write a post here to give my view on Mysql and it’s nuget packages


Nuget package is much better way to fix the dll. Just type the command in console and reference has been added to your C# project very easily. You don’t need to do anything to update it every time.

Visual studio make this process easier.


From last few days I got a trouble. When I share with my code with other it’s not work on another machine which have Mysql Connector installed on the system.

Everytime I take there code and compiled on my machine and give them back it’s not working there. Nuget installed the nuget packages again and it’s use nuget packages reference there and it’s installed on there machine which make trouble on c# to run them.


The code will be compiled, Warning will be shown in Error in visual studio. But because Connector have a DLL installed in GAC it will make issues that “not matched“.

Now to fix this issues try this trick.


Open the csproj file of your project. Search for mysql


replace it with this code, Previously it’s referenced from packages folder, Now if you are making reference from bin folder it will work.


<Reference Include="MySql.Data, Version=, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">

projname is your own projectname. Now it’s called the dll from your bin. Change the path according to your project location.

Now open the packages.config and where it’s stored the packages settings. Now remove the mysql reference from there but cut the line that have mysql.

If you have attached many project to your project do same on that too if they have mysql too.


Now it fixed. Now VS will not download the dll from Nuget again and again. Now they are calling it from Bin folder.


Yahooooooo. Now Nuget can’t burn my minutes to just fix them again and again.


Happy Coding Smile