Sunday, November 20, 2011

How to make FreeBSD radio station web server

I like internet radio station and it`s sound good to have your owen Station 

So i find this site here it will guid you to build a FreeBSD server with radio station.

Good luck :)

Friday, November 18, 2011

Color Mac OSX Terminal Like Gentoo or Other

Edit:
~/.bash_profile
or
~/.profile
 
To set Gentoo-like colors on bash prompt, edit ~/.profile (or /etc/profile for system-wide defaults) and add the following:
if [[ ${EUID} == 0 ]] ; then
       PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ' 
else
      PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' 
fi

and add the following two lines:
export CLICOLOR=1
 
#Dark blue
#export LSCOLORS=ExFxCxDxBxegedabagacad
 
#Gentoo Color
export LSCOLORS=ExGxFxDxCxDxDxhbhdacEc
 
#Light Blue Color
#export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx

source site here 



Saturday, October 15, 2011

MySQL configuration for Zend Framework

To use MySql database in your zend project u should add the following code to application/configs/application.ini under "[production]":


resources.db.adapter = "PDO_MYSQL"
resources.db.params.host = "localhost"
resources.db.params.username = "USERNAME"
resources.db.params.password = "PASSWORD"
resources.db.params.dbname = "DATABASE_NAME"
// for Arabic or other language you should add this lines below  //
resources.db.params.charset = "utf8"
resources.db.params.driver_options.1002 = "SET NAMES utf8"

Tuesday, September 20, 2011

Ubuntu 11.04 black screen on startup



At startup when you are going to choose the operating system that you want to boot:
  1. Select Ubuntu
  2. press E to edit boot command
  3. Change the word "quiet splash" to "nomodeset"
  4. press Ctrl + x to save and boot
Good luck.

Saturday, September 10, 2011

Enable APN settings for ios 5 beta 7


Setup, Enable, Edit APN for iOS 5 beta 7 EDGE Connection – The iOS 5 which still in beta version is expected to bring some more awesome features. Recently, the iOS 5 beta 7 is seeded and available for download. But one small lack of iOS 5 beta is the APN setting has been disabled by default.
To connect to Internet by custom APN, iPhone users will usually go to Settings >> General >> Network >> Cellular Data Network then enter new APN there. But on iOS 5 beta 7, you;ll not be able to see that option or editing Internet connection APN.
So how to enable custom APN / edit APN on your iPhone iOS 5 beta 7? Luckily a new web based service named as Benm.at offer a simple way to enable a install a custom APN profile on your iPhone by simply visiting that page (pretty similar way with userland jailbreak like JailbreakMe).
apn setting install

How to Edit APN Setting on iPhone iOS 5 b7

Step 1. On your iPhone >> launch Safari browser >> and open this link (http://help.benm.at/).
Step 2. Scroll down the page >> Features >> tap on [Tethering].
Step 3. Scroll down and tap on “Create Your Own” Generator.
Step 4. Now enter the APN settings in the field. You can find out what APN should you use via your carrier (simply ask the operator)
Step 5. Finally tap on [Download]
Step 6. Tap on [Install] >> confirm the modal alert >> restart your iPhone
Finally give it a try by enabling your Network Settings and try browsing websites on Safari. [via]

------------------------------------------------------------------------------------------------------

Source site

Friday, August 12, 2011

How to download Flash 10.2 video streams in Linux.


1- Download this Script here .


2- change mod the file to be executed
Type: chmod +x flashcache


3- load the video in a browser (wait until the video complete load), and check the output of the following command:
lsof | grep -i flash

 
This came out with a predictable, and very useful single line:
plugin-co 25646 n00b 17u REG 8,2 31286337 787220 /tmp/FlashXXepl6qa (deleted)


The second field of the output tells us which process currently has the file descriptor open, and the fourth tells us which number the file descriptor has taken. This is all we need to access the file itself.

4- run the script and put the secound field(25646) to script like this:
./flashcache 25646

If the script found the video it will show you this message:
/proc/25646/fd/27 -> foundflash.1.flv

That it, Good Luck.

-----------------------------------------------------------------------------------------------------

http://n00bsys0p.wordpress.com/2011/02/10/how-to-download-flash-10-2-video-streams-in-linux/