Tuesday, July 7, 2015

How to install Raspbian Wheezy to SD Card for Raspberry-pi using Debian Machine

Raspberry-pi is a community product for System On Chip (SOC). It's uses ARM Processor with low power usage. We can say, it's absolutely green computing. Unfortunately, the performance was poor, may be we can find more powerful 4, 6 or 8 core ARM with low power usage. 
This is how I install raspbian on raspberry-pi:
  1. Download raspbian form official site http://www.raspberrypi.org/downloads/
  2. From Debian open terminal as a root privilage
  3. If you dont't have image writer to SD-Card, install this pacakge first # apt-get install dcfldd
  4. Insert your SD-Card and find out where it's mounted by your Debian
    # dmesg
    [  995.384415] mmc0: new high speed SDHC card at address aaaa
    [  995.384943] mmcblk0: mmc0:aaaa SU08G 7.40 GiB
    [  995.390744]  mmcblk0: p1
  5. Unmount SD Card
    # umount /dev/mmcblk0
    umount: /dev/mmcblk0: not mounted
  6. Copy your Raspbian image into SD Card
    # dcfldd bs=4M if=[folder_input_file]/2013-09-25-wheezy-raspbian.img of=/dev/mmcblk0
  7. Make sure the SD-Card is writen properly
    # sync

Note:
Copying image may take a long time, it's size up to 2.96Gigabyte 

How to Remove REVSCI.NET Cookie from Your Computer

REVSCI.NET is categories as tracking cookies. Be Aware of the Following Tracking Cookie Companions:
allyes.com, webstat.net, Sex.Cookie, activemeter.com, beatle.org.
Tracking Cookies
Normally, cookies, which are small text files that certain Web sites leave on computers to store information identifying users and customize Web site content for them (such as the user’s Web site settings and preferences, a list of visited pages, computer details, and shopping card information), are harmless. However, some cookies may be used to track and transmit browsing preferences or other private information to online marketers and spammers.
To detect / delete revsci.net cookie in Mozilla Firefox
  1. From the Tools menu, select Options
  2. In the upper section of the Options window, click Privacy
  3. In the Cookies tab, click Show Cookies or remove individual cookies link
  4. In the Cookies window, enter revsci.net in the Search field and run a search, or you can scroll down the list to check whether the revsci.net cookie is present there
  5. To delete the revsci.net cookie:
    1. Select it from the list
    2. Press Remove Cookie button
To detect / delete revsci.net cookie in Google Chrome 
  1. From the Chrome menu [Google Chrome Menu Button] on the browser toolbar choose Settings
  2. Click Show Advanced Settings... link
  3. In the Privacy section, click Content settings
  4. Click All cookies and site data... button
  5. Start typing revsci.net cookie name in the Search cookies field and cookie list will be automatically filtered, or you can scroll down the list to check whether the cookie exists
  6. To delete the revsci.net cookie:
    1. Hover the mouse cursor over cookie name in the list to highlight it
    2. Click X button that appears on the right corner
To block revsci.net cookie in Mozilla Firefox 
  1. From the Tools menu, select Options
  2. In the upper section of the Options window, click Privacy
    1. In the History group choose Use custom settings for history item from the Firefox will field and Click on Exceptions
    2. For older Firefox versions in the Cookies tab, click Exceptions
  3. In the new Exceptions - Cookies window, enter revsci.net in the Address of Website field and click Block or Disable
To block revsci.net cookie in Google Chrome
  1. From the Chrome menu [Google Chrome Menu Button] , on the browser toolbar, choose Settings
  2. Click Show Advanced Settings... link
  3. In the Privacy section, click the Content settings
  4. Click Manage Exceptions... button
  5. Enter revsci.net in the Hostname pattern (located at the left corner)
  6. Choose Block from the Behavior field (on the right)
Resource: http://www.exterminate-it.com/malpedia/remove-revsci-net

Running PostgreSQL in LAN

These are the files you should modify to make your PostgreSQL accepting connection from LAN
  1. postgresql.conf
    1. Edit file /etc/postgresql/[version number]/main/postgresql.conf
    2. file line listen_addresses, commented it and add your server ip address, examplelisten_addresses = '10.0.0.1,localhost'
  2. pg_hba.conf
    1. Edit file /etc/postgresql/[version number]/main/pg_hba.conf
    2. add this linehost    all         all         10.0.0.0       255.255.255.0    md5

Configuring XAMPP 1.8.1, Oracle XE 11G R2 x64 & Windows x64

System requirement:
  1. VC9
  2. XAMPP 1.8.1
  3. Oracle XE 11G R2
I assumed those requirement already install.
NOTE:
XAMPP 1.8.1 is 32 bits application, therefor, it needs Oracle Instance
Here is steps to configure XAMPP 1.8.1 & Oracle XE 11G x64 work in the same PC:
  1. Download instant client and SDK use this link: http://www.oracle.com/technetwork/topics/winsoft-085727.html
    1. oracle instant client instantclient-basic-nt-11.2.0.4.0.zip
    2. oracle SDK instantclient-sdk-nt-11.2.0.4.0.zip
  2. Extract into C:\instantclient_11_2
    1. oracle instant client instantclient-basic-nt-11.2.0.4.0.zip
    2. oracle SDK instantclient-sdk-nt-11.2.0.4.0.zip
  3. set and or add into path
    C:\instantclient_11_2;C:\oraclexe\app\oracle\product\11.2.0\server\bin;
    Note: DO NOT put C:\instantclient_11_2 after C:\oraclexe\app\oracle\product\11.2.0\server\bin;
  4. Edit php.ini, unset
    ;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client
    extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client
    Note: only 1 dll can be activated, for Express edition use extension=php_oci8_11g.dll
  5. Restart apache

OpenERP 6.1: Disable Developer Mode (old)

Create a module and create an xml file named base.xml in the following path disable_developer_mode/static/src/xml/base.xml (where disable_developer_mode is the new module created) and add the following to the base.xml file.
<templates id="base.template" xml:space="preserve">

<t t-extend="ViewManagerAction">
    <t t-jquery="select.oe_debug_view" t-operation="replace">
        <select t-if="self.session.uid === 1 and self.session.debug" class="oe_debug_view"/>
    </t>

</t>
</templates>
Here self.session.uid === 1 is given where 1 is the id of the admin, if it is different in your system check the database and edit it. Add the base.xml file in the disable_developer_mode's __openerp__.py file as the folowing
{
    'name': 'Disable Developer Mode',
    'version': '0.1',
    'category': 'Others',
    'sequence': 20,
    'summary': 'Disable Developer Mode',
    'description': """
Disable Developer Mode
==================
    """,
    'author': 'Gopakumar N G',
    'website': 'http://zbeanztech.com/blogs/nggopakumar',
    'images': [],
    'depends': ['base'],
    'data': [],
    'demo': [],
    'test':[],
    'installable': True,
    'application': False,
    'js': [],
    'css' : [],
    'qweb' : ["static/src/xml/base.xml"]
}
Update your module and restart the server, now the debugging drop-down box will not be shown for all users except admin.

Ref: http://help.openerp.com/question/32065/how-to-deactivate-developer-mode-in-openerp-61-for-all-users-except-admin/