First we need to install the htpasswd application, it is located in the apache2-utils package. This package has no dependencies on apache, so it is safe to install it – it will not download the full apache for you
To install it on ubuntu type:
sudo apt-get install apache2-utils
Once installed we can use it to create an htaccess file.
For some time I have been playing around with writing games for Android. The game loads the graphics in form of image sprites, so I needed a way to easily stick several png images into one image. I though there would be tons of free applications available for this purpose, but I didn’t find any, so I decided to create my own sprite generator.
The code is short and simple. Please feel free to use it as you please!
I have been reading about this new startup that offers a service called AppHarbor. It seems very much as the same idea as Heroku for Ruby, but for .NET. The basic idea is that you deploy your code by pushing your code onto the server using Git, the server then builds, runs unit tests and deploys your application. Super simple!
When I first read about AppHarbor I got the impression that is was running ontop of Microsoft Azure, which turned out to be all wrong. AppHarbor is running in the Amazon Cloud on EC2 instances. When it comes to databases AppHarbor provides access to MySQL and MSSQL. Interestingly they recommend users to use MySQL:
A few weeks ago I posted a video where Windows was upgraded all the way from Windows 1.0 to Windows 7. This week I found a video of a guy who compared all versions of Internet Explorer, from version 1 to the recently released version 9. Quite hillarious to see that IE5 actually scored better than IE8 in the Acid 3 test
Yesterday I installed Visual Studio 2010 SP1 on my home computer. After the installation I wanted to upgrade MVC3 to the RTM version (I had the RC version installed), so i uninstalled the RC and downloaded the new version. The installation came half way, then stopped, in the log file i found this:
Installation failed with error code: (0×80070643)
Not very helpful, but at least something to google. Then I found this blog post. The author describes pretty much the same issue that I had, so I did what he suggested, unpacked the installer using 7-Zip and installed the MSI packages in the following order:
1. aspnetwebpages.msi
2. aspnetwebpagesvs2010tools.msi
3. aspnetmvc3.msi
4. aspnetmvc3vs2010tools.msi
5. nuget.msi
This happily installed MVC3 without complaining. Thanks Michael!
ReSharper is the absolut must have for Visual Studio. It provides very improved navigation and search, refactoring, code generation, code cleanup and unit testing. I have gotten so used to having ReSharper installed so today I have a really hard time using Visual Studio without it.
PowerCommands 10.0 is a set of useful extensions for the Visual Studio 2010 adding additional functionality to various areas Visual Studio. This is some of the commands I find must useful:
Productivity Power Tools from the Microsoft Visual Studio team contains a lot of great extensions
Very much improved dialog for add reference
Solution Naigator – a enhanced Solution Explorer
Improved tab system for editor
Highlight current line (isn’t it weird that VS is missing this feature?)
One annoying ‘feature’ is the triple click to navigate to source, never got it to work properly so I disabled it. Some shortcuts also colide with ReSharper so some tweaking is needed to make it work perfectly.
Really impressive to see that it actually is possible to upgrade all the way from Windows 1.0 (DOS 5.0) to Windows 7 and keep some of the applications and user settings. The only OS I missed was Windows ME (not that any sane person used that OS but anyway), Andy explains that Windows ME did not provide an upgrade path to Windows 2000 and that is why he left it out. Read more details on his blog.
It would be fun so see someone do the same with for example Ubuntu or Redhat, upgrade from the earliest version to a current version.
For the last week the news that Nokia has chosen Windows Phone 7 as their main operating system for all their new smart phones has been all over the news. A lot of people are very upset and say that Nokia should have gone with Android instead, or that they should have invested more in their own linux os Meego. Personally, looking at the options Nokia had, I think this is might be the best move Nokia could have done. Let me explain why.
For years Nokia has been struggling keeping Symbian alive. Symbian is an old operating system and has well served it purpose in millions of Nokia phones. However, during the last few years Nokia has totally failed on innovating, pretty much every other vendor now have smart phones running Andriod that offers more features and a better user experience then what Nokia can offer. Nokia needed to make a drastic change and the choices at this time were not that many.
Meego
Android
Windows Phone 7
Meego is Nokias in house developed linux based operating system. The vision behind Meego is great, but development has been too slow. From what I have seen of Meego it is a great operating system if you want to customize and geek around with your phone, but it is not yet ready for prime time. Read the rest of this entry »
Recently I decided to switch hosting provider from a shared server to a VPS. My choice of linux is Ubuntu so i installed the latest version, Ubuntu 10.10 server. Instead of using Apache as webserver, which has been my choice of webserver for years, I decided to go for Nginx. Nginx is known for its great performance, but what really caught my attention (and the main reason to why I picked it) is that it is so easy to install and configure.
Installing Nginx and configuring the site
The first step is to install the Nginx webserver and PHP.
Marcel:
Hi,
I've tried to update your chat app with the latest version of SignalR. Changed a few things in the ChatHub because there are changed in SignalR
Robert Curlette:
For the routes.MapConnection add the namespace using SignalR.Hosting.AspNet.Routing in the global.asax.cs file.
Welcome to source code bean! On this site I post stuff that I encounter in my job and spare time. The content is mostly related to .NET development, but my interest in techonology is very broad, so often you will find posts on totally different subjects!