• Got a Tipila, google, windows live or facebook account ?
All Tips
3
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
This error happened in Tipila API's json methods. Reason was that the user.JoinedDate wasn't set and it was the .net default date : 001:01.... and serializing it to json was screwed. However xml ser. worked fine.
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
1
votes
When there is a + sign in the path section url, the IIS 7 sends an HTTP 404 error. ex: tipila.com/tips/a+b Add the following to resolve the issue, to root web.config <system.webServer> <security> <requestFiltering allowDoubleEscaping="true" /> </security> </system.webserver> Note however replacing space with a + sign i ...
0
votes
Press Ctrl+Alt+End if you want to press Ctrl+Alt+Del in a RDP window.
1
votes
This is how to update a column of a table to be the group-by-count of rows, in another table. User table has a field called postcount which represents the number of posts that a user has made. And the Tip table has all the posts. So we are going to get the number of posts that a user has made from the Tip table and set ...
1
votes
If you're getting the Origin xxx is not allowed by Access-Control-Allow-Origin. error in chrome, although you've set the Access-Control-Allow-Origin http header, do the following to disable web security. In run type the following to start chrome without web security chrome.exe --disable-web-security Now chrome should h ...
1
votes
You need to set the Access-Control-Allow-Origin http header to allow cross domain calls. Add the following to your sites root web.config <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="content-type" /> </customHeaders ...
1
votes
IF you use facebook to log in to a webpage, the return url has # appended to it. This is a bug with the facebook and add the following javascript inside the head tag of the web page remove it. <script type="text/javascript"> if (window.location.hash == '#_=_') window.location.hash = '';</script>
1
votes
Ex. If 540 degrees need to be clamped between -360 to 360 => ClampAngle(540, 360) Similarly if you want to clamp -75 between -180 to 180 => ClampAngle(-75,180) fn ClampAngle(angle, betweenAngle){ return angle%betweenAngle; }
7
votes
If you want to use a http proxy like charles or fiddler on localhost addresses, add a . to localhost like this, http://localhost.:4050/api/
2
votes
The mxmlc cannot work with the 64bit JRE. So you need to install the 32bit jre and set the path in the flex_home/jvm.config as below. java.home=C:/Progra~2/Java/jre7 Note that the slashes in the path are forward slashes (/)!!! not back, and progra~2 means program files x86
Login to Tipila