Jan 10 2010

Trying to get windows vista refund from MSI italia

Tag: Computer World,Personal,Software Liberojdoe @ 12:11 pm

Recently my girlfriend bought a MSI x340 laptop. It comes with a pre-installed (and paid) version of Windows Vista Home Premium. At the first boot I’ve refused (resits!) and not agreed with the EULA. So we are now trying to get the refund for the MS tax.

I’ll keep here a log about this story.

First step: contacted ADUC (in italian), and started doing the paperwork. Tomorrow Thursday we’ll ship the letter via mail.

Update: the letter has been sent on Tue 12 Jan 2010

Update: MSI responded, they are about to contact me by phone.

Update: After a quick call, they sent me the “refund process” I’ve to follow. They want me to send back the laptop to them to make the win sticker removed. This is not going to happen. I’ve contacted ADUC about this issue, waiting for them to answer


Oct 12 2009

Evolution: no components

Tag: Computer World,Gentoo,Software Liberojdoe @ 2:41 pm

If you are using gentoo, and after an evolution recompile/upgrade you end up with a situation like this

evolution fail

recompile evolution again, removing -Wl,-z,now from you LDFLAGS.


Sep 24 2009

Ebuild Repository for the AQuoSA project

I’ve been recently working, as part of my thesis, with the AQuoSA architecture.

Since I’m a gentoo user and no ebuild did exist (at least, I did not find them), I’ve created an ebuild repository.

To use it you need bzr installed, and yes, it’s *really* a good thing if you read the AQuoSA doc before installing any of these ebuilds.

$ bzr co http://bzr.cnglab.net/aquosa-repo

as of now included ebuilds are:

sys-kernel/aquosa-sources : full linux sources with generic scheduler patch
sys-apps/aquosa-qosres    : qres program and aquosa headers, plus the qresmod linux module and aquosa init script
sys-apps/aquosa-qosmgr    : qmgr program
www-apache/mod_reserve    : apache2 module to provide QoS thought the AQuoSA infrastructure
media-sound/jack-audio-connection-kit : as of now it's unrelated to AQuoSA, but it's a WIP ebuild for jack2 svn
                                        with support for the pipelining branch. This ebuild is based on the proaudio
                                        repository ebuild.

Please report back to me every problem you will (yes, you will :) ) encounter using these ebuilds.

Instructions for paludis:

create a aquosa.conf file in the /etc/paludis/repositories/ directory with the following content

location = ${ROOT}/var/paludis/repositories/aquosa
sync = bzr+http://bzr.cnglab.net/aquosa-repo
master_repository = gentoo
format = ebuild
write_cache = /var/cache/paludis/metadata
names_cache = /var/cache/paludis/names

obviously change the location path to match your system settings.

then do the first-time sync of the repository:

$ paludis --sync x-aquosa

Instructions for portage:

sorry, I don’t use portage since I switched to paludis, If someone wants to contribute install instructions for portage he/she is welcome.

location = ${ROOT}/var/paludis/repositories/aquosa
sync =
master_repository = gentoo
format = ebuild
write_cache = /var/cache/paludis/metadata
names_cache = /var/cache/paludis/names

Apr 17 2009

web2py behind apache with mod_wsgi part II: mod_rewrite rules

Tag: Computer World,Howtos,Software Liberojdoe @ 2:48 pm

Ok, in the previous post I’ve shown a way to run web2py behind apache  using mod_wsgi.

The main “problem” still to be addressed is: URIs. Assume you have 3 website which implies (in the common case) 3 web2py application,

  1. www.primo.it with the we2bpy app called primo
  2. www.secondo.it , appname is secondo
  3. www.terzo.it, appname is terzo.

(ok, maybe I lack of fantasy … )

Now we ended up having a vhost with

ServerName web2py.localhost

so all of our 3 applications are at

web2py.localhost/primo/default/index, web2py.localhost/secondo/default/index, web2py.localhost/terzo/default/index. It should work, but it’s not what we want.

The simplest thing here is to add

ServerAlias www.primo.it www.secondo.it www.terzo.it

to the vhost conf file. This works, but has a couple of disadvantages:

  1. application name is still in the url (i.e. www.primo.it/primo/default/index)
  2. secondo and terzo are available from primo’s url and vice-versa (www.primo.it/secondo/default/index shows secondo application)

Here enters mod_rewrite. Leave the ServerAlias in place, as they are needed.

Disclaimer I’m **NOT** a mod_rewrite guru -as you’ll see-, and I really think that there are better ways to accomplish this task: suggestions are welcome ^^

Starting with www.primo.it, add this at the beginning of the vhost file, just after the DocumentRoot directive:

RewriteEngine On

RewriteCond %{HTTP_HOST} =www.primo.it [NC,OR]
RewriteCond %{HTTP_HOST} =primo.it [NC]
RewriteRule /primo/(.*) /$1 [N]

RewriteCond %{HTTP_HOST} =www.primo.it [NC,OR]
RewriteCond %{HTTP_HOST} =primo.it [NC]
RewriteRule ^/(.*) /primo/$1 [PT,L]

The first “block” is needed to fix “links” in web2py applications, so that if you are using URL() function it continues to work. The problem it addresses is that we don’t want application name in URLs buth URL() keeps adding it. So we remove it;  the [N] flag after  the first RewriteRule means “restart from the beginning after applying” (the downside is that this is an external redirect :( )

The second “block” is needed to do the actual work: it transparently add the app name to the request, but the url in user browser remains without. So one user accessing www.primo.it/default/index arrives to wsgi as if he/she was calling www.primo.it/primo/default/index (and the user still have www.primo.it/default/index) in his/her location bar. The [L] flags means “last” (i.e. stop processing rewrites) and [PT] means “jump directly to the next alias handler”, which is the WSGIScriptAlias defined in previous posts.

Repeat this two blocks (RewriteEngine On is needed only the first time) for every application you have (you can do includes in separate files if you wish)  and you end up having

  • www.primo.it that redirect to www.primo.it/default/index.
  • www.primo.it/secondo/default/index still working
  • web2py.localhost/primo/default/index still working
  • https (i.e. management) only on web2py.localhost. If you want https support for primo.it you should add the rewrite rules event to the https section, (or -better- include two times the same file)

Hope this helps… and if you have better options or ideas write a comment :)

Last thing about the RewriteCond: yes, I already know that it can be done with a regex instead of using the =www.primo.it AND rewriting the condition without www. but I like this way far more as it’s simpler and much more understandable.


Dec 04 2008

E finalmente…. python 3.0!

Tag: Computer World,Net Walking,Software Liberojdoe @ 1:28 pm

Habemus python 3000

http://www.python.org/download/releases/3.0/

Molte le novità più o meno succose:

  • Finalmente una print a modo
  • Carine le modifiche sull’ordine degli operatori di comparazione
  • unicode, Unicode, UniCode, UNICODE!
  • PEP 3101
  • I cambiamenti sulle eccezioni, tipo l’uso di as invece delle virgola quando si usca except
  • except MyException as myvar: contro except MyException, myvar: e lo stesso quando si usa raise.

E, ovviamente uno zilione di cambiamenti che potete vedere qua: http://docs.python.org/dev/3.0/whatsnew/3.0.html.


Ora si tratterà di rendere compatibili tutti gli script che ho.. uh… aspetta.. non c’è _quasi nulla_ che mi interessa che continui a esistere in py3..
quindi … vorrà dire che sarà il focus per i nuovi script


Oct 26 2008

Usare i tasti pageup-pagedown per cercare nella history dei comandi con bash-completion in debian

Tag: Computer World,Software Liberojdoe @ 3:28 pm

Io sono assuefatto a gentoo, però ultimamente per qualche server sto usando debian.. una cosa che mi è sempre mancata (che gentoo ha di default) è il poter cercare nella history quando ho scritto metà comando..

ad esempio, se io scrivo

# ls -lad /home/jdoe/

e dopo un tot di tempo voglio ridare il comando, con gentoo semplicemente scrivo “ls” e quindi con pageUp e pageDown scorro tra gli ultimi comandi che iniziano con ls…. e lo trovo comodo a bestia :p

Se volete abilitare questa cosa su debian, basta abilitare bashcomp

$> vim /etc/bash.bashrc

e decommentate le righe

if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

quindi

$> vim /etc/inputrc

e decommentate le righe

"\e[5~": history-search-backward
"\e[6~": history-search-forward

Jun 04 2008

Modificato l’Howto su kvm

Tag: Computer World,Howtos,Software Liberojdoe @ 12:39 pm

Ultimamente c’ho giocherellato un po’.. in verità lo uso per testare il cluster xen (si, faccio gentoo -> kvm->ubuntu->xen->gentoo, qualche problema? :D )

kvm è fantastico, se usato con lvm anzichè le immagini qcow per i file è anche piuttosto veloce. Più o menoc come virtualbox, che magari è più semplice da far andare per i più (cliky-clicky-cliky-kab00m) però non supporta PAE, e io ci devo far girare dentro centos o ubuntuserver, che hanno PAE nel kernel xen.. quindi it’s a no-go :p KVM, invece per ora non fa una piega

L’howto è finalizzato a configurare kvm per andare con le schede di rete in bridged mode, ovvero è come se la macchina virtuale fosse sulla lan insieme al resto dei pc di casa e al router.

In più, una seconda rete, tutta virtuale, per connettere le macchine tra loro (yum :) )

Lo trovate qua


Mar 11 2008

Uhm… sentivate la mancanza?

Non credo…  anche se in effetti potrei scrivere anche un po’ più spesso. :p

Ultimamente sono cambiate un bel po’ di cose nella mia vita personale, ancora mi devo abituare bene ma alla fine sono contento così. Avrei potuto gestire meglio alcune situazioni, ma spesso le cose capitano e basta, e allo stato attuale non cambierei nemmeno una virgola di quello che è stato…

Per il resto, smanetto poco, questo mi dispiace, tdm e replica sono fermi, e probabilmente non verranno completati.

Il primo perchè ho smesso di giocare a tremulous e quindi ho perso anche l’interesse nel farlo, se qualcuno volesse continuare a svilupparlo si senta libero… posso anche dargli l’accesso svn.

Il secondo perchè probabilmente non è il modo giusto di fare le cose, per cui per ora è fermo e non credo che rilascerò mai nulla (attualmente manco funziona).. in più il problema che doveva risolvere non c’è manco più quindi anche li gli stimoli sono pochi.


Sep 10 2007

meno male c’è webapp-config

Tag: Computer World,Software Liberojdoe @ 2:43 pm

In effetti poter installare software sulla macchina sulla quale hosti i tuoi siti è una figata :p

Sopratutto se la macchina è gentoo e ha webap-config …

$ paludis -i wordpress –dl-upgrade as-needed

$ webapp-config -U -h jdoe.biz wordpress 2.2.3

$ etc-update

fatto :O

prima era un grosso spaccamento… sopratutto quando ne devi aggiornare 5 o 6 e devi darci dentro di ftp :/ mentre ora… uno scriptino sega di bash scritto direttamente nella commandline… e vai :)


Aug 17 2007

Guardie e ladri

Tag: Computer World,Net Walking,Software Liberojdoe @ 9:32 pm

Slashdot ha pubblicato una storia abbastanza interessante: pare che un sito stia cercando di bloccare gli utenti firefox (un ritorno all’”ottimizzato per” dei ’90?)

Il motivo è semplice, pare che ci sia un ad (io non lo uso, forse questo qua? non è importante poi quale di preciso) che permette di cancellare gli ads dai un siti visitati. Questo ovviamente fa perdere soldi a chi gli ads ce li mette, infatti ce li mettono apposta per farceli vedere e spesso per prendere un tot di soldi a click (come il famoso ad-sense di google presente anche su questa pagina, che -per inciso- in sei mesi mi ha fruttato la bellezza di 0.67€). Il tutto ovviamente gridando “al ladro! al ladro!” un po’ come fanno con chi scarica mp3 et simila dal p2p, il che fa perdere punti – e non pochi- ai promotori di questa bagg… ehm, iniziativa

La questione è interessante: io sono d’accordo sia con l’utente che toglie la pubblicità perchè spesso è invadente, sia con i gestori del sito perchè in fondo nessuno fa nulla per nulla (eccetto un bloggettino o il sito dell’hobby/gioco/band/squadra di calcio/quelcheè), e anzi spesso parecchi siti campano proprio sui vari banner/ads, perchè un sito costa, e non poco… sopratuttto se le visite aumentano.

Per me la soluzione, come spesso accade, sta nel mezzo: gli utenti dovrebbero sorbirsi la pubblicità e i web-masters (no non mi è venuto un termine migliore, lo so che questo proprio butta peso) dovrebbero evitare di invadere la quiete della navigazione. ovviamente siamo nell’utopia spinta :D

Intanto secondo me i tizi “iobloccotuttigliutentidifirefoxahahahah” perderanno un po’ di soldi, stando a quanto c’è scritto su quella pagina sembra quasi che nn ci rimettan niente… invece io credo che gli utenti ff sono troppi per essere ignorati… boh, cazzi loro :D


Next Page »