Enrico Foschi’s official blog

Something about me – .NET Team Leader with an entrepreneurial mind

Archive for the ‘Tech’ Category

Twitter style suggestion and validation boxes for jQuery

without comments

Few minutes ago I just deployed a new JQuery plugin: TwitterSuggestion: twitter style suggestion and validation boxes (> link)

Basically it reproduces the suggestion and validation effects anybody can see on www.twitter.com/signup

Here is a screenshot:

twitterSuggestion

And here is a demo.

Let me know what you think :)

Written by Enrico Foschi

July 4, 2009 at 11:56 pm

Posted in JQuery

How to check with Javascript if a Firefox Add-on / Extension is installed

with 10 comments

Agglom was used to display an invitation to download the Firefox Add-on Agglomerator in the main pages to all the users.

Unfortunately, the invitation was displayed by users that already installed the Add-on too. The challenge was to check with JS if the user already had the add-on installed and, if he had it, to hide the invitation.

Surfing the web I stumbled upon this page:
http://ha.ckers.org/weird/firefox-extentions.html

Thanks to ha.ckers.org, the feature has been pretty easy to develop. What we did was to include the invitation inside a DIV with a specified id (firefoxExtension). Right after the closing tag of the DIV we appended this image:

<img src=”chrome://agglomerator/skin/icon24.png”
class=”displayNone”
onload=”if(document.getElementById(‘firefoxExtension’))
document.getElementById(‘firefoxExtension’).style.display=’none’;” />

The IMG tag loads an image that is included in Agglomerator (the icon displayed in the toolbar to save and share the current browser session). If the extension has been installed correctly, the icon will be loaded and the onload event will be fired. This is then hiding the DIV with id=firefoxExtension. If the extension is not installed, the onload event won’t be fired.

This is a quick and dirty method and should work with all almost any add-on.

Hope it helps.

Written by Enrico Foschi

August 21, 2008 at 9:14 pm

Saving your Web searches in Firefox is easier than ever

without comments

…and you can even access them wherever you are and share them with anybody.

Is just a few clicks operation with Agglomerator, the Firefox add-on from Agglom.com.

This is a web search that I just organized in less than 1 minute:

http://www.agglom.com/agglom/323/Best_cars_drawn_in_MS_Paint

This extension will add one button on the toolbar that, when clicked, will open a new window in Agglom.com with a list of all the URLs of the current opened tabs. You will be able to choose which ones you would like save and how to share them (you may share them with everybody, with your friends, keep them private or protect them with a password).

Once you save them, you’ll be able to view all the saved web contents (links, videos, images, wikipedia pages, etc…) in just one page and to share it with a Permalink.

Here is a useful video tutorial to get started with it:

Here is the link of the Firefox Extension:

Written by Enrico Foschi

July 28, 2008 at 8:38 pm

My portable ebook reader

with 6 comments

Sony PRS-505I’m used to buy about 3 / 4 IT books a month, each one usually has more than 600 pages. As well as I like travelling and I would occupy all the space of a room just for my books, I need them in electronic format (an SD card could help me save some space here in Ireland, with so high house prices).

As well as I care about my eyes, I couldn’t read all the ebook on my laptop LCD monitor. I need some e-Ink enabled devices (electronic paper, not translucent). And I would like to read them while I’m in bed, in the bathroom or everywhere else.

After studying a lot the available devices, I decided to buy the Sony PRS-505 and I’ve to say that I’m so proud of it!

The screen refresh in about 1 secs, but it’s not a problem (and it’s like that on all e-Ink devices). I have no hurry usually when reading and I could waste 1 second while switching pages :D .

Well, it is easy go get used to these devices. 7 inches display is enough if you want to read books without images and other kind of non-textual content, but probably it is not enough if you have to read magazine or IT books.

But no worries! Some really nice guys have developed very useful tools for converting content from almost everything (even web pages or rss feed) to the sony .lrf format. Some of these useful softwares services are:

I’m reading at the moment a Microsoft certification exams book on my PRS, standard A4 pdf format converted to lrf (I got double of the pages, but at a larger and viewable size). And it look awesome!

The bookmark feature is very useful and I like so much the way I can store almost everything using an SD card and a MMC card too.

It’s very thin (0.8 mm) and very lightweight. I absolutely love it. It worth all the 299 euros I paid on eBay.

Probably I would buy another one for my girlfriend too.

Written by Enrico Foschi

April 17, 2008 at 7:09 pm

Posted in Tech, eBook

Tagged with ,

Microsoft in the future

without comments

This is what the future is expected to be:

Written by Enrico Foschi

April 2, 2008 at 7:20 pm

Posted in Tech

C# 2008 and LINQ

without comments

I’m just getting deeply in the understanding of C# 2008 features, such as LINQ, var, extensions, etc…

I definitively have to say that I LOVE THEM, as well as I love the MS teams that is continuing to improve a language facilitating the way of writing robust and strength well designed code!

Written by Enrico Foschi

February 29, 2008 at 3:19 pm

Posted in .NET 3.5, C# 2008, Tech

Tagged with ,

No way to get Full Text Search engine on SQL Server 2008

without comments

Unluckely, I’ve to come back installing the SQL Server 2005 + Service Pack. In 2 days playing with the installation, I found that the easiest way to get the FTS on my laptop (Windows Server 2008, 32-bit), is to copy the msfte* file from the Binn directory of another sql server 2005 or 2008 installation (currently I don’t have any available).

Sad…. but waiting for the next CTP…I’ll never give up!

Written by Enrico Foschi

February 28, 2008 at 4:02 pm

SQL Server 2008 won’t install on previous instances

without comments

While playing with the installation process of SQL Server 2008, I discovered that it won’t install on my laptop on previous instances, even if those ones where uninstalled correctly.

Anyway, I wouldn’t play. I just am trying to figure out how to correctly install the FTS (Full Text Search) on the CTP-6 version, that isn’t installing by default and is needed by TFS 2008.

Written by Enrico Foschi

February 28, 2008 at 3:12 pm

Funny ActionScript 3 reformatter

with one comment

Well, this is a funny thing that happened today.

While writing Actionscript 3 code, I wrote this line:

return (SpokeRotation + FinalRotation) / 2 * Math.PI / 180;

Well, after pressing the inliner (I really don’t know exactly the name of the feature, but is that button very useful that just inline the code), the line was changed in this:

return SpokeRotation + FinalRotation / 2 * Math.PI / 180;

Whoa!! Isn’t it funny? No parentheses, no party!

Written by Enrico Foschi

February 28, 2008 at 2:49 pm

Windows Server 2008 and BAD_POOL_CALLER

with 2 comments

Yesterday I decided to install Windows Server 2008 (RC1, downloadable here) on my Dell Vostro 1500 laptop. I was really surprised, it took about 20 minutes to install. And after having installed all the drivers (other 20 mins), the system was perfectly working.

Then, I installed at once:
- Visual Studio 2008
- Team Foundation Server 2008
- PGP Desktop
- Daemon Tools

…and I was surprised with a BSOD, that took all my previous night. Unluckely, even reading the dump files or rechecking the memory, I wasn’t able to figure out which was the problem (or the problemS), but I suppose some kind of old driver not compatible.

As well as I would like to experience this OS, this morning I installed it again. After 40 mins my system was up and running (with wireless network, geForce card and sound card perfectly working).

I won’t install anymore PGP or Daemon Tools, as well as I think they may be the cause of the previous crashes .

Anyway, I encountered a curious problem while trying to update the system. Even if the network was working, the update manager couldn’t connect to the net to get the list of updates.

…after 5 mins, I discovered that the cause was Windows Firewall service that, after being disabled from the service manager console, made my updates working.

(TBH, I think that Windows Firewall should automatically bypass the system updates).

Written by Enrico Foschi

February 26, 2008 at 1:41 pm