Tag: Software
All the articles with the tag "Software".
-
To all BlogEngine.NET users... Go patch!
This morning, I read about a serious security issue in BlogEngine.NET. The security issue is in the JavaScript HTTP handler, which lets all files pass trough... In short: if you open http://your.blog.com/js.axd?path=app_data\users,xml, anyone can see your usernames/passwords! None of the other HttpHandlers are affected by this security hole. My recommendation: if you are using BlogEngine.NET: go patch! (and yes, I patched it /js.axd?path=app_data\users.xml)
-
ASP.Net MVC Membership Starter Kit
Yesterday, I read a cool blog post from Troy Goode about his new CodePlex project MvcMembership. I also noticed his call for help, so I decided to dedicate some of my evening hours to his project. Almost every (ASP.NET) website is using some form of authentication, in most cases based on ASP.NET membership. With this in mind, Troy started an ASP.NET MVC version of this. The current release version provides a sample application containing some membership functionality: After an evening of contributing code, there's additional functionality in the source control system:
-
Heroes happen here - Microsoft TechDays 2008 in Belgium
Just to inform you: together with a numer of colleagues from Dolmen, I'll be attending the Microsoft TechDays 2008 in Ghent, Belgium on 12 and 13 March 2008. Want to spot me, Joris, Jeroen, Danny, ... and meet in person? Search for one of the guys in a Dolmen shirt! Update 17/03/2008: Jeroen posted an overview of the inspiring sessions on his blog.
-
PHPLinq version 0.2.0 released!
Last friday, I released PHPLinq version 0.2.0. LINQ, or Language Integrated Query, is a component inside the .NET framework which enables you to perform queries on a variety of data sources like arrays, XML, SQL server, ... These queries are defined using a syntax which is very similar to SQL.
-
Code performance analysis in Visual Studio 2008
Visual Studio developer, did you know you have a great performance analysis (profiling) tool at your fingertips? In Visual Studio 2008 this profiling tool has been placed in a separate menu item to increase visibility and usage. Allow me to show what this tool can do for you in this walktrough. Before we can get started, we need a (simple) application with a “smell”. Create a new Windows application, drag a TextBox on the surface, and add the following code: [code:c#] private void Form1_Load(object sender, EventArgs e) { string s = ""; for (int i = 0; i < 1500; i++) { s = s + " test"; } textBox1.Text = s; } [/code]
-
ASP.NET Session State Partitioning using State Server Load Balancing
It seems like amount of posts on ASP.NET's Session State keeps growing. Here's the list: Yesterday's post on Session State Partitioning used a round-robin method for partitioning session state over different state server machines. The solution I presented actually works, but can still lead to performance bottlenecks. Let's say you have a web farm running multiple applications, all using the same pool of state server machines. When having multiple sessions in each application, the situation where one state server handles much more sessions than another state server could occur. For that reason, ASP.NET supports real load balancing of all session state servers.
-
ASP.NET Session State Partitioning
After my previous blog post on ASP.NET Session State, someone asked me if I knew anything about ASP.NET Session State Partitioning. Since this is a little known feature of ASP.NET, here's a little background and a short how-to.
-
LINQ for PHP (Language Integrated Query for PHP)
Perhaps you have already heard of C# 3.5's "LINQ" component. LINQ, or Language Integrated Query, is a component inside the .NET framework which enables you to perform queries on a variety of data sources like arrays, XML, SQL server, ... These queries are defined using a syntax which is very similar to SQL. There is a problem with LINQ though... If you start using this, you don't want to access data sources differently anymore. Since I'm also a PHP developer, I thought of creating a similar concept for PHP. So here's the result of a few days coding: PHPLinq - LINQ for PHP - Language Integrated Query Let's say we have an array of strings and want to select only the strings whose length is < 5. The PHPLinq way of achieving this would be the following: [code:c#]
-
Preview Word files (docx) in HTML using ASP.NET, OpenXML and LINQ to XML
Since an image (or even an example) tells more than any text will ever do, here's what I've created in the past few evening hours: Live examples: Want the source code? Download it here: WordVisualizer.zip (357.01 kb) If you want to know how I did this, let me first tell you why I created this. After searching Google for something similar, I found a Sharepoint blogger who did the same using a Sharepoint XSL transformation document called DocX2Html.xsl. Great, but this document can not be distributed without a Sharepoint license. The only option for me was to do something similar myself.
-
ASP.NET DataPager not paging after first PostBack?
A few posts ago, I mentioned that I am currently giving a classroom training on ASP.NET. People attending are currently working on a project I gave them, and today one of them came up to me with a strange problem... Here's the situation: in VS 2008, a web page was created containing 2 controls: a DataList and a DataPager. This DataPager serves as the paging control for the DataList. Databinding is done in the codebehind: [code:c#] protected void Page_Load(object sender, EventArgs e) { ListView1.DataSource = NorthwindDataSource; ListView1.DataBind(); } [/code]