Need a reliable senior web developer or consultant for hire? Contact me!

Mar 03 2013

Get the database size from the mysql console

If you want to check the DB size before dump, login with mysql to the database and run:

 SELECT table_schema "DB Name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB"FROM information_schema.TABLES GROUP BY table_schema ; 

It would list all databases and their size in MB.

Thanks to the MySQL Forums for the tip.

Sep 18 2012

Tether Internet from a mobile 3G in Fedora via Wi-Fi

I've found a great guide for Internet tethering from Ubuntu. You could use the same guide in Fedora with Gnome or other Gnome-related platform.

If you have a UDP (LAN) wired connectivity or a mobile broadband connection, you could create an ad-hoc wifi network that spreads that internet connectivity. Follow the steps, specifically the ad-hoc and automattic settings, as well as adding a specific WEP-protected password, in order to share the Internet connection to another device.

Keep in mind that 'Shared' option is mandatory for the 'server' and you also have to pick 'ad-hoc' type of network from the other device that you use to connect from.

Sep 07 2012

Fedora on Mate small updates

I did two small updates today on the Fedora Mate setup (using the old Gnome supported release instead of the new terrible desktop environment).

First off, by default in Mate there are no Shutdown or Restart buttons. In order to be able to reboot, you need to wait for 60 seconds to logoff to the login screen and then reboot.

You could fix that by installing the ConsoleKit and activating the service as described here.

Second, since there is no UI to change the background visible on login and for unlocking (the annoying fireworks background), it's located in /usr/share/backgrounds/beefy-miracle/default/standard named 'beefy-miracle.png' (normally), though it's really linked from /usr/share/backgrounds/default.png (which links to the first one). So feel free to replace it and solve your problems.

Aug 12 2012

Setting up Grails and Postgres on Fedora

On Fedora, install Groovy with yum.

Then, download Grails and follow the guide: http://grails.org/doc/latest/guide/gettingStarted.html#requirements

Important: set correct Java and Grails home paths to be used by the engine.

Plain and simple guide for Postgres - https://community.jboss.org/wiki/InstallPostgreSQLOnFedora?_sscc=t

The only difference here was that initdb was called through:

sudo postgresql-setup initdb

Jul 08 2012

Reset Django password

The correct way to do is to create a new super account.

python manage.py createsuperuser

Jun 10 2012

Default FTP lampp for plugin/theme install

On xampp/lampp install on Linux to be able to install or update themes or plugins, default user/pass:

host: localhost
user: nobody
pass: lampp (alternatively xampp)

Mar 25 2012

Preparation of training materials

For the past 7 years I have participated in tens of training courses - local and abroad - and trained hundreds if not thousands of lectures out there. Since I do regular classes on some topics, I need to polish my materials on a regular basis by doing research, testing and exploration to keep them up to date.

There is a variety of new technologies to be covered and I have to prepare materials from scratch for them after receiving a company request. What comes next are meetings with the client, management staff and target auditory, precisely calculating the amount of hours needed, topics, group knowledge level and the amount of exercises needed (unless it is a seminar-based course with no labs). Important thing is targeting the right group. I do send some quiz/test based forms to be filled which cover subjective evaluations from the trainees as well as technical questions ...Dive in

Sep 28 2011

CakePHP headaches at a glance

@jose_zap has replied to me regarding a tweet of mine comparing CodeIgniter and CakePHP and the different aspects of both technologies.

Since Twitter itself is way restricted into the 140 chars (which I like most usually - less offtopic and media) I will better blog this off here as a couple of things I don't like in Cake.

First of all, I've been doing Cake for a year and a half and have several projects up and running with different web services, sync mechanisms and so on. It's usually one of my preferred platforms (right after WP and Croogo which is actually Cake based) but it doesn't mean that I adore all of the features in it.

Auto recursive models 

By default linking the models in Cake sets a recursive level of 1 - so you get a direct access to level 1 of all corelated models. it is usually nice as you don't ...Dive in

Sep 23 2011

Web security workshops in Saudi Arabia

I am off for few weeks delivering several 3-days trainings on web app security best practices in Saudi Arabia. It's my first training outside of Europe so I had to spend some time exploring the culture of the nation here which is pretty exciting.

Already had two trainings so far and few more to go. There is going to be another batch on November for another colleague of mine and I'm trying to sync my materials to serve as a good reference during the next batch of trainings. 

Sep 07 2011

DX Image Box – Lighbox Croogo plugin

Today I released on github DX Image Box. It's a Fancybox wrapper that hooks in the Croogo plugin system so a developer could easily integrate lightbox integration with two lines of code. 

Last time I was doing Croogo work was in December, but recently I had to do some development on small Croogo-based projects and due to the chance that some of the features are going to be reused later, decided to do some plugin work. This is the first plugin released and I will consider contributing another one or two small thanks to Fahad's work on Croogo.

WordPress Themes