source code bean

Archive for the ‘Web’ Category

19 Dec, 2012

Experiments with Play! Framework

Posted by: Peter In: Java|Web

As I wrote in my last post, I recently rewrote one of my hobby projects from ASP.NET MVC to Play! Framework. Play! was very easy to get started with, the only thing required was to have a JDK installed and to download the zip distribution of Play, unzip it to a directory and fire it [...]

25 Mar, 2012

Protothon #2 – WebRTC

Posted by: Peter In: Web

Yesterday I went to a hackathon called Protothon. Protothon describes itself as “Space for the place between code and creativity” and the idea is to bring together programmers, creatives and entrepreneurs together and under a very limited time build an application from scratch. The focus of this hackathon was WebRTC, which is a new standard [...]

In my previous post I showed you how to compile and install mono and get your MVC site up running using the development web server xsp4. The next step is to serve your site using a real web server, my choice is nginx. First, we need a configuration file for the nginx site. If you [...]

I have been playing around a little with Reactive Extensions for javascript and must say that I am really impressed. RxJS a port of the .NET based version which is, as they describe it on their site, “a library to compose asynchronous and event-based programs using observable collections and LINQ-style query operators.“. So what does [...]

07 Oct, 2011

Updated version of SignalRChat

Posted by: Peter In: .NET|C#|Web

Yesterday I uploaded a slightly updated version of the test application I have built using SignalR. Besides from looking much better, it now uses the high level Hubs API (instead of the connection API) that SignalR provides. You find it here: http://signalrchat.apphb.com/ And you can find the source on GitHub: http://github.com/moberg/SignalRChat

26 Sep, 2011

SignalR – Real time web for .NET

Posted by: Peter In: .NET|Web

SignalR is a library for .NET to help build real time web applications, in a way it is quite similar to Socket.IO on Node.js. It consists of three main parts: SignalR.Server – .NET code running on IIS SignalR.Js – A SignalR client in javascript SignalR.Client – A SignalR client in .NET. Useful for communicating with [...]

02 Aug, 2011

My first Google Chrome Extension – E24.se cleanup

Posted by: Peter In: Web

Occasionally i read the swedish news site e24.se. One thing that really annoys me about the site is the fixed banner they have on top of all the article pages. I decided to do something about it so i created a Google Chrome Extension that removes the banner, and as a bonus it also removes [...]

In the early days of the web, web pages were very static in content, once the page was loaded nothing on the page would change until you reloaded it. Then came Ajax and allowed us to do partial reloads of the page. During the last few years the web has evolved even more. Today you [...]

07 Jun, 2011

Javascript on the server side

Posted by: Peter In: Javascript|Web

For the last decade javascript has been a language that has almost exclusively been run on the client side, in the web browser. But during the past year it seems like Javascript has found its way to the server side as well, to the joy of some developers while others wrinkle their nose and wonders [...]

18 Apr, 2011

Nginx: Protecting a folder using htaccess

Posted by: Peter In: Linux|Web

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 [...]


Adwords

About

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!