Blog

Archive for the ‘Web’ Category

Smarter Browser Cache

Monday, April 11th, 2011

Designers, Developers, System Administrators and companies spend a lot of time trying to optimize their networks and content delivery systems to achieve optimal performance with the minimum resources possible. At first, there was a simple browser/proxy cache schema, then the “If-Modified-Since” and ETags HTTP headers where introduced. Nowadays CDNs seem to blooming and all the […]


Is Web Storage All We Need?

Wednesday, March 24th, 2010

Due to a particular idea of mine I found myself in need of something I don’t believe possible today – to easily share data between desktop and web applications using the browser alone. This raised several technical, privacy and culture questions on my mind, as well as a couple suggestions of course. Many are already […]


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


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


More about WordPress integration with custom sites

Saturday, May 2nd, 2009

Yesterday I did a lot of work to make WordPress and my custom site word seamlessly one with the other. Today I’m trying to raise that level of integration to an higher level. I had 2 problems with a common solution: Am I the admin? I won’t be creating a backoffice anytime soon, but I […]


Moving WordPress and Integrating with a Custom Site

Friday, May 1st, 2009

I finally got my head into doing a redesign of my blog and integrating several sites I’ve into one place. That should make it easier to expand, maintain, backup and setup if needed. I also had some demanding requirements to leave things to my taste in laziness: I like WordPress for blogging most of the […]


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, […]


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


Embedding Pages and Usercontrols Inside Assemblies

Monday, August 18th, 2008

One of the problems with ASP.Net when trying to keep a degree of separation between project components is that you can’t easily implement a page or a user control inside a library project and simply reference it from the main ASP.Net project. This, I think, its not entirely by lack of vision or interest from […]


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


Time Sensitive Data

Friday, March 21st, 2008

One of my favorite gadgets is Gullible Info, its always on my Google Home Page. Its displays things like: «Japanese scientists have created a mechanical version of a human hand with similar motor skills; it requires a computer 1,500 times more powerful than a standard desktop computer to function.» The problem with this is that […]


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


Using Websites To Hijack User’s Bandwidth – Bit Torrent Style

Friday, August 24th, 2007

A few days ago I had this insane idea while thinking about all those ad spamming and stealth dialup sites – we can take advantage of a user visiting a specially crafted page to upload data to other users. It’s both stupid and simple. Torrent sites and clients only would need a few changes and […]


Get Scrollbar Size Using Javascript

Thursday, August 16th, 2007

While searching for a snippet of code that could give me the scrollbar width (or height) on the browser I only found this code that does not work at all in IE, only “well-behaved” browsers work, states the author. Later I found this snippet (somewhere in the last result pages of Google) that seemed to […]


Web 2.0 = Anti-Objective Web

Wednesday, August 1st, 2007

Web 2.0 this… Web 2.0 that… All we here is the wonder of this new apparently more responsive and pretty Web we’ve been used to in the last years startups and now some big players like Microsoft, Yahoo and Google. Turns out that in my opinion Web 2.0 is not so great, Web 3.0 won’t […]


Design-time on ASP.Net 2.0 – Part 1

Saturday, May 19th, 2007

For a while now I’ve been developing Web Magic, previously know as ePortal, a web-based ASP.Net designer that focus on easy-to-use features instead of hard-core developers. Although getting the initial version running was painful due to the lack of documentation I managed to get it implemented a long while ago. We’ve been developing more and […]


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


To POP or not to POP? That’s the Question!

Sunday, March 18th, 2007

A while ago I was thinking about some of the SPAM problems we’re facing world wide. One of the things I’ve concluded to be very problematic is the lack of any kind of security about the senders host. Anyone, anywhere can create a mail server and send mail from there. If you try to check […]