Metacharacters Commonly Used in Regular Expressions February 28th, 2010
| ^ | Matches the beginning of the line. In |
| . | Matches any single character |
| * | Specifies that the preceding character or expression can be repeated zero or more times. |
| + | Specifies that the preceding character or expression can be repeated one or more times.In other words,the preceding character or expression must match at least once. |
| ? | Specifies that the preceding character or expression can be repeated zero or one time.In other words,the preceding character or expression is optional. |
| {m,n} | Specifies that the preceding character or expression can be repeated between m and n times; m and n are integers,and m needs to be lower than n. |
| ( ) | The parentheses are used to define a captured expression.The string matching the expression between parentheses can then be read as a variable.The parentheses can also be used to group the contents therein,as in mathematics,and operators such as *,+,or ? can then be applied to the resulting expression. |
| [ ] | Used to define a character class.For example,[abc] will match any of the characters a,b,or c. The hyphen character (-) can be used to define a range of characters.For example, [a-z] matches any lowercase letter.If the hyphen is meant to be interpreted literally, it should be the last character before the closing bracket ].Many metacharacters lose their special function when enclosed between brackets and are interpreted literally. |
| [^] | Similar to [ ],except it matches everything except the mentioned character class.For example,[^a –c] matches all characters except a, b and c. |
| $ | Matches the end of the line.It is useful to think of it as anchoring the previous characters to the end of the string-that is, asserting that they are the last part. |
| \ | The backslash is used to escape the character that follows.It is used to escape metacharacters when you need them to be taken for their literal value, rather than their special meaning. For example, \. will match a dot, rather than any character(the typical meaning of the dot in a regular expression). The backslash can also escape itself, so if you want match C:\Windows, you’ll need to refer to it as C:\\Windows. |
Connection String Parameters for SqlConnection January 3rd, 2010
Here are the basic parameters for the SQL Server data provider connection string.And this will be easily used to look up for developers.
SQL Server Data Provider Connection String Parameters
| Name | Alias | Default Value | Allowed Values | Description |
|---|---|---|---|---|
| Application Name | .NET SqlClient Data Provider | Any string | Name of application | |
| AttachDBFileName | extended properties, Initial File Name | None | Any path | Full path of an attachable database file |
| Connect Timeout | Connection Timeout | 15 | 0-32767 | Seconds to wait to connect |
| Data Source | Server, Address, Addr, Network Address | None | Server name or network address | Name of the target SQL Server instance |
| Encrypt | false | true,false,yes,no | Whether to use SLL encryption | |
| Initial Catalog | Database | None | Any database that exists on the server | Database name |
| Integrated Security | Trusted_Connection | false | true,false,yes,no,sspi | Authentication mode |
| Network Library | Net | dbmssocn | dbnmpntw, dbmsrpcn, dbmsadsn, dbmsgnet, dbmslpcn, dbmsspxn, dbmssocn | Network.dll |
| Packet Size | 8192 | Multiple of 512 | Network packet size in bytes | |
| Password | PWD | None | Any string | Password if not using Windows Authentication |
| Persist Security Info | false | true,false,yes,no | Whether sensitive information should be passed back after connecting | |
| User ID | UID | None | Any string | User name if not using Windows Authentication |
| Workstation ID | Local computer name | Any string | Workstation connecting to SQL Server |
Modern Classics 2009 November 18th, 2009
VA - Modern Classics 2009
MP3 192 Kbps CBR | Operatic Pop / Classical Crossover / Vocal | 87.86 MB
TRACKLIST:
01. Canadian Tenors - Adagio (4:28)
02. Hayley Westenra - Shenandoah (3:22)
03. Il Divo - En Aranjuez Con Tu Amor (3:53)
04. Russell Watson - Nella Fantasia (4:30)
05. Ryandan - Dentro Me (3:44)
06. Three Graces - Requiem (4:06)
07. Vittorio Grigolo - Tu Sei (3:25)
08. Sarah Brightman - Think Of Me (3:12)
09. Ronan Tynan - Danny Boy (3:59)
10. Patrizio Buanne - A Man Without Love (3:25)
11. Luciano Pavarotti - Ti Adoro (3:12)
12. Emma Shapplin - La Notte Etterna (5:47)
13. Les Choristes - Voi Sur Ton Chemin (2:19)
14. Katherine Jenkins - O Sole Mio (3:19)
15. Natalie Choquette - Canon (4:53)
16. Les Anges with Gregory Charles - Ave Maria De Caccini (3:56)
17. Libera - Libera (3:57)
18. All Angels - Pie Jesu (4:37)
Fantastic Modern Classic Music Collection-CD,Download Link:
http://rapidshare.com/files/254982895/Modern_Classics__CaRTeL_95.rar
Configure Urlrewriter.net for IIS7 November 5th, 2009
UrlRewriter.NET is an open-source, light-weight, highly configurable URL rewriting component for ASP.NET 1.1 and 2.0.It is a great Search Engine Optimization (SEO) tool. Using UrlRewriter.NET, you can create URL’s containing your target keywords, boosting your rankings.
It’s not complicated for you to configure Urlrewriter.net on IIS7.Here’s a few simply steps for you to make it.
1.Add a reference to the Intelligencia.UrlRewriter assembly. To do this, right-click the root entry of your project in Solution Explorer , and choose Add Reference... In the dialog that opens, click the Browse tab, and browse to UrlRewriterV2\bin\Release\Intelligencia.UrlRewriter.dll. Select the file and click OK.
2.Open your web.config file in your web project and add the following configuration section handler that
enables UrlRewriter.NET to read its configuration from a configuration node named rewriter:
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="rewriter" requirePermission="false"
type="Intelligencia.UrlRewriter.Configuration.
RewriterConfigurationSectionHandler,Intelligencia.UrlRewriter" />
</configSections>
Ensure that The element is the first child of the element.
3.Now configure the UrlRewriter HTTP module, which allows UrlRewriter.NET to intercept incoming requests
(and rewrite them):
<system.web>
...
<httpModules>
<add type="Intelligencia.UrlRewriter.RewriterHttpModule,
Intelligencia.UrlRewriter" name="UrlRewriter" />
</httpModules>
...
4.Finally, we must make sure UrlRewriter.NET is configured to receive all requests to nonexistent files or
folders. Course of using iis7,you need to add the following lines to your web.config
file:
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="UrlRewriter" type="Intelligencia.UrlRewriter. ➥
RewriterHttpModule" />
</modules>
…
5.Excellent, now UrlRewriter.NET is ready to use!Now you can configure url rewriting for you application by add the highlighted configuration
elements in the section of web.config:
<configuration>
<configSections>
...
</configSections>
<rewriter>
<rewrite url="/my-super-product.aspx" to="~/Product.aspx?ProductID=1" />
</rewriter>
...
Via step 5 you’ll know that you’ll add the real URL rewriting rules for your pages between element "<rewriter>".
Yes we can-Obama Music November 5th, 2009
Moving Song by Will i am,Inspiring Speech by Obama.Great video!
Interpol-Obstacle 1 lyrics November 4th, 2009
I wish I could eat the salt off of your lost faded lips
We can cap the old times, make playing only logical harm
We can cap the old lines, make playing that nothing else will change
But she can read, she can read, she can read, she can read, she's bad
She can read, she can read, she can read, she's bad
Oh, she's bad
But It's different now that I'm poor and aging. I'll never see this face again
You go stabbing yourself in the neck
We can find new ways of living make playing only logical harm
And we can top the old times, claim-making that nothing else will change
But she can read, she can read, she can read, she can read, she's bad
She can read, she can read, she can read, she's bad
Oh, she's bad
It's different now that I'm poor and aging, I'll never see this place again
You go stabbing yourself in the neck
But it's different now that I'm poor and aging, I'll never see this place again
And you go stabbing yourself in the neck
It's in the way that she poses, it's in the things that she puts in my head
Her stories are boring and stuff, she's always calling my bluff
She puts, she puts the weights into my little heart
And she gets in my room and she takes it apart
She puts the weights into my little heart
I said she puts the weights into my little heart
She puts weight
She puts weight
She puts weight
She puts weight
She puts weight
She puts weight
She puts weight
It's in the way that she walks
Her heaven is never enough
She puts the weights in my heart
She puts, oh she puts the weights into my little heart
A fantastic rock song!
Correct micolog problems in WLW October 29th, 2009
As you who had used windows live write to write blogs to micolog may confused that you got a error method "mt.getPostCategories" is not supported when archiving a post from blog.So that it would be a little uncomfortable to repost your articles.But here is the solution:
Alter api_rpc.py:
Firstly,Find the def wp_getPageList(blogid) and add a method under it:
def mt_getPostCategories(blogid,username,password):
post=Entry.get_by_id(int(blogid))
categories=post.categorie_keys
cates=[]
for cate in categories:
cates.append({ 'categoryId' : cate.id_or_name(),
'parentId':0,
'description':cate.name(),
'categoryName':cate.name(),
'htmlUrl':'',
'rssUrl':''
})
return cates
Then find 'mt.setPostCategories':mt_setPostCategories
add a new line 'mt.getPostCategories':mt_getPostCategories .Don’t forget a comma at the end of the pre_line.When you’ve done it would perform like this:
'mt.setPostCategories':mt_setPostCategories,
'mt.getPostCategories':mt_getPostCategories
The deep red line of all of the above are what you would apply to.
Simply cause the micolog developer almost prepared everything in the XmlRPC API except the getPostCategories method which is indispensable.