Sponsored Links

Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

December 29, 2017

How to Find any Wi-Fi Password on Windows

Sometimes you may forget the wifi password of your network you are connected or it may be difficult to remember password. So here is the simple command line trick to find out the password. Follow these steps if you’re using Windows 7,8 or 10.

  • Open CMD as an administrator.
  • Paste the following code:
  • netsh wlan show profiles
    You will get a list of the networks that are known to your computer.
  • Now paste the following code. Replace "profilename" with the network name.
  • netsh wlan show profile name=profilename key=clear
    Look for the "Content Key". That is your password.

December 14, 2017

5 Tips to Become a Web Developer

If you ever wanted to become a web developer then here are the five tips to get started with.
  1. You can volunteer or intern in different companies. This is the quickest way to get hired or work as a web developer. So find any local companies or any around you and ask for volunteer.
  2. Your goal is to gain experience in the real world as quickly as possible and build your portfolio. So say yes to every websites including unpaid ones.
  3. You need to build your portfolio to make it strong. So where do you put your work? Well, this can be your own web site and I recommend this if you want to look professional. You can host it on GitHub.com and GitHub.io all for FREE and you can buy your own domain also if you like.
  4. Find a mentor and join local or online coding groups.
  5. There are plenty of open source projects today. You can contribute little by little in those projects to make familiar with the web development world

December 9, 2017

How to clean your Windows Temp folder

The temp folder contains files that are only needed temporally. Unfortunately, these files that are meant to be deleted don't always get deleted after their job is done, resulting in wasted drive space.

To open the temp folder, click Start or go to the Windows 8 Search, type %temp%, and select the folder that appears first. Once the folder is opened, you can manually delete files and folders. But you probably can't delete all of them. Windows won't let you do away with those currently in use. That's fine. You don't want to delete those ones anyway.

In fact, you really don't want to delete any files created since the last time you booted your PC. So if you shut down Windows every night (and I mean shut it down, not sleep or hibernate), and boot clean every morning, you can safely delete any files in Temp not dated today. You can easily do it in an old-fashioned way, DOS-style batch file to automatically clean out the folder every time you boot. Here's the process:

Open Notepad, and type these two lines:

    rd %temp% /s /q
    md %temp%

Save the file as %appdata%\microsoft\windows\start menu\programs\startup\cleantemp.bat. This will create the batch file, cleantemp.bat, inside your Start menu's Startup submenu. Everything in that menu loads automatically when you boot. Windows 8 doesn't have a Start menu. But it still has the folder. And the trick still works.

Enjoy!!!

December 5, 2017

Time Saving Tips for AngularJS Developer

Here are some of the tips while learning and coding on angularjs.

At a high / architecture level:

  1. Do not forget to write your tests. In Javascript, you don't have the compiler to hand hold you and tell you that you did something wrong. And you will want to pull your hair out the next time your app is broken because of a missing letter. And the large your application gets, having the comfort of making large scale changes and refactorings without worrying about broken functionality is amazing. And writing your unit tests is the only way to get there.
  2. Don't put too many things on the scope. The scope is expensive, as it is the one that undergoes dirty checks. Just put exactly what will be displayed on the UI on the scope, and leave the rest as variables in the controller, but not on the scope.
  3. Data is the truth. Let the data drive the app, and not any other way. You should purely focus on getting the data in the right places. The route controlling logic, the watches and the data binding should drive what is visible in the UI.
  4. If you need a UI widget like datepicker, autocomplete then think directive. Wrap all your third party components in directives for easy reuse, as well as to make your app modular. Being able to write <input datepicker> is way better than writing <input id="myinput"> and then in JS, $('#something').datepicker().
  5. Don't do DOM manipulation in your controllers, as well as your services. Try to restrict that work to directives.
  6. If you need to communicate between controllers, there are basically two options. Either create a service which is sigleton and use it to communicate or fire events on the scope, and have the other controller watch. Don't create your own new way outside of these two.
  7. Dependency Injection: Understand it, love it, breathe and live it. That should be the one and only way you ask for and work with services or any dependencies from any of your code.
  8. For directives, try and isolate the scopes so that you can reuse them without worries. Isolating the scope ensures that your directive does not depend on some particular method / variable on a parent scope, and thus can be reused. Pass in whatever you need as arguments to the directive. Use the databinding to ensure you get the updated value instead of the value at that instant.

Cool jQuery Tricks

Some of cool jQuery functions usage:
1. To add bounce animation to any element:
 $(elem).addClass("animate bounce");

2. To add shake animation to any element:
 $(elem).addClass("animate shake");

3. To disable buttons or any control elements:
$(elem).prop("disabled", true);
You can also use attr() function, but attr() is deprecated. So use prop().

Cool JavaScript Tricks

Today I would like to mention some of the JavaScript tricks that many JavaScript programmers do not know. They are cool to have in our code, but some are not practiced in real world. Here are few of them.
  1. Use of .call() function:
    If you want to iterate over the properties of object.
    var listitems = document.querySelectorAll('li'); 
    [].forEach.call(items, function(item) {
    //your code here
    })
    
    Above code does the same as the code below
    for (i = 0; i < items.length; i++) {
    var item= items[i];
    // your code here
    }
    Reversing a string:
    var js = 'hello javascript';
    var sj = [].reverse.call(hey.split('')).join(''); // "tpircsavaj olleh"
    console.log(sj);
  2. Always use var while declaring variable for the first time.
  3. Use === instead of == .
  4. undefined, null, 0, false, "", NaN are all false values.
  5. Use semicolon (;) for line termination.
  6. Get random item in an array.
    var items = [12, 548 , 'a' , 2 , 5478 , 'foo' , 8852, , 'Doe' , 2145 , 119];
    var random = items[Math.floor(Math.random() * items.length)];
    
  7. Verify that the given argument is number
    function isNumber(n){
        return !isNaN(parseFloat(n)) && isFinite(n);
    }

November 14, 2017

10 Ways to Become a Better Developer

  1. Read other people's code.
  2. Get someone to read your code.
  3. Fix bugs before writing new code.
  4. Learn a new technology.
  5. Keep it simple.
  6. Write a blog post about your code.
  7. Contribute to open source.
  8. Fix it, Don't hack it.
  9. Increase code coverage by 1%.
  10. Leave your desk every hour.

September 24, 2017

How to choose the right laptop for programming

For the best result in the programming one must be very careful while choosing right laptop. Choosing the right laptop for programming can be a tough job. So you must have proper research on this matter. It’s easy to get confused while researching the various options. There are many different laptop models out there, each with a different set of trade-offs.


You can write code on most laptops. Yet, your productivity will improve if you use a machine suited to the type of tasks that you perform. There are different types of development, and various tools are required with each specialization. So, there is no one-size-fits-all approach to buying a development machine.
Hence, I made the following assumptions in this article:
  1. You are a web developer.
  2. Your laptop is your primary development machine.
Here are some considerations before purchasing your next laptop.

Mobility

Laptops come in all shapes and sizes. You need to figure out how portable you want your laptop to be. If you do not need to carry your laptop around often, you might want to consider a 15'' laptop. These will usually have better specs and more screen estate for multitasking. If you work in different locations or travel a lot, a 13-14'' laptop may be best for you. They are lighter and provide longer battery life. Unless you’re buying a 2-in-1 laptop, a touchscreen does not provide enough benefits to justify the extra cost. I’d suggest you avoid the touchscreen.