Wednesday, September 30, 2015

How to enable code completion for Laravel 5 in Netbeans.

I have been using netbeans as my PHP IDE for a long time. I started learning and using laravel php framework recently. My preferred IDE for my PHP projects is netbeans. First thing I wanted is to enable code completion support for laravel in netbeans.  I explored a little and found the following simple way to do this.

1. Downloaded _ide_helper.php file from github Gist(by github user: barryvdh): https://gist.github.com/barryvdh/5227822

2. Place the above file (_ide_helper.php) in laravel root folder(as shown below).


3. Restart netbeans and opened your laravel project.

4. Now autocompletion will be enabled for laravel specific code as shown below:


I hope this will help other netbeans + Laravel users.





For more details refer to the following:
https://github.com/barryvdh/laravel-ide-helper
https://laracasts.com/series/how-to-be-awesome-in-phpstorm/episodes/15

Thursday, November 25, 2010

Getting started with pyside - Python for Qt

Pyside lets us to develop Qt applications using python language. I started to trying out pyside recently. And I will be writing my pyside learning in the form of tutorial as my learning progresses.

Here are the steps to get started in pyside:
1. Download and install python 2.7 from here: http://www.python.org/download/
exact URL used by me: http://www.python.org/ftp/python/2.7/python-2.7.msi
pyside doesn't support python 3.x yet.

2. After that add the python path to the environmental variables in the windows. If we run python in command window, we should get the following result to confirm python is installed correctly :

C:\>python
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>>


3. download pyside and install it. I used the windows binary for python 2.7 from here: http://developer.qt.nokia.com/wiki/PySideBinariesWindows

Direct URL to download this: http://www.pyside.org/files/pkg/PySide-0.4.2qt47.win32-py2.7.exe

3.a. In ubuntu linux(version 10.04 & 10.10) pyside can be installed using the following commands:

sudo add-apt-repository ppa:pyside
sudo apt-get update
sudo apt-get install python-pyside


4.After its done, run the following hello world python script:


import sys
from PySide import QtCore, QtGui

app = QtGui.QApplication(sys.argv)

win = QtGui.QWidget()

win.resize(320, 240)
win.setWindowTitle("Hello, World!")
win.show()

sys.exit(app.exec_())



If you are able to get a window launched, then it confirms that you have pyside installed in your system and ready to explore pyside in detail.

6. optional- Once you have learned the basics, you might want to take advantage of the Qt tools like Qt Designer to speed up your development. Those tools are available as part of the Qt SDK download. You can download Qt SDK for windows from here:
http://qt.nokia.com/downloads

7. Optional - You can speed up your Pyside learning by following the examples given in pyside website.
You can download the examples package from this URL: http://qt.gitorious.org/pyside/pyside-examples/archive-tarball/master

Friday, November 19, 2010

eKalappai 3.0 released.

eKalappai 3.0 version is released.

Here are the main features supported in this version:
- Supports following 5 keyboards to type Tamil in Unicode encoding: Tamil99 , Phonetic, Typewriter, Bamini, Inscript
- Keyboard shortcut (F2 key) to toggle between English and Tamil keyboards.
- Users can change the shortcut key to toggle between English and Tamil keyboards.
- The keyboard logic is stored in external files in scim-tables format(which is used in: http://www.scim-im.org/scim project) and some of the existing keyboards from SCIM project are reused here.
- Tamil99 and Tamil-typewriter keymaps are made so as to near fully conform to Tamil Nadu government's prescriptive standards for extension to Unicode as in G.O.Ms 29 dated 23-06-2010 and documents attached tender call of Tamil Virtual Academy TVA/SW/2010-11.
(Ref URLs : i) http://www.tn.gov.in/gosdb/gorders/it/it_e_29_2010.pdf ii) http://tenders.tn.gov.in/pubnowtend/uploaded/TD_tvu53245_teder_document_... )

eKalappai 3.0 can be downloaded in the following URLs:
http://thamizha.com/project/ekalappai
http://code.google.com/p/ekalappai/downloads/list

(Reference: http://thamizha.com/news/ekalappai-30-released)

Saturday, September 18, 2010

eKalappai 3.0 Beta3 released.

eKalappai 3.0 beta3 is released in our project code page - http://code.google.com/p/ekalappai/

Features available in "eKalappai 3.0 Beta3 version":
1. Contains following 5 keyboards:
Tamil99 , Phonetic, Typewriter, Bamini, Inscript
2. Single click installer/uninstaller
3. Keyboard shortcut (F2 key) to toggle between English and Tamil keyboards.
4. Users can change the shortcut key

It contains 5 keyboards, has option for the user to change shortcut keys to toggle keyboards. Other than these visible changes, there is a major improvement in the code.

The keyboard logic is re-written to handle scim-tables format which is used by scim project.

All the 5 keyboards available now are in scim-table format. They all reside under keyboards folder inside the installation directory.

This means, users who like to tweak the keyboards, can directly open the keyboard files in a notepad and edit! The format of the keyboard files are very simple and self explanatory, you can view them here.

This scim-tables support opens up possibility to support any language easily. We have to just write a keyboard file using notepad and few changes in source code. So next releases will support more languages !

Keep watching http://code.google.com/p/ekalappai/ :)

Friday, April 02, 2010

eKalappai 3.0 Beta1 released.

eKalappai 3.0 beta1, first beta version for Open-source ekalappai 3.0 series is released in our project code page - http://code.google.com/p/ekalappai/

It contains Phonetic and tamil99 keyboards. Users can try this and let us know the issues/feedback.

Features available in "eKalappai 3.0 Beta1 version":
1. tamil99 and phonetic support
2. Single click installer/uninstaller
3. Keyboard shortcut (ESC key) to switch between English and Tamil keyboards.

It can be downloaded from http://code.google.com/p/ekalappai/downloads/list.

Its an open-source project and anyone with c++ knowledge can participate. I request C++ programmers help to improve this product. Write to me if you are interested in this project.

Sunday, March 07, 2010

eKalappai 3.0 Alpha released.

I have released "eKalappai 3.0 Alpha version" with following features:
1. tamil99 and phonetic support
2. Single click installer
3. Keyboard short cut (ESC key) to switch between English and Tamil keyboards.

It can be downloaded from http://code.google.com/p/ekalappai/downloads/list .

I request volunteers to use this version and report your bugs in this page:
http://code.google.com/p/ekalappai/issues/list

Wednesday, February 10, 2010

eKalappai OSS source code released under GPL v3 licence

I have released the source files for the new eKalappai under GPL V3 license. Its available at this location:
http://code.google.com/p/ekalappai/source/browse/

After spending a long time researching and learning in the net I have managed to bring out this opensource version of our popular ekalappai software. I request intrested C++ programmers to play with this code & give feedback. Also you are welcome to join the project and contribute in whatever way(coding, testing, documentation, writing about the project and spread word) possible.

My primary objective was not to use any commercial paid compilers. Also I wanted this code to be as portable as possible so that in future we can get this working in other operating systems. The current working ekalappai is created using Qt(opensource) & VC++ express (this is a free version provided by Microsoft).

It will be possible to remove VC++ express dependency by creating the required dll using Qt. But I havent figured this yet. Hope to do that in future.

I will write a detailed developer documentation on building ekalappai using the code soon. Keep watching the ekalappai project page http://code.google.com/p/ekalappai for updates. Also join our discussions in our mailing list (FreeTamilComputing list).

Wednesday, August 20, 2008

Tuesday, July 08, 2008

Steps to deploy redmine application in ubuntu 8.04 using mod_rails(passenger).

Redmine is my favourite project management tool written in ruby on rails. Recently I deployed this i a Ubuntu 8.04 machine using Apache2 + mod_rails. Mod_rails is a apache module which has made rails deployment as easy as php deployment. You can find more details about mod_rails here: http://www.modrails.com
I was able to install mod_rails and deploy redmine after doing some googling and trial & Errors

Here are the steps for deploying redmine using modrails in ubuntu 8.04:

1. Intalled Ruby language, build essential(to build gems later) and related dependent components using apt-get.

$ sudo apt-get install ruby irb ri rdoc ruby1.8-dev libzlib-ruby libyaml-ruby libreadline-ruby libncurses-ruby libcurses-ruby libruby libruby-extras libfcgi-ruby1.8 build-essential libopenssl-ruby libdbm-ruby libdbi-ruby libdbd-sqlite3-ruby sqlite3 libsqlite3-dev libsqlite3-ruby libxml-ruby libxml2-dev


2. Downloaded ruby gems:
$ wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz

3. untared the rubygems-1.2.0.tgz package and installed rubygems.
$ tar -xvf rubygems-1.2.0.tgz
$ cd rubygems-1.2.0/
$ ruby setup.rb
$ sudo ln -s /usr/bin/gem1.8 /usr/bin/gem (use this if /usr/bin/gem link is not created)

4. Installed rails version 2.0.2 using gems. As of now Redmine works only on rails version 2.0.2 (it wont work in rails 2.1.x)
$ gem install rails --version 2.0.2

5. Install mod_rails(passenger). mod_rails is called as Phusion Passenger and the gem package name is passenger. Lets refer to it as passenger hereafter.
Mod_rails requires apache2-threaded-dev apache module to be installed.
$ apt-get install apache2-threaded-dev

$ gem install passenger

6. Install passenger as apache module
$ passenger-install-apache2-module


7.Deploy redmine application
Download redmine and copy redmine folder inside web folders /var/www/
else there will be problem in showing css files and images.
redmine should be in this folder /var/www/redmine
create the database and modify the config files as mentioned in the redmine install document.

8.Apache2 configuration changes:
$ cd /etc/apache2/sites-available/
$ sudo mv default default.bkp

Create a new default file with the following contents.
------------------------------------------------
NameVirtualHost *



ServerName
ServerAlias

DocumentRoot /var/www/redmine/public


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all


ErrorLog /var/log/apache2/error.log

LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On


-----------------------------------------------------------------


9. Restart apache
$ sudo /etc/init.d/apache2 restart


10. Browse http://localhost , redmine should show up in the browser.

Reference:
http://www.rubyhead.com/2008/04/25/installing-ruby-rails-on-ubuntu-804-hardy-heron/

Sunday, April 20, 2008

TamilNadu govt school textbooks available online

Got to know this news from Tamilulagam discussion list.

Tamil Nadu Government has published its school texts books online(its has been mentioned as for viewing purpose only).
Its available at this URL: http://www.textbooksonline.tn.nic.in/

It might be helpful in many ways to students and parents(who are computer savvy). And more importantly it provides open access to the content thats being taught in Tamil Nadu schools.

I dont think any other state in India has done this yet.

Good move by Tamil Nadu Govt.

Saturday, March 01, 2008

Verdict within 110 hrs of commiting crime in India!

Gone are the days in India where courts deliver judgement after ages...

A court in Namakkal (my native place), India has delivered verdict in a murder case within 110 hours of the crime.

Monday, December 17, 2007

Tamil bloggers meet at Pondicherry

Last week I had a chance to attend tamil bloggers workshop in pondicherry. The workshop was organised by pondicherry tamil bloggers

This workshop is a continuation of a series of workshops organized by tamil bloggers in various parts of tamilnadu recently.

About 200 members participated in this workshop. Participants were introduced to technical details of creating and maintaining their blogs in tamil language. Its well organized and there were lot of publicity done. Pondicherry Legislative Assembly speaker and Bharathidasan University vice chancellor are some of the noted figures who participated in this workshop.

I took a session on using ekalappai - tamil typing software for windows.

You can the pictures taken in the workshop:
http://tamilveli-news.blogspot.com/

This shows that tamil bloggers are growing in numbers and getting organized.
In this bloggers meet, some of us decided to take tamil computing workshops to next step. Thus "Project Tamil Ready" was born. More details about project tamil ready is in chella's blog.

My assumption is, there are roughly 3000 tamil blogs which is the highest in any Indian language. Even in hindi there are roughly only about 1000 blogs (if anybody else have a disputing figure please feel free to comment).

Sunday, November 25, 2007

Tamils Protest in Malaysia

I have lived in Malaysia for about 4 years and have known the problems faced by the tamil community.

I watched with heavy heart some of the videos in the net. The way the peaceful protest were handled by Malaysian authorities is very bad. The world leaders should condemn this.


Ethnic Indians protest in Malaysia




Sucking tear gas and laced-water

Monday, September 03, 2007

How to increase the VMWare (preallocated) disk space.

I have started using ubuntu 7.04 (Feisty Fawn) recently. But for some of our office work, I needed older version of ubuntu(6.06). And for that I used VMWare.

Initially I allocated 6GB space to ubuntu 6.06 virtual machine, which I found that is not sufficient for my work. So decided to increase it to 10GB. And after some search in google found a way to increase VMWare disks spaces. Following blog entry is to record the steps which I followed and it might be useful for others also.

I initially tried to increase ubuntu6.06 virtual machine disk size using the following commands:
$cd /var/lib/vmware/Virtual Machines/Ubuntu6.04
$vmware-vdiskmanager -x 10Gb Ubuntu6.04.vmdk

It gave the following errors:
Using log file /tmp/vmware-msubramanian/vdiskmanager.log
This disk is part of a snapshot chain in '/var/lib/vmware/Virtual Machines/Ubuntu6.04/Ubuntu6.04.vmx'.
The selected operation can only be executed on a disk with no snapshots.

I found I have snapshots of ubuntu6.06 vmware disk.

Used the following method to remove the snapshots:
In the VMWare menu, used the Remove Snapshot option,
VM --> Remove Snapshot .. ( This is done while the Virtual machine is switched off)

Again tried using vmware-vdiskmanager it worked.

$vmware-vdiskmanager -x 10Gb Ubuntu6.04.vmdk
Using log file /tmp/vmware-msubramanian/vdiskmanager.log
Grow: 100% done.
The old geometry C/H/S of the disk is: 783/255/63
The new geometry C/H/S of the disk is: 1305/255/63
Disk expansion completed successfully.

WARNING: If the virtual disk is partitioned, you must use a third-party
utility in the virtual machine to expand the size of the
partitions. For more information, see:
http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1647
$

Wednesday, April 25, 2007

Tamil blogging community gets media coverage.

Oflate the number of bloggers who write in tamil language have grown considerably. I assume there could be more than 1000 active tamil blogs currently.
tamilblogs.com aggregator(which I maintain) aggregates content from about 650 tamilblogs.

Recently tamil bloggers held a get together in chennai. And it was covered by popular tamil TV channel Makkal TV. This TV show can be seen in YouTube here. This sort of media coverage for a bloggers get together is a good sign. This will help to get attention of the public towards blogging. And this will lead to increase in the number of tamil bloggers.

I would love to see a strong & responsible tamil blogging community which will act as an alternate media.

Sunday, April 01, 2007

tamilblogs opensourced!

I have been maintaining http://tamilblogs.com for sometime. This is a blogs aggregator which aggregates over 650 blogs written in my native language tamil . Initially I created tamilblogs.com using an opensource blogs aggregatory - gregarius . Later due to performance issues I switched to another opensource blogs aggregator called lilina.

Later I added mysql database support to tamilblogs using code from another similar opensource project lylina. Some of my tamil blogger friends have requested me for the complete sourcecode of the software used in tamilblogs. After few more such requests I thought opensourcing this tamilblogs software would be helpful to many.

Thus was born the new blogs aggregator by name tamilblogs here: http://code.google.com/p/tamilblogs/

Right now one of blogger masivakumar has joined me in this project. I hope many more will join and enhance this project.

Tuesday, February 27, 2007

Tamil Song Search

Recently thro one of my friend I got to know about this website: http://www.s-anand.net/tamil
Its a wonderful service. Using this we can search for a particular song and start hearing it. The search can be made based on the song name or movie name.

For example, I am great fan of late MGR's songs. When I typed MGR in the search bar, it brought me some of the MGR's songs as below.

There are thousands of tamil songs around, its really very useful software.

I wonder why no tamil techie has thought about this earlier (including me :) ) !

Great work! Thanks a lot Anand for creating this.

Thursday, December 14, 2006

TamilKey 0.3 (Thamizh Visai) released.

TamilKey or ThamizhVisai(as its called in tamil) is an extension for typing tamil inside firefox,thunderbird & chatzilla. Its one of the projects initiated and being maintained by a group tamil freesoftware volunteers under thamizha.com.

Tamilkey version 0.3 was released on 12 Dec 2006 and release anouncement was made by our team member Gopi in freetamilcomputing list.

This release has following new features:
1. Support for Bamini and Typewriter keyboard layouts.
Bamini keyboard is popular among Srilankan Tamils and Typewriter keyboard is popular among the Tamil Nadu tamils.

2. User Shortcut option - Now users can set their own shortcuts for various keyboard settings and for switching from english to tamil typing.

3. And also many bugs were fixed in this release.

Almost all the development work related to this version 0.3 was done by Gopi. And also Freetamilcomputing list members Ravi, Thi.Va., Sethu contributed to this release greatly by testing this release and finding bugs.

This can be downloaded from the following locations:
http://tamilkey.mozdev.org/installation.html
https://addons.mozilla.org/firefox/2994/

Thursday, November 16, 2006

My home town in news!

Recently my home town Namakkal - became first town in India to get ISO 14001 certification. I am really proud about this.
http://www.hindu.com/mag/2006/04/09/stories/2006040900210400.htm

I hope other cities in India too follow Namakkal and become clean and efficiently managed cities.

Monday, September 04, 2006

'Crocodile Hunter' Steve Irwin Killed

Just saw this news in BBC site http://news.bbc.co.uk/2/hi/asia-pacific/5311298.stm
I used to watch with awe Steve Irwin's wildlife programs in TV. I feel sad about his sudden death.