Update – Please visit skpaul.me for latest posts and updates




Thanks for visiting my blog, I have open a blog (http://skpaul.me). So from now, you will get all latest posts and updates on http://skpaul.me.


Please take a look on my personal blog (http://skpaul.me), and let me know your comments and review.


Thanks in Advance

sk paul



WordPress or WooCommerce user manual on adding categories and products

How to add Categories?
Mouse Hover Product
Click on the Category, you will get a form
Just fill up teh below fields
– Name: Type the category name
– Slug: no need to fill it, leave it
– Parent: Select is your category is a sub category> Otherwise leave it.
– Description: Type a little intro about the category if you have, or leave it.
– Display type: No Need, Leave It
– Thumbnail: Click on the “Upload/Add image” button, Upload a image and add that image.

Click on the “Add New Product Category” button and
you are done.Check the list on the right.

How to add author?
Mouse Hover Product
Click on the Author, you will get a form
Just fill up the below fileds
– Name: Type the author name
– Slug: no need to fill it, leave it
– Description: Type a little intro about the Author if you have, or leave it.
Click on the “Add New Author” button and
you are done. Check the list on the right.


How to add Products?

Mouse Hover Product
Click on the Add Product, you will get a form
Just fill up the below fileds
– Product Name: Type the book name
– Below Product name there is a large text area. Enter here all information of the book.
– Product Short Description: Enter short description of the book.
– Product Data: No Need to fill anything here, Leave this secion
– Custom Fields: No Need to fill anything here, Leave this secion
– Author: “Choose from the most used authors”by clicking this link you will get all enlsted authors, just click on the author name or write and add if there is a new author
– Product Categories: Select category from this section
– Featured Image: Set a Image from here
– Product Tags: No need, leave it
– Product Gallery: No need, leave it

Now scroll up and hit the “Publish” Button and
You are done. Check the Products > Products (left menu) and also on the website.

Photoshop like interface(Shortcuts & Icons) of GIMP on Ubuntu/Linux

I was a windows user and recently transfer to Linux (Ubuntu). I try GIMP on Ubuntu as an alternative of Photoshop, but facing some issues, bcoz the interface is not exactly like Photoshop and I need a quick solution. So, I google and find a GIMP Photoshop Tweaks and here it is..

and Here is the process how can you change your GIMP  default interface like Photoshop

0. Close GIMP, if it is open.
1. Download the Tweak File from Here
2. Keep a backup of your present GIMP configuration.
– just type below command on your terminal

mv ~/.gimp-2.8 ~/.gimp-2.8.backup

– Go to the Home folder and press Ctrl+H (to view hidden files & folders).
– Find the folder named .gimp-2.8
– Rename .gimp-2.8 to .gimp-2.8.backup or wahtever you want

3. Extract the downloaded zip file in your Home folder. You will get a hidden folder named .gimp-2.8 with new configuration like Photoshop. (Press Ctrl+H to see the hidden folders/files.)
4. Now Open the GIMP and check out the toolbox, right side panel and interface..
5. If you are done and everything ok, then do a comment here and share this article, bcoz sharing is caring :p


N.B.: And if you don’t like/need Photoshop Like interface and want to roll back to the default GIMP Interface just type below command on your terminal

rm -r ~/.gimp-2.8

mv ~/.gimp-2.8.backup ~/.gimp-2.8


Thanks 🙂




ref: doctormo.deviantart.com

Laravel 5.1: Unsupported operand types (FatalErrorException in …)

Ok. When I am upgrading my application from Laravel 5.0 to 5.1 I get an falat error that this showing “Unsupported operand types”


What did I do on Laravel 5.0:

I add two array with in + operator, and that is the problem. So, I looking for solution and get this on Laracast

$item_list = array(”=>’–Select–‘) + Model::lists(‘name’, ‘id’);

what do I do on Laravel 5.1

this is a quick fix: just add another function at the end of the line ( and just before of the ; )  ->toArray()

so, here is the updated code

$item_list = array(”=>’–Select–‘) + Model::lists(‘name’, ‘id’)->toArray();


Why this: the reason for this update.

In 5.1, in Colleciton.php, it uses this:

return new static(Arr::pluck($this->items, $value, $key));

instead of this:

return array_pluck($this->items, $value, $key);

which, in turn does this:

return (Arr::pluck($this->items, $value, $key));

So it looks like the new behavior is to return a collection vs an array, thus the need to specify the toArray()


credit: @scottlaurent

2014 in review

The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

A San Francisco cable car holds 60 people. This blog was viewed about 2,900 times in 2014. If it were a cable car, it would take about 48 trips to carry that many people.

Click here to see the complete report.

তুমি, আমি আর কয়েকটা গাংচিল

তুমি থাকো সুখে
আমি চলে যাবো, বহুদূর,
খুঁজে পাবে না একটি গাংচিলকেও
যারা, সাথে ছিলো এতদূর…

আমি ছিলাম ভালই, তুমি এলে জীবনে
আর গাংচিল গুল, গেল একটি ১টি করে হারিয়ে

দুটি মানুষ, একটি জীবন
একজন যায় হারিয়ে
হলাম আমি হারানো মানুষ
গাংচিলগুলকে সঙ্গে নিয়ে…


How to find src attribute of image tag in php?

In my case, I had a string containing exactly one <img /> tag (and no other markup). And I was trying to get the src attribute.

// get the featured image
$image = '<img src="path/to/image_file" />';

// get the src for that image
$pattern = '/src="([^"]*)"/';
preg_match($pattern, $image, $matches);
$src = $matches[1];

In the pattern to grab the title and the alt, you could simply use $pattern = ‘/title=”([^”]*)”/’; to grab the title and $pattern = ‘/alt=”([^”]*)”/’; to grab the alt.

I hope this solution work for you also. Share and Enjoy. And inspire me by your comments 😉