• Got a Tipila, google, windows live or facebook account ?
All Tips
1
votes
When visiting a url like http://localhost:4050/api/tips/c%23/meta wcf webhttp service returns http 405 method not allowed. This happens only in casini and it works perfectly in IIS 7
0
votes
Copy the flash.swc from Flash libs and paste it in your project. Which will give you access to MatrixTransformer MatrixTransformer.rotateAroundInternalPoint(matrix,x,y,degrees); MatrixTransformer.rotateAroundExternalPoint(matrix,x,y,degrees);
0
votes
Use the Paste from Visual Studio(vspaste) plugin. It's the best. Download from http://plugins.live.com/writer/detail/paste-from-visual-studio Check out my blog http://amilagm.com/ to see samples of codes pasted from that plugin. Even the productivity tools extension's copy as html is not good as this one.
0
votes
Flash converts all higher res to 72 DPI. if you want to increase to 150 for print of an object multiply the width an height of the object by 150/72. This will make sure your print object is at 150 DPI. In short MULTIPLICATION_RATIO = REQUIRED_DPI/72
1
votes
Use following methods to read a text file in c# 1. using (StreamReader sr = File.OpenText(FILE_NAME)) { String input; while ((input = sr.ReadLine()) != null) { Console.WriteLine(input); } Console.WriteLine ("The end of the stream has been reached."); } 2 string text = System.IO.File.ReadAllText(@"C:\Users\Public\TestFo ...
1
votes
Use the following code to get the current time zone in the GMT + XX:XX format zone gives the time zone string zone = string.Empty; if (TimeZoneInfo.Local.BaseUtcOffset.TotalMinutes == 0) zone = " GMT"; else if (TimeZoneInfo.Local.BaseUtcOffset.TotalMinutes > 0) zone = " GMT + " + Math.Abs(TimeZoneInfo.Local.BaseUtcOffs ...
1
votes
Add 2 spaces to the beginning of each line to trick outlook not to remove line breaks in plain text emails. More info here
0
votes
with counts as ( select tag.Id, count(tip_tag.TipId) as cn from tag left outer join tip_tag on tag.Id = tip_tag.tagId group by tag.id ) update tag set tipcount = (select cn from counts where counts.Id = tag.Id)
1
votes
Not suited for all situations, but this is the most efficient, super fast flip flop mechanism. array = [yellow, red] // alternative colors len = 2 // length of array loop from 1 to n print array[i%len] // alternate through the colors end loop
0
votes
See if there's a space between the required and custom[email] options. class="validate[required, custom[email]] -- Email will not work class="validate[required,custom[email]] -- Required and email both work
0
votes
This is the character encoding for html 4. <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> More info http://www.w3.org/International/questions/qa-html-encoding-declarations#quicklookup
0
votes
If you've to put the & sign inside a url in an html page you should encode it as &amp; Ex: tipila.com/tips?qyery=test&count=10 is invalid if shown within a page and it should be as tipila.com/tips?qyery=test&amp;count=10 Reason for this is that the & sign is the starting character for special chars in html. More info h ...
0
votes
HTML strict 4.01 requires the empty elements to not to have self closing tags like <tag /> But sometimes asp.net automatically addds the self closing tag if the tag is just specified as <tag> . If this happens check if the parent element (ex. head) has runat="server" and remove it.
0
votes
This is how to re-build a fulltext catalog , [FTCat_Tip] is the name of the catalog ALTER FULLTEXT CATALOG [FTCat_Tip] REBUILD WITH ACCENT_SENSITIVITY = ON
0
votes
If you throw an HttpException with the error code 401 from a controller action, an http 500 error is sent to the user instead of the 401 originally thrown. This is an issue with the mvc it self and the only way to work around is setting the http status code rather than throwing the exceprion. if (!HttpContext.User.Iden ...
0
votes
If you ever noticed that returnUrl variable has a url encoded and non-encoded versions of the same url, it's actually how it works and nothing is wrong with that. For more info http://blogs.msdn.com/b/vijaysk/archive/2008/01/24/anatomy-of-forms-authentication-return-url.aspx
1
votes
This snippet is useful to customize your PHP installation in a shared hosting package. I used this in a hosting package in ANHosting.com upload_max_filesize = 512M; // (default 8 - Max, 32) post_max_size = 512M; // (Average, 20 - Max, 32) register_globals = Off; // (off by default - you can turn On) allow_url_fopen = O ...
0
votes
This is how to check if an app pool is running as 32bit or 64bit in IIS 7. Goto IIS manager -> Application pools -> Select the apppool you want and -> Advanced Settings. In there there's a setting called enable 32bit apps. If that's true, that means the worker process is forced to run in 32bit. If the setting is false, ...
0
votes
You need the corflags.exe. It's installed with .net sdk and windows sdk so you need either the .net sdk or windows sdk installed. Here's how to use it. Open a command prompt and type corflags.exe yourassembly.dll Here's how to interpret the corflags output For AnyCPU assemblies : PE = PE32, 32BIT = 0, and ILONLY = 1 Fo ...
0
votes
Add the [RequireHttps] attribute to the controller or to the controller action.
Login to Tipila