Archives
-
LinkedIn OAuth Library Update
Version 0.3 of Linked OAuth Library is available via Nuget.
-
RazorJS - Source code available!
As of today you can find RazorJS’s source code available on BitBucket. Feel free to download the code and change it to fit your needs. [read more…]
-
PetaPoco and Spatial Data Types
PetaPoco is a micro-ORM for .NET and Mono. If you haven’t see it yet I suggest you to check it out. Alternatives to PetaPoco are Massive and Dapper. (If you know more projects let me know).
-
RazorJS - Write Razor inside your Javascript files
Many times I have a Javascript file that contains a link and in order to be more generic I would prefer writing something like ~/image.png rather than /image.png or /myapp/image.png.
-
Why I Still L.O.V.E. ASP.NET WebForms
We will use the MVP pattern and the open-source project WebFormsMVP to accomplish that! [read more…]
-
Where is the bug? - C#
Below are a few lines of code written in C#. Is the code bug-free? What will this print in the console? Can you do it without VS? [read more...]
-
ASP.NET MVC - Passing a Flag Enum to an Action as Parameter
A flag Enum is an Enumeration that can hold multiple values per instance An example of such Enum is: [read more…]
-
ASP.NET MVC 3 - A RadioButtonList for Enum Properties
ASP.NET MVC3 doesn’t have a built-in RadioButtonList helper and there are times that I want to display an Enum property. I can always do that using a [read more…]
-
Detect if Firebug is enabled and deny access
Firebug is an essential tool for every web developer. It allows to do many things such as script debugging, DOM manipulation etc. What happens though when it get’s to the hand of an experienced attacker? Then it could [read more…]
-
Hope Driven Development - Are you doing it?
HDD (and it don’t mean Hard Disk Drive ☺) is intuitively a bad approach on Software Development. If someone tells you that many times is doing Hope Driven Development, only by name you might say “Oh that’s [read more…]
-
JavaScript is disabled - Should I Care?
Many times a Web Developer faces the question “This won’t work if JavaScript is disabled. Should I change it?” If it’s something simple like a read more…
-
ASP.NET MVC SubmitLink with jQuery - Using an a tag as a submit button
The easiest way to submit a form is to use the input tag with the submit type [read more…]
-
Visual Studio - A Common Replace Scenario
Visual Studio has a build in Replace function that uses Regular Expressions. Let’s consider the following scenario:
-
Creating classes in Javascript - Prototype method
Javascript is weeeell a script-based language. But over the years it has evolved a lot! So can we develop in an Object Oriented Way using javascript? [read more…]
-
A simple SQL quiz
Today at work a colleague came up with a really interesting question. Let’s consider this [read more…]
-
[Design Patterns] Null Object Pattern
Design patterns are a chapter that I believe every developer should be familiar with. Design patterns are not to be used in every line of code but you should know as many as you can in order to know when to use them – when they will simplify your code [read more…].
-
WebMatrix - Facebook Connect Sample [Facebook Helper]
Although using Facebook connect is really easy via Facebook Helper inside WebMatrix I thought why not making it even simpler by providing a ready to run sample! [read more…]
-
Creating a WebDeploy configuration file
WebMatrix (and Visual Studio) have a publish method called WebDeploy. Using WebDeploy you can upload all for files along with your database. Either it’s MySQL or SQL Server.