By admin ( January 25, 2012 at 6:08 am) · Filed under Mac OS, Install Nginx in Mac OS, Mac OS Lion
Yes, you can. Especially on Mac OS X 10.7.1 Lion.
Xcode is needed.
Xcode provides everything developers need to create great applications for Mac, iPhone, and iPad. XCode 4 has been streamlined to help you write better apps. It has unified user interface design, coding, testing, and debugging all within a single window.
Visit Mac App Store find and install the XCode.
Then copy and paste these code in terminal window
#!/bin/bash
## DOWNLOADS
sudo curl -OL h ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.gz > /usr/local/src/pcre-8.13.tar.gz
sudo curl -OL h http://nginx.org/download/nginx-1.1.4.tar.gz > /usr/local/src/nginx-1.1.4.tar.gz
## Install PCRE
sudo mkdir -p /usr/local/src
cd /usr/local/src
tar xvzf pcre-8.13.tar.gz
cd pcre-8.13
./configure –prefix=/usr/local
make
sudo make install
cd ..
## Ready install NGINX on Mac OS Lion
tar xvzf nginx-1.1.4.tar.gz
cd nginx-1.1.4
./configure –prefix=/usr/local –with-http_ssl_module
make
sudo make install
## Start Nginx
sudo /usr/local/sbin/nginx
Now you have nginx in Your Mac OS Lion.
Permalink
By admin ( January 23, 2012 at 9:34 am) · Filed under Products, HDMI TV, LG LED TV
Enjoy the new TV quality with LG LED TV which has been supported by the ability to broadcast HD DivX content.
With feature-speed USB 2.0 40x in LG LED TV is faster than USB1.1 , you can now easily and quickly access the content of your multimedia devices.
LG LED TV is available in various size from 26 inch and 32 inch.
I bought this LG LED TV 26 inch, several days ago.
The first time I feel is much better from previous LCD TV, my eyes are much comfort watching TV.
LG LED TV is Smart Enery Saving than LCD TV, because LG LED TV is usingĀ LED ( Light Emitting Diode ) as the backlight control function of the TV. Stand by Mode 0 function switches your TV to a power saving mode where zero electricity is used, ultimately enabling you to cut down greatly on unnecessary electricity usage.
Key Features LG LED TV
- Smart Energy Saving
- HDMI
- Infinite Sound
- Picture Wizard
- 24 Real Cinema
- DivXUSB 2.0
Permalink
By admin ( December 17, 2011 at 1:07 pm) · Filed under System, Linux Modem, Netconnect Data Card, Wvdial.conf
Hi
I am trying to connect a reliance netconnect data card on my linux box (
cent os ) , i am able to the detect the device /dev/ttyUSB0
these are the following steps I did :
Check your card is recognized by the kernel
# cat /proc/bus/usb/devices
…..
…..
T: Bus=07 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 11 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=19d2 ProdID=fff5 Rev= 0.00
S: Manufacturer=ZTE, Incorporated
S: Product=USB Storage
S: SerialNumber=000000000002
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usbserial_generic
E: Ad=89(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=0a(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
…..
…..
i use the usb_modeswitch to detach it as a storage dev and attach it to a
usb dev
usb_modeswitch -v 0x19d2 -p 0xfff5 -d 1 19d2:fff5
usb_modeswitch -v 0x19d2 -p 0xfff5 -H 1
now i modprobe the usbserial
modprobe -v -r usbserial
modprobe -v usbserial vendor=0x12d1 product=0×1001
now do I do a dmesg
::::::::::::::::::
usbcore: deregistering driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial deregistering driver generic
usbcore: deregistering driver usbserial
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbserial_generic 7-2:1.0: generic converter detected
usb 7-2: generic converter now attached to ttyUSB0
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
I edit the vi /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 57600
Setvolume = 0
Dial-AT-OK ATDT Command =
Init1 = ZTE
FlowControl = Hardware (CRTSCTS)
Phone = #777
Username = 7228412233
Password = 7228412233
New PPPD = yes
Carrier Check = no
Stupid Mode = yes
When i try to detect the modem it gives me a failure
wvdialconf /etc/wvdial.conf
At this step, you should see success message to be able to connect a reliance netconnect data card .
If you still having problem, Recheck your configuration and test your wvdial.
Permalink
By admin ( December 17, 2011 at 5:43 am) · Filed under Web Server, PHP-FPM, php-fpm service
FPM IS FastCgi ! “F.P.M.” stands for “FastCGI Process Manager”
CGI is really slow. FastCGI, as its name indicates… Is not slow. CGI
is slow for the simple reason you have to completely launch PHP and all
its libraries & etc. … whenever FastCGI launches “hanging” PHP
processes that are waiting for requests to spend their time doing
something more useful than “hanging” in memory
But this is the very fact why there is currently a problem with running
many websites with FastCGI : it’s memory consuming if you have so many hanging processes waiting for queries (as a php process is ~ 15MB, and even more when parsing a wordpress website ! (~35MB !) ).
(note : “hanging” here does not mean the unix “hang” signal, huh, it
just means hanging as anything in real life)
Permalink