Quantcast
Channel: Ruben Canton
Browsing all 94 articles
Browse latest View live

System networking tricks

Quick accesses Open Commands Window: Execute: cmd Open IIS: Execute: inetmgr Change PC hosts Open this with notepad: c:\windows\system32\drivers\etc\hosts Now, you can set an ip and its host setting...

View Article



Image may be NSFW.
Clik here to view.

Be care with default values on Foreign Keys!

Today I was creating a constraint in my DB using this statement: ALTER TABLE dbo.[Cars] ADD CONSTRAINT FK_Cars_Users FOREIGN KEY (UserId) REFERENCES dbo.[Users](ID) ON UPDATE NO ACTION ON DELETE NO...

View Article

Improving your website’s performance

Using Cache One of the best ways to improve your website’s performance is by using cache. That way you can save lots of db requests and server processing time. Using Cache for static data Let’s start...

View Article

Removing constraints programatically in SQL Server

Default Constraint declare @key nvarchar(200); select @key = c.name from sys.all_columns a inner join sys.tables b on a.object_id = b.object_id inner join sys.default_constraints c on...

View Article

SQL Server Quick statements

Change Table name EXEC sp_rename 'OriginalName', 'NewName' Change Column name sys.sp_rename 'TableName.ColumnName', 'NewColumnName' Add Foreign Key ALTER TABLE dbo.[TableName] ADD CONSTRAINT...

View Article


Requesting to C# MVC.Net using jQuery.Ajax

Basic Call Let’s just make a call to the server to get a single value: We’ll call this JS function, for example, using a button like <input type=”button” onclick=”SingleCall();”/>: function...

View Article

Installing a local script with Greasemonkey

Though greasemonkey is thought to share your scripts with the community, you may prefer to have some script for personal websites, local applications or just very personal customization of a page. Most...

View Article

Image may be NSFW.
Clik here to view.

Reviewing Impress.js book

I was given the opportunity a few days ago of reviewing an impress.js’s book wrote by Rakhitha Nimesh. As I said a year ago, impress.js is a javascript library that allows you to create impressive...

View Article


Introduction to MVC for Web Forms developers

Oh yes, there are lots of guides, tutorials and videotutorials out there explaining you (or trying to) what MVC is or how it works, but when you have been for many years developing with Visual Studio...

View Article


Continuous Integration Summary

Every time that somebody commits any change, the entire application is built and a comprehensive set of automated tests is run against it. If build or tests fail, the development team stops and fixes...

View Article

CSS Tips

Some guidelines I find useful when writing CSS styles: Use an identifier, not the tag name Except for setting those general styles at the body, headers, anchors etc. you should never go for this:...

View Article

Help your designers to be more creative!

There’s many times when your designers come to you with some crazy ideas that aren’t good at all for websites as it would crash the layout too much or stop working on some browser/device due to...

View Article

Styling a checkbox using CSS3

Got this idea from tutsplus but found a problem with iPad so just wanted to save it on my blog: Taking advantage of the “:checked” selector at CSS3 we can now style a checkbox using this:...

View Article


Image may be NSFW.
Clik here to view.

Changing Outlook 2013 default theme and View settings to make it look a bit...

I never really liked Outlook being honest, but the new one is much worst than the old, in terms of design I’ve always reminded myself one of the foundations of design: its purpose is to help the user...

View Article

Selenium tricks

Waiting until the page loads WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10)); wait.Until(driver1 => ((IJavaScriptExecutor)driver).ExecuteScript("return...

View Article


Search tool for SSMS 2008 Express

Redgate has developed a very useful tool to search for code between all your storeds, functions and tables etc. inside your SQL Server databases:...

View Article

Composing a request with Fiddler4

We can build up our own requests using Fiddler Composer, to use it just click on the tab “Composer” which is close to “Statistics” or “Inspectors”. Now on the given panel you can write a header and a...

View Article


Refactoring: Removing dependencies

I came to a code where the method was internally making a call to HttpContext which was hard to unit test, so had to remove such dependency. To do that I could have added the dependencies on the...

View Article

Rhino Mocks expectations

One of the most powerful tools you can use with Rhino Mocks is its “Expect” tool. So that instead of setting what should be returned when calling a method/property on a stub/mock object, you can set...

View Article

JavaScript: Primitive and Reference values

The primitive values are those which value is stored directly on the variable, which are undefined, null, boolean, number and string. Reference values are those stored in memory and accessed through a...

View Article
Browsing all 94 articles
Browse latest View live




Latest Images