TextInfo: ToTitleCase, ToLower, ToUpper

ToTitleCase(), ToLower(), ToUpper() results

I was poking around the .NET framework yesterday and came across these three methods in the TextInfo class:

string text = "this is a test string";

System.Globalization.TextInfo info = new System.Globalization.CultureInfo("en-US", false).TextInfo;

// First letter of every word is capitalized.
System.Console.WriteLine(info.ToTitleCase(text));

// Lowercase all letters
// System.Console.WriteLine(info.ToLower(text));

// Uppercase all letters
// System.Console.WriteLine(info.ToUpper(text));

info = new System.Globalization.CultureInfo("de-DE", false).TextInfo;

System.Console.ReadLine();

Nice. :-)

Natheless ExpressionEngine Theme

Download Natheless here

Released under Creative Commons as usual.

Enjoy!

TFS: Set Working Folder

A quick tip on TFS: how to set the working folder (in which all files and folders are dropped when you do a "get latest").

For some mysterious reason, this option isn't available via the context menu but anyway: the workspaces dialog box (File » Source Control » Workspaces) lets you add or modify working folders.

Joy.

Review: Scrivener from Literature and Latte

Scrivener is a project management tool for writers. It won't try to tell you how to write - it just makes all the tools you have scattered around your desk available in one application.

I’ve been using Scrivener since beta versions and I love it! It’s a fantastic application tailored for writers everywhere and it’s well worth the $35. It’s loaded with a lot of great features, so let’s get started:

Continue reading "Review: Scrivener from Literature and Latte"

Select a query result into a variable

Today marks the end of my not-so brief sabbatical from my blog; thanks to everyone who stuck along. I can promise some free templates not to mention some nice EE themes within the coming weeks.

Anyway, yesterday I was working on a stored procedure that required me to select a field from the table into a variable. I figured it had something to do with the SET keyword, but it took me a while to figure out the exact syntax:

DECLARE @VariableName INT

SET @VariableName = (SELECT COUNT(*) FROM Customers WHERE State = 'MN')

More on easy weblog titles and a bit about images in EE

  1. A super-easy way to get the weblog's (section's) title in EE.

2. Make EE automatically fill in the image's width and height when you upload it to your server via the control panel.

Continue reading "More on easy weblog titles and a bit about images in EE"

More on Easy Expression Engine Titles

You might have read Veerle's article on implementing Expression Engine titles.

I don't use this method, preferring to have the title (and the navigation) be part the header template in a common template group; i.e., the embed method, where you pass the title from the parent template to the child (embedded) template.

The question is: using the embed method, how do you add post titles and category archive headings to the title?

Continue reading "More on Easy Expression Engine Titles"

Free Template: Natheless

I was doing more changes to Blockwriter when I realized that it's been a while since I created a free template. The result is Natheless.

It's actually something I created all the way back in 2006 (hehe) but never got around to uploading to the site. I polished it up a little bit yesterday -- slight gradients for the header and the menus -- and well, here it is.

So go check Natheless out and drop me a comment if you like it. :-)

3 of 17 pages « First  <  1 2 3 4 5 >  Last »

On the Side