Category Archives: Web

有關工作時web的東西都在這

EditText has different style for hint

ref.: http://stackoverflow.com/questions/3406534/password-hint-font-in-android/18073897#18073897 Solution android:fontFamily=”sans-serif” From Dialogs Guide Tip: By default, when you set an EditText element to use the “textPassword” input type, the font family is set to monospace, so you should change its font family to “sans-serif” so that both text fields use a matching font style.  

VS2012 useful plugin

Enhanced Scrollbar Middle-Click Scrolling Organize Imports for Visual Basic Custom Document Well Tools Options Support Auto Brace Completion HTML Copy Fix Mixed Tabs Ctrl + Click Go To Definition Align Assignments Move Line Up/Down Commands Column Guides Colorized Parameter Help http://visualstudiogallery.msdn.microsoft.com/3a96a4dc-ba9c-4589-92c5-640e07332afd

Server push mechanism

Articles introduced the server push mechanism on html Traditional Comet mechanism http://www.ibm.com/developerworks/web/library/wa-reverseajax1/index.html HTML5 Websocket http://www.ibm.com/developerworks/web/library/wa-reverseajax2/index.html Java server side solution for comet/websocket http://www.ibm.com/developerworks/web/library/wa-reverseajax3/index.html Java framework for comet/websocket http://www.ibm.com/developerworks/web/library/wa-reverseajax4/index.html

URL及URI的分別

      URI期下有URL及URN。URL只是URI的一個小組。一個URI可以是URN,而不是URL http://en.wikipedia.org/wiki/Uniform_Resource_Identifier http://stackoverflow.com/questions/176264/whats-the-difference-between-a-uri-and-a-url                    

Category: Web

php的endif endwhile格式

寫了這麼久php,還是第一次看到endif endwhile這一種格式 (剛剛在查看某wordpress template時看到) 於是就google看看 原來這款格式是php3時候就有了,格式如下 if ($foo): echo “yep\n”; elseif ($bar): echo “almost\n”; else: echo “nope\n”; endif; 除此之外,還有endwhile / endswitch等等~ (想看詳細doc的,請到source中的php.net連結) source: http://www.phpbuilder.com/manual/en/migration.if-endif.php http://docs.php.net/manual/control-structures.alternative-syntax.php