2016年8月21日 星期日

移除KMPlayer右側廣告


開啟命令提示字元
搜尋輸入cmd,輸入
echo 127.0.0.1 player.kmpmedia.net >> c:\windows\system32\drivers\etc\hosts
如果拒絕存取,開啟時右鍵點"以系統管理員身分執行"
完成

2016年8月19日 星期五

FlexSlider Properties

https://github.com/woothemes/FlexSlider/wiki/FlexSlider-Properties

WIP
FlexSlider hosts many features, and there's a chance you'll find yourself needing to read up on a few of them. Below is an overview table of the features available in FlexSlider, followed by detailed information and tips regarding each property.


PropertyDefaultDescription
namespace"flex-"String Prefix string attached to the classes of all elements generated by the plugin.
selector".slides > li"Selector Must match a simple pattern.'{container} > {slide}'.
animation"fade"String Controls the animation type, "fade" or"slide".
easing"swing"String Determines the easing method used in jQuery transitions.
direction"horizontal"String Controls the animation direction,"horizontal" or "vertical"
reversefalseBoolean Reverse the animation direction.
animationLooptrueBoolean Gives the slider a seamless infinite loop.
smoothHeightfalseBoolean Animate the height of the slider smoothly for slides of varying height.
startAt0Number The starting slide for the slider, in array notation.
slideshowtrueBoolean Setup a slideshow for the slider to animate automatically.
slideshowSpeed7000Number Set the speed of the slideshow cycling, in milliseconds
animationSpeed600Number Set the speed of animations, in milliseconds
initDelay0Number Set an initialization delay, in milliseconds
randomizefalseBoolean Randomize slide order, on load
pauseOnActiontrueBoolean Pause the slideshow when interacting with control elements.
pauseOnHoverfalseBoolean Pause the slideshow when hovering over slider, then resume when no longer hovering.
useCSStrueBoolean Slider will use CSS3 transitions, if available
touchtrueBoolean Allow touch swipe navigation of the slider on enabled devices
videofalseBoolean Will prevent use of CSS3 3D Transforms, avoiding graphical glitches
controlNavtrueBoolean Create navigation for paging control of each slide.
customDirectionNav""jQuery Object/Selector Container the custom navigation markup works with.
directionNavtrueBoolean Create previous/next arrow navigation.
prevText"Previous"String Set the text for the "previous" directionNavitem
nextText"Next"String Set the text for the "next" directionNavitem
keyboardtrueBoolean Allow slider navigating via keyboard left/right keys.
multipleKeyboardfalseBoolean Allow keyboard navigation to affect multiple sliders.
mousewheelfalseBoolean (Dependency) Allows slider navigating via mousewheel
pausePlayfalseBoolean Create pause/play element to control slider slideshow.
pauseText"Pause"String Set the text for the "pause" pausePlay item
playText"Play"String Set the text for the "play" pausePlay item
controlsContainer""jQuery Object/Selector Container the navigation elements should be appended to.
manualControls""jQuery Object/Selector Define element to be used in lieu of dynamic controlNav.
sync""Selector Mirror the actions performed on this slider with another slider.
asNavFor""Selector Turn the slider into a thumbnail navigation for another slider.
itemWidth0Number Box-model width of individual carousel items, including horizontal borders and padding.
itemMargin0Number Margin between carousel items.
minItems0Number Minimum number of carousel items that should be visible.
maxItems0Number Maximum number of carousel items that should be visible.
move0Number Number of carousel items that should move on animation.
startemptyFunction Fires when the slider loads the first slide.
beforeemptyFunction Fires asynchronously with each slider animation.
afteremptyFunction Fires after each slider animation completes.
endemptyFunction Fires when the slider reaches the last slide (asynchronous).
addedemptyFunction Fires after a slide is added.
removedemptyFunction Fires after a slide is removed.

2016年8月16日 星期二

擷取網頁資料


[ASP.NET][C#]使用HtmlAgilityPack(2) 擷取網頁上的匯率

https://dotblogs.com.tw/jackbgova/2014/06/11/145488

[VB.NET]擷取網頁資料


enter取代

例如: 
吳xx,陳xx,林xx,張xx 

要改為: 
吳xx 
陳xx 
林xx 
張xx 


1.開啟WORD 

2.複製TXT檔裡所有的文字 

3.於WORD裡貼上 

4.按 編輯---->取代 

5.尋找目標那欄請打 , 

6.取代為那欄請打 ^p 

7.按下全部取代 


2016年8月15日 星期一

Python學習


開始把玩 Python

http://wiki.python.org.tw/Python/%E7%AC%AC%E4%B8%80%E6%AC%A1%E7%94%A8%E5%B0%B1%E4%B8%8A%E6%89%8B

安裝開發環境
http://djangogirlstaipei.herokuapp.com/tutorials/installation/?os=windows

1.下載最新版本的 Git
2. 下載 Python 3.5.1

Python 3.5.2 documentation




http://dokelung-blog.logdown.com/posts/236467-python-teaching-slides



Python 抓取上櫃交易明細(1)


使用Python解析網頁取得上市上櫃各類股票的資訊
from:


Excel 2010 開啟 Excel 2003 檔案時出現檔案毀損錯誤訊息,該如何處理?

from:
https://dotblogs.com.tw/chou/archive/2011/05/30/26621.aspx


一、問題描述

使用 Excel 2010 開啟 Excel 2003 檔案時,出現檔案毀損的錯誤訊息,但使用 Excel 2003 或 2007 開啟檔案則沒有問題,該如何處理?

二、方法

狀況1. Excel 檔案格式在 Excel 2010 不支援
請參考 Excel 中支援的檔案格式 檢查 Excel 檔案格式在 Excel 2010 是否支援,像是 Excel 2.1(97) 版本的格式,在 Excel 2010 可能開不起來。
此時可透過 Excel 2007 或 Excel 2003 另存檔案格式,讓 Excel 2010 可以處理。或者在 Excel 2010 中,按 [檔案] / [開啟舊檔] / [開啟並修復],以及 [檔案] / [開啟舊檔] / [抽選資料] 轉換數值開啟看看。

狀況2. Excel 檔案可能有危險
可能您的 Excel 2003 檔案內容有一些可能會有危害的檔案,因此 Excel 2010 以限制模式開啟 Excel 2003 檔案時會出現檔案毀損錯誤訊息,假如您信任該檔案的話,請參考以下步驟調整 Excel 2010 設定。
1. 開啟 Excel,按 [檔案],[選項]。
2. 此時出現 [Excel 選項] 視窗,選擇 [信任中心] 頁籤,點選 [信任中心設定] 按鈕。
3. 此時出現 [信任中心] 視窗,將右邊受保護檢視的相關選項取消勾選,按 [確定] 儲存設定。
4. 重新開啟 Excel 檔案,測試看看是否能順利開啟。

2016年8月4日 星期四

在ASP.NET的sessionState的三種屬性


from: https://dotblogs.com.tw/boei/2010/07/06/16414
摘要:在ASP.NET的sessionState的三種屬性
1.InProc(預設):也就是將Session保存在Process裡面(IIS5是aspnet_wp.exe,而IIS6是W3wp.exe),這個Process算是不穩定,在某些事件發生時,Process會重新啟動。在web.config的設定:
1  <configuration>  
2      <system.web>  
3             <sessionState   mode="InProc"  
4                  timeout="20"  
5                  cookieless="UseCookies">  
6             </sessionState>  
7      </system.web>  
8 </configuration>
2.StateServer:本機的一個服務,可以在系統服務裡看到服務名為ASP.NET State Service的服務,預設下是不啟動的。當我們設定mode為StateServer之後,要在服務那邊手動將該服務啟動喔。在web.config的設定:
1   <configuration>     
2      <system.web>  
3            <sessionState mode="StateServer" timeout="500"       
4            stateConnectionString="tcpip=127.0.0.1:42424"/>     
5      </system.web>  
6  </configuration>
3.SQLServer:將 session 存於 SqlServer 資料庫中,必需要有ASPState資料庫,所以要使用 aspnet_regiis.exe 工具來新增,步驟如下:
  (1.)新增 ASPState 資料庫:進入命令模式視窗輸入 aspnet_regsql.exe -S ServerName -E -ssadd -sstype p
  (2.)如果要移除:進入命令模式視窗輸入aspnet_regsql.exe -S ServerName -E -ssremove
  (3.)web.config的設定:
1   <configuration>     
2      <system.web>  
3             <sessionState mode="SQLServer"  
4                        sqlCommandTimeout="30"  
5                        sqlConnectionString="data  source=localhost;Integrated            
6                        Security=SSPI">  
7              </sessionState>  
8      </system.web>  
9  </configuration>



ASP網站管理工具與Web組態管理API設定使用

from: http://163.20.55.203/eqinfo2014/?p=831

這個單元專為網站的權限控管而製作,網站的基本架構很簡單:
1.開一個「空」的WebForm網站。
2.製作一個Default.aspx當首頁。
3.新增一個資料夾,這個資料夾裡放的網頁是必須有權限的使用者才能進入操作。
為了達到第三點的目的,必須準備一個使用者帳戶的資料庫,而這個資料庫並不同於一般在sql裡面直接新增的資料庫,該資料庫必須讓asp.net組態管理工具能連接,因此,要用「aspnet_regsql」工具做註冊的動作,而相關的連接字串又得特別注意,寫錯了,就連不上…為此,我浪費了許多時間。以下是一連串的操作,珍貴啊!
aspC001aspC002aspC003aspC004aspC006aspC007aspC008aspC009aspC010aspC011aspC012aspC013aspC014aspC015aspC016aspC017aspC018aspC019aspC020aspC021aspC022aspC023aspC024aspC025aspC026aspC027aspC028aspC029aspC030aspC031aspC032aspC033aspC034aspC035aspC036aspC037aspC038aspC039aspC040aspC041aspC042aspC043aspC044aspC045aspC046aspC047aspC048aspC049aspC050aspC051aspC052aspC053aspC054aspC055aspC056aspC057aspC058aspC059aspC060aspC061aspC062aspC063aspC064aspC065aspC066aspC067aspC068aspC069aspC070aspC071aspC072aspC073aspC074aspC075