Archive for August, 2006
[-***&^^^-]
We all know what regular expressions are. And not to many of us like them. But the fact of the matter is, they are sometimes the fastest and easiest way for solving problems. I go through phases where I feel like I’m good using them, but then I don’t look at them for a while and [...]
Filed under: Regular Expressions | 1 Comment
Vim not coloring your code correctly? Find the syntax folder in your Vim directory. There is a list of all the different syntax coloring schemes. Here is a way to manualy set your color code while in Vim.
:so $VIM\Vim70\syntax\html.vim
Filed under: VIM | Leave a Comment
VIM Swap and backup files
If you are programming in a enterprise enviroment and come from a linux background, I bet you have ran into the situation where you arn’t sure if VIM is going to leave trash files around.
VIM on many different types of installations will create both swap files and backup files.
How to disable VIM swap and backup [...]
Filed under: VIM | 10 Comments
A problem that might come up with using forms on webpages might inconsistant results of pressing the enter key. Here is a script that makes sure pressing the enter key will not submit the form. It also goes to the next textbox. The html part should look like this:
<input onkeypress=”return handleEnter(this, event)” type=”text”></td>Make sure to have the return in here. [...]
Filed under: Javascript | 2 Comments
Server Control Events
There are three different kind of server events. Postback, cached, and validation events.
Postback: button,link button,image button
Cached: textbox,dropdown list, radiobutton,checkbox (can be overridden with AutoPostBack = true)
Validation: RequiredFieldValidator type controls
The order events are processed:
PageLoad -> Cached -> Post-back -> Page_UnLoad
Filed under: .NET | Leave a Comment