How Hard Are URLs in Text?

   Abandon all hope you who read this, for this is where you will find how simple programming problems can turn out to be really hard. For our current project we wanted to implement a seemingly simple functionality – when the user posts a comment via a text area new lines should be converted to "<br />" in the resulting HTML, HTML tags should be encoded so our project would not be vulnerable to script injections and users would be able to post HTML in the comments and finally URLs should be detected and converted to links. Sounds simple? As soon as I was charged with this task I remembered reading a post by the wise Jeff Atwood on his famous blog Coding Horror about how hard URLs can be. The post deals with the issue of a closing parenthesis at the end of a URL and I immediately decided that I was going to ignore this issue like most systems do. However while working on this task I hit many more walls...
Posted by:   Stilgar
02:37 03.09.2009

Upgrade 1.2.1

    Our team has just released the newest version of the Personal Website Engine - 1.2.1. In this version we have replaced the TinyMCE editor with the AJAX Control Toolkit editor. This one is a bit of a downgrade because TinyMCE has more features. However the AJAX Control Toolkit editor has better integration with ASP.NET and seems to be a bit faster and more stable. What is more we can make use of more controls from the toolkit in the future.

    We have also refactored the admin interface that had a lot of duplicate code between the add and edit functionality. Now they share a common control.

    Here is the new look of the admin part:

BlogNET admin part

    As always you can download the source code and contribute from the project page at Codeplex. Please report any bugs you may encouter although we are incapable of writing buggy code so this would mean someone has sabotaged us.
Posted by:   Stilgar
21:25 22.08.2009

JavaScript for the Elite

JavaScript for the Elite
   Ever since I asked myself and tried to find out why people tend to hate JavaScript I have been loving the language. My research revealed that JavaScript has many cool features from the very beginning. The reason people are hating it are the sucky browsers. Every browser has its own implementation which causes problems. What is more JavaScript's main use is to deal with the dreaded DOM. Luckily in recent years people seem to discover the power of JavaScript and appreciate the fact that the language is very well suited for the untyped nature of the DOM. As you probably know I do not believe that the Web should be rich and made to resemble desktop applications. Unfortunately this means that I did not have a chance to write complicated JavaScript and use the language to its full potential. The stuff I did was really simple validation and calculations like adding two numbers. However our current project is more user-centric and requires rich UI so it seems like the time has come for me to write some elite JavaScript...
Posted by:   Stilgar
18:36 02.08.2009

Silver Splines

Silver Splines
   In order to pass the last exam left and graduate from the University of Plovdiv I had to create a small program that draws some splines. I picked Bézier curves as they seemed to be one of the simplest kind of parametric curves...
Posted by:   Stilgar
04:15 11.07.2009

Fuck the EU Commission!

Fuck the EU Commission!
   Some of you probably know that the minority browser makers worried by the fact that people do not give a fuck about their crappy software and the useless web "standards" went to the EU Commission and asked it to make Microsoft bundle their browsers with Windows because according to them Microsoft abused their OS market share by bundling Internet Explorer. Of course Microsoft had no intention to bundle alternative browsers with their OS. At the very least Microsoft do not want to answer support calls for browsers they did not make. So what did Microsoft do. They said "FUCK YOU" to the EU Commission and they will ship Windows 7 in Europe without any browser. There will be a separate CD with IE for OEMs. Of course all OEMs will just install IE because none of them will want to take all the support calls complaining that "The Internet is missing". Most of them probably will not bundle alternative browsers because this means they will have to support it. Basically IE will be bundled with as many Windows installations as it is bundled with now - all of them. The only people who will be affected are the 10% of the users that I (and most probably you) belong to who install Windows on their own. Now the installation will require two discs - one for Windows and one for the browser (be it IE or a minority one). How is that any other OS can ship with a browser but Windows cannot? The funny part is that IE has less than 50% usage share in Europe. Good job protecting the consumers EU Commission. FUCK YOU!


Update 03.08.2009

   Microsoft has decided to include ballot screen in Windows 7 if the default browser is IE. The solution is quite interesting since the ballot screen will be presented in IE itself. It will be a web page with an option to download browsers ordered by market share. Even more interesting is the fact that the ballot screen will be pushed through Windows Update to XP and Vista machines. It will be displayed only to users that have IE set as the default browser so this can lead to users moving away from IE but not the other way around. Microsoft will be promoting direct competitors. It is not yet sure if the EU Commission will accept this offer.

   One thing that is really good about this decision is that 5 years from now Windows 7 will not be shipping with 5 years old Firefox.

Q: What is worse than 8 years old browser shipping with the most popular OS?
A: Five 8 years old browsers shipping with the most popular OS.

You can read more and see a screenshot of the ballot screen here.
Last edited by:   Stilgar
on   04:25 03.08.2009
Posted by:   Stilgar
04:09 12.06.2009
First Previous ... 11 12 13 14 15 16 17 18 19 20  ... Next Last