Despite the growing popularity of Linux, some users of this operating system often complain about not being able to use applications and services that are, instead, fully compatible with other systems like Windows or Mac OSX. This is the main reason why the No Linux No Party motto was born. Now it comes the website.

website of nlnp

No Linux No Party lets you to do a couple simple things:

  • Submit the link of a project that is not compatible with Linux (together with some details)
  • Visit the links already reported (thus giving you the opportunity to increase their visibility and spread awareness of the problem)

The union and collaboration of its users has been the secret of the success of Linux. Bookmarking this website is a must.

Leave a Comment »

So you can’t open an .aspx (or .asp) page in your new ISS on a Windows Server 2003?
Everything has ben set up fine but you’re not able to open those kind of pages?
Your ISS shows plain .html pages but not your new ASP.NET script, because it gives everytime a 404 page not found error?

But the page is there!

Read more »

Leave a Comment »

I needed a simple way to check the timing behaviour of every section of my new php application.

There are some php testing unit out there, but I needed something more simpler and more usable.

So I’ve written our time testing unit, without using classes (I do like OO programming, but classes were unuseful for this simple target), in only one array and four functions.

Let’s see the code. Read more »

Leave a Comment »

If you need to escape a string to use in a xml file (or stream), you have to escape those entities:

Character Escape Code
Ampersand & &
Single Quote '
Double Quote "
Greater Than > >
Less Than < <

To achieve this result you could use the SecurityElement.Escape(string str) C# function, but it has a problem.

Read more »

Leave a Comment »

In C# gzipping a file is easy, just use the good SharpLibZip library.

To use it, you need to include reference to ICSharpCode.SharpZipLib.dll and then add this using clause:

using ICSharpCode.SharpZipLib.GZip;

Then, given that filepath is a string containing a valid path for the to-be-gzipped file, this snippet will gzip it to a new file, without loading it all in memory (that’s good for big files).

Stream s = new GZipOutputStream(File.Create(filepath + “.gz”));
FileStream fs = File.OpenRead(filepath);
int size;
byte[] data = new byte[2048];
do
{
    size = fs.Read(data, 0, data.Length);
    s.Write(data, 0, size);
} while (size > 0);
s.Close();
fs.Close();

Given that filepath is C:\mypath\mygoodfile.ext it will create the gzipped version in C:\mypath\mygoodfile.ext.gz.

Leave a Comment »


Pagina successiva » Articoli precedenti »