Blog

Archive for the ‘Mono’ Category

And Apple does it again – Opera Mini iPhone App Approved

Tuesday, April 13th, 2010

Apple just approved the Opera Mini iPhone app, which should be available on iTunes during the next 24 hours. This is excellent news specially taking into account the recent events. In you’ve missed the demo go check it now. Edit: Some users pointed it out to me something I couldn’t believe but it’s true. The […]


Unity3D, MonoTouch and Flash CS5 to be banned from iPhone/iPad’s Ecosystem

Friday, April 9th, 2010

Up until now a few solutions existed if you wanted to avoid C/Objective C to code for the iPhone and specially to achieve some code portability/compatibility with other platforms. Examples of those solutions are Unity3D, Flash CS5, MonoTouch, HaXe and other static-compiters or trans-compilers like XMLVM. As reported by several sources (e.g. this Engadget article) […]


Microsoft open sources .NET Micro Framework

Tuesday, November 17th, 2009

Microsoft has 3 .Net flavors, the complete stack, the .Net Compact Framework and the .Net Micro Framework for extremely resource-constrained devices. The later is being open sourced under the Apache 2.0 license. A copy of the full annoucemente can be read at Port 25. Unlike the other flavors of .Net frameworks the .Net Micro framework […]


Anonymous Functions in C/C++?

Friday, November 13th, 2009

I was reading my fair share of feeds for the day and I found some links for a nice site that translates C gibberish to English like this: int (*(*foo)(void ))[3] gets translated to “declare foo as pointer to function (void) returning pointer to array 3 of int” – pretty cool on itself but what […]


AdSense reports in a Gadget (iGoogle and Wave)

Tuesday, October 27th, 2009

I got tired of visiting the AdSense page all the time, well from time to time. I already have done an iPhone app so now I created a iGoogle gadget to display the most important stats and also a chart! So, with the help of Mono I was able to have everything setup and tested […]


Mono Strange Behaviour (Bug!)

Friday, October 23rd, 2009

Lately I’ve been doing a lot of ASP.Net code developed on VS.Net and IIS and deployed (via a cool subversion hook I might add) to my server running mod_mono on Fedora. Usually there aren’t many issue except for the occasional OS specific thing. But today I’ve hit not 1 but 2 hard to figure problems. […]


PageRankSharp – Getting the Page Rank from C# or the terminal

Wednesday, September 16th, 2009

I was looking for a piece of code to get the Page Rank of some urls. There is a lot of code and information on the subject, the hardest part beeing the fact that Google uses the Perfect Hash algorithm in the query. I found a nice solution over here and decided to package it […]


Serializing Objects To JSON To Preload Ajax Data

Monday, August 24th, 2009

I’ve been developing a large application with ASP.Net Ajax and ExtJS. It all works great together and in fact ASP.Net is just a easy way to access my .Net code/web services because the whole UI done with ExtJS constructed/controlled by javascript/Ajax. When it comes to a 100% javascript UI there are some cases where you’ll […]


Aborting ASP.Net PageMethod Requests

Wednesday, August 19th, 2009

ASP.Net Ajax features are very good, even great if you consider the useful integration with other ASP.Net constructs. PageMethods are one of the easiest ways to implement an AJAX call without too much trouble or the need to implement a complete web service page if you’re only going to use this particular Ajax call from […]


Statistic’s Software Development – Some Tips

Thursday, March 5th, 2009

I’ve been working at a new project that requires me to save a whole lot of data into a database. Without giving too much details right now (I’m not quite ready for that yet :)) I would say a good replacement would be to think I’ve developing something like Google Analytics. So, there are a […]



ASP.Net State Management And Why You Shouldn’t Use Session Directly

Monday, November 17th, 2008

ASP.Net provides out-the-box several nice (although not new) features to manage your application’s state, the Session and Application objects. The Session and Application objects are also among the first things learned by students of almost any web programming framework but while they are true in their usefulness it doesn’t mean you should use them directly, […]


Longest Common Subsequence – Diff Algortithm in C#

Monday, November 10th, 2008

How does diff/patch work? When I first started to do research on this problem I had no idea about the complexity of the math involved and the lack of C# examples around. It turns out that finding the right resources can make life easier, and in the end the Wikipedia entry and this screencast did […]


Microsoft To Ship Open Source Package With .Net (jQuery)

Monday, September 29th, 2008

A few days ago if you asked me if Microsoft would ever include an open source piece of code in one of their products, I would say you were insane just for asking! There’s no way! Well, Microsoft is planning to amaze me along with everyone else. ASP.Net and Visual Studio will start shipping with […]


Hashing Big Files With Style (Getting A Progress Status)

Monday, August 25th, 2008

I wanted to hash a lot of files and soon I found how painful it was not knowing how much time it would take because some of the files were huge. I also soon found out there is no support for this on Mono but luck smiled upon me when I found HashAlgorithm.TransformBlock and HashAlgorithm.TransformFinalBlock. […]


Dynamic Controls And The UpdateProgress Nightmare

Tuesday, June 10th, 2008

It’s one of the most common issues on the ASP.Net Web 2.0 era, how to add dynamic controls at server side… but that’s a well explored territory as you can check by simply googling it. As a reference I recommend this series of 4 articles. There are 2 problems not so easy to handle, the […]


Dynamic Controls, Ajax and ResolveUrl/ResolveClientUrl

Thursday, June 5th, 2008

I had this old button that besides the text renders an icon. The button control has been working for about 3 years and today I noticed it hadn’t been working for a while now. The issue I assumed is that the problem had something to do with the use of Ajax and the controls been […]


ASP.Net AJAX Extensions, GetPostBackEventReference And Custom Controls

Sunday, April 27th, 2008

If you’ve a piece of code similar to this one, and try to use the control inside an UpdatePanel then you might be surprised to see that triggering that event will in fact do a complete PostBack of the page (read Refresh-like-Postback): public override void Render(HtmlTextWriter writer) { Response.Write(“Button”, Page.ClientScript.GetPostBackEventReference(this, “onclick”)); } The reason is […]


How To: Random DateTime(s)

Tuesday, April 1st, 2008

I had a small database project that needed about a million records to stress test its performance and the front office application. For some reason, working with DateTime in C# is not always straightforward, and you might need some research and trial & errors until you can get something as simple as random date/time generation […]


SqlServer Connection Problems With Mono

Saturday, March 22nd, 2008

If, like me, you use virtual machines and try to connect from Mono to SqlServer you might run into some problems. The top things I’ve learned to check are: Mono doesn’t support SqlServer 2000 below SP3 – this is relatively well documented this Mono page but still is hard to detect since the error message […]


Microsoft Is Releasing .Net 3.5 Core Libraries Source Code

Wednesday, October 3rd, 2007

No more Refletor. Now Visual Studio 2008 will enable you to debug and see the core .Net source making our life easier when trying to understand the “Voodoo Inside”. Not exactly Open Source and doesn’t include the VM or compilers but still an important move towards compatibility between implementations. Initially Microsoft will release the source […]


Mono.Mozilla.Browser On Windows

Tuesday, September 25th, 2007

Update: Andreia has posted some really useful tips and “fixes to my approach that might interest you too. Check them, and a blog post detailing the process and some tunning. A few weeks ago Andreia (a Portuguese like me :)) published in her blog about the latest improvements she has made towards a MWF WebBrowser […]


Automatic Software Updates on Linux

Friday, April 20th, 2007

One of the lovely things about most Linux distributions is a central package management system. It allows you to update most of your software with a few clicks as well as install/remove just as easily. Yet something has been bothering my mind as I develop a new application, and is placing a question mark on […]


Monologue Bug

Wednesday, January 24th, 2007

Monologue has a bug that makes my posts to be displayed only the first time the worker process reads my feeds. I’ve tracked down the problem and I’m using this message to test my patched version, locally, and before sending the patch upstream. The problem is that either Apache or WordPress is not sending the […]


ASP.Net AJAX (Atlas) 1.0 Released

Tuesday, January 23rd, 2007

The former Atlas project has reached the 1.0 milestone and has been released today. From the Web Site: “ASP.NET AJAX is a free framework for quickly creating a new generation of more efficient, more interactive and highly-personalized Web experiences that work across all the most popular browsers. With ASP.NET AJAX, you can: Create next-generation interfaces […]