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/

Thursday, August 11, 2011

SAVE STREAMING VIDEO, SAVE FLASH VIDEO... no program needed ON Mac

THIS TUTORIAL WILL COVER HOW TO SAVE FLASH VIDEOS FROM ANY SITE.

When you watch a video from youtube, google...ect the video once COMPLETELY downlaoded is ALREADY SAVED to your computer in a hidden directory. ALL YOU HAVE TO DO IS MOVE IT.

Use the TERMINAL application from applications/utilities folder...its easy. You will only need 3 commands: cd (change directory=change folder), ls (list whats in the folder), and cp (copy)

Tiger
*you can copy and paste these commands into the terminal window*

1. Start Terminal type "cd /private/var/tmp/folders.501/TemporaryItems" enter

2. This will take you to the folder with the flash video(s) type "ls" enter this will show the contents of the folder. (The flash videos will be FlashTmp1, FlashTmp2...and so on) Choose video 2 for example.

3. type "cp FlashTmp2 ~/Desktop" enter

THATS IT! The file will be moved to your desktop; play it with an flv player, covert it, delete it...ect.


Leopard (slightly more difficult)

1. Start Terminal type "cd /private/var/folders/" enter

2. Type "ls -R | grep "TemporaryItems" enter
it will give you the path for TemporaryItems folder .

3. Remove "./" from first of the path and enter to it by this command
Type "cd eeQUOonjE-GWvpRuzmR29+++TI/TemporaryItems" enter

4. This will take you to the folder with the flash video type "ls" enter this will show the contents of the folder. (The flash videos will be FlashTmp1, FlashTmp2...and so on) Choose video 2 for example.

5. type "cp FlashTmp2 ~/Desktop/FlashTemp2.flv" enter

THATS IT! The file will be moved to your desktop; play it, covert it, ect

---------------------------------------------------------------------------------------------------------------------
http://forums.macrumors.com/showthread.php?t=403792