Category: english

elections project

Elections project is project running for 11 years, since national elections on 2004. It is a project that gave us experience with php, web servers, communication with other people, specially people from the media and some money. But we never talked on public about the project mechanics.


slxEaseInventory add-on for cs-cart 4.x

The problem. We have t-shirts with options color and size. Lets say sizes are S, M, L, XL and colors are Red, Green and Blue. We track inventory with options, that means 4×3=12 combinations. So after setting up the product we have to update inventory and for a good looking shop we would like to […]


Cs-Cart admin pagination

Notes on how pagination is done in admin section of cs-cart. In the controller: if ($mode == ‘under’) {   $params = $_REQUEST; $params[’paginate’] = true; if (!empty($params[’paginate’])) { $params[’page’] = empty($params[’page’]) ? 1 : $params[’page’]; $params[’total_items’] = db_get_field("HERE GOES THE TOTAL LINES COUNT QUERY", DESCR_SL ); $params[’items_per_page’] = $params[’items_per_page’] ? $params[’items_per_page’] : Registry::get(’settings.Appearance.admin_elements_per_page’); $limit […]


MudraKart

This month I started a new collaboration with an Indian partner, SEAES (p)ltd. A new player in Indian e-commerce. They had installed cs-cart multivendor version and I was called to build some add-ons and act as the CTO of the site. Seems an exciting opportunity to expand and exploit my knowledge of e-commerce and business […]


Hooks explained

The simplest implementation of hooks is to have a global array holding the registered hooks, a function to make hook registrations and finally a function to call the corresponding function handlers for a given hook, as shown in the next code segment. 1 2 3 4 5 6 7 8 9 10 11 12 13 […]


ubuntu extra notes

Some extra notes on ubuntu server. Add mysql that can connect from any where mysql> CREATE USER ‘monty’@’localhost’ IDENTIFIED BY ‘some_pass’; mysql> GRANT ALL PRIVILEGES ON *.* TO ‘monty’@’localhost’ WITH GRANT OPTION; mysql> CREATE USER ‘monty’@’%’ IDENTIFIED BY ‘some_pass’; mysql> GRANT ALL PRIVILEGES ON *.* TO ‘monty’@’%’ WITH GRANT OPTION; Rsync to a machine with […]


Cs-Cart installments για 4.x

Δόσεις για cs-cart 4.x περιλαμβάνει Πειραιώς, Eurobank, Αλφα (modirum). Έκανα νέο post για να μην μπλέξουν οι οδηγίες εγκατάστασης με το προηγούμενο. Η μεγάλη βελτίωση είναι οτι δεν αντικαθηστούμε core αρχεία, οπότε είναι ευκολότερη η αναβάθμιση. Χρειάζεται να προσθέσουμε 4 hack μόνο. Τα περιγράφω αναλυτικά στη συνεχεια. Λειτουργικά είναι ίδιο με το προηγούμενο. Τέλος νομίζω […]


Configure MySQL to keep log of all queries on Ubuntu Linux

To turn MySQL general log we must edit MySQL configuration file located in /etc/mysql/my.cnf on Ubuntu Linux system and we must do that with administrative privileges. So here’s how to do that using CLI editor nano: sudo nano /etc/mysql/my.cnf Now we must locate following lines: #general_log_file = /var/log/mysql/mysql.log #general_log = 1 To turn MySQL general […]


ubuntu notes

A step by step guide to setup a symfony dev enviroment in ubuntu hosted in VirtualBox.


A new start

I just installed wordpress on this domain to mark a new start on my online and offline activities. For a long time I have beed sunk in the mad and lost my contact with the “enviroment” and technology. It’s time to get up and run after the sun again. Soon I will start working on […]