2017年8月26日 星期六

Hello!

Welcome to StackEdit!

Hey! I’m your first Markdown document in StackEdit1. Don’t delete me, I’m very helpful! I can be recovered anyway in the Utils tab of the Settings dialog.


Documents

StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible offline!

Note:

  • StackEdit is accessible offline after the application has been loaded for the first time.
  • Your local documents are not shared between different browsers or computers.
  • Clearing your browser’s data may delete all your local documents! Make sure your documents are synchronized with Google Drive or Dropbox (check out the Synchronization section).

Create a document

The document panel is accessible using the button in the navigation bar. You can create a new document by clicking New document in the document panel.

Switch to another document

All your local documents are listed in the document panel. You can switch from one to another by clicking a document in the list or you can toggle documents using Ctrl+[ and Ctrl+].

Rename a document

You can rename the current document by clicking the document title in the navigation bar.

Delete a document

You can delete the current document by clicking Delete document in the document panel.

Export a document

You can save the current document to a file by clicking Export to disk from the menu panel.

Tip: Check out the Publish a document section for a description of the different output formats.


Synchronization

StackEdit can be combined with Google Drive and Dropbox to have your documents saved in the Cloud. The synchronization mechanism takes care of uploading your modifications or downloading the latest version of your documents.

Note:

  • Full access to Google Drive or Dropbox is required to be able to import any document in StackEdit. Permission restrictions can be configured in the settings.
  • Imported documents are downloaded in your browser and are not transmitted to a server.
  • If you experience problems saving your documents on Google Drive, check and optionally disable browser extensions, such as Disconnect.

Open a document

You can open a document from Google Drive or the Dropbox by opening the Synchronize sub-menu and by clicking Open from…. Once opened, any modification in your document will be automatically synchronized with the file in your Google Drive / Dropbox account.

Save a document

You can save any document by opening the Synchronize sub-menu and by clicking Save on…. Even if your document is already synchronized with Google Drive or Dropbox, you can export it to a another location. StackEdit can synchronize one document with multiple locations and accounts.

Synchronize a document

Once your document is linked to a Google Drive or a Dropbox file, StackEdit will periodically (every 3 minutes) synchronize it by downloading/uploading any modification. A merge will be performed if necessary and conflicts will be detected.

If you just have modified your document and you want to force the synchronization, click the button in the navigation bar.

Note: The button is disabled when you have no document to synchronize.

Manage document synchronization

Since one document can be synchronized with multiple locations, you can list and manage synchronized locations by clicking Manage synchronization in the Synchronize sub-menu. This will let you remove synchronization locations that are associated to your document.

Note: If you delete the file from Google Drive or from Dropbox, the document will no longer be synchronized with that location.


Publication

Once you are happy with your document, you can publish it on different websites directly from StackEdit. As for now, StackEdit can publish on Blogger, Dropbox, Gist, GitHub, Google Drive, Tumblr, WordPress and on any SSH server.

Publish a document

You can publish your document by opening the Publish sub-menu and by choosing a website. In the dialog box, you can choose the publication format:

  • Markdown, to publish the Markdown text on a website that can interpret it (GitHub for instance),
  • HTML, to publish the document converted into HTML (on a blog for example),
  • Template, to have a full control of the output.

Note: The default template is a simple webpage wrapping your document in HTML format. You can customize it in the Advanced tab of the Settings dialog.

Update a publication

After publishing, StackEdit will keep your document linked to that publication which makes it easy for you to update it. Once you have modified your document and you want to update your publication, click on the button in the navigation bar.

Note: The button is disabled when your document has not been published yet.

Manage document publication

Since one document can be published on multiple locations, you can list and manage publish locations by clicking Manage publication in the menu panel. This will let you remove publication locations that are associated to your document.

Note: If the file has been removed from the website or the blog, the document will no longer be published on that location.


Markdown Extra

StackEdit supports Markdown Extra, which extends Markdown syntax with some nice features.

Tip: You can disable any Markdown Extra feature in the Extensions tab of the Settings dialog.

Note: You can find more information about Markdown syntax here and Markdown Extra extension here.

Tables

Markdown Extra has a special syntax for tables:

Item Value
Computer $1600
Phone $12
Pipe $1

You can specify column alignment with one or two colons:

Item Value Qty
Computer $1600 5
Phone $12 12
Pipe $1 234

Definition Lists

Markdown Extra has a special syntax for definition lists too:

Term 1
Term 2
Definition A
Definition B
Term 3

Definition C

Definition D

part of definition D

Fenced code blocks

GitHub’s fenced code blocks are also supported with Highlight.js syntax highlighting:

// Foo
var bar = 0;

Tip: To use Prettify instead of Highlight.js, just configure the Markdown Extra extension in the Settings dialog.

Note: You can find more information:

  • about Prettify syntax highlighting here,
  • about Highlight.js syntax highlighting here.

Footnotes

You can create footnotes like this2.

SmartyPants

SmartyPants converts ASCII punctuation characters into “smart” typographic punctuation HTML entities. For example:

ASCII HTML
Single backticks 'Isn't this fun?' ‘Isn’t this fun?’
Quotes "Isn't this fun?" “Isn’t this fun?”
Dashes -- is en-dash, --- is em-dash – is en-dash, — is em-dash

Table of contents

You can insert a table of contents using the marker [TOC]:

MathJax

You can render LaTeX mathematical expressions using MathJax, as on math.stackexchange.com:

The Gamma function satisfying is via the Euler integral

Tip: To make sure mathematical expressions are rendered properly on your website, include MathJax into your template:

<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>

Note: You can find more information about LaTeX mathematical expressions here.

UML diagrams

You can also render sequence diagrams like this:

Created with Raphaël 2.1.2AliceAliceBobBobHello Bob, how are you?Bob thinksI am good thanks!

And flow charts like this:

Created with Raphaël 2.1.2StartMy OperationYes or No?Endyesno

Note: You can find more information:

  • about Sequence diagrams syntax here,
  • about Flow charts syntax here.

Support StackEdit


  1. StackEdit is a full-featured, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.
  2. Here is the text of the footnote.

2007年3月16日 星期五

如何利用 NetBeans 連接資料庫

剛才才在想,我要如何利用 RoR 把原本的 Sample 寫出來時,才發現.....原來我沒辦法利用 NetBeans 直接連資料庫,上網找了一下資料,找到下列這些資料 (節錄自 NetBeans.org ) ,不過也許我現在的 NB 版本是 6.0 的,在使用一些相關的功能時,比較我要某個欄位有 Auto Incresment 的功能,卻看不到在哪,結果還是開了其他的 Database 管理工具才有辦法設定,但我還是把如何利用 NB 連上資料庫的方法 PO 在下面囉~~~!

執行於 Oracle 資料庫上的 Oracle Driver:
驅動程式Oracle Database 10g Release 2 JDBC Driver
版本Oracle Database 10g Release 2 (10.2.0.3)
JAR 文件ojdbc14.jar
ClassNameoracle.jdbc.driver.OracleDriver
URL 格式jdbc:oracle:thin:@//hostname:port/database
範例 URLjdbc:oracle:thin:@//localhost:1521/ora9i



執行於 SQL Server 資料庫上的 Microsoft Driver:

驅動程式Microsoft SQL Server 2005 JDBC Driver 1.1
版本sqljdbc_1.1.1501.101
JAR 文件sqljdbc.jar
ClassNamecom.microsoft.sqlserver.jdbc.SQLServerDriver
URL 格式jdbc:sqlserver://hostname:1433;databaseName=database;
selectMethod=cursor
範例 URLjdbc:sqlserver://localhost:1433;databaseName=travel;selectMethod=cursor


執行於 MySQL Server 資料庫上的 MySQL Driver:

驅動程式MySQL Server JDBC Driver 5.0.5
版本Connect/J 5.0.5
JAR 文件mysql-connector-java-5.0.5-bin.jar
ClassNamecom.mysql.jdbc.Driver
URL 格式jdbc:mysql://:/
範例 URLjdbc:mysql://localhost:3306/travel

2007年3月15日 星期四

RoR 的學習之路 (一) - 尋找最適合我的 IDE

就在下載了 Ruby on Rails 後,摸了兩天,在這兩天的印象中, RoR 給我的印象很深刻

第一、這個的 Help 還真是讓人摸不透,看不大懂這個 Help 的內容撰寫方式,只好邊看 Sample 程式碼,邊看他的 Help 是在哪找,到相關的註解~~
第二、他提供了一個開發工具是 SciTE 這個…就是井底之蛙可憐的地方, Delphi 用久了,習慣了 Code Completion ,結果這個開發工具只是具有語法 HighLight 的功能 (還是還有其他的功能?? )
第三、開發速度真是快,只要了解了他的語法概念,程式一下就寫出來了



但~~~懶人畢竟是懶人,還是想多了解一下,還有沒有其他的工具,結果找著找著~~,居然看到了下面這篇:

http://www.javaeye.com/topic/55085

什麼時候 Java 的開發工具也支援了 RoR,而且找了找資料,不只是 Java 工具開始支援,聽說微軟也要來軋一腳,厚厚~~~,看來這個爆紅的技術,將是會引起一個新的程式語言之戰。

下載:Netbeans Dev 6.0 M7 並選擇 Q-Build

==> 為什麼是 M7 因為他是個測試開發版,目前 Stable 的版本是 5.5 ,但還不支援 RoR,而當我下載下來玩了一個下午後,厚~~~怎麼玩怎麼灰心,想說也許是開發版本的關係吧,怎麼弄都很不順利,看他的 Demo 也是很順利在執行,我是哪邊有問題?? 最後總算是讓我試出來了,原來我之前下載的是 One Click Ruby on Rails 這一套,但現在用了 NetBeans (以下簡稱 NB) 的時候,NB 是使用 JRuby ,注意哦~~~!! 前面有多加個【J 】這是給 Java 開發平台用的,而 NB 也是用 Java 所寫出來的一個 IDE ,所以如果是照著上面那篇網址 JavaEye 網站所說的【設置方式】的話,就會失敗,因為用的 Ruby 核心是不同的,所以呢~~,只要不要去改他就好了!!!!!!!! 那麼一切就正常了 ,也許那篇文章發布的人電腦有問題吧 ,居然浪費了我一個下午。

2007年3月12日 星期一

興奮的發現

一、兩個禮拜去支援公司在台中燈會的過程,學習 PHP 的路,也是有時間就碰一碰,學習著 PHP 的觀念,學習著 PHP 的物件,學習著 PHP 與 Ajax 的關係,卻也荒廢了兩個禮拜沒打 Blog 了,就在這段時間,常常都有名詞 Ruby on Rails (以下簡稱 RoR) 在我 Google 中的畫面出現,一開始也不以為意~~,想說那應該是 Java 類的某種框架罷了~~~

結果,要巧不巧,看到了一篇文章,說明著用 RoR 開發和使用 Java 開發一個網站的差別,天呀, 看了一下,原來 RoR 這麼強哦?? 一個被評比為 2007 年必看的新技術 Top One ,厚厚~~,看起來不去給他試一下,還真是對不起自己!!


不過~~那個也是人家講的,總是自己試一下才知道咩~~~於是乎,就去下載了最新的版本:
網站:Ruby on Rails (中文網站)
下載位址: One-Click Ruby on Rails 1.8.5-24

直接安裝,裝完後………????? 要怎麼開始~~~ 一個完全沒看過的東東,像 C++ ?? 像 Java ?? 像 PHP ?? 沒有一個像的,這是程式嗎???,突然有點錯諤,這樣的東西真的可以讓人快速上手嗎? 還是得找 Google 談談,叫他給我點資料,讓我安心點,總算在 O'Reilly 的網站找到這五篇:

Rolling with Ruby on Rails

Rolling with Ruby on Rails, Part 2

Ajax on Rails

Rolling with Ruby on Rails Revisited

Rolling with Ruby on Rails Revisited, Part 2

看吧~~~,連這個東西都說他支援 Ajax ,強~~~~

最 後花了約三個小時的時間,跟著上面幾篇做完後~~~,爽~~~,我學了兩個禮拜的 PHP ,講坦白的,我連如何連資料庫,並且正確把資料庫的資料秀出來,而且還可以新增、修改、刪除怎麼弄都不曉得,用這套,我居然三個小時,寫完 了??????? 而且是用一個我從沒看過的怪程式語言~~~ 強強強!!!~~~~

決定放棄 PHP 了~~~

2007年3月2日 星期五

PHP 安裝、設定、操作

今天開始了我的學習之路,開始學習 PHP 的第一天,正在忙著下載最新版的 Apache 、 PHP 、以及 Zend (不知道這個好不好用) ,聽別人用的是蝦蝦叫的,難道比 Dreamwaver 好用?? 帶著懷疑的心情,反正 I'm a student ,拿什麼學什麼吧。

只要去 這邊 下載,並且依據你要的設定裝起來就 ok 了,他幫你把下列那些都裝起來了,裝設成功後有圖形化MySQL管理工具,我現在是用這套在Windows使用.

Apache
mySQL
PHP
Zend Optimizer
Pear(PHP Extension and Add-on Repository )

預祝我學習成功吧,開始我的 PHP 學習之路~~~~

我該選擇什麼??

看了看線上這麼多的開發工具,我該選擇哪一個工具,做為我的 Web 2.0 處女秀的開發工具呢???

Asp .net ??
雖然出了一個 Altas 但微軟的東西,到現在我還是覺得這種微軟每更新一版 .net Framework,以前寫的程式就變成垃圾的作法,還是敬而遠之比較好,而且我想在架上 Linux 上,看來這個是第一個出局的

Java ??
這 個可開發的東西可多了,會了一套連手機你都可以去摸摸了, But ……從學習到開發,到寫出一個是符合 Ajax 的程式,我看以我這麼笨的頭腦,大概要花上半年吧 @@",而且不曉得是我搜尋的技巧爛,還是這是一個事實,網路上稱讚用 Java 寫網頁的沒幾個,反而是嫌到爆,不過聽說....( 其實還是用看的 ) , Java 去年底出的 1.6.0 的版本在動態語言的部份下了不少苦心,讓用 Java 寫網頁的人眉開眼笑???

PHP ??
似 乎是個不錯的選擇,新的 5 版,又多了 OO 的概念,開發上又更視覺化了許多,而且在開發學習上似乎是一個還蠻不錯的選擇,加上 Open Source ,有了全球的 Web Designer 為我加持,我想我應該會超快的上手吧............. (一切都是藉口)


好吧,在上面一堆自己亂想的想法中~~~,脫穎而出的就是 PHP 了,再來……就是開啟了我的 PHP 學習之路。
底下放了一篇文件是 php 的發明者對於 php 和 Java 的一些評語

Rasmus Lerdorf 對PHP 要學 Java 語言在企業級開發方面提供了很多強大的類庫:「我經常被問及這樣的問題。但說實話,我並不理解什麼是企業級的應用。他們告訴我說,企業級應用就是三層架 構。但我自己的理解是這樣的,企業級應用就是那些能解決企業級層面所面臨問題的應用,通常是為解決那些複雜和苛刻的應用問題。我不同意所謂的三層架構就是 企業級應用所必須採用的,當然PHP在建構三層應用方面毫無問題。但在具體的問題上,有時候採用三層架構是完全沒有必要的...像IBM、SUN這樣大公 司往往給用戶提供所謂的『企業級解決方案』,這是因為他們想從那些龐大和複雜系統裡賺大錢。但如果你的問題沒有那麼複雜,採用這些昂貴的解決方案只會讓你 變得痛苦不堪...面對具體問題的時候,如何能夠解決具體問題的需要就足夠了,而不必在意是否採用企業級解決方案這樣的字眼。」

我覺得重點在於,不要將簡單問題複雜化, 也不要殺雞用牛刀。我看到越來越多有編程背景的人加入Flash開發行列,特別是Java的朋友,他們將自己那方面的知識帶到Flash,對提昇 Flash開發質素是好事,卻經常將他們那套複雜的編程模式引入來,ActionScript 2.0出現就是給這樣人去影響簡潔直接易用ActionScript 1.0使用者一群,ActionScript界編程高手,Branden Hall在ActionScript 2.0出現時,早已提出類似警告。ActionScript 2.0擁護者經常辯護著ActionScript 2.0和OO給他們更好的維護和擴充功能,我從來都認為:語言是死,人是生,經驗豐富的人用ActionScript 1.0同樣可以做到好好開發流程。模仿Rasmus Lerdorf 的言論:「ActionScript的用戶有很多鍾,但我想絕大部分的用戶其實不是那麼在乎面向對象,最常用到仍然是ActionScript 1.0。」

2007年2月28日 星期三

話說 Ajax

說到這個讓我沒事就興奮莫名的技術,一個漠生的名詞,一個從沒接臅過的領域,那是什麼東東,就動用了 Google 查查他的由來,看看這是一個什麼樣東西,讓全世界的 Web Designer 都在瘋,這個不查還好,一查這個東東居然從 1998 就出現了 (資料來源:TechArt 數位生活與 Web2.0程式設計) ,看了看想想也悲哀,一個技術的發展,我居然慢了人家八年的時間,再看看開發的工具,卻看的我不知是好,因為我連 Ajax 是個啥米玩意都還搞不清楚,上網隨便查查,大家都說他的工具跟 Ajax 有一腿,這…真是讓我頭痛,不過我也慢慢清楚,原來不管哪家的網頁開發語言,反正你只要能夠被放 javascript 那麼嘛~~,你就是一個能夠開發 Ajax 的語言,說來也很奇怪,一個我本來不喜歡的東西變成了我追求的對象,人真是茅頓呀~~~~

2007年2月26日 星期一

Web 的學習之路

想當初把網頁設計視為一種不入流的程式開發,認為網頁是一個回應慢,跟 AP 相比能做的事少之又少,大不了挺多秀個公司的資訊,推推公司的產品內容,讓更多的人在瀏灠網際網路時,就在那個不經意的同時 ==> 為啥不經意?? 一個隨便少有名氣的網站,主頁的廣告之多,再加上個輪播機制,平均每多少人看到你的廣告一次?,平均多少時間看到你的廣告一次?? 不小心看到了,還不一定有慾望想點~~】進入了你的網站瀏灠,之後就看各網站的內容是否足夠吸引客戶了。

後來自己開始使用 Delphi 開發 AP,卻也慢慢出現了一些疑問號~~~,因為開發的 AP 有 Client 也有 Server 端,這種以 TCP/IP 的協定,在開發的過程中有著許多的自己功力不夠所出現的 Bug ,也有不熟悉 TCP/IP 的技術面所產生的挫折,還有當產品開始銷售時,在各種形形色色的 Client 裡出現的不同錯誤訊息.... 一步一步的考驗著這幾年所累績下來的經驗與耐心,而且對於 AP 的銷售,因應公司的產品的速求,還沒有達到全球化的銷售,不過~~光是台灣所碰到的問題,足以讓我得好好思考, AP 雖然是一種對於系統的掌握方式以及取得資源最直接最方便的管道,不過相反的,客戶端的電腦因為作業系統的不同、硬體的不同、所衍生的問題,還真是讓我一度 的灰心,不過一步一步的解決了之後,經驗也隨著提昇,但發現這樣子對於想賺大錢的我來說~~~,這條路太慢了。

隨著 Google 的出現,看著他的搜尋引擎技術,看著 Ajax 的出現,再看看這幾年寫 AP 的感覺,比較了之後,嘿嘿~~~網頁的設計,讓我覺得慢慢有了不同的感覺, PHP 5 加入了 OO 的技術、 AJAX 能夠在完善的設計下,已經可以取代掉部份的桌面軟體,這是前幾年我所料想不到的,也開始對 Web 的開發感興趣,而且這幾年 Web 2.0 的技術讓 WWW 的世界開始豐富以及活絡了起來,也是該搭上這班列車,展開我的夢想之旅了 !!!!