silverstripe contact form on sidebar

I am sure, this question is asked so many time, but i not going to use page_controller instead use TemplateGlobalProvider

Other day I was going through silvestripe menu-manager by wilr. And I found TemplateGlobalProvider , which is behind global $Now which use in footer to print date.

So I thought to implement silverstripe contact form on sidebar, using the same global TemplateGlobalProvider.

for source-code

Posted in Uncategorized | Leave a comment

xammp – Couldn’t start MySQL!

my screen
$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.0…
XAMPP: Starting Apache with SSL (and PHP5)…
XAMPP: Starting MySQL…
XAMPP: Couldn’t start MySQL!
XAMPP: Starting ProFTPD…
XAMPP for Linux started

below solution from stacloverflow worked for me

sudo chmod 755 /opt/lampp/etc/my.cnf
sudo chmod -R 777 /opt/lampp/var/mysql
sudo chown -hR root /opt/lampp
sudo /opt/lampp/lampp restart

Posted in Uncategorized | Leave a comment

Configuring Ubuntu for VirtualBox to detect USB devices

I was searching web to find the solution for detecting usb in virtualb box.

The trouble was setting user-group setting for vboxusers

usermod -a -G vboxusers courtney #change courtney to your username


Posted in Uncategorized | Leave a comment

silverstripe – listing upcoming events

I recently created a website for stritas public school using silverstripe.

Also wanted to list upcoming events silverstripe-event-calendar developed by uncle cheese in footer, So I have created my own upcoming event listing for silverstripe, so that events can be listing on any other page/footer/section.


Posted in Uncategorized | Leave a comment

install reliance netconnect on ubuntu


* supposed CDROM will automatically mount to the patch ie /media/cdrom0 after modem is inserted.

optional – if does automount, try copy the folder ‘install_linux,’ by inserting the modem on windows; make sure reliance netconnect is not installed in window. Then navigate to usb and copy the folder

lets start

installing reliance netconnect on Ubuntu

Navigate to modem folder location

cd media/cdrom0/netconnect/

sudo sh ./install_linux

done, go online


sudo unztemtapp , I have not tried this command tough

check you netconnect manual for more info

Posted in Uncategorized | Tagged , , , | Leave a comment

install ruby and rubyonrails on fedora18

[Note] I  installed the fedora18 using live fedora18 liveCD

first login using ‘ su ‘.

if gcc compiler is missing, install gcc first ‘yum install gcc’

yum install ruby

yum -y install rubygems

yum install ruby-devel

yum install irb

yum install ri

yum install rdoc

while rubyonrails installation if you get  ‘javascript runtime environment ‘ message. when i googled someone adviced me to nodejs. nodejs  requires ‘gcc-c++’ , so run – ‘ yum install gcc-c++ ‘ first then continue next step


tar zxvf node-v0.10.13.tar.gz
cd node-v0.10.13

make install

exit su login run ‘ exit ‘, continue installing rubygems with normal user account

gem install sqlite3 -v ‘1.3.7’

gem install sqlite3

gem uninstall sqlite3 -a -x -I

gem install rdoc

gem install rdoc-data

gem install rails

rails server

Posted in Uncategorized | Leave a comment

sqlite3/sqlite3_native (LoadError)

Last two days, I was trying to install rubyonrails,
I had installed the rails,ie gems install rail and sqlite3 ie gems
install sqlite3
using su user account, so I thought start the ' rails server ' now. 
But i was getting sqlite3/sqlite3_native (LoadError)

When I installed rails, sqlite3 I was using root user. Unfortunately 
SQLite3 gem does not update the GEM_HOME environment variable
correctly when you are logged in as root.


So I uninstalled the rails and sqlite3, then i logged as user account
and reinstalled the rails and sqlite3, then rerun rails server,  this 
time I got ' execJS autodetect could not find JavaScript '
And the solution to this install 'standalone JavaScript runtime' like
nodejs. Once I installed nodejs and rerun rails server; the server 
started working 'http://localhost:3000/'
ruby 1.9.3
Rails 4.0.0
fedora 18
Posted in Uncategorized | Leave a comment