leniel

Stories kicked by leniel

User Password Expired filter attribute with ASP.NET MVC(www.leniel.net)

submitted by lenielleniel(504) 3 days, 3 hours ago

A recent set of requirements I’ve been playing with deals with passwords. This one specifically handles password expiration. Given that I’m working with ASP.NET MVC I know I can rest assured that there’s some great (read awesome) way of implementing a given requirement. This is exactly what happened and I want to show you how to have a clean and beautiful solution to this problem. Read on... read more...

add a comment |category: |Views: 5

tags: another

Resize image on the fly with ASP.NET MVC(www.leniel.net)

submitted by lenielleniel(504) 1 month ago

I built a piece of code sometime ago to display image thumbnails in a listing page. I thought it's about time to optimize it. I refactored it and started using the WebImage class that comes in System.Web.Helpers namespace. With this class in place you can resize, crop, rotate, etc any image. There's no need to save the thumbnail in the disk, that is, a new image can be generated on the fly/dynamically and sent to the user’s browser. read more...

add a comment |category: |Views: 15

tags: another

ResourceManager with an External Assembly DLL(www.leniel.net)

submitted by lenielleniel(504) 5 months, 25 days ago

As a software developer I like to work with everything that is related to software Localization known as L10n. Besides being a developer working defining the architecture that will be adopted in a given project and doing the hard “FUN” work writing the code, I’m also a translator. One thing I've been trying to do recently is to be able to use localized strings that are present in an external assembly [ DLL ] using the ResourceManager object. Read on... read more...

add a comment |category: |Views: 1

tags: another

SQL UPDATE statement with SELECT and SQL Server Image data type column(www.dzone.com)

submitted by lenielleniel(504) 9 months, 19 days ago

In a SQL Server database I have a table called users which has a column named signature. This columns is of type Image. My production SQL Server is located in a shared hosting environment. One problem I’ve been facing lately is that I need permission to execute an UPDATE statement to insert a signature image for a given user. This problem occurs because to insert a signature image for a given user I have to execute a BULK statement. Read on... read more...

add a comment |category: |Views: 4

tags: another

SVN, Hudson and MSBuild - Revision control repository(www.leniel.net)

submitted by lenielleniel(504) 9 months, 26 days ago

This series of posts I’m starting today serves as a guide on how to setup a continuous integration/CI server. All the the tools I’m going to use are FREE. The series will focus on continuous integration of .NET family of projects and I’ll write things in the order I installed them. This 1st part will deal with the Revision Control repository configuration. read more...

add a comment |category: |Views: 5

tags: another

Import/Export SQL Server database table data with SSMS(www.leniel.net)

submitted by lenielleniel(504) 10 months, 2 days ago

This post is a visual guide about one of the most powerful features of Microsoft SQL Server Management Studio (SSMS) 2008: Import/Export database data. These tasks are useful for example when you need to debug an application with real world/production data to find possible bugs in your code. You can import the production database data to your local development database and find what’s causing problems. These tasks can be used to create a protection layer because you won’t be working “directly” with production data. read more...

add a comment |category: |Views: 2

tags: another

Replacing Web.config settings with Transformations(www.leniel.net)

submitted by lenielleniel(504) 11 months, 11 days ago

Let’s say you want to point to a different connection string when you deploy your ASP.NET Web Project to your hosting provider. Until recently you’d have to modify your Web.config file manually. This is an easy procedure but you might end screwing up the file in some way. Visual Studio 2010 comes with a great new feature called Web.config Transformation that allows you to perform transformations in whatever section of your Web.config file. read more...

add a comment |category: |Views: 9

tags: another

Using jQuery to disable/enable and check/uncheck Radio Buttons on Date(www.leniel.net)

submitted by lenielleniel(504) 1 year, 5 months ago

Motivated by a question posted at StackOverflow - Disable radio button depending on date, I decided to help and here I’m with another code snippet post. This time I show you how to use jQuery UI and its Datepicker control to control a set of radio buttons (only 2 in this post to make things easier) that have their state (enabled/disabled) changed depending on the date selected by the user in the datepicker control. read more...

add a comment |category: |Views: 28

tags: another

Raven DB ASP.NET Membership Provider(blogs.taiga.nl)

submitted by martijnbmartijnb(75) 1 year, 6 months ago

ASP.NET Membership provide based on RavenDB. read more...

add a comment |category: |Views: 95

tags: another

StackOverflow: best place to share/learn programming(www.leniel.net)

submitted by lenielleniel(504) 1 year, 9 months ago

I’ve been spending some time of my days helping others at StackOverflow. StackOverflow (SO) is the best place to ask questions related to software programming. There you can be sure that someone somewhere will help you to find an answer to your question. As a consequence I decided that I’ll try to give back and share a portion of the knowledge I acquired in these 7 years of programming experience. Read on... read more...

add a comment |category: |Views: 5

tags: another

Manipulating Properties and Methods with Reflection(www.leniel.net)

submitted by lenielleniel(504) 1 year, 11 months ago

Today I’m going to write about a simple yet powerful way to manipulate properties and methods of a given type. We’ll set values to properties and invoke methods through the use of reflection. Maybe you haven’t had the chance to use reflection or maybe you even don’t know what is reflection. Reflection is one of the most powerful features a programming language has as is the case of C# programming language that I’ll be using in this post. Read on... read more...

add a comment |category: |Views: 11

tags: another

Oracle NLS_LANG for language/territory/character set(www.leniel.net)

submitted by lenielleniel(504) 2 years, 1 month ago

Recently I had an Oracle problem at work. All database data that had accented characters as à, é, í, ã, etc and other ones as ç (cedilla), º (ordinal indicator) were being replaced by erroneous characters as inverted question marks (¿). The problem was related to NLS_LANG variable that was set on my Windows System variables. To see how to solve this, take a look a this post that shows you the problem, the questioning and the solution. read more...

add a comment |category: |Views: 51

tags: another

Upload/Import Download/Export any File to/from Oracle Database(www.leniel.net)

submitted by lenielleniel(504) 2 years, 2 months ago

The general idea one have about databases is that they only serve the purpose of storing plain values as numbers, dates and text. A database does not do just that but even more allowing you to store a whole file as an Excel spreadsheet or an MP3 file in a column you define in your table. This post shows you how to Upload/Import Download/Export any File to/from Oracle Database through a simple ASP.NET MVC application UI. Have you ever heard about BLOB? This is what makes it possible to store a whole file in a database table. Read on... read more...

add a comment |category: |Views: 19

tags: another

Translation @ a click with Babylon(www.leniel.net)

submitted by lenielleniel(504) 2 years, 3 months ago

If you are not a native English speaker as is my case and if you work in the software world, chances are that you had to resort to any online dictionary to find the meaning of some word. English reigns when it comes to programming languages and any other sort of computer related stuff. With Babylon the translation from/to English to a varied set of languages is just @ a click of the mouse. This amazing software product has helped me a lot since I started the computer engineering course and I think it'll continue to play a big role in my English learning process during the years to come. It's practically impossible to work in the software industry without a grasp of English grammar, so that if you want to know a software product that can help you, read on. read more...

1 comment |category: |Views: 7

tags: another

Model View Presenter pattern with Castle in ASP.NET(www.leniel.net)

submitted by lenielleniel(504) 2 years, 3 months ago

This post shows how to implement the Model View Presenter (MVP) pattern using Castle Project, which is an Inversion of Control Container framework. Employing Castle Project containers and ASP.NET it turns out to be a simple task to have a Web App that takes advantage of the MVP pattern. You'll see how to: use inversion of control (IoC), define a base presenter, define a base view, implement a view interface, implementing a view that inherits from the view interface, implement the presenter and put them together in an ASP.NET web application. read more...

add a comment |category: |Views: 18

tags: another

A* pathfinding search in C# - Part 3(leniel.net)

submitted by lenielleniel(504) 2 years, 5 months ago

This is the last installment in the series about A* search. The C# source code implemented is available in the final part of this post. As promised in the last words of A* pathfinding search in C# - Part 2 today we’re gonna run a test case using the Romania map. This post shows a test case in which the application outputs the shortest path from Arad to Bucharest. I used the ViewOtherPaths method to show the different possible routes. This way we can have a look at why the A* algorithm has chosen such shortest path. read more...

add a comment |category: |Views: 59

tags: another