deploy.bat
-----------------------------------------
call d:\grails-1.0.3.bat
d:
cd "D:\ecweb\staticFiles"
TortoiseProc.exe /command:update /path:"." /notempfile /closeonend:1
cd "D:\brands\club\50_DEV20"
TortoiseProc.exe /command:update /path:"." /notempfile /closeonend:1
call grails clean
call grails -Dgrails.env=production war
c:
cd "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps"
net stop "Tomcat5"
del ec.war
rmdir ec /S /Q
copy "D:\brands\club\50_DEV20\ec.war" "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ec.war"
net start "Tomcat5"
-----------------------------------
JMDI
server.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- The contents of this file will be loaded for each web application -->
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<Resource name="jdbc/ec" auth="Container"
type="javax.sql.DataSource" username="ecapuser" password="ecapuser"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://127.0.0.1:1433;database=ecweb;"
maxActive="20" maxIdle="10" maxWait="-1" />
</Context>
2012年7月11日 星期三
Nginx conf(win)
#user nobody;
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
worker_rlimit_nofile 65535;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_min_length 1024;
gzip_buffers 4 8k;
gzip_comp_level 6;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_vary on; #limit_zone crawler
#proxy_cache_path cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m;
#proxy_temp_path cache/tmp;
server {
listen 80;
#server_name 127.0.0.1;
#server_name localhost;
server_name 172.18.9.7;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://172.18.9.7:8080;
#proxy_cache my-cache;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_cache_valid 200 302 60m;
#proxy_cache_valid 404 1m;
if ($request_uri ~* \.(ico|css|jsgif|jpe?g|png)$) {
expires 72h;
break;
}
proxy_read_timeout 1200;
proxy_connect_timeout 1200;
}
rewrite ^/$ http://$host/ec last;
rewrite ^/mobile/$/ http://$host/mobile/$1 last;
rewrite ^/probe/$/ http://$host/probe/$1 last;
rewrite ^/888$ http://$host/ec/888/$1 last;
}
server {
listen 80;
server_name club.brands.com.tw;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://club.brands.com.tw:8080;
#proxy_cache my-cache;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_cache_valid 200 302 60m;
#proxy_cache_valid 404 1m;
if ($request_uri ~* \.(ico|css|jsgif|jpe?g|png)$) {
expires 72h;
break;
}
proxy_read_timeout 1200;
proxy_connect_timeout 1200;
}
rewrite ^/$ http://club.brands.com.tw/ec last;
rewrite ^/mobile/$/ http://club.brands.com.tw/mobile/$1 last;
rewrite ^/probe/$/ http://club.brands.com.tw/probe/$1 last;
rewrite ^/888$ http://club.brands.com.tw/ec/888/$1 last;
}
server {
listen 80;
server_name mall.brands.com.tw;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://mall.brands.com.tw:8080;
#proxy_cache my-cache;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_cache_valid 200 302 60m;
#proxy_cache_valid 404 1m;
if ($request_uri ~* \.(ico|css|jsgif|jpe?g|png)$) {
expires 72h;
break;
}
proxy_read_timeout 1200;
proxy_connect_timeout 1200;
}
rewrite ^/$ http://mall.brands.com.tw/ec last;
rewrite ^/mobile/$/ http://mall.brands.com.tw/mobile/$1 last;
rewrite ^/probe/$/ http://mall.brands.com.tw/probe/$1 last;
rewrite ^/888$ http://mall.brands.com.tw/ec/888/$1 last;
}
}
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
worker_rlimit_nofile 65535;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_min_length 1024;
gzip_buffers 4 8k;
gzip_comp_level 6;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_vary on; #limit_zone crawler
#proxy_cache_path cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m;
#proxy_temp_path cache/tmp;
server {
listen 80;
#server_name 127.0.0.1;
#server_name localhost;
server_name 172.18.9.7;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://172.18.9.7:8080;
#proxy_cache my-cache;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_cache_valid 200 302 60m;
#proxy_cache_valid 404 1m;
if ($request_uri ~* \.(ico|css|jsgif|jpe?g|png)$) {
expires 72h;
break;
}
proxy_read_timeout 1200;
proxy_connect_timeout 1200;
}
rewrite ^/$ http://$host/ec last;
rewrite ^/mobile/$/ http://$host/mobile/$1 last;
rewrite ^/probe/$/ http://$host/probe/$1 last;
rewrite ^/888$ http://$host/ec/888/$1 last;
}
server {
listen 80;
server_name club.brands.com.tw;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://club.brands.com.tw:8080;
#proxy_cache my-cache;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_cache_valid 200 302 60m;
#proxy_cache_valid 404 1m;
if ($request_uri ~* \.(ico|css|jsgif|jpe?g|png)$) {
expires 72h;
break;
}
proxy_read_timeout 1200;
proxy_connect_timeout 1200;
}
rewrite ^/$ http://club.brands.com.tw/ec last;
rewrite ^/mobile/$/ http://club.brands.com.tw/mobile/$1 last;
rewrite ^/probe/$/ http://club.brands.com.tw/probe/$1 last;
rewrite ^/888$ http://club.brands.com.tw/ec/888/$1 last;
}
server {
listen 80;
server_name mall.brands.com.tw;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://mall.brands.com.tw:8080;
#proxy_cache my-cache;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_cache_valid 200 302 60m;
#proxy_cache_valid 404 1m;
if ($request_uri ~* \.(ico|css|jsgif|jpe?g|png)$) {
expires 72h;
break;
}
proxy_read_timeout 1200;
proxy_connect_timeout 1200;
}
rewrite ^/$ http://mall.brands.com.tw/ec last;
rewrite ^/mobile/$/ http://mall.brands.com.tw/mobile/$1 last;
rewrite ^/probe/$/ http://mall.brands.com.tw/probe/$1 last;
rewrite ^/888$ http://mall.brands.com.tw/ec/888/$1 last;
}
}
2012年6月24日 星期日
Latest news clips 2012.06.22
1. Mexico elections: failure of drugs war leaves nation at the crossroads
On 1 July, Mexicans will vote in vital presidential elections. But the issue no candidate dares to address is the cartel violence tearing the nation apart. Diplomats say the time has come to challenge drug policy – but can they get the US to agree?
23 June 2012
Two policemen pass an anti-violence sculpture based on one made by Yoko Ono in memory of John Lennon, in Mexico City. Photograph: Ronaldo Schemidt/AFP/Getty Images
One after another, Mexico's presidential candidates sat in silence amid the grand setting of Chapúltepec Castle while, across the room, the leader of the country's movement of victims of drug war violence – a poet – chastised them.
"The 60,000 dead, the more than 20,000 who've disappeared, the hundreds of thousands of people displaced, wounded and hunted, the tens of thousands of widows and orphans that this stupid war against drugs is costing us, do not exist for you and your parties," Javier Sicilia accused. "For you, the national emergency does not exist." One after the other, the candidates promised action and showed concern, then they left. It was time to get back to the real business of running for president.
The meeting with Sicilia last month was unavoidable, given the moral weight of the movement he represents, but it was also the only time in the entire three-month campaign when the undisputed issue of the day was the drug war ravaging Mexico.
Polls show that most Mexicans consider security, along with the economy, to be the two biggest issues facing their country, but neither has featured particularly heavily. "Everybody asks me where the security issue is. Why the candidates don't talk about the economy. The elephant in the room is President Felipe Calderón's record, and that is hardly talked about," says pollster Jorge Buendía. In Ciudad Juárez, which has just lost its title as the world's most dangerous city, now ranked second, the chronicler of the violence, journalist Julián Cardona, says: "To look at the candidates speak, you would think they were talking about another country."
2. Johnny Depp and Vanessa Paradis separate after 14 years
Announcement by Depp's publicist that couple have 'amicably separated' follows months of rumours
Guardian 20 June 2012
Johnny Depp and Vanessa Paradis, pictured at the Academy Awards in 2008. Photograph: Carlos Barria/Reuters
Johnny Depp has separated from his partner of 14 years, French singer and actor Vanessa Paradis, a representative of the actor said on Tuesday.
"Johnny Depp and Vanessa Paradis have amicably separated. Please respect their privacy and, more importantly, the privacy of their children," Depp's publicist said in a statement.
The announcement follows widespread reports earlier this year that the couple's relationship was on the rocks, although Depp denied rumours in May of a split.
Depp, 49, began dating Paradis, 39, in 1998, following the end of his relationship with supermodel Kate Moss. The couple appeared together in Roman Polanski's film The Ninth Gate.
Depp and Paradis have two children, Lily-Rose, 13, and Jack, 9, and set up homes in France, Los Angeles, and on a private island in the Caribbean.
The couple never married, although Depp has been married once before, to Lori Anne Allison between 1983 and 1985, and had a high-profile relationship with actor Winona Ryder in the early 1990s.
Depp rose to fame in the 1980s in the Fox television series 21 Jump Street, leading to films including Donnie Brasco, Chocolat, the Pirates of the Caribbean franchise, and numerous collaborations with the director Tim Burton.
2012年6月20日 星期三
Latest news clips 2012.06.22
1. Armstrong to Face Doping Charges
The Wall Street Journal June 13, 2012
The U.S. agency that polices drug use in sports has informed Lance Armstrong that it intends to bring formal doping charges against him, in an action that could ultimately cost the retired cycling champion all seven of his Tour de France titles.
In a 15-page letter reviewed by The Wall Street Journal, the U.S. Anti-Doping Agency, or USADA, told Mr. Armstrong and others that it spoke with "numerous riders, team personnel and others" who "will testify based on personal knowledge" of Mr. Armstrong's alleged doping.
The letter, which paints a picture of a wide-ranging conspiracy by a succession of the country's top cycling teams over a period of years, comes just months after federal prosecutors closed a two-year investigation into Mr. Armstrong's U.S. Postal Service-sponsored cycling team without bringing charges.
As a result of the USADA action, triathlon authorities suspended Mr. Armstrong from competing. The athlete, who focused on the sport after retiring from cycling in 2011, can't compete in triathlons until the charges are resolved.
In a statement, Mr. Armstrong said, "I have been notified that USADA, an organization largely funded by taxpayer dollars but governed only by self-written rules, intends to again dredge up discredited allegations dating back more than 16 years to prevent me from competing as a triathlete and try and strip me of the seven Tour de France victories I earned."
Mr. Armstrong added, "I have never doped."
2. Greece's super-rich maintain lavish lifestyles and low profiles
Guardian June 13, 2012
Since the outbreak of the Greek crisis, the country's moneyed class has been notable mainly by its absence
Locals fear the island of Spetses is at risk of becoming a 'club for the rich'. Photograph: THE TRAVEL LIBRARY / Rex Feature
Nearly three years into their country's worst crisis in modern times, life goes on as normal for Greece's super-rich. As the sun sets, oligarchs, shipowners, singers and media stars gather at the Poseidonion hotel on the island of Spetses opposite the little bay. They tuck into a menu that includes pasticcio laced with foie gras. Among them is a middle-aged man in a T-shirt proclaiming: "More is less".
Three days before Greeks cast their ballots in a make-or-break election, their country could not be more divided. Here there is no talk of the pain of crisis – the only topic of conversation elsewhere in Greek society. The destitution and despair of Athens is a world away – and for many quite clearly it is best kept that way.
Greek shipowners, who have gained from their profits being tax-free and who control at least 15% of the world's merchant freight, have also remained low-key. With their wealth offshore and highly secretive, the estimated 900 families who run the sector have the largest fleet in the world. As Athens' biggest foreign currency earner after tourism, the industry remitted more than $175bn (£112bn) to the country in untaxed earnings over the past decade. Greece's debt currently stands at €280bn.
An estimated €8bn flowed out of the Greek banking system in May as speculation over the country's possible exit from the Eurozone mounted. Another €4bn was reported to have been withdrawn in the last two weeks – on top of an estimated €20bn since the start of the crisis in late 2009. Stories of rich Greeks sending their wives and best friends on "shopping missions" to remove secret hoards kept in banks in Switzerland and Cyprus are legion.
2012年6月13日 星期三
Latest news clips 2012.06.15
1. Melting Arctic 'blooms' with algae
CNN June 11, 2012
A satellite image of the Chukchi Sea, between Alaska and Russia, shows phytoplankton bloom (in green).
(CNN) -- Scientists in the Arctic have discovered the largest ever under-ice bloom of phytoplankton, likening the discovery to "finding the Amazon rainforest in the middle of the Mojave Desert."
Researchers were amazed to discover a colossal 100 kilometer (62 miles) stretch of phytoplankton blooming under Arctic ice, north of Alaska, in July last year.
It had previously been assumed that sea ice blocked the sunlight necessary for the growth of marine plants. But four times more phytoplankton was found under the ice than in ice-free waters nearby.
Scientists now believe that pools of melting ice actually function like skylights and magnifying glasses, focusing sunlight into sea water, providing the perfect conditions for the intense phytoplankton bloom, which makes the water look like pea soup.
Undiscovered until the 1970s, the ocean's phytoplankton is now understood to be responsible for about as much of the oxygen in our atmosphere as plants on land.
2. Putin Arrives in China for Regional Summit
New York Times June 5, 2012
BEIJING — President Vladimir V. Putin of Russia arrived in China on Tuesday, a visit that contrasted with his shunning of a summit of world leaders hosted by President Obama last month and was intended to drive home the existence of an alternative group, the Shanghai Cooperation Organization, which excludes the United States.
Chinese President Hu Jintao and his Russian counterpart Vladimir Putin shake hands during a signing ceremony at the Great Hall of the People in Beijing on June 5, 2012.
Admired by the Chinese for his staying power as leader of Russia for 12 years, Mr. Putin and President Hu Jintao of China will discuss their approaches to Syria, Iran and their efforts to squeeze the United States out of Central Asia, Chinese and American analysts said. Both countries are also opposed to an American plan for a missile- defense system in Poland and other parts of Eastern Europe that is designed as protection against Iran.
In what appears to be a show of solidarity, the Iranian president, Mahmoud Ahmadinejad, will attend the Shanghai Cooperation Organization meeting as an observer, and the Kremlin announced that Mr. Putin would meet with him. Russia is scheduled to host a next round of talks later this month among world powers on the Iranian nuclear program.
2012年5月30日 星期三
Latest News Clips 2012.06.01
1. NATO to endorse Afghan exit plan, seeks routes out
China Post May 21, 2012
Doug Mills/The New York Times
CHICAGO-- NATO leaders will endorse plans to hand over combat command in Afghanistan by mid-2013 on Monday and seek practical progress in opening routes to bring an international army of more than 130,000 back home from an unpopular, resource-draining war.
The strategy for a gradual exit from Afghanistan is aimed at holding together the multinational force and maintaining security in spite of France's decision to withdraw its troops earlier than scheduled.
At a summit in Chicago, leaders of the 28-nation alliance will endorse plans for the NATO-led International Security Assistance Force to hand over command of all combat missions to Afghan forces by the middle of 2013 and for the withdrawal of most of the 130,000 foreign troops by the end of 2014.
NATO : North Atlantic Treaty Organization 北大西洋公約組織
endorse: 贊同、背書
combat : 戰鬥
drain: 流出、流乾、耗盡
gradual :逐漸的
withdraw :退出、撤回
troop(s):軍隊
summit : 頂峰: 高峰會
Afghan forces: 阿富汗軍隊
combat : 戰鬥
drain: 流出、流乾、耗盡
gradual :逐漸的
withdraw :退出、撤回
troop(s):軍隊
summit : 頂峰: 高峰會
Afghan forces: 阿富汗軍隊
2. For Healthy Eating, Bitter Is Better
A food developer urges resisting sweet lures and braving taste shocks, new cuisines and despised dishes
The Wall Street Journal May 25, 2012
As someone who develops new food products, I've been a professional taster for 16 years. I love my job, but I'm constantly frustrated by the unwillingness of most Americans to try foods that challenge their palates.
It can take five to 10 attempts before you reach the point where you don't reject a new food outright.
The tongue is a unique muscle. The best way to exercise it, if you want to make the most difference to your waistline, is not to flex or fatigue it, but to stretch it. Expanding our repertoire of foods isn't just about exploration and new pleasures. It's also the first step toward eating a broader, healthier diet.
We are born loving sweetness, so we heap sugar into our lattes and drown our Chinese food in sweet sauces. But constantly indulging our craving for sweetness has an insidious effect. With each new overly sweet food that we consume, whether it is high in calories or not, we dull our palates to other tastes and flavors, especially those of nutritious fruits and vegetables.
bitter : 苦的
urge: 督促, 極力主張
lure: 誘餌(n), 引誘(vt)
cuisine: 美食
despise: 看不起、鄙視
frustrate: 沮喪
palate: 味覺
taste:味道, 品嘗
attempt: 嘗試(n), 企圖(vt)
tongue :舌
waistline:腰圍
flex: 使(肌肉)收縮
fatigue: 疲勞(n),使疲勞(vt)
repertoire :曲目
drown :淹沒
insidious : 陰險的,有害的
indulge:沉迷於
crave: 渴望
dull: 平淡乏味的(adj), 使遲鈍(vt)
flavor:味道, 調味
bitter : 苦的
urge: 督促, 極力主張
lure: 誘餌(n), 引誘(vt)
cuisine: 美食
despise: 看不起、鄙視
frustrate: 沮喪
palate: 味覺
taste:味道, 品嘗
attempt: 嘗試(n), 企圖(vt)
tongue :舌
waistline:腰圍
flex: 使(肌肉)收縮
fatigue: 疲勞(n),使疲勞(vt)
repertoire :曲目
drown :淹沒
insidious : 陰險的,有害的
indulge:沉迷於
crave: 渴望
dull: 平淡乏味的(adj), 使遲鈍(vt)
flavor:味道, 調味
訂閱:
文章 (Atom)






