Category Archives: Programming

Programming tips and trick.

How To Fix Odoo PostgreSQL UTF-8 Encoding

Hello, To fix this error, please run this following code sudo -u postgres psql postgres and then run this code update pg_database set datallowconn = TRUE where datname = ‘template0’; \c template0 update pg_database set datistemplate = FALSE where datname = ‘template1’; drop database template1; create database template1 with template = template0 encoding = ‘UTF8’;… Read More »

How To Disable PosBox Status Print

Hello, The posbox status I mean the IP address and Homepage infiormation that printed automatically everytime we turn on the posbox. We can disable this print. Comment it out and put in a pass statement (in bold below): (excerpt from file on the posbox: /home/pi/odoo/addons/hw_escpos/controllers/ -Line 177 has call to comment) Make sure to indent… Read More »

How to disable ads from uTorrent

Hello, Open Options > Preferences > Advanced. Here you’ll find a large list of flags for the app and a filter box. Search for and disable(double click & set false) the following flags: > offers.left_rail_offer_enabled/left_rail_offer > gui.show_plus_upsell > offers.sponsored_torrent_offer_enabled/sponsored_torrent_offer_enabled > bt.enable_pulse > gui.show_notorrents_node > offers.content_offer_autoexec Restart your uTorrent, and the ads should disappear.. Enjoy… Reference… Read More »

How To Change Default Port on Odoo

Hello, The default port of Odoo installation is 8069. If you need to change the default port, please use this step.. vim /etc/odoo/openerp-server.conf Add this code on the file, please change the port to what you want to xmlrpc_port = 9069 If you want to access on port 80 or 443 (SSL) to avoid the… Read More »

How To Fix “shared libraries” errors on Android Developer Tools using Linux 64Bit

If you are using ADT (Android Developer Tools) on Linux 64bit, you will get the following kinds of error : ================================= error while loading shared libraries: ** cannot open shared object file: No such file or directory** ================================= You can fix this issue by simply installing the 32bit drivers sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1… Read More »

Twitter Bootstrap Typeahead

Here is the structure of the bootstrap typeahead script $(‘#search’).typeahead({ source: function (query, process) { // implementation }, updater: function (item) { // implementation }, matcher: function (item) { // implementation }, sorter: function (items) { // implementation }, highlighter: function (item) { // implementation }, }); 1. source This option specifies the data set… Read More »

mPDF : Your web based PDF report

Looking for report for your web based application? mPDF would be one of the good option to choosed. mPDF Installation and setup Download latest mPDF version from the official website. Extract zipped file content to your defined folder and rename it to mpdf for better usage. You may also allow three catalogs to be written.… Read More »