Monday, May 21, 2012

ASUS M5A99X EVO and Restore On AC Power Loss

I am in shock.
One of the top ASUS desktop motherboards ASUS M5A99X EVO  desn't have "Restore On AC Power Loss" feature.

Sunday, March 4, 2012

Arnova sells broken "Arnova 7 G2", which damages SD Card filesystem

Hi
I bought a tablet "Arnova 7 G2" and found the critical bug on the firmware.
Arnova 7 G2 damages SD Cards filesystem!
I sent a bugreport to Arnova 25.01.2012 but Arnova doesn't fix the problem and doesn't even reply to the message.

Other disadvantages of Arnova 7 G2:
1. The minimum brightness level of the screen is very high. Read the book in a dark room is impossible due to pain on eyes.
2. Menu buttons in the top of the screen are white, and they can not hide. Because of this, using the tablet in the dark is impossible.
3. After some period ot time a pause/play stops working correctly on all third-party video players (MX Video Player, mVideolayer, QQlayer, Rocklayer, MoboPlayer, VitalPlayer)
and they do not save the position of the playback.
4. Version of the built-in browser is outdated and it displays websites incorrectly.
5. Version of Android with latest firmware is outdated (2.3.1) and can't be updated.
6. Many games developed for Android 2 doesn't work correctly on this tablet, but perfectly work on my HTC Desire.

DON'T BUY THIS TABLET UNTIL ARNOVA FIX THE FIRMWARE - IT DOESN'T WORK CORRECTLY!!!

Bugreport:

Tuesday, November 23, 2010

CKEditor: Plugin And Toolbar Button For PRE, CODE, H1, H2, H3, H4, H5, H6, DIV, P Style Formatting

Hi all.

This small howto help you to create a plugin for CKEditor 3.4 and add a new toolbar button for p, h1, h2, h3, h4, h5, h6, pre, address and div style formatting.

1. Directory structure:
ckeditor/
    config.js
    plugins/
        button-pre/
            button-pre.png
            plugin.js

2. Create plugin.js:
(function(){
 var a= {
  exec:function(editor){
   var format = {
    element : "pre"
   };
   var style = new CKEDITOR.style(format);
   style.apply(editor.document);
  }
 },

 b="button-pre";
 CKEDITOR.plugins.add(b,{
  init:function(editor){
   editor.addCommand(b,a);
   editor.ui.addButton("button-pre",{
    label:"Button PRE",
    icon: this.path + "button-pre.png",
    command:b
   });
  }
 });
})();

3. Download a button-pre.png: .

4. Register the plugin and add a toolbar button. Modify config.js:
CKEDITOR.editorConfig = function( config )
{
 CKEDITOR.config.toolbar_Basic = [['button-pre', 'Bold', 'Italic', 'Underline' ]];
 config.toolbar = 'Basic';
 config.startupOutlineBlocks = true;
 config.extraPlugins = "button-pre";
};

P.S. You can change pre with code, h1, h2, h3, h4, h5, h6, address, div and p tags.
P.P.S. This plugin also work with the code tag pretty good.

Tuesday, August 31, 2010

Project pkgs.org

Hello, friends!

Let me introduce my new Linux Packages Search project.

The project provides next features:
  1. Large, daily updated database with RPM and DEB packages for well-known repositories of the Fedora, CentOS, RHEL, Debian, Ubuntu, Mandriva and openSUSE distributions.
  2. Packages browser by distribution, repository, packages group with the filtering support.
  3. Detailed packages information (name, version, description, architecture, files, requires, etc.).
  4. HTTP/FTP/RSYNC mirrors lists for the packages downloading.
  5. Packages search by name, summary, description, requires, provides, files and directories.
  6. Effective site navigation.
  7. XHTML/CSS markup.
  8. RSS.

Project site: http://pkgs.org/

Saturday, May 15, 2010

Upgrading PostgreSQL 8.1 to 8.4 on CentOS 5.5

PostgreSQL 8.4 (postgresql84) is now included as a fully supported option in Red Hat Enterprise Linux 5.5/CentOS 5.5.

New features in PostgreSQL 8.4 include: parallel database restore, per-column permissions and new monitoring tools.

A data dump and restore using pg_dump is required for migration from the existing PostgreSQL 8.1 (supplied by the postgres package). Due to this requirement, postgres and postgresql84 contain package level conflicts and only a single version can be installed on a system.

To upgrade PostgreSQL, follow these steps:
  1. Create a backups directory:
    # mkdir /pgbak
    # chown postgres:postgres /pgbak/
    
  2. Dump only global database objects (roles and tablespaces), no databases:
    # su - postgres
    # pg_dumpall --globals-only > /pgbak/globals.sql 
    # pg_dump --create --oids --format=c --verbose --file=/pgbak/dbX dbX
    # exit
    
  3. Stop the database server:
    # /etc/init.d/postgresql stop
    
  4. Create full backup of database cluster (is not used in upgrading process):
    # mv /var/lib/pgsql/data /pgbak
    
  5. Upgrade PostgreSQL 8.1.6 to 8.4.2:
    # yum remove postgresql*
    # yum install postgresql84-server
    
  6. Initialize new database cluster:
    # /etc/init.d/postgresql initdb
    
  7. Restore configuration files modifications on /var/lib/pgsql/data/*.conf
  8. Start the PostgreSQL service:
    # chkconfig --level 35 postgresql on
    # /etc/init.d/postgresql start
    
  9. Restore global database objects (roles and tablespaces) and databases:
    # su - postgres
    psql -f /pgbak/globals.sql
    pg_restore --create -d postgres /pgbak/dbX
    # exit
    

Wednesday, May 5, 2010

ASUS P5Q Sensors Configuration on CentOS 5

1. Install ELRepo repository.
2. Update lm_sensors:
# yum update lm_sensors
3. Install coretemp kernel module:
# yum install kmod-coretemp
4. Detect available sensors:
# sensors-detect
5. Start lm_sensors service:
# /etc/init.d/lm_sensors start
6. Get sensors information:
# sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:   +37°C (high = +100°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:   +33°C (high = +100°C)

coretemp-isa-0002
Adapter: ISA adapter
Core 2:   +37°C (high = +100°C)

coretemp-isa-0003
Adapter: ISA adapter
Core 3:   +39°C (high = +100°C)

Hard Drive Temperature Monitoring on CentOS 5

To get a hard drive temperature, follow these steps:
  1. Install EPEL repository.
  2. Install the hddtemp package:
    # yum install hddtemp
    
  3. Execute hddtemp:
    # hddtemp /dev/sda
    /dev/sda: ST3750640AS: 46°C
    

Also you can get a hard drive temperature from hdd SMART table:
  1. Install the smartmontools package:
    # yum install smartmontools
    
  2. Execute smartctl:
    # smartctl -d ata -A /dev/sda
    ...
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
    194 Temperature_Celsius     0x0022   045   049   000    Old_age   Always       -       45 (0 17 0 0)