2008/12/20

MonoDevelop 1.91 on Cent OS

Last post we installed Mono 2.x run time. Here we will get MonoDevelop install on GNOME, for development environment.

First, here are the related software. You should have most of them when installing the run-time:

yum install glib2-devel pango-devel gtk2-devel glade2-devel libgnome-devel \
gnome-desktop-devel gnome-panel-devel libgnomeprintui22-devel \
gtksourceview-devel ruby ruby-rdoc gtkhtml38-devel wget

Now, we need make the required environment variables while we're building the IDE, as well in its run-time. So let's make it into shellscript called env.sh (or whatever you like it).

echo 'PATH="/opt/mono/bin:$PATH"' /opt/mono/env.sh
echo 'export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig' >> /opt/mono/env.sh
echo 'export LD_LIBRARY_PATH=/opt/mono/lib' >> /opt/mono/env.sh
echo 'source /opt/mono/env.sh' >> /opt/mono/env.sh

chmod +x /opt/mono/env.sh

Now we are ready to build MonoDevelop from tarball source. The following packages are the minimum software needed - we will build them one-by-one:

gtk-sharp

cd ~/
wget http://ftp.novell.com/pub/mono/sources/gtk-sharp212/gtk-sharp-2.12.5.tar.bz2
tar xjf gtk-sharp-2.12.5.tar.bz2
cd ./gtk-sharp-2.12.5
./configure --prefix=/opt/mono
make;make install

Mono.Addins

wget http://ftp.novell.com/pub/mono/sources/mono-addins/mono-addins-0.3.1.tar.bz2
cd ./mono-addins-0.3.1
./configure --prefix=/opt/mono
make;make install

Monodoc

wget http://ftp.novell.com/pub/mono/sources/monodoc/monodoc-2.0.zip
unzip monodoc-2.0.zip
cd ./monodoc-2.0
./configure --prefix=/opt/mono
make;make install

Mono Tools

wget http://ftp.novell.com/pub/mono/sources/mono-tools/mono-tools-2.0.tar.bz2
tar jfxv mono-tools-2.0.tar.bz2
cd ./mono-tools-2.0
./configure --prefix=/opt/mono
make;make install

MonoDevelop

wget http://ftp.novell.com/pub/mono/sources/monodevelop/monodevelop-1.9.1.tar.bz2
tar jfxv monodevelop-1.9.1.tar.bz2
cd ./monodevelop-1.9.1
./configure --prefix=/opt/mono
make;make install

You should now able to start up MonoDevelop in GNOME, enjoy.

2008/12/17

Mono 2.x on CentOS 5

Mono no longer packages for Red Hat distribution but still provide sources. Here we will grab the source code, and install manually on a Cent OS 5.2 box.

First off, make sure you have all the development tools installed:

Pre-Software requirement

yum groupinstall "Development Tools"
yum install httpd build-essential gcc bzip bison pkgconfig glib-devel \
glib2-devel httpd-devel libpng-devel libX11-devel freetype fontconfig \
pango-devel ruby ruby-rdoc gtkhtml38-devel wget

At this time, Mono 2.0.1 is the latest. You can always check for new build at http://ftp.novell.com/pub/mono/sources-stable/

Getting all the needed Mono software

cd /root
wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.0.1.tar.bz2
wget http://ftp.novell.com/pub/mono/sources/xsp/xsp-2.0.tar.bz2
wget http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.0.tar.bz2
wget http://ftp.novell.com/pub/mono/sources/libgdiplus/libgdiplus-2.0.tar.bz2

Unlike many other tutorials, we will install using "Java" style - the version # is included:

mkdir /opt/mono-2.0.1

Let's make a desult symlink:,

ln -s /opt/mono-2.0.1 /opt/mono

This is needed when building xsp:

export PKG_CONFIG_PATH=/usr/lib/pkgconfig/:/opt/mono/lib/pkgconfig/:/usr/lib/
Set path (even we don't actually have it yet)

export PATH=/opt/mono/bin:$PATH

Now we are ready to compile:

tar jvfx mono-2.0.1.tar.bz2

cd mono-2.0.1
./configure --prefix=/opt/mono-2.0.1
make; make install

tar jvfx xsp-2.0.tar.bz2
cd ~/xsp-2.0
./configure --prefix=/opt/mono
make; make install

tar jvfx mod_mono-2.0.tar.bz2

cd ~/mod_mono-2.0
./configure --prefix=/opt/mono --with-mono-prefix=/opt/mono --with-apr-config=/usr/lib/httpd/modules
make; make install

tar jvfx libgdiplus-2.0.tar.bz2
cd ~/libgdiplus-2.0
./configure
make; make install

You should now have mod_mono.so in /usr/lib/httpd/modules. Also you should have mod_server in /opt/mono/bin.
You directories should look like those:

Directory contents are as follows:

ls /opt/mono/bin/

al                    mono-api-info
al2                   mono-api-info2
asp-state             monodis
asp-state2            mono-find-provides
caspol                mono-find-requires
cert2spc              monograph
certmgr               monolinker
chktrust              monop
cilc                  monop2
dbsessmgr             mono-service
dbsessmgr2            mono-service2
disco                 mono-shlib-cop
dtd2rng               mono-test-install
dtd2xsd               mono-xmltool
fastcgi-mono-server   mozroots
fastcgi-mono-server2  nunit-console
gacutil               nunit-console2
genxs                 pedump
gmcs                  permview
httpcfg               prj2make
ilasm                 resgen
ilasm2                resgen2
installvst            secutil
jay                   setreg
macpack               sgen
makecert              signcode
mbas                  smcs
mconfig               sn
mcs                   soapsuds
mjs                   sqlsharp
mkbundle              wsdl
mkbundle2             wsdl2
mod-mono-server       xbuild
mod-mono-server2      xsd
mono                  xsp
mono-api-diff         xsp2
ls /opt/mono/lib/
libgdiplus.a             libmono-profiler-aot.so.0
libgdiplus.la            libmono-profiler-aot.so.0.0.0
libgdiplus.so            libmono-profiler-cov.a
libgdiplus.so.0          libmono-profiler-cov.la
libgdiplus.so.0.0.0      libmono-profiler-cov.so
libikvm-native.a         libmono-profiler-cov.so.0
libikvm-native.la        libmono-profiler-cov.so.0.0.0
libikvm-native.so        libmono.so
libmono.a                libmono.so.0
libmono.la               libmono.so.0.0.0
libMonoPosixHelper.a     libMonoSupportW.a
libMonoPosixHelper.la    libMonoSupportW.la
libMonoPosixHelper.so    libMonoSupportW.so
libmono-profiler-aot.a   mono
libmono-profiler-aot.la  pkgconfig
libmono-profiler-aot.so  xsp
ls /usr/lib/httpd/modules/
libphp5.so              mod_file_cache.so
mod_actions.so          mod_filter.so
mod_alias.so            mod_headers.so
mod_asis.so             mod_ident.so
mod_auth_basic.so       mod_imagemap.so
mod_auth_digest.so      mod_include.so
mod_authn_alias.so      mod_info.so
mod_authn_anon.so       mod_ldap.so
mod_authn_dbd.so        mod_log_config.so
mod_authn_dbm.so        mod_log_forensic.so
mod_authn_default.so    mod_logio.so
mod_authn_file.so       mod_mem_cache.so
mod_authnz_ldap.so      mod_mime_magic.so
mod_authz_dbm.so        mod_mime.so
mod_authz_default.so    mod_mono.so
mod_authz_groupfile.so  mod_mono.so.0.0.0
mod_authz_host.so       mod_negotiation.so
mod_authz_owner.so      mod_proxy_ajp.so
mod_authz_user.so       mod_proxy_balancer.so
mod_autoindex.so        mod_proxy_connect.so
mod_cache.so            mod_proxy_ftp.so
mod_cern_meta.so        mod_proxy_http.so
mod_cgid.so             mod_proxy.so
mod_cgi.so              mod_rewrite.so
mod_dav_fs.so           mod_setenvif.so
mod_dav.so              mod_speling.so
mod_dbd.so              mod_status.so
mod_deflate.so          mod_suexec.so
mod_dir.so              mod_unique_id.so
mod_disk_cache.so       mod_userdir.so
mod_dumpio.so           mod_usertrack.so
mod_env.so              mod_version.so
mod_expires.so          mod_vhost_alias.so
mod_ext_filter.so
And the mod_mono config file should be like this:

ls /etc/httpd/conf/mod_mono.conf
vi
/etc/httpd/conf/mod_mono.conf
<ifmodule>
LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so
AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
</ifmodule>
Let's move it to CentOS style:

mv /etc/httpd/conf/mod_mono.conf /etc/httpd/conf.d/mod_mono.conf

Restart web server

service httpd restart

Make a simple test file named default.aspx:
<%Response.Write("mono on centos - it works");%>

If you see that message at http://localhost/default.aspx, congrad, there you have it!

2008/11/25

矽谷的未來 - 邱鴻安 @世界日報

世上有不少地方都想成為新矽谷─波士頓、西雅圖、奧斯汀、北卡州的「科研三角」、中國的蘇州以及印度的班加羅爾;但是矽谷依然無可替代,依然是科技之都。那麼,矽谷靠的是什麼?是什麼特點使矽谷成為矽谷?

關於矽谷的創立,其中的一種說法,是創於1957年─八名年輕工程師在這一年設立早期的晶片公司「快捷半導體」。1960年代和1970年代的矽谷,半導體公司到處都是,在半導體之前,矽谷到處仍是果園。之後,是電腦軟硬體的公司,接著是網路公司,然後是新形式的網路資訊,例如社交網站 Facebook和播放短片的YouTube。矽谷最新的發展是綠色科技:太陽能電池和金屬板、以及插電式的油電車。從這種發展過程可以看出,科技是矽谷的核心,而持續創新則是它的成功之道。

「創新」雖是眾所周知的說法,但實行起來卻很困難,否則其他地方早就可以追上矽谷。那麼,在持續創新的精神下,矽谷會有些什麼勝過其他地方的特點?

其中一個別處所無的特點是對創業主意的重視,而對創業主意的重視,則可見於矽谷願意就創業主意進行投資,把風險和成本的考慮,視為次要因素。這種敢於冒險投資、不怕失敗的精神,就是矽谷特有的文化。

社交網站Facebook的創辦人馬克‧查克柏格 (Mark Zuckerberg)是哈佛的輟學生,他在想出社交網站的主意後,就像其他夢想創業的東岸人一樣,沒有留在希望成為新矽谷的波士頓發展,卻西來矽谷找機會;果然,他在這裏找到風險投資家彼德‧菲爾 (Peter Thiel),菲爾投資50萬元給他,因此Facebook.com就在2004年成立。2007年10月,微軟出資2億4000萬元購買 Facebook的1.6%股權,這表示Facebook的市值已增至150億元。

對於矽谷特有的冒險創新精神,Google執行長施密特(Eric Schmidt)說得最徹底。去年是矽谷創谷50年,矽谷各大企業的主管紛紛對矽谷的未來發表意見,施密特的說法是:「如果你相信自己的創業主意,那麼財務之事,自會慢慢水到渠成。」

施密特的主張創新,並不只限於科技,還在於管理和經濟,甚至在於政治。他管理Google,讓員工在上班時有20%的「自用時間」,這兩成的自用時間,當然不是用來埋頭幹活的,而是用來進行自訂項目的創新時間。

施密特對清潔能源甚有熱情,他認為美國和全球可以放棄石油,代之以清潔能源 (太陽能、風力發電、電池等),發展清潔能源可創造大量就業機會,並且為美國經濟開出一番新天地。他的其中一個目標是:在20年內,插掣充電式的油電車可占到美國整體汽車的50%。施密特的創新觀念,還用到政治上。他在英國金融時報撰文,指歐巴瑪思想創新,是推行開發清潔能源、開創新時代的理想人選。

總之,創新就是這個世界的一切法則,不獨是矽谷的未來,而且還是經濟、政治賴以成功的要素。

2008/10/21

Top Movies about Computer & Geeks

Pirates of Silicon Valley (1999)
This film is the semi-humorous documentary about the men who made the world of technology what it is today, their struggles during college, the founding of their companies, and the ingenious actions they took to build up the global corporate empires of Apple Computer Corporation and Microsoft Inc.

Written by Flotis, biographical look at the men who founded Apple and Microsoft and a look at the early days of the companies. Noah Wyle and Joey Slotnick portray Apple founders Steve Job and Steve Wozniak. Anthony Michael Hall and John DiMaggio play Microsoft's Bill Gates and Steve Ballmer. The film attempts to compare the two firm's operations and differences in the founder's operations.

Revolution OS (2001)
REVOLUTION OS tells the inside story of the hackers who rebelled against the proprietary software model and Microsoft to create GNU/Linux and the Open Source movement.
On June 1, 2001, Microsoft CEO Steve Ballmer said "Linux is a cancer that attaches itself in an intellectual property sense to everything it touches."

Microsoft fears GNU/Linux, and rightly so. GNU/Linux and the Open Source & Free Software movements arguably represent the greatest threat to Microsoft's way of life. Shot in cinemascope on 35mm film in Silicon Valley, REVOLUTION OS tracks down the key movers and shakers behind Linux, and finds out how and why Linux became such a potent threat.
REVOLUTION OS features interviews with Linus Torvalds, Richard Stallman, Bruce Perens, Eric Raymond, Brian Behlendorf, Michael Tiemann, Larry Augustin, Frank Hecker, and Rob Malda.

Live Free or Die Hard (2007)
When someone hacks into the computers at the FBI's Cyber Crime Division; the Director decides to round up all the hackers who could have done this. When he's told that because it's the 4th of July most of their agents are not around so they might have trouble getting people to get the hackers. So he instructs them to get local PD'S to take care of it. And one of the cops they ask is John McClane who is tasked with bringing a hacker named Farrell to the FBI. But as soon as he gets there someone starts shooting at them. McClane manages to get them out but they're still being pursued. And it's just when McClane arrives in Washington that the whole system breaks down and chaos ensues.

WarGames (1983)
A young computer whizz kid accidentally connects into a top secret super-computer which has complete control over the U.S. nuclear arsenal. It challenges him to a game between America and Russia, and he innocently starts the countdown to World War 3.

Hackers (1995)
A young boy is arrested by the US Secret Service for writing a computer virus and is banned from using a computer until his 18th birthday. Years later, he and his new-found friends discover a plot to unleash a dangerous computer virus, but they must use their computer skills to find the evidence while being pursued by the Secret Service and the evil computer genius behind the virus.

Sneakers (1992)
Martin Bishop is the head of a group of experts who specialize in testing security systems. When he is blackmailed by Government agents into stealing a top secret black box, the team find themselves embroiled in a game of danger and intrigue. After they recover the box, they discover that it has the capability to decode all existing encryption systems around the world, and that the agents who hired them didn't work for the Government after all…

The Italian Job (2003)
The plan was flawless… the job was executed perfectly… the escape was clean. The only threat mastermind thief Charlie Croker never saw coming was a member of his own crew. After pulling off an amazing gold bullion heist from a heavily guarded palazzo in Venice, Italy, Charlie and his gang — inside man Steve, computer genius Lyle, wheelman handsome Rob, explosives expert Left-Ear and veteran safecracker John Bridger - can't believe when one of them turns out to be a double-crosser. Enter Stella, a beautiful nerves-of-steel safecracker, who joins Charlie and his former gang when they follow the backstabber to California, where they plan to re-steal the gold by tapping into Los Angeles' traffic control system, manipulating signals and creating one of the biggest traffic jams in LA history. Now the job isn't the payoff, it's about payback.

The Net (1995)
Angela Bennett is a computer expert. This young and beautiful analyst is never far from a computer and modem. The only activity she has outside of computers is visiting her mother. A friend, whom she's only spoken to over the net and phone, Dale Hessman, sent her a program with a weird glitch for her to de-bug. That night, he left to meet her and was killed in a plane crash. Angela discovers secret information on the disk she has received only hours before she leaves for vacation. Her life then turns into a nightmare, her records are erased from existence and she is given a new identity, one with a police record. She struggles to find out why this has happened and who has it in for her.

23 (1998)
The movie's plot is based on the true story of a group of young computer hackers from Hannover, Germany. In the late 1980s the orphaned Karl Koch invests his heritage in a flat and a home computer. At first he dials up to bulletin boards to discuss conspiracy theories inspired by his favorite novel, R.A. Wilson's "Illuminatus", but soon he and his friend David start breaking into government and military computers. Pepe, one of Karl's rather criminal acquaintances senses that there is money in computer cracking - he travels to east Berlin and tries to contact the KGB.

Takedown (2000)
Kevin Mitnick is quite possibly the best hacker in the world. Hunting for more and more information, seeking more and more cybertrophies every day, he constantly looks for bigger challenges. When he breaks into the computer of a security expert and an ex-hacker, he finds one - and much more than that…

TRON (1982)
Computer Classic, one of the first computer generated movies. A hacker is split into molecules and is transported into a computer. In this computer a mean program called Master Control behaves like a dictator. The hacker, who programmed a number of features of the environment he got into, teams up with a book keeping program and his girl-friend and together they try to replace Master Control with Tron. Tron is an honest safety system.

Antitrust (2001)
This movie is the fictional story of computer programming genius Milo Hoffman after graduating from Stanford and getting out into the competitive world of computer software. In his contemplation of where to begin his career, he is contacted by Gary Winston whose character is loosely based on Bill Gates. Winston is the CEO of a company called NURV, and they are on the brink of completing the global communication's system, Synapse. They need Hoffman to help them meet their launch date, so after much thought and with the full support of his girlfriend Alice, he accepts the job. Tragedy soon after strikes and Milo becomes suspicious of the company he has been wrapped up in. He learns that trusting anyone could be a mistake, and that nothing is as it seems.

The Matrix (1999)
Computer hacker Thomas Anderson has lived a relatively ordinary life–in what he thinks is the year 1999–until he is contacted by the enigmatic Morpheus who leads him into the real world. In reality, it is 200 years later, and the world has been laid waste and taken over by advanced artificial intelligence machines. The computers have created a false version of 20th-century life–the "Matrix"–to keep the human slaves satisfied, while the AI machines draw power from the humans. Anderson, pursued constantly by "Agents" (computers who take on human form and infiltrate the Matrix), is hailed as "The One" who will lead the humans to overthrow the machines and reclaim the Earth.

The Matrix Reloaded (2003)
6 months after the events depicted in The Matrix, Neo has proved to be a good omen for the free humans, as more and more humans are being freed from the matrix and brought to Zion, the one and only stronghold of the Resistance. Neo himself has discovered his superpowers including super speed, ability to see the codes of the things inside the matrix and a certain degree of pre-cognition. But a nasty piece of news hits the human resistance: 250,000 machine sentinels are digging to Zion and would reach them in 72 hours. As Zion prepares for the ultimate war, Neo, Morpheus and Trinity are advised by the Oracle to find the Keymaker who would help them reach the Source. Meanwhile Neo's recurrent dreams depicting Trinity's death have got him worried and as if it was not enough, Agent Smith has somehow escaped deletion, has become more powerful than before and has fixed Neo as his next target.

Swordfish (2001)
When the DEA shut down its dummy corporation operation codenamed SWORDFISH in 1986, they had generated $400 million which they let sit around; fifteen years of compound interest has swelled it to $9.5 billion. A covert counter-terrorist unit called Black Cell, headed by the duplicitious and suave Gabriel Shear, wants the money to help finance their raise-the-stakes vengeance war against international terrorism, but it's all locked away behind super-encryption. He brings in convicted hacker Stanley Jobson, who only wants to see his daughter Holly again but can't afford the legal fees, to slice into the government mainframes and get the money.

Enemy of the State (1998)
Robert Clayton Dean is a successful labor lawyer based in Washington DC. He has a beautiful wife and adorable son with a nice house located in Georgetown. But things take a turn for the surreal, when a chance encounter with an old friend leaves him evidence of a politically-motivated murder. On the run from a treacherous NSA official and his men, he comes into contact with a former government operative and surveillance expert, who is his only way out.

The Thirteenth Floor (1999)
Computer scientist Hannon Fuller has discovered something extremely important. He's about to tell the discovery to his colleague, Douglas Hall, but knowing someone is after him, the old man leaves a letter in his computer generated parallel world that's just like the 30's with seemingly real people with real emotions. Fuller is murdered in our real world the same night, and his colleague is suspected. Douglas discovers a bloody shirt in his bathroom and he cannot recall what he was doing the night Fuller was murdered. He logs into the system in order to find the letter, but has to confront the unexpected. The truth is harsher than he could ever imagine…

2008/09/24

有經營過網拍賣場者優先錄用

江亙松 理財周刊提供
2008 / 09 / 24 星期三 16:33
我最近在擔任一位扶輪社社友的行銷執行顧問,替他們公司銷售超氧酵素,雖然產品的品質與效果都不錯,但是畢竟是新包裝的不知名產品,所以在市場上詢問度與指名度並不高。

為了在建立知名度的同時能建立口碑效益,所以我選擇「以時間換取市場空間」的行銷策略,透過雅虎拍賣的方式,將原本一盒20包的產品拆成5包一組的體驗組,以1元結標外加99元運費的方式銷售,並且會進一步針對這些索取體驗組的使用者做採訪,贈送願意做正面評價的被採訪者一整盒價值NT$1,500的超氧酵素。

您覺得這樣的方式很簡單嗎?策略上不難,但如果您沒有自己操作過雅虎拍賣,千萬別以為很簡單,因為有很多結標、付款、對帳、出貨、評價、後續聯絡的問題,考驗著每一個希望利用網路拍賣來做行銷的賣家。

想到這個問題就不禁讓我預見將來,當我要把這個超氧酵素的網拍銷售模式建立起來,總是要移轉給我這位社友的公司繼續經營下去,他們公司目前看起來人力已經很吃緊,幾位業務與行政人員都已經忙得不可開交,所以勢必要請另外一位新員工來負責這個網拍行銷的業務,如果連我這個不怕網路、不怕行銷的管理顧問都必須謹慎小心,才能一個人處理一個產品的網拍,那這位新人一定被期望可以很快的上手接任這些工作。

「請註明您是否會使用網拍」,這個備註事項也許在將來的求才資訊中會經常被強調出來,或者是寫成「有經營過網拍賣場者優先錄用」,如果愈來愈多企業喜歡使用網拍來銷售產品,那我相信這件事情應該會發生。

學生最喜歡問的問題就是「我應該準備什麼才可以在將來求職的時候脫穎而出」,我每次的回答都是「請你用僅剩的在學期間,致力於經營一個每天有一萬次瀏覽人數的部落格」,而且我還會備註說明「如果你的部落格每天有這麼多人瀏覽你還找不到工作,請你畢業之後立刻到我的公司,我一定給你工作」。

剛開始有電腦的時候,懂得安裝電腦的工程師一定有工作,後來到了有網路的時候,懂得寫網站的工程師也不用怕失業,因為就理性的老闆的角度來看,一位國外碩士的薪水不應該比一個網拍評價1000點以上的賣家來得值錢。

行銷智慧:因應時代需求,青年朋友們多學學網拍與部落格經營吧。

2008/09/01

Google發表Android應用程式市集 -

Google Android團隊成員Eric Chu周四(8/28)在部落格中揭露了Android應用程式市集的輪廓,供開發人員將所建置好的Android應用程式上傳供使用者下載。測試版可望在第一批Android手機出爐時問世。此一Android市集與蘋果供iPhone下載應用程式的App Store概念一致。

Chu表示,該市場將採用類似YouTube的評論與意見機制,而且是一個開放的內容供應平台,讓使用者可搜尋、購買、下載並安裝在Android裝置上執行的各種應用程式;Google之所以不採用Store,而是以市集(Market)作為該網站的名稱,是因為認為開發人員應該要有一個開放且沒有障礙的環境來提供他們所創造的應用程式

全文>> http://www.ithome.com.tw/itadm/article.php?c=50661

2008/08/17

台灣50+選擇權

許庭禎:台灣50+選擇權 贏家策略
【2008/08/17 經濟日報 記者宋健生/台中報導】

凱基期貨投資顧問部副總許庭禎凱基證券研究團隊在與本報合辦的「投資特快車」講座上表示,一般散戶操作股票、期貨的困難,在於無法找出獲利成長股,操作期貨又不知適時停損,建議以台灣50搭配選擇權(sell call),可算是負利率時代最佳的投資策略。

凱基指出,這種投資組合的優點,是以時間換取金錢,主要是賺選擇權的時間價值;預期報酬為每月3%至15%,主要風險為開盤漲停、或開高300點以上,不過發生這種情形的機率極少。

台灣50的波動幅度低,選擇權的波動幅度相對大,只要選擇權部位沒有被要求履約,都可順利賺取時間價值。這項交互策略藉由同時擁有多、空部位的優點,克服選股與停損的人性弱點,操作難度低,適合長期操作。

寶來台灣卓越50基金,簡稱為台灣50。凱基期貨投資顧問部副總許庭禎指出,台灣50指數ETF設立時的單位淨值計算方式,是以台灣50指數除以100,假設ETF設立時,台灣50指數為3,689點,3,689點除以100為36.89元,就是台灣50的價格。

台灣50指數ETF另訂買賣價格升降單位,未滿50元為0.01元,50元以上為0.05元。上市當日即可融資融券買賣,且融券賣出沒有平盤下不得放空的限制。

至於選擇權標的,是以隱含波動率的40倍為進場參考履約價,而後每周倍數遞減40、30、20為原則,最低以20倍為限。假設目前隱含波動率為 30%,30X20為600,所以履約價為600點。若以期貨8,300點為例,加上600點,則選擇權履約價應設為8,900點。

許庭禎指出,根據歷史資料顯示,從2003年7月1日至2008年5月31日,以投入金額100萬元為例(台灣50部分為70萬元,選擇權部分為30萬元),五年累積獲利金額176萬7,150元,年平均報酬35萬3,430元,年獲利率35.3%。

許庭禎表示,台灣50與選擇權的操作策略,以二者同時進場為例,在sell call部位接近履約價100點時,sell call就要出場。再往上調整履約價,如果以跳高開直接進入價內時,還是要執行停損,規避風險。

大盤下跌時,則每100-200點調整一次履約部位,以當時隱含波動率及call的價值為準。許庭禎強調,絕對禁止收盤時只留單邊部位,要嚴守進出原則。

Mercury簡易改裝

有同好有一樣的困擾 - 如何使用自己的data logging軟體,因此寫了這篇來分享我的簡易改裝。 Background 雲豆子 MERCURY roaster 烘豆機的設計是使用自行開發的軟體,來:1. 操控風門/火力; 2. data logging/自動烘焙。 ...