VNC into the tinkerboard with x11vnc

To install it, simply run the following command on your tinkerboard

sudo apt-get update
sudo apt-get install x11vnc

Once installed you can start the vnc server using:

x11vnc -noxrecord -forever

If you want to run it with the password, first set a password using the following command

x11vnc -storepasswd

Now you can run the x11vnc with the password, run the command

x11vnc -noxrecord -forever -usepw

Now, on the mac if you want to connect to the tinkerboard in the terminal type

open vnc://ip_address_of_tinkerboard:5900

Disable Chrome New Tab Hover Pop-ups/Box

1. Open Google Chrome web browser and type chrome://flags/ in addressbar and press Enter. It’ll open the advanced configuration page.

2. Now type tab hover card in the “Search flags” box.

3. Select Disabled for Tab Hover Cards option from the drop-down box.

4. Google Chrome will ask you to restart the browser. Click on “Relaunch now” button to restart Google Chrome.

That’s it. Now hover mouse cursor over any tab and you’ll get the classic tab tooltip showing only the website title.

বাহুডোরে…

এলোমেলো ইচ্ছে যত ভালোবেসেছি তারই মতো
ডুবে আছি আজো তোরই প্রেমে জীবন সপেছি তোরই নামে,
একই সাথে পথ চলা কত কথা ছিল বলা
সবই যেন আজ শুধু স্মৃতি হলো জানিনা এতো ভাবতে এলো

জ্বলছে হৃদয় উড়ছে সময় তুই কেন থাকিস বল তবু দূরে
সবই ভুলে আয় না চলে বাধবো প্রেমেরই বাহুডোরে…

একা একা বেঁচে থাকা তোকে ছাড়া চলেনা জীবন
লাগে যেন সবই ফাকা বুকের ভিতর একি দহন,
চেনা চেনা একই পথে তোরই আশায় এখনো বসে
পাশাপাশি হাটবো সাথে আবারো খুব ভালোবেসে।

জ্বলছে হৃদয় উড়ছে সময় তুই কেন থাকিস বল তবু দূরে
সবই ভুলে আয় না চলে বাধবো প্রেমেরই বাহুডোরে..

এলোমেলো ইচ্ছে যত ভালোবেসেছি তারই মতো ডুবে আছি আজো তোরই প্রেমে
জীবন সপেছি তোরই নামে!!

মনে মনে খুজে ফিরি ভালোবাসি তোকে যে ভীষণ
কত কথা দিলে পাড়ি বলনা হবো তোরই আপন
যত ভাবি ভুলে যাবো ততো বেশি যেন পড়ে মনে
ভালো কেমন বাসি আমি শুধু আমার এই প্রাণ জানে।

FB Share Issue with WordPress Cache Plugin

Solution A: create a different cache for Facebook

  1. Go to W3 Total Cache settings (Performance) > User Agent Groups page.
  2. While you are at it, tick Enabled for the predefined groups there. This solves the Mobile specific settings have no effect problem too.
  3. Click the Create a group button at the top.
  4. Enter Facebook as the group name.
  5. Add this to the User agents field:
facebookexternalhit
facebookexternalhit/1.1
facebookexternalhit/1.0
  1. Click the Save all settings button.

Solution B: reject caching for Facebook

  1. Find the W3 Total Cache settings (Performance) > Page cache > Advanced section > Rejected user agents setting.
  2. Add this as value:
facebookexternalhit
facebookexternalhit/1.1
facebookexternalhit/1.0
  1. Click the Save all settings button.

The Facebook Crawler

facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
facebookexternalhit/1.1

WordPress Permissions for MacOS Local Environment

Are you receiving the dreaded “Connection Information” permission issue on your local Mac OS X environment? You’re not alone – and thankfully there is a simple solution to this issue.

You are receiving this error because the default webserver user which runs httpd is known as _www, which is not the user in your local account. If you’re the only person that uses your machine, you can change the user to fix the permission issue.

In the terminal, type the following and hit enter:
id

This will return a string of information, however the only information you need is the primary user uid and group gid names.
uid=501(admin) gid=20(staff)

Once you have this information, you will need to edit your httpd.conf file. Type the following:
sudo nano /etc/apache2/httpd.conf You’ll likely need to type your admin password to edit his file.

Hit Ctrl+W to search the file for “User “. This will take you directly to the place in the file where you need to edit information.

You can see in this file that I commented out the existing user and group with the # sign.  Below that I entered the User and Group from the information I found in step 2.

You need to restart apache for the change to take effect.
sudo apachectl restart

Congratulations, you are now running httpd as your local account.

Add Page Template from Plugin

/**
 * Add page templates.
 *
 * @param array $templates The list of page templates
 *
 * @return array  $templates  The modified list of page templates
 */
function sf_add_page_template_to_dropdown( $templates ) {
	$templates[ plugin_dir_path( __FILE__ ) . 'templates/page-template.php' ] = __( 'Page Template From Plugin', 'text-domain' );
	
	return $templates;
}

add_filter( 'theme_page_templates', 'pt_add_page_template_to_dropdown' );