Skip to main content

Posts

Showing posts from 2016

The living treasure 1

A water bearer had two large pots, each hung on each end of a pole which he carried across his neck. One of the pots had a crack in it, and while the other pot was perfect and always delivered a full portion of water at the end of the long walk from the stream to the master’s house, the cracked pot arrived only half full.

For a full two years this went on daily, with the bearer delivering only one and a half pots full of water in his master’s house. Of course, the perfect pot was proud of its accomplishments.
But the poor cracked pot was ashamed of its own imperfection, and miserable that it was able to accomplish only half of what it had been made to do. After two years of what it perceived to be a bitter failure, it spoke to the water bearer one day by the stream.
“I am ashamed of myself, and I want to apologize to you.”
“Why?” asked the bearer. “What are you ashamed of?”
“I have been able, for these past two years, to deliver only half my load because this crack in my side causes …

Laptop touchpad issue on Linux

I installed Linux (Ubuntu 16.4 LTS) on my new laptop, Fujitsu E series, all went well apart from touchpad which did not work at all. I spend few hours searching (AKA Googling) but could not find any hope. That was embarrassing for me who called himself professional Linux user but cannot fix touchpad issue, what about typical Linux user? there must be way, so I kept searching and reading until finally I found the fix and all is working now. Here is the fix if anyone has similar issue:

In cammed line, run:
sudo modprobe -r psmouse

It should work fine for now but only for current session, it may not work after restarting your laptop, so to add permanent fix, do:sudo vim /etc/modprobe.d/psmouse.conf

And add following, then save and exit.

options psmouse proto=imps


I used vim, you can use your favourite text editor such as gedit, vi etc. I hope this helps someone and save their time. Read more on modprobe.


Thank you for reading this, as always happy to hear from you.

Prestashop + Symfony

I have not been blogging for quite long time (three years ) and now again started to blog and share my thought and experience with like minded people.

I am happy to write my first post after long time about Symfony and Prestashop. When I heard that Prestashop introduced Symfony into their application I was really happy to hear that because it definitely boost Prestashop. I know this because I have many years experience with Symfony as well as Prestashop, even these days on daily basis I work with Prestashop and Magento.

Here I don’t want to compare Prestashop with Magneto (I will do in another post) but I can tell you from my experience that Prestashop is lacking from good robust infrastructure such as Symfony.

Why Prestashop is good with Symfony? I will answer in coming post but before this just to let you know that for now, Prestashop used Symfony in some parts of application not 100%, only in back-office although there is a plan to slowly use in front-office too.

I know some develope…

Vim cheatsheet

Global

:help keyword – open help for keyword

: o file – open file

:saveas file – save file as

:close – close current pane

Cursor movement

h – move cursor left

j – move cursor down

k – move cursor up

l – move cursor right

H – move to top of screen

M – move to middle of screen

L – move to bottom of screen

w – jump forwards to the start of a word

W – jump forwards to the start of a word (words can contain punctuation)

e – jump forwards to the end of a word

E – jump forwards to the end of a word (words can contain punctuation)

b – jump backwards to the start of a word

B – jump backwards to the start of a word (words can contain punctuation)

0 – jump to the start of the line

^ – jump to the first non-blank character of the line

$ – jump to the end of the line

g_ – jump to the last non-blank character of the line

gg – go to the first line of the document

G – go to the last line of the document

5G – go to line 5

fx – jump to next occurrence of character x

tx – jump to before next occurrence of character x

} – jump to …