Archive for November, 2007

I am trying to update Opera to the latest version The program is not in Debian so I downloaded the *deb from

pkgProblemResolver=yes in some docs but it doesnt appear to do the job

thanks

there's no mount option to specify endianness

tried installing the troublesome package on its own

hi, i'm unpacking a huge (180G) gzipped tarball on-the-fly over the net. is there a way to call tar to get more output from gzip like how many percent is done? since its just a big text file in the tarball, -v doesnt help much to know anything about the eta

Comments

Im trying to update menuconfig for the latest kernel available for my Intel Centrino Duo cpu family6 model 14

can someone tell me how to remove packages built with crossdev? dont know how to unmerge my avr-gcc

I am not 100% sure of the way it is set up, but couldn't you have it just send something to a process which is running as root and doing what you want it to do?
a service maybe

ah, wtf.

I'm trying to update menuconfig for the latest kernel available for my Intel Centrino Duo (cpu family6, model 14)… From what i can tell, it is -march=prescott (because it supports sse3). Can someone direct me to "Processor Family" is correct to choose in menuconfig, please?

can anyone help? i might have missed out something and i'm getting a ton of messages saying that one of the times in /etc/{conf.d, init.d} or /etc/rc.conf has a time in future.

check your system time & timezone

but it's not specifying which file it is. /etc/init.d seems to be all executables. while /etc/rc.conf looks correct to me.

i changed /etc/conf.d/clock to set it the time to local.

hmm.

Blair, yes that is hat i am thinking, i just din know if anoyne knew of a clean way to do that offhand

Cirindius its talking about the actual files in one of those directories, use ls -lah to find the dates
uCirindius its talking about the actual files in one of those directories, use ls -lah to find the dates/u

or somethng with pam_chroot chat could execute comands on login

ah ok. and how would i go about resolving it?

haha, hack it into the kernel maybe? sorry, my knowledge of linux tools is very limited .

Cirindius use otuch on the file
use touch

Verify that yout time is correct in /etc/conf.c/clock (your time zone and whether or not your computer's clock is based on UTC or your local time, which is different than UTC". Also, do a "ls -l /etc/conf.d/". You should notice that some files do not have times, just dates. Just run a "touch"
command on the config files that don't have that do not have time values, and restart your comp

if you're looking to maintain a gold chroot environment you can use autofs to bind the environment to the user's environment
look at the url I pasted.. I've sucessfully used autofs as a NFS user dir mounter for 100+ users

ah, ok. just the touch command without the need to specify anything with the -t flag?

autofs++

bandwidth_ hmm, i will research that. Thanks

aye ok guys :P i think i got it.

I think its exactly what you're looking to do…

"touch /etc/rc.conf" … touch and then the file name to update the timedate on. that's it.

Yep, got it thanks.

Just run a "touch –help"

dont forget to verify your system time is correct too

np
Anyone here have a Prescott march processor?

quiet night tonight

kinda
Nothing is certain in life except negative patient care outcome and budget enhancement.
uNothing is certain in life except negative patient care outcome and budget enhancement./u

Sorry to bother but it seems that alot of the files have an invalid timestamp. is here a command to use to touch all system files?

a_lot

or rather, those files with a specific date?

You could probably write a bash command to do it

current time.. touch

it'd take a long time to run
and thats just pseudocode

Yeah, i understand that pseudocode. I'm not familar with cryptic linux hosting commands.

Any chance you could shed some light on it?

current time then touch. something like that.

heh unfortunately my level of familiarity is similar to yours :/ I'd have to look through some manpages
why not just touch *

touch * i think, would create a file called *

heh ok..

touch ./* works

interesting.

does that apply to files within directories?

touch ./*/*
;P

doh!
silly me. i'll go try it out :P

duhh

bingo :P fixed.

Yes it may apply to files within directories. but you should only need to touch 2-3 files to get that startup error message resolved, instead of touching everything under /etc

touch * -R alsow works

Please don't take my advice - I am not even sure what touch does
I assume, sets the 'last modified' time to right now

It's fine, I'm messing around on this box. will probably format it when i'm done testing some stuff :P

Update the access and modification times of each FILE to the current time.
from 'touch –help'

777966592527

I just realized that for some reason, a large part of the files in /etc has got their date changed to 17th aug.

shit.. did it again..

can you put Gentoo livecd onto usb drive?

why cant the thing assume where i want the data to go

runey yes

runey, yep, it's a little difficult in windows though

just copy and paste? or what?

bandwith_, language

you need to make it bootable first of all

mind-reading is scheduled for merge in Linux 2.6.25

then you can pretty much copy it
or just dd it

runey, there are a few guides on howto do it if you google it

dd if=theiso of=theflashdrive?

liveusb

http://www.gentoo.org/doc/en/liveusb.xml

i think the cd drive is dead on this lappy :P

lol, athlon XP is not dual-core right?
sorry, forget I asked

damn this network

out of interest, is there any way to get the estimated remaining battery time in gentoo in a shell

estimated time remaining is calculated from remaining capacity and discharge rate, but you can get those from /proc/acpi/battery/* usually.

what media player do you ppl use? xmms is buggy, audacious appearantly too (keeps running after closing internet radio)

amarok?

i changed make.conf added gtk … gcc wants to rebuild with gtk flag … should i rebuilt X related stuff with new gcc ? or its not needed ?

xmms, buggy? That thing has been stable for like 10 years

If you can confirm a bug in Audacious, then please report it.

kexman no. and your gcc doesn't really need the gtk flag
kexman, i put -gtk in package.use for gcc

gnome user ..

wasn't xmms discontinued already?

the xmms pause bug has a patch

mplayer in a termainl
dropped from portage, not discontinued
s/termainl/terminal :p

doesn't always happen i'll report it if the next version still has it

but the xmms is not under development anymore, they are working on xmm2

I imagine totem is okay, too, if you enable the propler USE flags to make it use xine-lib

ah, ok.

? Last time i checked xmms was removed from portage cuz of the _horrible_ code

no they are not

1.4? Don't expect it any time soon.

xmms2 has nothing to do with xmms

anyone knows what's that media player that can be ran straight from a cli?

is VIDEO_CARDS="ati" sufficient for an ATI Rage Pro Turbo card?

reisio, really?

teach lemur xmms

yes really

xmms has been removed from portage, due to long standing bugs, and also the project has seen no new releases for a long time. Some alternatives include audacious and amarok. If you find ebuilds with hard dependancies on xmms, please file bugs against them, at http://bugs.gentoo.org/ . If you want to complain, please complain to gentoo's userrel, not to xmms devs. also see http://xrl.us/s7qo

they're using the 'xmms' name to get unjustified attention

reisio, that what i heard
hm
didn't know

initially I think _one_ former XMMS dev was involved with XMMS2, but he has long since left

totem is dead, I never got it work. I would deinstall this needless programm, but it is part of the gnome desktop

if you didn't enable the USE flag to have it use xine-lib, it wouldn't be much use anyways

for gnome you need to install gstreamer plugins, sort of like codecs in windows

gstreamer, ha :p

no it doesnt needs it ?

don't like it?

I don't like cruft

no.

but if i rebuild gcc with gtk flag
do i need to rebuild stuff with it ?

Skunky, what would be correct then?

What's "High Memory Support" for in the kernel menuconfig? there's no help entry for it

mach64 or r128

it's for if you have more than 2 gigs of RAM, IIRC
wiki Blair highmem

http://gentoo-wiki.com/HARDWARE_MSI_Megabook_m635_aka_1029

how much ram does your machine have?

wiki Blair intel memory

128mb at the moment

http://gentoo-wiki.com/HARDWARE_Asus_P5ND2-SLI_DELUXE
a href="http://gentoo-wiki.com/HARDWARE_Asus_P5ND2-SLI_DELUXE"http://gentoo-wiki.com/HARDWARE_Asus_P5ND2-SLI_DELUXE/a

:/ i'm thinking of going back to kde, i just like the fact gnomes interface is cleaner. unfortunately linus is right on gnome, they are interface nazis a lot of options are missing

then you don't need it.

potentially gonna add 256mb later, but thanks

freakynl, coud be exaile for gtk

still won't need it

Skunky, how do I pick between the two?

could

exaile?

add them both, and then figure out which one works after they emerge. (:

dont u know it?

highmem support is for =1G ram

no i'm dutch

Linus is a silly person :p not sure why he even cares, I thought he used FVWM :p

Skunky, cool, and just drop ati?

No, it's for.. 864MiB, iirc. Somewhere around there.

freakynl, http://www.exaile.org/

dunno but he's pretty positive about kde i think

_Monkeh, actually it's above 900 M…can't recall the exact number….942 sounds right

896.

ah a music player thx thought you were commenting on gnome. does it perform well? I mean… it's written in python

ati is for the ati binary drivers, which don't support your card.

whatever, it's hard to come up with that exact amount of ram

you're talking about someone that allowed a proprietary software to be used for version tracking of the kernel :p

freakynl, i only know it is similar to amarok but i nerver tried

this is not a person whose statements you want to take without a grain of salt

noone is

freakynl, if you don't mind mpd, sonata is a nice alternative

ty skunky

i'll check it out thx

no you can believe everything I say :p
the moon is made of cheese

haha

exaile isn't bad….occasionally crashed on me though

according to google moon anyway

fortunately i don't like cheese

How do I modify the useflags directly to emerge?
I'm trying to emerge boost, but I'm not getting boost_thread

so i somehow broke vlc on my machine….i can only run it as root…when i run it as a user, it just prints out "segmentation fault"

And it seems i have to add to the useflags threads
but I don't have full access to do that on the machine

uh. if you're root, you have full access to do anything you want. (:

Skunky, is it possible to do it on the command line or not

need a bit of help
how do i disable eth0 from trying to connect to a network at boot?

do what? change USE flags? yes.

Skunky, yes

firefox has apparently had APNG support for a long time, but emerge doesn't seem to build it with APNG enabled. Does anyone know how to get APNG to work?

lufthanza /etc/conf.d/net

do you have some other network connection it should be starting on boot?

eth1


wow.

how would you guys suggest installing gentoo as a domu for xen, and i cant do full virtual to install from cd

it loads eth1 at boot, but eth0 is a ethernet card, and I rarely plug my laptop in to ethernet cables

rc-update add net.eth1 default, and rc-update del net.eth0

I did that, but for some reason it's still loading

and fix your conf.d/net

whoa, PCI hotplug support?

only if your motherboard supports it, most don't

do you need special hardware for htat?
oh k

same with cpu hotplug. only if the hardware supports it.

heh

hotplug != yank-the-card, eh?

how would i do that? I commented out eth0 lines, but it just presumed dhcp

what are you wanting to do?

well I was thinking of like maybe having a video card that I plug in when I need a monitor directly connected but otherwise have it not using system resources

it helps to read the net.example in conf.d

stop eth0 from loading at boot

get one of those funky usb vga dongles

is it moduled?

heh
well it has integrated video, but I was just thinking of the future I guess :P

yes

i wish there was a USB based monitor

then as long as you dont load the module, it shouldn't start

udev will load the module

would using config_eth0=( "null" ) work?

i didn;'t think udev auto-loaded nic modules?

i don't know without reading net.example (:

it does

that brings it up and unconfigured.

it does. much to my frustration.

what's the end goal for this? you rarely have a cable attached?

I wonder…can I run a wireless-N card using current drivers in a/b/g mode?

if thats the case, emerge netplug
and netplug will only start it when link is detected

in theory, if you've got a card that has a linux driver…

kk

oh
well what I meant was use some sort of generic driver
but I guess that's a no

no such thing

k… it was listed as 'experimental' for madwifi last time I checked, which was a couple weeks ago
do I need to compile bluetooth support into the kernel if I have a usb bluetooth adapter?

ifyou want to use it, yes
bluetooth hci (if i remember right)

heh…okay…hmm, so in theory I could have a bluetooth headset and have the box play music on it…

sure, in theory

exciting

bluetooth just handles the communication. you still need software to support the activity

ok, thanks for the help

that do what u want?

well, yeah…onboard audio + mplayer should do it with some tweaking, right?

no idea

I guess I'll find out

afaik no, since bluetooth headset would talk through bluetooth, which the onboard sound would have nothing to do with

oh, I would need a driver for the headset then? :/ or some kind of handle?

the other option is to edit the rc_plug_services (i think?) in /etc/conf.d/net
yeah i believe so

hmm, okay, thanks for the heads-up

err.. /etc/conf.d/rc i mean

anyone know a way to resize a ext3 partiton and create a ntfs on the new empty size?
(not sure if that even made any sense)
:-|

gparted

is that a package?
holy cow, it is

or the hard way … resize2fs, then fdisk, then boot windows and make an ntfs partition
it is, and it is very, very, good.. make sure you have appropriate USE flags set for the filesystems you want to work with (and appropriate kernel support)

yes, it's a package. tho you'll need to be able to umount whatever partition you wanna be changing…

that's the thing. i don't have any windows installed. can i make an ntfs partition just to host windows programs on it?
oh okay. fortunately i am just wanting to resize my extended /home partition, which i can unmount

or even easier find the gparted livecd, download it, burn it, reboot, resize, eject cd, reboot and enjoy

hm, interesting.

… and put cd away for safe keeping and use later

you can, but why would you want to?

What's Profiling support? The help message just says something about "lets you use profilers such as oprofile"

well this is my situation. i am trying to install a program and use with wine. but wine won't install it. i read somewhere that it works if i have it installed and ran from a windows partition

hmmm
im trying to putback grub after a windows install

ew. so you

but can i make an ntfs partion without actually _installing_ the windows os?

and i would normally use a live cd and change the root drive like root=/dev/sda4 but the live cd is unstoppable

no, see, that's part of what they're telling you. you have to install windows to make that run.

squigly, does it need to be ntfs or would fat32 do too ?

when i chroot fromt he live cd it doesnt have a populated /dev so i cant install grub

oh yuck…

Hi, I just installed layman and for some reason after 'layman -S' it only shows one repo… how do I get it to show them all?

it's not worth it.

so hang on, has ntfs been fully cracked?

you have to mount /dev in your chroot

boot from a livecd/install cd and chroot as per the install handbook, then skip to the steps on configuring grub … mount -o bind /dev /mnt/gentoo/dev before you chroot

sorry sion_ ?

no.

squigly, wrong person, better get coffee first

so it's still just move/resize/read partitions?

TaD, Skunky cheers, im a bit old fashioned, so many changes to the way dev works

I normall mount /proc and /sys into the chroot as well

i was suprised that the live cd didnt have a rescue mode

rescue from what?

TaD, with the bind option?
rullie, rescue from terrible occurance, (in this case installing windows)

yes, just like the handbook says.

yep

o

Skunky, id just like to point out that that is not like the handbook says

Hi. I just installed postfix and went to run newaliases like the howtos on the wiki say to do, but when I run it it tells me that there is no such file /etc/postfix/aliases. The file of course is not there, but what can I do to get something valid there?

yay it works, thx all who helped
touch /etc/postfile/aliases?
im sure an empty file is valid

ok, I'll do that, run newaliases and see if postfix liked it
yeah that did it. Thanks
I must say postfix is sort of a bear

how would I install the perl module to stop "Can't locate DateTime/Format/Strptime.pm" ?

g-cpan, if it's not in portage….

thx

if i want to format an ntfs partition using fdisk, would i use the 7 HPFS/NTFS option?

fdisk doesn't format partitions.

true…my concept is messed up. but i am using fdisk to specify the type of filesystem i want to associate with a HDD i am intending to format.

correct. except you can't actually format an ntfs partition from anything but windoze, which means you still have to install it.

How can I know which ALSA release is in a given kernel release?
Is there an URL with a list?

ah crap. k cool, that answers my question :sigh:

How do I know the ALSA release present in kernel 2.6.21, I really need to know

use the source

It's in the source?
lket's have a look
Where in the source?

I would look in the menuconfig
under sound devices

ls -alR | grep alsa
gives nothing for me…

and go to 'help' on the various alsa options
dunno if that helps *is noob*

let's try menuconfig then…
but I am not sure the alsa release number is mentionned
there's nothing useful.
in menuconfig.

anyone know what's the point of firefox's search bar displaying your previous search key phrase? i hit tab to try auto complete but does not work?

I didn't say "use menuconfig"

I know

I did

I tried to look at the source files but found nothing named alsa…
ls -alR | grep alsa

Did you look at the contents of the source files?

while in /usr/src/linux gives very few interesting files
problem is, *which* source file?

umm, I'm guessing you could work a cat into that command somewhere?

well, let's see. how about something under "sound"

so that it displays the individual lines that contain the expression 'alsa'

does anyone know how to fix that annoying 'This is hostname.(none)' message at startup?

Yeah, looked there…
but nothing really exciting

the Gentoo handbook says to edit
conf.d/net
I've done that and yet it persists

/dev/null ?

/dev/null

thanks
and if i want to put it into the background, just add an & at the end right?

[Shiba]: you didn't configure your /etc/conf.d/hostname or /etc/hosts correctly.

whee…gotta run downstairs and take out the CD before rebooting…this is exciting

sleep 30; reboot
^^^

Sorry but I am stuck
there is no clear main ALSA source files
all the files I look into don't have any version numbers or whatever
damn I did not think just knowing which ALSA release I have would turn out to be difficult

dmesg | grep "Advanced Linux"

so? if you're this desparate to know what version things are, you're gonna have to look at the source, and probably match against cvs/svn/whatever they're using these days at alsa-project

ha thanks

ah, come on. no fair giving the easy answers away!

pleasure

this gave me the version. It says 1.0.14, I hope it's not a rc-whatever

well, it booted without catching on fire..!

or dig throug /usr/src/linux/sound/core/sound.{c,h}

I suspect that if it was, it would claim so. Mine reads "Version 1.0.14rc1", for example.

Ok so that's 1.0.14 final. Good to know

sorry, just sound.c (there's no sound.h)

already looked, nothing there.

APIC error on CPU0: 40(40)

use the source

Yessss~!

i have. doesn't say WHY it gets that error. (:

you had to make me find it … /usr/src/linux/include/sound/version.h — obvious really

can someone tell me how i can change the directory where gcc looks for header files?

now, why would you want to do that?

yeah sorry, did not notice that version header…

so i'm trying to start an app in the background, but whenver i do, it just returns the state as stopped

Is there a geographical map of server locations? :O Roughly 60% of the united states is closer to me than quebec

i compiled avr-gcc myself and it doesnt find the path to the header files so i would like to set it manually

how are you trying to start it foo &

/dev/null &

netselect might help (not graphical, but works out host with lowest ping I think)

How would I check whether I have 1×1024mb ram or 2×512mb?

ah, ok, that'll work
thanks

nox-Hand: open the cover and look.

nox-Hand, it might mention it on the bios-summary screen…right after post

bad bad bad.

nox-Hand: open the computer, or if you have lm_sensors it is able to find out on some systems

nox-Hand: lshw

ne1 know whats happened to net-dialup/pptpconfig ? did it go away? or do i just need to upgrade to current revision of gentoo to get it ?

TaD - it brings up an IP address which seems to resolve to owl.gentoo.org; where is that?

couldn't tell you

Skunky Prefer to not open up my PC as it is a laptop and I my school voids all warranty if one self-sevices
I.e even opens it

nox-Hand: then, it doesn't MATTER what you've got, cuz you're too afraid of voiding the warranty to do anything with that info. (:

Haha, no, it's because I am looking at prices for upgrades - 1x 1024 is cheaper than having to upgrade both slots with 1024

traceroute would lead me to believe it's in the SF bay area somewhere. (:

School can upgrade if they like

Okay, cool, cause 45ms ping is pretty sweet
especially considering the local university has a mirror :P
or maybe not…it's not listed anymore

this is what traceroute is for. (:

Skunky, owl.gentoo.org is probably using a round-robin dns server hosting or something more advanced

Cool, and here I thought it was for finding the ideal place to sniff people's packets :P
adeeln - should I be putting in the static ip hosting address instead, then?

probably not …

nope, only 1 ip resolves to owl

could be an IP for the load balancer

well that's ok, that's as specific as I need to be for rsync isn't it?

yes.
and your ping times to that are a bit less than half what they are for me. (:

wow
san fancisco bay…I'ma look that up

ping time 2ms
and thats at max load
rtt min/avg/max/mdev = 0.141/0.203/0.256/0.045 ms

showoff. (:

yeah, that's almost 2000km away from me :P
wait
san francisco bay is where san francisco is, right?

yep

yeah
1881km roughly

san fransisco, oakland, san jose

distance between me and the closest mirror… 1meter

kek
If there is a mirror in like, wyoming, nevada, montana, washington…it's closer than that

network latency is only partially distance dictated. if you've got a big pipe between you and wherever, it'll be faster than something closer with a smaller bandwidth connection. I'm in NYC, yet due to the way things get routed and such, sometimes the fastest mirror for me is not in NYC, but
in DC, or atlanta, or SF

yeah I guess…I wonder why, though

good places for mirrors are places that have a lot of big network connections coming to them, DC, NYC, LA, Atl, SF

hmm

not to mention, latency is more driven by the # of hops
rather than distance

I've had ~20ms pings on a dedicated link from GA, USA to Germany

nice

because not everybody has fibre optic directly from their house to the nearest mirror. (:

distfiles… portage?
im a n00b i know

I'm looking at ordering an apple xraid in the next few months

I forget where I was reading about the speed of light and how fast the best-case pingtime to the opposite side of the world would be

replace this 300gb scsi drive with a SAN

well the speed of light is 300,000 km/s

how much downloads does it use sync'ing?

the circumference of the earth is like 30,000 miles iirc

~110gb

so like ~100ms

checkout InfiniBand

/dev/mapper/gibson-mirror
119G 102G 11G 91% /mirror

… i need to get a better net connection before i make a distfiles mirror :-/

just setup a shared NFS folder for your distfiles storage
then when you download something its there for other boxes to use

hey, anyone wanna cyber?

I only mirror gentoo & openwrt

*waits*

heh 200nanoseconds? :O

anyone wanna cyber?

hmm… the ops must be slow today….

anyone wanna take a hike?

Strike[]: I've already had sex today
so count me out

what the Wall Street BIG CATS use,.. google uses InfiniBand also fyi.

sweet

hkBst, wanna cyber?

LOL

Strike[]: I have no idea what you mean, but please keep to the topic: Gentoo support

don't forget to take into account lorentz time contraction…because doing the basic math, the minimum time is 0.134 seconds

hkBst, you know, cyber sex
irc sex

for light to go around the world at the equator

ROFLOL

fun stuff like that, you know you wanna

lol i smell a kick/ban

i smell a cyber!

strong smell eh?

just go somewhere and masturbate…

didn't see that coming
so hmm, this infiniband thing

sup

lol

PLease don't feed the trolls

0am

i'd be sleeping if it wasnt for this tooth

is essentially a cable that can be used for anything from connecting a cpu to the RAM, all the way to small-area networking?
is essentially a cable that can be used for anything from connecting a cpu to the RAM, all the way to small-area networking?

lol

quick someone punch me in the mouth so my tooth-ache will stop hurting

has anyone here maybe used servoy? www.servoy.com

:o

thnx

*** Santanabaer *** what is lol?

if you want a more real application, try sitting with your face in front of a CD drive and overclocking it

you dont know ?

is there a way to get emerge to send a copy of each package to a NFS folder?

read about ATA over Ethernet?

*** Santanabaer *** i dont know im from russia

lol = laughing out loud (most used in chat)

like a binary? or the actual source code

anyone else use ndiswrapper w/ rt2500usb?

Nope…I'm guessing it's the new 'thing'? :P

source

*** Morsiki *** i dont understand
*** Santanabaer *** i dont understand

InfiniBand is expensive. ATA over Ethernet cheaper, lol

have you tried net-wireless/rt2×00 ?

http://www.fixedlimitholdem.com/chat.html
read that

Myrinet is also a cool networking thing like Infiniband

be careful with that usb wireless modem, it will freeze your system.

*** Santanabaer *** thank you

there are known issues with it,.. checkout their website.

so like is it possible to, when emergeing, it checks my server and if the package doesnt exist/is an old version it downloads it from another mirror, and send a copy of the source of each package to my NFS folder

hey likewhoa, good to see at least one userrep interact with the masses

is it the Ralink rt25xx chipset?

ya notice they stopped making cd-rom drives go faster once they hit about 52x?

*** Santanabaer *** a have a bear

yes.. either have your /usr/portage/distfiles mounted as a NFS folder .. or edit /etc/make.conf for DISTDIR location

what if i want the NFS folder on another server?

mount it

I watched that episode of mythbusters today :P

… im proving my n00bness arent i?

anyway windows sucks so I'm rebooting, brb

http://rt2×00.serialmonkey.com/phpBB2/viewforum.php?f=4 READ UP

i wonder if this baking soda/water will kill my toothache

the rt25xx usb is actually an rt2570

you may want to look at http://gentoo-wiki.com/HOWTO_Using_a_shared_portage_via_NFS

rinse with salt and water

yea thought so
brb

what would be the use to compile host firefox with java useflag ?

and nfs should be already enabled in the kernel
enable javascript

java != javascript

i guess i should rtfm ey?

ahh so you guys would say is it needed or not ?
firefox is for now just compiled with xinerama support here the others are all unchecked

… …
wow

anyone using viper-sources? vipernicus's site is down and i cant get a hold of the src
was hoping someone who has it could send it my way

googled it?

yeah

how do i find out what arch my cpu is?
it's x86, i'm not sure what flavour though

um. what is it?

intel centrino
400mhz

cat /proc/cpu and google

cat /proc/cpuinfo

i looked
it feels i386

no.

thing is

lol
'feels' i386?

i'm trying to install for another machine

thanks, fingers moved too fast

well it's old

Pentium Ms are well and truly 686

nah

hm k

it could be 586

maybe

they're 686

doubtful

i think it's like a pentium 2

p2 is still 686

well is it a centrino

pentium 2s were 686 :P

oh okay

no a p2 is 586

all these 386 586 686 are confusing !

ive seen a 386

well anyway

Pentium Pros were the first i686

1 per day). I'm not too good w/ system logs or anything, is there some way to tell what might be happening (I suspect but don't know how to prove it's firefox)

i used to have one :P

i'm trying to install something on this disk that'll let me boot another machine

twas a beast of a thing

Basically, if it isn't Socket 7 then chances are it's at least 686

the laptop it's for has no cd/floppy/net boot/usb boot

ive never understood the *86's

i think i finally threw away the 386dx40 motherboard i had sitting in the drawer here.

It got funky with the Pentium

ya think it'll boot, if i just install and swap the disk back?

im trying to source a Commodore64
now THAT was a beast of a computer

I have a C64 :P
tape and disk drives are shot though

shouldn't be a problem

I think they need new rubber bands

wanna mail it to me? :P
awh

nah :P Besides, even if I did, would You be willing to pay shipping on something that big from .au? :P

so about those viper-sources… sources… anyone got them.

what

LSD`: where in Aus are you?

The West, comrade :P

Tassie!

EE88001

how heavy is it? :P

The computer part isn't that heavy, the disk drive is the killer
I don't want to get rid of it anyway :P

darn :P
they are going to be worth a bit soon :P

is there anyway to search help in menconfig?

….
metadata/cache/app-i18n/xsim-0.3.9.4-r3
metadata/cache/app-laptop/
metadata/cache/app-laptop/pommed-1.5
metadata/cache/app-misc/
metadata/cache/app-misc/beagle-0.2.17
whoops
sorry :$
http://cgi.ebay.com/Commodore-64-Disk-Drive-1542-II_W0QQitemZ320142271540QQihZ011QQcategoryZ74945QQssPageNameZWDVWQQrdZ1QQcmdZViewItem
LSD` ^

faillog should show me any failed logon attempts, right?

listen

you can searh with '/'. Not sure if it searches help…

execute make menuconfig and do a /
EE80
I found several

mine's the older model

ahh
improv :P

what would happen if ncurses was deinstalled ?
it says its a console library … but I somehow dont understand

Santanabaer, console graphics

like colors ?
so that would mean if its deinstalled I wouldnt have no console (tty) anymore?

Santanabaer, no
im trying to find a good example

hmm
O.o
is there a DOS emulator for linux terminal?

runey, dosemu

dosbox I think

O.o

dosbox

hi, I tried to set up virtual email hosting for the two domains I own by following the directions at http://gentoo-wiki.com/HOWTO_Mail_Hosting_with_Postfix_and_Dovecot , but when I try to /etc/init.d/dovecot start
it tells me that I haven't use the SSL certificate /etc/ssl/certs/dovecot.pem because it doesn't exist. I hate to admit it, but I'm a total newbie when it comes to SSL - how can I make that SSL certificate so I can get dovecot t

i wanna play Catacomb!

ahh yeah HarryR that was it

i wish i had more than abyss

postfixadmin, postfix itself and squirrelmail seem to be ok at this point

anyone got the other Catacomb games? :P
and the Keen set?
:P

an old game I liked was stonekeep
pretty old

what sort of game?
'/usr/portage/media-libs/libexif/libexif-0.6.15-r1.ebuild' meep

runey, used to much prefer the other apogee games though (duke nukem series)

look on google that would explain it

Santanabaer, alsamixer uses ncurses, if you have ever used it

ahh ok
yeah i did

i want the other Catacomb games
i cant find them on the net anywhere

dosbox with dbgl is quite owning

has dosbox been removed from portage ?
my search is not finding it

DOS is the best OS M$ has ever made…

games-emulation/dosbox

how do I force HDMA to be enabled?

dont mob me, please!!!

M$ Bought dos they didn't make it

found it sorry didnt notice the typo

Dos 6.22, win98se, win2ksp4. Three way tie.

how do I make an SSL cert for dovecot? It won't start without one

i agree
cept w2k
id replaced with w3.11
w3.11 is a beast!

i should get out of the habit of loggin in as root :-/
how can i unzip in linux hosting again?
i cant remember :s

"unzip", if you've downloaded that package

emerge unzip

and will dosbox work over ssh?

Somehow, I doubt it

only if the game was console based

it is!

no, dosbox is a graphical application, you'll need X11 forwarding or VNC for that

catacomb!

(Moon Buggy)

how can i configure X11 forwarding in PuTTY?
i dont understand it :P

vnc doesn't update without input

ah
you'll need a X server for windows though

?

http://www.gentoo.org/

like X-Win32 or something, but that one is commercial

so basically i have to actually go over to my other comp to use dosbox?

you could try Xming, it's free

ill move :P

how about you install it on your local one?

linux-2.6.21-viper2.bz2 , anyone have that file

IIRC there is an equivelant of nice but for IO not disk usage

^^

but i can't remember what it's called
can someone help?

just a quick question, is there a difference between touch ./*/* and touch ./*/*/* ?

no commentr
*comment

as in, difference of making and breaking a system.

Cirindius, yes

(i dont want to fill this comp up :P

I don't intend to test it out on my machine :P could you shed some light on it please?

Cirindius, ./*/*/* will touch three layers of files, ./*/* will only touch two

and if there's no 3rd layer of files, why would that be making or breaking a system?

well, either you get Xming (or other X server for windows) up and running on your comp or you head over to the comp on which you're running dosbox

well, if there's no 3rd layer of files it wont matter, it'll still work the same as ./*/* but allow for a 3rd layer sometime in future

ah, ok
thanks

hmm it's ionice

or i could just run the games natively on windows…

is there an ebuild for ionice?

yes

but running games natively is boring :P
how do i use dosbox? :P im in X11

I need to take more notice of etc-update.

you start it using "dosbox"?

xterm?

-.-; breaks stuff.

backup the costumized config files
whenever you execute etc-update you replace the broken ones

Yeah, I know. would revdep-rebuild fix a broken package caused by etc-update or dispatch-conf, for that matter?

BCMM, found it ?

revdep-rebuild does only re-emerge broken packages … issues that happen with etc-update is that your proftpd jboss server hosting or apache doesnt work anymore like you cvonfigured it
etc-update doesnt touch the packages itself

!time

ah, ok.

so it's just basically replacing the configuration files.

thats etc-update yea

BCMM, ionice seems part of schedutils 1.5 and higher according to this guide: http://gentoo-wiki.com/HOWTO_Light_Gentoo_Installation

thanks

Hey, installing Linux on a friend's laptop, for some reason it's doing two weird things. It's not mounting his /dev/hda2 to /boot/ mainly.

is there any way to distinguish sftp from ssh connections?

But it's mounting his /dev/hda4 to / like it should be, and the fstab is definitely ok

Vash63, as default, boot may not automount, check the fstab ?

it's "/dev/hda2 /boot ext2 defaults,noatime 1 2"
with proper spacing though

Is there any way to configure sudo to allow execution for user X of all executables inside a specified directory?

Vash63, not much wrong with that, any lines in your logs or dmesg ? and sure its /dev/hda2 and can you manually mount it ?

I really love gentoo

It manually mounts just fine.

lemur, enough propaganda already :p

what! we need moar!

I really love gentoo too somehow I could kill it since emerge is running already the entire night and the whole morning

Vash63, during manual mount it uses the fstab, or do you specify it all…, I mean, does a plain mount /dev/hda2 work, no mount point specified

rawr
Well I guess I'm preaching to the choir, but you're the only people who would understand
I tried to tell my family, but they don't understand..

it takes a real tech lover to give a damn

don't force them, that only breeds discontent

heh

oh god, wait till you see me talk to my mom about apache :P
uoh god, wait till you see me talk to my mom about apache :P /u

use lighttpd ;-)

The most I tried was giving my little sister a Knoppix CD to use on the kitchen computer
I booted it and was like, "here, try this"
I don't really think she noticed a difference… she just used it and never thought about it again

"Where's my IE?!"

nah, I've had people like "can I use your computer for a bit"

Well, it's comforting to know that she didn't care one way or the other if it was Windows or not

even though I'm running a stripped down version of xfce3, most people never notice anything if all they want to use is the web browser

My mom, on the other hand, would freak out because she uses the computer by rote memorization only

had one person that wasn't sure how to close the window though because "the buttons are funny"

Ok, found an error in the dmesg.

re

"Detected Intel Pro/Wireless 2200BG Network Connection"
"ipw2200-bss.fw request_firmware failed: REason -2"

Actually, one time a classmate of mine saw me using KDE, and it looked so foreign to him he pointed at the screen and asked, "Hey, did you write that?"

hi, need some help with my /etc/fstab file

-2" "failed to register network device

//192.168.1.130/public /home/lufthanza/smb cifs noatime, password=none 0 0

Oh yeah, that was my second problem. Network driver not loading for the wireless.

Because yeah, I program my own desktops.

Hey folks

is that better than apache2?

apache2 seems like a great piece of software.

is there a space between noatime and password ?

Oh, and 'mount /dev/hda2' works, but it's not mounting on boot even though it's in fstab

yep :/

lighttpd is smaller, usually faster and imo easier to configure, but doesn't have all the features of apache2

i'm setting up a server with jails so that users can access resources without touching anything which they shouldn't be touching. to top it off, it's a free/anonymous server for folks to use.

Having a problem here. Trying to launch gnome. But it isn't working.

so … remov0r that

sorry to have wasted your time

Vash63, does /boot exist as a dir ?

Yes.

nah, that's one of those things you wouldn't see in a month

thanks for your help

Vash63, I would guess there is a mistake in the fstab, tbh, may want to pastebin it

you're welcome

hi! i let gkrellm2 start automatically by xfce4 autostart… my problem is, that there are 10 gkrellm processes i can see via "ps ax", which make my cpu-usage constantly be at about 15 to 20 %… if i do "killall gkrellm2" and start gkrellm2 via cli, the cpu-usage is at about 0-2
%….

hello?

hello!

hi

hey i'm stuck in the termianl cos i've done something stupid

Oh, question about the fstab actually.

hey man

ahh damn Im far away from my target I managed to remove 50 packages

This is the first time I've done a 2007.0, it didn't have the 'proc' line in his fstab.
Is this normal?

from 730 to 678

so downloaded irssi - don't really know how to use it

Mine does on 2006.1.

hey DrEeevil

but need ot know some stuff

haihai!

anyone using reiser4?

may oyu tell me the number of your packages on your system ?

i've played around with the mouse settings - i've got KDE, i was trying to change the sensitivity settings - but stuffed it up - now my mouse is stuck in the top left hand corner of the screen

Vash63, this is a 2007 r1 I think, no proc line either in fstab, just the shm

can anyone help with that?
nihongo desu ka?

~950 on my home desktop, ~500 on my work desktop, 560 on my notebook

genki des
aha DrEeevil :o

nein, kein japanisch :-)

ah watashi mo genki

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

then I think I am in a good standard with the 680 ?

so how do i reset the mouse settings?
or should i try another forum?
–help
oops sorry i don't know how to use irssi properley yet

aha DrEeevil :o

Let's try using a different nickname

oops

O.o

ok how do i do that in irssi?

Anyone have any ideas about that wireless driver problem?

with ./nick yournick

yeap

CTRL+ALT+BACKSPACE will kill your current X session. you can check in /etc/X11/xorg.conf to see if the mouse sensitivity settings were applied there by KDE. Otherwise they could have been saved in ~/.kde/ somewhere, in which case it might be easier to just rm -fr ~/.kde and start KDE
again

It's an Intel card so I wouldn't think it would be difficult.

./nick BeatBreaker

X is ~100 items, KDE-meta is ~130 iirc, base system is ~110 … 600 is quite normal

To make it permanent you can /set nick [something] and then /save

ok cool

Vash63, says noauto there

thx that helps me a lot !

Vash63, check again ;-)

Would VLC building without Python bindings or a USE flag to add them be a bug or some other kind of error, or intentional?

record seems to be renihs with ~2500 packages :-)
I'd guess intentional

rofl did he install the whole portage ? lol

that means that any program that relies on the VLC bindings would fail

there's ~9500 packages you could install on x86 …

wow

g or some other kind of error, or intentional?

thanks i'll give some of that a go

sorry

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

cheers for the tips

Ok, that's the problem with my wireless as said by dmesg

what am i looking for in my xorg.conf?

It was typed over to another computer so it might not be char-for-char.

with the time you ll get a routine

i had a look before but have no idea

aaah, just checked the portage bugtrak and it seems that they have been added, I'm assuming all I have to do is resync portage?

Vash63, I cant help with wireless, I never used one (deliberately)

to see the list of users in a channel use /names

and maybe use the ~arch package

look for a device section relating to your mouse, I'm not 100% sure what the setting will be, but you should be able to find it. make a copy of xorg.conf before you start editing it (eg: cp xorg.conf xorg.conf.bak)

cool, i took a look at it but couldn't find anyting in realation to sensitivity
i've got 2 mice in there though - is there a way to revert the settings?
maybe just copy over with an old xorg.conf? - OR should i do that rm -fr ~/.kde ??

remove one of the InputDevice sections — or just place a # at the beginning of each line for the entire section
any changes to xorg.conf need you to restart X to take effect

crtl + Alt + backspace?

that will kill X (and all running programs), depending on how you started X you might need to do startx again, or xdm/kdm/gdm might restart

also say if i tried some of that stuff now, and went off - to keep irssi open i can just do a ctrl + alt + F4 or something, and go back here?

That's why I do everything that's important in standard terminal instead of an X term.

when i need to

BreatBreaker, yup

yep

sweet

you'll do that very often :P

CTRL+ALT+F7 should bring you back to X

and even 2 X-sessions is possible

yeah that's a little useless at the moment until X restarts

with 2 compleetly different wdms

..with the new mouse stuff in it

how do you do that with 2 sessions ?

many thankx, i'll give it a go and get back to you on how it goes

Santanabaer, No idea. I googled it once. Used it to run wine in a seperate X session. But should work with a normal WDM also because twm is also a wdm although tiny.

i am a little freaked out with rm -fr ~/.kde -what the hell am i actually doing there?

that's why I use screen .. doesn't matter if the terminal goes away, as long as the box has sshd running I should be able to pickup where i was

ok thx myzrael

screen?
Santanabaer, if I still had the config file I'd give it to you but it's gone with the wind.

, so if your user name was foo it would = /usr/foo

I hope you're not running X as root though for everyday use, not a good idea

its alright no worries if you found it on google I will too

hehe true

Hello all, is anyone able to help me with connecting to a PPTP vpn server?

emerge -s screen — handy app to have around

alright Tad I'll check it out.

but dosen't rm usually mean Remove?

The X kill thing is the main reaSON i still use the terminal every once in a while.
BreatBreaker, yes

*grin
i love the old classics

yes, other option is to mv ~/.kde ~/.kde-backup

aka Catacomb
:P

so what am i doing there? will that basically destroy all my settings in KDE?

lol Tad…looking for a screen screenshot
that's hard on google hehe

BreakMyKDE.com :O

yes, try the mv command, it will just rename .kde to .kde-backup and then when kde starts it will be with defaults. If your mouse is good, then the problem is in .kde-backup

i'm sorry i'm a real n00b but i'm dying to learn more

good luck

How could KDE be responsible for the mouse?

BreatBreaker, just give yourself time.

totally understood - i guess i won't mind so much that i won't have the settings there - will they just be visual/asthetic settings?
i made the changes in the KDE GUI mouse thingo

… since when has ID Software had a website?

Oh man

pretty much

runey, I dunno, maybe 10 years

since…. forever?

ive never seen it before

screen run multiple screen sessions that can be detached from a process (term) and atached to other process so you dont lose your terminal sessions if say, your xterm segfaults

anyone using nzbperl here ?

has anyone got the other Catacomb games in the series? :P

yeah totally

greboides, so what happens if you run screen in X and it dies?

and look! http://www.idsoftware.com/

it goes to your normal terminal so you can F4 to it?
(for example)

its an awesome website!!!

another question - how do i save this session in text to go back? i'm in irssi

man i love ncmpc

you can screen -r it from anywhere…

what will be the improvements? do you know?

Hello all, is anyone able to help me with connecting to a PPTP vpn server?

dir

Skunky,so in short. I run screen in X. X dies. I get kicked to the terminal again and type screen there and my processes will be back?

Everything is migrated to QT4, which has many under-the-hood improvements. Supposedly it'll make apps automatically faster and smaller in the memory
Also, various components have been replaced by new programs, hopefully nicer ones

no, screen -r there, to reattach an existing screen session

yep, and you can have multiple "windows" in screen, so you can run an emerge, watch a log, edit a file, all in one detachable session

awesome - is KDE slightly more costly on resources than Gnome?

does anyone *know* where to get the other Catacomb games?

TaD, Skunky that's awesome!

No comment. I have never seen proof for or against either desktop in that respect.
uNo comment. I have never seen proof for or against either desktop in that respect./u

hopefully there'll be a better mouse GUI - especially to configure a 5 BUTTON MOUSE

How many buttons do you need

5
AT LEAST!

Well I know KDE has some crazy configuration options

it's also handy when you start something, and forget to end it, can ssh into your box from somewhere else, screen -D -R and you've got the session right there

No doubt you can find a way to utilize all 5

by the way….I actually build firefox last night by accident.
Wasn't such a pain at all.

ok so one more Q -how do i save this session in a document incase i need to revisit this?

firefox takes 1 hour to compile here

Skunky, yeah I'll definitly check it out.
Santanabaer, indeed. No big deal.

kde4 beta 1 was released yesterday, wasn't it?

I used the binary before because I was told that it took ages. But it didn't
so removed the binary.

well compared to openoffice infact no deal

anyone?

I run tv_grab for XMLtv from a script, when I run it manually everything works but when I run it from cron I get a PERL error (unclosed token), Any ideas?

Firefox starts fast. Like in a split second.
My gnome session is broken though. Looks like I have a lot of stuff to fix.

actually .. there is not a big difference in speed between firefox and firefox-bin

ok so one more Q -how do i save this session in a document incase i need to revisit this?

Santanabaer, true. I didn't notice. But startup time of the compiled one seems a bit faster but that's about it.

yeah thats a bit faster

Talking about quarters of a second here.
no big deal

sorry, I don't know, I only use irrsi very occasionally … anyone else know how to save the current irrsi buffer
http://www.flickr.com/photos/troydack/995942694/ — screen screenshot

thanks - or do you know how i can get a list of commands up in here?

/help maybe

nope

woot woot TaD
looks nice

many thanks - arigato! i'll see you guys on the other side if this works

bummer gnome is still giving errors while launching.
Half of it ain't working.

startx to restar X right?
*restart

yep, if you that's how you started it before

startx to start x
ehe

i just booted into it before TaD myzrael

then X may well restart on it's own

with a ctrl + Alt + Bkspace
?

unless you can log out normally
in KDE CTRL+ESC might bring up the K menu

i always thought there was a way of restarting the desktop from the terminal that will keep the current session also

are you in X at the moment, or a terminal (ie: CTRL+F1-F6) ?

back later
X restart here
gnome problems

never tried CTRL+ESC before, will give it a go
im in terminal CTRL+F1
F7 is useless

ok, in terminal you can do: kill `pidof X` to kill X, but better to go into X and try to logout …

I am looking at the ATI HOWTO on the wiki (first time with an ATI card) and am not sure about this AGPGART stuff in the kernel - as I use PCI-e not AGP

so CTRL+ALT+F7 doesn't work … nvidia video card?

back
with gnome running and finished
and emerging xfce4 because if I go gnome-light I might as well go xfce4

well it works - just is useless, because of teh mouse issue - keybaord still works, i just thought i forgot a command that would allow me to restart the desktop witout having to kill the session completely

then switch to X, and CTRL+ALT+BACKSPACE and kill it … graphical login program should restart X and then see how your mouse goes

k no problems
i'll let you know how it goes

Hi! Just testing my new IRC client irssi.

I have a Gigabyte G33M Mobo, none of the livecds boot
or see my harddrives more specificly
anyone around?

ok that didn't work i did sudo mv ~/.kde ~/.kde.backup

yup

yeah, but i won't be much of use

ok, what username are you logging in as?

do you want me to use that instead?

anyone know if the new AHCI controller on the Gigabyte G33M has any kernel support as of yet?

yep, replace the ~ with /home/username

sweet

if it's AHCI linux should support it

jacekowski, well the thing is, I can turn the raid function on in my bios, but when I do theres no drives detected by linux :/

ok that didn't work either - i restarted the session and everything
could it be in my xorg ?

this's isn't true raid

ok either way…. what does that have to do with the fact the livecd doesnt boot or see any drives?

http://rafb.net/p/nqt05r43.html . Can someone give me a helping hand?

http://linux-ata.org/

should i try to join a KDE baord instead?

jacekowski, that was not only a useless link it doesnt resolve any of my problems or even answer the simple question I asked.
jacekowski, dont offer to help if you have no clue, just say you dont know

this isn't hardware raid

actually it is

hi

it is not an add on card
but it is a hardware raid
this isnt a promise bios
which would not be a hardware raid

try dm-raid

too old
my mobo was released 3 weeks ago
hence me asking if the kernel even supported it yet

there's a database online where i can search a file name inside a package?

no

sorry for my english

Raider, if there was google would know, but as far as I am aware, no there is not.

did you try several livecds ?

Santanabaer, yes like 20 :P

all the same result?

conrad, lyxnax, small gento, gentoo etc
yep
similar

Raider, you're searching for a file within a package?

not the exact same :P

suxx :/

Does anyhow have a good site for a kernel compilation? Now that most of the stuff is working I'd like to tweak my kernel.

dawn`chorus, yes

Raider, try 'equery belongs filename'

hey guys - nfs question

more than likely it is in your xorg.conf somewhere … can't tell you what it would be though

dawn`chorus, in all packages

I'm exporting /mythstorage from my mythtv server which is mounted from /dev/vg/mythstorage or something similar with jfs as the file system, in it is another directory: /mythstorage/videos which is mounted from /dev/sdb1 and is jfs. Now when I mount my mythstorage dir over the network it
mounts mythstorage just fine, but the videos dir is empty

not only in installed packages

give me a couple of minutes

can anyone explain how to fix this?

http://packages.slackware.it/
like this

did you change the "Pointer Acceleration" ?

Raider, oh I see. yes, that's equery's limitation. what file are you searching for?

edit /home/username/.kde/share/config/kcminputrc … you should be able to work out what to change there

dawn`chorus, nothing in this moment

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

how can I enable firefox to do sensible things with pdf links? at the moment it just gives me a blank page

lesshaste, that's an upstream bug, i think.
i can't manage *any* of my filetypes.

dawn`chorus: updating firefox seems to have killed all my add-ons and the management of all filetyp4es
dawn`chorus: I would assume that is a gentoo problem

lesshaste, my add-ons are fine. but no, i discussed the filetype problem with some firefox folks yesterday.

dawn`chorus: what version are you on?

2.0.0.6

and 2.0.0.6 has no way to manage filetypes??

witam. ;D

it was attributed to a corrupted mimTypes.rdf file.
*mimeTypes.rdg
:sigh:

hum, is it possible to have a 64-bit kernel and evrything else 32bit?

yes

ah nvm, dont wanna reboot! ;P

what are you trying to solve?
is there some particular 32 bit app you want to run?

recommendation for a videofile information tool?

nope, will stay 32bit anyway. Don't wanna reboot :P

ok.. not sure what you were hoping to get from 64bit
what info do you want? mplayer will tell you some stuff

nothing, 64 bit is just more problems.

lesshaste, x264 bitrate… mplayer always says 0.0 kbps

I am on 64 bit
there is actually a tool called x264 I believe

the performance increase is so small that i dont consider it worth it.

Just wondering. I don't always know what options to tick on my kernel or to untick.

ask in #x264

Is there a guide for that?

true

I only saw small kernel guides with littly option but not a guide that really goes trough a lot.

there are some howtos. which ones have you found?

found a few gentoo ones lesshaste but not much information there.

like this one http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7 ?

need something that will guide me trough the entire bunch to make sure my kernel is as small as can be
yea lesshaste

not sure if there is a better guide.. each option has a help document
why do you need a really small kernel?

dunno. Just to tweak it for fun.
(And wanting to learn something)

then tweak it yourself and learn ;-)

ok.. then experimentation will be your way combined with reading the help docs with each option

yup, been reading all those help docs.
Oh well no biggy

you should know that only the parts that are used stay in memory if you compile most stuff as modules

it's gonna take time then.

so the size difference you get will likely be very small in practice

I compile everything in the kernel.

why?!

Modules gave me headaches in the past.

well for learning I would recommend moving absolutely everything you can into a module

as long as you only compile the necessities, it wont make any difference whether its a module or built in

finding " the necessities" is not easy

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

how are you meant to know which options are necessary?

if you know your hardware configuration, no it isn't

not true

snagg641, I know my hardware

well maybe ive been doing it for so long its second nature

but stuff like Intel CPU microcode support etc
that tells me nothing
sound like I don't need it though
hehe

google for it then

so then why would you modulize it
also, there's help for each config option

yup…I don't need that option
hehe I know that snagg641 …read a lot of them

I'm with myzrael on this
I have been compiling for 14 years
and it really isn't that obvious to get all the options right from the help docs

googling at every option takes a while………..hehe

and things change as well between kernel versions

so you've been compiling kernels for 14 years but you dont understand the kernel options.

emacs and emacs-21. what's the difference?

true……and by the looks of it this kernel is a lot bigger then 2.4

how can i set up my tv tuner/
*?

I did it before on an imac 3 years ago and that was a lot easier.

dawn`chorus: probably the same, the 'emacs' is probably just a link to the emacs-21 bin

snagg641, ok. i'll check that. thanks

don't be silly there are hundreds and hundreds of options.
of course I understand 99% of them

snagg641, yeah, your'e right.

but 99% isn't enough

hehe

so then read up on that other 1%

I see you are in an awkward mood
I was sympathising with myzrael …there is no central doc

im not even sure what the argument is tbh
i agree

there you have your argument

well if you have a question about an option, just ask

I'll be asking the whole day
that could take a while

lol
what proc do you have?

Model-specific register support.
core 2 duo

and you know that after the third question someone will tell you to RTFM and the whole thing will go in a circle

64bit

maybe subscribe to the kernel mailing lists… that should keep you quiet a while ;-)

lesshaste, exactly.

do ask and don't be put off is my recommendation
do you have an amd64?

EM
I'm at processer type and features now
doing it from the top to the bottom every possible options
-0s
-s

my experience is just for amd64's but in general 64 bit support gives you very little for a little extra pain

psssh

lesshaste, I have good 64bit experience

i'd say it just works

myzrael, small piece of advise… do a section then try the changes.. don't change it all in one go and keep a good backup in grub

Comments

Im trying to add ssl to my Ubuntu apache2 server it wants me to enter this command openssl x509 -req -days 365

lol, ok

you should only chmod the directory where it needs to write to.

but.. I don't think the apache user is part of wheel, which means I would have to 777 it otherwise.. unless it is part of wheel

in that case, 777 would be required, yes
ONLY on that directory
also, best make sure that directory is not accessible from the documentroot
for obvious reasons.

security isn't that big a deal in this case - the server is ran inside a vmware client on my windoze laptop. I am setting this up so I can develop while I travel

security should never ve neglected.

heh. I have my firewall setup so that no incoming traffic can access port 80 on any IPs from my machine - so I do have some security

suit yourself

what do you mean by the directory is not accessible from the dicumentroot?

it's not a subdirectory.

oh, of public persay ?

if it is, consider putting Deny directives
not a subdirectory of %DOCUMENTROOT

this is a great idea…..

what is?

has this and or that permissions per default.

I don't see where you're going.

and give default permissions you want to have, and then in the Vhost context you don't have to define it explicitly for each vhost.

oh.
mildly useful, I guess.

Yeah.. probably.
Well.. it was my first try for today.

teehee
jMCg++

^_-
I'll go play some more with mod_proxy_fcgi and lua…

Yay! no more errors in my apache log - but… that doesn't mean my ruby is working =(

you're getting there

cgi? fcgi? mod_ruby? webrick? someothersuck?
[or the soon to be mod_proxy_fcgi ;]

fcgi
and ror

mod_fcgid

mod_fcgid is like mod_fastcgi, but uses a new process management strategy, which concentrates on reducing the number of fastcgi server. or at http://fastcgi.coremail.cn/. See also http://paul.querna.org/journal/articles/2006/01/01/using-mod_fcgid-for-ruby-on-rails-applications

change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html

you read the last link thingy?

I'm sorry -I'm using fastcgi - I thought fcgi was a short hand for it

fcgi

fcgi is resident like mod_php

fastcgi

fastcgi is http://www.fastcgi.com/ or see mod_fcgid, which is more up-to-date

some one here with apache,access to access.log,nc,perl and can send this http://cxg.de/?id=xgJDbHrWqOCPstX by using "perl script.pl | nc webserver port" and say me the access log entry?
nevermind, ive access to the access.log

wow

I had figured that if I accessed the machine in my lan from its DNS name, it'd be treated as an incoming connection from the internet

change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html
anyideas about this?

is it impossible to make a negated/inverted LocationMatch?
I want to match all urls NOT containing some regex

nope

this error message is really unhelpful, and apache log says everything is a-ok

well, how do I do what I need then?

you can't do it with any of the *Match directives. the only thing is with mod_rewrite
and do some kind of rewritecond
most likely against the %{REQUEST_URI} variable
rewritecond

rewritecond is http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond

rewriteguide

http://httpd.apache.org/docs-2.0/misc/rewriteguide.html http://httpd.apache.org/docs/misc/rewriteguide.html http://www.engelschall.com/pw/apache/rewriteguide/ http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html http://rewrite.drbacchus.com/ http://httpd.apache.org/docs/1.3/misc/rewriteguide.html

well ok, thanks

could this be my problem? [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter

hm, why likes apache the NUL string inside the request header?
°character
hm, someone running the lastest apache release and can test a request please?
(lastest = development branch)

could this be my problem? [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter

RewriteRule ^/ao/(\d+)/([^.]+)\.(.*)$ /ao/rk$1.php?nick=$2
Is that RewriteRule incorrect?

hi, is it possible to redirect to another url only if the original request url matches a certain pattern and is missing (404)?

errordocument 404 in location container
LocationMatch that is (for the pattern part)

ah, thank you.

When I try /etc/init.d/apache2 start it returns this error: "apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName"

fqdn

fqdn is http://wiki.apache.org/httpd/CouldNotDetermineServerName

^^
this is a warning. Apache will still start.

what?
and that didn't change anything
same warning

then you did not understand the factoid.
read it again.

apache2 starts with no errors now but telnet 127.0.0.1 80 and telnet localhost 80 returns nothing

what does netstat and lsof tell you , then?
lsof

lsof is your friend! lsof -i:80 to see what's using port 80. You may need to run lsof as root on some platforms

netstat

netstat prints network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. Use netstat -an grep -w 80 to check if port 80 is in use. (On linux, you can use netstat -pan to see which program uses the port, or -ltpn.) (For Windows use -ano to show the state, PID, and connection in IP not name format, or -abn).

2650 localhost:http
that seems like the pertinent line

no, you need LISTENING lines.
pastebin the last 30 lines from your error log
apc

Try using http://apache.pastebin.ca - It's a good pastebin, and is even set up to highlight Apache 'stuff'.

http://apache.pastebin.com/mf3c875f

so it seems to be running
what port are you using, exactly?

i believe i am using port 80 and port 443
i set those two up to forward

and find your Listen line, please
paste your Listen ilnes here.

i dont think there is a listen line in linux

no in the httpd config files, dummy
Listen

Listen tells apache what IP address and port to listen to. See http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen or see binding.

lol
Listen 80
listen localhost:80?
would that be better?

no, Listen 80 is correct.
are those logs recent?

yes

if so, try opening up your page with http://localhost

doesnt load
i tried telnet localhost 80 too and that returned nothing

is there any error message on the command line when you start apache manually with apachectl start?

no

try to stop it, then start it again, please

done
didnt change anything

and of course, there is a corresponding entry in the error log?
ok, pastebin your config file.

http://apache.pastebin.com/m6cb79ea5

Include /etc/apache2/vhosts.d/*.conf
setting the servername outside your vhosts is a bad idea.
let's see the output of httpd -S

where do i run httpd -S

in a terminal.
where else?

lol
i know that
command not fouund

you might need to specify the full path
default layout

Pop along to http://wiki.apache.org/httpd/DistrosDefaultLayout for an idea on where the main distros place Apache files.

gentoo isnt in that list

you're right
I have no idea where gentoo places the apache binary files

whats weird
is i had this working when this computer was hooked up to the SAME router except on a wired connection

oh you're the wireless guy?

haha
yes

*shrug*
sounds like a networking problem to me.

hmmmmmmm

fajita be frank

be frank is )letting your frustrations out all at once

YES

be niq

mmm, tea

:P
heh, evening friends

aw…

Yeah,… isn't it a bit past your bedtime… :p

HEADSHOT!
boom!

HEADSHOT!

heh

be chipig

I hate character sets. Bane of my existance.

heh

still are.
unicode–

jibba jabba

aww

everything-else–

quit yo jibba-jabbin, foo!
chipig :[
im in ur locale, changin ur charsetz ;p
im in ur pad, cleanin ur digz ;p

:o
heh

you messy slob
haha, yeah
you know you like :p

i do.

dirty boy!

servertokens cia.vc

Couldn't get a useful value for http://cia.vc

figures

can someone tell me what the error - rootpath/.htaccess: order not allowed here means?

order context

directory, .htaccess

order override

Order may be used in .htaccess files if AllowOverride is set to Limit

^^

so does that mean I'm most likely getting this error because AllowOverride isn't set to Limit?

that's very likely.

thanks, that does seem to be the issue. However, AllowOverride All works while AllowOverride FileInfo Limit doesn't seem to do it
but I read that AllowOverride All is a securitiy issue

another directive might be blocked. Check your error log.

the error log doesn't say anything about another directive being blocked. However, I have the AllowOverride directive in both within the context of my web path and within the web path within Virtual Host tags. Could that be causing a conflict?

context

I believe it's in the proper context - directory web-root. However, AllowOverride All works while AllowOverride FileInfo Limit doesn't. I'd be fine with that if that's secure, but I'm not sure if it is

Howdy all

oh no

Glad to see you too, thumbs
:P

with AllowOverride FileInfo Limit, what does the error log say?

it says rootpath/.htaccess: order not allowed here

allowoverride

AllowOverride tells Apache what things you wish to permit in .htaccess files. See http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride

will take a look. thanks

help please, i'm having a devil of a time with apach2 and htaccess

Whoops! That's not the name of a module.

how about you ask your question?

i have googled, man paged, and attempted for 1 week to set up .htaccess for directory control to no avail
how do I appropriately set up .htaccess in apache1
sorry apache 2

it depends on what you want to do in your htaccess file.

i created the .htaccess file
it's simple

it depends on what you want to do in your htaccess file.

just require valid-user

Hey guys - I'm a bit stuf with apache 2.2. I want to use mod_rewrite, but it doesn't appear to be in the modules direectory. Nothing is! :/

AuthType basic

auth

Take a look at http://httpd.apache.org/docs/2.2/howto/auth.html or http://wiki.apache.org/httpd/PasswordBasicAuth for some basic examples!

AuthName "Section Name"
AuthType Basic
AuthUserFile /full/path/to/.htpasswd
Require valid-user
sorry

You will be!!

Do you have "AllowOverride auth" set in httpd.conf for the directory that contains your .htaccess?

yes
i'm using virtual hosting also

so install it.

what does 'apachectl configtest' say?

Erm…
Since when?

Since when is 'Include' a syntax error?

what distribution are you using?

…. I run FreeBSD

since when what?
in order to load/use a module, you need to install it first. Or compile it statically.

Since when did it come separately, I could have sworn it was 'just there' previously

well is the module present in your modules directory?

It is "just there" in my distro. However, I run Fedora 7. Maybe you should check the documentation for FreeBSD, or a FreeBSD help channel for assistance with FreeBSD packages?

Packages can suck my dong.

i don't have apachectl installed

OK, if I've got to install it, where the hell do I get it? Is it in the httpd tarball?

You're obviously attempting to use them, since you expect files to 'just be there'
You compile host it, and it will be one of the compiled files.
make install may even put it in the right place for you.

double checking my configuration files

meow!

meow is a small Cat's BIG roarrrrr

I passed –enable-rewrite when I compiled it :/

meow, megaspaz.
beware of lion cubs.

:o
..
perhaps that means it's compiled in statically…. if you didn't do –enable-so that is…
in which case you wouldn't use LoadModule… you'd just do rewrite directives…

Well, when I try to start it, it says RewriteEngine isn't valid in the conf file…

ah hrm…

That's why I went to enable the mod

so you're compiling apache right?

Yup

./configure –prefix=/usr/local/Apache2.2.X –enable-so –enable-mods-shared=all –enable-ssl –enable-proxy –enable-proxy-connect –enable-proxy-ftp –enable-proxy-http –enable-proxy-ajp –enable-proxy-balancer –enable-ldap –enable-authnz-ldap –with-ssl –with-ldap –with-mysql –with-mpm=prefork –enable-exception-hook
that enables most modules…
as DSOs

Blimey

change the prefix and get rid of the extra enables if you don't want to use them
i get pretty explicit
but rewrite is handled in the –enable-mods-shared=all line
anyhoo… it's at least a guide…
oh unless you're planning on downloading the mod_dbd mysql driver, definately dump the –with-mysql

:o

wtf? mysql support in apache? What for?!

just because
*shrugs*

Yeah, but what /for/ ?

allows apache to talk directly to mysql
no php
needed
for example

because it's awesome?
why not!?

or for using some things like db driven dynamic vhosts

fajita karma mysql

mysql has karma of -5

wtf

bucket to identify that AuthName is allowed in /home/*/public_html?

megaspaz, yeah it works well
for my 2000+ vhosts

but there's a whole bunch of db drivers that mod_dbd supports
*shrugs*

Eurgh, nah. Think I'll leave database stuff out of my web java server hosting :/

fajita ricer

what?

heh
that link that used to be there has changed content as well
it was funny… always put a smile on my face…
:/

yeah
I miss funroll-loops
I should remirror
FOR TEH INTARNET!

+1

\o/

purr

o.O

Poke!

what the fuck!?

! is the "not" or excitement

megaspaz http://www.ilovemeow.com/img/mc10188.jpg
fucking intarnet

haha

that's a fat cat :p

jabba the fat :p

hehe

haha omg
this is so wrong…
…. and yet I can't stop catting!

Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration

http://www.ilovemeow.com/img/wizard.jpg

WTF?!

megaspaz, that's so wrong… for so many reasons… :P ~

yeah, if you're using apache2.2, there's been a change to the auth module name
mod_access

mod_access is http://httpd.apache.org/docs-2.0/mod/mod_access.html or http://httpd.apache.org/docs/mod/mod_access.html Called mod_authz_host in 2.1 and later
mod_access is a href="http://httpd.apache.org/docs-2.0/mod/mod_access.html"http://httpd.apache.org/docs-2.0/mod/mod_access.html/a or a href="http://httpd.apache.org/docs/mod/mod_access.html"http://httpd.apache.org/docs/mod/mod_access.html/a Called mod_authz_host in 2.1 and later

:o
fajita ps3?

megaspaz will never get one of those! what a looser!!

:O!
haha, so true
poor bastard

already got one :P

yeah
but what'd you have to sacrifice?

your family

your morality?

So I need to LoadModule it, megaspaz ?

yes

yeah, with the right module name alias

fajita, family?

bugger all, i dunno, daveman

haha

is it still access_module?
but a new filename?

no
look at fajita's reply

I told you to load that module two horus ago.
I assume you ignored me

There WAS no module to load!

there is.
mod_access

mod_access is http://httpd.apache.org/docs-2.0/mod/mod_access.html or http://httpd.apache.org/docs/mod/mod_access.html Called mod_authz_host in 2.1 and later

err
mod_authz_host

mod_authz_host is http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html provides Order and used to be called mod_access

You're really not listening
megaspaz is helping, you are being condescending. _

spazcat :o

If I have provide Cache Control headers like Expires header or cache-control-directive = max-age for 302 redirection where in the httpd.conf do I specify them?
morning fajita.

spaz, you ever go on vacation?

yeah
went on one in may
went to .uk and met up with noodl and pctony

Anywhere nice in the UK?
I was in London today..

yeah, i stayed for like 5 days in london
i thought it was cool
wouldn't want to drive around in london though… looked pretty fscked

Driving there sucked
hah

one basic question, how are headers which needs to be returned added ?

megaspaz :o
megaspaz, would you drive in manhattan?
:P

nope
i heard the subways in ny were good enough
which is what i did in .uk
anyways

:p

manhatten traffic = teh suk

yeah well
get used to it!
:P
NOOBS
megaspaz, so was pctony as much of a jerk in real life?

no
:/

Supaplex
megaspaz, haha, disappointed, were we?
Supaplex, nasty

Daveman–

sorry :P

what the fuck?
asshole.

is this irc connected to reality?

fuck no
this is freenode :P
fajita, freenode?

freenode is usaully pretty forgiving but not with tor cloaks

%-)

could be better
needs more glines

I agree.

i have a dyndns.org accout and i want to learn how to get it to mirror to webpages that i make on my buy dedicated ip address.
is there a howTo or documentation for setting-up / configuring Apache for DNS?

dyndns just sets up the mapping of "hostname.com" to an IP address

servername

servername is http://httpd.apache.org/docs-2.0/mod/core.html#servername or http://httpd.apache.org/docs/mod/core.html#servername

oh man. is this dejavu?

he needs to learn a lot more first

set your servername to your dyndns.org hostname.
perhaps
pardon my bad mood

you need to set up a HTTP server (apache) on your local server. set up portforwarding on your router
and set dyndns to map your hostname to your IP

thanks thumbs
okay this has all been done
the 3rd step has not, by the way
however, on my DNS account, i have given it my ip, so perhaps it is setip.

yes

router

In order to access your web server behind a NAT router, you must forward the port apache is listening on to your internal IP. Then you can access your site by pointing your browser to http://your external IP here:port. If your ISP blocks port 80, see 'port 80 redirection'. Instructions on how to forward a port using most common routers can be found at http://portforward.com.

anyways, i will look into learning a lot more first
i am familiar with portforwarding and starting the apache2 server
where does a ServerName directive get specified?

in the httpd.conf

cool

vhost examples

Look at these for examples http://wiki.apache.org/httpd/ExampleVhosts : http://httpd.apache.org/docs/2.2/vhosts/examples.html

^^

cool, thanks guys
these are Virtual Hosts, i thought that is not what i want for dyndns?

yes, you can set up one virtual host.
or you can simply set the servername in the main config.

cool, that's what i want to do

however, if you have existing virtual hosts, you must alter one, or add another.

or at least try to do
i have nothing so far.

you're starting from a blank config file?

not blank, but virtually default from the generic install

the generic 2.2.4 config has vhosts.
default layout

Pop along to http://wiki.apache.org/httpd/DistrosDefaultLayout for an idea on where the main distros place Apache files.

i'm still running version 2.0.58
i installed mine via the package with my linux distro, it's not exactly matching the default install config file locations. but i'm learning.
which example can i expect to use if i am just going to try a simple setup consisting of one site on one dyn virtual host on one ip address?

the simplest vhost instance from the factoid.

is that on the examples page that fajita posted up above?

yes
vhost examples

Look at these for examples http://wiki.apache.org/httpd/ExampleVhosts : http://httpd.apache.org/docs/2.2/vhosts/examples.html

yes, i'm looking at that page still, it's just so over my head and Greek to me. :-|
sorry, i'm too n00b for all this eh…

I'm trying to add ssl to my Ubuntu apache2 server; it wants me to enter this command, "openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt", but then I get "server.csr: no such file or directory" .. and the guide I'm following doesn't say much in that area… can anyone point me in the right direction?
erm. Nevermind. Always helps to follow /every/ direction

yup. that's technology.

Evening. What is the best host way to allow http and https to the same website with the same settings in VirtualHost..?

you'll generally have some differences (related to ssl)

the preferred way is to make two separate vhsots.

ack
That's what I have now, but it's a pain to try and keep both up to date when I'm changing stuff all the time.

include

include is http://httpd.apache.org/docs/2.2/mod/core.html#include and can take a file, directory, or shell wildcard as an argument.

I was hoping there was a way to cascade settings.

mod_macro

mod_macro is an Apache module written by Fabien Coelho that lets you define and use macros in the Apache configuration file. or http://www.cri.ensmp.fr/~coelho/mod_macro/

I'd try include first.

that gets applied to both?

it's news to me if you can

rats
I mean seperate but overlapping virtualhosts

which makes no sense now

just use include files.

Okay.

is there anyone that is willing to give this n00b a clue :-|
would anyone be willing to put into layman terms where i could read on how to use dyndns to setup a simple webpage with apache?
or is this a situation where i should contact dyndns directly to learn how?

it's easy

i'm sure it is, but i have no idea where or how to start. i have apache installed and my dyndns account started.

ServerName foobar.dyndns.org DocumentRoot /path/to/docroot /VirtualHost

before that, you need Listen 80 and NameVirtualHost *:80

is that a script i but into my httpd.conf ?

it's not a scripr. It's a series of directives.

where do directives go?

in the config file.

so can i just copy and paste those series of directives which you just typed, and paste them into the appropriate places in the config file, and see if anything works?

sure

Thanks guys. Include tested and working.

you will need to put them on a separate line
each directive, anyway

hi, i've tried to disable apaches trace method using mod rewrite but it doesn't seem to work. anyone got any ideas? is it my configuration?

i changed Listen 8080 to Listen 80, yet i see no place for NameVirtualHost

namevirtualHost context

server config

^^

what does that mean.

what are you trying to achieve, exactly?

to disable the trace method

it means that you can only use that directive in the server config.
context

context is http://httpd.apache.org/docs/mod/directive-dict.html#Context http://httpd.apache.org/docs/2.0/mod/directive-dict.html#Context http://httpd.apache.org/docs/2.2/mod/directive-dict.html#Context

^^
trace

trace is a standard HTTP method. Also ask me about "TRACE hype" or http://schroepl.net/cgi-bin/http_trace.pl

i know its standard

um, I'm not sure then.

i want it disabled

I've never fiddled with it

anything. but specifically just have like a simple html file or whatever kind, and be able to host it on apache and redirect to it from my dyndns dave.homeip.net account.

you need to understand how vhosts work first.

i want to just start learning about making webpages, or hosting, networking, etc.
okay, so back to the en.wikipedia.org/wiki/DNS and read up on it?

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

the vhost examples are a good start
each vhost represents a server.
which can be reached with a servername
vhost

vhost is http://httpd.apache.org/docs-2.0/vhosts/ or http://httpd.apache.org/docs/vhosts/

which vhost example would be the most simple one to learn from
or start with

the first ones.

ah yes, and there are the series of directives which you gave me in the first example

i doubt you want a vhost anyway

thanks.

use a CNAME RR?

why not a vhost?

well im assuming you have one java server hosting only

his config has vhosts already set up, most likely.

i don't want to do anything fancy yet, i just want to learn how to use it
i am just trying to play with apache on my home desktop and make a simple webpage redirected from the dyndns name. is that a bad way to start learning?

i would configure the domains zone file to redirect via a cname resource record to the dynamic dns A pointer

his dyndns.org hostname already points to his external IP
no need to complicate his life

wow reading that gave me a headache, i'm so confused

heh :p

he needs to have apache respond to $SERVERNAME. That is it. Vhosts or not.

sorry, i am just a total n00b trying to play frisbee with an atomicbomb it seems. :-|

yes
it's the only way one learns though, keep at it

so i am just going to blindly plug the series of directives from the first example into my config file.
thanks force.
old dog trying to learn new tricks here.
anyone know the default location for a file such as www/example1 on a gentoo linux apache install?

default layout

Pop along to http://wiki.apache.org/httpd/DistrosDefaultLayout for an idea on where the main distros place Apache files.

^^

Hi

ok thanks

how can I have a directory protected with a password? please link me to a "tutorial".

auth

Take a look at http://httpd.apache.org/docs/2.2/howto/auth.html or http://wiki.apache.org/httpd/PasswordBasicAuth for some basic examples!

^^

thanks friend.

DocumentRoot [/var/www/localhost/htdocs/example1] does not exist' and 'apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName'. any tips?

create the documentroot.

i did. i can open both of them in firefox and view them just fine.
must the document root have a file extension?

its a folder?

ooohhh
right
wow cool, that worked!
what about the ' Could not determine the server's fully qualified online domain registration name, using 127.00.1 for ServerName
message.?

If you want help with a message from Apache, report it exactly. Don't paraphrase.

hey, fajita mate, chill

hi

hello

HTTP/1.1 404 Not Found
Content-Length: 1635
Content-Type: text/html
Microsoft-IIS/6.0
X-Powered-By: ASP.NET
7
close
I wanted to understand this HTTP Headers

davo put un i ServerName in the conf

davo, fajita is a bot xD

X-Powered-BY means

fqdn

fqdn is http://wiki.apache.org/httpd/CouldNotDetermineServerName

^^

close

thumbs, sorry, could you help me with htpasswd?

in my vhosts conf or the httpd.conf ?

It should be Keep-Alive

oh okay thanks
so should i put my dyndns site name there?

yes

ok cool.
ServerName is set to my dyndns URL address.

apache is trying to execute any file as CGI, and i cant figure out why.

scriptalias

scriptalias is http://httpd.apache.org/docs/2.2/mod/mod_alias.html#scriptalias or Don't forget to load mod_cgi

^^

can i explicitly add something in .htaccess to say "everything under this directory is static"?

does the ServerName belong in the httpd.conf or the vhosts.conf?

Options -ExecCGI
in the vhost block, if you have one

the only thing in my httpd.conf that says vhosts is 'Include /etc/apache2/vhosts.d/*.conf'

i know this should be simple, but what causes a 403 for apache?
i have cgi disabled now, and the file is o+r

rewriterule context

server config, virtual host, directory, .htaccess

rewriterule override

RewriteRule may be used in .htaccess files if AllowOverride is set to FileInfo

holy cow it worked!
thank you all sooo much!

you're welcome

especially you thumbs and Sconk , etc
woohoo!
oh man this is awesome
i love it
okay i gotta take a break from the room before i start babbling
bye all

fill us in

Trying to transfer four domains from netsol to godaddy
turned off domain protect, gave godaddy the auth codes from netsol, etc etc
godaddy says I now have to get netsol to authorize the transfer
netsol says the auth code was supposed to do that
godaddy says netsol still has to approve it even after issuing the auth code
….argh.

ouch

Smack!!

fajita, be quiet.

shutting up

i wonder how long that lasts. :P
ouch

Smack!!

haha :P

if a file has o+r mode, why would i get 403 accessing it?

what does the error log say, exactly?

/home/ironfroggy/ironfroggy.com/projects/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.ironfroggy.com/projects/coroutines/

(13)

(13) indicates a file permissions problem. Make sure that Apache can read the file(s) and directories being accessed. See also http://wiki.apache.org/httpd//13PermissionDenied

^^

OK, so the transfer worked

but why is failing because it cant read .htaccess?

after I responded to some emails a supervisor sent me

kudos to ironfroggy for having the errorlog handy.

….for 3 out of 4 domains

i cant have an .htaccess in that directory, its a darcs repo

and of course, now godaddy is trying to sell me everything from web hosting to "private whois service"

it's failing because it can't read the htaccess file.

such bullshit.
I need a real domain registrar.

cheap is real enough for me

solution: make sure apache can read it, or rename the file.

there is no htaccess file.
i cant have one.

apache is saying there is
apache is not lying

it is.
im looking at the file listing right now.

ls -al

yup.

yup. is now, as always

.., .., and coroutines directories.
thats it.

what about /home/ironfroggy/ironfroggy.com/projects/ ?
is that readable?
namei

namei follows a pathname until a terminal point is found. Use namei -m /path/to/files to check the permissions of the file and the path up to it. See http://sial.org/howto/debug/unix/parsepath if your system doesn't have namei

its readable to all

every single segment?

segment?

segment is /seg'ment/ vi. To experience a {segmentation fault}. Confusingly, this is often pronounced more like the noun `segment' than like mainstream v. segment; this is because it is actually a noun shorthand that has been verbed.

/every/single/path/segment

yes

how are you listing the content of the directory, exactly?

it's MUCH SIMPLER than stracing apache…

come again?

ls -la path/to/directory

strace (for this issue)

well ironfroggy is not reading the output of namei properly

forget I said anything about strace.

Supaplex, I didn't have anything matching i said anything about strace

pastebin the output of namei

of which path? the directory apache things an htaccess is in?

no. The output of namei -m /home/ironfroggy/ironfroggy.com/projects/

Good day room, I am just trying to make a LOCAL server for testing websites on my computer. I would like to map the IP to localhost or 127.0.0.1 or a relative IP. I have been trying to do this but seem to be having problems. Am I supposed to be using virtual hosts? I did it on Linux, but I have windows now (I have a wife who 'needs' it) and am having problems making it work. Thanks for the help…)

vhost examples

Look at these for examples http://wiki.apache.org/httpd/ExampleVhosts : http://httpd.apache.org/docs/2.2/vhosts/examples.html

^^

Thanks!

http://deadbeefbabe.org/paste/5683

you're missing o+r on /home/.maybelle/ironfroggy

that should be readable?

and o+x on projects
you're missing o+r on /home/.maybelle/ironfroggy
and o+x on projects

im not used to the permissions above a file stopping me from reading the file

so chmod those accordingly

also, wouldn't o+r on my home directory be a security issue?

if you need to serve content for apache, it needs to be done
you might as well chmod o-rwx on your private files.
do those two steps, and it will work.

i serve from my other domains without issue

ok fine, ignore me.
it won't work
apache needs to be able to read the files
so it needs read + execute (traversal) permissions

i understand what you are saying

end of story.
then do it.

but i dont like not knowing why something works or doesnt. knowing why means i can figure out the next problem easier, instead of asking you again.
so what i am not understanding here, is why does it need to look in my home directory at all?

because without the r and x permissions, apache cannot acces that directory.
it needs to start from /
this is unix permissions 101

so you are telling me no unix host process can read directory foo/bar/ without reading foo/ ?

since apache runs as a unpriviledged user, you need to grant access to your files and directories
correct.
no
it cannot.
you NEED read and execute access to foo in order to get to bar
as a matter of fact, this is implemented to prevent traversal attacks

incorrect.

IIS is particularly suscetible to those.

i am not a unix novice. i simply dont use apache normally.
http://deadbeefbabe.org/paste/5684
can you explain what you say in context of that shell output?
i am seeing completely contradictory behavior to what you are saying.

apache implements a different restriction; It's built as such to prevent directory traversal exploits

this is unix permissions 101

so that implied it wasnt apache specific, but a rule of all unix processes
thats what i was confused on, knowing that not to be so outside of apache.

i.e. if a parent directory does not permit listing to the apache user, then a subdirectory which does permit it will still be denied.

Cheap is nice, but not enough

ok, I am tired, and I worked all night

ok
thank you for the help
i dont need anything from them once the domain is registered.
i have the entire path +xr with the 403 still shining brightly

is the error still the same?

I suppose I don't, but getting rid of all the spam would be worth a couple extra bucks to me

hmm… now i get "Options ExecCGI is off in this directory: /home/ironfroggy/ironfroggy.com/projects/coroutines/cosched.py, referer: http://www.ironfroggy.com/projects/coroutines/"
i suppose that means it thinks it should execute the file, but it should not.

Options +ExecCGI

Options +ExecCGI allows a directory to execute CGI scripts.

its not cgi
i dont want it to execute this

your script probably has a shebang line.

yes

so remove it.

you're kidding me? apache wont let me host it without trouble?
i cant.

well

thats the file. thats what it is. its a repository of a project. without the shebang, the file is broken.

there is probably a handler for .py
you could remove the handler.
removehandler

removehandler is http://httpd.apache.org/docs-2.0/mod/mod_mime.html#removehandler or http://httpd.apache.org/docs/mod/mod_mime.html#removehandler

i dont have one. maybe the global settings do.

they most likely do.

i would think, if i say "-ExecCGI" it should just serve the file.

you could try that
Options override

Options may be used in .htaccess files if AllowOverride is set to Options

can i remove _all_ handlers for a certain directory?

have a small quick question about network masks

no, only one at a time.

is it 192.168.0.0/16 to designate all of 192.168?

are you saying i could try the -ExecCGI thing?

yes.
if the admin allowed it.

i have -ExecCGI the entire domain

do you have a scriptalias?
also, are you applying this in htaccess or the main config?

what i dont want is for other files that happen to be added to the repo to suddenly break a pull from it, because apache tries to execute them.
i only have rights to htaccess.

understood.
now, make sure your htaccess file is recognised.
garbage

try putting junk in your htaccess file. If it's being read, you will get an Internal Server Error when accessing that resource.

if the directive is not allowed, you will get a 500.

it is. the -ExecCGI is definately seen, because without it apache does execute the file, which fails, not being cgi.
(it doesnt output anything)

ok then.

the RemoveHandler works

it usually does.

but i feel its fragile, since other handlers could break other files that slip in.
i am surprised if there is no way to just say "this directory and everything in it is static. period."

because of the nature of CGIs, that is not possible.

i am not sure i understand why

of course, Options -ExecCGI does exactly that

since what im trying to tell apache is "i have no CGI scripts, at all."

don't load mod_cgi then

if it does that, then why does it still think it should execute things?
i cant control that, Roobarb

well, I was gonna say, unless that directive is ignored and the handler kicks in

and i have a cgi script or two elsewhere, but not in this directory.
the directive isn't ignored
its what apache was complaining about when the handler tried to execute my file.

either way, the handler has precedence

so the directive was effective in that way.
understood.
can i add a handler for _all_ files and is there a handler that just servers staticly?

a handler is tied to one of many extensions.

can i say *?

as such, removing it requires specifying an extension. No, * is not valid.

ok
well, i dont imagine my project will have any other files apache would think are cgi scripts
i just dont like the idea that it _could_ break

tell the admin to fix the Options, then
tell him to remove all handlers for your directories
since he knows which ones are enabled, he can easily remove them.
that would be the safest move.

its probably global settings on all accounts

Removehandler /directory

removehandler context

virtual host, directory, .htaccess

ah, i see.

it's a matter of him being willing to do it.

hm is a company with many, many accounts to manage. i dont know if they do specific settings like that.

try your luck.
explain the issue it creates for you, and I'm sure they'll apreciate that.

Can anyone help? Apache is telling me that i'm forbidden to access localhost, i'm the system admin and i installed Apache.

what does the error log say, exactly?

One moment please.
client denied by server configuration: C:/Documents and Settings/User/My Documents/Apache/

client denied by server configuration

client denied by server configuration is http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration

^^

hi

hello, gabber.

….

Aha! Thanks thumbs.

no problemo

how common is it that other http servers ignore the CRLF stated in the http protocol spec and use LF instead ?
sorry if this is offtopic.. I couldn't find a #http or similar

hi. what is the root directory on an apache server running on a Mac? (MAMP)

serverroot

serverroot is http://httpd.apache.org/docs/2.2/mod/core.html#serverroot

default layout

Pop along to http://wiki.apache.org/httpd/DistrosDefaultLayout for an idea on where the main distros place Apache files.

^^

thanks

Hi

hi leo

login into new push

call to undefiend function mysql_connect() in /var/www/db.php on line 2

this is apache…check this in concern channel…
Any way restart mysql and give a try

how can i do that please
aha,ok

look at the topic dude
We're still not ##php.. duh

else check the database and username password

Comments

I am trying to set the terminal attributes of the stdin fd 0 and somehow it is affecting the stdout fd 1 I am

hiya

briefly, what is it?
youtube has a habit of crashing flash and taking my browser down with it

i just do `pkill nsplugin` when that happens. though my browser (konqueror) doesn't crash, it only freezes until i kill the plugin

mm
it usually just dies on the stop
after not responding for a few seconds

ok

but not responding for a few seconds is pretty standard for firefox on linux

i find firefox too sluggish for my preferences

you can grab that script youtube-dl or whatever if you want to download the videos for later viewing, if that's any help
byou can grab that script youtube-dl or whatever if you want to download the videos for later viewing, if that's any help/b

ah that would be useful
i thought other browsers couldn't render html thoguh

"other browsers couldn't render html" ?

last time i tried a few, they tended to render sites wrongly
things in the wrong place or the wrong colour or whatever

s/wrong/different?

if it looks like someone has dropped a handgrenade it's probably wrong
i don't care whether the site is wrong or not

heh

please stop acting like idiots, this is not #coolteenchat

i've come to the wrong channel !!!

Mornin'

howdy.

hey poppavic

hi

welcome to Thursday

Which is almost over.

yes. Thors Day commences

Was thor the one carrying a Trident?

the hammer

'The' hammer… did he have balloon pants?

The Hammer "Mjorn", iirc
Mjölnir
that explains the mismemory

I am trying to set the terminal attributes of the stdin fd (0) and somehow it is affecting the stdout fd (1). I am trying to make stdin non-blocking (which works) using cfmakeraw and setting VMIN and VTIME both to 0. Somehow this changes the output processing on stdout. Any ideas?

of course..

you're changing the tty settings, not the stream

termios function affect the *device*, not *file descriptor*
you could check out fcntl() and O_NONBLOCK if you want non-blocking input
though you probably still want to disable ICANON

I'd be interested to hear him explain what and why he is changing whatever.
I don't even know what VMIN & VTIME mean

you know it won't be a valid answer =P

sure, but it'd be fun to read
I guess he doesn't want to "share" ;-)

http://pastebin.archlinux.org/13169
That is the problem I am having.

that's code, I don't see a problem detailed there

THat's some source - not "problem"

#define STDIN 0, dup2(STDIN, STDIN_FILENO); *boggle*

heh, that's a good one

Ok, there is no longer any output processing on stdout. \n does not behave like \r\n I am not getting a carriage return because something is screwing with my stdout output processing.
Chris, yeah… that isnt there anymore.

well, had you looked in the wiki, you'd have found a couple clues.
You've gone a Bridge-Too-Far

I don't know of "the wiki"

check the topic

Oh, I didn't realize that was a wiki.

The cfmakeraw() function sets the flags stored in the termios structure
to a state disabling all input and output processing, giving a “raw I/O
path''.
well dippy, turn output processing back on mayhaps

!snippets

snippets is http://www.iso-9899.info/wiki/Snippets http://c.snippets.org/

when you fflush(a file), is it guaranteed to have all fprintf'ed data in the file if a program crashes after the fflush was executed ?

arg. I am operating on 0 (stdin) are the file descriptors for stdin and stdout equal?

you are operating on a tty
you are NOT PLAYING WITH STDIO NOR FILE DESCRIPTORS

no

thank you. Could you explain why please ?

because you need fsync()

tty.. pty.. whatever: devices, not files.

fflush just flushes the buffers at the stdio level.
the kernel fs drivers might still cache it

ok good to know
thans
thanks

and even fsync only ensures the drive has it
the drive might still cache

and the function you used just happens to affect both input and output for that device…in case you missed it, read up

ok so no miracle to debug a library which used somewhere else. It it possible that a library behaves différently on different SUN platforms (same OS)?

ok… what do you suggest I read? I am just trying to find a solution. If you want to make fun of me that is fine.

read the little bit I pasted from man cfmakewraw?

anything's possible..

As we still don't understand why you go-do-that-voodoo-you-do-so-well, what would you have of us?

also, it it possible that the application integrating a library messes with the memory used by the library and screws things up without the library being in fault ?

Ahh alright, so I am on the right path… termios… just stay away from file descriptors.

I think some people just come here to screw with us

I'm sure they do, but they sure look funny.

USB in c#

you are NOT PLAYING WITH STDIO NOR FILE DESCRIPTORS. Well, ok… I wont play with file descriptors. I will play with termios…. which requires…. file descriptors.

it requires a file desciptor to find which device to poke

Can any one help me,Please..

that's all

did you check the wiki, as suggested?
c-sharp is down the hall

Yeah, I am looking through it. (the snippets section) not finding the smoking gun. Perhaps I am in the wrong section.

why are you trying to do this whatever it is

"switching stdin's mode on a posix-ish system"

some friend of mine asked me why you have to add ''manually to strncpy but i can't find the page explaining that. someone does?

I want to deal with IRDA through USB

my manpage says: The strncpy() function is similar, except that not more than n bytes of src are copied. Thus, if there is no null byte among the first n bytes of src, the result will not be null-terminated.

if you do this: strncpy(foo,bar,10); and it just happens that bar is longer than 10 chars, strncpy will copy 10 chars from that string, and not null terminate

I try CreateFile()

strncpy is a funny function

so in a nutshell: strncpy does not necessarily give you back a string

C is not C#

indeed

try ##csharp

i know the reason

it's just a misunderstood function is all

but i'd like to supply the page to this dude

let him look at his own

[DllImport " dll"]

geezus.

please, it it possible that the application integrating a shared library (.so) messes with the memory used by the library and screws things up without the library being in fault ? I'm supposed to guess things and it's not easy. The
library works on all our test environments and crashes when it's integrated in a specific application which we don't have access to

wcstok, because I have a joystick that controls a mobile robot. I want to use the keyboard to enter commands without blocking so that the joystick can still control the robot. I know there are other ways to do this (threads for example) but I figured that this would be easier.

so, either put in yourself, or toss out strncpy because it sucks and use something else. i prefer 'strlcpy' which is non-standard but is secure and not uncommon

now the truth comes out…have you considered using ncurses and getch

in C, programs that cause undefined behaviour are capable of just about anything, so yes…
Cahaan, rather.

I use strlcpy too

did you see what I wrote?

have you seen it outside OpenBSD?

thanks Chris. Do you know any way to proove that some code is right or wrong ? or is it an impossible thing to do in C?

proving some code is wrong might be possible… look for bugs

i have; i know that glibc refuses to add it because they would rather punish sloppy programmer with buffer overflows than truncated data

If you can formalize it, you can proove or disproove it.

I did the connection but..

wcstok, yes… but I figured this way I could avoid including another library. Although ncurses does look nice.

Unless you're some random crank like Gödel.

are you listening? hello?

well, I also suspect strncpy is used for copying substrings w/i a string. Folks are supposed to rtfm.

ncurses or termios, it's all the same crap, except ncurses puts a happy face on it

how do you get the directory of the current program running?

I've been doing this since yesterday, looking for buffer overflows, null pointers, lengths, and so son :s Didn't find anything until now

and if you really insist on doing what you're doing, you're going about it entirely wrong

Hello

if you mean the current working dir, POSIX provides getcwd()

no not that

then what are you asking

i mean the directory the program is running on

"running on"?

yes

the directory where the program executable lives?

I didn't write the code myself

if i have a program

http://www.google.com/search?hl=en&q=put+stdin+into+nonblocking+mode+termio+icanon&btnG=Google+Search or I'm sure it's on that wiki Poppavic posted too

called
test.exe

i'd use memcpy or memmove for copying non-strings, but what do i know

then i do test.exe /dodo/blah.exe

What about vid_xxxx&PID_xxxx

i want to get /dodo

lord only knows why folks would use it that way, but I agree

but i cant access the first augument

but since strlcat and strlcpy aren't part of any standard i always provide them myself, although various libcs do include them

so is there another way to do it

I mean deviceclasses in the registry

Did someone use my nick?
This IRC client is bombing.

aha, didn't think of providing them myself

folks could also write a silly strncpy wrapper and do it for themselves.

your question still doesn't appear to make sense. /dodo/blah.exe should be in argv[1]
byour question still doesn't appear to make sense. /dodo/blah.exe should be in argv[1]/b

wcstok, this seems to work though… http://pastebin.archlinux.org/13170

there is also a performance penalty with using strncpy, as it is required to pad the entire destination buffer with

crazy function.

ouchies!

sure, that's the same sort of thing that google search would have found

so really, strncpy handles in the worst possible way on both sides
sometimes it's not there, but if you copy 1 byte into a 4K buffer you get 4K-1 s

i know but how does blah.exe know that

wcstok, ok, I wouldnt say I was doing it completely wrong.

well, it must have been born with some of the Best Intentions. I honestly have no idea what they were ;-)

What about WPF???

I would, newstdin.c_lflag &= ~ICANON; is the important part

and what would happen if you fopen, fprintf, and fclose a file and the crash occurs AFTER the fclose, don't you have the guarantee that the data lies in the file after the crash occurs then ?

it doesn't
do an fsync before fclose

really though, ncurses is alot easier for this sort of thing, but whatever sinks your battleship

ok
thanks
I'll try that

then how do i get the current directory blah.exe is in
with blah.exe

it's highly platform specific, and I've no idea how in windows.

.

heh

hmm

it even seems likely he could con ncurses into seeing the joystick instead of a moose, too.

tell me how to do in linux
because im running this on linux

I've no idea how in linux, but /proc/pid/* may have info
(where pid is the pid of the executable)

o

(and it may not)

What was confusing me, and still might… is that changing output processing on stdin (which doesnt make much sense to begin with…) affects stdout. hrmm. I think I need to read up on how terminals and stdin/stdout all work together

oh
/proc/pid/exe

I still believe it'd be nice to re-partition libc into a few sensible, smaller libs and replace as required. Granted, it would no longer be ISO or whatever

seems to be a symlink to the executable

proc/pid/cwd

no, that's the current working dir

ymmv - I just wanted what I wanted.

he's after the location of the executable being run

oh, nevermind then

could you exemplify two modules?

though, why would you want/need this infor?

Can any one help in Merge Replication over IIS

you don't need to understand how a hammer or a glass is made to use a hammer or replace or wash a window.

Hello there

because you didn't change the input side of the tty, you changed both sides, as that cfmakeraw function clearly documents

What about me

please leave at once

this is a C programming channel.

JUST C

it's likely a bot

yeah?

some housecleaning is never a bad thing; never-ending backwards compatibility as a requirement is the equivalent of never being able to fire an employee even though he does a bad job and doesn't always show up

cool

o i need it cause i need it lol

OK

basically

please do not shout, even if you're a bot.

this is my Q

im porting an emulator to ipod linux
and im running jdarcnes

I'll be damned if that's a Turing test.

i need to know the current directory of program run to load the config file there

yeah, and there is nothing fundementally _wrong_ with the compiler and whatnot - it's the libs and libc that end up making folks whine and whimper.

How can I monitor registry by C

Platform-specific.

PoppaVic, That is true… but when using termios, I do not have a feel for if I am modifying the file descriptor for stdin, or…. what? a tty in /dev? What am I actually chaning and why does termios require a file descriptor. I just like to know the internals a little more so when I come into a
place like this an ask a question I don't get picked on. I don't really mind being picked on but is counter productive.

/linux.bin /mnt/nes/jdarcnes
like that

To "monitor" the "registry" using a C program, which is presumably what you meant, I suggest you write code. Yes, code.

if you read my wiki-post, you'd learn something: and it doesn't _matter_ where it fixes what. It Just Works.

ioctl(2)

C, however, has no notion of this "monitoring" of this "registry", and therefore any pleas for help in this channel will at best web hosting be treatd=ed with polite disdain.
s/d=//

like hell they will…polite, yeah right

try a windows programming channel
what is the one we send people to?

#winapi

#winapi here, #winprog on efnet

but, if you prefer to feel put-upon and don't want our help - fine. Don't the the door hit cha' where the good lord split yah ;-)

oh yes

well, this is easy to explain.

hi Z

you are talking to a device via the file descriptor
hello poppa

wcstok tried to explain that a couple times. Choc wants more, deeper, stronger - from here/us.

Zhivago, what do you mean by device? I am using "read" on file descriptor 0.
PoppaVic, No really. I don't mind where I find it. I just know where to find what I am looking for.

what do you think that file descriptor represents?

wcstok, an open file.

open where?

hey

open where? errr.. the OS? Not sure the answer to that.

perhaps it's an fd resulting from opening /dev/ttyS00 (serial port under linux)…or some similar device
it doesn't particularly matter, just that your terminal is tied to some device that supports that termio interface
and your descriptors 0, 1, and 2 are all likely tied to that device

that's a device — in this case, a tty or pseudo tty.

Ok, so in the case of an "xterm" it is typed to some pts or something like that. If I had a console over a serial port it would be tied to some tty.
typed = tied.

and that's the device that big blackbox of a kernel is operating on when you call one of those termio functions with your stdin fd, or your stdout fd, or surprisingly enough the stderr fd

it's all just a convention — there's nothing special about fds 0, 1 and 2
but normally that's what your program is started with.

Ahh, ok thanks wcstok. tcsetattr basically says "this terminal I am in now (attached to this file descriptor) should behave this way"
And you need to specify a file descriptor because a given terminal can have multiple devices.

uh, no, you need to specify a file descriptor because that's the only way that you can talk to stuff.

hmm, ok. Well I think I about 50% get it. It is more of philosophical question than a technical one…. what is a terminal? heh.

a terminal is an io device.
like a file, or pipe, or socket, only with different capabilities.

Are terminals the only io device with an stdin, stdout and stderr?

/clo

terminals don't have a stdin, stdout or stderr.

ok. I guess I 0% get it Sorry.

this was all raised over termios, btw.

does a socket have a stdin or stdout?
s/socket/pipe
does a pipe have a stdin or stdout?

If I have two terminas (xterm for example) up on my screen… and they are writing text to stdout (file descriptor 0) the text doesnt appear in the same place…
Zhivago, I have never done pipe programming. sockets… have a file descriptor, which I can read and write data from.

ls | more - what is ls's stdout?

in a terminal I know I could set my STDOUT_FILENO to the socket… then anything I write to stdout goes to the socket instead.
Zhivago, I really don't know how that works. I don't know what is happening that causes the output from ls to be redirected to the pipe.

no
it isn't redirected.
ls writes to descriptor 1
what is descriptor 1?

stdout…

no, you idiot.
it is the socket.
or pipe, or whatever
there … is … no … magic … here.

"Any sufficiently advanced technology is indistinguishable from magic." ;P

this is documented. So, it must _MEAN_SOMETHING_ - somewhere.. to someone, neh?
amen
do you know the other term used for "descriptor"? It's "handle".

ls — this prints to standard output agreed? how does ls | know to print to a socket or a pipe? Like I have said I have done 0 pipe programming. ugh. Maybe I am helpless.

it writes to file descriptor 1
ls doesn't know how to print to a socket or a pipe.
it knows how to write to file descriptor 1

if yer building a robot, you can't be as stupid as you act. Therefore, I have to presume you are simply ignorant. Coming here proves you ain't "stupid".

| does not go to ls, it goes to shell.

what a stupid thing to say.

ls does not know what the shell does with its fd 1.

does he realize that every process has their own "descriptors"?

I don't know.
but it should be fairly clear

well..? ;-)

"its" referring to ls, not shell.

I am ignorant in this subject, yes. I think that is a fair statement. The extent of my terminal programming is basically serial port, and printing to stdout. "hello world" sort of stuff.

hi, just wanna ask what is the maximum value of an unsigned long long? thanks

implementation dependent.

see the limits.h and such

but ~0ULL will produce what you want.

ULLONG_MAX and limits.h is the pretty way to do it.

how do i do that?

with your fingers.

do i printf ULLONG_MAX?

Ahh ok, so the | operator prevents the shell from printing to the screen. At the end of the pipe (more) then stuff that "squirts" out of fd 1 gets printed to the screen.

oh, man

as … an … unsigned … long … long.
no.
a | b means that the shell makes a pipe device

| redirects stdout. You might want to redirect stderr as well. Different shells have different mechanisms for that.

it then starts 'a' with the input of the pipe as its descriptor 1
and 'b' with the output of the pipe as its descriptor 0

s/redirects/pipes
So you could redirect stderr also to stdout prior to the pipe.

got it. thanks

There are all sorts of combinations in this area.

if it ain't a meerschaum with some nice vanilla or something flavored smoke, I pass.

stderr.log … or some such.

Ahh ok. a | b | c starts a with fd 1 = pipe1, b with fd 0 = pipe1, b with fd1 = pipe2, c with fd0 = pipe2, c with fd1 = ?

When my pipe process has ended, it is terminated. A new pipe is started… it's stdin is then attached to the bag of tobacco
etc.
by jove, I think he's getting it!

sorta' - I think he's still viewing it askew

hence getting over got.

c with fd1 = the terminal's output
what about a /dev/foo?

Here is a simplified clue: Every C program bootstraps with 3 fd. They are _always_ called "std{in,out,err}" - in that order. Everywhere. Forever.

even though they are actually 0, 1, and 2

eek, not sure of the terminology… but a's fd0 is getting set to… whatever is called. a reverse pipe?

no, that's jut the standard.
it isn't a pipe

we call that redirection

yeah, I'm mixing FILE* and fileno - but it's true

0 is not necessarily stdin. it often is, though

a b means that the shell opens the file named b, and runs a with that file as descriptor 0

portable way to get the fd is to use STDIN_FILENO in unistd.h iirc

oh. whatever.

it would be better to say it is, _by default_

what system doesn'd have it as 0, 1, and 2?

unix

well, it doesn't matter what it really is - just that they correspond. Forever.

what?

it's just a convention — consider some suites which use fd 3, etc.

a convention?

yes, a convention.

yeppers

where!

Ok, so lets say that "a b" and a wants to read a keypress. How would a accomplish this?

posix.
a reads a character from descriptor 0

C is mostly conventions. We trust them, or we read big, fat, flashing-print documents.

a b means that the shell opens the file named b, and runs a with that file as descriptor 0

yeah, so what?

reading for fd0 would read from the file not the keyboard right?

oh.. I see his point.. He needs to reread that wiki section I posted.

PoppaVic, let me make sure it is the right section… http://www.iso-9899.info/wiki/Snippet_POSIX_STDIN_mode

nothing specifies folks will enter main() with the console as fd0 - nothing. Hence the next post I made following that one, ala' mauke

it reads from the open device associated with fd
er fd0

which section?

If I convert some fortran code to C with f2c, then want to compile the program so i can distribute it to other linux boxes that may not have libf2c can i do that?

what?

just make sure its statically linked

which section of IEEE 1003.1

Ok, so fd0 and fd1 can read/write from sockets, pipes, redirections, etc… when a program is started normally (no pipes, redirections, etc) 0 is read from the keyboard, 1 writes to the screen. What controls/is in charge of/etc where data written to fd1 goes? the kernel?

what are you babbling about?
wrong.

matt__ how do i do that? I did gcc *.c -lf2c -lm

there is no keyboard, there is no screen.

what are you looking for?

he mentioned 0,1,2 being a convention

whoever started/executed the program: the other is an assumption.
there is no spoon ;-)

-static
will force it, if it isn't already linking statically

the shell starts the program with fd0 being the output of the terminal, and fd1 being its input.
just like a pipe, or socket, or whatever.

ok, that makes a lot of sense.

good

and, like everything in UNIX, the terminal and the keyboard are in /dev and are 'files'

matt__ thanks that seemed to work

*yawn*

So the shell basically dups the keyboard to fd0?

look for whatever specifies STDOUT_FILENO

doesn't matter, Chocobo - how's that tempered-glass hammer coming? ;-)

lol. pretty well

dup2() perhaps, but the shell generally inherits it via its fd0.

Ahha, still that is not a "no" So it means I am slowly understanding.

you basically woke the Sleeping Giant, and you are getting a lesson that would take at least a season to experience in peace ;-)

PoppaVic peace & serenity "_^

lol. I love the giant

fine
all of this is waaayyyy overkill for dealing with a keyboard+joystick interface to your crawler.
I'm not sure how you read the joyjoy, but the rest was easy the first time.

http://www.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html seems to indicate that those things are required to have particular values…

brb - recycling.

and what does it say about what those descriptors must refer to?

I think I need to read the ISO C standard to find that out

ISO C standard can't answer that question.

it might tell me somethign

well, All I know is that the 0,1,2 handles have been the same since my TC/C++ days.

until you start to deal with qmail or something which uses 3 instead

Perhaps the POSIX standard?

matt__ im getting a problem on another machine when I bring over my statically compiled program it says "kernel too old, seg fault"

that's ok, but "stdin" is zero - does gmail open 3 as "the keyboard" or what?

that's an issue unrelated to libf2c

all I ever meant was that stdin was zero. Period. We don't _know_ if the human types it, a program feeds it, etc

oh, wait, it says right here…

maybe f2c doesn't work on that box because it needs a certain version of the kernel?

yesyes?

http://www.opengroup.org/onlinepubs/009695399/functions/stdin.html

define the file descriptors that shall be associated with the C-language stdin, stdout, and stderr when the application is started:

loading

oh crazy
standard error is supposed to be readable?

not that I know of
I was just pondering why it wasn't 2,3 for signaling,erring

signaling?

the inverse idea of stderr

oh

since stdin/stdout complement each other

you mean so the user can tell the program about errors?

heh

yeah.. Neat idea ;-)
Talk about event-driven ;-)

Each application gets it own fd0,1,2. how to word this… Does the kernel maintain a lookup table that says if "a key pressed in the terminal, send the data to this programs fd0"? I hope I am using the correct terms here. Same with writing: "This application wrote to fd1, that goes to this
terminal.."

it-doesn't-matter
Forget the kernel. /bad/ llama

well on non-POSIX systems, you shouldn't rely on having fds…

ou have it backward.
the program does the reading, data isn't sent to it.

on POSIX systems the kernel must surely have some way to figure out what fd is what

Is there a such thing as non-POSIX os?

windows

you may've heard of it

It was a joke pizza_

they might have a real posix subsystem now, but only posix programs can use it

Ok, anyways I will stop bothering you guys with this… it will make you angry at me Thank you all very much for the help.

dammit
graphviz isn't thread safe
shame on whoever made it

sounds like a fun project, go for it
AT&T Research

I'd never worry about "The Kernel" - I _might_ write a daemon to support a program.

bunch of newbies

graphviz has issues, unfortunately

"issues"?

never hoid of it. I've used gnuplot.

like sometimes it crashes or uses an inordinate amount of resources

thread safety is generally a mistake.

Its for laying out topological graphs and rendering them
dunno if gnuplot can do it

heya fax

hi
Why is that?

why is that?

lol

I was busy taking gold bars out of square holes I was digging yesterday, i'm rich now

since you feed gnuplot, I dunno why not?

excellent question sir

There's surely nothing bad about being reentrant
lmao

Oh, I am not worried about it. I have no intention of modifying it. I was just trying to figure out how every application can have an fd0,1,2.. and have everything go to where it supose to.

well, that's a different matter

I suspect Z means that thread-safe is automagical if you are reentrant

to be fair I don't really know the issues.. I've avoided threads in all but one program

Folks and their "thread-safe" mutexes and stuff get scarey

I can't see why writing software to be thread safe is a mistake though… unless I suppose if it hinders you

hell no — re-entrancy doesn't imply thread safety
because it requires you to make a bunch of bad decisions.

basically thread-safety requires the callee not relying on static data; usually having the caller pass its own copy of data (structures) instead
bbasically thread-safety requires the callee not relying on static data; usually having the caller pass its own copy of data (structures) instead/b

yeah passing around state seems like a good thing to me..
compare embedding Lua in a program to Ruby

Muahahahahaha, regexps are avoidable
http://www.solemnwarning.net/code/compare.c

pizza_, or you can use mutexes

Lua is much much better because they pass state around, instead of having everything static/global

whom? why?

PoppaVic, where and when?

yes i suppose i should have said "avoiding unchecked access to static data"

you made the stand: protect it.

pizza_, that's one way, and not sufficient by itself

I still don't see it :|

PoppaVic, have your testosterone levels checked

you are not saying passing state around explicitly is a bad thing are you?

literals are literals. Values.

what does thread safety require

you can only call functions which are thread safe, everything which references an object you might destructively modify must be conservative about its access to it
I think thats all

twisted

meaningless gibberish

ugh

sounds like circular logic to me
what makes a function thread-safe?

you can call it from multiple threads and it doesn't "break"

and what does that require?

this is a good thing.

it means functions might be threads, and threads feel they OWN the universe. So, either they own the universe or they all agree to conventions like flock and mutex, etc.

stop avoiding the question

I am not I answered it

"Programming with POSIX Threads" by Butenhof (Addison Wesley), and "Programming with Threads" by Kleiman, Shah, and Smaalders (Prentice Hall) are both great

I think the two things I suggested are what is required for thread safety

you provided no information whatsoever

I have to agree with the others. Yer scaring me.

"being thread-safe means you only call thread-safe functions" "being thread-safe means things work with threads"

I'd point out that a process is not a thread and a neither is a "function". So, yer in trouble using loose terms.

maybe you don't know, you can just say that, i'm sure someone could help you understand it

I suggest that it's meaningless gibberish

ok then please explain to me
seeing as my answer makes no sense to anyone

thread safety is about the propagation of messages between identical objects.

do you know what a thread is?

essentially, you can reduce it to transactions — either optimistic or pessimistic

I used the term conservative where you said pessimistic

uh, they mean entirely different things here.
a pessimistic transaction assumes that it will be aborted, so pre-negotiates not to be.

Hey everyone, is this the right place to ask about the c++ stdlib??

yeah!!!!

down the hall in ##C++

thx

so what are the conditions for thread safety them?
then*

what is a thread?

a fine cord of twisted fibers (of cotton or silk or wool or nylon etc.) used in sewing and weaving.

there are several uses for the term "thread" - and they disagree

someone paid attention in home economics

The context is programming - that's all we have agreed ;-)
it's not nice, but (there is no easter-bunny) ;-/
I still despise setjmp/longjmp

I'm still clueless as to why writing thread safe code requires you to make bad decision

what folks roughly implied is: there is no spoon.

thats fair..

i would generally define a thread as something like: an execution context within a program that shares memory with zero or more execution contexts.

Given a single processor, there is a single kernel. Processes run in their own space by voodoo specific to the kernel. Now: what is a 'thread'?

ok, that makes sense

ok, and furthermore, the scheduling and execution of these contexts is controlled by someone other than us (probably the kernel)

there are two forms of 'thread': kernel-space and user-space. Which would you want to tackle?

hm yeah thats a good point
I was assuming the same issues applied to both

meaning that execution contexts can start and stop at any step along the way; in some situations none may be running, sometimes 2 or more may be running at the same time

We already have a multi-tasking Kernel. But, the issues are NOT the same and the expectations seem to pretend/assume a lot.
well, "same time" is another issue, because folks are so much slower than a processor - let alone multiple processors.

so i guess i would define a thread-safe program as one that doesn't make any assumptions about the state of any of the other threads or their resources

or a thread safe function is one which you can call from multiple threads, simultaneously .. and its execution is well defined?

many of them do

yes, but let's look at what that means

You'd really need to clear yer head of preconceptions.

many do what?

you need synchronization

many of the same issues apply to both user- and kernel-space threading

only when they communicate

except user-space threading also has to deal with inadadequate system facilities

ah ok

Z was write by mentioning "transactions"
right

in order for a function to be safe to call from multiple threads it must be guarenteed that any data it uses isn't in use by any other thread (since we can't guarentee the state or status of other threads)

well if all a function does is call a sequence of other thread safe functions.. then it is also thread safe

as well as not being in control of the system
whereas kernel-based threading has to talk to the CPU

there are systems where a "transaction" is interrupted, and others where they are interrupted before/after.

so, either each thread has its own copy of some data structure or buffer, and each instance of that function operates only on that dedicated resource

if the function writes on some object which other threads may possibly have a reference to, it needs to lock on that
there is nothing else to it…

no

how am I wrong?

or access to shared host resources is serialized so that each thread waits its turn to allow other threads to arrive at a known, good state before accessing a resource

that's a mutex, that's sharing. That's another issue

yes true

don't even _think_ about "sharing" until you nail down whom/what.

ok so I did know what thread safety was :/
and the conditions for it.
What I don't know is why that forces you to write bad code

what makes a function thread-safe?

what kind of answer do you want?
I've given three arleady..

a single sentence that generally describes the conditions that must exist inside a function to guarentee thread-safety.

I believe the issue is still process/thread.

A thread safe function can call any thread safe functions unguarded, it must gain exclusive access to any object that may be shared between contexts for a read or write… and not make assumptions about shared objects like they will not be modified

no

enlighten us
big poppa

is that no as in what I just said is wrong?

I answered too fast, then wanted to apologize - but I read more and it's still flakey.

perhaps you could offer an alternative definition you find more robust

we can sit about all day defining this…

fax's response seemed adequate to me

here's a better question… Z is right, and it's "transaction" based. How would root your def in terms of "transactions"

but the issue is Why does this cause you to write bad programs
or make bad descisions whatever

sorry, trying to do three things at once, but look at it and think "transactions"

well a transactions is a read/write on an object that may be shared between contexts
so you can wrap that in a mutex -or- write a function to access the object and put the mutex in there… so you have a thread safe access function

what does thread safety require

let's explore "contexts" for a sec.. Kernel? userspace?

all that is left is that you must not make assumptions about the object… e.g. this object will not be modified
I think (hopefully) what I said applies to both

I think yer close, fax - unless we are miscommunicating
what about read-many/write-one?

of all the people in this chan you are surely the best at avoiding a straight answer

thread safety is generally a mistake.

I don't know the significance of read-many/write-once..
we covered that!

I am in error? Fine. I'll bow to thee, now explain it all

about 5 times
:p

Did Zhivago ever say why he thought so?

read-many/write-once is just a series of transactions, no?
I'm hoping he will ..

queued requests

no, you just complain and switch subject instead of ever providing what you think is a better suggestion

priority-requests are possible

Reading the backlog, he hasn't explained himself.

dude, if you know all about "thread safe", feel free.
I think he left it as a debate for a reason

ok I think [with a stretch] we can fit queued requests into Don't make assumptions about the state of other objects that may be invalidated

thread safety is generally a mistake.

personally, I'm not buying his statement.

All I'm seeing here is things like encapsulating state, encapsulating access to shared objects… it seems all like good programming style to me
well thread safety implies threads
and threads themselves are a mistake :]

well, I tended to smile at it - but he and Xgc certainly get paid while I do not.

don't suppose anybody knows of a way to make fopen case insensitive?

it is

where do the capsule boundaries belong?

run it on windows =P

your filesystem might not be

:p

It depends on whether you have really good reasons for a threaded architecture. There are some good reasons.

stop expecting that with files.

all perfectly valid answers, but not really helping

for instance, apache httpd and performance.

it's not our prob: I learn to spell and search

I'd put em with the definition of the object I guess

why so abrasive?

he was dropped as a child
a lot

you must be new here

You haven't understood what I said..

no, i have

Then you either already knew the answer or don't care…

I'm not "that kind of guy", and folks should expect to exactly write filenames and paths, or suffer other/slower interfaces

assuming by 'capsule boundaries' you meant thread safe version of object accessors

A filepath or filename should be as goddamned exact as "10"

versions*

if you want it to be case insensitive, use Windoze.

that's the OS from m$ right?

oh be quiet

he can do toupper/lower, or exec locate *|grep -i, etc

go away and read http://web.textfiles.com/ezines/KRAD/

thread safety is easy - just block all other threads from executing while you are doing something :P

heh

there is a lot of hate here

Even the case-insensitive osX manages to get it right. Go learn how and why.

don't take it personally

you were talking about encapsulation …

don't worry

maybe you want open/readdir etc .. you can write you own find file with name similar to

where should those capsules be produced?

hmm, that's an idea

well I don't thinks its a requirement that you encapsulate the data you deal with, just the way you access it

umm… doesn't that access suggest agreements?

what kind of agreements?

basically i have a portable filesystem abstraction layer that should be case insensitive (since it's portable and windows is the lcd), but it isn't

well, you have yet to define a process or a thread. What's yer view? Does 'more' need to agree with 'joe' are those process or threads? etc.

you just said that it's good practice to encapsulate it …
so, where do you place those boundaries?

I already know *I* don't always satisfy others herein, but I try to agree when I learn what they are speaking about.
I think Z's "transactions" are the kicker

is that so

where it makes logical sense based on the requirements?

hi

I don't think there are agreements, it is more like waiting in line for somthing
you can choose to wait in the line.. or you can just deal with what you're doing

uh, and what is that 'something'?

What exactly do you mean by boundaries?

well, thanks for your comments, everyone

something being read/write access to a shared host object

Zhivago must have me on ignore, how unfortunate

my sympathies, if true: Z may just be tunneling on fax.

you're not saying anything meaningful.
why do you think there is one way to divide it which makes logical sense?

i politely asked you to elaborate on something you said which launched a long conversation

hi, do you have an idea of a call to set the numpad to numbers or cursor keys in X11?

well, you tried to shaft me in the same period. I'll just watch ;-)

yes, and?

man xmodmap

and could you?

so, every individual read-write is individually waited for?
I have been.

it must be
the waiting time may be 0 though

Zhivagooooo
ooo
o
..
woops, public :P

matt__, umh, does it have a C interface?

that was just stoopid.

i see, how unfortunate. well, thanks for responding.

well, that's obviously gibberish
what if two of those read-writes depend on one another?
yes, it is unfortunate.
will waiting on each individually work?

two from separate threads?
or from a single thread

what would it matter?
the number of threads is irrelevant to how you divide things up at compile-time.

ah, off we go into race conditions and deadlocks.

it would work fine if they are in the same thread
if they are in separate threads then it will be fine also, but you must not make false assumptions

meaningless gibberish.
the code isn't in threads.

the execution of the code is performed in the context of a thread…

so, obviously the way you divide up the waits for reads and writes must be independent of the number of threads at run-time.

yeah

well, the topic became "thread-safe" - and both are subjective anymore.

so, start thinking about it properly.

hmf

ain't "threads" fun? ;-)

I don't think I will understand this without coding some threaded program bigger than a few thousand lines

no

do you believe thread safety to be a mistake because you believe threads to be a mistake?

You want several forms of threads and then a better idea of threads/threading
writing a simple program is easy; threading seriously screws yer day, regardless of what/what.

I didn't say that thread safety was a mistake, per se.
fax's argument is that you should write arbitrary code to be thread safe.

iirc, you implied the term was bad.

because this is somehow more correct.
no, I implied that it was stupid to do so unnecessarily.

ok

thread safety forces premature decisions about many various semantics.

I already know it ain't "friendly", because of multiple factors.

I've written smaller programs which process stuff from queues in parallel

you need to decide how to divide code up for parallel interaction.

PoppaVic
I don't think I'll grasp the reasons for this without seeing something deeper

sure, listen to Z - he's got a clue, and I can't see a reason to argue him.

that's because you haven't answered about interdependent read/writes.

I did not find it clear that you thought is was stupid to do so unnecessarily, although I inferred it, I wanted that clarification. I have no problem with such an assertion.

even simple programs get multiprocessed anyways on modern archs

So, thanks for clearing it up

well, remember - I can suffer "detached threads" - I don't care where they run, kernel or user spaces. The moment they are supposed to interface all together, I start thinking of deamons/drivers or other solutions.

welcome.
you may be confusing programs and processes.

i was actually thinking of pipelining

unless you're confusing this with branch prediction, and so on.
then that's incorrect.

well, I tried to suggest the idea/defs early. If folks think it's all voodoo, we can't help them

interdependent read/writes can cause a mutual lock between mutexes

the program isn't multiprocessed in any logical fashion.
only if you're stupid enough to use separate mutexes for them …
and if you use separate mutexes, then you need to use additional mutexes to handle the interdependent cases

threading is the worst.. Coprocessing is bad enough. If folks can't believe in "a processes and state/time-slice" they are in a world of hurt.

so, the simple answer is that you can't use one mutex per read/write independently.

Hello

I personally don't much care if folks get silly. I just try to do what I do ;-)

you need to structure the code into essentially independent chunks

maybe, it depends on how we define multiprocessing

it's _always_ dependent upon the defs/agreements.

How can I ( in C Language ) detect the OS ? ( linux based hosting services or windows ). Have you a partable method to do this ?

we define multiprocessing in terms of how things interact.

ask the user, and assume they lied to you

pipelining and so on are transparent to how a program interacts with itself.

do you have a single compiled binary that runs on both?

no, it's worse… There are bolks and schools and folks that twist it all.
bolkds/folks

yeah, it depends on where we draw the line of abstraction

well, that and a dictionary we all agree upon

#ifdef

pizza_ ? non
fax , not in compilation , I want to do this in execution

No.

?

"?" is not a question

it's a PITA, and I'm much too old to keep guessing or using ESP on folks.

No ?

Because you can't

do you have a single compiled binary that executes on more than one major operating system? if not, this is not required; you can specify it when you compile host them seperately.

Ah yes I have a single compiled binary that executes on more than one major operating system

the word "multiprocessing" is probably wrong in the context i'm using it, but i note that there are similar problems in that level of abstraction
interlocked pipeline stages, for example.

I found this http://bama.ua.edu/cgi-bin/man-cgi?uname+1

then i guess you would identify them using the simplest, most reliable way available
on which operating systems does this binary execute?

is that even possible? a linux/windows compatible binary?
the closest thing i've seen to that is mac os x's ppc/i386 loader dealie

Linux/windows

he's just being silly
ignore hmu

it's not against the laws of physics, just the laws of thermodynamics.

wine whine

I suspect the issue is that folks want to speak of C, and then speak in terms of CPU and platforms, etc: it's just silly.

using WINE on Linux?

using Windows

WHINE on linux

or using cygwin on Windows?

pizza_

I would understand if folks wanted to speak of the ENGINE/vm or FFI - but they want to pretend C is the OS or the OS is C, and blame someone. Well, C does what it sez. The idea of threads and shit came along later.

I found the uname funtion to have information about kernel, but for using uname() I must include sys/utsname.h
and there are not utsname.h under windows
pizza_
I must use cygwin then ?

under C, there is nothing like a "pipeline stage", etc. Just don't confuse it all - the "pipeline" is the issue you are taking.
C has no idea of "registers" beyond "register" variable-suggestions, let alone stacks, heaps, program-space, etc
I agree it's not ideal, but there yah are.

i will say this one last time, and no more. you do not possess a single binary that runs unaltered on Windows and Linux. you may have source code which is compatible with both (congratulations). when you compile your app for separate operating systems, i suggest you #define a preprocessor
token identifying the OS (Windows headers define WIN32 for example), and use preprocessor logic.

he's just being awkward on purpose.. leave him be

hehe - you got heated/irate ;-)

that's the plan

Ok, thanks pizza_

oddly, Bug_Bug may be thinking of pcode/precompiled-code: and is too stupid to note there is a diff.. I've seen that with even asm-heads.

i have void function and i'm calling it once.. but it keeps saying "warning: conflicting types for consume_and_sleep" last declared on line 50 etc

you're welcome

well, fix it. It's "easy"

are you calling it before it is declared?

pizza_ well i have it declared in the deader file
s/dheader/header

you don't "call code" in the header

i'm not

if the definition of the function consistent with its declaration?

copy and pasted

Some days, I really, really look forward to the bugs inheriting the planet.

if you can produce a test case and pastebin it i'll take a look
!testcase easytiger

A testcase is a minimal compilable example exhibiting your symptoms. Please paste a testcase at http://rafb.net/paste to help us assist you.

well, not that yours will be compilable, but please strip out anything unrelated

it compiles and runs perfectly. its a warning

warnings are a fact of life - did you try it on another system?
Mind you, warnings should be respected and fixed like errors, (usually).

well you're obviously defining it differently than it has been declared, don't know what else to tell you; perhaps an error in the header file causing strange behavior?

maybe an expectation in the header?
in/of

http://rafb.net/p/6ZaLrr41.html - main()

where is uint16_t defined?

stdint.h

http://rafb.net/p/jrcs3W92.html - header

OK. I give.. Have a great day/knight, folks.. I'm folding. Stay well.

there are some more libs i have too. but they aren't the problem

ok, that looks ok

would prefer no warnings. just can't see why
mem-tool.c:83: warning: conflicting types for consume_and_sleep
mem-tool.c:63: warning: previous implicit declaration of consume_and_sleep was here

what is on line 63?
and line 83?

consume_and_sleep(bytes_perc, sleep_t); [ func call]
void consume_and_sleep(unsigned long int size_b, int t_sleep){ [ funct definition]

you need an appropriate prototype of consume_and_sleep before you call it.

yes. its in the header file

well, try including the header file that it's in

are you sure you're including the header?

well you can see the import int he code i pasted

sorry didn't see that second paste

os.h?

thats it yea

provide a paste of that, too.

he did

oh

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

hmm, i declare shenanigans
it compiles for me

it compiles for me too Chris.. but with a warning

sure
i mean without warning

:/

there's a bunch of _other_ problems

maybe my makefile

but none about the consume_and_sleep problem

yea… they are fixed now

right

and your missing linux.c

yeah
but that doesn't stop me compiling that
it just stops me linking

what compiler?

gcc

gcc (GCC) 4.1.2 here

right
what does your Makefile actually invoke?

gcc -o mem-tool mem-tool.c linux.c

shrug
it's not a gcc issue

Hello.

you're doing something else weird
do you get any other errors/warnings?
hi

maybe there is another os.h in a different path and your app is including that one instead?

maybe

yay, lots of warnings / errors with my compiler.

you can't hide from the GNU

the_plumber, You're right, most GNU code uses GNU extensions that only GCC understands because Linux coders are a bunch of fucking noobs.

i changed it to wos.h and it worked.
but i can't find another os.h
:o

Linux itself uses those extensions because it needs them

that's funny, because i was on the verge of asking you to rename it just for kicks, but hesitated

well, I mean, I suppose they could have used more assembly code or something…

needs, heh

anyway.. lesson learned.. dont call my header os.h

yup. so do you now know the actual cause of the error?

i can't `locate` an os.h anywhere on the system. it just went away when i renamed it
but it had to be picking it up cause i had declarations in there

are you running locate as root?
actually, maybe that doesn't make sense

damned stallman
heh

See updatedb

HEllo
I would like to monitor what signals are being sent to an already running process. How can I do it?

ptrace maybe?

hi there

hi…

right
this is FreeBSD
so ktrace

Deesl, ktrace is a user-land utility that uses the ptrace syscall.

oh ok

hi, do you have an idea of a call to set the numpad to numbers or cursor keys in X11?

on linux… someone knows about that ?

lol, #bash told you to join a fucking X channel hours ago.

tj__, Have you tried sys/stat.h?

don't hesitate to say my question is not precise enough

trash, do you think I didn't? I tried xorg (no answrs the channel is desert) X11 X or similar don't exist, #gnoem #kde
no answers
now I gave up looking for an utility and I am searching for a C call to Xlib or something
and, to be honest, I already asked here hours ago, and I was told to use some utility

-_-; I completely forgot about that detail lol

which utility?
sys/stat.h should work on both windows and unixes

forgot everything, I'm so stupid

well, you use apostrophes, which is more than a lot of people can manage.

Amazing. Well huuuuh…. thanks for all ^^; I'll try to be brighter next time XD

Cheiron, xmodmap but I cannot find how to do that

thanks for all bye the way. Bye

i don't think xmodmap would be what you want

anyway, I should call xmodmap with system then so a direct call would be better

well, if you can work out how to do it in xmodmap, you can just look at the xmodmap source
maybe xmodmap is one way.

Chris, do you have any other idea?
sure I can watch xmodmap sources but

no
X is scary

first I have to understand if xmodmap can do that
ok
thanks

Hello

hi

im trying to share a FILE* between a app and a lib and im failing miserably. when i try to use it in a fprint i get a segfaul.
i have extern FILE* in the lib
and just a normal FILE* being opened in the app
anything wrong there?
i keep getting Undefined symbols

just pass it as a parameter

id have to be passed to a crapload of functions then
seems kind of annoying

You could just pass it once
have FILE * my_library_fd; in your lib.c
void set_file(FILE * f) { my_library_fd = f; }
then all your lib functions operate on my_library_fd

you may want to declare my_library_fd static, too.
unless you want the app seeing it directly.

and extern it in the other lib files?

No
use your functions
or stick it in a header

ok, ill try that. thanks

hello

i'm having a problem assigning a signal handler to a sigaction structure. My compile host keeps throwing the error: display.c:57: error: request for member '__sigaction_handler' in something not a structure or union
struct sigaction sa;
sigaction.sa_handler = display_resize;

laetus, shouldn't it be sa.sa_handler = display_resize; ?

oh crap, lol
doh!

happens

sorry basix, i'm having a homer simpson moment

where can i find out which registers are used by certain system calls on linux?

in the linux source.

they all use (prefixes of) the same list of registers

i vaguely remember linux changing its system call stuff somewhat recently, too.

what does that mean?

from int 0×80 to syscall

I expect both work now

right

i mean, register eaX used to pass filename
such an information for exampl

bbl

well, the information is in two pieces I think
there's a list of registers used on your architecture, and information about how to use that list to issue each call
see your headers
I think

hi http://www.pastebin.ca/668285 –could someone help me with this? im trying to compile this with cross compiler h8-gcc-elf

frog, firstly, don't use __USE_BSD, proper define is _BSD_SOURCE.
-W -Wall — but I would go read proc_fs.h to see why it breaks.

hi, I have a problem trying to translate a java program into c++, as I want a function to return arrays of objects(which I recon is impossible in C++) but have no idea on how I should work around this. I'd appreciate any help that addresses this issue.

ok, Auris- thx, gonna try… proc_fs.h seems ok

and where does C fit into that story?

:

frog, it can't be okay if there's an error.

well truly it is a C++ problem, but the thing is C++ and C should be indistinguishable in just that

get out while you can.

c++ sucks

Auris-: i guess, that the headers from kernel are messed up with the headers from uclibc anyhow

we had agreed on that

that's just so convenient

java rots your brain, makes differences hard to see.

they most definitely are not in that particular thing

or an array allocated with new[]

Yacc rots your brain

in C you use malloc

oh well, I'll see a c++ channel then

or if you wanted to be hideous, you'd return a struct that contained the array

Hello folks

you have friends?

RadSurfer :/

Cygwin is POSIX complaint. Yeah sure. whatever.
Compliant

tries, anyway

It misses the "fork() executes fast" bit, though

yeah.

I've had programs spendi 40% of their time forking

snarled my compile yesterday, lol

I'm trying to write a cgi to e-mail a form. So far, the cgi parsing is Ok, but I don't find any references for the mailing part. Could anyone guide me or provide any source for me to read?

Wait, what, in C?

Yup

most people just spawn an external MUA

That's horrifying

mactimes, why not just invoke sendmail ?

but then, most people don't write CGI stuff in C
if they can avoid it

*Nobody* writes CGI stuff in C
If you absolutely must have C, it's for speed, and then you don't use CGI

Cause I don't know how to do it =(

man sendmail

well, it's okay if you write something in C and it takes enough CPU to make the CGI overhead negligible

Then you can write the CGI part in a better language and call to C for the cpu-intensive parts

mactimes, try Python ( dont flame me people ). In C you'll have to start from scratch i.e. opening, maintaining TCP/IP connections, implementnig SMTP and the required error handling etc… etc… If you wanna do that, then go ahead…

www.ietf.org/rfc/rfc0821.tx

No reason to implement, or even touch SMTP, really. Just pass it to your local MUA.

Ok, folks, shall we keep focus on the problem? I'm not looking for another programming language. C is an outstanding one and I know it is possible to do it.

you shouldn't have to worry about network connections in general for CGI unless you're doing something in particular with them

I'm just looking for material to get started in the mailing part.

The only people who think C are outstanding are the ones who haven't learned any modern languages

afaik all the information can be found in environment variables and on stdin

read up on sendmail, and shell to it. sheesh

mactimes, see what Baughn sugested or else check out a library which implements SMTP

don't

That's what I'm looking for

mactimes, definitely C is a outstanding language but it has its uses…

just dig the basics from the rfc I pasted , or read some smtp protocol 101 tutorial

mactimes, i did a similar app in python. it took hardly 15-20 lines

Just like any other PL
I will, right now
Errr.. Page not found?

http://www.ietf.org/rfc/rfc0821.txt

mactimes, www.ietf.org/rfc/rfc0821.txt

Thanks everyone.

if it were python, we'd be done by now
meanwhile, who else got LOTS of rain today?

sunny today

it rained all day yesterday

you just had to send it this way, eh
thats ok, the house that burned down, down the street should be out by now :-)
bthats ok, the house that burned down, down the street should be out by now :-) /b
I'll check in later kiddies.

Blegh

Errr. Folks, I have finished reading the rfc. The problem I have now is, I made a simple test with my mail server and I think it requires an authentication and I don't see any SMTP command to do that. What should I do then?

look for additional rfcs

Thanks. That was very helpful. I don't even know how to demonstrate my appreciation for your support.

how can I get the returned string of a dos ( or shell… ) commend ? in C language … system("ver"); for exemple

those things don't return strings

Comments

Hi Im just trying to switch from the unstable to the stable portage tree and Ive noticed that there are 5 versions

Parser is

I thought adding a udev rule for my RAID card would just add a symlink and leave it taking up sda.

it worked for me once in a similar case

Okay, well, I'll try it later then. Thanks.

could someone see if they can access this site please? : http://gentoo-wiki.com/HOWTO_emerge_e17 i wish to see if it is down, or if my internet is acting up again

Do you know a good udev rule reference?

ok, and look for automatically created udev-rules, they often mess up alot too

The audomatic ones use %k

just look at the topic

is there any way to use a java plugin in a 64bit browser on amd64 ?

oic, thankyou

i have the 32bit java plugin selected but it only works in opera for obvious reasons

I guess not at the moment, it is not supported anymore and has been removed unfortunately

Anyway, my friends want food so I'll try fixing my problem again later. Thanks anyway guys.

if you need it urgendly you could try the google-cache

kk tks, but its not urgent

nowhereman, so basically Sun does not provide a means to run java applets on a 64bit browser .. ?

afaik not, it's really a pitty, maybe java 7 will have one

nowhereman, do you advise me to drop the compiled firefox and switch to firefox-bin ?
or just drop amd64 altogether ?
growing sick of breaking flash & java

well if you really need java/flash in your browser you should propably try the bin thing, but I personaly don't like that, dropping amd64 wouldn't be an option for me either

drop flash and java

nowhereman, likewise actually, and though I don't actually *love* flash or whatever nonfree software, the world forces it on to me
hkBst, not an option

yeh.. I still haven't gotten java web host browser plugin working properly yet
and it's annoying since there are things that require it.

part of running only linux host is obtaining sorta feature parity so my work (which i do to earn money) can get done

anyone ever encounter a system that didn't poweroff when you used the poweroff command, but it instead halts?

there is a difference?

usually what i do poweroff the computer turns itself off

make sure acpi is enabled in the kernel

I don't exactly remember but before atx I think you had to manualy press the off-button after shutting down

guys this isnt really a gentoo question but the wine channel has only 2 people in it an im completely lost

Hello I am going to change IDE 40gb HDD in my laptop, to the new one IDE HDD120gb myself, what must i do? just turn off Laptop, change it, and turn on? no need to tweak something in bios? or remove battery????

#winehq

ask #hardware

thnx

ahh tyu
*ty

Does anyone know a good console-based music player that can handle playlists?

they dont respond

checkout mp3blaster

its atx

wait more then 2 min for a reply :-p

nice nick btw

does it work good s0ulslack ? i've tried it but had some problems playing mp3 files

worked great here

more than 4 waiting no reply

you just emerged it and it worked fine without any hacks? :P

indeed davvs

nice, i'll give it a try again :-)

mpd + mpc, bashmp or ncmpc

is /var/run/ automattically cleaned?

Ok I just got through fixing a shared library error and reemerged some packages. I restarted my computer and a lot of things didn't start: /etc/init.d/coldblug missing , cannot start ivman as hald could not start , dhcpStart: interface eth0 is not ethernet or 802.2 Token Ring, cannoth start netmount as net.eth0 could not start.

thanks thpani , ill try them too :-)

I don't have any internet so I am talking using the live CD. How can i fix this?

and one thing more, i wanted to install gentoo from LiveCD but it always fails due to different errors…why
?

anything interesting in dmesg?

I'll check. I'll have to reboot though.

I'm guessing its related to the latest expat update

That's right.

you able to login at all?

yeah

mzbot, teach stan_the_fisher expat

expat-2.0.1 has been marked stable. However, it is not ABI compatible with earlier versions. To successfully upgrade and fix any reverse dependencies (along with several other issues), run: emerge =portage-2.1.2.9 && emerge -n portage-utils && emerge -qep world | grep –color=never -oFf (scanelf -plRBF '%F %n' | awk '/libexpat.so.0/{print $1}' | xargs qfile -qC | sort -u; echo -e "libtool\ncurl") | xargs emerge -1

i wanted to install gentoo from LiveCD but it always fails due to different errors…why

should have paid more attention to the messages at the end of merges heh

use elog

I'll try that

not me, stan_the_fisher :-)

wait! Can I emerge all that if I don't have internet?

you shouldn't have restarted…
just take the livecd and do a chroot

do i need to mount the drive?

How essential is the 'kerberos' use flag? If I can't think of any reason that I need it, can I safely omit it?

sure, why not

Dunno, that's why I'm asking.

yes, just like you did it when installing gentoo in the first place

kerberos is a protocol associated with single sign on within a network

hi, is there already a quick-solution for libexpat.so.0 problem?

no, see /topic

mzbot, teach phantomsc expat

expat-2.0.1 has been marked stable. However, it is not ABI compatible with earlier versions. To successfully upgrade and fix any reverse dependencies (along with several other issues), run: emerge =portage-2.1.2.9 && emerge -n portage-utils && emerge -qep world | grep –color=never -oFf (scanelf -plRBF '%F %n' | awk '/libexpat.so.0/{print $1}' | xargs qfile -qC | sort -u; echo -e "libtool\ncurl") | xargs emerge -1

whats the best command line mp3 player?

Can you explain "single sign on"?

try media-sound/moc..

I'd say its mplayer

cplay

thanks guys

phantomsc, revdep-rebuild worked for me

which uses mpg123|mpg321

Help

http://en.wikipedia.org/wiki/Kerberos_(protocol) has more - usually only used on local networks

thank you, I already tried and failed, so I'll try to follow that bot's instructions

what is up with libexpat?? my system is not seroiously broken and I am not good at all this cli stuff
not = now *

see topic
/topic

I am trying to use bitchx for the first time - how do I see the topic?

/topic

Hmm, ok, thanks.
So if I'm running X applications over a network, then it might be useful (though not essential)?

I want to not emerge Nvidia everytim I do "world", because I install the drivers myself with the nvidia sh from their website. That way I can also install beta drivers and they run better here. How can I tell portage/paludis to not look for updates on the nvidia driver?

it's more than likely you won't need/use it

mask it

k…
just put the packge name in there then I'll see if it works

In package.mask - read "man portage"

is there a way to see the post-message from a merged package after the message has gone away?

yes, elog

mzbot, gentoo audifahrer elog

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&part=3&chap=1

Ok, cool. What about the "ipv6" use flag?

thanks Joseph_K worked
Just put the package in the text file and that's it

thanks to all

my wireless connection won't work after an update of some packages, like gentoo-sources, udev
it has an rt2500 chipset

(That's odd, "ipv6" flag is enabled but I can't see it in /etc/make.conf or make.defaults…)

Anyone here using InitNG?

*yawn*

hmm you're right

any number of profiles might have added it, or package.use

any way I can cut and paste that line to a commandprompt???

Any number of profiles? Like what?

gpm will allow copy+paste using the mouse on the command line

my rt2500 card won't work, possibly because of my update to gentoo sources 2.6.22 (although switching back to the old kernel doesn't help, so it seems) and udev 114. arch x86. one cookie for he who is able to solve my issue

ipv6 is enabled in the default-linux profile

oes anybody have a opinion if its worth to upgrade to amd64 on your existing machine (x2-4400, 2GB ram, tri-head setup) or would it not make any difference except more problems?
D

which drivers have you tried?

Ah, ok. I'm (obviously) still not totally down with all the cascading profiles.

you'll need to have -ipv6 in your /etc/make.conf if you don't want it

there's more than one? i'm using net-wireless-rt2500
eh, net-wireless/rt2500

newday, what is the requirement?

or don't think you'll ever need ipv6 support

Well, I don't know if I really need it or not.

there is also rt2×00

is it just as complete?

Deesl, faster Xorg (2d only)

newday, you dont need amd64 for 2D xorg…..

it will replace rt2500 in the future. The question is when. In the mean time you can try it and hope it works

Deesl, things get slow sometimes if you run 3100×1680 so maybe 64bit would have any benefits?

k, thx

newday, AFAIK no…..
a giid graphics processor may however be of help

Deesl, thought so, so i wont waste my time, thx for your opinion

what is your graphics processor like?
s/giid/good/g

Deesl, its a onboard nvidia 6150 and a dual-head nvidia 7something

newday, I suspec that the lag may be related to something other than hardware

there's no harm in leaving ipv6 enabled as a USE flag

is there a packages.gentoo.org mirror?

for your information, the linux kernel defaults with ipv6 enabled

Deesl, i cant really complain, some apps get slower when i span them over 2 or 3 screens but other than that its quite fast

*ipv6 capabilities enabled

Ok, thanks. I'm just trying to have a bit of a clean-out of unnecessary use flags.

newday, are you using the nvidia drivers and Xorg which version?

it might be easier to just change profiles in a minimal one
*to a minimal one

Deesl, yes both, latest versions from ~x86. i cant use nv cause nv does not support dual-head cards.

…and add the USE flags you want from there

newday, well, that is odd. I have a 4 head setup on Xorg 7.2 + Nvidia + Compiz Fusion that works pretty nicely
and its a P3
all nvidia 6800 series cards

It'll be much the same as subtracting use flags from the desktop profile, won't it?

p3 1G to be precise….

Deesl, sounds sweet, i have to admit though i also use rotation which certainly kills some performance

there's a rt2×00-git package in sunrise, does that suffice (reading the gentoo wiki host guide, tells me to get something from cvs)

rotation? like?
i thought you were talking 2D newday

maybe, but why not get rt2×00 from the official tree?

gentoo wiki site says there's none
but… i'll take a look (not working from the gentoo machine atm)

Deesl, yes, i have 3 22 inch TFTs but they are oriented in Landscape mode (vertical)

why would you beleive them??? net-wireless/rt2×00 Use eix to search

k

maybe…

newday, oh ok…..
i thought the vertical is called potrait… but i may be wronf newday

Deesl, btw, dont you use xinerama? i thought xinerama kills xrandr kills compiz

newday, no i dont ise libXinerama……

Deesl, yeah sure, sorry, portrait, landscape is the normal orientation of course
Deesl, so you have 2 nvidia cards using twinview?

newday, yes.. 2 6800 XT
+ twinview of course….

Deesl, and twinview can put two nvidia cards together? i thought only the 2 heads of one card…

newday, both are dual head cards… and they are SLI compatible.. you hook them up over SLI and they behave like one 4 head card

Deesl, sweet, thats quite a setup you got there.

whats there about a quite a setup… this is made out of all throw away amterial
no one buys P3s these days…… this is a P3 1G with 512M RAM

rt2×00 is marked testing

i have only LiveCD, can i install it using stage1,2? or i must only install using stage3?

Deesl, how does your p3 board support sli then?

it seems to be a cvs or git version

I use a P3 w/256 MB of RAM at uni.

yes

and newday SLI is the feature of the graphics card… the system board has nothing to do with it

will it only install sources or build too?

it will build too

k

and the SLI works with full speed only in PCI cards… this is a AGP based setup though

thx, building right now, hope it helps

woot! and I fixed the massive break.
hmm… it it me of does KDE 3.5.7 have better font anti-analyzing?

i have only LiveCD, can i install it using stage1,2? or i must only install using stage3?

hi, I am having a problem after doing the expat+kde3.5.7 upgrade. It seems that the only styles I have left are 'CDE' 'Micro$oft Windows 9x' 'SGI' 'Motif' and 'Platinum'. Is this a common problem?

Blackieee, only stage3 are supported

heh! then why did i have to download 697MB LiveCD????
i remember that i did install from such LiveCD lng time ago, just forgot how do it again

I can enable rfkill for "button support", what's that?

you click the icon IIRC, but it often fails where manual install succeeds

i was planning to make a Gentoo install livecd like ubuntu.. anyone would like to provide any thoughts?

that line does not work to fix the libexpat error

maybe it is for if you have a button on your laptop to turn on/off your wireless.

hm, so like power management?

i think it's more a windows security measure.

k

no thoughts?? thats odd…

i just wonder what does the 697MB liveCD contain then? and can i somehow install working gentoo with network supported using only LiveCD?

eh, you mean like, a graphical installer
?

you mean like Sabayon? but with less incompatibility?

Typical, I try and install Gentoo when portage is broken

what's broken?

can someone tell me in n00bie-dumb speak what is going on with libexpat??

see topic

teach Enmity expat

expat-2.0.1 has been marked stable. However, it is not ABI compatible with earlier versions. To successfully upgrade and fix any reverse dependencies (along with several other issues), run: emerge =portage-2.1.2.9 && emerge -n portage-utils && emerge -qep world | grep –color=never -oFf (scanelf -plRBF '%F %n' | awk '/libexpat.so.0/{print $1}' | xargs qfile -qC | sort -u; echo -e "libtool\ncurl") | xargs emerge -1

did that
cut and pasted that command line - didn'

everything depending on expat must be recompiled

prompt

try revdep-rebuild then

i just wonder what does the 697MB liveCD contain then? and can i somehow install working gentoo with network supported using only LiveCD?

revdep-rebuild fails on gtk+ rebuild

the livecd contains gnome, and the gentoo installer. as for installing gentoo with a network, you can do it from any distro's livecd

how do I just install that library???

ten work on fixing that

has anyone else gotten that command in the topic to work??

damn it, i cant make ifplugd work

sigh

ebuild can't work, it's looking for an option which isn't used anymore in 2.6.22

is there an easy way? I am struggling here with bitchx even

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

seen this topic? http://forums.gentoo.org/viewtopic-t-575655-highlight-expat.html

bug 185229

https://bugs.gentoo.org/185229 nor, P2, All, mike@ossmann.com-uberlord@gentoo.org, NEW, pending, net-wireless/rt2×00-9999 ebuild - updated to work with current CVS version

I've tried to chroot /mnt/gentoo after mounting but I get Exec format error.

put that in an overlay?

I broke that command up at the && - will that matter??

* with /bin/bash

yes

not really just make sure it completes succesfuly

but… how do I mask the one from the normal repositories, then?

it will prefer the one from the overlay

oh, ok
if I'd have two overlays, how'd I choose between them, then?

not sure

k, then I'll tyr to find out myself. thx for help, rebooting to 2.6.22

you can add a -r1 to the name of the ebuild you want to prefer

is there any way to figure out which file have a broken dependency on libexpat. I have reemerged mplayer but it still say missing file so I guess one of mplayers libraries are broken. Can I figure out which one?

I've tried to chroot /mnt/gentoo /bin/bash after mounting but I get Exec format error. How can I fix this?

teach tholin expat

expat-2.0.1 has been marked stable. However, it is not ABI compatible with earlier versions. To successfully upgrade and fix any reverse dependencies (along with several other issues), run: emerge =portage-2.1.2.9 && emerge -n portage-utils && emerge -qep world | grep –color=never -oFf (scanelf -plRBF '%F %n' | awk '/libexpat.so.0/{print $1}' | xargs qfile -qC | sort -u; echo -e "libtool\ncurl") | xargs emerge -1

or use revdep-rebuild

that fixes every breakage caused by expat. I only want to fix mplayer for now

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

can different distros share partitions? /home /var /usr thanks

then do the same thing but 'emerge -qep mplayer' instead of world

turn off distcc

hm, does that interfere with this? weird, shouldn't happen

/home probably /var maybe /usr no but if you have to ask don't try

thanks fristi, that means /etc is out of the question! /home & /var are the 2 most important for me thou! apache & tomcat all have there things in /var & i dont want to duplicate

probably home is the easist to share…

you could share your www dir if have no experience with tomcat

ok NightKhaos what about just /var/www

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

thanks

if you want a system that you can run the same webserver from… which I'm guessing you do, share the apache conf.d directory and /var/www
but in all honestly, it would be easier just to buy or aquire (legally) and old box and place it on that… such as I did with http://nightkhaos.homelinux.org/

make a comment on that bug

thanks NightKhaos thats basically what i wanted, as well as subversion repositories which i normally make in /home & the mysql databases

it seems like an upstream problem though

who's accessing my server?
:P

maybe, but that doesn't mean you shouldn't comment on that bug

I still can't get that command line in bzbot to work

:p k

its me NightKhaos, nice site, the ccs, did you develop it all yourself?

hey, hey, calm down

pfft… nah… if I did I would fix the people with IE.
let me post a screenshot of how bad it looks.

ok

whats this ppl keep talking about? is latest portage broken?

teach siimo expat

I don't have mercy with people using IE, it's their damn own fault (yeah, I know.. that's something you can't tell to a customer or your boss, but for private use it is )

expat-2.0.1 has been marked stable. However, it is not ABI compatible with earlier versions. To successfully upgrade and fix any reverse dependencies (along with several other issues), run: emerge =portage-2.1.2.9 && emerge -n portage-utils && emerge -qep world | grep –color=never -oFf (scanelf -plRBF '%F %n' | awk '/libexpat.so.0/{print $1}' | xargs qfile -qC | sort -u; echo -e "libtool\ncurl") | xargs emerge -1

what should I do until this bug is fixed?

i read that but can i just wait for fixes rather than upgrading now with this hax? or will we have to do this anyway

play some wesnoth

http://nightkhaos.homelinux.org/index.php?op=ViewResource&blogId=1&resource=silly-ie.png

does that mean, "I have no idea how to get wireless networking working"?

what bug?

you will have to do it anyway. You could wait to do it at the same time with a gcc glibc upgrade and simply. Then the "emerge -e system; emerge -e world" that you do for gcc should fix this issue at the same time

https://bugs.gentoo.org/show_bug.cgi?id=185229
last comment (mine)

I'm tring to chroot to gentoo but I'm having problems. chroot /mnt/gentoo/ /bin/bash gives me: cannot run command '/bin/bash: Exec format error. What should I do?

what arch are you on, and which stage tarball did you use?

what liveCD are you using?
I though the bash it attempted to use was dependent on the liveCD, not what is within the chroot enviroment.

tulcod there are a few options you can take

I'm listening

i see…

tulcod, is this the rt driver for the mac80211 stack or for the old one you are trying?

not sure exactly which, but i know that if you used the wrong tarball, you will get that error

I don't care what network stack I shuold use, as long as it works :p
mac80211 seems better though

how did you know i was accessing your site anyway NightKhaos?

I'm actually trying to repair my other istallation not install. I am using amd64 and 2007.0 min.

the box is under my desk, if someone accesses there is a lot of noise as it spins up the HDD that contains the website.

tulcod, from what i'm seeing this is the one for the older ieee80211 stack.

amd64 is the install i'm trying to repair. Might be arch commatiblity problems?

so I should disable mac80211 stack?
(it's enabled right now)

tulcod, basically you can fix the compile errors, (either by checking the code, or up/downgrading the ieee80211 stuff) or you can use the mac80211 driver

which mac80211 driver?

tulcod, i believe this one is ported to the other stack not 100% sure though

then make sure you've got a amd64 livecd

"other stack" being mac80211?
or the other "generic" stack?

o, i thought you had some program there what could check incomming IP's or something NightKhaos

I'll download one.

tulcod, mac80211, anyway lets just try and fix those compile errors
tulcod, i'll check it out

well, I guess I can fix those errors too, but that would cost me 2 weeks of browsing the code to understand it all, and I'm going back to school in 1 :p

hi all
xmms2 is not included in gentoo portage, will it be added?

no, it's outdated
(that's what they told me)

anyone here using netplug ? or ifplug ?

teach kexman ask

Just ask, don't ask to ask, don't ask who's familiar. Don't ask if anyone knows about it. Just ask the question, it's the easiest way to get people to answer

tulcod, xmms2, not xmms

will you add it?

NightKhaos, I'm new to gentoo

mzbot, teach Siavash xmms

xmms has been removed from portage, due to long standing bugs, and also the project has seen no new releases for a long time. Some alternatives include audacious and amarok. If you find ebuilds with hard dependancies on xmms, please file bugs against them, at http://bugs.gentoo.org/ . If you want to complain, please complain to gentoo's userrel, not to xmms devs. also see http://xrl.us/s7qo

oh, wait, confused lol
it's not in portage, nor in sunrise, so it won't be included soon, I guess

ifplug

http://bugs.gentoo.org/show_bug.cgi?id=93583

tulcod, for the record i believe it's mac80211 now

friendly12345, i tryed it
its written that it should just work !
but it doenst
i would need some help with conf.d/rc , do i need something there ?

you mean, the llatest network stack?

mzbot, gentoo kexman_ ifplugd

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=6

tulcod, yeah and i know what changed too to cause this problem

friendly12345, i read a bunch of mans !
dont tell me what to read !
i read it

it's a pretty simple fix iirc

didnt understood it
or made it bad
damn it !

so you're fixing this within 10 minutes? woot

other stuff just uses to get itself working but not ifplug , no it has to be really complicated
friendly12345, can you tell me what do you set in conf.d/net ?

nothing

nothing ?

kexman_ nothing ifplugd related

do you add net.eth0 (cable) and net.eth1 (wifi) to default rc level ?

try not to give people attitude when they try to help you

i dont
but i am so GRR mad about this ifplugd

oh

seems a simple stuff
yet it drove me nuts
sorry

ifplugd just works if your network interfaces already auto-connect at boot

aaa
i added !net.* to rc
guess i should remove that and remove the net.eth* from default
right ?
or add net.eth* to boot level ?

net.eth* to default level usually

anyone using a Hauppauge pvr150 with kernel .22 ?

added both

could anyone check what how kdelibs-3.5.7 is keyworded?

and made RC_PLUG_SERVICES=""
rebooting

its ~x86 on my mirror but it should be x86

/etc/conf.d/net also correct?

friendly12345, guess so
gonna paste it to you in a bit
you said nothing related to ifplug needs to be added there
net.eth0 (cable) works on its own / net.eth1 (wifi) works on its own
but if i bring up both of em i am in trouble
since i get the same ip and use the same routes , here at home

kdelibs-3.5.7-r2 is x86

Hi, I'm just trying to switch from the unstable to the stable portage tree, and I've noticed that there are 5 versions of automake installed on my system… when I unmerge 4 of them they'll get reinstalled on next system update… What's the reason for this and is there a way to avoid it?

affirmative

rebooting

thanks i've synced twice today and it is still ~

crossing fingers :P

BigBrain, different packages need different versions of automake

hmm it seems to have brought up eth1 instead of eth0 now that i dont have it plugged
so now if i plug it in it should bring up net.eth0 and get net.eth1 down, right ??

automake versions are not compatible, that's why there are so many slots

would it cause system instability if I would remove them?
hm… k thx :-)

definately.

hmmm

Is the Gentoo Wiki down ??????

hmm ? no ???

No… we just like… made it so that you have to type in an ubber sercert URL to get it.

yep.. they're upgrading the wiki or sth. like that

Damn. Thanks!

see #gentoo title

use google's cache feature if you need to access it

now rebooting with the cable plugged in

Phobos, use google caching

I would say yes…

friendly12345, okay
we'll see

BigBrain, they are only used during building, but can break emerge if they arent installed when a package need it, but that shouldnt happend

k

what's the usually behaviour if both interfaces are up?

aaargh
stupid stupid stupid

or can only one be up at a time

i plugged in the cable
and it does the same

anyone using a Hauppauge pvr150 with kernel .22 ?

backgrounding net.eth0 and starting up net.eth1
this is at reboot
friendly12345, my net doesnt really works with both up

and is it enough to remove the line "ACCEPT_KEYWORDS=~86" and doing a "emerge –update –deep world" to switch to stable portage tree again?

tulcod, the reason it's failing is because the mac80211 in the kernel you are running is to old,

huh?
wtf
it's just 2.6.22

yeah, too old by far

so how should I get wireless networking to work :p

is it possible to make dnsmasq use like *.machine too? so blah.blaah.cnupc.lan is same as cnupc.lan

you can patch the rt2×00 , or you can upgrade the mac80211 stuff/kernel

how would I do the latter?
and… can't I use ieee80211?

tulcod, i honestly don't know for that driver. upgrading is just placing more up to date code there
tulcod, you do know that by using the -9999 ebuild you want the absolute last available

well, I don't specifically care which driver I must use, but if ieee80211 is less work than a new stack, that'll be preferable for now
yes, -9999 gets the latest sources from cvs

tulcod, theres the problem you fetch the latest sources for the driver from cvs, but you don't use it against the latest kernel code

hm, so I should browse around to see which revision I should get?

you can just open rt2×00mac.c i think and change the function parametesr

hello

ok - I got that command line in the mzbot libexpat to run - but it didn't work - gtk+ still fails to compile
where do I go from here?

Comments

OK I am trying to submit a form from within a function and have it trigger the validation which is in the onsubmit

how can i make the title bar flash?
on windows

titlebar of what :p

the browser
like when you get an im
it flashes orange

on firefox window.getAttention()

ta
except…it doesnt work

where can i find that acordion js ?

hmmm

CRAP! I need a function wich works for Safari and can pick the textContent from any kind of element.. (at least a and td) .textContent, .innerText, .nodeValue and .innerHTML are all no good

no good as in empty?

no good as in returns different values for different element types..
at least innerHTML… the others only return undefined…
remember this is safari and js support is not the best…

can anyone tell me what I am doing wrong in http://www.pastebin.ca/641710 ? I'm kind of newbieish to ajax, and for some reason, readyState does not trigger when it gets 4. (My Firebug tells me, however, that the document was loaded correctly)

The paste 641710 has been copied to http://erxz.com/pb/3858

hi all, if I remove an element which has many children, is there any problem with the garbage collector? are all the children automatically removed from memory too?

js dev

anyone got an idea why the line doesn't start from the edge of the mouse icon? http://doktoreas.ominiverdi.org/esercizi/misura/index2.htm

thats probably a css problem
you need to subtract canv.offsetLeft and canv.offsetTop from your x and y vars
you are taking the pos from the page, not the canvas element

hi Jabapyth , this is the function for coordinates..http://rafb.net/p/TwI0tN54.html
what is wrong?

like i said, subtract the coords for the canvas, eg canvas.offsetTop/Left
the document body automatically has padding, therefor your canvas isn _right_ and the top of your page, its about 8px down and 9px right

hi folks. is it possible to check if the network connection is active using javascript ?

do a xhr
xmlhttprequest
to google, or something
here is a correct posting: http://rafb.net/p/0×3it551.html

thank you Jabapyth

no problem

i place an alert and it show that all offset are 0

theres a func to fix that…let me find it

I have an onchange="" on a radiobutton. This seems to work perfectly in firefox, but in internet explorer, it doesn't do the update untill I click something new.. how can I solve that ? I want the update to happen immediately after a user clicks the element

here this http://pastebin.com/d1a4c3ecc function finds the correct position of the elements
"click something new"? what do you mean? unfocus?

yeah

try "onclick"
heres the fixed function: http://rafb.net/p/DDaYbR89.html

Think it worked Jabapyth … thanks mate.

no problem

Got a bit of a problem with my page - using Dojo controls; but they often appear as "normal" buttons for a split second before becoming decorated.

try decreasing.optimising the load time. Use Yahoo!'s YSlow companion to Firebug for that

ok all is fine…i had to change to -=

Anyone from Spain here?

how can i get the current date in the following format 20070801 ?

How does that affect this? I get the same symptoms as removing the dojo.js script load, albeit for a split second.

string-concatenatoin and using the getFullYear() getMonth() and getDate() methods on you (new Date()) object.,

hiu
hi
how can i open a new window in firefox

thxs

has no properties
window.open('alaprajz.php?id='+this.id.substring(5)
).focus();
what is wrong?

getDate() — returns 1 how can i make it always return 2 digits like 01 instead or 1 ?

how can i change the favicon with javascript?

you can't, once its loaded its cached, so any change won't take effect, and seen as javascript hosting is per page, next time it loads it'll be be back to normal

the favicon is a file on the root of the website, so no you cannot, you could with server side scripting if you have read/write persmmisions… so you could use Ajax to run a script on the server that will change it

sure you can, meebo does
you can specify it with html

oh didn't know, sorry

link rel="icon" href="favicon.png" type="image/png"
in the head.
you can just change the href on that

i tried it but that didnt work

yeah, but as i said - it won't do anything.

add another link obj?

http://www.forever.co.il/Loading.htm — little javascript problom… if anyone can help

doesn't the wait function work?

i don't know much javascript..

Nir-PHP: use a setTimeout

yeah.. but..
i don't know js

learn

found that script in a js website.. need to adjust a little bit

setTimeout()
and then change the value

and how do i loop it?

why won't firebug break at any breakpoints that are in external scripts when the window.onload event isn't inline?

while etc

heh.. it's not so understood
can you help out with that?

works ta!

Nir-PHP: kwik n dirty http://rafb.net/p/noYk9T38.html
np

Jabapyth?
kinda got an error

what?
you need to set "loader" to the val of the button
it isnt *completely* plugnplay

:o

http://www.pastebin.ca/641804

Nir-PHP: The paste 641804 has been copied to http://erxz.com/pb/3860

where was my mistake?

damn.. my script crashed the browser.

Nir-PHP: this should work http://rafb.net/p/WUeanO49.html

is there any ajax guru available :o ?

just replace the "disablebutton" function with that one
right here

nope… not working
by the way
why did you put function inside a function?

is it doing anything?

(need to solve the back-button: got some scripts, but they are not refreshing the loading function which is used to get the content of sime files and to display them then)
okay, need to post it on pastebin.

yeah. gives me an error

Nir-PHP: to preserve namespace
Nir-PHP: what error?

ohh
you forgot { :P
heh working
thanks mate

np

http://pastebin.ca/641809

The paste 641809 has been copied to http://erxz.com/pb/3861

sorry for the typo
what do you want to do?

onclick im loading a file
for instance

uploading?

a href="#" onclick="loadcontent('test.php')"menulink/a
http://miranda-me.org/config/ajax/ajax/
you can see it here
the three links above

and the problem is….

that the back button does not work
it does work with some scripts
but the loadcontent() isn't refreshed
historydata changes, but the loadcontent() doesn't
i'm using reallysimplehistory for back button
http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html

i havnt dealt with back buttons much, sorry… :'(

:-/ no problem. as a js beginner i just don't know, how to insert the loadcontent() function into the reallysimplehistory function, so when pressing the back button, loadcontent() is called again

and the historyData) changes

you put your load function into the "historyChange" function (in ajaxHistory2.js)
it gives you the location and data, so you can work with that

ah
thank you, will try

hi! Anyone editing javascript with Eclipse? I'm looking for some extra suport beyond WTP: code formating, better highlight, etc. Not much beyond the basics, but I need good basics
Anyone can point me to a plugin? I've tried some time ago JSEclipse from Adobe but I didn't find it very good for my purposes
Code formatter is what I crave most

"miro" at 71.6.194.243 pasted "updated function - doesn't work" (22 lines) at http://erxz.com/pb/3862

nice bot :-)

how does it not work?

when pressing back button, content doesn't change (http://miranda-me.org/config/ajax/ajax/)

do you get the debug?

yes

uise firebug

oh
I see
my fault

document.getElementById("midle") has no properties

midle?

yes.. i'm pretty stupid, translated the name for you and forgot retranslating it :p
middle*

typos cause so much grief

so final testing on live page :o

anyone know if any of the libraries in the extjs stack have a way to query a div to get its height and width? found some stuff in YUI for getting viewport/document height/width but nothing for an element by id.

thats built in node.offsetHeight/Width

hey guys …. what's the easiest way to create link from some text … eg. i have somewhere on page "TEST" word … and i want to make a link of it using js ?

hey fellas-
isnt getElementsByTagName supported in most places?

argh.. it drives me crazy.

I choose one of the radiobuttons and then another field disapear
?

yes
style.display = 'none';

where to put it (i don't know js very well)

mom
type="radio" name="radio1" onclick="button2.style.display='none';" onblur="button2.style.display='inline';"
type="radio" name="radio2" onclick="button1.style.display='none';" onblur="button1.style.display='inline';"
for instance

brrr.

:O

I have this weird thing happening on my page where, for a half second, it shows the undecorated buttons then decorates them, i.e. looks like the dojo.js library wasn't loaded at all; but then corrects. What's going on?

are you using images?

No, unless dojo's buttons count as images (I'm pretty new to this)

I'm sure they're images
or background images

The formatting/positioning/concealment doesn't occur either for that half second

either way they'd load late, but I'm surprised a js framework as popular as dojo doesn't preload

I pulled the code from one of the demos - it's plausible I'm doing something wrong.

how are you "starting" dojo?

dojo.addOnLoad(init);
?
I just script-kiddied a bunch of code

there must be something before that

So itinitiates when the page has loaded. Thats pretty normal

script src="static/dojo/dojo.js" type="text/javascript"/script

onLoad
:o

ok, well, dojo needs a dom to operate on, so it can't load before the DOM exists. The simplest way to do this is to execute stuff when the page is finished loading, but that means you'll see what you're seeing
there are workarounds, though
However, I don't have them stored in my brain's cache

Give me something I can look up (terms) - I'm dynamically creating this page, so I can control the rate at which the HTML comes out if that's a concern.
What's this problem generally called?

Then build it serverside and flush it when it's ready

It happens even when I create the whole page as a single html hosting unit

You probably have som large images

Would the dojo.js count as a large image?
How do people normally deal with this? It isn't just the button images; but also the formatting that the dojo stuff does (concealment of hidden forms)
It's like none of the dojo is running until some time after. I can emulate it by nixing dojo.js

you could preload images

How do I preload the images? (Forgive if that is a clueless question)

you know how the images are called?
i'm not familiar with dojo. don't know if it will help.

No

:-/

you could compress the js (obfuscate)
you know like google does (remove newlines, rename the variables to 1 or 2 letters)
but make sure you save a readable copy

oh. is there a tool for doing so?

probably
havnt looked
ya

http://kirov.dyndns.org/test817/
a href="http://kirov.dyndns.org/test817/"http://kirov.dyndns.org/test817//a

it says "Hi" … o.o
oWow

Wait for it

ok I found one

omygosh

http://www.codeproject.com/csharp/jscompress/JSCompress.zip

I didn't know there was a #dojo on here - I may pester them there.

make sure it actually compresses, not just makes it unreadable

2939 bytes to 1414 bytes

i might keep that
good tool
but..is it just mswindoze?

C#, yes

crap

xD

stupid windows
C# can compile on mono, right?

could anyone explain me, why back button works for …http://miranda-me.org/config/ajax/ajax/… but not for … http://miranda-me.org/config/ajax/ … (only click downloads, serverinfos on the
right side) :! ? either i'm stupid, or i'm stupid - can't get the second one working (and the first one is just a test script ;-( )

maybe i can use wine

oh I don't know, I never used unix :o
only for backing up my drives when windows crashed them, hehe

fiiiirebug
4 errors
;-)

hum
output is just for debugging I think

but it throws an error, so it stops the js

oh :o
now it is true

bytheway, you should have the links give an actual href, to a seperate page w/ that content, so that google can index them

you are my god :p

MWAHAHAHAA

i thought i would do a noscriptarea for users without js (like google)
i should build a shrine :-/

ill come visit it…by carpet type="flying"/

har har
first ajax does its work, then the browser opens the page again without ajax
so I hope google attends noscript

just change the href to a "#number" with js
google wont see that

use javascript to delete the href

path[l]: deleteing the href removes the "link-ness" (underline,blue,etc)

á la document.href ?

find then modify it to just href="#"
fine*

I meant location.href btw :o . thanks for your tips

… 'à la'

oh. unicode.. "a la"

no a(link).hrefg
when the page loads, change all the link hrefs to pound-number's

onload="a(linkliste.htm).href = '#1';"
for instance?

ya
put it in a function (looks better) in an external js file, but ya

oh.. thanks again. and thanks again for helping me with the problem before, i really was despaired.

any time

there is no eventhandler which handles something automatically before onload is called?

yes

:-/

alert("hello"); /script

this will run as soon as the browser reads that part

but I need an eventhandler :-(

bouhouh

myfunction() /script

yes.. and to call the function I need onload

i don't see why you need to set up an event, if you are to set it at the same time you'll be calling it
for the onload, set it up as you always do, i donT' see how those 2 are realted
rlated
related

okay
I have some links I want to rewrite
as soon as possible
so the user isn't redirected to a wrong site
so i created a function which rewrites the links
and body onload="" im calling the function
but if the user is fast, he could have clicked another link before the page is fully loaded
and before the onload handler has done its work
but
hum
mom :O
ok.. I'll use onload and onmouseover for fast users

lol

:O

seems like a bad patching to me

it is, indeed. but I'm a bad javascript user and don't know a better solution :O

i think that this should not be handle by javascript
but fixed directly in the page

mom
I got some links which are using ajax
so href="#test"
and now if google visits the page
i need the correct href
like href="test.php"

if google visit the page the javascript won't be triggered

hi

heard google bot attends js, too.. just heard :o
but till i read it, i thought it doesnt

idoutit

anyone familiar with iframes/

hey.. you told me to rewrite the links

why would google waste time w/js, it would slow it down
ya, from the real (actual page) to something more ajax-friendly
sure

cool Im trying to make An Image when it gets clicked load into an iframe covering almost the entire page

so I could have used href="#test" and noscripthref="test.php"/noscript, too?

since google doesnt do js, it will just see the page w/content, not the ajax

an example http://ringtonecraze.info when someone selects a carrier it gets rid of all of the carriers
and loads my affiliate link on the page.

but it attends the noscript, doesnt it?

no, but have "a href='pagewcontent.html'" and then "scripta.href="#5"/script"
how much js do you know?
and css?

all you have to do is put a certain meta tag in your webpage
to not have the bot search it

I know CSS
no js

spider

the spider should crawl it
but not the js things

we want google to be able to crawl

I've been trying to hire someone to do it all day but no one wants the job so im like ill hit up the irc channels and see how its done

ill make a postbin for you

i dont think spiders crawl .js files

thanks

what do you want?

hire? how much ;P

jabapyth
im going to login

.js files aren't important

actually private message me
your aim or msn addy
we will discuss a fast price
you accept paypal?

jabapyth is a god, hire him :p

hey everyone

hey

what's up?

i want to
Ok, Jabapyth im not logged in I can accept your messages but you cant see mine so When you post it I'll add you to msn or aim

ok

i need lil advice … how to do this … i have menu with links that i want to remove … and i've made del function using xpath … but i want user to be able to choose wich links to remove … so how i should make it that way ?
creating with if states and commenting the del function for that link … and then if user wants that link to remove … i should use replace to remove // ?

gotit?

added you

global variables are bad, right? but in effect, isn't foo.bar pretty much a global variable as well?

Global variables are considered bad by some, yes. foo.bar isn't a global. foo is the global, bar is a property of foo
very good read: http://yuiblog.com/blog/2007/06/12/module-pattern/

thanks

ooo nifty http://phrogz.net/JS/Classes/OOPinJS.html

can I disable the back button?
or keep the back history empty

hardyVT - why is it anybody's business where I was before your page?

have a site that we can't have the user clicking the back button within the site…so I'm looking for a why to prevent the user from doing it.
it's for an internal web app

um… you cant disable the back button
[unless you manage to clear browsing history and never change the page location]
but that would be a huge feat
so yea.. have fun =p

I was thinking of not changing the page location, but that would only work with doing a lot ajax requests and that isn't happening because we want server sending pages…now the server host keeps track to see if user is trying to request an
previously requested page and prevents them.

what do you mean you want 'server sending pages'…? that's what happens with ajax

let me get my terms looked up

ajax sends a request to the server && gets a page back and gives you control over how it can be displayed

all within current page though, right?
so no reloads

yea

and no back button

and you can do both get and post requests
well i KNOW you can do get requests, i'm pretty sure post requests too

right, so we don't want to use ajax.

brb
um, why not?

so without using ajax, we can't pretend we are always on same page.
rockermono, cause I'm not the web dev guy

right… so why dont you want to use ajax? lol

you could use ajax+anchors

get request == viewing a page

if I was doing it then I might use ajax, but i don't want to side track the developer getting done all the work he must get done first.

erm… so why did you ask? .

because I thought I could set the location.href="#" on page load and it would keep me on the same page, but it doesn't work.

-_-
setting the location.href="#" makes it go to the same page with a # on it… it wont submit anything at all

if we used the ajax strategy, then we'd have one page and it would just replace the current page with whatever the php sends down, right?

yea, you have to tel it to replace it though

I'll suggest that to him then

how do i get event arguments in IE?

if you go to http://blah.com then click a link to http://blah.com/blahblah and http://blah.com/blahblah has location.href="#" your at http://blah.com/blahblah#

it seems clean.

^

yep, that's what my testing showed

the # doesn't change the page at all
that's just ajax people being stupid and thinking the href has to be there for it to work
that's just ajax people being stupid and thinking the href has to be there for it to work

lcoation.href="" puts Safari in an endless loop

um yes… because it reloads the page infinately
location.href="" means "load the page you're on right now, again, but actually reload it from the server"
that's basically what it tells the browser
could be likened to clicking the refresh button each time the page loads
=p

what's the send/pull command xmlrequest?

um?
idk
i'm guessing send/pull == post/get

httpRequest?
what do I call to send a request to server from javascript?

XMLHttpRequest

ty

Anyone want a High Paying Javascript and CSS job?

explain why you're advertising on IRC?

doesn't everyone want a high paying javascript and css job?
of course that's just marketing for a sweatshop, right?

well why would you be advertising on IRC instead of… oh i dont know…. a webpaeg?
*webpage

'cuz webpages are too slow, people have to go there and read them and I don't (yet) know everyone's email address to send them a link

RockerMONO Because I suck at Programming
And I'm offers a nice amount of money to do something simple

isn't alot of people's first instinct to go to google and look? =p

offering*

well, EasyMarketer what exactly is it you need done?

hehe, I know JavaScript and CSS. Give me some mo
Knowing JavaScript and CSS should be enough for any highpaying job.

any thoughts on extjs?

can you make it XHTML1/CSS2 valid? =p

I once had a guy applying for a position where I worked who was good (according to himself) in HTLM.

was that a typo or did he really say that?

I kicked his ass out of the building. HTLM that

lmao

He really said that.

wow
um…even my MOM knows it's html not htlm =p

HTLM - that's for "Language Modelling" - he was applying for an anthropology job, right?

I also asked an applicant how he would describe the word "dynamic" and he started ranting on about people beeing able to adjust and adapt. i.e. He thought I wanted the human-social-description of that word.
hehe, sadly no

i would've been tempted to /literally/ kick him out =p

or /knock/ him out, then drag him to dumpsters out back? (wait, was that a bit too far?)

more like not far enough =p

indeed. Tho he has written some high-end business web host applications in C/C++. He was just probably slacking and let everyone else in the project write the code.
People like that, there's no "too far".

so, I just came back from this interview. He started asking me about 'dynamic'. And I told them I wrote this big ass business project in C++ but really, it was my co-wo… hey! wtf?

haha

lawl

getDate() — returns 1 how can i make it always return 2 digits like 01 instead or 1 ?

anyone using IE that can try this snippet for me (just put it in the locationbar)? javascriptnew Date()).getYear()

2007

string concatentation using some conditional statement?
function two_digits(n) { return n 10 ? '0' + n : n.toString(); }; two_digits(1);

01

but it takes off leadingok

what's the latest and greatest version of suckerfish dropdowns?
I need a guide my mom can follow

the latest version's called milf. so when you wanna show you mom, just say, "hey mom, I wanna show you milfs I wanna (ab)use"

http://developer.yahoo.com/yslow/

~~ Speed up your web pages with YSlow

ah … dabear .. you're here
do you know any other source for docs … except diveintogm and gm wiki ?

If I am in the onClick of an element, is there an easy / generic way to get the current elements ID or javascript handle?

hi out there, is there a possibility to access the parameters a js-file is included in the document (not the parameters of the document itself, that whould ie be location.href)

anyone able to get prototype and jquery to coexist?
is it the event handler that clashes?

hmz, am I here :p
elbac, yeah, just use this.id

thanks

firefox doesnt require frequent enough updates
cant they do a couple a day?
sure hope this one breaks Selenium again!
/sarcasm

vinse, !!!
you can't have a closing-tag without an opening tag!

tsk tsk tsk
that's called Emotion late binding

if you don't mind, why isn't this working.. a href="#" onclick="this.id.innerHTML='A very cool site!';"Hello/a

hah

elbac, this.innerHTML

elbac how do you know it doesn't work

this.id.innerHTML would set the value of the id-attribute

ok
let me try that

( in a rather fucked up way)

Got it, thank you

when you use "this" in inline code like that, "this" is the element , not the document

np
nobody with easily solvable questions?
:p

dabear what's your problem?

StaZ|work, lots
like what's the meaning with life etc

42

so, sup people?

I'm running opera 9.22 build 655. I'm using trying to use the Web Applications Audio object. I'm not used to opera and have no idea how to go about debugging it. The page is http://paste.css-standards.org/21484/view

hi all, how do i access "td" of a "tr" for which I have an id? for example, is it getElementByID("rowID").firstChild.innerHTML ?
because that's not working, but it should be something similar

skr1, firstChild will be a text object if tr doesn't immideately follow td
in some browsers at least

tr follow td? you mean the other way around?

yeah

and I'd like to change the innerHTML of the TD

– first child to tr is td

– first child to tr is text object

right, but it isn't working as posted above
heh i see
but it follows

I would use xpath :p
getElementByID("rowID").getElementsByTagName('td')[0].innerHTML = 'asd'

sorry?
i see

xpath is a way to navigate through a document
isn't supported in IE though

what's xpath?

xpath is a way to navigate through a document
as I said

is there a way i can include a javascript file into/from another javascript file?

no

and apply a new script-element through DOM

you can do document.write based on ifs
but it will all be in one js file

alright, thanks.

hihi all

Jan- !
hi my love 3

hey bear

how can i insert ascii character 1 into a string?

You're not The_Bear by another name, are you?

nope

So uh. Do I know you?

nope :p

it appears i can't do document.getElementByID("period1").getElementsByTagName("td")

at least I dont think so..? :p

object doesn't support this property or method

Me either, but we seem to have gotten off to a great start!
bMe either, but we seem to have gotten off to a great start!/b
bMe either, but we seem to have gotten off to a great start!/b

thank you!

Me too.

do you have some milk, too?

Sure.
I bought a bag of five double chocolate chunk ones. At lunchtime.

skin milk?

any more suggestions regarding firstChild ?

No. Skim milk is too watery.
I have semi.

oh..
skr1, yeah

Are you on a diet?
drinks please

skr1, look at prototype
http://norskwebforum.no/pastebin/9192
firstDescendant would work
Jan-, no diet here

firstchild should work i'm pretty sure..?

yeah, but you might get a textnode in firefox, and a DOM element in IE

window.location.href("../../duel/duel/start.php");

window.location.href = '..(../asfdsa'

that stinks

window.location.href = '…./asfdsa'

td is the first child

skr1, that's why you should use hte function I liked to above

or just id the row
i mean the td

it's window.location.href="new location";

dabear firefox says its a unknown function

it's *not* a function
window.location.href="location"; or top.location.href="location"; or location.href="location";
=]

how to use arbritary ascii chars in javascipt strings?

String.fromCharCode(n)
String.fromCharCode(55)

Jan-: 7

ta

String.fromCharCode(0×0A)
it's a property of the String object itself
Not of strings per se

ye
i think helping me counts as coding

Where are you from, garethfn?

…uk
why?

Because saying "how to do x?" as a question makes it sound like you don't speak English as a first language.

really?

Yeah.
Really.

maybe its a local slang

um…
slang?

No, it's just crap grammar.

"how to do …" != slang
yea what Jan- said =p

i dont speak like i write in irc, anyway…:P

You could even have said "How do I do x", which is just colloquial, but doesn't make you sound like a 15 year old Polish person.
Well, bah. Give us a bit of credit, willya?
Using that sort of rubbish contraction just says "Hello, I am a bit of a moron. How are you?"

I'm fine, thank you
:p

haha

what, it doesnt lol

that seriously made *no* sense

missing ; before statement
[Break on this error] } elseif(data == 6){\n
http://pastebin.ca/642245 — and this is the function

The paste 642245 has been copied to http://erxz.com/pb/3864

Jan if you think i articulate poorly, there are lots of people in the uk who speak much worse :/

Just don't do the "how to do X" thing.

how to do x?

It's like turning up to a funeral in a hot pink spandex jumpsuit.

its like making speaking your train of thought out loud, nothing wrong with that

Sure there is. It makes you look less smart than you really are.
Then people start talking down to you and you get upset.

nah

yeah

no

Yes.
YES.

damnit
stupid internet

hmm, now i ID'd the TD and can't select it by id

a negative used to express dissent, denial, or refusal, as in response to a question or request

anyone answered while i was away?

No times a billion. Neener.

:P

where are you from?

Me?

is there some sort of javascript debugger program?

California originally, but I live near London now.

do you speak mockney?

js supports elseif right?

else if

*jinks*

its jinx, _Fallen

*sigh* NO, you dullard. JINX.
Showoff

I'm foreign, how should I know :-}

How foreign?

with a space?

german

can i get elements from non-html namespace with getElementsByTagName?

Aww, that's not *very* foreign?

but foreign enough to have an excuse

You mean like from an XML object? Yeah, I think so.

hmm for table "value" is used not innerHTML

Jan-: i mean that i use XHTML+some elements from my own namespace

don't know about that, but it's worth a try

getElementsByTagNameNS ?
if its in the dom tree it should work fine

nope, that didn't work either

I got this regExp:
how can I say JS, that it is correct when http:// is set but it is also correct, when it is not set?
blabla /^(http|https|ftp)/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(\d+))?\/?/i

er, what?

the regexp checks whether a url has the following format:
http://bla.de or http://www.bla.de

he's looking for a regex to validate URLs

so the http:// hast to be set
and i want, that the http:// hasn't to be set, but could
if not, i will add it by using php

will anyone help me with an issue I am having with my javascript
its small but tough
hello?

I think you should just ask

OK I am trying to submit a form from within a function and have it trigger the validation which is in the onsubmit attribute in the form tag. I found a way to do this just fine with this little script if(document.form2.onsubmit()){document.form2.submit()} But when using this script it
requires me to push the button twice in order for it to do anything… Without the if statement it works just fine but the onsubmit does not get called…. Help??

you should check whether the check called by onsubmit is true or false
if its true, submit the form using js if not, give alert or sth

well on the second click of the button it works just fine
runs the validation and if the validation returns true it goes ahead and submits
the only problem with it at all is the fact that it requires two clicks

do you have a live example?

no im sorry it is on a secure site
but I am not getting any javascript errors
its just screwy

any code?

other then that?

yes

what would be relevent?
that is the only part of the code causing any issue

form, function for checking

well the validation script 700 lines long

ok :O

and the form has 300 fields in it

then only the form and if statement
could you shorten it?

do you want just the form tag?
I could send you the button tag as well

send me what you think could help

input type="button" name="price" value="Price & select carrier" onclick="document.form2.buttonclicked.value=this.name;if(palletpos()){if(document.form2.onsubmit()){document.form2.submit()}}"
form name="form2" id="form2" method="post" action="/tendering/insert.cfm" onsubmit="return validateshipment();"

oO
if(document.form2.onsubmit()) {
document.form2.submit()
}
why don't you just use onsubmit submit.form ?

can you write that in code?

if(document.form2.onsubmit()) {
what do you want to check there?
if form2 has been submitted?

that triggers the validation script in the form onsubmit tag

ah ok
so if the validation is true, the form is submitted

yeah

if(palletpos()){
and this is?

that is kind of anther validation

okay
you should get all these if statements into a function

ok
let me try that

ok

still worked on the second click of the button
but not the first
the first click seems to do nothing

and now it looks like onclick="document.form2.buttonclicked.value=this.name; anotherfunction();"
?

input type="button" name="price" value="Price & select carrier" onclick="document.form2.buttonclicked.value=this.name;submitform();"

are you using this button for submitting the form?
or just for checking anything?

submiting the form
ultimately
no more thaughts?

is someone have firefox 2.0.0.6 ?

I do

i sent you something, but i knew that it wouldn't work :o o .. hum

i have a problem with it
it crashes

when?

can you try some page ?

hit me with it

http://romanyak.livejournal.com/
view sources
and scroll down

screw that its in like arabic

russian :p ?

that's some form of cyrillic, and even then, the code is just javascript

yeah
cyrillic

well im not gonna touch thatr

so ? does not crashes ?

and where should ff crash?

btw, pink never works in websites. Ever. No exceptions!

did not crash for me

when you view sources

no problem

not here

hm
scroll down to the end

what opperating system?

linux/fedora

xp

works in ubuntu

linux / xubuntu
2.0.0.5 ff

2.0.0.6 ff

i recently updated it from repo

if http|https|ftp is set, it's ok, but it is also okay if none of them is set?

doc|monster, pink works fine for pron sites

salu2
How I cant do, to my function recived a paramter, I like to past this parameter to String

nevah!
well, in certain… hmmm, not as a colour scheme :/

ello
just wondering, is there a problem with window.onresize in IE7?
it seems to not be picked up by it :-/

FF then returns "DIV" what gives ? where does this undefined firstChild come from in FF? there is not tag.. sure \n is there.. but is that standard? I cant see any tag in FireBug.. so what does firstChild pick this thing up? Does this mean I have t

d

[phl4k-x]: what do you want to do in your function ?

ai-a: you can enable display of whitespace nodes in fb I think. They are honored in ff.
you would need to skip whitespace nodes. Several js frameworks like prototype have functions to do so

but is that standard dom ?

I think so

i dont recall having this issue before.

I know its different in IE and FF in any case

How do you modify the content of a div with with id="info" for example? I would like to use ajax to update certain divs.

getElementById

not that hard.
do a xhtmlrequest,, get the result.. use getElementById("info").innerHTML = get_result

ai-a: Sweet, that's easy enough
Thanks
Could you guys recommend a good JS reference?

google.com

or more specifically

js reference for what ?

ey I have a problem

js the lanugage,,, or dom reference ?

with ajax y php

ai-a: http://www.google.com/search?q=Javascript+Tutorial

Just a general refernce - functions, etc..

ai-a: Javascript is a language, DOM is part of it

remember,, JS is not DOM.

DOM is part of it

its a library.

…no

I guess I'm looking for the dom reference.

DOM != library

developer.mozilla.org
@alkos333

http://www.w3schools.com/dom/default.asp

for both dom and js references

Thank yOU!
Greate source.

how come when i do events within a prototype class the events dont have the information of the class
like if i have a function in my class that gets triggered from an onclick event, and i want to call another function in the class, it says it is unefined
why is that happening and how do i fix it
and also its doing the same thing on ajax calls
when it gets to the callback method it doesnt hav eany concept of "this" in any respect to the class
not sure what it considers "this" in that situation
any ideas?

hi
is there a list somewhere of which xhtml elements allow the 'name' attribute?

name isn't XHTML

it seems pretty stupid to me that it is being deprecated, seeing as how important it is to javascript

yes it is. Forms do not work without name

…it's hardly used at all in javascript
….
yes they do
id
….
i use ID on my forms

names create domnode hooks

and how in the world is that an issue?

?
you use ID on your forms? Does it post properly?

yea

it doesn't work in older versions of IE though, so i just use both so i can get better access to the elements && still support older versions of IE

I have never seen an example of this
hm how to test it

post.php : php echo $_POST['test']; ?

/html

=]
^^

name when i have the value selected?

something about selected index if that helps, i'm not exactly sure, btw not trying to be rude but IRC nicks that are really long w/ all caps tend to be annoying

hello

hey wfq

I have a problem with this function http://pastebin.ca/642382

The paste 642382 has been copied to http://erxz.com/pb/3866

everthing works fine but I would like get the value in ret=checkSubmit(t);

O.o
runon function calls all the way dude =p

and put the return value in the form again
I have checked checkSubmit should return the value ok as I have done an alert just one line before than return
but I don't know how to return this value to the form again

it is not working for me. with id: http://neo-zeon.de/~nick/poster.html with name: http://neo-zeon.de/~nick/poster2.html

RockerMono, do you know how could I manage to to that?

i dont know much ajax at all…
odd… PHP version?
wait
try method="get" on the ID one

what why

method="get" puts everything on the URL
if that works it means that it's an issue with PHP =p

there
no difference

O.o
hm

but this question is not ajax, I think it is more javascript. I don't know how to return the value in the onsuccess: function

refresh
I do not think name is deprecated

yea
this is odd though, i had a working one with only id before then added name for older versions of IE, lol idk, go with name since that seems tow ork

there is no attribute "onsubmit"…why is onsubmit not valid?

that's only for form elements

yes
oh
hum
ok

form method="post" action="page" onsubmit="do_something();"input type="text" onsubmit="error_time" /input type="submit" value="Hm…" //form

yes.. that was my error :o

lol you put onsubmit in an input?

yeah lol.. must be drunken
maybe I wanted to type onclick oO
dont know

lol
onclick works for buttons
=]

:

what's that supposed to be?

clearing textfield on clicking it, filling it again when form is submitted
and changing the text-align
damn lol.. now I closed the firefox window with 70 tabs open instead of just closing the sourcecode window

haha

does anyone know how could I get the returned value by onsuccess to my form again http://pastebin.ca/642392 ?

The paste 642392 has been copied to http://erxz.com/pb/3867

thats not funny.. reloading that many tabs drives me crazy :p

stop pasting that url, use the one buubot sends you=p
oh, ok
who was laughing?

there's a mirror, you know :p ?

stop with the alcohol! =p

you got me

you pretty much flat out said it earlier =p

if i use javascript to request data to a php page that checks a session variable to see if the user is logged in, and they're otherwise logged in, will it still show they're logged in if js is doing the request?
uif i use javascript to request data to a php page that checks a session variable to see if the user is logged in, and they're otherwise logged in, will it still show they're logged in if js is doing the request?/u
(hope that made sense)

anyone needs some?
due to missing english skills, it doesn't make sense to me :p

yes. The http call will still send the cookies for the PHP session
yes. The http call will still send the cookies for the PHP session

great, thank you.

value';?

no
`html2dom @ wfq

html2dom: Woosta's (x)html to DOM convertor .. convert xhtml chunks to DOM scripting: http://rick.measham.id.au/paste/html2dom.htm

Put "divsome text/div" in the top left and click the 'convert' button to see some example code
Put "divsome text/div" in the top left and click the 'convert' button to see some example code

hey Woosta

Hi
Anyone can help me with this idiot problem please

http://felipe.dev.telium.com.br:8080/frontend_dev.php/auth/register?name=Felipe+Cardoso+Martins+%28Teste%29&tax_id=22842516842&email=felipe.cardoso.martins%40gmail.com&mail_code=07191210&address_line=Rua+da+Casa&address_line_number=51&country=5656%23Portugal%23351&state=&phone_code=011&phone_number=85736968&panel_user=macafe_teste&panel_password=123qweasdzxc&panel_password_confirm=123qweasdzxc&submit=Cadastrar

short url
and the sourcecode?

select one value in select and change please

oh ok
thought there are only the errors :p

My php …
This is only a debug page external of my application

and then?

No php for you.
Not in a javascript channel.

I have this error
document.nadaaver.submit is not a function

I shan't have it.

Sorry for not explain correct

why dont you just call the other function?

I would like submit my form in onchange of the select combo
But the propertie document.nadaaver.submit(); aren't workung

`forms @ macafe

forms: Accessing form elements via JavaScript: Don't use document.forms[index].elementName or document.formName.elementName. Use document.forms['formName'].elements['elementName'] or document.getElementById('formID').elements['elementName'] or document.getElementById('elementID')

`submit @ macafe
learn submit = Do you have a form element with name="submit"? That confuses some browsers. When you call yourForm.submit() it thinks you're talking about the name="submit" element.

OK

jsBot , Woosta .. When I do a sample in other file this form … document.form.submit() works
but at this page no
I don't know what is happen, I already try change the name of forms and etc

You'll need to show us some code

http://pastebin.com/d6e20b6

syntax error
Isn't your debugger showing you that?
function submitform() { alert ( document.forms['nadaaver'].submit(); ) }

document.forms.nadaaver.submit is not a function
sorry… A try the alert for debug the value of document.forms['nadaaver']
but the correct is function submitform() { document.nadaaver.submit(); }

I'm saying you have a syntax error that needs fixing
No, use the one that'
s in the pastebin
document.forms['formname']
but fix the syntax error
FFS
`submit @ macafe // and read the stuff I give you

submit: Do you have a form element with name="submit"? That confuses some browsers. When you call yourForm.submit() it thinks you're talking about the name="submit" element.

jsBot, good
I change the name of field and it's working
Thanks!

np

Woosta, Thanks to much for the help

are javascript associative arrays guaranteed to keep order? (I guess it doesn't make sense, but…)

howdy folks, I am having trouble with my prototyped model, everytime I call a method on it it returns the method like a giant string instead of actually running the method.

guaranteed NOT to

thanks

(and they're Objects .. you can just use them like associative arrays)

are objects by reference in this language? so I can create a new object, and have it referenced both in a normal array, and an associative array simulataneously?

I don't quite understand what you're say, but I'm going to go with 'no'

bad place to ask.. anyone know a channel about dvd ripping?

wrong place to ask. Seriously.

lol.. if i knew a dvd channel to ask in i wouldnt need to ask
#dvd has 1 person idling -_-

I'm getting this ominous error from google analytics, anyone have any hints? Expected ':' but found 'undefined'. Declaration Dropped.
I found nothing on google to explain it

Anyone know how I would disable a button (after the user has clicked on it)?

this.disable = true; ?

frb-work: Will have a look

maybe it's this.disabled or something

yeah it should be this.disabled='true';

thats done it
thanks
Easier than I thought

`js ref

http://developer.mozilla.org/en/docs/JavaScript , http://devedge-temp.mozilla.org/central/javascript/index_en.html , http://phrogz.net/ObjJob/ , JScript@MSDN: http://tinyurl.com/9pk3l , www.crockford.com/javascript/

`js ref indexOf

Returns the index at which the first occurrence of the specified value can be found in a string, or -1 if the value is not found. (http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objectstring:indexOf)

Does anyone know of a way I could write on an image? I mean, I know how to do it in PHP to actually generate the finished image, but I want to let the user do it graphically (Select a font, click where on the image he wants to type and type)

not in JS .. you could do it in flash I guess

Hm, okay. Thanks

no, you could
with canvas

IE doesn't support canvas, right?

not directly
but google wrote a canvas emulation layer over VML for IE
excanvas.js iirc

Nice

it's not perfect, but it should server your needs

So now I just gotta figure out canvas :-)

s/server/serve/

Thanks, frb

Also thank whatwg(tm)
Death to xhtml.

Anyone know how well-supported func.length is for determining the number of formal arguments to a function?

idk if this is a JS question or HTML question…but i have an iframe to an external page, and its redirecting, but its causing the whole page to redirect

?

The paste 642487 has been copied to http://erxz.com/pb/3870

`js ref @ woosta

js ref: http://developer.mozilla.org/en/docs/JavaScript , http://devedge-temp.mozilla.org/central/javascript/index_en.html , http://phrogz.net/ObjJob/ , JScript@MSDN: http://tinyurl.com/9pk3l , www.crockford.com/javascript/

`dom ref

http://w3.org/DOM , http://mozilla.org/docs/dom/domref/ , http://krook.org/jsdom/ , http://www.zvon.org/xxl/DOM2reference/Output/index.html

Because of javascript in said iframe. This will be using document.location = 'foo'. Disabling javascript in the iframe is the most obvious solution. Another would be to set an interval and keep checking if the iframe had the right address (or iframes might have a handler for this) and
resetting it if it's been changed.

how do i disable JS in the iframe?

none;, how do you degrade that for people who don't have javascript enabled?

none;"

and have javascript expand it when some little + is clicked, for example, then when someone comes along without javascript, they can't expand the div

but if i have the javascript set the display to none on load, there'll be a flash of the content being collapsed

I'd check for javascript capabilities

none; dynamically?

and based on that, I'd document.write the stylesheet link
oops
sorry
i'm not thinking straight
block; (or inline, or whatever)
then on window.onload, set the style of the div to display: none;
that way if js isn't enabled, the div will be shown by default

Chatmasta, iframe_doc = document.getElementsByTagName('iframe')[0].contentDocument;scripts = iframe_doc.getElementsByTagName('script'); for(i=0;iscripts.length);i++){scripts[i].parentNode.removeChildNode(scripts[i])} should get rid of most of them (untested)

document.getElementsByTagName('iframe')[0].contentDocument;scripts = iframe_doc.getElementsByTagName('script');
sorry
was copying that (irssi/putty)

That won't get of something like a onclick="javascript:document.location='http://example.com/'"Moo/a

if I'm intercepting a link's click, how do I stop the click from going through?

can someone go to http://mcgw.dav7.net:8181/beta/ and tell me if it looks right & if not what browser/os and what the issue is?
return false;

ah. Close, I guess. and it looks wrong. Firefox/Ubuntu
want a screenshot?

yea

hold

k
AHHHHHHhhhhhhhhhhhhhhhhh

RockerMONO, http://evancharlton.com/Screenshot.png
that's maximized (well, except for the bookmarks sidebar)

wow…
hm
close the sidebar and restore it and everything shifts to the right instead of the left =p

and I'm returning false but the click still goes through. my href="#" and the viewport jumps to the top of the document

hm
wait… what do you have href="#" for? -.-
most un-needed thing ever: href="#" and href=""

because I'm too lazy to do it correctly for now

lol
um.. how bout removing the href?

eh, might as well fix it now I guess

lol
you can change href="#" to xhref="#" if you really dont want the link to go through =p
although i wouldn't recommend it
but it /works/ …. not correctly.. but anyways…

I changed it to a real URL, but the onclick isn't stopping the href

hm
ok
it's onclick="crap_to_do();return false;" right?

no, crap_to_do() returns false

oh
you need to return false; in the onclick i think

there we go

oh btw
did you have the () or not in the onclick?

yes, as I'm passing a param

hm
if it has the () it should pass back the return false; …
i dunno
meh, it works =p

heh, eah
yeah*

hey everyone. I'm trying to pass a div ID into srcElement, but when srcElement is called, it is coming up void. Any ideas why? http://rafb.net/p/O8AhPQ89.html
It's the 1st function here, starting at line 4
I think this only happens in conjunction with next_photo_gallery() … otherwise, I think it works fine

hey
anyone familiar with jQuery?
I need a way, when a on click event is executed for a checkbox, to know if it is checked or not

endra, document.getElementById('checkbox_id').checked

hey all… had to leave for a second, but I'm back now. I fixed the earlier problem I had… I have a new one.
Using javascript, I am trying to create, hide, and show divs containing images with the img path located in an array. When I load the div, instead of the image being displayed, all I see is this: undefined
http://rafb.net/p/y50ILV19.html
begin really looking at ln 55

your loop variable is x, but you're using i as the index

ahh… so I should change the loop to i

by the way, you should only declare each variable with var once

oh ok, thanks. I'll keep that in mind

var i; var i

undefined

hmm
I think I've seen Firefox complain about redeclaration, anyway

took out the extra "var" declarations and changed everything to i … the first image is being displayed correctly, but when I click "next photo" I get another undefined… this is handled in function next_photo_gallery() on line 23 of the same paste bin I posted a link to
oh… and that first image isn't be hidden like it's supposed to

hello
anyone here?

I see part of my problem in getting it to hide.. I'm not naming it correctly
…. i think

Is anyone interested in A Javascript Iframe and a CSS Job?
jordan5815 or PM me.

this is kind of a javascript question.. can javascript tell when a flash file has finished losding/started playing, or if flash can somehow execute javascript?

in javascript, when building a function, is it ok to "do something" with an argument, or do I have to define it inside the function locally as a var?
right now, I'm doing the second way… but it would really cut down on some uneccessary lines if I can do it the first way

what do you mean by do something
either way, even if you want to assign to the variable, you do not have to refine it locally.

such as stick it into an argument for another function called within the function
oh, that's great

does anybody here have trouble loading more than one script file into IE?

I read in some forum after googling around a little that after you put something into an array, load the document, and then issue something that "writes" to the document such as document.write(), that the array becomes reset.
Is this true?

I guess it depends on where the array is

Generally, if you keep all variables in the header tag as a global or in a function, you'll stay away from the document body.

well, I'm issuing a document.write() inside the document body - when a function is called. I guess I should just try to move that - and the array - into the actual function?

yeah

how do i rewrite this if the form is in an iframe? document.MyForm.submit()

Another option is to stay away from document.write(), and try to create and attach DOM nodes

ok… it'll be difficult with everything that I'm doing and trying to call, etc.. but I'll give it a shot
hmm… I'm still not very familiar with javascript - much less what DOM is (although I've heard of it)

Chat, you have to name the iframe, and then insert it as part of your call to the submit
so it would be document.iframeName.MyForm.submit() I believe, but I am not 100% sure

ok
and whats the function to fill a form value in that form?

For a certain field in the form?

yeah

MyForm.inputName.value = newValue;
document.iframeName.MyForm.inputName.value = newValue;
the second one

thank you
a href="" onClick="document.myiframe.theForm.submit()"submit/a
that doesnt wor
k
any idea? :|

it only works in IE

submitting the form?

IFrame is a complicted element to handle

or submitting the form in an iframe?

you can try "getElementById" to get the iframe

tried, didnt work
i guess i dont really need the iframe

this is very tricky because
iframes are interpreted and render at a different pace than the rest of the surrounding page

target attribute takes the name of the iframe right?

yeah

k
these iframes are making me feel so stupid lol, i never use them

this.iframe=window.frames[iframeId];
try this

nah i realized i didnt need the iframe

target the iframe

I think I'm realizing that I'm using quite a bit of uneccessary code… instead of showing and hiding divs, I can just show and hide the actual images (that I'm currently putting inside the div)

right, what you need to do is to set style attribute of the image

yup… that's what I'm working on now

had so many optional attributes

once I get my code whittled down, I'm going to try and put it inside the function instead of sitting in the document body

style attr is a very useful extension

yeh, no kidding
can I put an onLoad() call into a div declaration?
I got rid of the "img"divs, but I still need one of the divs for the design
…. and I need to populate that div with some initial data
(i.e. the first image)

let me think
I can't remember if div has a onload event, but I am sure that body element has such a method, perhaps you can add your code in there

I know the body does… I guess I could do that….

also, you can add your code at the end of your html

??

I've never heard of that.. never knew you could do it

yes, /htmlscriptyour code here/script

oh nice

wtf?
That's not going to validate
Anything you need to do once things have loaded goes in the window.onload event handler

oh ok

I'll have onLoad call that function

after racking my brains, I figured out a better way to do this… I'm not going to need the onLoad function, thankfully… that would've gotten way to messy and complicated for what I'm trying to do
if I have a global array in my script inside headscript/script, can I call values of that array in onClick()?
for say, a link or an input type button

of coz

cell?

phrame, do you really need tables, or can you use CSS?

i knew someone would say that

where output is the array

someday it will be all divs but not yet

heh. I know the feeling. I just got to that point this past spring… but seriously, if you can use CSS, then you can assign things an id, and use functions to write the text in there

wrong

negative

i am using css just for fonts and colors

you can't use output[i] in this way

ok
as far as I know, I don't think you can do it
what would you suggest?

wait a moment

k

document.getElementById('label1').innerHTML
works

nice
I remember using that at one point, but I totally forgot about it

cool but now i forgot what i was doing

?

why don't you just use an underscore or dash or something like "my-id"
(to answer your question, I don't know)

ok nvm.

I am back

wb

how about your question?
solved?

nope… I'm starting to google around

I think attr value can contain space
if you want to use output[i] as id, you can only do it in javascript, i think

ok, no problem…. I just thought of a solution…. I'll stick it into a php variable, and echo out the php variable as the id
because all I need is for it to be output once… after that, my javascript functions will be changing the values of the id by document.write()

hey lets kill meth heads

try this
script
document.write("img id='"+output[i]+"' style='display:block;' src='http://www.baidu.com/img/logo.gif' alt='blah'");
/script

inside html/html??

anywhere you want to place img element

ok

Can someone tell me why this works in IE and not in FF, please

http://paste.css-standards.org/21549/view
Please

I'm going to need to fix a couple other things, but right now I'm not sure if it's going to work

it seems a menu, but the source code is too long…

that actual logo comes up fine though…

stickto, talkign to me

Comments

Hi Im not trying to start religious war but looking for example at this article about comapration between Java

_^_: OKi.

Can enum types be used in a switch/case?
grr…

Yup.

_^_: so what instead of swing?

JCurses!

I dunno. I like awt, but tons of people seem to think it doesn't have enough features

Hahahaha

Telepathy!
_^_: AWT's features are fine.

I like my gui's in Cocoa

_^_: The real problem with AWT is its lack of portability.

What do you mean ?

_^_: If you write, test, and debug something under Linux, chances are very good that your masterpiece will look like shit under Windows Vista AWT.

Everything looks bad under windows vista

_^_: Actually, I find the UI quite pleasant.

The vista interface is so shiny it makes your programs look dull

_^_: Very OS X like, circa 2004.

that's when they copied it from OSX

Vista is cooler looking than my programs :'(

actually, I still haven't seen Vista

http://www.youtube.com/results?search_query=Windows+Vista

Osx 2004 is rather descriptive, I'll take you to best buy.

heh

~tell _^_ about questions.

_^_, I guess the factoid 'smart questions' might be appropriate:
_^_, smart questions is what you need to ask to understand a smart answer. See http://www.catb.org/~esr/faqs/smart-questions.html

Hrm…
~tell _^_ about questions

_^_, I guess the factoid 'smart questions' might be appropriate:
_^_, smart questions is what you need to ask to understand a smart answer. See http://www.catb.org/~esr/faqs/smart-questions.html

Meh.
_^_: OKi, here you go:
http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=mono_triste

I haven't asked you any quesions

why the hell isn't it working

2] _^_ | pr3d4t0r: What VM option makes swing not use an assload of memory

wrong employer.

I can't recall the factoid.

That was too long ago to be ridiculed by your pictures

~switch enum

I guess the factoid 'switches' might be appropriate:

You don't make your quips in a timely manner.

svm_invictvs, switch is http://java.sun.com/tutorial/java/nutsandbolts/switch.html

_^_ we had no GC so far, still valid.

screw it, else if.

Not still valid, you've lost all references to it
think like PhantomReference here
It's there, but you can't get at it

enum Foo { A,B,C } Foo f = Foo.A; switch(f){ case A: break; case B: break;}
?
WTF

purty.

TheDebugger!
How you doin', girl?

I ain't a girl.. Just kidding..
Taking the nick of my loved one..

you're not just a girl?
you're a boy, too, maybe?

pr3d4t0r is neither of them

how do your write ctrl+z as escape char?

well, yeah, he's unique, thank god

lol
Let's hope he can't reproduce.. :P

d00d.
Major plug on eWeek.

oh?

I gotz da covah.
Look at the /topic elsewhere.

I am going to find the person who is responsible for c#'s datagrid bool column and fillet him

I thought it was going to be an article - not *the* article. 10-pager on open-source, Java, Wicket, Mule, etc.

Hi. I'm not trying to start religious war, but looking for example at this article about comapration between Java and C#, as a beginner in Java, I would like to ask what really is better language and which one will prevail, will GPL-isation of Java help?
http://www.25hoursaday.com/CsharpVsJava.html#conclusion2k7

very nice!

Java already prevails.
It doesn't go on-line for a few days. Thanks
I started getting calls around 90 minutes ago, when people looked at today's mail.

C#

C# is designed like shit

yes but there are numerous sayings about its VM much faster than JVM

no
they are both equally slow

I don't use C# so I don't know

If you want some data instead of the wankage that you're likely to get from either camp, I can provide you some hard data.
C# is no among the top 5 languages used in production today.
Java is no. 1.

C# Is like hosting with java support with pointers and random crashes

c# has better generics, some think it has a better dev environment. Java is cross-platform, vastly better documentation/tutorials, i think it has the better dev environments

There are 5 times or some more Java programmers than C#.

java's also like 7 years older than c#

Java is no. 1 for the top used production language? What is this world coming to
Oh please

http://www.tiobe.com/tpci.htm - here's some real stats.
_^_: Dude, you're starting to irritate me.

ok, but what about performance, is it really (that much) faster than Java
?

no

No.

~pastebin

http://papernapkin.org/pastebin

no. they're both JIT runtimes

C#/C++

When it comes to raw machine execution, Java is about 3 to 10 times slower than C++.
Most applications, however, are I/O bound either against the screen, the file system, the web, etc.

no I don't mean about blocking but pure execution

And spend relatively little time screwing with pure processing speed.

I've read in that article something about JIT diff between C# and Java

Pure execution… think around 2.5 to 3 times slower than C++.

java's is more mature, yes
but not much
but don't forget the algorithm factors heavily

But I bet that C# is a lot slower than Java.
For the same algorithm (that's what we tested against).

I meant about this:
While the java platform supports interpretation of byte code or byte code being JITed then run natively, the .NET platform only supports native execution of C# code because the IL code is always natively compiled before running.

yet the coding of that algorithm also factors in

the word that bothers me is "always"

That's FUDdy.
Some shitty JVMs, like IBM's, really have that problem.

Sun's?

hm… jottinger and pr3d4t0r have the big boot on…

HotSpot (Sun's) is pretty good about preemptively compiling stuff before passing it to the iron.
And you can get some fine-grain control about the JIT from some command line options, I believe.
~tell zendo about JVM options.

zendo, JVM options is http://blogs.sun.com/roller/resources/watt/jvm-options-list.html

and hotspot also does a good job of figuring out when it can do better

Ah.
Look at the chart.

Ok, so to conclude, Java is definitely faster than C#?

There are 7x more developers and projects using Java than C#.
I can tell you also that nobody, not even Dell, uses Microsoft C# for their main line of business mission-critical stuff.

… in general

technically? maybe, depending on machine, phase of the moon, etc. in practice, not noticeably
i know one…

All the way through, or only the front-end?
Dell's front-end is all Microsoft for various reasons. The middle tier and above — not so much.

Sorry for doubt, but how much is this table http://www.tiobe.com/tpci.htm relevant?

Very relevant.

i know the system is still backed by a mainframe, but the management of quote offerings is either already c# or moving there (and for insurance, i'd consider that mission-critical)

If you can afford it, compare against Gartner or Forrester.

I've never seen it before, and I know that there are other tables about jobs, that's fhy I'm asking

currently, we're partly c#, partly c++, maybe still some smalltalk somewhere

Ok, then I'me satisfied with answers, even though I asked only Java side
Thanks, especially pr3d4t0r

There is a ##CSharp channel too

java and c# are close enough that if you learn java, you can pick c# up very easily, just need to watch for gotchas

Any time.

except at supper
never at supper
but any OTHER time
and at breakfast, not then either

He, he, he…

or at dinner

:*

any time! except breakfast, lunch, dinner.

supper isn't dinner ?

or when we're busy.
_^_: depends on where you are.

I'll keep that in mind

hm…
in SWT does Widget.checkWidget() check if the current thread is the EDT or not?

hello, I'm trying to run the prefuse example application, but javac throws java.lang.NoClassDefFoundError

Dude?

yes?

Bevin or Qooxdoo for Wed?

actually, I'm not even sure if I need to run javac, do I?

Qooxdoo

The last few videos did OKi, not stellar.
OKi.
The last huge one was Heinz.

sokay. It's like a baseball game: knocking them out of the park is good, but you win the game on singles.
You people from SF should know that.

mediocrity is the new failure

Heh.

you have a classpath problem
~tell tovmeod about classpath

tovmeod, The class path tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the class path. Also see http://java.sun.com/javase/6/docs/technotes/tools/solaris/classpath.html and http://mindprod.com/jgloss/classpath.html#ANACHRONISM

public class Flasher implements Runnable { //no, not what you think it is….
lol

~svm_invictvs++

svm_invictvs has a karma level of 11, Fanook

svm_invictvs++

svm_invictvs has a karma level of 12, pr3d4t0r

Stop wanking and come work for me.

greatest class declaration ever

If Gavin and I didn't suck so much at volleyball I'd still have a video camera

Do you use visual editor tool, or write your own java ui code?

ok, now I'm runningjava -classpath prefuse.jar Example
and it still throws the same exception

I write myown.

looks like it can't find the Example class

heh

using swing?

is Example in a package? if so, you need to specify it

##swingers-in-arkansa

no is a file
it is in the same folder

Because i am considering use eclipse's RCP.

Example.java wich java compiler creates a Example.class

i think java web hosting -jar example.java

right, did you declare a package for the file? (did you put package asdf.qwer) at the top?
that's only if you're trying to run an executable jar

does not he?

and it's not Example.java, it's package.for.Example

yes

no no package declared

oh, sorry

what class does it say it can't find?

this is the error:
Exception in thread "main" java.lang.NoClassDefFoundError: Example

I instantiate a java.sql.Date with java.sql.Date.valueOf(String s) function, if I print out using ToString all goes well, but when I use getDay,getMonth,getYear methods I got wrong values, for instance if I set the date to 2000-01-01 with the methods getXXX I get 100-00-06

actually I'm not sure what to do, I don't have much experience with java

java -cp prefuse.jar;. Example (if you're on *nix, use : instead of

should I create a package?
I have a bat file (I'm on winxp)

why are you using deprecated methods?

which is:
Cj2sdk1.4.2_14\bin\javac.exe -classpath prefuse.jar Example.java
java -classpath prefuse.jar Example

right, add ";." after prefuse.jar, like i did above. there's a chance it's not looking in the working directory for your class
uright, add ";." after prefuse.jar, like i did above. there's a chance it's not looking in the working directory for your class/u

I thought windows included . for search path

Fanook, what methods should I use to simply set/get a java.sql.Date?

btw, should I deploy it as a jar file?

~tell magowiz about javadoc Date.getMonth(*)

magowiz, please see java.util.Date.getMonth(): http://java.sun.com/javase/6/docs/api/java/util/Date.html#getMonth()

go read, like you should have done in the first place
deploy where?

no, I mean to the end user
the application
how it is usually done?

generally, yes. .jar and java webstart are the preferred methods of deployment in java

ok, so how I generate a .jar

~jar

Fanook, jar is Java ARchive. See http://java.sun.com/tutorial/jar and http://java.sun.com/javase/6/docs/technotes/guides/jar/index.html for more information. Also see
fatjar

use the hosting with jar command available program

as to your question about classpath host auto-including ".", i think that doesn't happen when you explicitly declare the classpath

is there a way to create a executable file with all dependencies

~fatjar

Fanook, fatjar is a jar file compiled from several other jars, see http://fjep.sourceforge.net/

I mean so the user doesn't ahve to download jvm

um, i think webstart can do that

a fat jar ??
what the fuck

_^_: baby got back, you know ?

_^_: a .jar that incorporates the dependencies into the jar instead of having them alongside, and that was unwarranted

Sorry
Yes, most certainly

thanks for what?

just for being here.

well, i do what I can.

This is just me, but don't you think a project big enough to require that has so many dependancies that doing so just wastes disk space ?

O_o

Oh, and MY comment was unwarrented ?

if anything, it saves space, as the .jar can share bit patterns across libraries
your profanity was unwarranted

I can see saving bit patterns, but what about the linking in all dependancies parts ?

~obscenity

cheeser, obscenity is the crutch of inarticulate motherfuckers.

~javabot++

javabot has a karma level of 110, _^_

what about it? they'll all be on the classpath, so it doesn't matter

Oh there it goes…

Wait, by 'dependancies' do you mean parts of the VM the user needs, or 3rd party libraries ?
program *

libraries

I guess I'll shut up then.

any java app is dependent on the VM, so it's pretty much assumed your consumer has it or will get it

hm…
I also just relized I did SystemException sex = new SystemException(); … throw sex;
lol

"fdag"
hmm

catch (SystemException sex) {} finally { unmount(); }

heh

A perverted programmers fantasy, that.

no…
catch (SystemException sex) { cum(); } finall {unmount();}
lol
I'll stop.
hm…
Am I still silenced?

no
but it would be nice if you were

oh
pft

in SpringMVC, i have an object I want to pass via a link, not a simple scalar, how can I do that?

you can't pass an object via a link
you could… but it's rather stupid

it's not when i have all the information i need in an object that i'm only reading the title out of
i want to open the SAME object, in a different view, with more details
there is no simple scalar identifire to pass on the URL
identifier

pass it in the session then
or use another means

maybe that's what i'm missing, i built this thing from scratch, havn't configured any session stuff
but even then, i'd need to stuff an object into a session via a link somehow…

not via a link
rethink your design
you're doing it wrong if you think you need to do it with a link
~tell lunk about wrong

lunk, http://www.adrinael.net/wrong10.jpg

ok, so what's right?
and it's not that I think it, it's I want to.
if i'm so wrong, what's right?
figured.

pass the data via another means
again
session
or an id-in-the-link from which you can retrieve the object
you figure out the rest

like i said, id in the link is out, good job.

~lunk++

lunk has a karma level of 30, joed

then what are you expecting?
if you can't use an id in the link, you've got the session as the remaining alternative
and how the hell does lunk get a ++?

~comfort pfn with man love
lol

poker time

lol
so much anger

tehe
pfn beats his wife and dog
pfn is basically a country song

hahahaha
~mohadib++

mohadib has a karma level of 90, lunk

you gd hacker
talk less and code more chatty mc chatterson

i am a tourist now days

http://www.hanhuy.com/poker/pt
a blow-by-blow of my poker hands…

i only like blow-by-blow with chicks dude, sorry

Hej.
Say something.
If you're still silenced I'll lift the /ban.

he's not as far as i can see

Nope.

anyone know of a good online book to get me started with java, although im not new to programming (python mostly)

~book

1) Sun Java Tutorial at http://java.sun.com/docs/books/tutorial 2) Bruce Eckel's "Thinking in Java" at http://www.mindview.net/Books/TIJ

awesome, thanks

Has anyone here used a good java data structures text that incorperates generics (java 5.0 and above)?

. . .
What are "java data structures text" ?

I am going to kill something…

Yourself

Fanook:

~bomb _^_

~kancho _^_

Is that your final answer ?

I guess the factoid 'clackwell standard answer' might be appropriate:

i.e. Data Structures Text Book

Consider posting a test case to the pastebin - http://eugeneciurana.com/pastebin

datastructures are irrelevant of language

larl\

Learning data structures is orthogonal to learning Java or generics.

But their implementation is not.

There are no "structures" in Java, just objects

Learn parameterized types (generics).

don't learn implementations. learn the theory behind why and how the data structure works. then you can use them in any language

I think that might be the case going from c++ to java, but not java to c++.

That's the case in every language.

no, it's true regardless of language

The language doesn't matter

If you grok data structures, nothing stops you from implementing an AVL tree in COBOL, for example.

*shudder*

^

In other words, I might know how to implement a linked list in java, but that does not mean I know how to do it in c++. Hence why it is important for me to get a book which impelments the data structures I know in java.

Then you didn't learn data structures.

linked lists are easy in any decent language

You probably just copied an implementation.

What do you mean by learned?
Perhaps our definition is not the same?

Like I said earlier: if you understand the concepts behind a data structure and how it works, you can implement it in any language.

Oh god, here we go with the philosophical discussions again

_^_: It's not a philosophical discussion at all.

_^_: those are the fun discussions

~tell _^_ about STFU.

_^_, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded
_^_, a href="http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded"http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded/a
_^_, a href="a href="http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded"http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded/a"http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded"http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded/a/a

The definition of learning isn't a philosophical discussion?

Well pr3d4t0r, I can implement a linked list in java but I would like to see its implementation in java using generics.

Cool. Give me a sec.

a generic linked list? What the hell ?

not just a liked list…

I have one for the book on Java 5 I was writing, but it's a stack. Will that do? That'd save me from typing.

sure…

sounds like homework

pfn?? homework

new book on java5? anything like the new edition of Effective Java that (last i heard) was scheduled to come out next year?

lol

oh, right…was writing…that one

homework? What the hell ?

I took and passed Data Structures a long time ago

http://eugeneciurana.com/pastebin/pastebin.php?show=3806

musashi0011, right…

It was a book I wrote in 2004.
Manning and I parted company before we nailed it 100%.

yeah, you mentioned it before

I'm working on another book at the moment.

besides if it were hw don't you think my request would be a little more specific? ( aside from the fact that 70% of schools in the US haven't even started their fall semester.
thx Pr3d4t0r

Sure.

Where can I get me a piece of that ?

_^_: Of what?

really? Everthing down here started today

That parade

a linked list in "generics"

_^_: Move across the street to the University of San Francisco's main entrance, like I did.

Private or Public

gotcha

musashi0011, especially considering there is java.util.LinkedList
and it's "generic"

To his credit, he was asking for a book, not the code.

my uni, all public schools, and at least the private at which my mother teaches

That's why I gave him the sample.

ok

that…and a linked list wouldn't be data structures class, it'd be Comp Sci 2, before data structures…at least here
that…and a linked list wouldn't be data structures class, it'd be Comp Sci 2, before data structures…at least here

I don't think I've seen a decent Java data structures book to begin with.

In NY only Public started today private jvm j2ee hosting after the holliday

as for fall quarter

~tell _^_ about java data structures

I imagine a bunch of schools on the semester system start this week

_^_, I guess the factoid 'java string comparison' might be appropriate:

The only one I saw that sort of works with that is the Schaum series in Java, and that one is pretty retarded: all it does is tell people how to use the collections classes, not how to implement them.

_^_, http://www.leepoint.net/notes-java/data/strings/12stringcomparison.html

fuck…anyone ever played with AT commands sending SMS? The GSM encoding table doesn't work at all for me, just cuts off the chars…

needs more acronyms

USF is private. They started last week.

some schools incorperate Comp Sci 2 and Data Structures

Zn4p, that's not java…

So I had the hottie parade for a week now

ahh…that's interesting, at least at my university we do linked lists in CSCI 2 as a warmup, then move on to data structures

Where is that picture of pr3d4t0r ?

I know, but I'm using Java for the app I'm just desperate for a solution, don't know where to ask really

Zn4p, try howardforums.com

few hotties in CS unfortunately

Oh, right here. This guy http://eugeneciurana.com/galereya/view_photo.php?set_albumName=MediaKitPhotos&id=2_Eugene_eWeek, who calls himself 'pr3d4t0r', has watching the 'hotty
parade' outside his window for a week

bah, go to the local sorority parties… screw having girls in the major, just girls at school is good ’nuff

i had 2 classes on data structures and algorithms. First class covered lists, stacks, simple sorting, big-Oh. Second covered trees, graphs, more complicated sorting, more big-Oh, proof by induction

I lived through an anomaly in 1985 - 1990, when I was getting my CE degree.

if you can find it, i highly recommend Shaffer's "A Practical Introduction to Data Structures and Algorithm Analysis". It's served me quite well.

We had several hotties in engineering.
I don't think that will ever happen again

I wished they did that at my school

was your program initially part of Math? or Engineering?

Math

Heh.
The math chicks were pretty ugly.

yea…if you take that approach, our CSCI class is really a simple data structures….sorts, linked lists and other basics…then the 2 covers trees, big-O, hashes, etc.

One had a nice arse. One of the tree in the school of math.

that's sad. usually the math-based programs emphasize the theory a bit more

So, the focus was primarily on theory (whether or not this was good is still under review).

we have a few in CSCI here….or as most of the CSCI guys like to say "they have a great form factor"

haha

wow, how nerdy

nerd humour
I love nerd humour so much
that it makes me hatemyself

as long as you ain't got bitch tits and think you're japanese, you're fine.

I hated algorithms at my school, more because of the approach unfortunately

Define 'bitch tits'

moobs

if i have to do that, you're a casualty of war.

Have I told you lately that I love your metaphores ?

maybe tomorrow i'll keep myself busy writing a double-hashed hashtable structure, cause i really don't want to fsck around with c#'s datagrid stupidity any more

Your book has two stars on amazon.com

it's still a very good book.

Where can I read about this stupidity ? I love seeing the moronic designs that come out of microsoft

_^_: google "datagrid combobox"

does javabot have a ~google command ?

Mine has 5 stars. Order it today!

is it on amazon?

_^_: not anymore

Of course.

~tesla

Nikola Tesla was the man behind many inventions, from radio to the power generators at Niagara Falls. pr3d4t0r wrote a book about a "weapon that would end war," invented by Tesla, in a modern, what-if setting. http://www.teslatestament.com

I don't just look at the current rating, but I also look at how many have rated it.

Thanks

title?

About 20 people. I don't know.
Fanook just gave you the URL to the book's site.
There's a link from there to Amazon.

can u repost, can't find it

~tell musashi0011 about Tesla

musashi0011, Nikola Tesla was the man behind many inventions, from radio to the power generators at Niagara Falls. pr3d4t0r wrote a book about a "weapon that would end war," invented by Tesla, in a modern, what-if setting. http://www.teslatestament.com

And it's "you", not "u".
~tell musashi0011 about java servlet hosting literacy.

http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=469758086_051b1dd752

what you say arse and I get busted for "u"?

yeah
life isn't fair is it?

arse is a valid english word
granted, that's in britain, but still

do get all pedantic on us!

pedantry is the spice of life in here

for the pedants among us

Your lolcats fail epicly

heresy!

true
but
it's lolcats

pedantry, here? Noooo

i wus tird of his trollin.
_^_: oh, hai.

dude, that was seriously cold

_^_: You should meet me when I'm in a bad mood.

You have a bad mood? Then what are you right now ?

_^_: Right now I'm happy and smug.
_^_: My rates went up today.

Glad to hear it

still doing quickies?

Good taking with you guys, C-Ya /me ducks as pr3d4t0r throws the grammar chair once again

grammar chair? O_O

you know that chair our grammar teacher would make us sit in with a cone on our heads when we employed grammar incorrectly.

'we' ?

yes we.
me, myself, and I

ok dude you're freakin me out now

~tell musashi0011 about aolbonics

musashi0011, aolbonics is talking like a retard using speech as if you were on AIM or using single letters for you, are, you are, you're, see, etc. Talking like this is frowned upon in ##java and may result in you being silenced. You have a full keyboard so use it. We don't care if you talk like
an idiot with your friends but we don't want to sit through stuff like this: http://forums.oracle.com/forums/thread.jspa?threadID=499980&start=0&tstart=0

_^_: don't fuck with the pr3d4t0r, you will _ALWAYS_ lose. Probably shouldn't suck up, but eh it's gotten me this far.

That is great…
aolbonics…

He is in a good mood. I am exploiting it. Don't let him know that though.

_^_: he won't be if you keep pushing his buttons.

then what good would those buttons be?

But the buttons are so shiny
watch, I'll make a christmas tree *push *push
yeah that lost its humour pretty fast

How do you go from Class.forName() to an actual object ??

newInstance();

javadocs

~javadoc java.lang.Class

_^_, please see java.lang.Class: http://java.sun.com/javase/6/docs/api/java/lang/Class.html

Thanks _
_^_

Yes ?

thanks

sure

hello, I created a app that reads from the standar input, even when the readLine is in a different thread it blocks the entire application
does it make a difference that the System.in is piped?
I'm able to read fine, but when I read to wait further messages it blocks the other thread

is the other thread waiting to read from stdin?

no
it supposed to create a window
it only does it when I close the pipe

~show us

Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options.

hm

hah, you are reading from stdin in response to a user event right

http://eugeneciurana.com/pastebin/pastebin.php?show=3809

you can't do blocking I/O on the event dispatch thread

no, I open it using pipes, from other app
I create another thread to read from the stdin

line 34; what is that for ?

don't extend Thread…implement Runnable and create a new Thread

I tried to put sleep(), but it seems to be ignored

Hey

if I implement runnable it supposed to work? all the examples I read say it is the same

and what is yeld()?
no, it's just better coding practice

hm…
What is pr3d4k4t?

what does the prefuse.Viewer do?

pr3d4t0r

pr3d4t0r as a l0lcat

ah

pr3d4k4t??

i'm quite surprised that code even compiles. neither InputReader nor Thread have a method named "yeld"

http://icanhascheezburger.files.wordpress.com/2007/01/2000869536009464266_rs.jpg

yeld is from the Thread class
is inherited

no, yield() is from Thread

sorry
it didn't, and was running the old version
now with the yield calls, and catching sleep exception it is able to create the window
bnow with the yield calls, and catching sleep exception it is able to create the window/b
but still
it is a separate thread

the problem might be in some other class
I mean theres a ton of stuff your using that isn't in the paste

just the prefuse package
all my code is in this file

anyone know if there's any research/implementations for using Java-style classes [e.g. a modified VM] but applying the actor model [each object having it's own thread, kind of]?

why would you do that…
google should probably come up with answers for that as well

you mean like, for example, Scala?

Anyone know why when parsing a string of input from the user, one enter key press on my keyboard will put a \r and a \n back to back? not just one or the either?
*other?

because you're on windows

Hmm? This behavior doesn't occur on linux?

~newline

ernimril, newline is What is the newline character? http://jqa.tmorris.net/GetQAndA.action?qids=62&showAnswers=true

^^^

reading, thanks
That's pretty silly that each OS does it differently, but nonetheless, that answers my question, ty

http://papernapkin.org/pastebin/view/1433

dude.. Fanook.. a chessboard is 8×8
and doesnt have weird squiggles onit

not chess…shogi

come again

asian chess-style game, pieces move a little differently, you can drop a captured piece instead of moving
basian chess-style game, pieces move a little differently, you can drop a captured piece instead of moving/b
still need to add transparency to the piece images, but it scales as you resize the frame, staying in ratio

Fanook, bunch of jlabels or is that just drawn on there?

drawn
doing labels would make animations a PITA

animations?
this should be interesting
maybe the pieces come to life and battle in an epic karate battle

heh, not yet. planning on simple translations for now, maybe a flip for when they promote

http://pastebin.ca/673120 i got epic pwnd der

Hrm…
Do you guys know who Bob Sinclair isÇ
?

~tell pr3d4t0r about Bob Sinclair

pr3d4t0r, I guess the factoid 'webobjects' might be appropriate:
pr3d4t0r, webobjects is A powerful rapid application development environment. http://www.apple.com/webobjects/

ok that was completely off the mark

~books

http://java.sun.com/docs/books/tutorial/information/download.html

~book

1) Sun Java Tutorial at http://java.sun.com/docs/books/tutorial 2) Bruce Eckel's "Thinking in Java" at http://www.mindview.net/Books/TIJ

~seen whats_in_a_name

5 PM whats_in_a_name parted the

!seen whats_in_a_name

5 GMT, saying 'oh hi pr3d4t0r. i just got back from masterbating. yeah what am i apologizing for? i may, but i need to know what im guilty

!seen slava

0 GMT, saying 'pr3d4t0r: if you want, you can revert my

is it possible to do a switch case of an enum?

java 5 enum? yes, it uses the ordinal() iirc

possible faq? - where is stream_get_contents hiding in java? or am i seriously expected to write a loop to read a file into an array?
*into a string
(or into a byte array first and then convert it into a string, which seems even sillier)

new Scanner(yourInputStream).nextString(".*");

wow, a regex scanner; i think i prefer the byte array; lol;

s/nextString/next

erm

omg

it would actually try to find that regex in the file, no ?
which would be insanely slow

you asked. that's the quick and dirty way. the better way would be to loop

.* will match the whole file anyway, nothing to be slow

depending on the optimzations

MyEnum x; switch (x) { case MyEnum.A : … }

it isn't good to have to rely on optimizations to get good code

_^_: you realize half of java relies on good optimizations…
and Sun's VM rarely lets you down

My hunch is to use one of the byte-array-*-streams to store the stream contents, the toString() it; but that seems heavy handed….

actually i want to scan the file for a regex in the end… lol.. but i wanted to have a general method for reading files first, as i might want to buffer them to do other things aswell

lol Fanook — i program JEE and have to rely on IBM JVMs as well (websuck — er, web sphere)

System.out.println does a scan of the input string 3 times for \n and \r before submitting it to FileOutputStream.write

well if you can stomach it, use a LineNumber Reader to get the input line at a time

but yes I agree suns VM is a work of art

**one line at a time

if you're just reading strings, use a Reader. let it handle the conversion to String

and i don't see why i'd split the file into lines or anything and concatenate them again…

Welcome to strongly typed programming

right; well if you have that type of syntax, whynot just use a reader like fanook sugested and use a regex scanner — since you are planning to regex the resultant string anyway, why not do it as it is coming in from the dtream?

where half of your time is spent converting between data formats

i want to download an html file off a webserver, and then scan it for a few regexps
lol

where half of your time is spent converting between conceptually equivalent data formats **

because i want to scan for more than one regexp for example

oic

it's funny how there's a getContent() method… but it seems to be some esoteric nonsense

lol

i.e. it can return a string, but only for .txt files

right. it can return byte data for an image as well
or a zip, or whatever the content is

it's a text/html file off http…

so what does it return for that?

an inputstream, lol

lol — oic

Exception in thread "main" java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream cannot be cast to java.lang.String

lolol

use toString();

so i end up with the same as when i use openStream()

PEBKAC.

muwhahahaha

I dunno what it means but I'm probably going to get kicked

i can use toString on a stream to read it's contents? that would be the answer to my question above…

~pebkac

Fanook, pebkac is Problem Exists Between Keyboard And Chair

oh I get it
it's an acronym for an insult

i believe we also have PICNIC

profound

Basically…

~PICNIC

_^_, PICNIC is Problem In Chair, Not In Code.

lol — havent heard that one before
so i guess the answer is "

that one is misleading
it might make you think the chair itself is the problem

yes, not_me, you have to write the loop"

instead of the occupant
or you could use byte b[] = new byte[is.available()]; is.read(b);

there's an available() method on InputStream? lol; learn something new every day;

toString just describes the object, as expected…

Scroll up

to where?

4 lines

_^_: but as it's a http download, available() might not be the whole file yet
or will it wait until all data is read?

does the http inputstream have some method for waitTilComplete() or somesuch ?
wait
it has contentLength

contentLength is not necesarily defined

make a new byte[contentLength]

especially it's usually not defined for dynamically generated pages

Then treat it how you would any other inputstream that you have no size information about

actually it's a funny thing with http that servers might send more or less data than indicated with Content-Length

IOW, "write the loop"
?

i'll use php instead :P

oh you sick sick person

i remember back in my first semester java class, we were given a class for reading files into string to use for an exercise…

lmao

that class had a tiny little problem:
it would create a new string object after each read, to concatenate the new data

ouch

wow

so in the end it took a couple minuted to read a large text file

tel me the solution didn't use "String.concat()"?

*minutes

or
read the file
wait nevermind
I read what beltorak said wrong

does anyone know what this means? The enum constant MMRegistration.RegistrationErrorsEnum.REGISTRATION_VERIFICATION_URL_MISSING reference cannot be qualified in a case label

i think a stringbuffer would be apropriate

or a byte array that you read the entire file into then make a string from

hello friends

hello

StringBuilder if java 5 (( non-synchronized ))

or a byte array that you read the entire file into then make a string from

this stuff makes me wanna puke…

what aspect of it ?

lol _^_;

lemme guess

_^_: that reading a file into memory is harder in java than it is in C

it isn't

it's the same loop, just with ten extra classes

lol

it's not… but in C# it's even simpler BTW

FileInputStream fis = new FileInputStream("file"); byte[] b = new byte[fi.available()]; fi.read(b); fi.close();

_^_: NOWHERE does it say that available() is the exact size of the file
"intavailable() Returns an estimate of the number of remaining bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream." — http://java.sun.com/javase/6/docs/api/java/io/FileInputStream.html

if you want a file into memory, create the new File and get it's size?

well

i have an InputStream of unknown size, not a file

the you need a loop — nothing aleviates that

That's true, but it works. That's the fastest way to read the file into memory. You never asked for it to be the correct way

lol _^_

lol
nevermind dropping the one or other byte, as long as it's fast!

the correct way would be File f = new File("file"); FileInputStream = new FileInputStream(f); etc
Can you tell I sometimes program in assembly ?

assembly sure is more fun than java

yeah

lol
in some ways

and the speed is incomperable
but you can forget about portability

I'd hate to build a distributed application with transparent LDAP / AD based security in assembly tho….

you can't do shit involving security from assembly

sure you can
it's all machine code in the end

not Java style security

its still all machine code in the end

java style security is based on stack walking
Java isn't machine code
it's bytecode
and you can't run arbitrary native code on the host machine without permission

it ends up running machine code in the end….
thats the purpose of the JVM…

you can't access the host machine without permission
in assembly , there is no way to restrict access to the host machine with fine grained control
since there is no reliable stack walk or such

hello!

~tell PaulEU about welcome.

What stupid thing did I say this time

PaulEU, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=welcome

we could argue about the semantics of this all night;

I think we have different views of Java security

6 A.M

yeah, you brought that up, my mention of security was user-level integrated with Active Directory and the Windows Login

don't mention windows talking about security

hahaha

I have a program that can overwrite the boot sector of your harddrive from any user account

2327.

woot;
how do you do that?

NtWriteFile
windows security is based on obscurity

C++ api
?

no
native api
windows driver kit
etc
you can use driver routines from usermode

so you write a 512 byte "file" to sector 0?

This is the entire code http://www.pastebin.ca/671861

Hungary, most likely.
Maybe Poland.
Sleep well, peeps.

you too
night
have sweet dreams about lolcats and banning people!

I have maybe corrupted java package, but I'm not sure.. when I run application in terminal (java -jar App.jar I have: warnings: Cannot convert string "-b&h-luxi sans-medium-r-normal–*-140-*-*-p-*-iso8859-1" to type FontStruct
what can I fix it ?

wow; thats slick; lol;

I have problem with java plugin on www websites, fonts looks be ugly :/

and any non-privalaged user can do that? I do find that hard to belive;

Change the font

_^_: where ?

changing that would break shit
~tell PaulEU about where to change the fonts

PaulEU, I guess the factoid 'channel name change' might be appropriate:
http://freenode.net/policy.shtml#channelownership

whoa that was wayyy off

ee ?

lol — yeah, i think so;

I would just like to say that some of you guys are ruining the concept of "unit" testing

_^_: is that problem with fonts on /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/lib/fonts/ ?
or other ?

I think so

_^_: where are settings of fonts in home dir ~ ?
do the java have it ?

um
DO you have a Java control panel somewhere ?
Because if you do I would suggest searching it for a font option

_^_: yes, I have java control panel

where is the best tutorial for only the new 1.6 features?

your scanner method doesn't help either… it only returns the first bit of data returned by the server it seems…
return new java.util.Scanner(connection.getInputStream()).next(".*");

_^_: but there aren't any settings for fonts in java control panel

this works and looks semi-decent:
java.lang.StringBuffer sb=new java.lang.StringBuffer();;
InputStream is=connection.getInputStream(); byte[] buffer=new byte[8192]; int c;
while ((c=is.read(buffer))0){ sb.append(new String(buffer,0,c)); }
return sb.toString();

*yawn*
pastebin, please.

we've written much more than that in single lines already

hm?

this is a followup to a discussion that's a couple screens long already… so i don't think one line more or less hurts
it still creates a new string object for each buffer read tho'

Yeah.
That's why a gc exists…
I understand if you're trying to minimize garbage…

hi all, i have a problem with servlets / jsp ; i always specify very clearly response.setContentType('text/html; charset=utf-8'), but firebug tells me some servlets always send the response header only at text/html, some others as text/html; charset=utf-8

i am simply wondering while there's no builtin stream_get_contents :P

But one of the shortcomings of the language is that strings tend to create a bit of garbage…

i've written the same thing in C earlier… and simply realloc() the buffer to twice the old size whenever it's full (and it's static and re-used for the next file)

…okay?
What are you trying to do?
copy a stream to a byte array?

downloading a file off a webserver
where we don't know the size in advance
i have a solution now anyway… just ranting about java :P

read it into a ByteBuffer?

that seems better than stringbuffer indeed
nobody suggested that before

are you using nio or InputStreams?

i have a HttpURLConnection

~javadoc HTTPURLCONNECTION

I don't know of any documentation for HTTPURLCONNECTION

~javadoc HttpURLConnection

how did you manage to capitalize that?

svm_invictvs, please see java.net.HttpURLConnection: http://java.sun.com/javase/6/docs/api/java/net/HttpURLConnection.html

I was being lazy…
Damn
Patrick Stump is goofy looking.
I wish I had sideburns like that

where are settings of java in home dir ?

how is re-typing instead of pastting lazy?
~/.java/ ?

ok, I can't find solution for warnings: Cannot convert string "-b&h-luxi sans-medium-r-normal–*-140-*-*-p-*-iso8859-1" to type FontStruct

because I'm so hot and bothered by Patrick Stump
did you read about setChunkLength?

I see that in Java 1.6 don't have class javax.swing.GroupLayout ?

that is not relevant here… chunks are a special http feature
"when using chunked encoding streaming mode"

I see.

ups.. I did mistake

Anyone know how/if I can access JNDI DB resource from regular Java file?

You have access to the stream, no?

with getInputStream, inherited from URLConnection
see the too long paste above

Yeah…

i can rewrite to to use a bytebuffer gizmo myself, but it works for now and i am writing more interesting code

I mean, you can also used a BufferedStream.

i'd rather have a stream_get_contents equivalent, i'd be much further already
what use is a bufferedstream? i can only read lines from it

Which you can also have access to the supporting byte[] array.
I'm not familiar with stream_get_contents…is that part of POSIX sockets?

it's a ph[ function

php?

stream_get_contents returns a stream until eof and returns the data as a string
yes, php, it's a modern drug i heard

…yeah….

you've heard of glass, you've heard of dust, well this is glass dust

ah, i typoed it
i thought you were making a pun on not knowing php
but i like how, minus this crap, i actually get stuff done in java, having started my first semi-serious project a few hours ago

Kungen, not really
Kungen, include libs to access jndi server, then do a lookup

Well, C/C++,Java, Ruby…or whatever will all do whatever you want, it's just how much effort you're willing to put into it.
I just get sick of peole who get so zealous about any one thing…
I think what people tend to forget that it's all code…it's a bunch of effort no matter how many tools help you along…*sigh*

hmm I have problem still with fonts :/
http://img361.imageshack.us/my.php?image=bladjavawo6.png
where is mistake ?
fonts are ugly :/

might be a hint in here for ya; http://java.sun.com/j2se/1.3/docs/guide/intl/fontprop.html

how can i pass a parameter without using input tag? is it possible?

thx, I'll try

?
you might need to detail your question a bit more. we're not mindreaders

hehe sorry

but yesterday there were OK :/

then you changed something

in jsp, how can i pass a variable value to another jsp page without using html input tag?

use parameters on links instead
a href="thepage.jsp?idofmyentry=987234987&texttochange=mooIamacow"change my text to cow/a

ok let me fill you in on what im trying to do, first i load data from a db and put in varibles according to its column, displayed to user, and then when the user clicked on submit (fom action = same jsp page), i wish the variables is still intact
well you probably know after i press submit button, the variable is set to null

right?

put all variables in an object and place it in the session. that way you can retrieve the variables from the sessioncontext in the page
and they'll be available as long as you want

How do i get server host (like request.getRemoteHost()) having only ServletContext reference in my method?

aha, is that involving javabean?

well, make the container serializable. the one you put in the session

is there some utility (available for osx) that allows you to run applets in a stand-alone fashion without a web browser?

appletviewer

thanks

ok that's javabean if im not mistaken, thanks dude.

haven't checked it but http://www.jsptut.com/Sessions.jsp might give you some ideas

ok, thanks

heh, kinda poor feedback from that app. can it be run directly on a .class file (i only saw examples with .html files in the man page)? it seems to start and then immediately quit regardless of what file i run it on.

afaik you need a htmlpage for it

ok :/

hello
is it possible to write the bean, that uses the connection to the database from the connection pool, which also used for persistence ?

erm
what?
the bean?
the connection pool?

how do i get server host from init() method of servlet? is there a way?

no. And if you think about it, there's a good reason for that.
You can, however, figure out at request time which hostname was used to *access* the servlet.

server doesn't know where it's hosted and it can only get known about it reading http-header it received. am i right?

half right.
you can map a given web-app to a number of different urls — that's the real reason.
Therefore, there's no canonical "this is the hostname" available.

jottinger, I have the connection pool in the application server.

right…

jottinger, I want to write the bean, which calls cpesific stored procedures on server.

okay, and?

unfortunately i need it in load-on-startup servlet that doesn't work with requests. can you suggest a workaround? to get ANY of mapped urls?

get the connection from JNDI, call the stored proc…

jottinger, can I use those pool ?? and how to connect to it: via jndi ?

why do you need to?
I mean, what are you really trying to do?

jottinger, also that pool is used for JPA.

irrelevant. Just do it.

jottinger, thanks!

jottinger i need to instanciate jms mesasageListener that would log server-host and other info when message arrived.
and i need to instanciate it on startup

in your WEBAPPS?!
Um
don't do that

why?

because that's stupid
what container are you using

tomcat

don't
get a real container

stupid to use JMS in web app?

/APPLET". i then run appletviewer on it. now i get "java.lang.NoClassDefFoundError: Main (wrong name: newton/Main)". how do i make it go into the newton package?

stupid to consume jms in a web app.

jottinger, unfortunately i do not decide what to use in project..

well, tell whoever does that consuming JMS in a web app is not the right way to go.

jottinger may i talk to you in Private?

what about?

not to flood a channel
about this design issue

channel's dead anyway. Keep it public.

Can you explain plz why its not right way? consumed message forcec web app to do something. what's wrong?
forces

a webapp is a managed deployment unit. Consuming a JMS message means your message consumer will have to beinstantiated in the webapp's classloader; redeployment of that app won't be able to clean up your listener.

jottinger that's not a problem in my case. if web app is stopped, there is no more sense in those messages

but the consumer is still alive, regardless

hm
but it will be dead if broker is down?

no
the listener would still be there
listening to a dead broker

what will be changed if i instantiate consumer in non-web app then?
every app could be stopped

if you redeploy the app, then the container will clean up allmanaged objects

and consumer will be still alive? or i don't understand you

the broker's life is not the issue
startup creates a listener in webapp1's classloader
user redeploys webapp, creating webapp2

there are hooks for that

container cleans up webapp1's classloader… but whoops! A reference still exists to webapp1's JMS listener
so now you have two listeners
you CAN clean this up but you're violating the j2ee model

oh?

hello frnds

oh what

i am having a prob with loading the java applet
thi is my error http://rafb.net/p/RI1LaJ48.nln.html
can anyone help plz

~applet

I guess the factoid 'resizing applets' might be appropriate:

~aolbonics

jottinger, resizing applets is http://blog.taragana.com/index.php?p=10

~applets

jottinger, aolbonics is talking like a retard using speech as if you were on AIM or using single letters for you, are, you are, you're, see, etc. Talking like this is frowned upon in ##java and may result in you being silenced. You have a full keyboard so use it. We don't care if you talk like
an idiot with your friends but we don't want to sit through stuff like this: http://forums.oracle.com/forums/thread.jspa?threadID=499980&start=0&tstart=0

can you tell me where the glassfish (Sun application server 7.1) stores the jndi connection to database connection pool: in the java:/comp/env ?

jottinger, applets is Check the topic, read http://javachannel.net/wiki/pmwiki.php/FAQ/Applets - Basically we try to avoid them.

glassfish is not sjsas 7.1
glassfish is 9.1, not 7.1

jottinger, sorry, but where it stores that connection ?

jottinger i see, thanks for explaination. Unfortunately i have nothing to do with this design decision..

ugh.

the site i am tring to load is actually using JVM
its from ms i guess
is their any solution for that, plz help

jottinger can you suggest any nice-enough workaround to get any of mapped urls from init() method? in practice my app will have only one

are you saying setting things up/destroying then in a ServletContextListener is bad? or perhaps you're talking specifically about servlets?

can someone tell how to get the context of the @Stateless JavaBean ?

he's setting up a JMS listener in a webapp.
why do you need the hostname?
I mean, what are you using it for?

i agree that doesn't sound like a great idea. but i'm not sure that the init/cleanup is why, afaik you can do that cleanly enough with ServletContextListener

yes, it can be done, but it's not the right way to go…

jottinger to log the event in DB. we will have several instances on different hosts. and we need to know where exactly the message was handled

jottinger's photo store
- i heart huckabees

why not use the IP of the host?
?

jottinger it's ok to use IP. how can i get it?

in i heart huckabees there's a place called jottinger's photo store i think

URL

what do you mean?

get the IP of localhost…

thanks for your help

jottinger, Would the line @Resource(name="myDB") public DataSource customerDB; return the result for me ????? the connection from the connection pool where myDB - is the name of the jdbc resource, which uses the connection pool?

is anyone out there getting enough sex?
ouch, sorry wrong room
wrong channel

hehe

have read too much bash.org

Why can Ant add a directory to the classpath of a file while you're absolutely unable to do so with the "java" command line executable? (in java 1.4, in my case)

ant is smarter?

Maybe…
But how can I so-to-speak emulate that behaviour… without ant?
Any known way?
(Compiling a little c app to do that would be an option, as long as I can statically compile the thing and as long as the license allows commercial distribution without sourcecode etc)

No idea. What do you want to do? Add a directory of classes to your classpath? What's wrong with java -cp ?

no, I want to add a few directories with .jar files and property files, xml files and image files to the classpath
at least that's what ant does and it works

"The IntelliJ IDEA integrations have been developed exclusively for ej-technologies by the leading IDEA plugin specialists at Fuhrer Engineering"
I'm sure those guys have no idea how that sounds to non-German speakers

lol

I am trying to download the JLint plugin for eclipse, but the link [ http://www.willowriver.net/products/jlint.php ] seems to be broken. Anyone who uses this and could suggest me where to download it?
otherwise any suggestion about similar tools [that work as an eclipse-plugin] will be really appreciated

oops

well, the eclipse is neat

you know how there's servlet mapping, is there applet mapping?
or maybe i just can use servlet mapping to map to an applet?


it sounds almost like you have no clue what servlets are or what applets are

would be useful, no?

not sure which

well if it sounds like that to you, i doubt you can help me

I'd love to see why an applet - which runs on clientside - should need a url mapping on the server side

it would be handy while i'm buidling it
to not have to copy the .class file
into where the web pages are
because the web pages know nothing of my java packages

erm… well, that would be a simple mapping on serverside, not a url mapping… plus, you could always use those kicky jar file thingies

ahh
could i specify the mapping in web.xml?

not simply, no, because web clients can't access data in WEB-INF

hmm

Let's get back to that "enough sex" thingy

haha, sorry about that

hi a wrote a simple java chat server listens port 7777 and a clent appplet
on localhost there is no problem
on connection
but
i try it on ubuntu server
cliet cant connect it
777
can you help me

unsigned applet can only connect to the host it's loaded from

?
i dont understand

~topicsmite thepenguin37

then I"ll just do this

And the wrath of /TOPIC descended with terrible fury upon thepenguin37. And all the people marvelled, saying, Behold, we too should read the /TOPIC, lest we be stricken. And all the people read the /TOPIC, and went away edified.

heh
or loesh will

hehe..

?

thepenguin37, read the topic.. specailly the part about applets :P

wehere i can ask it

google?

thanks

stellarium rocks

is it possible to install jboss in virtual host?

why i can not ask about applet

yes
because applets kinda suck and the channel's decided not to waste time on them

what is its minimum memory requirement?

for jboss?

yeah

depends on what services you start up

for ejb jsp and servlet

… and which container you use for each service
in other words, you need to test

is 512mb ram enough for that?

should be

this is the error it is giving…. Error occurred during initialization of VM
Could not reserve enough space for object heap

Comments

« Previous entries · Next entries »