Apr 28, 2014

Apache - httpd dead but pid file exists

In your apache status command, you will receive message httpd dead but pid file exists. Below are possible, solution to fixed.


Restart your apache.
# /etc/init.d/http restart
or
services httpd restart


TIPS: To stop this possible errors, After you install shared libraries in system. Try to restart this service, or reboot your system to sure that all possible services affected, will include in the affected module.

Apr 27, 2014

CRON - NOT WORKING FAILED to authorize user with PAM (Module is unknown)

Scenario: After I install and update some modules,I notice that my CRON is not working anymore and receive message.

FAILED to authorize user with PAM (Module is unknown)

After I google the message I found the restarting the CRON Service will made the miracle..

# /etc/init.d/crond restart
or
# services crond restart
TIPS: In every time you made update on you system, please find a time to reboot your system.






Apr 11, 2014

CSS scrolling at horizontal behavior

Your HTML data.

<div class="wrapper">
  <div class="scrolls">
       <img src="http://placehold.it/50x50" />
       <img src="http://placehold.it/50x50" />
       <img src="http://placehold.it/50x50" />
  </div>
</div>

CSS Data
.wrapper { 
        background:#EE0000; 
        box-shadow: 1px 1px 10px #999; 
        margin: auto; 
        text-align: center; 
        position: relative;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        margin-bottom: 20px !important;
        width: 800px;
        padding-top: 5px;
    }
    .scrolls { 
        overflow-x: scroll;
        overflow-y: hidden;
        height: 80px;
    white-space:nowrap
    } 
    .imageDiv img { 
        box-shadow: 1px 1px 10px #999; 
        margin: 2px;
        max-height: 50px;
        cursor: pointer;
    display:inline-block;
    *display:inline;
    *zoom:1;
    vertical-align:top;
    }

See Reference output here http://jsfiddle.net/YbrX3/

Apr 9, 2014

Simplified version on how to download videos in ustream.tv

Let say this one from Will There Be a Spinoff From The Mentalist?

Here the pattern of the download URL
http://upmv09.gblx.upmv.ustream.tv/0/1/35/{1ST_FIVE_DIG_OF_VID_ID}/{VIDEOID}/1_{CHANNEL_ID}_{VIDEOID}.flv

Given data/URL VIDEOID is 41138669. Now our problem is what is the CHANNELID? To get this one try to press CTRL+U to view the source code.
Here what you see in image below







Now two unknown data already exist. Just to check sure that that you know where the I get the video id. Check below datas.
URL: http://www.ustream.tv/recorded/41138669
VIDEOID: 41138669
CHANNELID: 7262640

And now what is the
1ST_FIVE_DIG_OF_VID_ID
? In our video id(41138669) the First Five(5) digits are 411386

Finally all data need to download the video already define. See summary below.

VIDEOID: 41138669
1ST_FIVE_DIG_OF_VID_ID:411386
CHANNELID: 7262640

See the pattern and the output/outcome url.

http://upmv09.gblx.upmv.ustream.tv/0/1/35/{1ST_FIVE_DIG_OF_VID_ID}/{VIDEOID}/1_{CHANNEL_ID}_{VIDEOID}.flv

URL To Donwload.
http://upmv09.gblx.upmv.ustream.tv/0/1/41/41165/41165663/1_7262640_41165663.flv

Try to download the file here.