biebers1

Adding Blogger Search Bar Form To Blogspot

Add a search engine in the sidebar of your blogger blog. This searches all the posts on your blog, and displays them by latest posts first. Inside the search bar you will find the text “Search this Site”, this can easily be changed to any text you desire. Such as “Search my Site”, “Search”, “Type and Hit Enter”, etc. Just simply replace the code. You can also change the text “Go” on the button to something like “Search”, “Find”, etc.

Resetting Your WordPress Password

To Change Your Password

To change your password in current versions:
  1. In the Admin Panel menu, go to USERS
  2. Click on your username in the list to edit
  3. In the Edit User screen, scroll down to the New Password section and type in a new password in the two boxes provided. The strength box will show how good (strong) your password is.
  4. Click the UPDATE PROFILE button
Your new password takes effect immediately.

Through the automatic emailer

If you know your username and the email account in your profile, you can use the “lost password” feature of WordPress.
  • Go to your WordPress Login page (something like http://yoursite.com/wordpress/wp-login.php)
  • Click on lost password
  • You will be taken to a page to put in some details. Enter your user name and the email address on file for that account.
  • Wait happily as your new password is emailed to you.
  • Once you get your new password, login and change it to something you can remember on your profile page.

Through MySQL Command Line

  1. Get an MD5 hash of your password.
    • Visit md5 Hash Generator, or…
    • Create a key with Python. or…
    • On Unix/Linux:
      1. Create file wp.txt with the new password in it (and *nothing* else)
      2. md5sum wp.txt
      3. rm wp.txt
    • On Mac OS X:
      1. Create file wp.txt with the new password in it (and *nothing* else), then enter either of the lines below
      2. md5 -q ./wp.txt; rm ./wp.txt (If you want the MD5 hash printed out)
      3. md5 -q ./wp.txt | pbcopy; rm ./wp.txt (If you want the MD5 hash copied to the clipboard)
  2. mysql -u root -p” (log in to MySQL)
  3. enter your mysql password
  4. use (name-of-database)” (select WordPress database)
  5. show tables;” (you’re looking for a table name with “users” at the end)
  6. SELECT ID, user_login, user_pass FROM (name-of-table-you-found)” (this gives you an idea of what’s going on inside)
  7. UPDATE (name-of-table-you-found) SET user_pass="(MD5-string-you-made)" WHERE ID = (id#-of-account-you-are-reseting-password-for)” (actually changes the password)
  8. SELECT ID, user_login, user_pass FROM (name-of-table-you-found)” (confirm that it was changed)
  9. (type Control-D, to exit mysql client)
Note if you have a recent version of MySQL (version 5.x?) you can have MySQL compute the MD5 hash for you.
  1. Skip step 1. above.
  2. Do the following for step 7. instead.
    • UPDATE (name-of-table-you-found) SET user_pass = MD5('"(new-password)"') WHERE ID = (id#-of-account-you-are-reseting-password-for)” (actually changes the password)
Note that even if the passwords are salted, meaning they look like $P$BLDJMdyBwegaCLE0GeDiGtC/mqXLzB0, you can still replace the password with an MD5 hash, and WordPress will let you log in.

Through phpMyAdmin

This article is for those who have phpMyAdmin access to their database. Note: use phpMyAdmin at your own risk. If you doubt your ability to use it, seek further advice. WordPress is not responsible for loss of data.
Begin by logging into phpMyAdmin and click databases.

Image #2

  • A list of databases will appear. Click your WordPress database.

Image #3

  • All the tables in your database will appear. If not, click Structure.
  • Look for wp_users.
  • Click on the icon for browse.
  • Locate your Username under user_login
  • Click edit (may look like a pencil icon in some versions of phpMyAdmin)

Image #4

  • Your user_id will be shown, click on Edit
  • Next to the user_pass is a long list of numbers and letters.
  • Select and delete these and type in your new password.
  • Type in the password you want to use. Just type it in normally, but remember, it is case-sensitive.
  • In this example, the new password will be ‘rabbitseatcarrots’
  • Once you have done that, click the dropdown menu indicated, and select MD5 from the menu.

Image #5

  • Check that your password is actually correct, and that MD5 is in the box.
  • Click the ‘Go’ button to the bottom right.
  • Test the new password on the login screen. If it doesn’t work, check that you’ve followed these instructions exactly.
 

Other Tutorials using phpMyAdmin

Through FTP

There is also an easy way to reset your password via FTP, if you’re using the admin user.
1. Login to your site via FTP and download your active theme’s functions.php file.
2. Edit the file and add this code to it, right at the beginning, after the first <?php:
wp_set_password( 'password', 1 );
Put in your own new password for the main admin user. The “1” is the user ID number in the wp_users table.
3. Upload the modified file back to your site.
4. After you then are able to login, make sure to go back and remove that code. It will reset your password on every page load until you do.

Through WP CLI

WP CLI is a command line tool for managing your WordPress installation.
1. Move into the /wordpress directory and type
$ wp user list
to see all users. Find the ID of the user you’d like to update.
2. Then, update the user
$ wp user update 1 --user_pass=$UP3RstrongP4$$w0rd
replacing “1” with the id of the user you want to update.

Using the Emergency Password Reset Script

If the other solutions listed above won’t work, then try the Emergency Password Reset Script. It is not a Plugin. It is a PHP script.
Warnings 
  1. Requires you know the administrator username.
  2. It updates the administrator password and sends an email to the administrator’s email address.
  3. If you don’t receive the email, the password is still changed.
  4. You do not need to be logged in to use it. If you could login, you wouldn’t need the script.
  5. Place this in the root of your WordPress installation. Do not upload this to your WordPress Plugins directory.
  6. Delete the script when you are done for security reasons.
Directions for use 
  1. Copy the emergency script from Emergency Password Script and put into a file called emergency.php in the root of your WordPress installation (the same directory that contains wp-config.php).
  2. In your browser, open http://example.com/emergency.php.
  3. As instructed, enter the administrator username (usually admin) and the new password, then click Update Options. A message is displayed noting the changed password. An email is sent to the blog administrator with the changed password information.
  4. Delete emergency.php from your server when you are done. Do not leave it on your server as someone else could use it to change your password.

Changing your password in older versions

To change your password in WordPress v1.2:
  1. In the Admin Panel, go to PROFILE
  2. Scroll down to the bottom and type in the new password in the two boxes provided
  3. Click the UPDATE PROFILE button
Your new password takes effect immediately.
To change your password in WordPress v1.5:
  1. In the Admin Panel, go to USERS
  2. From the “Your Profile” tab, scroll to the bottom and type in the new password in the two boxes provided.
  3. Click the UPDATE PROFILE button
Your new password takes effect immediately.
To change your password in WordPress v2.0:
  1. In the Admin Panel, go to USERS (or Profile)
  2. From the “Your Profile” tab, scroll down to the Update Your Password section and type in a new password in the two boxes provided.
  3. Click the UPDATE PROFILE button

Your new password takes effect immediately.

How to enable or disable auto share Blogger post on Google plus

Google is the best, understanding the basic requirements of its users and providing best solutions. For many of us who are blogging to help, it is important to keep your community informed about your new updates and ideas. Google is constantly making changes to its online applications. In the recent changes, Google has changed Google keyword tools into Google keyword planner, Changed the interface of Google + and Gmail, introduced new featurs in Blogger.

Enable or disable auto share on Google +
Sharing post directly on Google+


One of the latest change made by Google is Auto sharing option in Blogger. If you are having a strong community over the internet which is waiting for your updates, it is good to share your thoughts to keep the conversation going. It not only bring shares and likes but it also grows your community. Good content is always appreciated and re-shared.

You may also like: Get traffic using Social media

From now onward , Google has made it easy for you to share your post on Google+. With no additional clicks , your post will be automatically shared on one of your associated Google profiles.

Automatically share posts on Google +

In Blogger, this feature is enabled by default. Whenever you will publish your next post, it will be automatically shared  on your associated Google + profile. Follow these simple steps to associate a Google profile with your blog.

1. Login to your dash board.
2. Click on Google + tab. There are three options available as explained in the image below.

Autoshare on Google + from blogger
  • Automatically share after post: This option enables or disable the auto sharing on Google+. 
  • Promote to share after posting: If you don’t want that your post is automatically published then you can check this option. This options allows you to share your blog post after it is published. A popup box will open in which you can enter little info, hash-tags etc.
DIRECT HARING ON GOOGLE+


  • Use Google + comments: This option enables the new Google + comment  system into your blog. This is also a new feature provided by Google.

You should read: How to embed Google+ comments in Blogger 

Disabling auto sharing on Google +

Although it is a good feature but some of you may not like this. It has its own benefits and flaws. In auto sharing environment you can not add any info or hash-tags to your post which is another seo aspect. So to disable this auto sharing option,  simply uncheck the first option i.e. “Automatically share after post“.

You may also like: Social media widget for blogger 

What next

If you are facing any problem or you have any question then you can ask me. Don’t forget to share this post with your friends.

Broken PHP Code : “Allowing Slashes in the URL Path With Apache”

I had a problem where I needed to pass an LDAP URL with two forward slashes 

ldaps://ldap.blah.com

in some PHP code. I couldn’t get it to work but I found out how to fix it: 

I had to configure Apache to allow encoded slashes with AllowEncodedSlashes Onin the relevant vhost by adding :

<VirtualHost 127.0.0.1:80>
AllowEncodedSlashes On
# ...
</VirtualHost>

Into the /etc/apache2/apache2.conf config file. I then ran 

sudo service apache2 restart

And the problem was fixed.

How to make user home folder after account creation

I created a new user with useradd name and forgot to use -d -m to create their home directory. I tried making one, copying the contents of /etc/skel, and chowning everything to the new user.
Aliases don’t work, such as ll, and I just have a $ at the command prompt, instead of [email protected] ~$. Also, using the scroll wheel dumps garbage on the command line 🙁
How do I fix this, or is it easier to delete the user and start over?

I just ran into this (Ubuntu 12.04) and I solved it by creating a temp user, copying over the user directory, chowning it, and finally deleting the temp user.
sudo adduser temp
sudo cp -r /home/temp /home/name
sudo chown -R name.name /home/name
sudo deluser temp 

Installing LAMP (Linux, Apache, MySQL, PHP) Web Server

Step 1: Install Apache
Apache is a free open source software which runs over 50% of the world’s web servers.

To install apache, open terminal and type in these commands:

sudo apt-get update
sudo apt-get install apache2


That’s it. To check if Apache is installed, direct your browser to your server’s IP address (eg. http://server). The page should display the words “It works!” like this.


Step 2: Install MySQL

MySQL is a powerful database management system used for organizing and retrieving data 

To install MySQL, open terminal and type in these commands:

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql


During the installation, MySQL will ask you to set a root password. If you miss the chance to set the password while the program is installing, it is very easy to set the password later from within the MySQL shell.

Once you have installed MySQL, we should activate it with this command:

sudo mysql_install_db


Finish up by running the MySQL set up script:

sudo /usr/bin/mysql_secure_installation


The prompt will ask you for your current root password. 

Type it in.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...


Then the prompt will ask you if you want to change the root password. Go ahead and choose N and move on to the next steps. 

It’s easiest just to say Yes to all the options. At the end, MySQL will reload and implement the new changes.

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
... Success!

Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
... Success!

By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
... Success!

Cleaning up...

Once you’re done with that you can finish up by installing PHP.

Step 3: Install PHP

PHP is an open source web scripting language that is widely use to build dynamic webpages. 

To install PHP, open terminal and type in this command.

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt  php5-ldap


After you answer yes to the prompt twice, PHP will install itself.

It may also be useful to add php to the directory index, to serve the relevant php index files:

sudo nano /etc/apache2/mods-enabled/dir.conf


Add index.php to the beginning of index files. The page should now look like this:

<IfModule mod_dir.c>

DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm

</IfModule>

Step 4 : Test PHP
Although LAMP is installed, we can still take a look and see the components online by creating a quick php info page

To set this up, first create a new file:

sudo nano /var/www/info.php


Add in the following line:

<?php
phpinfo();
?>


Then Save and Exit. 

Restart apache so that all of the changes take effect:

sudo service apache2 restart


Finish up by visiting your php info page (make sure you replace the example ip address with your correct one): http://12.34.56.789/info.php

It should look similar to this.

How to Fix “Arrow keys, tab-complete not working” on Unbuntu Terminal Shell

I have installed ubuntu minimal(mini.iso) on my vm. I then used recovery mode to login as root and create an account with useradd -m admin and then set a password with passwd admin.
When I login on the new account, instead of the normal prompt I only see a $ sign. If I try to tab-complete a command or file name it prints a normal tab. If I try to use the arrow keys it prints ^[[A^[[B^[[C or ^[[D. Also, ls no longer adds colors.
None of these problems were in recovery mode. How can I fix this?

That probably means that the new user account was created with /bin/sh as its login shell (which symlinks to the dash shell by default) instead of /bin/bash – you can change a user’s login shell with the ‘chsh’ command
sudo chsh -s /bin/bash <username>
(you will need to log out and back in for the change to take effect). You may also need to copy the default .bashrc from /etc/skel to get the color prompt.

In future you might want to use the ‘adduser’ command instead of ‘useradd’ – it sets up a more complete user environment including things like a default .profile and .bashrc – as well as setting the login shell to ‘bash’ 

How To Change Location Of Blockchain Data for Bitcoin-qt Client

Instructions to move blockchain directory :

Step 1. Close your Bitcoin client, if already running.
Step 2. Locate and move Bitcoin data files.
(Windows XP)
C:Documents and SettingsYourUserNameApplication dataBitcoin
 
(Windows Vista, Windows 7 and Windows 8)
C:UsersYourUserNameAppdataRoamingBitcoin
Step 3. Copy “ Bitcoin ” directory to another drive, for example “ E: ” drive.
Step 4. Now right click on “ Properties ” of  Bitcoin.exe ” and add following in “ Target 
-datadir=e:BitCoin
blockchain
Step 5. Start Bitcoin, now you will see that your wallet is now loading from the new data directory.