Recursive setacl command on Linux/Unix

Setting access control list(acl) recursively is not as straigthforward in HP/UX. I believe the same is true for other Unix flavors. In case you are wondering how, the command is shown below.
[Read more...]

Incoming search terms:

  • setacl linux
  • linux install command recursive
  • setacl recursive
  • SetACL
  • kwatog setfacl
  • setacl recursive in hp-ux
  • setacl kwatog
  • setacl hp-ux file
  • setacl en linux que es?
  • setacl command in unix

Jing : Free Screencapture for Mac

The default screen capture of Mac, command+shift+4, is good. I can specify the part of the screen I want to capture and it’s automatically saved into a PNG file. It’s very simple and straightforward. But the longer I use it, the more I miss Greenshot. But that’s not (yet?) available for Mac.
[Read more...]

Incoming search terms:

  • greenshot for mac
  • greenshot mac
  • free screen capture for mac 2011
  • free screen capture mac
  • free screen capture mac 2011
  • obfuscate in jing

How To Burn ISO Image to DVD in Mac

Mac OS X already comes with the Disk Utility app which you can use to burn ISO images into a CD/DVD. You don’t have to buy or download a new app to just do that. The step-by-step procedure is shown below.
[Read more...]

Incoming search terms:

  • burn iso to dvd mac
  • burn iso mac
  • buy iso dvd mac
  • iso burn mac
  • how to burn iso to dvd on mac
  • how to burn iso to dvd mac
  • how to burn iso image to dvd on mac
  • burn iso to dvd on mac
  • how to burn iso on mac rename
  • how to burn iso on mac 2011

Read Input Without Echo in Bash

I have a script that needs to be deployed in different environment as most scripts are. This script requires asking for userid, tnsname and password during deployment. I tried to use READ but it echoes the password on the screen as soon as I type it. So how can we hide the password? Here’s how.
[Read more...]

Incoming search terms:

  • bash read password no echo
  • bash read password
  • bash read input
  • bash read without echo
  • bash read no echo
  • bash readInput
  • read contraseñas bash
  • C no echo input
  • echo $ % bash
  • echo -e bash

Update Oracle Sequence Last Number

I only realized this last week that direct update of the last number of the sequence. Or maybe I just don’t know so what I did was to create a workaround.
[Read more...]

Incoming search terms:

  • alter sequence last number
  • update sequence oracle
  • oracle update sequence last_number
  • oracle update sequence
  • alter sequence LAST_NUMBER
  • oracle sequence change last number
  • how to update oracle sequence last_number
  • update sequence in oracle
  • update sequence
  • update oracle sequence last_number

Automatically Convert Emails to NoSpam

To prevent spam comments on one of the sites that I maintain, I send for approval any comment with at least one URL or email address in it. In that way, manual spammers will find no incentive on leaving comments on the site. At the same time, email addresses left by commenters will not be displayed in the site until it is sanitized. However, the amount of comments in the site in question is so many and manually sanitizing comments with emails is becoming a pain.
[Read more...]

Incoming search terms:

  • emailsafe jquery
  • \ [a-z0-9][a-z0-9_-]*

Shift-Insert in MacBook

I use the terminal a lot be it in Mac, Windows or Linux. And it’s kinda frustrating in Mac for the lack of a dedicated insert key. Clearly, you’ll never think about small things until it’s gone. Copy-Paste function turned out to be an important feature.

So I looked for the equivalent command/key combination in the net and the combo below worked on MacBook Pro.

fn+command+v

Yeah, I know it’s a kinda bummer because it’s just one key on PC( Windows, Unix and Linux). But that’s how Apple is. Also, I’m not sure if it works for iMac. I heard there’s another key combination.

Incoming search terms:

  • shift insert mac
  • insert on macbook
  • insert macbook
  • shift insert
  • linux shift insert
  • insert in macbook
  • macbook shift ins
  • shift insert in mac
  • shift insert in unix
  • shift insert macbook

Facebook Like Box Not Working [solved]

For some reason, the code being generated inside Facebook developer does not work. Actually, the problem is on the profile_id parameter which is not recognized by the likebox.php. Instead, id should be used.


<iframe src="http://www.facebook.com/plugins/likebox.php?id=[YOUR_PAGE_ID_HERE]&width=298&connections=10&stream=false&header=true" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:298px; height:290px"> </iframe>

If still that doesn’t work, then you can use the legacy code as below.

<iframe src="http://www.facebook.com/connect/connect.php?id=[YOUR_PAGE_ID_HERE]&connections=10&stream=0&locale=en_US" allowtransparency="true" style="border: medium none; width: 300px; height: 240px;" scrolling="no" frameborder="0"></iframe>

I tried both and they all worked as expected.

Source:

http://forum.developers.facebook.net/viewtopic.php?id=56454&p=1

Incoming search terms:

  • facebook like box not working
  • like box not working
  • wordpress facebook like box not working
  • facebook likebox not working
  • facebook like box not working 2011
  • facebook like box not showing
  • facebook likebox allowTransparency="true"
  • facebook likebox scroll problem
  • FacebookLike Box Not Showing
  • https://www facebook com/connect/connect php?id= height

MySQL Fail To Start After Upgrade to 5.1 or higher

I recently upgraded my MySQL in preparation for WordPress 3.2. The version I now have is 5.5.12. The upgrade finished without a hitch but when I tried to restart the service, the MySQL Daemon failed.

Here’s the log of mysql (/var/log/mysqld.log)

110514 14:04:22 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110514 14:04:22 [Note] Plugin 'InnoDB' is disabled.
110514 14:04:22 [Note] Plugin 'FEDERATED' is disabled.
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
110514 14:04:22 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110514 14:04:22 [ERROR] Unknown/unsupported storage engine: InnoDB
110514 14:04:22 [ERROR] Aborting

Initially, I thought the problem was on the mysql_upgrade part because that’s the first error that appears on the log. Apparently, that’s just a warning message because the service still managed to proceed to the next step which is for the InnoDB. And based on the log, it failed to start and actually aborted. So that’s where I should concentrate my investigation/trial-and-error.

Solution

I opened /etc/my.cnf and comment out skip-innodb and then restart mysqld. It fixed the problem and mysql managed to start. I then proceeded with the mysql_upgrade which is unrelated to the error.

Another solution for this is to set the default storage to other than InnoDB. However, I haven’t tried that myself.

Incoming search terms:

  • mysql daemon failed to start
  • mysql daemon failed to start centos
  • Unknown/unsupported storage engine: InnoDB
  • mysql failed to start
  • mysql upgrade failed
  • unknown/unsupported storage engine: innodb centos
  • mysql daemon failed to start after update
  • mysql upgrade 5 1 to 5 5 mysql daemon failed to start
  • mysql start failed log
  • mysql restart failed

Upgrading to PHP 5.3 for CentOS

I wanted to try WordPress 3.2 beta but realized that it requires at least PHP 5.2 and I’m still with 5.1.6 (the one that comes with CentOS). Here’s what I got from the interwebs.

Step 1: Get webtatic PHP 5.3 Repository
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm

Step 2: Update PHP
yum --enablerepo=webtatic update php

Step 3: Verify PHP version
php -v

Expected result should be like below

PHP 5.3.6 (cli) (built: Mar 19 2011 08:30:07)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

*** NOTE ***
Though webstatic stated that the repository is created for CentOS 64bit, it still worked for my 32-bit installation.

Source:

http://www.webtatic.com/packages/php53/

Incoming search terms:

  • webtatic php 5 3
  • centos 5 7 php 5 3 repo
  • php53 centos webstatic
  • repo webstatic
  • repository php 5 3 9 on centos 6
  • update php 5 1 to 5 3 centos 64bit
  • update php 5 3 webstatis
  • update php to 5 3 centos 64 bit
  • upgrade php 5 3 centos64
  • use webstatic php webtatic