C# Date String Formatting
http://gates.comm.virginia.edu/sg6m/documents/Date%20and%20Time%20Format%20Strings.htm
Debugging a running program in GDB
Get process id with
> ps g
And then,
> gdb -p PID
don't forget to compile with -g!
Some GDB tips:
http://linux.byexamples.com/archives/147/some-tips-of-gdb/
http://www-128.ibm.com/developerworks/linux/library/l-debug/
http://www-128.ibm.com/developerworks/library/l-gdb/
http://www.cs.cmu.edu/~fp/courses/15213-s06/misc/gdb-commands.txt
> ps g
And then,
> gdb -p PID
don't forget to compile with -g!
Some GDB tips:
http://linux.byexamples.com/archives/147/some-tips-of-gdb/
http://www-128.ibm.com/developerworks/linux/library/l-debug/
http://www-128.ibm.com/developerworks/library/l-gdb/
http://www.cs.cmu.edu/~fp/courses/15213-s06/misc/gdb-commands.txt
ASP.NET parameters in web.config
//web.config
appSettings
add key="adminEmailAddress" value="blabla@gmail.com">
< / appSettings >
//In code
String adminMail = ConfigurationManager.AppSettings["adminEmailAddress"];
appSettings
add key="adminEmailAddress" value="blabla@gmail.com">
< / appSettings >
//In code
String adminMail = ConfigurationManager.AppSettings["adminEmailAddress"];
JavaScript trim()
String.prototype.trim = function () {
return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1");
};
//written by Douglas Crockford
JavaScript delete confirmation
function confirmDelete(msg,loc)
{
if( confirm(msg) )
{
location.href = loc;
}
}
or
function confirmDelete(message)
{
return confirm(message);
}
{
if( confirm(msg) )
{
location.href = loc;
}
}
or
function confirmDelete(message)
{
return confirm(message);
}
Html Turkish Character Encoding
META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9"
META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-9"
META HTTP-EQUIV="content-language" CONTENT="TR"
META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-9"
META HTTP-EQUIV="content-language" CONTENT="TR"
Subscribe to:
Posts (Atom)