Wednesday, July 30, 2014

Speed up your windows 7 computer

The most common problem with windows 7 users is getting operating system very slow by time. This can be happens due to several reasons.


  1. Computer Viruses - In this case  you should by antivirus program or download free antivirus program to clean your operating system. I don't recommend download pirate copies and hacking. If you have any idea about using a cracked antivirus software please don't! . Its always better for you to use free edition of any commercial antivirus software than using  a cracked antivirus software.
  2. Insufficient storage on your operating system drive.
  3. Lack of memory.

The best reason is windows indexing your files locations for fast file search. If you don't use thi search option often best thing to do is disable windows search indexing service. Here is how i did that.

Step 1 - Go to control panel
.


Step 2 - Go to programs and features.




Step 3 - Click on windows features on or off. Find windows search and uncheck.



Step 4 - Restart your computer.





Easy life fellows!


New JavaScript frameworks vs JQuery

JQuery

According to my knowledge jQuery is the best and stable javascript framework so far. If you are a student or a begginer who learning web development
I recomend you to learn core java script first and then move to jquery.

Installation and Helloworld

Advantage of jquery is most of jquery functions has very simple structure. So you dont need deep knowladge on core javascript. You'll become a professional
javascript developer in by time and you'll learn core javascript very quickly. Installation of jquery is very easy you can find everything you need from
w3schools  .I'm not going to teach you how to do this because you can find number of resources on web these days.


Cons of jquery so far

1. will add extra time to load your page.
2. You will depend on lot of third party plugins.
3. You will need to write more code lines than othe frameworks like angularjs.

Pros of jquery

1. Main thing is FREE. (jQUery, jQueryUI and jquery mobile)
2. Your code is more cleaner than angularjs code.
3. AJAX support.
4. jQUery works with most of old browser versions including internet explorer 7.
5. jquery has the top documentation and online community tutorials.

So my final recommendation for new coders is try to do your work with core java script first. If you need more functionality try jquery.

Happy coding fellows!







Tuesday, July 29, 2014

Easy Javascript class format - Works in all browsers

This is the most easiest java script pattern I found . Its works so nicely with many frameworks (jQuery, ExtJS) . 


Usage

 $(document).ready(function(){
   var mySamplePlugin = new SamplePlugin({ id : a }); //Input your parameters  
   mySamplePlugin.testFunction();                               
 }); 



  Model


var SamplePlugin = function (config) { 
    var p = this; 
    p.id = config.id; 

    p.testFunction = function () { 
      alert(p.id); 
    }; 

 }; 





 Happy Coding Fellows!

Cannot obtain value of local or argument as it is not available at this instruction pointer, possibly because it has been optimized away.

Hi All I couldn't debug my C# class library project due to this issue for last few month. So this is the fix. 1. Right mouse click on the project which you have the issue with debugging. And go to properties. And click on build menu item.
2. Click on advanced option button.
3. Set debug info to full.



 Happy coding fellows!