[gentoo-user] eaccelerator messes up virtual webapps

2007-06-30 Thread Christoph Erdle

Hi,

I encountered a really annoying behavior of eccelerator.

On my server I run several installs of wordpress using gentoo's  
webapp-config, all up to the same version. When the cache is empty  
all works as expected, it caches the called php pages. BUT when I  
access a different install of wordpress I get the sites that were  
cached for the installation i accessed before.


In the log of eaccelerator I see that the hits are for the wrong  
locations on the file system, it seems that eaccelerator only caches  
an checksum of the files accessed but not their actual path. E.g. all  
index.php for all wordpress installs are the same, as they are  
installed via webapp-config, and the cache hits for the first one  
accessed.


Are there any possibilities getting eaccelerator to run on a vhost  
environment?


Any help appreciated,
Steelynose

--
Solidarität ist die Zärtlichkeit der Völker. (Ernesto Che Guevara)




PGP.sig
Description: Signierter Teil der Nachricht


Re: [gentoo-user] Re: Gentoo Halt message

2007-06-30 Thread Stephan Wacker
Hi,

I would rather suggest you put the code into

/etc/conf.d/local.stop

That script is executed before anything in /etc/init.d is stopped.


If you want to make sure the mail has left your system, you might 
test if the outgoing mail directory is empty. In my case that is

/var/spool/postfix/active

One way to wait until the directory is empty would be

while [ `find /var/spool/postfix/active -type f -mmin -1` ]
do
sleep 1
done

Actually, the -mmin -1 will make it wait at most one minute.

Or you wait at most 3 seconds, like this:

find /var/spool/postfix/active -type f -mmin -1  sleep 1
find /var/spool/postfix/active -type f -mmin -1  sleep 1
find /var/spool/postfix/active -type f -mmin -1  sleep 1


Regards
Stephan


Am Dienstag, 26. Juni 2007 09:27 schrieb Xavier Parizet:
 On Tuesday 26 June 2007 08:54:39, Gentoo Voyager
 [EMAIL PROTECTED]

 wrote :
  Dear all,
  how to send automatic mail while halting the gentoo system.
  qmail server running on my gentoo box.

 Maybe you can add a rc script to send an email at shutdown.
 For example :
 ===/etc/init.d/notifyhalt
 #!/sbin/runscript

 EMAIL=[EMAIL PROTECTED]

 depend () {
   need net
 }

 start () {
   return
 }

 stop () {
   ebegin Notifying $EMAIL of rebooting the system
   cat EOF  | sendmail $EMAIL
 From: [EMAIL PROTECTED]
 Subject: System reboot

 The system is rebooting !
 EOF
   eend $?
 }
 ===
 Add it by rc-update add notifyhalt default
 Hope this can help !

  Thanks,

 Regards,
 Xavier Parizet

 --
 http://www.linuxant.fr
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Seamonkey and saving images taking so long

2007-06-30 Thread Aleksey V. Kunitskiy
On Saturday 30 June 2007 08:29, Dale wrote:
 Any ideas?  Is it Seamonkey or something else?

 Thanks for any help.

 Dale

 :-)  :-)

You can check how much processor time takes kernel(top or htop) - if kernel 
loads cpu too much then it is probably fs io.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgp2y1JkmOH8n.pgp
Description: PGP signature


Re: [gentoo-user] Re: Gentoo Halt message

2007-06-30 Thread Neil Bothwick
Hello Stephan Wacker,

 while [ `find /var/spool/postfix/active -type f -mmin -1` ]

find returns success if it finds no files, so this will loop forever. Use [[ 
$(find blah | wc -l) -gt 0 ]]


-- 
Neil Bothwick

The world is a tragedy to those who feel, but a comedy to those who
think.(Horace Walpole)


signature.asc
Description: PGP signature


[gentoo-user] Why is /etc/init.d/xdm in the xinit package ?!

2007-06-30 Thread Enrico Weigelt

Hi folks,

why is the xdm startup script (/etc/init.d/xdm) and config stuff
(/etc/conf.d/xdm) in the xinit package, not in xdm ? 

cu
-- 
-
 Enrico Weigelt==   metux IT service - http://www.metux.de/
-
 Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
-
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Why is /etc/init.d/xdm in the xinit package ?!

2007-06-30 Thread Albert Hopkins
On Sat, 2007-06-30 at 16:10 +0200, Enrico Weigelt wrote:
 Hi folks,
 
 why is the xdm startup script (/etc/init.d/xdm) and config stuff
 (/etc/conf.d/xdm) in the xinit package, not in xdm ? 

The xdm init and config file are also used to run gdm, kdm,
entrance,  probably other display managers and not just the
standard xdm.


--
Albert W. Hopkins

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] ps -e

2007-06-30 Thread Cahn Roger
Hi all,

I'm with thunar and xfce.
I can't bring up cdrom or cdrw when I put in
a cd or dvd. I must do it with a terminal, and then
I get an icone on the desktop and it works well.

In contrary, the usb-key works normally and an icone
appears on the desktop and I can read what is in it.

In ps -e I have hald, hald-runner and hald-addon-acpi
but not hald-addon-stor
This last one appears after mounting a cd, dvd or key-usb.
It remains even after I have cd or key removed.
But it disappears after reboot.

In dev  I have hdc, hdd (cdrom, cdrom1, cdrw, cdrw1, dvd, dvd1)

How can I get hald-addon-stor remaining in ps -e?
Thanks for your help.
Roger


-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] OT serial port program with a gui interface

2007-06-30 Thread James
Hello,


I'm looking for a serial port program, with a simple
gui interface, that can be extended. I do not really
care what language(s) it it built upon (java, c, c++, qt)

It would be really cool if versions ran on both gentoo linux
and windows XP or Vista


Besides a typical serial port control (baud, bits, parity)
I'm need to be able to implement a simple protocols that
send and receive packets between a microprocessor and 
the serial port on a linux/XP host.


Any ideas of something I can use as a starting point?

James





-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] OT serial port program with a gui interface

2007-06-30 Thread Steve Dommett

James wrote:

Hello,


I'm looking for a serial port program, with a simple
gui interface, that can be extended. I do not really
snip
Any ideas of something I can use as a starting point?
  


Perhaps Komport will be a nice starting point:
http://komport.sourceforge.net/

or maybe Cutecom:
http://cutecom.sourceforge.net/

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] OT serial port program with a gui interface

2007-06-30 Thread Pongracz Istvan
Hi,

I just started to play with the same thing, what you need.

I use fltk as gui, datareel for accessing serial port and codeblocks as
the c++ IDE (it supports fltk).

fltk and codeblocks are in the portage tree,
datareel can be download from http://www.datareel.com

fltk and datareel support multiplatform (at least windows/linux), in
codeblocks I am not sure, probably only in linux.

Regards,
István


-- 
IT szolgáltatások, alkalmazásszolgáltatás
http://www.osbusiness.hu
„A humor a méltóság támasza, fölényünket hirdeti 
mindazzal szemben, amit a sors ránk mér.” 
(Romain Gary)

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: OT serial port program with a gui interface

2007-06-30 Thread James
Steve Dommett steve at st4vs.net writes:


  I'm looking for a serial port program, with a simple
  gui interface, that can be extended. 

 http://komport.sourceforge.net/

 http://cutecom.sourceforge.net/


Hello Steve,

Well those are OK but, I was hoping for something with
a few simple input boxes, so the user can input, say
a floating point varialble or an integer varialble
inside the box, then my program would use the
9600 baud serial port to transfer the parameter setting
to a specific register on the microP. Likewise the 
program (gui) could interrogate the microP and discover
various settings/values, using the gui interface.
A raw terminal session will work, but, it helps me to 
be able to put simple graphics and other things beside
the IO gui boxes (my jargon is neophyte. maybe they are
called dialog boxes to gui programmers?)

I know how to do all of the serial stuff on the linux
and microP side, I just am not much of a gui developer
(to say the least)

It can be simple to the point of spartan on the gui side
of things, I usually use C underneath and on the micro.

Currently, we're using National Instrument's CVI to do this
on the PC, but, I'd like to get away from NI...
http://www.ni.com/lwcvi/

I do not need anything as feature rich as CVI, just something
simple to build the gui side of things and which will run
on XP and gentoo(kde).


James




-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] eaccelerator messes up virtual webapps

2007-06-30 Thread Kent Fredric

On 6/30/07, Christoph Erdle [EMAIL PROTECTED] wrote:

Hi,

I encountered a really annoying behavior of eccelerator.

On my server I run several installs of wordpress using gentoo's
webapp-config, all up to the same version. When the cache is empty
all works as expected, it caches the called php pages. BUT when I
access a different install of wordpress I get the sites that were
cached for the installation i accessed before.

In the log of eaccelerator I see that the hits are for the wrong
locations on the file system, it seems that eaccelerator only caches
an checksum of the files accessed but not their actual path. E.g. all
index.php for all wordpress installs are the same, as they are
installed via webapp-config, and the cache hits for the first one
accessed.

Are there any possibilities getting eaccelerator to run on a vhost
environment?

Any help appreciated,
Steelynose

--
Solidarität ist die Zärtlichkeit der Völker. (Ernesto Che Guevara)




You could just mass modify the php scripts so the checksums don't fire the same.

If you get desperate for answers :

--
#!/usr/bin/ruby
#
#
#
#   turns ? in all files in the current directory with .php
#   to  /*random:BYTESHERE:*/?
#   we replace the closing tag instead of the opening cos the opening might
#   be ?php instead and we dont want to break stuff
#
def randomBytes()
bchars = %w{1 2 3 4 5 6 7 8 9 A B C D E F}
bcount = bchars.length
output = 
10.times{ |z|
output  bchars[(rand * bcount-1).round]
}
return output
end



# Foreach PHP File
Dir::glob(**/*.php){ |x|
# if already backed up, do nothing
unless FileTest::exists?(#{x}.bak)
output = []
#backup
`cp #{x} #{x}.bak`
#read file
input  =File.new(#{x}, r )
input.each_line{ |line|
output.push(line.gsub(/\?\/, /*random: + randomBytes() + 
:*/? ))
}
input.close;
#write file
replace = File.new(#{x},w)
output.each{ |x|
replace.puts(x);
}
replace.close
end

}
-

--
Kent
ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x|
print enNOSPicAMreil [EMAIL PROTECTED][(2*x)..(2*x+1)]}'
--
[EMAIL PROTECTED] mailing list



[gentoo-user] SanDisk MobileMate?

2007-06-30 Thread Willie Wong
Hi List, 

  Sorry if this is a stupid question: I've never actually owned a
  device using a MicroSD card--until now. I have for myself a Motorola
  KRZR K1 phone, and I am thinking of buying a MicroSD card so I can
  transfer music/pictures between the phone and my laptop. To do that,
  I'll also need a card reader for the MicroSD card. 

  I'm considering the SanDisk MobileMate SD+ 5-in-1 reader, partly
  because I've heard (through the grapevines) that it works under
  Ubuntu and Suse pretty much just plug and play. 

  Does anyone have any experience with this device? Or any other card
  readers? Caveats and suggestions about using card readers with
  gentoo will be appreciated. Do devices like those need any kernel
  voodoo to work, or do they just function as USB mass storage
  devices? 

  Being completely clueless, any suggestion is welcome. 

Thanks in advance, 

Willie
-- 
Fred Lio tells me that chips are best fried with sea salt and vinegar. 
Dang it! Maybe that's what I'm doing wrong. I've been smothering them
in sour cream  onion this whole time!
~DP. Following thread on him blowing his display card
Sortir en Pantoufles: up 205 days,  1:27
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] SanDisk MobileMate?

2007-06-30 Thread Hemmann, Volker Armin
On Sonntag, 1. Juli 2007, Willie Wong wrote:
 Hi List,

   Sorry if this is a stupid question: I've never actually owned a
   device using a MicroSD card--until now. I have for myself a Motorola
   KRZR K1 phone, and I am thinking of buying a MicroSD card so I can
   transfer music/pictures between the phone and my laptop. To do that,
   I'll also need a card reader for the MicroSD card.

why? Is the KRZR so much worse than a RAZR?

With a RAZR you just connect the phone to the computer with the usb cable, and 
you can transfer the data. No need for a card reader.


   I'm considering the SanDisk MobileMate SD+ 5-in-1 reader, partly
   because I've heard (through the grapevines) that it works under
   Ubuntu and Suse pretty much just plug and play.

all card readers work 'plug and play'. I have a noname 30-in-1 cardreader I 
bought a long time ago for 5euros, that is 'plug and play',



   Does anyone have any experience with this device? Or any other card
   readers? Caveats and suggestions about using card readers with
   gentoo will be appreciated. Do devices like those need any kernel
   voodoo to work, or do they just function as USB mass storage
   devices?

they are just usb-mass-storage devices.

You'll need the 'probe all luns' option under scsi:

[27393.255889] Initializing USB Mass Storage driver...
[27393.255989] scsi1 : SCSI emulation for USB Mass Storage devices
[27393.256050] usbcore: registered new interface driver usb-storage
[27393.256053] USB Mass Storage support registered.
[27393.256229] usb-storage: device found at 2
[27393.256232] usb-storage: waiting for device to settle before scanning
[27398.248597] scsi 1:0:0:0: Direct-Access Generic  IC1210CF 1.9C 
PQ: 0 ANSI: 0 CCS
[27398.249361] sd 1:0:0:0: Attached scsi removable disk sdb
[27398.249445] sd 1:0:0:0: Attached scsi generic sg1 type 0
[27398.250709] scsi 1:0:0:1: Direct-Access Generic  IC1210MS 1.9C 
PQ: 0 ANSI: 0 CCS
[27398.251725] sd 1:0:0:1: Attached scsi removable disk sdc
[27398.251794] sd 1:0:0:1: Attached scsi generic sg2 type 0
[27398.425327] scsi 1:0:0:2: Direct-Access Generic  IC1210MMC/SD 1.9C 
PQ: 0 ANSI: 0 CCS
[27398.426313] SCSI device sdd: 122624 512-byte hdwr sectors (63 MB)
[27398.427558] sdd: Write Protect is off
[27398.427561] sdd: Mode Sense: 4b 00 00 08
[27398.427563] sdd: assuming drive cache: write through
[27398.430069] SCSI device sdd: 122624 512-byte hdwr sectors (63 MB)
[27398.431183] sdd: Write Protect is off
[27398.431187] sdd: Mode Sense: 4b 00 00 08
[27398.431201] sdd: assuming drive cache: write through
[27398.431213]  sdd: sdd1
[27398.432973] sd 1:0:0:2: Attached scsi removable disk sdd
[27398.433193] sd 1:0:0:2: Attached scsi generic sg3 type 0
[27398.434438] scsi 1:0:0:3: Direct-Access Generic  IC1210SM 1.9C 
PQ: 0 ANSI: 0 CCS
[27398.435940] sd 1:0:0:3: Attached scsi removable disk sde
[27398.436177] sd 1:0:0:3: Attached scsi generic sg4 type 0
[27398.436393] usb-storage: device scan complete

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] SanDisk MobileMate?

2007-06-30 Thread Willie Wong
On Sun, Jul 01, 2007 at 05:31:29AM +0200, Penguin Lover Hemmann, Volker Armin 
squawked:
 On Sonntag, 1. Juli 2007, Willie Wong wrote:
 why? Is the KRZR so much worse than a RAZR?
 
 With a RAZR you just connect the phone to the computer with the usb cable, 
 and 
 you can transfer the data. No need for a card reader.
 

Oh? My inferior googling skills didn't show whether that is possible
or not; perhaps I should give it a try. 

 they are just usb-mass-storage devices.

Much thanks for the information.

 
 You'll need the 'probe all luns' option under scsi:
 

W
-- 
`You ARE Zaphod Beeblebrox?'
`Yeah,' said Zaphod, `but don't shout it out or they'll all 
want one.'
`THE Zaphod Beeblebrox?'
`No, just A Zaphod Bebblebrox, didn't you hear I come in 
six packs?'
`But sir,' it squealed, `I just heard on the sub-ether 
radio report. It said you were dead...'
`Yeah, that's right, I just haven't stopped moving yet.'

- Zaphod and the Guide's receptionist. 
Sortir en Pantoufles: up 205 days,  2:06
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] SanDisk MobileMate?

2007-06-30 Thread Hemmann, Volker Armin
On Sonntag, 1. Juli 2007, Willie Wong wrote:
 On Sun, Jul 01, 2007 at 05:31:29AM +0200, Penguin Lover Hemmann, Volker 
Armin squawked:
  On Sonntag, 1. Juli 2007, Willie Wong wrote:
  why? Is the KRZR so much worse than a RAZR?
 
  With a RAZR you just connect the phone to the computer with the usb
  cable, and you can transfer the data. No need for a card reader.

 Oh? My inferior googling skills didn't sho w whether that is possible 
 or not; perhaps I should give it a try.


with the RAZR (hopefully the KRZR is similar) you have to go into Preferences 
(or setup or however it is called in english), connection, usb-setup and 
set 'standard connection' to 'memory card' - with 'data/fax connection' the 
telephone will behave like an usb modem - needing the cdc-acm-driver and 
accessing the memory won't work.

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] SanDisk MobileMate?

2007-06-30 Thread Willie Wong
On Sun, Jul 01, 2007 at 05:31:29AM +0200, Penguin Lover Hemmann, Volker Armin 
squawked:
 why? Is the KRZR so much worse than a RAZR?
 
 With a RAZR you just connect the phone to the computer with the usb cable, 
 and 
 you can transfer the data. No need for a card reader.
 

Perhaps, but I am not quite sure. I'll have to get a MicroSD card and
try again. Currently (without the SD card) when I plug in my phone
from the USB cable it detects only as a full speed USB device and
not a high speed USB2 device as the user manual for the phone
suggested that it should. (And yes, this is the same port from which I
just unplugged my external harddrive which is read as a USB2 device.)

One possibility is that the phone won't be detected as a mass storage
device until I put in a SD card, despite it having some 20M internal
memory. 

W
-- 
A hen is only an egg's way of making another egg.
-- Samuel Butler
Sortir en Pantoufles: up 205 days,  2:27
-- 
[EMAIL PROTECTED] mailing list