部落格文章訂閱


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


自訂搜尋

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


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

free counters

目前日期文章:201201 (4)

瀏覽方式: 標題列表 簡短摘要

I have been using git to keep two copies of my project in sync, one is my local box, the other the test server. This is an issue which occurs when I log onto our remote development server using ssh;

git clone me@me.mydevbox.com:/home/chris/myproject Initialized empty Git repository in /tmp/myproject/.git/ Password: bash: git-upload-pack: command not found fatal: The remote end hung up unexpectedly fetch-pack from 'me@me.mydevbox.com:/home/chris/myproject' failed. 

(the file-names have been changed to protect the guilty... !)

Both boxes run Solaris 10 AMD. I have done some digging, if I add --upload-pack=which git-upload-pack the command works, (and proves that $PATH contains the path to 'git-upload-pack' as per the RTFM solution) but this is really annoying, plus 'git push' doesn't work, because I don't think there is a --unpack= option.

Incidentally, all the git commands work fine from my local box, it is the same version of the software (1.5.4.2), installed on the same NFS mount at /usr/local/bin.

Can anybody help?

文章標籤

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

為了臺灣,我必須去投票

一個中間選民

首先,怎麼定義中間選民?
1.
可藍可綠,時藍時綠(如果藍的人選好,投藍,如果綠的人選好,投綠)

2.
有時投票,有時不投票(如果藍綠人選都不好,會找個理由不投票,說是偷懶也好,說是
起某季不好也罷,就是投也是賭爛票)

文章標籤

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

Q:

I am developing a GWT application that render a text on a canvas. I want to resize the canvas whenever browser window resized. The problem is if I used Window.addResizeHandler, the rendering process with each resize will be very slow. So I need a way to resize the canvas only when the user release the mouse button after finishing resize. Is there anyway to do that?

A:

You could add a delay, so that the resize is only processed after the window hasn't been resized for some number of milliseconds:

文章標籤

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

Q: Using GWT 1.6.4, I have the following code to retrieve the dimensions of the browser window:

RootPanel panel = RootPanel.get();

int height = panel.getOffsetHeight(); 

int width = panel.getOffsetWidth();

文章標籤

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

找更多相關文章與討論