Continue continue continue!

gennaio 25, 2006 on 3:04 pm | In Web | Nessun Commento

Going on with web development (am i becoming boring??? yeee)

Ok, another stuff is over: the introduction of links to the full thread story in my homepage.
It seems stupid, i did so many changes in that part, but that’s the way it is.
When you code it can happen that you don’t realize what you’re missing or forgetting.
I can say that at last RSS system is fully working and complete, showing 10 items.

What comes next…i added a language system for the whole website(like intl gettext, but since it’s done by hand, it’s much less elegant).
It’s only the structure, of course i need to populate with proper strings 😛

While talking about website… here is what it is and how it is organized:
1) Website: my homepage and presentation site (link on the right menu)
2) Blog: this blog you’re reading right now
3) Blight Site: the Blight Site (previous location was www.blight.tk), my old site i’ve moved some days ago.

As i told before the Blog is finished, while i’m working on the WebSite.
The Blight Site needs a lot of work, i’ll add an entry to further explain this matter.

Patrizio

Dai non mollare

gennaio 23, 2006 on 11:20 am | In Life | 6 Commenti

This post is in italian cause it’s dedicated to a big friend in a bad moment.

S., non ho nulla da dirti. Non ho le parole e ognuna sarebbe inappropriata e fuori luogo.
Dico solo solo di fatti forza e non mollare in questo momento di difficoltà, sai che puoi contare su di me, su di noi, per qualunque cosa.
Sempre sperando che i momenti brutti siano solo un ricordo.

Patrizio

Luck! where are u bi**h?

gennaio 21, 2006 on 3:14 pm | In Life | Nessun Commento

ooooo
shit!

Today, while emerging (Gentoo Linux) some packages with unicode (utf8) support i heard something wrong from my hd. Scrat Zinc Scrat ZAC ZAC ZAC.

“What the heeeeellll…??”. System frozen and still noises.
After 2-3 mins it stopped.

Fast dmesg type and….thousands of


hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=36534081, sector=36534076
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 36534076
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=36534090, sector=36534084
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 36534084
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=36534081, sector=36534076
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 36534076
Buffer I/O error on device hda6, logical block 299486

arghhhhhh hda is gonna die. This is not the first time it send this kind of “public announcement”
Nice…i have all my system files and persona data on it…who cares!!!!

argh.
must find a new hd. Ebay is almost useless. Can’t buy an old hd, they are too delicate.
New ones cost like in every webshop.

Must go out and check..even if in my town prices are really higher that normal market.

I hope i can find a rapid and fast solution.

Sigh!!!

Patrizio

Road Trip: Rome!

gennaio 20, 2006 on 2:38 pm | In Life | Nessun Commento

Yesterday (or better say, still today!!) i went to Rome with some friends to have fun.
The trip was not that long..about 1h 30mins or so.

What to say? almost nothing. No words, videos, photos could explain.
When you go near the Colosseum you feel like…dunno how to say that. you feel it. you can hear the Colosseum is breathing and it’s living.

The amazing beauty of Rome, like no place in the world, is that this sort of magic atmosphere is absolutely widespread.
You can’t say: “let’s go in the XXX area to see YYY monuments”. no.

Everything is amazing. Every single street, square, old brick in a wall.
Everyone should have a chance to see.
Everyone’s invited (Samsung spam :P).

Proud to be Italian, proud to live “near” Rome (not so near for a walk..but..).
Don’t care about mafia and thiefs stories.

Come on Rome, take Italy by the hand and let our country wake up.

Patrizio

SubMount and Linux 2.6.16 (2.6.16-rc1 now)

gennaio 19, 2006 on 2:25 pm | In Developing | 31 Commenti

And now SubMount fix!

Submount seems a bit abandoned so i stated to fix my own it!
2.6.16 has introduced a different mutex/semaphore system so all modules must be updated and they won’t compile.

here is my fix:

— a/subfs-0.9/subfs.c 2004-02-26 23:54:58.000000000 +0100
+++ b/subfs-0.9/subfs.c 2006-01-19 14:12:26.000000000 +0100
@@ -221,14 +221,14 @@
struct vfsmount *child;

/* This is ugly, but prevents a lockup during mount. */
– up(&dir->i_sem);
+ mutex_lock(&dir->i_mutex);
if (down_interruptible(&sfs_mnt->sem)) {
– down(&dir->i_sem);/*put the dir sem back down if interrupted*/
+ mutex_unlock(&dir->i_mutex);
return ERR_PTR(-ERESTARTSYS);
}
child = get_child_mount(sfs_mnt);
up(&sfs_mnt->sem);
– down(&dir->i_sem);
+ mutex_unlock(&dir->i_mutex);
if (IS_ERR(child))
return (void *) child;
subfs_send_signal();

simple, isn’t it?. I’ll spam it somewhere 🙂

Patrizio

Fuse and Linux 2.6.16 (2.6.16-rc1 now)

gennaio 19, 2006 on 2:20 pm | In Developing | Nessun Commento

I just updated my kernel to Linux 2.6.16-rc1 and of course i tried to recompile my modules.

I had problem with Fuse and SubMount.

Upcoming Fuse 2.5.1 will solve it.
Temporary fix for 2.5.0:
(fix is from Miklos Szeredi (fuse mainteiner) and will be merged in 2.5.1)

Index: kernel/file.c
===================================================================
RCS file: /cvsroot/fuse/fuse/kernel/file.c,v
retrieving revision 1.94
retrieving revision 1.94.2.1
diff -u -r1.94 -r1.94.2.1
— kernel/file.c 6 Jan 2006 18:29:39 -0000 1.94
+++ kernel/file.c 18 Jan 2006 12:17:33 -0000 1.94.2.1
@@ -675,9 +675,15 @@
struct inode *inode = file->f_dentry->d_inode;
ssize_t res;
/* Don’t allow parallel writes to the same file */
+#ifdef KERNEL_2_6_16_PLUS
+ mutex_lock(&inode->i_mutex);
+ res = fuse_direct_io(file, buf, count, ppos, 1);
+ mutex_unlock(&inode->i_mutex);
+#else
down(&inode->i_sem);
res = fuse_direct_io(file, buf, count, ppos, 1);
up(&inode->i_sem);
+#endif
return res;
}

Index: kernel/fuse_i.h
===================================================================
RCS file: /cvsroot/fuse/fuse/kernel/fuse_i.h,v
retrieving revision 1.99
retrieving revision 1.99.2.1
diff -u -r1.99 -r1.99.2.1
— kernel/fuse_i.h 14 Jan 2006 14:47:21 -0000 1.99
+++ kernel/fuse_i.h 18 Jan 2006 12:17:33 -0000 1.99.2.1
@@ -40,6 +40,9 @@
# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
# define KERNEL_2_6_13_PLUS
# endif
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+# define KERNEL_2_6_16_PLUS
+# endif
#endif

#include “config.h”

Patrizio
Prossima Pagina »

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^