Tutorials
Jul 8th, 2010 |
By Tamara Urry |
Category: Java Script, Tutorials
The woes of invalid characters in URL parameter strings There is a very good possibility that you will run across this challenge if you support any type of user interface that allows users to upload documents that they have named. It doesn’t occur to most developers to check for invalid URL characters in a file [...]
Tags: file not found URL, invalid characters in href, invalid URL String Posted in Java Script, Tutorials |
Comments Off
Jul 8th, 2010 |
By Tamara Urry |
Category: C# String Object, Tutorials
The source code for this demonstration is located in the zip file “WorkingWithStrings” Trim Spaces There are actually 3 methods associated with the string object available to trim leading and trailing space: TrimStart() | TrimEnd() | Trim() The results are self explanatory and the syntax is very simple. //declare variables to work with string strFirst [...]
Tags: c sharp, c# trim, leading spaces, string trim, trailing spaces, trim, trim spaces Posted in C# String Object, Tutorials |
Comments Off
Jul 5th, 2010 |
By Tamara Urry |
Category: Tutorials, Wordpress
Why can’t I get wp_home() and wp_front_page() to work in WordPress? A lot of coders pull their hair out over these two wordpress functions. The answer is that these two functions will only query one time per page build. If it’s been used elsewhere to determine the current page, it has to be reset with [...]
Tags: is_front_page(), is_front_page() not working, is_home(), is_home() not working, wp_reset_query() Posted in Tutorials, Wordpress |
Comments Off
Jun 11th, 2010 |
By Tamara Urry |
Category: Tutorials, Wordpress
When changing or pointing a new URL to a worpress site. I can cause a problem if the URLs on the general settings page are not set correctly. In fact, you won’t be able to access the site. Don’t panic, it can be fixed.
Tags: can't access admin panel, change url, url is wrong, Wordpress, wordpress domain name, wordpress website is broken Posted in Tutorials, Wordpress |
Comments Off
Jun 5th, 2010 |
By Tamara Urry |
Category: C Sharp, C# String Object, Tutorials
The source code for this demonstration is located in the zip file “WorkingWithStrings” Length is a property of the string object string.Length is useful in determining valid data. However, don’t get in to the habbit of using this property for everything. Remember that getting in a rut as a programmer by using only a few [...]
Tags: c# length property, left trim, length, right trim, string length, trim, trim spaces Posted in C Sharp, C# String Object, Tutorials |
Comments Off
May 26th, 2010 |
By Tamara Urry |
Category: C Sharp, C# String Object, Tutorials
String Compare is a method that will compare 2 strings and returns an integer. ( 0 = alike and 1 = different).
Tags: c# compare, c# string compare, compare method, compare(), string methods Posted in C Sharp, C# String Object, Tutorials |
Comments Off
May 26th, 2010 |
By Tamara Urry |
Category: C Sharp, C# String Object, Tutorials
String concatenation is one of the commonly used operations among programmers.
If you don’t handle the string concatenation in .NET properly, you may decrease performance
so it’s important to keep in mind what you are trying to accomplish.
Tags: c# concatenation, concatenation, string methods, string object strings, strings Posted in C Sharp, C# String Object, Tutorials |
1 Comment »
May 26th, 2010 |
By Tamara Urry |
Category: C Sharp, C# String Object, Tutorials
Download the source code Definition: Returns a value (true/false) indicating whether the specified String object occurs within another specifice String object. Contains Method Syntax: // This example demonstrates the String.Contains() method using System; string str1 = ‘All good men come to the aid of their country’; string str2 = ‘country’; bool bResult = false; bResult [...]
Tags: contains(), string contains(), string methods, toLower(), toUpper() Posted in C Sharp, C# String Object, Tutorials |
Comments Off
May 18th, 2010 |
By Karson |
Category: Networking, Tutorials
This goes out to all network administrator/systems administrators that are always running the same command and have to open the CMD interface, type the command and press enter. This next post will greatly help alleviate and speed up this task. 1. Right click on an empty space on the desktop to open the context menu [...]
Tags: command line shortcuts, desktop shortcut Posted in Networking, Tutorials |
Comments Off
May 13th, 2010 |
By Tamara Urry |
Category: C# String Object, Tutorials
String Compare is a method that will compare 2 strings and returns an integer. ( 0 = alike and 1 = different). The syntax: set a variable to collect the results: int intCompareResults; //set the value of intCompareResults intCompareResults = String.Compare(‘hello’,’Hello’); intCompareResults will = 1 because hello and Hello are not seen as the same [...]
Tags: c# string compare, compare(), string methods Posted in C# String Object, Tutorials |
Comments Off