Found a couple of useful articles for setting up a test database using Sql Express
http://pebblesteps.com/post/Testing-Tools-Temporary-Sql-Express-Database.aspx
Found a couple of useful articles for setting up a test database using Sql Express
http://pebblesteps.com/post/Testing-Tools-Temporary-Sql-Express-Database.aspx
You know those files that you download that have MD5 Hashes next to the download so that you can verify that you’ve got the correct, untampered-with version of the software that you are downloading…
I created a simple .NET tool to check the hash and the code is located here.
To ensure that a local version of apache will only take local connections, and therefore deny any requests from external computers, you can edit the /etc/apache/httpd.conf file and change the line that says:
Listen 80
to…
Listen 127.0.0.1:80
Then restart apache: sudo /etc/init.d/apache2 restart
On my system (at least it was a while ago) I could put custom fonts here: Put the font in the /home//.fonts
Run this at command line to get the system to update it’s cache (or something :S)
sudo fc-cache -fv
Just reinstalled wordpress after a computer malfunction a few days ago, and setup rewriting to allow pretty permalinks.
Note that these instructions are for Ubuntu (On 9.10)
Steps were
The content of my .htaccess file for the “Day and name” option was as follows:
Found this at PerisablePress.com.
/*
Clearfix hack
*/
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
* html .clearfix { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
Justin Grant’s solution to this was really appreciated.
I’ve just been having a bit of an issue with User Controls though. and found out that the Inherits attribute on page and control are not needed. When I inherited from the class on a page I was fine, but Inheriting from the User Control class gave me errors.
So the following will work and give you code completion…
For Pages:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" %>
For Controls:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Example.ascx.cs" %>
Just a simple example of how to get the RequestContext when you are not in the context of a controller or a view.
public static RequestContext GetRequestContext()
{
HttpContextBase context = new HttpContextWrapper(HttpContext.Current);
return new RequestContext(context, RouteTable.Routes.GetRouteData(context));
}
References:
http://stackoverflow.com/questions/1082748/generating-urls-form-mvc-routes-in-a-management-layer
Some information and example of using spatial data
http://www.simple-talk.com/sql/learn-sql-server/sql-server-2008-the-new-data-types/
http://www.jasonfollas.com/blog/archive/2008/03/14/sql-server-2008-spatial-data-part-1.aspx
Less CSS Website – Ruby
.Less Port of Ruby version
T4 Template for Less CSS
http://haacked.com/archive/2009/12/02/t4-template-for-less-css.aspx