免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2010年4月27日 星期二

3G 網卡連線問題

2010.04.12? 兩個禮拜前 原本可以順利使用3G 網卡上網
直接連電腦 或 透過3G無線Router都可以

現在雖然可以撥接成功 拿到ip
但是 網頁連不通
ping DNS 不通

詢問cht ...

技術人員建議:
mobile partner -> Tools -> options -> network -> network type: WCDMA only, band: all bands

i.e. 只使用3G頻段 不掃描2G頻段
更改設定後 直接連電腦 ok, 網頁可以連上 , ping DNS  也通了
但是插回3G無線Router後 又不行了
why???

2010年4月26日 星期一

如何將flickr的影像加到 html 的頁面裡 ?

flickr似乎被yahoo購併了
登入畫面自動被轉到 yahoo的login

那google的相簿服務是用哪家呢?
--> Picasa

如何將flickr的影像加到 html 的頁面裡 ?
  • 點選target image -> 點選影像上方的 "All Sizes"  -> 
    Available size: 選擇適合的大小 如果是切割圖形的一部分 最好用原尺寸, 應該就是 "Large"
  • copy/paste the url  from the "Grab the photo's URL" to html

http://3hitek.blogspot.com/2010/04/picasahtml-webpage.html
->Link to the Photo -> Image Only


[ref]
add flickr img to html, http://www.ehow.com/how_2070652_add-flickr-images-web-page.html
add picasa img to html, http://3hitek.blogspot.com/2010/04/picasahtml-webpage.html

2010年4月25日 星期日

Picasa 不支援gif?

上傳 .gif 檔 到Picasa
自動被轉成 .gif.jpg 檔
透明變成黑色
該如何keep .gif?

如何將picasa中的影像放到html webpage?


重點:

Picasa -> MyPhotos -> click the image -> click "Link to this Photo" on the right side bar


[ref]
http://picasa.google.com/support/bin/answer.py?hl=en&answer=66969

2010年4月24日 星期六

ThrashBox 終於看懂了

ThrashBox 用了比較不一樣的方式(CSS 疊套)
來放置切割的背景圖形 達到圓角矩形的效果

一般用 PhotoShop, PhotoImpact 產生的圖形切割 是切成剛剛好 ;
div 的大小幾乎必須是固定的 而且至少要六個圖形
(四角 + body 水平線 repeat-y + top/bottom 垂直線 repeat-x)

ThrashBox 則只需4個圖形 , div 的大小 只要不過大即可(小於右下方的切割圖形), 缺點是四角的邊緣不能透明 否則會露餡兒 就像底下的例子


Test Head2 aaaaaaaaaaaaaaaa

1st sentence withour.


ps.
  • 使用Picasa 的影像時 記得選取Original size
  • 使用flickr 的影像時 記得選取All size -> Large
  • Picasa 會自動將gif 轉為jpg, 透明的效果不見了?


[ref]
ThrashBox , http://www.vertexwerks.com/tests/sidebox/
css padding, http://www.w3schools.com/css/css_padding.asp

2010年4月18日 星期日

MovieClipLoader and Loader for Flash

[Q] "MovieClipLoader" type not found?
MovieClipLoader 是擺在哪個namespace底下呢?


 
[Sol]

  • MovieClipLoader is for old Actionscript and not available in ActionScript3
  • use Loader/URLLoader instead
  • import flash.display.Loader;
  • onLoadInit -> Event.EnterFrame???
  • import flash.events.MouseEvent;
  • Mouse.addListener() -> Stage.AddEventListener()
  • Mouse position -> event.target.mousex???


 
[ref]
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/index.html
http://maohao.wordpress.com/2007/07/14/getting-mouse-coordinates-on-stage/

 

AS3 Error 1119

[Q] Error 1119 occurred when i tried to get mouse position from MouseEvent
"Access of possibly undefined property width through a reference with static type Class."

[try]
  • ignore MouseEvent?
  • get mouse position by stage.mouseX, stage.mouseY
  • get mouse position by mc1.mouseX, mc1.mouseY

2010年4月13日 星期二

Hashtable.Clear() not clean ?

Hashtable ht= new Hashtable();
ht["test"]= "pig";

ht.Clear();
if (ht.count!=0)
{
string s= "sth wrong";
}

2010年4月8日 星期四

CSS style placement in html

[Q] Where to place CSS style within an Html page ?

[Q] Can we put <style> ... </style > within <body> rather than <head> ?
Yes, we can. Read more on
--> http://3hitek.blogspot.com/2010/12/css-embed-in-bloggerblogspot.html

[try] css style has to be defined before html's < body > ???
i.e. within <head> </head>

by

  • <link>
  • <style> ... </style > (embed)
  • @import "urstyles.css";

//=== otherwise --> css inline
<h2 style="color:red; background:black;">This is a heading style with red text and black background </h2>

can we put <style> ... </style > within <body> rather than <head> ?

The answer seems "Yes, we can". Please see my new blog post http://3hitek.blogspot.com/2010/12/css-embed-in-bloggerblogspot.html

How to remove addon from IE ?

[Q] How to remove addon from IE ?
[Q] 如何將IE的加載(addon)移除?

[try]
0. first disable the to-be-removed addon(s) via
Internet Options -> Programs -> Manage add-ons ->

1. Manage add-ons -> select "All add-ons" instead of "Currently loaded add-ons"

2.
  • IE7 -> Delete ActiveX control
  • IE8 -> select the target add-on -> disable it
    -> "More information" -> "Remove all sites" -> "Remove"

3. the target add-on should disappear from the list of "All add-ons"


xxx 3.1 Control Panel -> Add or Remove Programs -> remove those related with the add-ons ?

xxx 3.2 open IE, -> Internet Options -> General -> Delete Browing History

4. close and restart IE