venerdì 27 luglio 2007

Kraftwerk - pocket calculator / dentaku

Una delle più belle del gruppo:

Kiss Me Lorena

Kiss Me Lorena è il primo film italiano completamente scaricabile da Internet. Gratis.



Lo potete scaricare via torrent, emule o ancore vedere direttamente in streaming... magari offriteanche una pizza a questi ragazzi...

giovedì 26 luglio 2007

Flash: attivare automaticamente il contenuto flash

Spesso, durante la navigazione di un sito, capita di trovarsi davanti e dei fastidiosissimi controlli che obbligano al click per attivarne il contenuto in flash. Si riconoscono per avere dei contorni trattegiati in torno. Ecco una piccola soluzione per rimuovere i contorni dal flash:
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++) {
objects[i].outerHTML = objects[i].outerHTML;
}


Si tratta di un javascript da includere nel fondo delle pagine in cui si utilizzano menu, animazioni o comunque qualsiasi oggetto in flash.

Quindi salvare il codice in un file con estensione .js ed includerlo nella pagina richiamandolo con questo codice html:

<script type="text/javascript" src="nome_file.js">




<style type="text/css">
.test{
text-overflow: ellipsis;
width: 120px;
white-space: nowrap;
overflow:hidden;
height:30px;
border: 1px solid red;
}
</style>

<
div class="test">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
<
div>

domenica 22 luglio 2007

Only you!

LAN PARTY dal Sonico

Cuffie con microfono (comu spenni manci series)

Per un gamer avere un buon audio vuol dire molto anzi moltissimo. Gran parte dei frag o comunque della resa del game in genere dipende, oltre che da una discreta configurazione video, da cuffie o impianti dal minimo rumore e dall'ottimo suono. Ecco perchè è importante una scelta con cognizione di causa del prodotto. Qui entra in gioco un antico proverbio che dalle mie parti recita: "comu spenni manci". Come spendi mangi... prorpio vero!

Recentemente ho acquistato alla cifra di 20 € (se non sbaglio) questo headset della trust:


mi raccomando NON comprate assolutamente questo genere di robe! Audio pessimo: suono cupo e disturbato. Soldi buttati. E' il modello Headset HS-2600 di Trust. BOCCIATO.

A qualche euro in meno mi son portato a casa questo modello che ho sfruttato fino all'ultimo e che purtoppo mi ha lasciato qualche giorno fa:

Si tratta del modello SBC HS520 della PHILIPS certo manca il microfono ma l'audio è veramente ottimo. Un problema è la comodità... infatti dopo qualche ora stancano l'orecchio a causa degli anelli in plastica... PROMOSSO.

Il top l'ho raggiunto circa un'anno fa con:


PC 131 di SENNHEISER le cuffie con microfono più costose che io abbia mai comprato: 50 €. Devo dire che se non fosse stato per il fatto che un bel giorno me ne dimenticai di averle addosso e mi allontanai prontamente dal pc... e pam... &%$£$"£$$%$%&amp;&%& spinotti dentro e fili fuori... non erano un gran che come wireless! :( serebbero ancora qui a suonare per me... SUPER PROMOSSE.

Quindi alla fine della fiera... COMU SPENNI MANCI.

giovedì 19 luglio 2007

Due nuovi disoccupati in giro per l'Italia!


Auguri di cuore al Somax ed Eli.

Mamma ho visto un Cyborg al supermercato....

tra non molto cureremo il mal di testa in officina...

giovedì 5 luglio 2007

Nascondere il percorso del download dei file in ASP.NET con C#

Creiamo uno script per gestire download in modo sicuro senza visualizzare il percorso reale del file sul server:

In visual studio creiamo un nuovo sito web:
pagina Default.aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Pagina senza titolo</title>
</head>
<body>
<form id="form1" runat="server">
<div>
[<a href="#" onclick="javascript:window.open('downloader.aspx?FILEDIPROVA.rar','downloader','');">Download del file con sistema MK</a>]
<br /><br />
[<a href="#" onclick="javascript:window.open('file/downloads/FILEDIPROVA.rar','downloader','');">Download del file tradizionale</a>]
</div>
</form>
</body>
</html>

aggiungiamo una pagina downloader.aspx con codice separato (csharp):

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="downloader.aspx.cs" Inherits="downloader" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Download</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
ecco il cs associato:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MKDEV.CMS;

public partial class downloader : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MKFileManager.download(this.Request.QueryString.ToString(), this.Context);
}
}
bene, ora aggiungere la cartella App_Code e creare una Classe MKFileManager.cs:

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
namespace MKDEV.CMS
{
public class MKFileManager
{
public MKFileManager()
{

}

public static void download(string filename, HttpContext hc)
{
string path = hc.Server.MapPath("file/downloads/" + filename);
FileInfo file = new FileInfo(path);
if (file.Exists)
{
hc.Response.Clear();
hc.Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
hc.Response.AddHeader("Content-Length", file.Length.ToString());
hc.Response.ContentType = "application/octet-stream";
hc.Response.WriteFile(path);
hc.Response.End();
}
else hc.Response.Write("Impossibile avviare il download!");
}
}
}

Salvare il tutto e testate la soluzione.

Ciauz

martedì 3 luglio 2007

RIGHT SAID FRED - You're My Mate


I'll tell you what I think
I think she's a cow
She's let you down too many times now
Let's go for a drink forget it for now
Put it behind you I think it's your round
Coz you're my mate and I will stand by you
You're my mate and I will stand by you
And in the face of things that could hurt you
You're my mate and I will stand bye you

Coz you're my mate and I will stand by you
You're my mate and I will stand by you
And in the face of things that could hurt you
You're my mate and I will stand bye you

Coz you're my mate

I'll tell you what I think
I think he's a pain
He ain't got a car but he drives you insane
Let's go for a drink and sink a few
Enough about him let's talk about you

Coz you're my mate and I will stand by you
You're my mate and I will stand by you

Coz you're my mate and I will stand by you
You're my mate and I will stand by you
And in the face of things that could hurt you
You're my mate and I will stand bye you

Coz you're my mate

All I wanna do is get drunk here with you
All I wanna do is get drunk here with you
All I wanna do is get drunk here with you
All I wanna do is get drunk here with you

Coz you're my mate and I will stand by you
You're my mate and I will stand by you
And in the face of things that could hurt you
You're my mate and I will stand bye you

Coz you're my mate and I will stand by you
You're my mate and I will stand by you
And in the face of things that could hurt you
You're my mate and I will stand bye you

Coz you're my mate
Coz you're my mate
Coz you're my mate
Coz you're my mate
Coz you're my mate