Javascript for() loop vs jQuery .each() performance comparison

JQuery HowTo: Javascript for() loop vs jQuery .each() performance comparison

This post is an outcome of 15 minutes of free time and a question that I had yesterday. This question were:

1. How fast jQuery’s .each() method is?
2. How does it compare to javascript’s native for loop?

It is clear without any performance tests that native javascript for loop is faster, but I always used jQuery’s .each() utility with caution. It always felt like I will get a performance penalty for using it. So I tried to never use it.

So today, I wrote up a little javascript performance test and got my answers. Basically, I created an array and iterated through it using native for loop and jQuery’s .each() iterator. All I did was just an iteration and no array amendments or any other logic. I know it is very basic, but that’s exactly what I want to know. How fast they iterate!

jQuery: Form changed warning

jQuery: Form changed warning « Mister Dai

The majority of us has had a moment where we’ve been filling out a web page form, been distracted and then left the page without submitting, accidentally clicked a link and navigated away or even had no input focused and hit backspace. Wouldn’t it have been nice to get a little warning saying “Hey, you’ve put changed this form data. You sure you want leave this page and lose it all?”. Here’s my effort using jQuery and trying to allow for multiple forms on a single page.

Licence CPOL First Posted 9 Oct 2007 Views 89,350 Bookmarked 53 times Building Dynamic SQL In a Stored Procedure

Building Dynamic SQL In a Stored Procedure – CodeProject

Introduction

A dynamic SQL in a stored procedure is a single Transact-SQL statement or a set of statements stored in a variable and executed using a SQL command. There may be several methods of implementing this in SQL Server. This article will show you a good method of doing this. Before getting into a detailed explanation, let me tell “When to Use Dynamic SQL?" We can’t definitely say that a Static SQL will meet all our programming needs. A Dynamic SQL is needed when we need to retrieve a set of records based on different search parameters. Say for example – An employee search screen or a general purpose report which needs to execute a different SELECT statement based on a different WHERE clause.

NOTE: Most importantly, the Dynamic SQL Queries in a variable are not compiled, parsed, checked for errors until they are executed.

就算主機板(BIOS)不支援也硬要用USB開機

就算主機板(BIOS)不支援也硬要用USB開機 | 蝴蝶養貓

Put PLoP on a CD

PLoP comes as a zip file, which includes a variety of files. To put PLoP on a CD, you will need either plpbt.iso or plpbtnoemul.iso from that zip file. Either disc image should work on most computers, though if in doubt plpbtnoemul.iso should work ‘everywhere’, according to the readme included with PLoP Boot Manager.

PLoP下載後是一個包含很多檔案的zip檔,根據裡面的readme檔,要把PLoP燒進CD裡,你需要的是zip檔裡的plpbt.iso或plpbtnoemul.iso,這兩個檔應該都可以在大部分的(老)電腦上運作正常。

TIPS-About UI Thread Limitation

TIPS-About UI Thread Limitation – 黑暗執行緒

這是一個程式"中鳥"開發Windows Form要面對的問題…

Windows Form裡的Threading有些討厭的限制。菜鳥還處於天真無邪的Single Thread打天下階段,渾然不知它的險惡;而老鳥早就吃過苦頭,熟知要如何對付它,所以也不畏懼它的刁難。而剛開始學會在Windows Form中展現Multi-threading威力的中鳥,一起步多半要先闖過這一關。

用一個最簡單的例子來說明好: 我寫了一個Windows Form,放了一個label1一個button1, 在button1_Click事件另外建立一個Thread呼叫chgLabel(text)修改label1的Text屬性: