phayman

Stories submitted by phayman

Email Regex Pattern(geekzilla.co.uk)

submitted by phaymanphayman(3550) 2 years, 6 months ago

An email regex pattern read more...

add a comment |category: |Views: 12

tags: another

Top 12 SEO Tips(seoers.org)

submitted by phaymanphayman(3550) 3 years, 2 months ago

Twelve on-page optimization tips which if you will follow you will never regret read more...

add a comment |category: |Views: 16

tags: another

Conditional IE CSS Hack(geekzilla.co.uk)

submitted by phaymanphayman(3550) 3 years, 3 months ago

Great little CSS hack for IE browsers, especially when IE6 browsers are causing problems. read more...

add a comment |category: |Views: 33

tags: another

Displaying XML just like Internet Explorer(geekzilla.co.uk)

submitted by phaymanphayman(3550) 3 years, 6 months ago

This is everything you need to display XML in your webpage the same way IE displays it when you open an XML document in IE. read more...

add a comment |category: |Views: 24

tags: another

Simple Regex for cleaning illegal characters from a string.(geekzilla.co.uk)

submitted by phaymanphayman(3550) 3 years, 11 months ago

I use this regex loads when writing dynamic urls. read more...

add a comment |category: |Views: 147

tags: another

The easiest string to/from byte array I've found(programmerramblings.blogspot.com)

submitted by phaymanphayman(3550) 4 years, 1 month ago

When looking for a utility function to convert from a hex string to a byte array, I found this example .. works a treat! read more...

1 comment |category: |Views: 9

tags: another

Browser version detection in Javascript(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 1 month ago

Here is a list of tests you can use to figure out which browser your client is running read more...

add a comment |category: |Views: 4

tags: another

Geting the position of the mouse pointer in JavaScript (Works in IE7) (geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 1 month ago

The following function will return the position of the mouse pointer based on the event. It actually works in IE7. read more...

add a comment |category: |Views: 33

tags: another

Returning a Distinct list of values from an array or IEnumerable(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 3 months ago

I recently had a list of Guids in a string which was returned from a group of checkboxes with identical names. I wanted to itterate through Guids and process each one only once. Basicaly, ignoring duplicates. read more...

add a comment |category: |Views: 30

tags: another

Returning the first few items from an Array list, like TSQL Top()(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 3 months ago

I needed to bind the first 5 items in a List<T> to a repeater. Having recently discovered the .Distinct() extension, I had a look through the other methods attached to my List<T> and found .Take(int) read more...

add a comment |category: |Views: 4

tags: another

Getting to Know Silverlight(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 5 months ago

One of the most talked-about aspects of Silverlight is its undeniable technical accomplishments. In an age of 50 megabyte downloads, Microsoft managed to squeeze large parts of WPF and a mini-CLR into a tiny browser plug-in, currently under 5MB. Not only that, but it runs in the three major browsers (Firefox, Safari and IE) and more amazingly on the three major operating systems, with Microsoft supporting Windows and Mac OS X and Novell’s Mono project providing a Linux runtime. read more...

add a comment |category: |Views: 2

tags: another

Force HTTPS on all requests, HttpModule(blog.donnfelker.com)

submitted by phaymanphayman(3550) 4 years, 5 months ago

Sometimes we have websites that are strictly HTTPS. No files whatsoever are served up through HTTP. We want our users to only access the HTTPS portion of our website but we dont want them to remember "https://" blah blah blah. Honestly, who really wants to type all of that anyway? No one. read more...

add a comment |category: |Views: 98

tags: another

Specifying an originator IP Address on a WebService Request using Serv(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 5 months ago

If you're running multiple IP Addresses on the same NIC in Windows 2003 server and you need a webservice call to originate from a certain one, you'll probably have found the same thing I did. .net uses the default machine IP address. read more...

2 comments |category: |Views: 2

tags: another

Regex match html content without screwing up the tags (geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 6 months ago

When needing to highlight words in a string containing HTML we found we soon ran into problems when the word we were searching for appeared in the middle of a tag.. read more...

add a comment |category: |Views: 102

tags: another

Backup ALL your SQL Server 2005 databases using a script (geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 6 months ago

I wanted to backup all my databases... I had loads, creating a step for each db was getting tedious, so I wrote this script. read more...

add a comment |category: |Views: 65

tags: another

Getting the ProviderUserKey for the Current User (geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 6 months ago

The following gets the ProviderUserKey for the current user. read more...

add a comment |category: |Views: 14

tags: another