Archive for January, 2008

hi guys when I add userpriv to the FEATURES var in makeconf portage should emerge the packages as user portage

Last time this happened to me I left a SATA driver out, and then sda became sdb for some unknown reason on top of that. But I make sure to get all the drivers built in this time.
I ran into to that on my HP notebook

i'm having troubles with my mirror in make.conf
what's a good one to use

Is there a way to find out from within grub what it is labeling drives? (i.e. /dev/hd* rather than (hd*,*) )

Mr_Grieves_, no, but the kernel will print that information out as it probes them.

Where are you from ?

michigan, usa
i'm using the michigan tech ftp mirror

hows that goin?

And ? Maybe dns problems ?
Try using MIT ? dunno

michigan tech is waaay up in the UP, that'll be slow

it doesn't have a bunch of the files/application i want

I'm quite sure there're so many mirrors in the US that all you gotta do is pick randomanlly

can you tell me a good one? idk where the list is

I'm not from the US sorry

? mirrors

http://www.gentoo.org/main/en/mirrors.xml

^^^^

oh hey thanks

er, where is the clearlooks gtk engine ?

are you in Michigan?

thrice`, gtk-engines

I'm from Michigan also

not too bad, I have to quit chrooting to get xorg config correct though

now after i change that, is there a certain command i should run

which file must mplayer open for the DVD to play? the main IFO or one of the IFOs?

it is really nice to do a lot of setup through chrooting

very true

yes i am

why cant you chroot to config xorg?

you were using wmich.edu ?

well, starting it through chroot wouldn't be good, and when I ran xorg -configure in chroot it crashed my system

ah, mtu.edu

no, mich tech

barque, none, mplayer dvd:// -dvd-device /path/to/blah

might try http://prometheus.cs.wmich.edu/gentoo

well, at least it locked up my screen and left it flashing wierd colors.

could someone tell me if my system will auto detect any modules at all? for the record my kernel is generated with genkernel.

might be a good idea, wmu is 10 minutes away

jamesb:

-dvd-device /dev/hdc?

I have the University of Florida (engineering uni) Gentoo mirror just down the road
the connection is like 500 times faster than using the default ibiblio/osuosl ones

barque, sure, if /dev/hdc is your dvd drive. If you have a /dev/dvd symlink, you can just do mplayer dvd://

ok, I had to log back in to get the web page for configuring xorg, links is nice, but don't like surfing with it

oh crud, I heard the sounds from the DVD but not video output
emerge -pv mplayer?

that was the res test, you would have ended it with ctrl+alt+backspace

it has 'dvd'

you need several flags for dvd video

ok I've got 'dvd' … what else?

there's a nice gentoo-wiki.com page about it

no another one

I did the ctrl+alt+backspace it didn't like it, had to hold the power key.

weird…. haha

sure …. I'll read it

I thought I had messed up my Kubuntu and left me with nothing.
ok, I'm logging out to boot into my Gentoo and config X Thanks.

i believe you need dvdnav and dvdread turned on as well

hello

possibly others too

umm
how did you just 'switch' some new flags on?
I forgot

"emerge world" is stopping becouse it cant emerge beryl-core-9999
and i dont want beryl anymore

man portage and pay attention to package.use

oh yeah I know how to through package.use

might want dts, a52 and aac if not turned on already

x11-wm/beryl-core-9999 failed.

just 1 thing, if I add multimedia/mplayer gtk*, it will just 'add' gtk to the USE flag list… not override the entire list with just gtk

package.use is only for that package

emerge -C x11-vw/beryl-core didn't work

and don't put * next to it
LZZ isn't it x11-wm/beryl-core?

will it simply add 'gtk' or , override the default USE flags for that package?

yes
i writed wrong sorry

cause emerge mplayer already had some flags on

package.use

look, i tryed to uninstall beryl, now emerge world try to install it and fail…

I wouldn't be bothered if mplayer had all modules installed :P
LZZ, it won't go away?

Does anybody know any good open source CRM solution, other than vtiger or sugarCRM ?

add -pvt to the world arguments to see what's pulling beryl-core

ok I had a little bit of a problem myself too with Compiz-fusion

anyone that know a website with info on module names and what the represent?

I had made it my default WINDOW_MANAGER by making 99lcaol including WINDOW_MANAGER="compiz"
I had to remove 99local and do WINDOW_MANAGER="metacity" and env-update
99local*

ok
can i paste 4 lines?

rafb.net/paste

how do i figure out which of the 10 modules on the livecd for sata drivers is actually being used by compy?

http://rafb.net/p/LqXX1Q87.html

it's usually not hard to tell since it depends on the controller chip. that can be found with lspci

lsmod ?

eh. give me a minute. let me boot into the cd again…

hi, i'm using gentoo 2.5.20, do i have to gensync with anything?
err 2.6.20

is that a kernel or a very old version?

also note grknight 's advice… lspci to figure out what the chip is

grknight, thats the kernel

never heard of gensync before

grknight, ok. when i was using vlos i had to gensync with them
grknight, like a portage overlay

the only sync you do in Gentoo is `emerge –sync` for the main portage body

How can I filter out irrelevant VIDEO_CARDS?

grknight, ok, thats what ive been doing. just wanted to be sure i wasnt missing anything. thanks!

add VIDEO_CARDS="(yours)" to make.conf

When I prefix the undesired options with the minu sign, I get:
Invalid '-' operator in non-incremental variable 'VIDEO_CARDS': '-neomagic'

so, gnome-base/gnome, gnome-extra/gnome-media and gnome-extra/nautilus-cd-burner are pulling beryl-core?

just put yours and it will remove others

i cant unmerge it

thanks.

the default is to pull them all

I noticed.
Usually, I like the kitchen sink approach; however all those years of having to wait hours for a single X compile has left me with the urge to purge as many modules as possible.
how about the "threads" flag?
good idea or bad idea?

usually bad for many packages unless you know what you want it for
it usually does not mean multi-threaded

I wish they had that note for that flag, much like 'pic' and ' bashlogger'

threads can be good or bad.. it really depends on the package. perl, for example, can get real touchy with threads (or is it ithreads) on

I noticed In fact, I don't think it's ever worked with PHP.

php 5.2 has made that much better.. but as they say "PHP is glue. It was never designed to be threaded at any point."

Hear, here!

I'm sorry for asking yet another ati driver question - I'm getting slow fps on glxgears and fgl_fglrxgears with the closed source ati drivers. I was wondering if there are some guides for helping me get some better numbers out of it

Finally, what's your take on paludis?

does glxinfo show "Direct Rendering: yes"?
great uninstaller.. but that's all i'll say here

yes

what kind of fps are you talking about?

about 250 in root for glxgears

which card? i was avg 850 or so for my X800 on a amd64 platform

wow, really — the guide showed the same card as me in the thousands — 9600SE 256meg
well minus the SE
oops

Is there anyway to blacklist a bad dhcp server? Someone on my LAN is running their private dhcp server on the LAN, sending NAKs to every dhcp transaction on the LAN.

you might do better with open-source radeon.. and you could run AIGLX + beryl if you wanted with that

not too interested in beryl — but is the opensource that much better?

for you're card it won't make much difference.. but you might see a speed boost with radeon

ok this is sad
neither vnc nor nx read the fontpath in the xorg.conf

alright — Thanks

would settign up a font server hosting be a good alternative?

to my knowledge there is no way to blacklist a dhcp server

BindlessTux, thanks.

only with a firewall really
i bet iptables can do it with a linux box.. but i'm no expert in that

are your switches 'smart' (ie: managed)… do you have access to them?

grknight, I think iptables is no good since dhcp is run lower than the ip layer. I would need a box inbetween with established ip to block that (which I don't have).

hrm did not think about that, could do some packet blocking based on MAC addresses possibly in iptables

sonicGB, I believe they're all (or at least partly) hubs, but either way I have no access.

is this for YOUR computer that is getting invalid dhcp's or for your network?

can iptables do mac adresses?

you can figure out the MAC addr of the rogue dhcpd with snort or ethereal, then log into the switch and find out which port that mac is on… and then go and beat the offending user with your LART :-)
do you need to solve the problem for yourself, or for the whole network?

Your idea is by far the best

pozican, both… the network runs a dhcpcd server, it's just that this person has a private jvm hosting dhcp server running for a backend lan, but its listening on the open network and its complaining about every dhcp transaction that it didn't send.

are you referring to the diagnosis, or the physical beating? :-)

Of course the beating

I have the mac adress, I just don't know if I can use that with iptables.
It's a problem for the whole lan but I assume the admin's gone home for the evening.

you know who it is? what box it is? if so, just go and reconfigure the dhcpd to stop listening on the interfaces it's not supposed to serve and/or not to answer queries from certain directions

sonicGB, wish I could. It's a university network, so even with the MAC, I don't have access to the bad dhcp server.

this might sound a bit wierd, but even putting a slow old 10Mbit/s hub in line with the offending box might be enough to give the 'real' dhcp server enough time to respond to clients first… it might work as a short term (overnight) fix…
ahhhh, a university network, why didn't you say so! … I know exactly where you're coming from (and I feel for you!)
uahhhh, a university network, why didn't you say so! … I know exactly where you're coming from (and I feel for you!)/u
at the university where I work, the correct approach would be to not bother attempting to resolve the problem and concentrate on getting to management with your side of the story first! :-) (he who speaks first wins!)

Funny, I work for the gov — My response would be to disable the port on the switch
customer service ftw

I don't think it's a problem of getting them on my side, since backend lan's are prohibited for this reason (I have one regardless ) but it's just a matter of the wait time before they get back to me.

if ksool 's org is anything like mine, the switches are controlled (and guarded) by someone completely unrelated in another building who (1) has already gone home and (2) wouldn't help you anyway

lol, I guess I'm glad I'm in a small enough group that we all have access to everything

it's a nice way to work, if you can get it

I guess I'd argue our drama outweighs — got threatened with my job today for taking comp time authorized from my superior

believe it or not.. DHCP uses UDP ports 67 and 68.. so there must be a way to filter it

0 -j

Wow, good information — I was not aware of that

presumably that required mac suppose compiled in to iptables
support

sonicGB, thanks I'll gill that a try. I had seen a bunch posted that iptables couldn't help with dhcp since dhcp listened directly to the interface.

no ksool, dhcp is pretty much just another app… nothing special… it sends and listens for broadcasts when it's getting a new address, then reverts to directed communications once it knows where the dhcp server is…
like grknight said… you can just block the ports… and allow only from the 'real' dhcpd's IP.

sonicGB, yea, I think you're right. I had tried to block just the dedicated ip in iptables with no luck. I did read something though that dhcpcd can't utilize iptables rules until after you're setup on the network since until that point everything is done by mac address.
BTW, if I drop something with iptables, will those packets still show up in ethereal?

Hey does anyone know .. i though secondlife was in portage
did it get taken out?

I'm not sure… I'm guessing that iptables will probably get to it before ethereal does

sonicGB, sounds about right. So now I have no way of knowing if the iptables mac filtering worked or if the guy just took his router off line.
Thanks guys, major help.

hi
anybody got an iPhone?

if you still have trouble, you may need to look into ebtables stuff. designed for bridging, but may do what you need if iptables can't do it itself.

What do you need?

jus axing

no, just finished reading the Anandtech review though

^^ jus axing

how did it do in the review?

which review? about iphone?

w00t anadtech review, listen if h4×0rz are able to put linux host on it, that shit got a lotta potential and amma get one

oh no

will there be a Gentoo branch for iPhone?

language.

Skunky, will do if iptables fails. Seems like it would entail a lot more work. Esentially putting a bridge between my comp and the network to do the filtering.
bSkunky, will do if iptables fails. Seems like it would entail a lot more work. Esentially putting a bridge between my comp and the network to do the filtering./b

also, try to speak english in addition to not cursing.

iGentoo ROFLMAO

….

ok

broken, I don't know if it was ever in portage, there is an alpha client. See http://forums.gentoo.org/viewtopic-t-429739.html

I get an error, *** Skipping everything below this failed directory *** when "emerge sync"ing

it isn't the features, it's just the interface that makes lots of tasks easier (compared to Blackberries etc) — their conclusion

Thanks for the summary

is there a Gentoo arm channel?

battery life is still rather shocking at ~6 hours

iPhone trounces Blackberry, period

/topic

k

linux on the ipod never took off, so it's doubtful you'll see anything really productive Linux-wise put on the iPhone
ulinux on the ipod never took off, so it's doubtful you'll see anything really productive Linux-wise put on the iPhone/u

playstation, aye? scary.

on the other hand, I think a geek would probably be very proud to announce they got linux working on the iphone… See about Linux on iPod.

oc'able to 800Mhz
I've notice Java has been broken up into a thousand packages
hallmark of Gentoo

hello, i was hoping someone could help me. i got to the part in the installation where you restart. when grub loaded and i selected "gentoo linux" on the menu, grub flashed a screen with a an error saying kernel /boot/kernel-2.6.21-gentoo-r3 root=dev/hda()/ init=/bin/bb couldn't load ()being the drive number
partition number*

hi

i rebooted into a live cd
how can i get the proper kernel path?
and how can i now put it into the /boot/grub/grub.conf file?

qxzy, did you copy your kernel to /boot?

i'm not sure.

you need to specify the drive: root=dev/hda()/

when u finish kernel compilation, you must copy bzImage to a proper place

qxzy, it is bzImage

ah yes, i did copy that to a directory

or use make install inside /usr/src/linux/ better way than doing it manually

lbracher you could actually point grub to it in the kernel source directory

so the link should be /boot/bzimage?

qxzy, is boot mounted?

i don't think so, i believe i'll have to chroot back into the environment right?

tdr, what if you make clean?

timmy_boy that would just be silly

Yeah, chroot, qxzy.

I am about to do an install

if I have over 4gigs of ram and use gentoo 32bit how do I make it so all the ram is recognized and used?

qxzy, can u show us the lines that begin with 'root' and 'kernel' in your grub.conf?

in what scenerio would /var need 2G? I have been using 2G in var but it isn't nearly as much filled up

here is how I am doing it: 1. mount -rw /boot 2. cd /usr/src/linux 3. make oldconfig 4. make menuconfig 5. make && make modules_install && make install 6. set grub to the proper location (if using make install, then this only needs to be done once)

could /var get by with 1G?

is there pae that I need to enable somewhere?

how does your grub line look?

hi, if the livecd can detect all the hardware, if i use genkernel will it also detect all teh hardware on boot?

the error message tells very clearly, that you don't have a number of the partition specified.
you see the empty brackets?

i put the empty brackets in there
it's 4
/dev/hda4
that was what it showed

and this is where your root resides?

i have no clue how to get back to the /boot/grub/grub.conf file
i've tried chrooting, but when i "chroot /mnt/gentoo/ /bin/bash" it says that /bin/bash doesn't exist

boot from the livecd

ok I will use /var on a 512MB partition

that's where i'm at right now

hmmm… hold on

i rebooted into a live cd so i could edit the grub.conf file but i don't know how to get there

mount your / partion mount your /boot aftwards, then u can access it then
thats if ur not using raid.

you don't need to chroot to be able to edit grub.conf, you can do it directly from live cd.

no raid
great, how?

mount your boot partition to /mnt

mount /dev/hd* /mnt/gentoo
mount /dev/hd* /mnt/gentoo/boot

mount it first

i.e.

nano /mnt/boot/grub/grub.conf

vi …
pico …
emacs …
just to point out a few

=D

nano /mnt/gentoo/boot/grub/grub.conf

whops yeah timmy_boy is right i forgot the gentoo

I'd recommend vi over nano

Some genius thinks vi shouldn't be in stage3.

how i can reinstall or repair whole kde + xorg etc ..

what?

That was sarcasm.
Vim is clearly the best, but someone can't see that.

kernel /boot/kernel-2.6.21-gentoo-r3 root=/dev/hda4 init=/bin/bb

ah, then don't forget the nex time

Hey does anyone know .. i though secondlife was in portage
did it get taken out?

you never have to deal with grub again, if you set it up for `make install` as I recommended above.

there isn't a line that begins with root

I agree, that's retarded
ROFL@some genius

I think lynx should be in stage3, but I am just some random user.

I think it's a bug
it is
the bad thing about lynx is that it cannot create an AOL email account :-(

are there any good instructions for stage 1 installs

I'm trying to "emerge -auDv world" but its trying to emerge a package that has fetch restrictions, how do I tell emerge NOT to update such package?

i dont want to go with stage 3 because the whole point of gentoo is for it to be optimized to your computer

Stage 3 will be just as optimized as Stage 1.

please do not lie to me, i am not an idiot

its not a lie

I have no reason to lie to you. You end up in exactly the same place.

i think i fixed the problem *fingers crossed*
thanks guys

i want my core system utilities to be optimized with instructions supported by my processor and with sse math instead of coprocessor math

when you do an emerge -e system, that's exactly what that will do

bigbuford, emerge -e system

bigbuford, it will be once you emerge -e system
which is part of the install process

what the hell is the point of that
why not just do a stage 1

howt i can reinstall kde ?
-t

i used to do it and it worked just as well

emerge -e system thrice for your pleasure
didn't you say you weren't an idiot?

otth, me? I don't think so

sorry that was meant at bigbuford

stage 3… be my guest. It won't make your system any faster.

my bad

hey guys, what options would I use when attempting to mount an ext3 volume that i'd like members of the users group to have full read/write access to
?

hmmm, it's lunchtime here in .au… I think I'll have something with….. rice…

I think emptytree is for compiler upgrades, right?

chown the group for the directory (after mounting) to 'users'?

dude sonic

It's general purpose.

rice is for brown people

user in fstab and then chown -R user /dev/hdX

I'm white as snow, and I love rice.

i do too

chown won't stay with udev

but it is important to keep cultural barriers, so we must resist the temptation of foods eaten by brown people

I have a system with it's root partition encrypted via luks. I currently use a passphrase to access the drive. Is it possible to add a key on a usb stick in addition to the passphrase? Such that I can enter a passphrase if the usb key is not present but not require a password it the key is present.

yes after fstabbing it

Besides being potentially offensive, you're drifting off-topic.

hehe, well it booted, but i think the kernel isn't configured correctly because i received a message, something like "/bin/bb: can't access ttyl, job control turned off"

hi

mm… italian Rissoto

does this mean i have to chroot into the environment and reconfigure the kernel?

what is a Nocturnal Monster Puppy?

hey boghog

you quite ignorant right?

beats me

Please do not feed the trolls.

im a backwards ass redneck from down south pissed off because i have to live in the northern parts for the time being

do you have Root Plug support enabled in the kernel?

root plug? never heard of it

CONFIG_SECURITY_ROOTPLUG

love the topic…
the last part of it.

lol

finding a problem with vnc and freenx - 2 hours, researching alternatives - 1 hours, setting up xfs java server hosting - 10 minutes, changing 3 lines in 3 config files - 5 minutes….. knowing that after an upgrade I won't have to retype many lines of fonts…..PRICELESS

I never have gotten more than marginal sucess with freenx

how do i stop macroblocking with an hdtv tuner

success, even

anyone know why bbkeys won't work within opengl games, and what I can do to change that?

really? it has worked liek a charm from me for couple of years

anybody tried quadcore? Besbuy or Compusa is selling a Desktop QuadCore for $999 o.O

is it easy to compile a package for basic 486, when your settings aren't like that?

what seems to be the problem

hmm, doesn't seem like what I'm looking for. I know Luks has the ability to use a keyfile from a usb stick but I'm not sure how to use one for an encrypted root (whole disk)

In essence, my problem seems to be that possibly due to the session resume feature, it takes me 2-3 tries to successfully establish a connection.

strange

..

oh..
doh. wrong window.

I have a question
with the obscene and dirt cheap ammounts of RAM available today, why isn't compiling in RAM lighting fast?
in the Gentoo wiki the results aren't significant

can someone tell me how to "make my system ready for dbus"?
according to banshee, it is not

I like using tmpfs in /var/tmp/portage.

USE="dbus", I belive.

ah….

is that for compiling?

yeah

and then i would have to recompile….. world farrioth?

I think the entire process where emerge uses for compiling should be mounted in RAM, if there a part touching the hard drive then it won't have any impact

just tell emerge that you changed use flags and it will recompile whats needed

is it okay, to have swap first, then / then /home?

emerge -N world
Sure.

trying to install gentoo live cd but get the packages from stage or whatnot

ahh, ok
thanks

I don't need.. /boot swap / and /home do I

No problem.
No, but it's recommended.

oh okay

I found it really helps for glibc and other compiles that are hdd intensive.

I'll delete all the partitions.. gee I wish you were here when I was trying get help earlier
others have been being real rude on the net.. suse was totally being rude
at least a few users were

How annoying. It's been pretty quiet here the last few days…

well, I wish I knew someone I could work with, on trying to learn gentoo.. I was using debian for quite a long time, and some others.. but I"m just tired of debian, I also work with a windows xp pro vlk.. because of software i use, and mix etgc
but you see, I'm just trying to make some friends, whatnot. and then in return also help others..
so for entering the size.. do Ihave to put 100MB for boot.. or does having MB even matter

do you mind sharing fstab line to mount /var/tmp/portage in RAM?

and alot of reason also why I want to use gentoo farrioth , is because I want to get good with source compiling.. I spent over 8 hours compiling compiz-fusion from git in debian etch, and dealing with dep hell

100MB is huge. Mine is 19MB and I've used 3.2 of it.

I don't mind, are you looking at the tmpfs article on the wiki?

well, 100mb is oki with me.. emr
erm

That's why I like gentoo. Portage is the best package managent system I've seen.

:-)
I got da feelin I goin start likin u :-)
lol.. your a nice help

I did long time ago, but didn't manage to get it working. Unless it has been updated

It means you have 100MB less space for everything else.

been havin the worst day ever..

Heh, thanks.

I have though for real, and actually the past couple of days..

tmpfs /var/tmp/portage tmpfs size=2g,nr_inodes=1m 0 0

all I"m trying to do, is install gentoo, and then get use to it, before I do a minimal cd install

do I have to reboot the server to put the new hostname into effect?

You're not using the installer, are you?

well the site says 100 mb

that's with 1Gig ram and 1Gig of swap.

yep, the text mode installer

The site is being careful.

plz plz.. just let me go with that for now

Oh no…
I'll keep quiet about the installer, then.

excellent just like me

is it actually worth putting portage into RAM?

the only time I ever start swapping is while compiling gcc or firefox and it's still not enough for openoffice.

I like to use swap in RAM though

i got a problem tonight
-.- i resolved

so do I have to set.. 100MB or just 100 is okay

there's a bug in qt-3.3.8-r2 compilation
which fails
-.-

I don't think I will use openoffice though

this is in fdisk?

nope

trying to learn vim and latex

the text mode option installer.. on the livecd

anyone that can help me debug my newly installed gentoo systems internet conection?

vim and latex is the way to go

cool learning vim and latex is something ive been doing recently

I don't know, then. In fdisk it's be 100M, so probably that.

okay, I gave it 100

in fact I just finished this pdf file about latex I was reading

vim ftw!

its a dhcp connection…

ext2 for boot or ext3, which I like

Don't ask to ask, just ask.

ok, sorry farrioth

Ext2 is the safe option, which I use. Ext3 probaly works, though, unless you're using an old bootloader.
What's the problem you're having?

okay, I"m going to do swap next
I have 1500 approx ram
1 gb stick and 512 both ddr2, but the 1 gb is corsair , better quality then what acer had in , just the 512

I have downloaded dhcpcd, set dhcp up in the net config file and now when I start up my new system it says eth0 timeout

plus I use vmware as wel, etc
1500 okay to state for ram?
or should I just go with 1024
for the swap, sorry

Is eth0 the right device, is the cable plugged in and is your dhcp server working?

to get support for tty through manual kernel configuration, i'd have to enable framebuffer devices, right?

With 1500 ram you don't really need much swap at all. I'd say 512 or 1042 swap.

gotcha :-)

No, but you probably want to.

moving on to /

do you know what i would have to enable?

I use tmpfs for emerging almost exclusively

For tty?

yes

yes on all 3 and my / etc/conf.d/net says "config_eth0=("dhcp")"

you get noticeable speed improvements

Can you assign a static IP and ping your server?
I don't think it can be disabled.

okay, when I go to do the other part, it exits out.. because.. it shows 5 in there
I have an ntfs partition on this drive as well, as primary

Do which other part?

the big speedup isn't so much during the compilation itself, but with the virtual removal of tar extraction and then removal of the extracted tarball

well i had a problem when logging into my new system /bin/bb couldn't access tty because job control was turned off
i guess i need to turn job control on but i don't know how

I want to use it for /home

no, I can`t ( for the record I'm chatting here on a different computer)

so far though, showing.. 1 1 0- primary ntfs etc.. 25 gb
2 2 0 primary ext3 I have that for 100 mb for boot

create a shell script like the wiki hosting states, make it executable with chmod, throw it in /usr/bin eg. tmerge

Okay.. You're sure the device is the right one?

3 pri for swap, 4 pri ext for / and trying to set 5 for /home

for what?
Vmware?

its only allowing max of 4 pri eh
nope.. /home

make it a secondary partition, then.

because thats where vmware gets installed to anyways, where I put it

But your getty works?

hello guys how do i set my profile?

so, extended?

yeah

im kinda new to gentoo

getty?

99%, I have a wireless card to but its turned of and not a single linux distro i have tryed have found it

eselect?

my live cd works

thats a gag on other.. something else we probably don't support.

see the gentoo docs - Upgrading section

good morning

what chipset?

On your install. You get a login prompt?

http://www.gentoo.org/doc/en/gentoo-upgrading.xml

hey farrioth , make it it says.. for choose file system.. extended?

You have the right module loaded for the card?

friendly12345:8139too

dam, then it exits out..

yes

maybe I should just go with my.. / then swap then /home

nope

thats what I guess I"ll do then..

i need to reinstall kde and xorg .. is it possible ?

i did a search for this problem but all the sites are dutch :/

You're trying to use agetty as usual?

darkclown, I use 8139too. I compile it as a module.

Strange.

i don't know know what that is. i was expecting a plain console, but received an error.

tmpfs /var/tmp/portage tmpfs size=2g,nr_inodes=1m 0 0

farrioth, , I"m just going to test, / swap and /
i mean / swap and /home

Okay.
Do you have VT_CONSOLE enabled in your kernel?

i don't know.

Can you check? It needs to be enabled.

I don`t know if its a whole lot of difference from archlinux ( my old training wheels) but I just loaded it as a module ( if it makes any difference I used genkernel for kernel compilation)

okay, I set the partition layout scheme now.. erm..

I think the help text for 8139too says to compile it as a module. I think you can type genkernel –menuconfig all

Erm..? Next would be filesystems.

i would like to check, but i don't know where to look.

In your kernel config. /usr/src/linux/.config

oh I can mount windows?

anyone got a "rtprio" utility on his/her system, and if so, which pkg does it belong to, please?

I did a.. for 4.. /dev/hda1 /mnt/windows

oki, thanks I guess its time for my second install of everything then :/

Yeah, but ntfs is read-only.

its okay.. I can grab some software from Xandros, or my mandriva powerpack or corporate desktop, and make it right
write

darkclown, maybe you could just recompile the kernel?

and actually, with that nfts g or whatever its called, you can write
and with that paragon etc.. soft I was working with and what i have, I can get things to write
I actually wrote to ntfs, when I was testing Xandros professional 4.1

You can, but it's not really supported. It'll work as well in gentoo as anything else, though.

so no sense in mounting it?

CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
that's what grep gave me with simple search for pty

i just left.. 1 that has.. /dev/hda3 swap, 2 /dev/hda2 / and 3 /dev/hda4 /home
i just left.. 1 that has.. /dev/hda3 swap, 2 /dev/hda2 / and 3 /dev/hda4 /home

hi. I just tried to emerge kde, but it seems that I need to compile =x11-libs/qt-3* with opengl. How to compile that with opengl?

Im gonna take an hour and think of witch of the 2 ill do after all I whana learn the system im working on so the compleat instalation could be good for me to go through everything agin but on the other hand its nice to just get it done even though its just my old crap computer that i practice on before doing major stuff

It doesn't hurt to have it in.

k

USE="opengl" emerge qt-3

yeah, because I want to mess with my codeweavers pro on some things ;-)

CONFIG_VT_CONSOLE?

eselect profile set default-linux/x86/2007.0/desktop gives me an error

use the #

doesnt appear to be valid

just type it exactly like you wrote, p4r0l3?

kcmack:
samething

Put opengl in your USE and do emerge -N world.

How do you run mplayer with the GTK look… without opening a file to play

=yes

like just fire it up

yes

installation started.. well I"m gettin somewhere

target number 4 doesnt seem to be valid

gmplayer

okay, thanks

actually USE="opengl" emerge =x11-libs/qt-3

which stage do you want to start at, 3 Stage3 is a basic system that has been built for you no compiling or something

Can you do a grep CONSOLE .config and pastebin the output?

thanks timmy_boy

okay. I'm new, i really don't know all commands.

the other 1, is 3+GRP a Stage3 install but using binaries from the live cd when able

USE on the commandline is not recommended.

man Gentoo (or should I say GNU/Linux Gentoo) kicks raw buttocks

o_O

my Desktop is soooo looking sick

Stage 3.

I agree, barque.

link it by hand

will do just as soon as vim is through being emerged.

Okay.

how would you get opengl into the USEFlag?

oh cool.. do you want to generate a stage3 on the fly using the filse on the livecd fastest.. or internet

my eselect doesnt have default-linux/x86/2007.0/desktop

specify the URL

timmy, I have like a Metacity theme with black color, a b/w background and gmplayer with Ater skin

where do i get it?

thats the 1 I want.. url
not cd ;-)

and also green text with transparent black bg for xterm

http://www.gentoo.org/doc/en/gentoo-upgrading.xml section 3

nano /etc/make.conf and add it

It's like w00t!

ah nice, it has the mirrors right in there..

semprix_, emerge –sync && emerge eselect

meh, only problem would be later packages may not be compiled with the flag…but its a quick fix i would have made

g'morn

I wonder who has a nice stable, fast mirror

a new glibc got released and one of my boxes cant compile host because of thread stuff.
because of this "i dont want to compile the glibc" behaviour i cant emerge anything because gc and gcpp give errors that they cant compile executeables anymore

ok, thanks. and after that, just emerge x11-libs/qt-3 ?

yeah

http://nopaste.org/p/ajaTFe7ch

ok

it would be useful in testing to see if compiling with the flag would result in a successful compile..if so the flag could be added to one's make.conf

My last system got broken because of that.

screenshot?

i seen that ibiblio.org before though as well, guess there good eh?
but I live in IL, so shouldn't I choose indiana farrioth ?

ibiblio is good, but I'd go for the one cosest to you.

I like the text mode installer, better than I do the gtk 1

reisio, give me a minute

ibiblio and osuosl are like the default, _SLOW_ but reliable ones
grep MIRRORS /etc/make.conf.example
? mirrors

http://www.gentoo.org/main/en/mirrors.xml

I'm just going to go with indiana. been there before.. and through other states.. quite liked it

I don't even specify mirrors. It's optional.

okay.. select your desired stage tarball

rofl

I'm not going to forget what I did and the help I got from you guys
plus, so I can help others..
I"m not sure which number I should do :P
it just shows a 1 there

You will first need to update binutils and gcc, then glibc.

go for 1 then, I guess :p

It says that right there in the output you pasted: "* Please update your binutils/gcc and try again."

crap , I did someting. screwed something up

but neither binutils nor gcc want any updates - so why recompile. even binutils and gcc dont have thread flags

That's what the installer's for…

You will *first* need to update binutils, then gcc, then glibc.

no, I don't specify the number of inodes

Trust me.

i will trust you any special compiler flags needed?

None.

crap, its having problems mounting my swap.. going to redo

then i will try, thanks

Make sure you use the right compiler too.

I don't use a fstab entry eithe
either

Do `gcc-config -l` to find out which one you are using now.

crap, now the whole dang thing exiting

What does it say about the swap?

checking whether the C compiler (gcc -O2 -march=pentium4 -pipe ) works… no
error: installation or configuration problem: C compiler cannot create executables

i had accidently hit a key when I was choosing the stage tarball
trying to redo things

only having one gcc installed - but it says C compiler cannot create executeables

Which version of gcc?

okay I got it back

"mounting /dev/mapper/hpt45x_fifcdhcbi3 on /newroot failed: invalid argument" Can someone please help?

[1] i686-pc-linux-gnu-4.1.2 *

okay, and the thing is.. it puts swap automatically as the first 1, it mounts I guess

still working on getting it pasted, i'm emerging links now so i can paste the output. i don't know how to copy and paste between consoles.

What package is that configure check line from?

The order isn't too important.

I can change the mount options can't I?

binutils

oh okay

especially while chrooted into another environment

Which version of binutils?

http://img152.imageshack.us/my.php?image=screenshotqt2.png

Okay sure. gpm. But you want to use wgetpaste.

dang it

reisio, like it ?
I know I do

http://nopaste.org/p/a2q7220Js

where?

i cannot get suspend2 to work

the link ^^
http://img152.imageshack.us/my.php?image=screenshotqt2.png

there ws an exception recieved during the install that is outside of the normal install errors. This is a bad thing. The error was: Mount Error:FATA: mount_local_partitions: Could not mount a partition etc

gpm?

when i do hibernate it appears to work, shuts off
but when it comes back up it acts as tho it is just turning on
nothing is restored

are you saying i want to emerge wgetpaste?

For copy and paste.

and then it goes on to saying i have several ways of handling this, submit a bug report etc.. and so on

Yes.

and yes my suspend2=swap:/dev/hda5 is working

While we are at it, could you post `emerge –info` too, please?

…. :P

should I just reboot the live cd then?

Install manually.

zoo the livecd simply doesnt work yet

anyone know why the lexmark-x35 third party ebuild is masked?

Hmmm maybe I should selected black for my Window background

http://nopaste.org/p/aVvurnlYz

can't..

if a manual install appears too daunting, id suggest going to arch or fedora

scarrred :P

reisio, hate it? love it? what do you think?

i'm going to get the mugg to work

x35=z35

because I almost had it.. I exited out of something on accident in the choosing stage.. of the mirrors

installing manually isnt even hard compared to getting simple things such as power managment, wifi, and even gnome/kde working

I'll be back

zoo
dont bother, im serious

wasn't expecting GNOME :p
green on black is always fun for terms

what were you expecting? xfce?
I am no zomgl336+1hax0r

increase the verbosity level in /etc/hibernate/common.conf

Could you try emerging binutils without the -march=pentium4 in CFLAGS please?

deleting them from make.conf and then emerging or are there any useflags i dont know?

Nothing to do with USE flags. Just try `CFLAGS="-O2 -pipe" emerge binutils` and see if it gets past that failing configure test.

http://nopaste.org/p/aqrQp9nPpb

i recovered quickly on that, now I"m at which method do you want to use to sync the portage tree for the installation?

Could you try and see what `emerge -vuaDN world` wants to update?

Sync, Webrsync, Snapshot, None

sync

Oh, and update your profile to 2007.0 while you are at it.

g'day

they say.. Sync which its on.. Normal. Use emerge sync Recommended etc
I figured you would say that .. thanks.

emerge -avuDN world — better

recovered from that issue, just got to be careful with the finga's ;-)

does anyone know of a guide for setting up sofware mode glx?

http://nopaste.org/p/aJX2T8cIR …. how to update profile and whats that profile for?

Profiles are intended to set defaults for specific kinds of platforms.

dam, it errored out
I can drop to a console and then retry on return it says

At every Gentoo Release (new stage tarballs, new CDs and stuff) a new profile is created to reflect some of the improvements in the defaults used to compile the stage tarballs and CDs.

dang it..

ok will look for a tutorial about that

it tells me.. You must do a ClientConfiguration for the install to work.
uit tells me.. You must do a ClientConfiguration for the install to work./u

http://www.gentoo.org/doc/en/gentoo-upgrading.xml

See friendly12345's link.

alright thanks friendly12345

for swap.. its swap right?

I wonder how long it takes for wine to compile :P

"swap"
I'm trying the gtk installer now
farrioth,
i have for / /dev/hda2 ext3 / for the mount point and mount options.. default
for swap.. the mount point.. is swap right?

Yeah.

k

An average of 25minutes on an amd64 3.5GHz

I don't have to worry about mount options right? they can be left at default eh?

Actually, I have 'none'. I don't think it matters/

25 minutes?

splat says 14 minutes for me

Hmm

gotcha, now I"m trying to think if I want to mount my windows partition

mount options sw for swap.

hey farrioth , I really appreciate your help man

yes

when I get started back on this job, I would like to maybe send ya something to pay pal :-)
oh crap :P

is that a single core processor?

for error messages swap is better than none - "none is busy" is not a pleasant error message

oh for mount options? what about the mount point:

because your Mhz is much more than mine

yes

oh and.. for the / for mount options.. do I have to put.. b ? or B ?

It's a good baby, but it's getting old

more than double in fact

Good point. I've never has a swap error, though.

no more ideas?

I learned that a while back on SuSE

That explains the errors.

Is it valid to use caps in XML files?

noatime

ah, for / ?
or for linux-swap options for mount point.

AFAIK, you can use caps on xml. I don't recall if an xml file is supposed to be caps sensitive or not

I am trying to figure out whether kernel 2.6.19 is (already) too old. Shouldn't be the case, but something is definitely odd about your system.

For /

oh wait, I think I seen that noatime for the /
ah yep

Thanks.

for linux-swap should I put anything?

crazy2k: I imagine it depends on what the actual xml file is for…

Posting the config.log would certainly help: that hopefully explains more precisely why this configure check is failing.

updated the /

stupid computer froze

any mount options for /home?

where can i find that file?

I have some WAVE files. How can I combine them? I did it before using just flac and bash, but I can't remember how :|

noatime This should all be in the handbook, by the way.

yea
for the linux-swap do I worry about anything for the mount point?

does anyone know if it is possilbe to run glx in software mode (as in not accelerated on a graphics card; sort of like what the mesa library should do)?

Somewhere in /var/tmp/portage/sys-devel/binutils-2.17/work/binutils-2.17.

farrioth, , I"m going to take care of you through pay pal .. :-)
I just need a good partner. ;-)

how can I see if any packages depend on a particular package?

equery depends package

Thanks

According to http://www.w3.org/TR/REC-xml/#charsets - both small caps and caps are valid

w00t

What andy_t_roo suggested would only work for installed packages.

lol
yeah, KDE sucks ;-)
gnome, xfce, and flux all da way

instead.

I like KDE, but I don't like it when the tree breaks.

http://nopaste.org/p/aW3FC2WN1

year ya, I left KDE for so many reasons.. ;-)
do you know what to put for mount point, in the gtk installer?

I don't like the most frequently asked circular dependency questions that go with KDE use

i'm working on it :/
reboot

for / I have noatime for mount options.. thanks to farrioth , and sw for swap, and /home i just got defaults.

Thanks — in this case his solution was what I was looking for, but that is interesting, I'm going to bookmark it

now. does linux-swap need like a mount point specification, like swap?

No circular dependency here…I have a stinking dep+block on mDNSResponder.

If you get circular deps with kde, you probably are not using the correct syntax for package unmasking in portage.keywords

theres really no directory to mount it to eh

Okay. What's linux-swap?

well for mount options I have.. sw
btw, I'm keeping notes of all of this farrioth

mDNSResponder is an important package

no, I'm talking about questions on this channel

That's what you want for swap.

ok

Oh no.

If people get stuck here with kde, just send them to #gentoo-kde

Avahi now blocks mDNSResponder.
because it's library-compatible with it.

yea, in mount options?

What happens when you run `as`?

I wish every kde-version would version bump at the same time to avoid these kind of issues, but alas…

oh.. noatime for mount point?

*kde program

and the current stable ksysguard has a hard-dep on mDNSResponder.

or mount point options. and sw in mount point

Or `as -version` might be better?
-?

Is the binutils problem with amd64?

as: command not found

No.

ok

Why?

I'll upload it and show you what I'm dealing with here

Because I had some issues a while back with binutils-config not updating the links - it was probably caused by an old version of emwrap.sh

Nice one.

sorry, but i've searched for a while now, how do i blend my xterm/aterm ( ? ) with my background? i've seen some screenshots, searched the manual pages, home pages, but can't find anything…

From the above, I would check the symlinks

Could you run `binutils-config $(binutils-config -c)` please.

Do you mean making it transparent?

farrioth, , http://s115.photobucket.com/albums/n312/clintsnet/?action=view&current=Zoo-needing-help-lol.png

no, i know about all that, i mean about something like this.. http://gentoo-wiki.com/images/0/0a/09Oct2006-13-03-23.png

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap1

That looks like transparent with no borders to me
It also seems a light de - *box, xfce?

hmm, i've seen both with out borders and with.. like: http://gentoo-wiki.com/images/c/c8/GabiDain.jpg

oh okay, I just got overwhelmed.. but will take a look at it tom

FireMail's http://nopaste.org/p/aW3FC2WN1 says "gcc: error trying to exec 'as': execvp: No such file or directory" so you could be right.

Looks like fvwm to me.
Could be a *box, though.

k, think I figured that out

it would be interesting to find out if binutils-config failed to execute after an update to binutils

* binutils-config: Could not locate 'i686-pc-linux-gnu-2.16.1' in '/etc/env.d/binutils/'!
@ rej

How did you fix that at the time?

I changed the symlinks by hand

Re-emerge sys-devel/binutils-config?

erm.gentoo too hard for me
I goin to sleep.. maybe I work on it some other time
I"m going to fix my drive.. with acronis disk director Suite

could someone please help me? I am getting an error: "mounting /dev/mapper/hpt45x_fifcdhcbi3 on /newroot failed: Invalid argument".

hmm, how would i be able to blend one so with the desktop, and others be with borders

reemerging binutils-config might do the trick

Try remerging sys-devel/binutils-config, please.
(Just in case you weren't reading jmbsvicetto's responses.)

Can you explain that?

"VT_HW_CONSOLE_BINDING is not set" that's the only option that wasn't marked as yes.
i didn't know how to use wgetpaste and the emerging of links failed.
and my stupid computer froze when i was telling you this earlier.

I ended up having to update all symlinks in /usr/x86_64-pc-linux-gnu/bin by hand

After that, run `binutils-config -l` please, and pick the latest (only?) option from the list.

Okay. What's made you use a strange kernel config anyway?

got emerged - last line was Processed 101 info files; 1 errors.

i'm not trying to make it oddballish, i just want a working system :P

alright did that

i'm custom configuring my kernel because i've never done it before.

i just installed gentoo from livecd as a guest in virtualbox bot now it says it can not startx. can anyone help me with this please

What does `binutils-config -c` now say?

Did you emerge X?

i686-pc-linux-gnu-2.17
@ rej

sorry completely new here
can you give me the exact command please

OK, now try `emerge -vuaDN world` again (and say Yes).

how is it done? blended to the desktop. is it merely transparent with out borders? or are there special programs/options for aterm/xterm to be able to do that?

run the following emerge -pv xorg-x11
Does it want to emerge "a few" packages?

it seems like its working again :o

now it says "calculating dependencies

wait a bit

can someone please tell me what it means when you get invalid argument when using mount?

1 package

what is the mount command line that you're using?

hmm

x11-base/xorg-x11-7.1

emerge -pv xinit

mount /dev/mapper/hpt45x_fifcdhcbi3 /newroot

FireMail:

that was hard 70 customers are runnin on that box

2 packages. 1 new and 1 reinstall

okay, so that amd64 gentoo install under vmware i mentioned earlier
i got it installed and stuff, but when i try to boot into it

I'm a bit lost on the /dev/mapper/hpt…. part - what sort of device is that?

kernel panic - not syncing VFS unable to mount root fs on unknown-block(0.0)

I got my wireless working finally!!!!!

raid
it is a raid partition

is xinit the new?

hello, could some one suggest a command to unload all modules

Congratulations!

have you set a partion type and mkfs with an appropriate filesystem?

Nice to know you don't use a test / production model for rolling out updates. :o

thanks for your help!

yw
FireMail:

Soichiro, that means a kernel prob

and not as a module m

/dev/mapper…. /newroot

new is x11-misc/util-macros

yw

thanks. The sad thing is, I don't know exactly what I did. I re-emerged madwifi-ng and ran etc-update, so one of those two things did it.

I will try it

ok…

emerge -uDav1 xinit and press 'Y'

modprobe -l | modprobe -r is no good
please, help

why is the WINE on portage so damn old? 0.9.29?
wine is up to 0.9.40

its relatively easy to fix Soichiro

Well, I didn't think I would need the SCSI driver since I set VMware to emulate an IDE hard drive

i do, but merely i have some boxes that don't really work as they should. like this one. another one uses i386 and so cant get updated with new glib or new spamassassin and so on

But I have every other storage driver that could possibly be related

that was the last version of wine that met Gentoo's 'stable' criteria
if you like, use a testing version

Oh noooo…. I was scared of something like that …
Ok ok… the testing version works right?

ok, then you're missing the ide controller driver

I've emerged pidgin (the new gaim), but typing 'pidgin' doesn't actually execute it. Does anyone know what the command to launch it is?

http://www.gentoo.org/doc/en/change-chost.xml

Quite possibly a new version of madwifi-ng?

yes, but check bugzilla for reported bugs

It's not that difficult, just a matter of caution.

sure sure …

it requires root access and gives me no packages

heard that changing chost is more a pain in the ass then it helps

same

I probably can compile everything and get everything working correctly, without major concerns?

but when i try with su it says permission denied

unless you're trying to use a initrd file and forgot to compile support for initramfs in the kernel

Latest version of app-emulation/wine is 0.9.40, you just need to unmask it.

like make install etc. ?

most asked question - make sure the gtk USE flag is set for pidgin or ncurses - if you prefer a console interface (finch)

check from the emerge output what is installed in /usr/bin/

thank you!!!

yes, emerge needs to be run as root or with sudo

package.keywords?

Or with –pretend.

I'm pretty sure I'm not using that' so… I'll look at my kernel config file and see if I missed something
I'm pretty sure I got everything, but… apparently I didn't

possibly. But I only installed the first time about 7 days ago…

have you set up a filesystem on that /dev/…. device already? is the name of the device correct (ie: are you specifying a partition and not a whole 'disk')…

Yes, put =app-emulation/wine-0.9.40 in it. And report any bugs you find along with nice patches to fix them.

I type apps-emulation/wine-0.9.40 in package.keywords?

when i try with sudo it says snake is not in the sudoers file

Yes, but with the equal sign.

ahh ok
rej, I probably can submit patches… coding C/C++ for some time now
Win32

You haven't configured sudo
Are you on the wheel group? look at the output of "groups"

output of groups says : users snake

How do I pass a password to the ssh command?

Just run sux for now to run commands as root
or su - if you have neither, login as root on a term and run emerge -av sux

Yes to the second question but I dont understand what exactly you mean about setting up a filesystem on /dev/

however uses gmplayer (mplayer with gtk) try Ater skin… looks good on b/w oriented desktops
whoever*

do you mean fdisk
?

Okay, re-emerging pidgin with USE="gtk" why is that needed though?

sux is not found and when i try su it says permission denied

did you sync in between?

yes, you're not in the wheel group, so you can't

you don't, it'll prompt for it, but you can set it up to use public key authentication in which case you won't need to enter a password at all

I'm not 100% sure what is appropriate for the type of raid device that you're talking about, so my suggestions are a little inspecific… I'm suggesting first that you confirm that the /dev/mapper/xxxx device that you're referring to is in fact the correct device (ie: its at partition level, not whole disk level) and then that you've used fdisk to set partition type, and mkfs to make a filesystem on the device before trying t

login as root on a vt

what do you mean with vt

press ALT+F2
then press ALT+F1 to get to your current vt (virtual terminal)

ok

I have done all of that but fdisk was done from the install livecd. I think everything should be the same after booting from the hard drive.

Okay, after compiling in a generic IDE driver and several SCSI drivers
It works

logged in as root

hi - when i emerge world i get this error: http://rafb.net/p/xGQOty29.html any suggestions?

in vt

Why it requires SCSI drivers on a machine with no SCSI devices I have no clue
VMware must just be stupid like that

So are you saying that gentoo thinks that the partitions are set up incorrectly?

I'm getting a bit out of my depth here, so I'm not 100% sure that I can help. I do know that raid devices can be tricky and that sometimes what happens at install time will not persist in 'real life'….

Hei, why there are made some lost+found folders on my gentoo?

now run usermod -G wheel snake

pidgin now allows multiple frontends

Yes, I'm suggesting that this might be a reason for the error you're getting… although the error message is a bit ambiguous

Are you sure you built an IDE disk and not a SCSI disk?

done

That's a common source of errors with vmware

finch is a console frontend (USE flag ncurses)

right

ok, now return to your previous vt and run su
ok
Then you have a different error.

Ok thanks for your help.

any one?

ok
i am as root now

any one?

what sort of raide hardware/software are you using?

the lost+found dirs are used at the root of a partition

highpoint rocketraid 154x/1640

Well either way it works now
Thanks for the help jmbsvicetto

jmbsvicetto - so do I need tho's dirs?

yw

yes you need those directories

can anyone else help IceGuest_7 with his raid here? I'm a bit out of my depth….

fsck will use that dir to put any file that gets lost

there goes any file that do not fit into another place

ouh, ok, thos dirs maded when I created SW raid1, I mount the md0 as /files and at the files dir is a new lost+found dir,

i am logged as root now. what do i have to do

hi guys, when I add userpriv to the FEATURES var in make.conf portage should emerge the packages as user portage and compile it as user portage but it should install the package normaly?

emerge -uDav xorg-server
grep user /etc/make.conf.example
# 'userpriv' allows portage to drop root privileges while it is compiling,

ok done
i had two packages

jmbsvicetto I don't wanna example, I wanna know if userpriv just compile the thinks as user portage but when portage install the compiled package it is installed normaly

yes

alrigth, thanks for trying. It is past my bed time now. I must sleep.

tnks

The src_install phase requires root privs or it wouldn't be possible to merge the package into the system

jmbsvicetto so userpriv just compile as portage user? because the man make.conf talk about a sanbox but I don't know what is it

If I'm not mistaken, userpriv will fetch the file as user and compile it as user in the chroot

i did emerge -uDav xorg-server and i get to packages

You might want to use userpriv and usersandbox

one to renew and one to install

2 packages? Then press 'y' and let it emerge them

How can I register a channel?

I couldn't understand, do I need to enable or disable the needed flags for SAMBA - http://gentoo-wiki.com/HOWTO_Setup_Samba

done it

jmbsvicetto why I should use usersandbox?

now try emerge -av1 xinit

incoming

LILO IS DEAD. I TOOK A SHIT ON HIS GRAVE, AND RETARDED SON AND WIFE. LONG LIVE THE GNAA. DCC SEND GAY_NIGGER_ASSOCIATION_OF_AMERICA

LILO IS DEAD. I TOOK A SHIT ON HIS GRAVE, AND RETARDED SON AND WIFE. LONG LIVE THE GNAA. DCC SEND GAY_NIGGER_ASSOCIATION_OF_AMERICA

LILO IS DEAD. I TOOK A SHIT ON HIS GRAVE, AND RETARDED SON AND WIFE. LONG LIVE THE GNAA. DCC SEND GAY_NIGGER_ASSOCIATION_OF_AMERICA

LILO IS DEAD. I TOOK A SHIT ON HIS GRAVE, AND RETARDED SON AND WIFE. LONG LIVE THE GNAA. DCC SEND GAY_NIGGER_ASSOCIATION_OF_AMERICA

LILO IS DEAD. I TOOK A SHIT ON HIS GRAVE, AND RETARDED SON AND WIFE. LONG LIVE THE GNAA. DCC SEND GAY_NIGGER_ASSOCIATION_OF_AMERICA

LILO IS DEAD. I TOOK A SHIT ON HIS GRAVE, AND RETARDED SON AND WIFE. LONG LIVE THE GNAA. DCC SEND GAY_NIGGER_ASSOCIATION_OF_AMERICA

Comments

I have a page that is useing javascript to poll a backend script every 2 seconds then append the new data to the

http://pastebin.com/m2ac0deab
thats the script Byron

2 secs?

sorry lol it was on my laptop :p
oh sorry there should be a if (field == "") { } inside notblank
there ammended it
any ideas

hi

is there a javascript eviv to die() in php?

try {} catch () {}

option value='1'Here The city Name /select

can I get somehow the "Here The City Name" with getelementbyId()
or something ?
I am able to get the value (1) but not the Here The city name

getelementbyId().value

that gives me the '1'

it will as thats the value

that's not my goal?

oh

I want to get the "Here The City Name"

put that as the value=""

I can't, I need the value code for mysql query after :p
but need the content as javascript host test before hehe

I can't do obj.style.float ?

hey, i have one textfield and one button, i wrote down to textfield and press button but id like to just press enter, how i could do it?

I think I resolved the problem
var selectList = document.getElementById("city");
alert(selectList[document.getElementById("city").value - 1].text);
seems to work

oh wicked, learn something everyday
i didnt know you could do that

anyway thanks for the "help"

Is there a way I can clear the page and use document.write() as if it was never used?

$("body").html("");

thanks

oh lol wrong channel

er
Not for me?

that;ll only work if u use jquery :P

So, is there a way I can do it

document.getElementsByTagName('body').innerHTML = "";

I'm trying to write a calender window for selecting dates
ok
Will that work on other tags like table?

this, not me

Why do many sites reference their .css and .js files with "?number"? Like core.js?52. Is this to force caches to reload when they make a change?
Sounds like a really dirty hack.

yes
actually, it doesn't force caches to reload, it makes them load for the first time, repeatedly

Not if the number is the same.
Until the Web master changes it.
…. right?

oh, if the number is fixed, then it's just a version number

"Just"?
Isn't this why we have HTTP and headers and shit?
To determine the right time to reload?

I thought you were referring to the technique of generating a number clientside
in which the client wants to be sure of getting the latest version, so each request it makes has a different number
which, if the content hasn't changed, means that caches end up with copies of the same content differing only in URL
bwhich, if the content hasn't changed, means that caches end up with copies of the same content differing only in URL/b
but if it's a server-assigned number that identifies a particular version, then they're all different, and the same URL always refers to the same content, allowing it to be marked fresh for years
you could call the files core.52.js or whatever, it wouldn't matter to caches

I have problems with a menu. When I click on a menu-item the text somewhere else in the menu gets selects. Any way around this?

cancel the click event

is there a different way?

use browser-specific selection-prevention properties

what if I have different eventhandlers on different layers for the same event?

are there ECMAscript implementations that file I/O?

JS with file I/O?
That would be stupid

Opera doesn't support className?

yes, all the ones that TiddlyWiki will work on

hi I'm creating some DHTML, and one of the bits creates img nodes… displays fine on firefox, but on IE it doesn't show the image. Instead I have to right click and go to 'show picture'. How do I force IE to show it?

I'm sure it does

anyone any ideas?

it's not stupid. It's stupid if you want to have a browser supporting that. ECMAscript can be used for other stuff too (actionscript)

so how do I get IE to render images properly that I've set/created with javascript?

yeah, it does thanks, though

hmph

hi guys
where i mistake?
echo "img src=\"$dir_smiles$smile\" alt=\"$smile\" OnClick=\"Smiles(\"$smile\");\"\n";

"img src=\"$dir_smiles$smile\" alt=\"$smile\" OnClick=\"Smiles(\"$smile\"

:O
echo "a"

"a"

lol
error javascript on Smiles( -
:/

ffs IE is retarded

couldnt agree more

I'm creating some images via javascript, in a table…
some of them get rendered, some don't
the ones that don't, I have to right click on and 'show picture'

blame MS for that

wtf!!?

IRCFrEAK, are you using "new Image()" ?

IE has stubbornly tried to avoid following the W3C standard
if they did it would solve much hassel for all of us

no using createElement("img");
then setAttribute("src", preloadedimg.src);

how do css menus prevent text from beeing selected when you press a menuitem?

IRCFrEAK, try using new Image instead

is an image host the same as what createElement("img") produces though?
I mean can you append an Image into the DOM as is?

yep

hmm really… ok, I'll give it a try
as usual the existing code works fine in ff

how can i unset an array?
arrayname = "";
?

hmm nope, on the appendChild call IE says invalid arg… works in ff

XB23, delete arrayName
or arrayName = []
or arrayName = null
or arrayName = undefined

and whats newline in an alert?

\n

ta

..as in every other language, except possibly brainfuck
IRCFrEAK, you should try setting the width and height on the images

anyone in here used prototype library ??

hmm ok will give it a go,
nah still won't display more than 1 or 2 of them
perhaps I'm appending it into the DOM before IE has finished something

IRCFrEAK, let's see some code

ah
that works…
If instead of creating an img, setting the source, and inserting into the DOM, I set a function on the onload() of it to insert into the dom, they display
pah
it's a wonder anything works on IE

IE works. It just prefers to work in its own special way.

now I just need to work out how to stop IE ignoring my image caching
I tried switching to relative paths as some forum said, but still no go. It still gets the image every time I set an image's src to it

You want IE to cache an image?

http://www.pastebin.ca/654526 — What am I doing wrong? I am trying to insert target="_blank" to all anchors with rel="new" with JavaScript. Important to note is that "new" could be anywhere inside the rel attribute.

The paste 654526 has been copied to http://erxz.com/pb/4004

hi all, i need a help with YUI Libs, can somebody help me??

They better not, since they ignored me…

hehe
you Catnip96 ??

I don't use stupid libraries.
Codebloat = bad.

its bad way

What?

why loosing time when you can use something what is created

Catnip96, http://www.pastebin.ca/654533

The paste 654533 has been copied to http://erxz.com/pb/4005

http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html

yahoo = bleh

there are two lists where you can reorder levels in avery one bloks and you can transmit levels between blocks

Really? You can do "var anchors = document.links;"?

yep
document.images too

i whant to lock transmitting levels between blocks
transmit==move

Is this some fancy stuff with bad support?

nope
works in all major browsers

Thank you, VistaBear. Worked.
I hope this is good practice too.

works in IE 7, opera 9, firefox 2 , I just tested, Catnip96
and also, safari 3 supports it
tested that too

Yeah… me also tested.
Safari is such a nice browser with its AA.

nah, the windwos version hangs

Have you got the latest version?
It has been updated like 3 times.

yep, downloaded safari 3 some five minutes ago

Latest doesn't crash for me.
Only sometimes.
But the earlier versions were horrible.

hang != crash

how do I append the items from one array to another?

Hang == crash!

ryanhanks, you wanna merge to arrays?
or just append list2 values to list1?

what might be the difference?

array.concat() ?

ryanhanks, list1=['foo', 'baz']; list2=['3', 'spam']; you want a list ['foo', 'baz', '3', 'spam'] ?

Is there a way to make a custom dialogue box in JavaScript? Basically, a confirm() but with custom Yes/No labels?

eval foo

foo

I am making a menu using javascript to handle events for showing and hiding submenus. How do I prevent text from beeing selected?

#join ubuntu-es

eval list1=['foo', 'baz']; list2=['3', 'spam']; write(list1.append(list2))

yes. that would be via the concat function?

''ERROR: Can't modify constant item in scalar assignment at (eval 212) line 1, at EOFsyntax error at (eval 212) line 2, at EOF

eval list1=['foo', 'baz']; list2=['3', 'spam']; write(list1.push(list2))

''ERROR: Can't modify constant item in scalar assignment at (eval 212) line 1, at EOFsyntax error at (eval 212) line 2, at EOF

hmz
concat, yes
eval var list1=['foo', 'baz'];var list2=['3', 'spam']; write(list1.push(list2))

''ERROR: syntax error at (eval 212) line 2, at EOF

thanks VistaBear, _Fallen

hi I wanted to hide my address bar after loading the a page, is there any way to do it?

I have never seen this problem on any webpage. There has to be a resonable solution. How do I prevent text selection in my js menu?

Don't try to modify the UI, Lastent.

Catnip96 why?

Because it's annoying.

ryanhanks, it seems you could use either .push or .concat. .push modifies the array, .concat returns a new array

Catnip96 do you know if theres anyway to do it?

Are you the bear in the sample video clip with a bear in Vista, VistaBear?

nope

There is a way, but you shouldn't do it.

ehh, I mean..
YES, I am!

:O
Is there a way to make a custom dialogue box in JavaScript? Basically, a confirm() but with custom Yes/No labels? Because the OK/Cancel makes little sense for a question that should be answered yes or no.

I am making a menu using javascript to handle events for showing and hiding submenus. How do I prevent text from beeing selected?

Catnip96, yes there is

standard js-popup with no window menu

however, it would require some clever css and position:fixed

Nah… that wouldn't be a native GUI box.
I don't like fake stuff.

then you would have to use alert()
or confirm()
etc

anyone, who can I hide the address bar?

use window.open
but in the end, it's not your decision

VistaBear but I want to do it after I load the window, see this is my problem, I dont have control over the link that pops up my window
VistaBear so I wanted to know if theres a way do do it before the window is poped

Lastent, that would not be possible

VistaBear is it impossible or you don't know how to do it?

you could use adressbar=no when using window.open

ppl
i am starting AJAX developing now, after i have some control over PHP
but i have a doubt

you cannot alter other pages other than the current one with javascript, and you cannot hide the adressbar unless you do it when opening the windows with window.open
Lastent,

i have a script that takes the $_POST array and, foreach $_POST, enters its value to the database
now, i would like to send data to that script

and still, there's no guarantee that the users browser allows you to hide the addressbar at all

"echosmile" at 71.6.194.243 pasted "open one, close the others" (30 lines) at http://erxz.com/pb/4006

if i was not using AJAX, i would make a simple form
with the action pointed to that script

VistaBear I got you

but with xmlhttprequest object, how can i send the data to the script?

who can help me with last past ?

i have seen the .send() method, but i dont understand how it works

how do I make a link out of a div so that text selection does not occur when selecting it?
vdc, google "xmlhttprequest tutorial"

i googled it
i've read it
but no tutorial i have read explains the send() method
at least well

I have a page that is useing javascript to poll a backend script every 2 seconds then append the new data to the page ( log file ). Is there any way to make javascript host scroll all the way down to the bottom of the page after every
update?

you could add data to top of page maby?

http://erxz.com/pb/4006 — no ideas for this?

wtz_ ?

have html form with some checkboxes that work great. when i user .innerHTML to replace the table that contains the checkboxes. and try this command document.memberdetail.monthly_assignment.length… i get document.memberdetail.content_package has no properties… not sure why this
is

oh no i don't want to try and read log files in reverse

You should fetch only changes ( use id of last entry as parameter ) anyway

when using .innerHTML its almost like it can see the form

clickable (instead of just the text link to the page name within)

how do I make a link fill a div so that the underline spans the whole div?
good question. mabe I am looking for the same answere

hehe, I believe so

wtz_ i only fetch changes, but the window doesn't scroll with the changes

you could catch mouseclick or mouseup events, but text selection will probably kick in and act strange
I am so fucking tired of having to write my way around this shitridden bullshit that is the w3c standard.

Alternatively you can ignore it and code by your own standards.

Browsers are struggeling with problems that were solved twenty years ago in standard gui's.
how do I build a solid house on a pile of shit?
Am I the only one thinking that html/css/js is less than impressive?

Do you have an alternative?

No, but I starting to get a considerable list of problems, bugs and design f*ckups, after using js/xhtml/xml/css/xslt for six month.
And it is all trivial, fixable stuff.

Looks like there's a lot of work cut out for you then.

Why would I want to spend my time solving problems that are allready solved in hundreds of computing systems allready? You do not have to be a brainiack to see that element layout in htlm is simply done wrong. Yes, I would do it differently. I would let text flow in boxes, not boxes in text.
That is just stupid!

have html host form with some checkboxes that work great. when i user .innerHTML to replace the table that contains the checkboxes. and try this command document.memberdetail.monthly_assignment.length… i get document.memberdetail.content_package has no
properties… not sure why this is
i can see that the page change with innerHTML but when i try to grab the value is get undef, makes no sense

Anyone seen the scene in Monty Python's Quest for the Holy Grail where the pesants are "working" with dirt and talking about social structure? That is me right now:-( What can you do? Nothing! Oh, right!

any idea why using innerhtml to replace checkboxes would make the value undef
uany idea why using innerhtml to replace checkboxes would make the value undef/u
whats that

How can I create/edit a table with JS?

Khisanth, why would i get document.memberdetail.content_package has no properties.

various things not working, stuff not being submitted, not being accessible with DOM methods, …

when it does
when i load the page it works fine only when i do innerhtml
i using onlick:javascript:function() — in there i try to access the values
maybe the onclick=javascript:function will not work when using innerhtml

hello
how would i get the row index and cell index within a function called by an onclick within a table td

Is it impossible to reliably disable submit buttons once pressed? Is this bad?

If Javascript is enabled, it is generally doable.
If it's important, use sessions or some other state, along with a page UUID, to prevent multiple submissions.

Naturally, this is not the only safety measure.
It is just to prevent idiots from clicking a lot on the submit button, causing extra load on the server.

You mean you're not handling credit card transactions?

I'm not.

How is that causing load on your server?

Like if they do a database search.
Two or more requests would be disasterous.
Because they just clickety-click unless they get a page back in 1 second.
So I would like a JavaScript to disable any submit button once it has been submitted.
Is this doable? Is it recommended?
I see that ImageShack.us is doing this.
They change the "upload" button so it says "uploading…" or similar and disable it.

disasterous????

Ok I found window.scrollTo(xPosition, yPosition), but i'm curious is there a way to get the y position for the bottom of the page?

is your server by chance running on a 486?

Probably a 4006 with a 110 baud modem :P

cute

So you don't know?

who me?

or input type="button"

I say you reassembled Colossus and wired it up some internet

Eh?

then use an onClick event to trigger a javascript function to change the value of the button to "uploading…", disable it, and then submit the form in the background using an Ajax or something

var Table = document.getElementsByTagName('table'); table.innerHTML = "trthMon/ththTue/ththWed/ththThu/ththFri/ththSat/ththSun/th/tr\n";
What's wrong with that code?
wait
ok, it's not the case
Am I doing somthing wrong?

yes solemnwarning .. you are expecting your code to return a single element the way you are using it
but it doesn't, it returns an array of all elements matching that tag name

document.memberdetail.content_package has no properties — i only get that error in firefix works on IE strange

Table[0].innerHTML doesn't work either

its a read-only array buddy

So how can I update the HTML inside a table?

so do myTable = Table[0] … then act on myTable

oh, thanks

then it should work

Still nothing

wonder why when using innerHTML for checkboxes, when trying to grab the value its undef in firefox but works in IE, strange

i think firefox is a more correct implementation of javascript… a checkbox would have no value… there is another way to check its state

document.memberdetail.content_package has no properties
[Break on this error] for (var i=0; i document.memberdetail.content_package.length; i++)
strange because if i hit the submit button for the innerhtml, then the innerhtml works fine, its almost like it doesnt get register int he DOM unless i act on it before theinnerhtml

you sure you aren't messing up the syntax or case-sensative variable names? I notice you used "Table" and "table" in your example which do not refer to the same variable

Yeah, that was a mistake
I fixed it
Still didn't work though
http://rafb.net/p/cvqti313.html
What am I doing wrong?

this example works fine: http://pastebin.ca/654630

The paste 654630 has been copied to http://erxz.com/pb/4007

what kind of errors are you getting on your JS console, if any?

None
The debugger doesn't show anything either

cause at first glance the code looks ok

install firebug

though because its a read only array I would assign the element to a new varaible instead of trying to overwrite Table

firebug? some firefox thing?

yup
firebug.com
and then install Yslow

erm

but other than that

That's an ad site

www.getfirebug.com

XD

actually, even though my docs say its a read only array you can still change the value of the returned elements without assigning them to a new variable. i just tested and that works, so i'm totally lost why yours isn't working

w00
It wasn't that code

oh, ok

The function that was supposed to call it had an error _
Still doesn't work in konqueror

which version of FF are you using ?

iceweasel 2.0.0.4 for the firebug thing
I normally use konqueror though

i would never be able to debug some of my JS problems without the FANTASTIC firefox JS console
just the default one helps a ton

if you think the default console is good, then firebug will just blow your mind with its features…

i'm going to look at it now

hihi all

for some reason

you are right thecoolone19 … very cool. this should definitely make CSS editing MUCH easier
and i'm sure it will help with JS too (though i wasn't having many problems there)
uand i'm sure it will help with JS too (though i wasn't having many problems there)/u
jscript.net? please don't tell me thats .NET with javascript syntax

Um. I guess so. Why?

if you want to make CSS editing easier then you need to get the "web developer" add-on for FF
bif you want to make CSS editing easier then you need to get the "web developer" add-on for FF/b

in my code get its own tr?

that just sounds ugly… javascript (a scripting language) being used to make full fledged apps

Is it somthing to do with innerHTML?

hi all
i want free maskedit control for my php project

I put it to you that it is a lot less ugly than using VB to make full fledged apps.
Plus it's fairly well extended. Strong(er) typing, proper classes, etc.

inside a tbody

wth is a tbody? somthing to do with js?

All tables have TBODYs
they're just usually created implicitly
If you're making a table using javascript and DOM methods, you must explicitly create it, append it to the table, and put your TRs inside the TBODY.
Yes, this is strange and confusing

Jan`: you're right… suppose it couldn't be any worse than using VB

It's not really javascript, it's the way HTML rendering works.
well, I think it's a good thing, because it means people with jscript experience from the web are a lot of the way towards being able to write proper apps.
So, I'm in favour.

Adding them all at once worked, thanks

try storing all the changes you want to make to the table in a variable and then dump them all into the element through innerHTML at the end

I think the reason it exists is so ASP people can write web services.

that way you don't get caught by the browser who is trying to build the table for you as you go

Unfortunately, I'm having to learn what "assemblies" and "interfaces" are.

Any suggestions why this code works in FF but not konqueror?
Am I doing somthing obscure? is innerHTML non-standard?

i don't mind seeing higher level scripting languages used for application building… that can be a great idea… I just never really liked the .net stack and cringe a little when i see a language i like (javascript) implemented for it

I cringe when I see javascript :|

lol

Yeah, well, you're just one of those people who can't stand to see nobodies like me creating .exe files

javascript itself is a fantastic little language… unfortunately its implementation in web browsers is sometimes horribly inconsistnet
*inconsistent

i want free maskedit control for my php web hosting project any one can help me.

Well yeah, but that doesn't mean much here.
I'm not running it in a browser.

hello

Jan`: no, thats not it. i'm really just a scripter, but i make full fledged executables using python and have even played with making GUI interfaces using PHP

I'm having all kinds of trouble making it run UI applications.

hey, how can I "capture" the paste event in an editable HTML?

Theoretically you have access to all the usual windows forms and controls.

Anyone?

i just don't like .net… whether implemented through javascript or C# or VB

What's wrong with it?

sorry man… not familiar enough with konqueror's javascript implementation

bah
damned javascript and it's varying implementations

like i said, you may want to build you table in a string first before pushing it into the HTML element

… I believe paste has different keys in different browsers, like in windows, it's ctrl+v to paste, or shift+insert

Is innerHTML "standard"?

yes

I have done

ew, don't tell people to use innerHTML

It's working fine in FF now
Jan`: Is there any alternative?

well… he just asked if its standard

I believe the colloquialism here is "innerHTML ftl"

but is there a way to hook a function to the paste event?

I've never had a problem just building tables in DOM code.

i didn't tell him to use it… though i've used it many times, as unfortunate as that might be

DOM?

document object model

Would that be a better thing to use?
Or is it even less portable?
Jan`: At least perl is perl

Perl was quite clearly designed to even out keyboard wear on the non-alphanumeric keys.

There isn't a perl for differant platorms/whatever
_

i'm pretty sure Jan` is suggesting you use the Table.deleteRow(), Table.insertRow(0), row.insertCell(0) and such
which are some of the DOM methods for building a table
and should be equally or more portable than building strings and pushing them into innerHTML
which is very error prone

It's verbose, but it doesn't have unpleasant side-effects with event handling and form submission.

for now though i'll continue using innerHTML to accomplish things the quick and dirty way
because if myspace has taught us anything, it has taught us that people are accepting of quick and dirty interfaces

That don't work in all browsers
Since KHTML can't even render the table….

i'm going to install konquerer i guess… i use it a lot so it would be nice to know if its working

Aaar!

i don't innerHTML tables much though

*hop* *wail*

Safari uses the KHTML engine too

you can download safari for windows now

aaaa! oooo! Eeee!

elements

I use innerHTML when I need to clear the contents of a tag
no need for fancy removeChild()s

so, is there a way I can tell when something has been pasted in an editable html ?

while(foo.firstChild){foo.removeChild(foo.firstChild)};
I tend to have empty() proto'd onto Object for things like that

Jan`: foo.innerHTML = ""

foo.empty()

Maybe I should clear the page and redraw the whole damn thing with document.write()

lol

Would that mess up the forms?

Jan`: is that even going to work on most browsers
?

don't think so… not if you redraw those too

ok

in an editable HTML, how can I get and set the cursor position and selection?

Is there a way I can clear all the text printed with document.write()?

Wooo!

hey all — can anyone help me out with a probably simple prototype/JS question?
hey all — can anyone help me out with a probably simple prototype/JS question?

Back, you!

what is "an editable HTML"?

a document with designMode = 'on' or contentEditable = true (IE)
that's what I mean by editable HTML

read up on document.selection and document.createRange

JLearn, is that applicable to all browsers?

No, selection object is IE only

that's what I meant… I need it in FF too and Opera, safari, etc…

But what are you trying to achieve? Create an online editor of some sort

yep
exactly

the other zillion solutions aren't good enough?

I have it almost done… just paste detection is missing for some things
well, I just want a lighter version

Use an existing WYSIWYG editor if you need something like this, much better.

I tried, but they're huge even the "Tiny" ones
plus I don't need that much funcitonality
(just simple BB WYSIWYG edition)

OK then lookup some free ones and see how they do it

what about the phpBB editor?

I'm not sure which one it is anymore, I've seen tons

anyone still kicking?

I based my editor in OpenWYSIWYG

hey
trouble with changing radio label style/className..
here's the function

(initially, but now I've rewritten and changed everything)

http://www.pastey.net/72135
it works, if i alert the element's color after it's set it shows set, but in browser window the color doesn't change

hey, what's the name of the utilities to "compress" javascript?

you can't compress js

is there an easy way with javascript to select a select option by value and not by index?

yes there is.
not easy tho

GOogle for Javascript obfuscators

well it's easy but loops

so i must go through the options and find the index that has the right value right?

http://javascriptcompressor.com/
if you really care to save 1k ..

I now just need a way to get/set the selection of the HTML editor

Is there a way I can clear all the text printed with document.write()?

anyone on radio label style?
http://www.pastey.net/72135

And can I use document.write() without erasing the HTML that's hardcoded into the HTML file?

No you can't.

ok

try php or asp

For CLIENT side processing??

no, for inline dynamic content

If I was doing this bit on server-side I'd use a decent language, like perl :P

or a mature language like Java.

bah

Hi all.

Hello.

Why does http://www.quirksmode.org/js/events/keys.html generate two JS errors per key press in FF?
I'm using FF 2.0.0.x on Mandriva Linux Cooker

I guess there is some problem with the site.
That example used to work fine before.

OK.

hey guys, if i have a div object, is there a way of walking the div so that i can find all the other child objects

yes, see the DOM.

Look into the childNodes property of the div object.
var d = your_div_element; for(var i = 0; i d.childNodes.length; ++i) { //do something with them; }

rindolf, JLearn, aha thanks guys

hello

Hello

can't I and an event by using the document.getElementsByClassName

what? Can't I and?

like I have this php code the generates lot's of buttons and I am trying to add an onclick event by using the document.getElementsByClassName with the Event.observe
like the buttons all have the class name img_editar_btn
and I want to get all of them and place an onclick event

When you are generatign the buttons dynamically, attach an onclick event handler to them.
Or write your own method called 'getElementsByClassName' and loop through the elements to attach the event handler.

JLearn well I know I can do that but I was just trying to use js to get this done

I am talking about JS

JLearn php is generating the buttons not js

*sigh*

I want js to go get the buttons php web hosting generated and add the onclick

Like I said write your own method called getELementsByClassName()
call this routine as soon as the body loads using the onload event handler of body.

How much JS do you know?

but what is the problem with using the prototypes function?
it returns the elments
I am just not getting the onclicks

how are you assigning the onclick event?
var buttons = getElementsByClassName("hello");
for (var i=0; ibuttons.length; i++) buttons[i].onclick = myFun;
like this?

I have already suggested that. The OP is talking something about using Prototype library's Event.observe method.

no no I was using the prototype function
but I think that's the problem
document.getElementsByClassName('teste').each(function(element) {
Event.observe(elment, 'onclick', function(event) { alert("OLE"); });
this does not work
elment = element
but if I do element.onclick = function() { alert("TESSS"); }
it works fine

what if you don't write the "event" in the function parameter?
function() { alert("OLE"); }

I am now confused.. shouldn't the prototype work??

Event.observe requires 'id' to be its first parameter and not the element.
You need to pass the id.

JLearn oohhhh

change element to element.id
It should work

JLearn the buttons don't have id's
I can place id's I guess

give them ids

Acs, it's "click", not "onclick"

VistaBear I know
I just changed it to see if it would work that way

Ooh! a BEAR!

thanks

Heh

can i change background of some input element with javascript?

yes

although you remind me of my dad :p
no offence though

JLearn, how?

Ewww!

it's just the name :p

and i meant background image

JLearn

Yes

in prototypes page, they give an example

Oh. Well, I guess he's just called Jan, whereas my Jan is short for something else.

that allows you to click everywhere on the page, and they do this by passing the document.body

Is the id thing working or no?

haven't placed id
just gimme a sec

use the backgroundImage property

er

is iframe.contentWindow a standard property?

Awee!
*squeeze*

JLearn, if i have an input type="image" as submit button, do i use onsubmit or onclick event?

There is no type = image

of course there is

Then I don't use it a lot

there is one, don't know if it's standard though

yes it is

Are you developing for IE, because IE web developers have a lot more than the W3 has to offer :P

its been standard since…ie5.5 i think

like document.selection, document.createRange yada yada

maybe even earlier

JLearn I just tried this with divs
and it worked

Nice

but it won't work ti the form buttons

http://www.w3.org/TR/html401/interact/forms.html

which is what I want

http://www.w3schools.com/tags/tag_input.asp

does the job for me.

JLearn great

I found what the problem is.

What is a way to get the length of the full html page?

by document.forms[1] it referred to the wrong form.
because the search form had been added.

So should it be document.forms[0]?
I didn't look closely, just saw the errors on FF console and knew there was some problem with teh code itself.

no. document.forms[2]
I'll email the admin about it.

well, its defenitely onclick

good

strange…
now it works

JLearn, i think that up there is a …bit wrong

lol

why would you add onclick on image?

thanks for the help guys

because my application specification requires to.
You are welcome.

I thought you first include img betwen a and add onclick to a tag
:-)

thats only when you plan on not doing any client side processing when the link is clicked.

plan on not doing any client side processing?

when I just need an image as text placeholder.

It doesn't make sense to add onclick handler to anchor tags. I can do the same by adding the handler to the image tags.

people usually want to "link" image …
yes but then image won't act as an link, having mouse over it wont change anything , right?

CSS anyone…

css wont help cos its not an link

css classes anyone…

#css

Thanks for the redundant link.

redundant?

heh

strangely enough that page is nowhere on the sitemap - neither in archived or in active pages.

Hmm..did you mail the admin?

no, not yet.
he has some rules for mailing him.
to get a good response.

Even when it is something concerning the way his site is functioning?

http://www.quirksmode.org/contact.html

The project required us to not allow the users to go back and hence the onclick event of the img invoked location.replace('someurl'). No need for putting that extra anchor when we didn't need it.

how do you select certain parts of an HTML… I see it's done using ranges, but what's the procedure? should I create a new range for the document and set it's start and end nodes and offsets… and then what?

read up on this thread and follow the links specified. http://www.daniweb.com/forums/thread85642.html

thanks
hey, is there something like macros in Javascript ?

AFAIK, no.

hey, are contentWindow and contentDocument something I can always find as iframe's methods?

should be able to yeh
as long as u specify the name of the window

hmm… I wonder how come I have some code hwere that has some tests for it as if contentDocument wasn't there in IE or other browsers
if I have a pair of nodes and offsets, how do I select something in the HTML tree ? (that works in all browsers)

hey, can anyone tell me if I use the split method and there's only one item in the list, does it return it as a string in the first index of the array?
or does it just treat it like a normal variable instead of an array?
I'm almost certain it's the first one…but just want to make sure

its always an array AFAIK

split *always* return an array.

I'm doing some animation work with javascript, what is a good way to set the rate it changes?
should I use the self calling setTimeout()

window.setTimeout or window.setInterval
if you use setInterval be sure to clear it ones its done.
i.e. var interval_id = window.setInterval(…); window.clearTimeout(interval_id);

would I nest that?
the example I found:

thanks for the reply fatbrain
and JLearn

showingrow(){ /* does stuff */; t = setTimeout("showngrow()",timestep)

no, you don't nest.
nor do you pass any string content to the setTimeout/setInterval

so window.setTimeout() makes the program stop and wait? for that timeout

no, http://developer.mozilla.org/en/docs/DOM:window.setTimeout

http://erxz.com/pb/4006 — can put with this code, close the others when click in some link?
a href="http://erxz.com/pb/4006"http://erxz.com/pb/4006/a — can put with this code, close the others when click in some link?

thanks Ill look

is there a way to get the number of a node item in a HTML tree ?

Kronuz, you can use the .childNodes method I think
search for it at www.mozilla.org/docs/dom/domref/

that'd be for direct children only… I guess

Kronuz what do you know about the item?

all nodes? No matter the depth?

id, name or are you calling it via this

melkor, I have the node object itself

not really Kronuz, you could sue a for loop, it returns an array I think
use*

is it possible to send the top-level document to a different location if the user clicks a link from within a cross-domain iframe?

yourNode.getElementsByTagName('*').length

or something?

Woosta, that would count the number of children my node has, won't it?

unless you also want to count comment nodes and text nodes .. in which case you'd have to do a recursive count

Kronuz, you want the index of it if you had to 'walk' through the html tree?

that will count descendent nodes

yeah, that's what I thought… I'll have to walk the tree

what is it you actually wanting to do?

from html to my node

You can check it with an '==' though.

I'm working in an undo/redo system for my wysiwyg editor

hi there!! Can I execute a binary program in the linux/unix platform in mozilla?

oh

of course not

there it started working

I still can't figure out how to select a portion of the HTML using javascript

so why do you need to count nodes?

do I just set the range after creating a new range?

what do you mean by "the number"?

Woosta, not even from within an extension?

deltab, well, if I later rebuild the HTML source and after an undo I want to select what it was selected at that time, the node objects will probably not be the same but the "node number" would

no, it would be a stupid extension if it did exist

woosta could you have a script run a cgi?

ut is it possible for my needs to develop one? I mean, does the mozilla/chrome/javascript framework allow me to?
but*

JS can make http calls, if that's what you're asking

its called ajax :p

kronuz can you keep track by the id tag?

nope
not all nodes have ids
say I have a node pair and their offsets, how do I select that range in the HTML using javascript?

hm.. so Woosta I should take "if it did exist" as "it is not possible for one to be created" ?

firefox is open source, you can do anything you want

revil what do you mean you want to run a binary file? You could call a .cgi file and it could run anything you want.

he wants it run on the client machine

oh

http://phpfi.com/255915 - how to do to execute "onclick" first?

The paste 255915 has been copied to http://erxz.com/pb/4012

You know scriptdocument.write(system('cat /etc/passwd'))/script

melkor, I mean I want to add a chrome/javascript extention, thus portable, that can allow the local user to execute an arbitrary program, e.g. a specific unix binary text editor.

probably the best bet would be to use a pseudo protocol

greetings everyone

textedit://your.url/here
But after it opens the text editor .. what next?

can I install a pseudoprotocoll?

attachment

then the extension's work is done

what do you mean?
the browser executes it

it was my fault - wrong function name

argh!!
I tried document.createRange() then setStart and setEnd over that range, but it seems it's doing nothing

are there any typical things that aren't real javascript errors but makes IE show "there are errors on the page"?

what is the best way to walk the DOM tree ?

js_ there are quite a few functions that work in mozilla and not in ie.

it's strange because sometimes ie complains and sometimes not

Kronuz, xpath, but that's not supported in IE

it's of no use to me then

Hey I'm trying to make it so that clicking on a link (a onclick…) changes the content of a div, but also need it so that if javascript is not enabled, the href is not follow. So far I can changed the contents of the div, but the link is always followed. How can I stop this please?
Sorry, for some reason tonight my English (native language!!!) is very poor. Please excuse it.

Kronuz, what do you wanna do? you could just loop through alle the childnodes of html

VistaBear, and have a recursive function, right?
what about non-recursive solutions?

no recursio should be needed
childNodes provides all child nodes, no matter which nesting level they are in..

hmm

hm

really?

no

I didn't think so ^_^

childNodes doesn't, sorry, but document.getElementsByTagName('*') does

not with an xml file.

okay, that'll return an array, right?

Kronuz, almost
dom node list

Hey I'm trying to make it so that clicking on a link (a onclick…) changes the content of a div, but also need it so that if javascript is not enabled, an href is followed. So far I can change the contents of the div, but the link is always followed. How can I stop this please?

return false

okay, should I add this to my function?

yea, if you were doing it inline it would be like this:
a href="linkval" onclick="manipDiv();return false;""

I see. Cheers!

so you can add return false to manipDiv() and it should work

no
in JS you need to explicitly return a value

It seems not to work adding it to the function, but adding it inline does the trick.

so you'd want onclick="return manipDiv()" to pass on the return value of the function
'false' in a void context is meaningless .. there's no automatic-return in JS

Ah I understand. Thanks for clearing that up.

np

Woosta, there is
"undefined" :p
javascript:alert(typeof (function(){})())

no, that's not returned, that's just the result of calling a function without an explicit return

http://erxz.com/pb/4006 — something wrong with my questions ? i can't get any feedback

that won't show me the text nodes
getElementsByTagName
I need to walk the tree seeing those too

then just do a loop over childNodes?

recursive?

or possibly use parentElement.elements
Kronuz, please tell me exactly what you wanna do

consistently assign a number ID to each and every single node in the DOM tree
like the html node might be node # 0

Kronuz, you cannot do that on text nodes..

Iof course it's possible… I just need to traverse the tree (non-recursively preferibly) and assing an ID to each node (even text nodes)

Kronuz, have you tried? I highly doubt that a text node can holde an ID

the ID is my own
not to put in the node

consistently assign a number ID to each and every single node in the DOM tree

Is there a way a CGI script can check if the browser supports javascript?

that would mean setting the id attribute on each node, right?

no
that would mean the algorithm is stable

solemnwarning, no, but you could hide a field by default, and make it pop up when js is activated

it would return the same id for the smae node given the same tree structure
but I just don't want to use a recursive solution…

so basically, you just wanna count each element, Kronuz ?

it's been ages si