Blogs

user warning: Table 'diogomelo.ds_settings' doesn't exist query: ds_get_settings /* Anonymous : ds_get_settings */ SELECT module, type, build_mode, settings, fields FROM ds_settings WHERE module = 'nd' AND type = 'blog' AND build_mode = 'teaser' in /mnt/sdf/proj/diogomelo/sites/all/modules/ds/ds.module on line 980.

How to Connect to Oracle Database With PHP Zend Framework

Start by installing Oracle Instant Client basic and devel/sdk provided by oracle from this link http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html.

On Fedora you will have to apply the following commands:

"couldn't load plugin" message on Chrome, Linux

A lot of people is getting this error today. Probably some bad update. They are noticing it mainly on youtube. Anyway, in linux it is very easy to fix. Just delete your PepperFlash directory.

rm -rf .config/google-chrome/PepperFlash/

Please, comment if this doesn't work or if there is a better solution, or more information regarding what is happening.

JavaScript - Compatibility with Internet Explorer

There is a few javascript functions that are very useful but are not implemented on IE: Function.bind, String.trim, Array.indexOf, Array.lastIndexOf and a few more...

I found an script on stackoverflow (lost the link) that tests it those functions exists and, if it doesn't, implement them. Also, as I use console.log for debugging, IE kept claiming console.log doesn't exists, so I added that too (dummy version, just to stop it from complaining).

Here is the script: ie-compatibility.js

Convert Virtualbox/VMware/QEmu Linux Machine to an Amazon EC2 Instance

Just a reminder. There is a great post about converting a Virtualbox/QEmu/VMware linux machine to an Amazon EC2 instance. http://www.ioncannon.net/system-administration/1246/converting-from-virt...

Using a printer shared by another CUPS

To register a printer shared by another CUPS, you can simply use the command:

lpadmin -p printer -E -v ipp://server/printers/printer

I got this from this page http://www.cups.org/documentation.php/doc-1.4/sharing.html

Error: Multilib version problems found -- Error using yum on Fedora fc17

I was trying to install wine on my Fedora fc17 and getting this error message:

VSNM - Very Simple Network Manager

The code is written in python and is very easy to use. It can be found here https://github.com/dmelo/vsnm .

I'm very angry about the way NetworkManager manages my network. Not because it uses graphical interface. But because when I want to change something by command line, there comes NetworkManager minutes/seconds afterwards to creep everything. I find it very hard to conciliate NetworkManager with command line management.

So I've created vsnm. For now, it only supports wifi (WPA/WPA2 and WEP) which, I believe, are the most critical to have.

Have fun ;)

Linux - Lost control on LCD Brightness - How to fix it

Today When I pressed the keys to switch up/down the brightness of my LCD it didn't respond. Googling around, I've found this post https://bbs.archlinux.org/viewtopic.php?id=139610.

ionice - Execution priority for IO

Today I'm doing some very intensive IO usage with mysql. It's basically restoring dumps which includes lots of indexes. It's taking more than 6 hours and it makes it difficult to other processes to use the the IO too.

What I discovered is that you can use the command ionice, which is similar to nice but (as the name suggests) for IO.

Syndicate content