部落格文章訂閱


貧窮不能等,因為時間久了,你就會貧窮習慣了;
夢想不能等,因為努力晚了,人老就無能為力了;
學習不能等,因為懂得少了,就沒本事夢想成真了;
健康不能等,因為身體垮了,人生的一切就都沒了。


自訂搜尋

找不到想要的文章嗎? 請直接再下面的搜尋框裡輸入要查詢文章內容關鍵字 ,就能夠更快速的取得想要閱讀的問題喔~~謝謝大家的支持與愛護~若有任何建議事項, 歡迎透過留言板留言給我喔!!


  • 你不能決定生命的長度,但可以控制它的寬度;
  • 你不能左右天氣,但可以改變心情;
  • 你不能改變容顏,但可以展現笑容;
  • 你不能控制他人,但可以掌握自己;
  • 你不能預知明天,但可以利用今天;
  • 你不能樣樣勝利,但可以事事盡力。

free counters


How do I configure IPv6 networking under FreeBSD 7.x server? How do I assign IPv6 IP address using command line utility?

 

IPv6 (IP next generation) can be easily configured under FreeBSD 7.x or 6.x. You need to know:

文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

The standard way to load an URL into a WebView object is using the loadUrl method.

public void loadUrl (String url)
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

With the following code, it is possible to send data to a WebView using POST with Android:

 

public void onCreate(Bundle savedInstanceState) {
 
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

Q:

Trying to call a method in my activity from a fragment. I want the fragment to give the method data and to get the data when the method return. I want to achieve similar to call on a static method, but without the use of static because it create problems in the activity.

New to fragments so I need an easy and pedagogic explanation!

Thanks!

文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

I have a FreeBSD machine running on a virtual machine. I am using SUN Virtual Box. I need to set static IP address to this machine. So that I can access this machine. Is there anyway to do this ?

in /etc/rc.conf:

ifconfig_em0="inet 192.168.0.254 netmask 255.255.255.0"
defaultrouter="192.168.0.1"

192.168.0.254 -- the machine IP,

文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

做到一种样式  android 的spinner本身背景样式要黑色的 ,而spinner里的字体也是黑色的 ,spinner 控件的属性里设置TextColor没用  网上找了下  需要定义xml 文件来定义样式   和自定义按钮控件类似;

1,首先定义spinenr本身背景的样式:

Java代码  收藏代码
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <selector xmlns:android="http://schemas.android.com/apk/res/android">  
  3.     <item android:state_pressed="true" android:drawable="@drawable/droplist_down" />  
  4.     <item android:state_focused="true" android:drawable="@drawable/droplist_focus" />  
  5.     <item android:drawable="@drawable/droplist" />  
  6. </selector>  
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

建立Android Project後會多了res/values/styles.xml的樣式檔案

事實上這是讓Android讀取的預設的樣式定義檔

例如要讓整個程式的基本樣式為亮色系或暗色系~

或者要隱藏標題全螢幕等等, 皆可以在這個檔案上進行修改...

 在/res/values/目錄下, 預設的styles.xml內容

Frank 發表在 痞客邦 留言(0) 人氣()

材料:雞蛋2個涼開水約5湯匙鹽1/2茶匙廚房紙巾1張香油1/4茶匙
  做法:
【1】 雞蛋液打散,直到蛋清和蛋黃均勻的混合在一起,不要有大塊的凝結。
【2】 加入涼開水(不要直接加生水),一邊加,一邊拌勻,然後加入鹽,充分攪勻。一般蛋液與水的比例是1:2
【3】 用漏網過濾掉氣泡,或者廚房紙巾將蛋液表面的氣泡吸掉,保證液體表面光滑平整,這樣整出來的雞蛋羹,才不會有難看的蜂窩。

文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

Handling XML in Perl example from a Well House Consultants training course

#!/usr/bin/perl

use XML::LibXML;

$parser = new XML::LibXML;

$struct = $parser -> parse_file("apps-admin.xml");
$rootel = $struct -> getDocumentElement();

$elname = $rootel -> getName();
print "Root element is a $elname and it contains ...\n";

@kids = $rootel -> childNodes();
foreach $child(@kids) {
        $elname = $child -> getName();
        @atts = $child -> getAttributes();
        print "$elname (";
        foreach $at (@atts) {
                $na = $at -> getName();
                $va = $at -> getValue();
                print " ${na}[$va] ";
                }
        print ")\n";
        }

 

More on Handling XML in Perl [link]

文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

命令形的 wireshark,有同 tcpdump

man tshark

捕包樹狀解析

tshark -V

十六進制,ASCII 解析

tshark -x

指定界面,保留檔名

tshark -i <界面> -w <檔名>

指定界面,保留檔名,指定重覆保留最大檔數量,停止捕包大小(有 -b 就有 -a?)

Frank 發表在 痞客邦 留言(0) 人氣()

在Android中創建或表示一個顏色的方法

1. 使用Color類的常量,如:
int color = Color.BLUE; // 創建一個藍色 是使用Android提供的顏色

2. 如果知道ARGB的取值,那麼可以使用Color類的靜態方法argb創建一個顏色:
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

在 DEV-C++ 中要使用 Windows Socket Programming 必須要連結 Winsock 函式庫。連結函示庫的方法說明如下:
 
Step 1. 開啟工具列中的「專案」> 「專案選項」
Step 2. 在「專案選項」視窗中選擇「參數」頁面
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

詳見: 如何正確發送(大量) Email 信件 - ihower

  • 處理退信 - 信箱位址錯了, 不要一直寄
  • 與主要的 Email 服務商設定意見反應機制(Feedback Loop) - 跟 Y! / G / MSN 等連繫.
  • 建立自已的 email 清單 - 不要買清單來亂寄
  • 不要使用 100% 以圖片為主的內容
  • 使用垃圾信判讀工作測試
  • 驗證 HTML - HTML 格式要正確
  • 模擬測試終端使用者環境 - 使用不同 Email Client 測試
  • 專屬 IP - 別人 SPAM, 跟著害到你也被列入黑名單
  • 設定 SPF Validation - SPF
  • 設定 Domain Keys Verification - Domain Keys
  • 設定 Reverse DNS 反查 - 寄信的 IP 無法反查, 可能根本就寄不到
  • 驗證寄信者地址 - 寄信人 Email 位址要是正確存在的

相關網頁

本文取自 http://blog.longwin.com.tw/2010/02/http-ihower-tw-blog-archives-3481/


文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

夫妻飆唱 冰雪奇緣 神曲! 對嘴超強!

真的很值得一看!! 後面的小女孩也真的是 非常的搶鏡 ~

Good Looking Parents Sing Disney's Frozen (Love Is an Open Door)

 


文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()

迪士尼角色配音 唱 Let it Go.

除了強,我真的不知道該用什麼形容!!

With so many covers of Let it Go coming out, people may forget the original Disney magic that this song has, so what better way to preserve that magic with other Disney and Pixar characters singing the song! So enjoy this Disney and Pixar Mashup! Recorded and produced by Seth O'Neal


文章標籤

Frank 發表在 痞客邦 留言(0) 人氣()