Tips & Tricks, Tutorials, Hacking, Troubleshooting,

If you use Internet Explorer and you have trouble downloading more than 2 files from one website, this registry edit might solve your problem.
To do this, open the Registry Editor by entering “regedit” (without the quotes) in the Search box on the Start menu. When regedit.exe displays in the results, click on it or press Enter when it’s highlighted.
01_opening_regedit
If the User Account Control dialog box displays, click Yes to continue.
NOTE: You may not see this dialog box, depending on your User Account Control settings. See our post, Windows 7 – How to configure UAC (User Account Control), for more information.
02_uac_dialog_for_regedit
Navigate to the following key in the tree on the left.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
Right-click on the Internet Settings key and select New | DWORD (32-bit) Value from the popup menu.
03_creating_new_dword_value
Name the new value MaxConnectionsPerServer and then double-click on it.
NOTE: This key sets the limit for HTTP 1.1 servers, which is normally supposed to be 2.
04_maxconnectionsperserver_value
On the Edit DWORD (32-bit) Value dialog box, enter 4 in the Value data edit box, select Decimal as the Base and click OK.
05_changing_maxconnectionsperserver_value
Create another new DWORD (32-bit) Value under the Internet Settings key and name it MaxConnectionsPer1_0Server. Double-click on the new key and change its value to 8.
NOTE: This key sets the limit for HTTP 1.0 servers, which is normally supposed to be 4.
06_values_changed
Close the Registry Editor by selecting Exit from the File menu.
07_closing_regedit
You can set these two keys to higher numbers if you want, but if you set the numbers too high, you may find that your browsing becomes much slower than usual, and you might even get blocked from some servers for using too many connections. It’s usually safe to double the default values.
To revert to the default values, simply delete the two keys you added to the registry.

Frequently we come across Drupal sites (live or testing) where the user 1 passwords are not known to the owner of the site. You can retrieve the password by changing the email address of user 1 to your email address and then use the forgot password option to reset your password. But if you don't want to change the user 1 email address but instead just want to change the password of user 1 there is an easier alternative via the database.

Drupal 6

You can run the following query directly in the drupal database to reset the password of user 1 to whatever you wish to set
UPDATE users SET password=MD5('whatever-password-you-wish-to-set')
WHERE uid = 1;

Drupal 7

The query is not quite the same in Drupal 7 as there is salt used in Drupal 7 and you need to put in a bit of extra effort to get the password hash. First you have to get the password has to be used. You can do this by running
 
./scripts/password-hash.sh the-new-password

from the root of your drupal installation. This will output the password hash in your terminal. Copy this hash. Then run the following query in your database
 
UPDATE users SET password='password-hash' WHERE uid = 1;

where password-hash is the has you got when you ran the script given earlier.
The assumption is that you have access to the Drupal database. If you don't have access to the Drupal database but still wish to login as user 1 you should check out our article on how to login as user 1 to your Drupal database. Again the assumption is that you have ftp access and that you are authorized to do so. If you are not then probably you are not doing it right.

If you’re an administrator of a computer with multiple users, it can be a hassle having to give permission to certain users to perform tasks above what their user privileges would normally grant them. For instance, maybe a user wants to be able to install programs from the Terminal or via the Synaptic package manager. Using “dpkg” or “apt-get” or “synaptic” from the Terminal all require Administrator privileges, which normal (non-Administrator) users don’t have.
Instead of the Administrator being required to grant privileges each time it is requested, it’s possible to allow certain users to use certain programs without requiring a password. This doesn’t mean a typical user can do any task requiring a root password, but simply those he or she is authorized. How do we do this? We simply edit a particular file.
First, open up the Terminal.
Open Terminal
Now type sudo visudo.
Run Visudo
You’ll be asked to enter your password.
Enter Password
We’ll be entering all of our edits at the end of the file, so scroll all the way to the bottom. You should now see something similar to this.
Visudo Window
To allow a user to run a certain program as root without a password, you’ll need that person’s username, as well as the path to the program’s binary.
Let’s say we want a user named “ericcflem” to be able to install programs using “apt-get” but don’t want to make “ericcflem” a full Administrator. We can allow “username” access to “apt-get” and only “apt-get” by typing ericcflem ALL = NOPASSWD: /usr/bin/apt-get at the end of the file, as shown below.
Allow User To Run Program As Root
Now simply hit Ctrl-x to close the program, then hit y when you see this prompt. This tells the computer to save your changes (typing n would tell it you don’t wish your changes to be saved).
Save Buffer Prompt
You will then be asked (in the following prompt), to type a name and location for the saved file.
Save Location Prompt
Simply hit the Enter key, which will save the file with the same name and location as the original.
In our example, we chose our own username to be the one able to run “apt-get” without entering a password, as it’s our personal computer, and not having to enter a password saves time. To see that it worked, we decided to install a program (in this case we installed gPodder, a podcast client) via the Terminal, by using the sudo apt-get install gpodder command.
Install gPodder
As you can see in the following screenshot, we were never asked for a password.
No Password Required
Success! Obviously, giving any random user the power to perform potentially dangerous tasks is something you won’t want to do without serious thought. However, for some users, or for some tasks, this should be an easy way to make certain tasks just a bit more convenient.

Here’s a quick post for those looking to change the location of the downloads folder in Google Chrome. You may want to do this for many different reasons, but for most people, it’s probably because you are running out of space on your local hard drive. I moved my downloads folder to my NAS (Network Attached Storage) device. Since it’s on the network and always connected, I don’t have to worry about it suddenly getting disconnected.
I’ll talk about what happens if you do change the location to an external hard drive that can occasionally become disconnected. First let me show you how to actually change the download location in Chrome. First, click on the wrench icon at the top right and click on Settings.
chrome settings
Then scroll down to the bottom and click on Show advanced settings.
advanced settings
Now scroll down more until you get to the Downloads section.
chrome downloads
Go ahead and click on the Change button and choose a new location. Like I mentioned before, you can choose an external drive, a shared folder, a network drive, etc to save the downloads too. There really is no restriction. Now if the download target suddenly disappears, i.e. you unplug the external hard drive, etc, then what happens?
Well, I was hoping that it would default back to the default location when you first install Chrome, but it doesn’t. Instead, the Save As dialog pops up and you have to choose a new location for the file.
chrome save as
And that’s pretty much it! If you have any other questions about Chrome, feel free to post a comment. Enjoy!

WHM(Web Hosting Manager)
WHM is a web hosting application that provides access to various server tools and functions to help the server administrators and resellers. Using WHM, the administrator can
  1. Configure reseller and end-user accounts.
  2. Configure DNS.
  3. Establish specific service package that includes the various web hosting plans.
  4. Setup C-panel.
  5. Establish the skeleton files and folders that are included in a new account.
  6. Enable branding or reseller accounts.
  7. Begin,suspend or terminate account services.
  8. Monitor account activity.
  9. Establish bandwidth and storage quotas.
  10. Add delete or modify ip's.
WHM is a very useful program that allows administrative access to the backend of the cPanel. WHM gives the user a lot more control and flexibility irrespective of the number of sites. A single WHM installation gives you the option to create and manage multiple C-panel accounts. It allows server administrators to either enable or disable specific web hosting functions depending on the reseller or the end-user's access privileges.
cPanel
cPanel is a web hosting application that provides access to various tools and functions to server administrators, resellers and end-users by means of a graphical interface. The main advantage of cPanel is its ease of use. The user doesnt have to type in commands / know how to deal with configuration files. cPanel connects both internal and third party software products that are necessary to perform certain subroutine tasks like
  1. Enable SPAM filters.
  2. Setup and check webmail.
  3. Establish email accounts.
  4. Access to help files.
  5. Gain access to support.
  6. Access to addon features and software such as word press, drupal etc.
  7. Authorise FTP access.
  8. Setup cron jobs.
  9. Initiate backups.
  10. Monitor bandwidth usage and diskstorage.

Internet Explorer 9 recently was having some strange issues on my Windows 7 machine and instead of spending hours trying to figure out what was causing the problem, I decided I would just reinstall the whole thing! Well, it fixed my problem and that’s why I’m writing about it.

Method 1 – Windows Features

Depending on your version of Windows 7, you have either IE 8 or IE 9 installed by default. You can uninstall and reinstall IE now by simply going to the control panel. In the Control Panel, just click on Programs and Features.
programs and features
Next, click on the Turn Windows Features On and Off link located in the left-hand pane.
turn off features
In the dialog, simply uncheck Internet Explorer 8 or Internet Explorer 9.
uninstall ie 9
You’ll get a message stating that doing so could affect other programs, blah, blah. Don’t worry about it, it won’t do anything. Just click Yes.
uninstall ie
Now go ahead and reboot your computer and then come back into the same dialog and re-check Internet Explorer. It will reinstall it and hopefully any issues you were having will be gone.

Method 2 – Installed Updates

There’s also a second way to reinstall Internet Explorer in Windows 7. Instead of clicking on Turn Windows Features On and Off in the Control Panel screenshot above, click on View Installed Updates.
view installed updates
Now scroll down the list to the Microsoft Windows section and there you will find Internet Explorer:
windows ie 9
Click on that and then click the Uninstall button that shows up at the top. Then to reinstall IE 9, you can go to the IE 9 homepage and download it:
http://windows.microsoft.com/en-US/internet-explorer/downloads/ie-9/worldwide-languages
I’m not 100% sure about the difference in using one method over the other, but you can try both if you find one method does not fix your problem. If you have any questions, feel free to post a comment. Enjoy!

md5sum stands for message digest version 5, which is used to check file integrity whether the transferred files are corrupted or not. md5 is a command line utility used in both LINUX or MS-DOS/WINDOWS which generates and verifies message digests using the md5 algorithm. The md5 hash comparison detects changes in files that would cause errors. The possibility of errors is proportional to the size of the file. The possibility of errors will increase with the increase in size of the file.
The main use of md5sum comes into place when dealing with operating system installation. When you have a file like an operating system installation CD, it should be fully correct. Most Linux distributions come with the md5sum utility so its installation is usually not necessary.
We have used the md5sum for checking the the data backup from the server. For this we have to calculate the md5sum value of the data that is to be transferred and note the hexadecimal value obtained as output for the md5sum. Now after transferring the data that are after downloading the whole data from the server, use the md5sum and note down the hexadecimal value obtained as output. Now check the md5sum value before and after download. If both the values are same then the file is not corrupted, that is the transferred file is same as the received file. But if the md5sum values are different then the files are different, that is the file transferred is not the file received.
How to check the ISO file
  1. Open a terminal and go to the directory to check a downloaded ISO file.
    user@user:~$ cd Downloads/
    
    
  2. Run the command from the within the Download directory.
    user@user:~$ md5sum ubuntu-10.04.4-desktop-amd64.iso
    
    
  3. md5sum will print a single line after calculating the hash.
    1c0feea62a3ab961a90dad75c6990d21 ubuntu-10.04.4-desktop-amd64.iso
    
    
Now the hash value is obtained and we will verify it with the previous hash value so as to know whether the ISO file file is corrupted or not.