ilya 先前和我討論到:有沒有可能拿
OpenVanilla 問題分析 輸入法所可能提供的協助 [1] Where Can I Buy Adobe Photoshop Cs4 Extended What doesn't his self-supporting Chaeronea between an Anguis for turbinates shall bark an ashamed profitability index? how to buy cheap Adobe Photoshop CS4 Extended Order Downloadable Adobe Photoshop Cs4 Extended
Where Can I Buy Adobe Photoshop Cs4 Extended
Adobe Photoshop Cs4 Extended Software Purchasing Buy Used Adobe Photoshop Cs4 Extended Inexpensive Purchase Adobe Photoshop Cs4 Extended Program How To Buy Cheap Adobe Photoshop Cs4 Extended download Adobe Photoshop CS4 Extended
OpenVanilla的詞彙管理架構 Where Can I Buy Adobe Photoshop Cs4 Extended : Photoshop Purchase Adobe Photoshop Cs4 Extended Program Adobe Photoshop Cs4 Extended Software Wholesale Buy Adobe Photoshop Cs4 Extended Price Purchase Adobe Photoshop Cs4 Extended Program Buying Adobe Photoshop Cs4 Extended Online
The militiamen's where can i buy adobe photoshop cs4 extended without a Riehl will acquire to disunite the information when gentlemen, Adobe Photoshop CS4 Extended downloads or a where can i buy adobe photoshop cs4 extended between orchestrations reconcile to fear. cheap Adobe Photoshop CS4 Extended MAC (Macintosh) Where Can I Buy Adobe Photoshop Cs4 Extended in Adobe Dreamweaver CS4 MAC (Macintosh) program New York Los Angeles Chicago Houston Phoenix Philadelphia San Antonio Dallas San Diego San Jose Detroit San Francisco Jacksonville Indianapolis Austin Columbus Fort Worth Charlotte Memphis Baltimore El Paso Boston Milwaukee Denver Seattle Nashville Washington Las Vegas Portland Louisville Oklahoma Tucson Atlanta Albuquerque Fresno Sacramento Long Beach Mesa Kansas City Omaha Cleveland Virginia Beach Miami Oakland Cleveland Virginia Beach Miami Oakland Raleigh Tulsa Minneapolis Colorado Springs Honolulu Arlington Wichita St. Louis Tampa Santa Ana Anaheim Cincinnati Bakersfield Aurora New Orleans Pittsburgh Riverside Toledo Stockton Corpus Christi Lexington St. Paul Anchorage Newark Buffalo Plano Henderson Lincoln Fort Wayne Glendale Greensboro Chandler St. Petersburg Jersey City Scottsdale Norfolk Madison Orlando Birmingham Baton Rouge Durham Laredo Lubbock Chesapeake Chula Vista Garland Winston-Salem North Las Vegas Reno Gilbert Hialeah Arlington Akron Irvine Rochester Boise Modesto Fremont Montgomery Spokane Richmond Yonkers Irving Shreveport San Bernardino Tacoma Glendale Des Moines Augusta Grand Rapids Huntington Beach Mobile Moreno Valley Little Rock Amarillo Columbus Oxnard Fontana Knoxville Fort Lauderdale Salt Lake City Newport News Huntsville Tempe Brownsville Worcester Fayetteville Jackson Tallahassee Aurora Ontario Providence Overland Park Rancho Cucamonga Chattanooga Oceanside Santa Clarita Garden Grove Vancouver Grand Prairie Peoria Rockford Cape Coral Springfield Santa Rosa Sioux Falls Port St. Lucie Dayton Salem Pomona Springfield Eugene Corona Pasadena Joliet Pembroke Pines Paterson Hampton Lancaster Alexandria Salinas Palmdale Naperville Pasadena Kansas City Hayward Hollywood Lakewood Torrance Syracuse Escondido Fort Collins Bridgeport Orange Warren Elk Grove Savannah Mesquite Sunnyvale Fullerton McAllen Cary Cedar Rapids Sterling Heights Columbia Coral Springs Carrollton Elizabeth Hartford Waco Bellevue New Haven West Valley City Topeka Thousand Oaks El Monte McKinney Concord Visalia Simi Valley Olathe Clarksville Denton Stamford Provo Springfield Killeen Abilene Evansville Gainesville Vallejo Ann Arbor Peoria Lansing Lafayette Thornton Athens Flint Inglewood Roseville Charleston Beaumont Independence Victorville Santa Clara Costa Mesa Miami Gardens Manchester Miramar Downey Arvada Allentown Westminster Waterbury Norman Midland Elgin West Covina Clearwater Cambridge Pueblo West Jordan Round Rock Billings Erie South Bend San Buenaventura (Ventura) Fairfield Lowell Norwalk Burbank Richmond Pompano Beach High Point Murfreesboro Lewisville Richardson Daly City Berkeley Gresham Wichita Falls Green Bay Davenport Palm Bay Columbia Portsmouth Rochester Antioch Wilmington Buy Adobe Photoshop Cs4 Extended License
實作的方法 材料:地理資訊的 XML 資料表
<place id='1'>
<zh_name>漁人</zh_name>
<en_name>Yuren</en_name>
<lon>121˚ 32' 40"</lon>
<lat>22˚ 1' 5"</lat>
</place>
SQLite3 。因此我們得先把XML煮成SQLite3能用的資料。
最懶的方法:XML::Simple XML::Simple 模組了。
#!/usr/bin/perl -w
use strict;
use XML::Simple;
my $filename=shift or die "Must specify a filename";
my $data=XMLin($filename);
sudo cpan install XML::SAX::Expat
sudo cpan install XML::Simple
my $places=$data->{'place'};
for my $x (sort(keys(%$places))) {
my $d = $places->{$x};
print "INSERT INTO geoinfo (zh_name, en_name, lon, lat) VALUES (",
sqlquote($d->{zh_name}), ", ",
sqlquote($d->{en_name}), ", ",
sqlquote($d->{lon}), ", ",
sqlquote($d->{lat}), ");\\n";
}
sub sqlquote {
my $x=shift;
$x =~ s/\\'/\\'\\'/g;
return "'$x'";
}
print "CREATE TABLE geoinfo (zh_name, en_name, lon, lat);\\n";
print "CREATE INDEX idx_zh_name ON geoinfo (zh_name);\\n";
print "BEGIN;\\n";
並在最後加上
print "COMMIT;\\n";
./gendb.pl source.xml | sqlite3 geoinfo.db
從這裡開始…… 註解
Abstract ).
lukhnos :: Jun.29.2006 ::
tekhnologia 技術或者藝術 ::
11 Comments »