I installed Drupal 7 in a hostgator shared hosting server.
It used PHP 5.2
After installing Drupal 7, it throwed the following error.
PHP Fatal error: Class ‘PDO’ not found in /home/vncbishw/public_html/zha/quotelect/includes/database/database.inc on line 184
The error.log inside the drupal installation directory said as
[01-Dec-2013 22:06:17] PHP Warning: PHP Startup: Unable to load dynamic library ‘/opt/php53/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so’ – libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
[01-Dec-2013 22:06:17] PHP Fatal error: Class ‘PDO’ not found in /home/vncbishw/public_html/zha/quotelect/includes/database/database.inc on line 184
[01-Dec-2013 22:06:49] PHP Warning: PHP Startup: PDO: Unable to initialize module
How to solve this?
We have to enable PHP 5.4
Type the following in .htaccess file inside drupal installation folder.
AddType application/x-httpd-php54 .php
AddHandler application/x-httpd-php54 .php .php5 .php4 .php3
Checked the drupal site in browser.
Now it gave different error.
PHP Fatal error: Directive ‘allow_call_time_pass_reference’ is no longer available in PHP in Unknown on line 0
To solve this, Turn off the value of allow_call_time_pass_reference in php.ini file.
In the php.ini file in drupal directory, change as below.
allow_call_time_pass_reference = Off
Now, the drupal 7 works fine.
Thanks to following links
Recently, I got a word document to convert as an ebook for the site http://FreeTamilEbooks.com
I use http://pressbooks.com to convert html content as ebooks.
I saved the word document as html page.
It has lot of justify fomatted text.
When I copy the text from the html file, it gave lot of formatting issues on the WYSIWYG editor.
To solve this, we have to strip the unwanted HTML tags like p, font, span etc.
Wrote a small python script, which gave a clean HTML file.
Here is the code.
import lxml.html.clean as clean
from BeautifulSoup import BeautifulSoup
orig_content = open(‘t.html’, ‘rw’).read()
soup = BeautifulSoup(orig_content)
result = str(soup)
strip = clean.Cleaner(meta = True, style = True, page_structure = True, remove_tags = ['FONT', 'font', 'span', 'h1','p'])
content = strip.clean_html(result)
new_content = open(‘tw.html’, ‘w’)
Today, My beloved Tamil author Mr.N Chokkan, asked a question in twitter.
புது நூல் / இசை PDF / MP3 கிடைக்குமா என்றுதான் 99.99% ட்வீட்கள். சும்மா ஒரு பாவனைக்குக்கூட, ‘எங்கே வாங்கலாம்?’ என்று கேட்பதில்லை
புதுப்பட / பாடல் / புத்தக download லிங்க் பகிரங்கமாகக் கேட்போர் ‘அரிசி அரை கிலோ வேண்டும், எங்கே திருடலாம்?’ என்று ட்வீட் எழுதுவார்களா?
He asks that
People ask for download link when a new Book/Movie/Audio is released.
99.99% tweets are regarding download links. Nobody asks for a link to buy them.
Will people ask for a how to steal rice, when they need to buy it?
This questions raised a lot of thoughts and sharing them here.
Sharing is a nature of human. When we are kids, our moms asked us to share the foods with our friends. They put extra food in our tiffin boxes for sharing.
She share the food with neighbors even today.
They all know that sharing is caring.
It is not about the cost. I have a thing with me. I will share it with anyone.
Its my right.
It historic days, Ramanajur, the Hindu saint, was asked to keep a secret of god.
He reached to a temple tower and announced the secret to all public, proving that all good things should reach all.
Check Chapter 11
All the world literature is being transformed for ages and ages to next generation just make sure that all the good should reach all. Nobody cared about the copyright laws.
Let us come to the modern era.
There are Analog Products and Digital Products.
Let us compare an Analog Book or Motor Bike.
To make a Motor Bike, the manufacturing company should invest atleast 30-40% of the selling price. For each MotorBike, the company should invest the same 30-40% cost of the bike.
Once I bought the Bike, Its my own property.
- I can ride it anywhere.
- I can share it with my friends.
- I can make it into parts on to know how it works.
- If I am a mechanic, I can repair or rework on it to customize it.
- I can resell it.
- I can donate it.
I can do whatever I want.
Let us come to a Digital Product.
It is a Software/Music/Ebook.
Let us say the Company invests 30-40% of the selling cost to create the first copy of the product.
What is the cost the company invests for the second copy? 0 Rs or 10 Rs for the CD or DVD. But they sell all the copies to the same rate. How this is correct?
Fine. Its their wish to sell for any cost. As a buyer what rights I get?
- I should not make copies of it.
- I should not share it.
- I should not modify it.
- I should not study it.
When a mechanic can study a Bike, As a software engineer why should not I study the software I buy? Why I dont get the source code?
When I buy a music cd, why I should not share it with my friends, when I share my Bike? Why I should not resell the CD, when I sell my bike?
Business people may come with some weired answers for these questions.
They need to make tons and tons of money with one time effort and to sell million times.
They say with lot of buzzwords like intellectual property, copyright laws etc, just to make sure that the digital products are not copied and shared.
Fine. It will be nice, if anyone replied here on what are the fears of a Digital Product creator to sell his products for a cheaper price with all rights to the buyer?
Do you think that we can not make money when there is no secret?
Take the Food Industry.
Most of us know, how to make Idly, Sambar, Rice and all other delicious Food.
But still there is Saravana bhavan making money. HotChips makes money.
Name a branded hotel. It makes Millions of money, where all the recipe are open to public. They sell the Food with all the rights to the buyer to share, resell, remix, etc.
If they can make money, with open recipe and rights to share, we also can make it. Yes. Need to make a lot of changes in business model and have to reduce the greediness of making million dollar by investing only one time.
Let us think on the other way.
We are living in a era of sharing.
Though there are tight laws, we can not prevent online sharing of digital products.
Though it is illegal, people love to share their contents. Because, Sharing is in our blood.
People will pay and buy any product that is affordable and encourages them to learn it, hack it, share it and remix it.
Still in doubt?
Write a book and release the PDF for 20-30 Rs with all rights to share and remix in Creative Commons license.
Choose a suitable license from here. http://creativecommons.org/choose/
I am sure you will get more money then you get as royalty when you release as a printer book by any publisher.
(Ask your known writers on how much they make money as royalty. They get very less and they even dont know how many books are sold. Publishers wont share any business data with the writers.)
Reply here, If you agree to buy such a Digital Product that is cheap and in Creative commons license.
Indian Linux Users Group, Chennai [ ILUGC ] is spreading awareness on
Free Open Source Software in Chennai since Jan 1998. We meet regularly
on every month second Saturday with technical talks and discussions on
various Free software.
Check our website http://ilugc.in for further details.
Join our mailing list at http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
We have our Meet on Nov 9, 2013
Check the details below.
ILUGC Monthly Meet (Nov 9 2013):-
Time : Sat Nov 9, 2013 (3.00 – 5.30 PM)
Classroom No 1,
Aero Space Engineering,
Near Gajendra Circle,
Link for the Map: http://bit.ly/iitm-aero
Demonstration of Clang Static Analyzer
The Clang Static Analyzer is a source code analysis tool that finds bugs in C, C++, and Objective-C programs.
Currently it can be run either as a standalone tool or within Xcode. The standalone tool is invoked from the command line, and is intended to be run in tandem with a build of a codebase.
The analyzer is 100% open source and is part of the Clang project. Like the rest of Clang, the analyzer is implemented as a C++ library that can be used by other tools and applications.
Duration: 30 mins
Prerequisite: Knowledge on C/C++, Compilers.
Speaker: PrasannaKumar Muralidharan [ prasannatsmkumar AT gmail.com ]
About the speaker: He is a contributor to the Text to Speech project "Dhvani" http://dhvani.sourceforge.net/
Introduction to Samba 4.
Samba is the standard Windows interoperability suite of programs for Linux and Unix.
Samba is Free Software licensed under the GNU General Public License, the Samba project is a member of the Software Freedom Conservancy.
Since 1992, Samba has provided secure, stable and fast file and print services for all clients using the SMB/CIFS protocol, such as all versions of DOS and Windows, OS/2, Linux and many others.
Samba is an important component to seamlessly integrate Linux/Unix Servers and Desktops into Active Directory environments using the winbind daemon.
Duration : 45 Minutes
Speaker: Baskar K [ baskar910 AT gmail.com ]
About the speaker: Corporate Trainer, Founder of CloudSoft Technologies.
Let us translate Octave GUI in Tamil
GNU Octave is a high-level interpreted language, primarily intended for numerical computations. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation. Octave is normally used through its interactive command line interface, but it can also be used to write non-interactive programs. The Octave language is quite similar to Matlab so that most programs are easily portable.
Let us translate it GUI into Tamil.
Come with laptops, or you can write on paper.
Duration: 30 minutes
General group discussions on any queries, events etc.
CDs/DVDs can be shared on prior request.
Announce this to all your friends, social network sites etc.
All are welcome. Entry Free
Shrinivasan – 98 41 79 54 68
Venkateshwaran Loganathan, A Chennai guy has authored an international book "PySide GUI Application Development" from Packt Publishers.
This book will take you through everything you need to know to develop
UI applications. You will learn about installing/building PySide in
various major operating systems as well as the basics of GUI
programming. The book will then move on to discuss event management,
signals and slots, and the widgets and dialogs available with PySide.
Database interaction and manipulation is also covered. In a nutshell,
this book is great for learning how to program applications with GUI
and for mastering how to develop your own applications and how to run
them across platforms.
The ebook is available for sale
It is very affordable. Rs 129 only.
I got a chance to Interview the author. It is very interesting and inspiring.
Here it goes.
1. About Venkateshwaran Loganathan
(taken from "About the Author" page from the book site)
Venkateshwaran Loganathan is an eminent software developer who has been involved in the design, development, and testing of software products for more than five years. He was introduced to computer programming at the age of 11 with FoxPro and then started to learn and master various computer languages like C, C++, Perl, Python, node.js, and Unix shell scripting. Fascinated by open source development, he has contributed to various open source technologies. He is now working for Cognizant Technology Solutions as an Associate in Technology, where he has involved himself in research and development for Internet of Things domain. He is now actively involved in using RFID devices for evolving the Future of Technology concepts. Before joining Cognizant, he worked at Infosys, Virtusa, and NuVeda. Starting his career as a Network Developer, he has gained expertise in various domains like Networking, e-learning, and HealthCare. He has won various awards and accolades for his work. He holds a bachelor’s degree in Computer Science and Engineering from Anna University and currently pursuing M.S in software systems from BITS, Pilani. Apart from programming, he is actively involved in handling various technical and soft skills classes for the budding engineers and college students. His hobbies are singing and trekking. He likes to get involved with social media.
2. How did you get interest to write a book on pyside?
Writing and publishing a book was one of my long time dream. I am very much fascinated about the fact of being an author. Being nurtured from a family of teachers, I love to teach early from my school days. During my college days, I am very well known for teaching and conducting seminars. In order to make my teaching effective, I would provide the people with my hand written notes which became very popular for its flow of thoughts and simplicity. That had seeded an idea of writing a book. Since then, I was looking for various opportunities to write a book.
3. How did you connect with Packt Publishers?
I would say that I was actually dreaming about the idea of publishing a book every night since I thought of it. So, I was looking for various opportunities that could help me in realizing my dream. One fine day, when I was browsing through the library for some help in a technical issue, I found some of the books from Packt. When checking online from their site, I found some link on information about writing for Packt. I had also knew some people who had already written for Packt. So, I contacted the executives from Packt about my idea which has nurtured into what you are seeing it in your hands as a book on PySide.
4. How long it took to write this book?
From contacting the officials from Packt to the final publication of the book, it took around six months. My Book is actually a mini book on introduction to PySide spanning about 100 odd pages which itself had taken half a year. Wriitng a complete standard book with around 400 pages will definitely take a year if you don’t have to compromise on the quality of the writing. Starting from initial mail communication, this project has undergone various stages like, Proposal, Proposal Acceptance, Signing of Contract, Writing, Review, Editing, Final Review and Publication in that order.
5. Any interesting experience on writing this book?
Ouch.. Not one or two but many experiences. Writing a book itself is both an interesting and rewarding experience. I would say I had undergone both a difficult and interesting time period during the stint. Coping up with your work and simultaneously writing a book is not an easy task. I had to forgo sleep for may nights to keep up with the timing and contract. Sometimes I had vague dreams when the deadlines are near and I have to complete a lot of things. Since I am pursuing my masters degree also in parallel, I had to work for three deliveries at the same time. After completing three chapters, I was suddenly ill and admitted to hospital for a couple of days and was advised not to strain for at least a fortnight. Since it is a mini book each chapter would contain not more than 20 pages, my deadline would be hardly a week for a chapters delivery. I had to write to Packt for missing the deadlines since I was ill and they stood by me in those times. The people from Packt were so understanding and helpful which actually encouraged me to complete the book in time.
6. Do you have any stats on the sales of the book?
I dont have any exact statistics to share with you since its hardly a week since the book is published and the data is collated on a monthly basis. However, I heard from Packt that the sales is doing quiet well and is popular.
7. How the ebook is selling?
More than the paperback, ebook sales is doing extremely good. One of the major reasons is its low price and easy availability. Of the total book sales till this time, 90% were ebook sales.
8. Any suggestions for new writers?
Writing is an art. Technical writing is art within an art. If you know if you have the flair for writing and can clearly explain your thoughts in writing, there is nothing stopping you from writing a book of this sort. Make it simple and easy. Explain the concepts clearly and in little depth and also please make sure that your book stands out the rest of the books of same kind. It is an art that you will develop only by expertise but start it immediately. There are hell lot of topics to write on and there are many publishers who would be interested to publish your book. Search for a right opportunity and show up your talents.
Many have a biased thinking that only scholars from foreign universities are authorized / capable of writing a technical book. Well, that is not true. Anyone who is technically good and can understand the readers mind can write a book. After all, it is an art developed by practice. Start writing blogs and simple posts and as you gain expertise you can think of authoring a book. Moreover, the opportunities are far better now to publish a book. Many publications offer variety of services for budding authors. They even help you with your writing style. So, what are waiting for?
Please write to me in case if you need more details. I would always be happy to help.
I thank Venkat for his nice work and the interview.
Hope his works will help to bring new QT developers and authors.
Fedora GNU/Linux Distribution is celebrating its 11th birthday today.
Though I have used it very little, might for few days in my 10 years of life with GNU/Linux,
I installed it for many users.
I started from slackware, refered by Chandrashekar.
Then, moved to Debian, refered by Raman.
Then, explored Mandriva, OpenSuse, ArchLinux and Ubuntu.
All the distros just a wrappers for the applications we use. Whatever the distro, we use only the Desktop Environments like KDE, Gnome etc, and applications like browsers, email clients, terminal etc.
What Fedora provides is the nice similar structure of RedHat.
I suggest to try Fedora for all the people, who study for RHCE exam. Most of the RHCE people I know are ignorant of the similirities of the linux distros.
They steal the RedHat distro and they install it in their laptops and computers. They do not want to come out of RedHat.
They dont enjoy the fancy and luxary stuff that a GNU/Linux distro provides. RedHat is good for servers. Not for laptops.
To learn the GNU/Linux, we have to use it in our daily use.
We have to use to hear music, to watch videos, to connect with wifi, to play games, to install tons of application.
These RHCE guys can not do anything that a normal computer user can do with their RedHat computers.
Here, the Fedora gives them a surprise.
They can experience the same structure of RedHat and all the bells and whistles of a modern GNU/Linux distro.
With tons of new applications added to the Fedora repositories, they can enjoy a new life and experience with a GNU/Linux system.
Please refer about Fedora to all the RedHat beginners and let them enjoy their GNU/Linux distros, by using it for all thieir activities.
Recently, one of my friend, who is practising GNU/Linux, struggled a lot to do some activities in only of my production servers.
Reason: No expereince in production servers.
Though he is a RHCE guy, he has all the theory knowledge and very less practical knowledge
on working with email servers, firewall etc.
I suggested him to buy a VPS and practise all the stuff he has learnt.
https://www.digitalocean.com gives 5$/month VPS.
It seems so cheap and will give good experience for beginners.
There may be even cheap VPS providers.
http://crazydomains.in provides .in domain for 99 Rs/year.
My friend bought a domain and VPS.
Started to install the servers he studied.
Hope this will be a good start of exploration
I suggest all the GNU/Linux Administrators to buy a VPS for regular practise. Believe me, it will give you tons of experience and learning.
Click this link
to buy a VPS.