• Got a Tipila, google, windows live or facebook account ?

Welcome to tipila...

A place to organize & share your programming knowledge...

Tipila is a site for programmers to organize code snippets & how-to's found on the web as Tips. So you can find them easily when needed again.

A Tip is an exact, to the point, instruction of how to do a programming task. No-more no-less.

No more scrolling through long posts and you won't forget how a problem was solved when you need to do it again...

It's totally free.

Newest tips
2
votes
Defining the function var $var = (function(){return 1 + 2;})(); Accessing the variable window.alert($var); // 3
1
votes
If this is happening check if there's a duplicate MIME map for the given files. Select the site in IIS 7 manager and click mime types. If there's an error, it'll give a message or else add the mime type if missing.
1
votes
Here are the settings for google apps gmail : host: smtp.gmail.com port: 587 // if not working try ports: 465 or 25 username: your gmail username (@gmail.com or @yourdomain.com) password: yor password and you should use ssl if c# => smtpClient.EnableSsl = true http://support.google.com/mail/bin/answer.py?hl=en&answer=7 ...
1
votes
This is how to get the full class name of the current class public string className { get { return GetType().FullName; } }
1
votes
Do the following to clear the page file in windows 7. Open regedit.exe -> goto HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management and change the value of ClearPageFileAtShutdown to 1 then restart. More info http://support.microsoft.com/kb/314834
1
votes
If you want to configure a site other than the "Default Web Site" to work with the localhost address, add a binding to that site with http, port 80 and without a host name.
1
votes
This happened to tipila on EC2 because the url redirect module was not installed. Install it from http://www.iis.net/download/URLRewrite
1
votes
ASP.NET forms authentication ticket becomes invalid if the application pool recycles. The reason is the machine key is used in the encryption and in the default configuration, a new key is generated when the app pool is restarted. So we need to specify a static machine key. This is how to do it. Add the following to sy ...
1
votes
This is how to check a column exists in tsql if Exists(select * from sys.columns where Name = N'columnName' and Object_ID = Object_ID(N'tableName')) begin -- your code end
0
votes
If you're getting the no symbols loaded error when trying to debug a web service called via a client app, do the following. Right click solution -> properties -> common propterties -> start up projects. Then select multiple startup projects and set your client and service to start. Then the issue will be solved

Looking for more tips ? browse all tips here...

Login to Tipila