Crisis continues to expand

Finance Headlines

• Bank of England Policymakers See Greater Stimulus as Increasingly Likely – Bloomberg

• As Fed Meets, Republicans Warn Against Policy Move – Reuters

• Stocks and Euro Drift Lower Before Fed Meeting – Reuters

• Greece Debates Extra Cuts – WSJ

Recently, gold has been around $1800 concussion. Whether gold in this reversal depends on U.S. index trend. I personally feel likely this year formed a big top. A foam end must be crazy, a few months before the trend makes people terrified. There is no bubble is not broken, can expect the future will give chase to buy gold tumbled crazy people a painful lesson.

Merkel and Sarkozy are still in the ground to make such a fuss about go into a cul-de-sac in Greece, as is known to all, the country ‘s debt against default has been unable to avoid. Currently undertaken any efforts can not prevent crisis deepening and spreading. Clearly, in order to avoid a greater crisis, Europe and the United States monetary authorities have can’t wait for the market to inject more liquidity, it is alert, they may be injected than the current crisis is needed, more, useless liquidity, as a result of this, save economic action is towards their wish opposite to the direction of progress. The crisis has no save.

Posted in finance | Leave a comment

Cpanel problem: add new domain failed

Cpanel problem: add new domain failed

I was using Cpanel to add a new domain and I was getting the following error message:

Error from park wrapper: Using nameservers with the following IPs: xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx. Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.

I find some host need change to their nameservers.then, it can added new domain.

if you don’t want to change you nameservers, you can
#1 do it like above, and change back the nameservers after added new domain.
#2 ask your administrator to do it.

No need adding to /etc/ips.remotedns, and you can still keep using remote DNS servers.

Problem solved.

Posted in computer | Leave a comment

Calling another url page in the PHP page

Do you want call asp,jsp … page in your php page? In php program, you can get url result through the function like function:get_content() of below:

function get_content($url)
{
$buf=parse_url($url);
if($buf['scheme']=="http")
{
$host=$buf['host'];
$page=$buf['path'];
if(trim($buf['query'])!=="") $page.="?".trim($buf['query']);

$myHeader=”GET $url HTTP/1.1\r\n”;
$myHeader.=”Host: $host\r\n”;
$myHeader.=”Connection: close\r\n”;
$myHeader.=”Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n”;
$myHeader.=”Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n”;
$myHeader.=”User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.6) Gecko/20050226 Firefox/1.0.1\r\n”;
$myHeader.=”Referer: http://$host/\r\n\r\n”;

$server=$host;
$port=80;

$res=”";
if(false!==($fp = @fsockopen ($server, $port, $errno, $errstr, 30)))
{
@fputs ($fp, $myHeader);
while (!@feof($fp)) $res.= @fgets ($fp, 1024);
@fclose ($fp);
}
else return false;

if(strlen($res)==0) return false;

return $res;
}
else
{
$fileName=$url;
if(false!==@file_exists($fileName))
{
if(false!==($buf=@implode(“”,file($fileName)))&&@strlen($buf)>0)
{
return $buf;
}
else return false;
}
else return false;
}
}

also you can use post mode with parameter, post_param like:’userid=joe&password=guessme’


function post_content($url,$post_param)
{
$buf=parse_url($url);
if($buf['scheme']=="http")
{
$host=$buf['host'];
$page=$buf['path'];
if(trim($buf['query'])!=="") $page.="?".trim($buf['query']);

$myHeader=”POST $url HTTP/1.1\r\n”;
$myHeader.=”Host: $host\r\n”;
$myHeader.=”Connection: close\r\n”;
$myHeader.=”Content-Type: application/x-www-form-urlencoded\r\n”;
$myHeader.=”Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n”;
$myHeader.=”User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.6) Gecko/20050226 Firefox/1.0.1\r\n”;
$myHeader.=”Referer: http://$host/\r\n\r\n”;
$myHeader.=$post_param.”\r\n\r\n”;

$server=$host;
$port=80;

$res=”";
if(false!==($fp = @fsockopen ($server, $port, $errno, $errstr, 30)))
{
@fputs ($fp, $myHeader);
while (!@feof($fp)) $res.= @fgets ($fp, 1024);
@fclose ($fp);
}
else return false;

if(strlen($res)==0) return false;

return $res;
}
else
{
$fileName=$url;
if(false!==@file_exists($fileName))
{
if(false!==($buf=@implode(“”,file($fileName)))&&@strlen($buf)>0)
{
return $buf;
}
else return false;
}
else return false;
}
}

Posted in php program | Leave a comment

The email address can prevent to the search by using javascript

if you put your email address on your website, mail collection tools may be found it and add it to their database. Oops, you will receive a lot of spam mails.
The email Address search software to search ‘@’ on the HTML pages source file, there are some ways to deal with. Display email address in the image instead of text email address, or do not used the standard format email address, like: admin@coderc.com written in the email address admin#coderc.com. And then note a “‘#’ must be changed to ‘@’ before use it”, it’s worked, but it’s very inconvenient.
Another idea is to separate the complete mailing address in html source code, and it’s will display it completely in browser. They can easily used for the people want to email you (direct use Ctrl + C and Ctrl + V , email address can copy on the browser, do not make any changes). For this purpose just sample use JavaScript.
Copy the following code to your web page or blog, add your separated email address after ‘id=’ and ‘domain=’.just like ‘id=”admin”;domain=”coderc.com”‘, that’s OK.
code:
<SCRIPT language=JavaScript>id=”admin”;domain=”coderc.com”;document.write(id+’@'+domain);</SCRIPT>
Posted in php program | Leave a comment

simulate the mobile browser by google Chrome browser

Many websites know what the browser type is by User-Agent. If the mobile phone display mobile phone Page content, if it is an ordinary browser, displays the normal web content. There is a corresponding set-top box should be with the video site, this is essential to check, if User-Agent is not right then dispaly access denied.

google Chrome browser, can be easily used when the mobile browser simulator. For Windows:[start ]–>[ run], enter the following command to start the Google browser, you can simulate phase Should be your phone’s browser to access wap website. So some pages is easy to debugging.
  Android:

chrome.exe –user-agent=”Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1″
  iPhone:

chrome.exe –user-agent=”Mozilla/5.0 (iPad; U; CPU OS 3_2_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B500 Safari/531.21.10″
  Nokia N97:

chrome.exe –user-agent=”Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/20.0.019; Profile/MIDP-2.1 Configuration/CLDC-1.1) AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.1.18124″
Try, respectively, Android, iPhone, Nokia access http://www.msn.com/,
http://www.godaddy.com/, http://www.google.com/ these pages to see the change.

If you want to switch back to normal browser mode, turn off all the Chrome browser, and reopened. If you do not want to close the browser, switch back to normal browser mode, just command:

chrome.exe –user-agent=”Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3″

  More mobile phones of User-Agent:http://www.mobile-phone-specs.com/user-agent-browser/0/

Posted in computer | 1 Comment

Start!PHP Programming

Study for a period of time PHP programming,  I write a PHP webpage word analysis recording program yesterday. As a newbie, I met a lot of problems. Biggest headache is called preg_match_all function using regular expressions.Matching with a newline character how to do?

As follows:

A:

< TD class =” keyword” > HTC Android < / td >

B:

< TD class =” keyword” >

HTC Android

< / td >

Preg_match_all ( ‘/ < TD \ sclass =” t_ip” > (. * ) < / td > / iU’, $MSG, $words );

When $MSG value give the A, gripping the webpage can be a normal match. When $MSG value give the B, It return result: no match.

Even if I’m added a newline charter “/r/n” in the matching string. Try many regular expressions given, I give up. Then I change the function str_replace to replace the string ‘/r’, ‘/n’, the result is  can not found it. damn it.

Because I’m learning PHP program not long, so I think that the regular expressions is wrong. So I change it again and again, till I found that. That description string haven’t “/r”,”/n” value. Finally, I’m check the string from source to be getting, that’s UTF-8 code issue. The web page is UTF-8 encode! So it must be change to ANSI code. I use the iconv function to do that:

$MSG = iconv (“UTF-8″,”ISO-8859-1″, $MSG );

But there are still problems, there are some webpage will be error. The program will stop there. Finally I’m check the information, it is not completely converted some kind of the string by iconv. I don’t need those strings, so ignore them, changed it to:

$MSG = iconv (“UTF-8″,”ISO-8859-1//IGNORE”, $MSG );

Conversion after that,all done.

Posted in php program | Leave a comment

Good! Google Public DNS

Recently I found using google’s public DNS resolution servers (Google Public DNS)  is very convenient, especially with the DNS settings in the set-top box, the IP manually enter these simple time-saving.

Google is committed to strictly follow the DNS protocol that does not stop, do not hijack and does not filter user queries.  It provides many benefits, including improved security, fast performance, and more valid results.

Google Public DNS server IP is very easy to remember, never forget:

8.8.8.8 google-public-dns-a.google.com
8.8.4.4 google-public-dns-b.google.com

Of course, it’s DNS server also has these:
4.3.2.1
4.2.2.1
4.2.2.2
4.2.2.3
4.2.2.4
4.2.2.5
4.2.2.6

Posted in computer | Leave a comment

GoDaddy Promo Code List for 2011(Updating)

These are GoDaddy Coupons that Work

For Domains:
FAN3 – 35% off .COM $7.49 domain names – WORKS

FAN749 – 50% off .ORG domain names ($7.49 each)
YES749 – $7.49 .NET domain names
GAM749 – $7.49 .BIZ domain names
MIN2499 – $24.99 .CO domains
fb30tld – get 30% OFF* our regular prices on .COM, .NET, .ORG, .BIZ, and .US domains  expires 9/16/2011
FUN3 – 35% off .com domain names
SPN1 – 10% off any order
MIN1 – 10% off .CO domains
      Comment from below “Daiana”
      MIN1 …. works for .co registrations Thanks”
$75 or more : fbhome25 -25% off  expires 9/15/2011

% Discount by Order Size:
10% Off: MIN1 – any order size
15% Off : YES15 – $75 or more

SPN2 – $5 off an order of $30 or more
HITCH2 – $5 off an order of $30 or more & .TV Domains
      Comment from below “Robin”
      The code HITCH2 works for renewing .TV domain Thanks a lot!

$ Discount by Order Size:
$30 or more : MIN2 – $5 off
$40 or more : YESOFF – $10 off

For Hosting:
RUSH20 – 20% off a 1yr or greater hosting plan
MIN1 – 10% off a month to month plan

For Auctions:
AUCTION12 – 50% off a subscription

For SSL:
YESSSL – $12.99 SSL account (usually $30)

UK Specific Coupons
For Domains:
BRIT3 – 30% off .com domain names

% Discount by Order Size:
10% Off: QUEEN1 – any order size

Other UK Specific:
FANSSL : 12.99 SSL
YPN20 : 20% Off Hosting

Also add your coupons to this lens for everyone.

Posted in computer | 2 Comments

Production can be automatically installed with fedora linux and its own software CD (I)

The recent work necessary to produce the CD automatically installed a Fedora.
To find out some information in order to understand kickstart script automatically installs the necessary
production, the following is a typical Fedora installation script

#vi ks.cfg

install
text
logging –level=info

cdrom
key –skip
lang en_US.UTF-8
keyboard us
timezone –utc Asia/Shanghai
xconfig –defaultdesktop=GNOME –depth=16 –resolution=1024×768 –startxonboot
authconfig –enableshadow –enablemd5
rootpw –iscrypted
$6z55NGGN/VvYqRZgL$wMEou1v8u48PNCXSvepgCgLHSt/Ocy3i6qP41DwyE3W6GfZPr50gIx2.WXJvITTgJmtJaiFYQ606L.JmoPGlZ.
# Network configuration
network –onboot yes –bootproto dhcp –hostname test
firewall –disabled
selinux –disabled
zerombr
bootloader –location=mbr –append=”rhgb quiet”
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart –linux –initlabel
part /boot –fstype=ext4 –size=500
part pv.S3myz3-4vqV-bjX1-VWVX-N6uj-BmYV-9sNkEN –grow –size=500

volgroup vg_test –pesize=32768 pv.S3myz3-4vqV-bjX1-VWVX-N6uj-BmYV-9sNkEN
logvol / –fstype=ext4 –name=lv_root –vgname=vg_test –grow –size=1024 –maxsize=51200
logvol swap –name=lv_swap –vgname=vg_test –grow –size=800 –maxsize=1600

reboot
firstboot –disable

%packages
@base
@chinese-support
@core
@fonts
@gnome-desktop
@graphical-internet
@graphics
@mysql

Some of them pay attention to is the root password how to set up, in the example above rootpw – iscrypted behind
that string of the corresponding password is 123456. If want to himself as other

Password, you can first set root password, and then

#vi /etc/shadow

root:$6z55NGGN/VvYqRZgL$wMEou1v8u48PNCXSvepgCgLHSt/Ocy3i6qP41DwyE3W6GfZPr50gIx2.WXJvITTgJmtJaiFYQ606L.JmoPGlZ.:1482
4:0:99999:7:::
……
The ‘root:’ after the next ‘:’ before the string is the password encrypted string.

There is a partition of the set and the install packages set up, in fact, they can view the installed linux system
root directory of the anaconda-ks.cfg file, which is self-anaconda

Activity based on your installation partition and install the selected software produced by the script. Want to
install those packages can be re-installed over your linux system and selected those packages can know from the
inside

The.

Can be changed to make a good ks.cfg a linux installation CD. First load the Fedora-13-i386-DVD.iso file.

#mount -o loop Fedora-13-i386-DVD.iso /mnt/cdrom
#cd /mnt/cdrom
#ls

isolinux    RPM-GPG-KEY-fedora             RPM-GPG-KEY-fedora-sparc
EFI      media.repo  RPM-GPG-KEY-fedora-13-primary  RPM-GPG-KEY-fedora-sparc64
GPL      Packages    RPM-GPG-KEY-fedora-13-SPARC    RPM-GPG-KEY-fedora-x86_64
images   repodata    RPM-GPG-KEY-fedora-i386        TRANS.TBL

Make one directory 111, the contents of the CD-ROM copy of the directory, to build a 111 auto folder directory, the
ks files are copied to the directory.
#cp -a . /root/111
#cd /root/111/
#mkdir auto
#cp /root/ks.cfg .

And then to modify the startup script isolinux.cfg disc file, which on isolinux directory
#cd isolinux
#vi isolinux.cfg

default vesamenu.c32
#prompt 1
timeout 600

display boot.msg

menu background splash.jpg
menu title Welcome to Fedora 13!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000

label linux
  menu label ^Install a new system or upgrade an existing system
  menu default
  kernel vmlinuz
  append initrd=initrd.img stage2=hd:LABEL=”Fedora”
label vesa
  menu label Install system with ^basic video driver
  kernel vmlinuz
  append initrd=initrd.img stage2=hd:LABEL=”Fedora” xdriver=vesa nomodeset
label rescue
  menu label ^Rescue installed system
  kernel vmlinuz
  append initrd=initrd.img stage2=hd:LABEL=”Fedora” rescue
label local
  menu label Boot from ^local drive
  localboot 0xffff
label memtest86
  menu label ^Memory test
  kernel memtest
  append -

The default is replaced with default linux, and then to change the label linux append ks = cdrom: / auto / ks.cfg
initrd = initrd.img

stage2 = hd: LABEL = “Fedora” isolinux.cfg after editing the following:

default linux
#prompt 1
timeout 600

display boot.msg

menu background splash.jpg
menu title Welcome to Fedora 13!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000

label linux
  kernel vmlinuz
  append ks=cdrom:/auto/ks.cfg initrd=initrd.img stage2=hd:LABEL=”Fedora”
label vesa
  menu label Install system with ^basic video driver
  kernel vmlinuz
  append initrd=initrd.img stage2=hd:LABEL=”Fedora” xdriver=vesa nomodeset

……
Finally is the production of CD image file iso:
#cd ..
#cd ..
#mkisofs -J -R -v -T -V Fedora -o autolinux.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-
load-size 4 -boot-info-table 111/

burn Autolinux.iso to the DVD disc, success.

Posted in Uncategorized | 1 Comment

‘some text missing’ SMS from BlackBerry 8830

I’ve got a Blackberry 8830 and I’ve noticed that the SMS always get [some text missing].
I also find the third part software couldn’t connected the internet.

Somebody told me must turn off the BB restart it. I had try many times but it’s not worked.
Finally, I remove the battery, the sim card is taken down and re-insert the boot on it.
It can get complete SMS , and other software can be online. It’s seem s bad contact with the mobile phone and sim card. If re-insert the card is useless to consider for change mobile phone.

Posted in other | 2 Comments