Archive for May, 2006

Common Linux problem: USB Hard Drive read only

Well, i've a small problem here. My system, automatically detects and mounts my USB hard drive. However, it puts it on read only mode although i can clearly read a rw option in /etc/mtab. Does anybody know why, and how to override this?
Lopa: man fstab
Lopa: and also man mount
Lopa: adjust it's mount parameters in /etc/fstab file
i was always capable of writing to it, it's just that today it doesn't, i'm not sure what i've changed

Read the rest of this entry »

Comments

Burn CD from ISO file for Linux on Windows OS

do i need a special program to burn linux iso file in windows? normally when i burn them they dont boot
nope
neros works
-s
as long as you burn as images
yep
burning 1 file to a disk, makes no sense at all
:/ i remember having to write about 1MB of files to a CD
:)

Read the rest of this entry »

Comments

Linux bootable partition problem

Can I ask a linux question of somebody here?  I'm a little confused about my networking setup
strange problem.. I install a fresh slack10.2 distro on a new machine.. with my older drive as a secondary slave .. it booted windows98 fine previously(the new hd), so I install fine.. lilo does conk out, but when I go to boot the partition from the boot cd.. it halts and says invalid device @ hda1 (I later booted the sec. slave fine.. ) did my lilo attempt f' up the partition? it mounts fine on the sec. partition boot.. or where else shoul
Read the rest of this entry »

Comments

Can't connect to MySQL server on 'localhost'

E:\www\mysql\bin>mysql
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
that's the mysql client
not the server
christin http://dev.mysql.com/doc/refman/5.0/en/can-not-connect-to-server.html
thanks nick
let me try to read it
you are lazy
or clueless
or both
or illiterate
here you guys can deal with him/her
pfft
thanks
:(

Comments

Weight pulls out of MySQL

how do i do weighted pulls out of mysql?  i'm doing a banner rotator but i want to make it as "weight" where certain banners will show up more often then others
order by rand()*weight
weight would be a column in which you would specify the weight for each row
oh ok
that's pretty easy :)

Comments

PHP preg_match wont work

can someone tell me why my preg_match wont work? if(preg_match("/[a-z0-9]/i",$_POST['hash']))
rab_: what 'wont work' ?
syc, it supposed to only allow a-z and 0-9
^[a-z0-9]+$
Although you may want to allow A-Z as well
In which case you could just use if (ctype_alnum(…))
he has /i
oh

Read the rest of this entry »

Comments

PHP: image to be resized after i get it uploaded

can someone help me I need help. I need a image to be resized after i get it uploaded, so that its viewable on a page on my homepage.
I didn't know if there is a function, that pass variables like size, and stuff i can use?
Best thing to use is: GD / gdlib. Check this link: php.net/gd

Comments

« Previous entries ·