I am trying to cut a paragraph into its sentences using PCRE Right now my regexp only cuts at each full stop exclamation

open, __construct, close, exec, version, last_insert_rowid, load_extension, changes and escape_string

TML, where does the $j += 2 fit into the for loop?

nothing yet, but I’ll probably add it on pecl

In place of $j++

ok thanks ill try it

Can you show me the configure string you used? I want to try if that configure-string works.

Actually, I may have misread…what I gave you makes it advance by two steps each iteration

berry__ thanks a million

TML, yeah just realized it isn’t working hehe

Maybe some configure options generate conflicts with some other..

If you’re trying to format the number, try s/printf

ill try McFly’s suggestion
yeah, thanks

TML, if I get time tonight to implement SQLite3_stmt and SQLite3_result then I’ll post a sample tomorrow

I’m tired of vb.org Scott.

TML, oh and all names are open to change
WhaLberg, well you’ve not explained the problem very well

./configure –with-mysql=/usr

you want to find users with a date of X but where are you wanting to find them?

rightnow, cheers.

And then I made sure that /usr/lib/libmysqlclient.so pointed to the client I wanted.

um how could i make check on string if there in string is sth else then a-z and 0-9

php.net/ctype-alnum
Let me know when you’re ready to show it to someone else. I’ll brush up on the sqlite3 API.

i need [a-z][0-9] – and _

Are you exposing all the constants to php web hosting userland?
php.net/preg-match

TML, not yet
I’m planning a fairly basic version at the moment

I have a mysql-binary package from mysql.com installed under /usr/local/mysql, there is no lib/libmysqlclient.so there. although.. with the CGIs all works well. is the libmysqlclient.so needed for compiling the apache-module-version of php?

so far I can create databases, create tables and do data write queries

Somewhere, I have a perl script I wrote that extracts constants from .h files and preps them for Zend
Is there a libmysqlclient.a ?

yes

And why don’t you simply upgrade the system-wide mysql client?

TML, most of the API I’ve changed to return true / false

Is it possible to get info from the server? (OS, ram, harddrive space, server hosting clock/time and such?)

and the user can then call $sqlite3db-error_msg;

So try –with-mysql=/usr/local/mysql

that is what i tried and that is what not worked.

Throw a design doc in the repo, too.

TML, most of the stuff is up for debate. I’m just really doing some of the grunt work and rza has agreed to help me. We’re going to team up on another extension

Well, let’s take a step back here. The first thing to check, for your own sanity, is that you’re building your php mysql web hosting extension as a shared module.

um would be anyone so nice and make me pattern if i allow only A-Z, a-z, 0-9, -, _

php.net/pcre.pattern.syntax
If we do it for you, how will you learn?

hey everyone

Is it possible to get info from the server? (OS, ram, harddrive space, server clock/time and such?)

Yes.

claesson92, yeah if you have exec / fopen permissions

Ok, so copy the ext/mysql somewhere and remove the php-shipped library so that it can’t fall back on that

I run the server myself, so that would be no problems.

claesson92, /proc/cpuinfo is processor stuff and /proc/meminfo

Can i acces this in my php code to echo it?

In theory, sure

some things, yes. Some things, no. Some things, not through PHP.

$string = file_get_contents(‘/proc/cpuinfo’);

Ok, thanks. One more, with the irc/ircg, can i read messages others are writing/sending?

a great exercise to try on Windows!

Theoretically, could I run PHP on windows without installing it?
i.e. By manually configuring httpd.conf and php.ini ?

wtf?

MikeSeth, Windows doesn’t count as an OS

?

haha
5] [ScottMac VERSION reply]: xchat 2.6.8-1 Windows XP [Intel Pentium

how are you expecting to use something that is not installed ...

but you use Windows Xp ScottMac
hehe

I meant, by using just the .zip files. Instead of running the installer could I unzip the files to a directory and set up httpd.conf and php.ini manually?

srand, yep at Work I do
srand, I use OS X at home
a real mans OS

you'd have to put all the files into the correct directories yes .... but what is the point in this?

mac ?
i want a mac ;~

I want a new Macbook

though, there may be some things the installer does that you just can't do

ahaha...i just want a simple notebook man

hey AlexC_, everyone

here in brazil everthing is very expensive

good morning foutrelis ^^

Hmm, I want to be able to easily keep all my installations up to date.

then just re-install it when a new version is out ...

I have +2 computers I want to run PHP on and I want to try something for fun.
Sort of... an experiment.

um what is wrong with this pattern preg_match('[a-zA-z0-9_\-]‘ , $domain))

A-z

it matches only one letter and the second set is broken
that, and you kinda forgot the delimiters

it should be, EvilDin /[A-Za-z0-9_\-]/

hm now i used /[A-Za-z0-9_\-]/ and for domain “te:st” but i still get true

why shouldn’t you?
it matches “te”
in fact, no, it matches “t” and bails out

maybe you want to check if it only contains those chars, correct?
if so, do /[^A-Za-z0-9_\-]/

perhaps more like #^[a-zA-z0-9_\-]+$#

still

well, A-Z

don’t forget the D modifier, whenever you do validation

D modifer?

and you don’t need to escape the “-” at this place of the char class

i forget to add character .
how should be added

EvilDin, as in, D modifier, php.net/reference.pcre.pattern.modifiers
#^[a-zA-z0-9_.-]+$#

thanks

with the D modifier, of course

hi, someone know order script?

um what about white space

Why DOLLAR_ENDONLY?

TML, well, according to his description “abb\n” is not a valid string

I see
You seemed to be suggesting it as a general rule, though

yep, I meant that when validating occurs, it’s better to start with D and then think of the implications of removing it
few people are aware that $ can also match \n at the end, hence inducing validating issues where it’s not expected, like in usernames, passwords etc..

$ would mean same thing with s modifier as well no?

good morning everyone

ekneuss, I knew that after Stefan told me

i need a php script that puts the current date and time into mysql’s datetime format
does the date() function do that automatically?

date(“Y-m-d H:i:s”)

ScottMac, yeah, irrc stephan even wrote about it somewhere

Saberu, can’t you use MySQL functions?

Saberu, why don’t you simply pass NOW() ?

what I meant

date(format, time) …

XHTML, with minimum format changes?

poncha, mmh ?

I would expect people to trim, then they don’t have to worry about it at validation, but *shrug*

i need to compare the current time to the time in the table to see if it’s 5 minutes within it

DIY?

tidy

NOW() is *current* time, whereas date() can relate to any timestamp in unix epoch

AlexC_ yuke
TML tidy? cool… Ill look into it

TML, yeah, but we all know what occurs when we expect things from people, don’t we
poncha, sure, he’s talking about the current date, though.

Well, that’s why I didn’t disagree with you so much as try to understand your reasoning.

i’m working on this content management system, and i got some dropdowns that present a hierarchy.. is there some non-js way to make them dependant of eachother without losing other form data, etc?
just looking for a clean way to make dependant form elements in php

NOW() – INTERVAL 5 minute

you can do most of it in SQL

yeh i realised i can do it all in sql
is it possible i can do it in sql host then return a 0 or 1 value?
to show true or false
i know this is possible
just not sure how

use an IF

if it returns any rows then its 1 else its 0

control flow statements on mysql.com
why not check that with mysql_num_rows ?

ah yeh thats right silly me
it will just only return rows it’s true on
which is what i need

Where can I get the hostname of the current machine using a non-cgi version of php?

how can I show the result of a query which has been used GROUP_CONCAT within?

$host=getenv(“HTTP_HOST”);

WhaLberg, you can use GROUP_CONCAT(username) AS usernames then you’ll find it in $print['usernames']

if i make a new object, does it garbage collect at the end

rook2pawn, yep

this is for a cli php script, not through apache

rook2pawn, at request shutdown you get __destruct or when it goes out of scope and the refcount is 0

so $GLOBALS['sql'] = new mysqli( DB_HOST, DB_USERNAME, DB_PASSWORD, DB_DATABASE) will clean itself and i dont have to disconnect either?
how would i close a mysqli connection?

search close

better yet, why would you open it in the first place

-close()
Hmm?

beanz, getenv(“HOSTNAME”); for CLI if no-one answerwd you

$host=`hostname`;

eww backtick

mysqli is like sticking it halfway in
its not exactly mysql_* api and its not exactly PDO

O.o

why eww? same as shell_exec )

poncha, but its an enviromental variable why spawn another process?

looks like HOSTNAME isn’t set on dapper :/

Works somehow.. thanks.

file_get_contents(‘/etc/hostname’);

What’s wrong with my MySQL syntax it’s not inserting the date, $query = “INSERT INTO quote (`q_user`,`q_quote`,`q_date`) VALUES (‘{$data-nick}’,'{$nquote}’, ‘”.date(‘Y-d-m’).”‘)”;

it is exactly mysql AB API

why come to ##php for MySQL syntax error
#mysql is there for a reason,

None of this is my decision. I’d rather be working in perl dbi

thanks though

sad face :-/

bool(false)

that too, but hostname may give fqdn as well with -f

php -r ‘var_dump(getenv(“HOSTNAME”));
string(21) “DevNull.Jelsoft.Local”
even

is your php linked to php-cgi?

which php ?

root@DevNull [/home/scott/sqlite3] # php -v
PHP 5.2.4RC1-dev (cli) (built: Aug 13 2007 11:25:10)

WhaLberg you find your answer?

mine is 5.2.0-8-etch7 (guess what os )

evil debian?

when you use GROUP_CONCAT you usually create an alias, i.e GROUP_CONCAT(field) AS my_concat_field, then you can access my_concat_field later in php

not evil at all
btw it may be dependant how you are logged on
i am there over ssh on pts/0
on tty you might get other env

hi

hI
question
i have a website template in HTML which requires i replace certain things

or php echo $VAR; ?

make the file a .php file (rename it) then just do php echo $var; ?

HAHAHAHAHAHA
http://www.google.co.il/search?q=scox&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

i *can’t*. i want a full website with a faq, index page, all that jazz, and here i’m mired in a small loss

FAIL.

short tags (= ?) are not considered as portable, many servers have them disabled by default.

i want this index page to have a menu with FAQ and home page in it

then make it so it does?
I don’t understand what you are asking

clarification requested. Why does “return $res[0]” return elements $res[0], $res[1], etc as sub indicies of $res[0] shouldn’t it be “return $res[1] if thats what I want?

but i want the FAQ to be generated dynamically, and i want links to the FAQ and home page from within the index page
that is where i am confusedf
i dont want to seperate HTML and PHP
because i don’t need to
i don’t want two php pages, just to be clear
if at all possible, i want only one
so can you please help?

?

I can’t sorry, I have to go
bye

the 1 refers to the index not the amount of levels

everyone please help me
if you want i can provide full details

stop pressing [enter] all the time

ok welll look at http://fswh.ath.cx. it is made from a HTML template, okay. and i would like to put in a FAQ page. but i want a menu on the left side and a link to the FAQ page. the problem is how to put that in the PHP page (after I rename) without seperating
the PHP and the HTML.

hi

http://rafb.net/p/IDvBxX57.html is the HTML template
so, can someone please help me out?

Mace[work]: so if there were more rows in $res then I might pull from $res[3] and get the indexs below that. I think I just got it. Right?

Is there a way to find out which php file defined certain variable (I have an array but have no idea where it is defined (I use the one variable name to temporary store some data and then I empty it, this time i forgot to empty it))

uh oh…. Apache Webserver keeps crashing when I open a .php page…

What’s the best way to ‘verify’ the existence of text in a string? For example, string “hello world” if I want to boolean verify that ‘hello’ is in that string, how would i do that? Thanks for any help.

Help me please someone.

anyone have a clue how to fix this?

not the indexes below per se, the indexes inside. so $res[3] would reference whatever is stored in $res[3]
the 3 represents a position in the array

syntax for starting a php 4.X class?

new Foo()

writing a xlass sorry
nm
This requires more then a simple answer

GreenJelly, explain the questions better and you’ll get a more complete answer
class Foo { var $moo; function bah() { echo ‘test’; } }

how can i guarantee the enumeration order of a key=value array by foreach?

arsort ?

enumeration order?

I’d say you’d be better off if you found a way to make the code behave correctly regardless of order

if i do something like $a = array(“2″=”value”, “0″=”value2″, “1″=”value3″), i would like to get it back in a foreach in the original order when i set it
and not in by-key sorted order

ScottMac I retract my question, do to the complexity of the issue, and the fact that I need to read documentation.

use associative arrays?

ok

dog bless you. I wish everyone had brains like you do.

Mace[work], isn’t it associative?

$keys = array(2,0,1); foreach($keys as $key) { /* $other_array[$key] */ }

it’s re-arranging because they are numerically indexed, if you did array(‘one’=… that would be associative

ScottMac sorry I bothered you guys…. I like asking questions with one word… like Q:”what is the command for making a choice between two variable possibilities” A:
“an if statement”

if only life was the simple

:-D

Mace[work], but i gave strings as keys, not numbers

$keys = array(2,0,1); foreach($keys as $key) { /* $other_array[$key] */ }

php typecasts automatically so even as strings they are numerically indexed

how do I add extensions?

TML, it’s too complicated for a 300-elements array

TML they are all varients in nature (kinda)

zpertee, sorry, my magic ball doesn’t work. What OS, what extension?

Mace[work], hm… then, i will swap the values and keys

Mace[work]: I guess what I am trying to get clear on is my debugger shows an array $res. in that array is an array [0] and in that

sorry pdani_ they are all varients in nature (kinda)

Mace[work]: is [0], [1], etc.

berry__, sorry. wasn’t sure how much info you needed. I’m using ubuntu 7.0.4 with php5 and I need to add the session extension.

GreenJelly, i see

do echo “pre”;var_dump($arr);echo “/pre”; and pastebin the results so i can see what you’re thinking of

pdani_ the variables convert themselves like variants… not sure if they are stored as varients… that is an interesting question
pdani_ PHP is a high level programming language… definately not a low level… it does allot of the stuff for you…

in this case the variable you are reffering to is an internal pointer and yes they are stored in the typecasted format (presuming by varient you mean a value that could be used in more than one context)

pdani_ becarefull though… SQL injects and HTML injects… if someone inserts a redirect statement into a variable that will be placed on the page, they can redirect them to their site, and spoof the user

zpertee, I really don’t know Ubuntu that well, but I’m guessing Google might help

Mace[work] A variant is a undefined variable. It can be any type of variable, and used in any way… though printing certain data can get funky. In lower level languages, variants are often provided, but discouraged because they are slow and unsafe. In lower level languages you have to (or
should) define all of your variables… I would even define all of my variables in PHP, but I can…

….change their usage without much problems… Varients can change forms. They can be integers one moment, and then strings the next.

berry__, ok

Mace[work] you can add a variable to a string without any conversions…

I am not obtaining to install the library ssh2 of the pollita.
http://paste-bin.com/12230

How do I access private static variables from public static functions? Can I? Do I use “

Comments off

Im trying to set a padding to 0px for one of my tables but its completely ignoring it If I specify a colour then

i’m trying to word wrap text around a floated picture but when i highlight a link in the text it moves

what’s :hover doing?
on the link.
Provide a link to the page for best results

:hover isn’t doing anything special
it was making the text bold but that doesn’t make a difference
can i pm u the link? i don’t want to paste it here as it’s not secure yet

Sure.
if :hover makes the text bold, the text will be wider on hover – pushing other content aside :

i thought that too
but it doesn’t make a difference

Linky to the page and let me have a look

as i tested it with normal
ok

njg iii

can you make a link yellow?
or is that illadvicable?

anyone here had experience with xstandard?

hi

FRAME SRC=”http://www.loveparade.com/” NORESIZE

/FRAMESET
why should I do that?
why using frames in that case?

does not need to be enclosed in a in xhtml 1.1?

there is also a noframe area with your browser does not….lalala message
http://www.loveparade.de/ – I found that here

I’ve read that I can use the Content-Disposition meta tag to force the browser to download a file. But this doesn’t seem to work for me.
meta http-equiv=”Content-Disposition” content=”attachment; filename=oracle.txt”
http://www.enyem.com/test/mytest.html
Can someone tell me what am I doing wrong?

csaba microsoft thing?

it doesn’t work under ie either

hello, anyone fancy making my website look better?
ofcourse with credit
http\stimulus.awardspace.co.uk

how do I make a internal-page-link yellow instead of blue?

give them a class and style a.myclass { color: yellow; }

anyone here attempted to put images inside rounded corner borders? using the background picture method

Whatever it is.
Sure you can put images as rounded corners
]rounded

http://www.smileycat.com/miaow/archives/000044.html http://fumle.dk/public/webdev/round-corners/

no i meant
putting an image inside the content of the box which has rounded corners
as i can’t seem to be able to do it..
as every time i float the publish your images online the box stops extending

]float contain @ Saberu

Containing floats: http://www.ejeliot.com/blog/59 , http://www.positioniseverything.net/easyclearing.html http://www.quirksmode.org/css/clearing.html http://www.complexspiral.com/publications/containing-floats/

but the parent objects don’t contain floats
i commented them out
i can show u a test page that only has the objects i’m looking at
so no extra parent objects
and it does the same
Zoffix surely you have attempted to use images inside rounded corner boxes before?

so i finally know why IE displays my xhtml page so screwed up! i forced header application/xhtml+xml and firefox displays it just how IE normally does!
so yes, i definitely will use html 4.01 strict

ahh i just realised
I don’t need this complicated solution
I can use a single image because i’m using fixed dimensions

Sakkath, IE doesn’t support XHTML

since when?

Since eternity

eternity being 1992, when IE was conceived
(i may be wrong on the year but that’s not the point of the joke)

How easy is it to get your site to become #1 in its area? I mean if I build something (like a job-search engine) which is better than the competition, will it become #1 on its own? What do I need to do more?

you need to be prettier, effective, more functionnal… EFFECTIVE… work on google indexing, effective, make publicity in other medias… and be effective

padd173, same as you would do with a regular business.
Advertising, advertising, advertising, and making sure your product is decent as well as providing customer support etc etc, just like you’d normally do. It’s only a different media type

also offering features competitors don’t have… but that can be hard to find
If you have a brilliant idea, be aware that at least 5 other persones in the world aldready had it.

I’d say opening an online business is harder. For example in real life you can find a location for a pizza place where there are no pizza places for miles.. you’d make a lot of custies… online.. everything is just a click away

there is still places for innovation, look at youtube, they made millions… and that started like 3 years ago

looking for some form layouts

]layout

http://css-discuss.incutio.com/?page=CssLayouts , http://blog.html.it/layoutgala/ , http://glish.com/css/ , http://bluerobot.com/web/layouts/ , http://webhost.bridgew.edu/etribou/layouts/

hey guys
Anyone ever have the issue where they could burn from their burner, but couldn’t access it on My Computer?

what’s the code that will always refresh the favicon.ico
?
is there code that force a clent to reload favicon.ico ?

no there isn’t, it’s loaded when you load the page

can I “Stretch” a background image ?

( from this .. )

nevermind

the background declaration has more arguments

yeah .. this is what I needed .. background-repeat: repeat-y

url() color size align repeat ex. : background: url(‘img.png’) #ffffff 100% 100% top left no-repeat;

I wonder .. does w3schools give a printable manual with all the examples ..

don’T realy on w3schools, they’re not 100% accurate
it’s a good base, but don’t expect everything to be standard
they’re not affiliated with w3c

yeah .. but I always found what I needed there ..
at least .. they have a nice structured db ..

yeah as i said, a good base can be found there, “but”…

I second StaZ|work

i know that.. but when i force the application/xhtml+xml header firefox displays it just like IE does without forcing that header. when text/html is used it worked fine in FF
and yes, it doesn’t work at all in IE

can you use associative arrays for post data?
like option value=”checkbox[option]“Something/option

Hey, how can I create a picture that that won’t display a underline when I hover over it?

I guess you could use css’s a.href thingy !

I’m in Drupal, so I can’t use CSS

i don’T know what drupal is, but… drop ot, now
s/ot/it

HEH
I’ll remember to be a prick from now on too I guess.

what’s a prick ?

hi there, I have a warning from the w3 validator that I can’t figure out:Conflict between Mime Type and Document Type w3
any lead to solve this ?
Is this something to do with the way apache deliver its document ?
anyone ?

anyone know of a dreamweaver irc chan? if not, anyone here ever grudgingly use DW templates?

is it supposed to be ulli/liulli/li/ul/ul?
or ulliul

close your tags
always
even if the w3c says you don’t really need it

its just when i use my stylesheet which has nothing to do w/ ul/li it gets messed up

how does it get emssed up ?

there are no bullets
no squares
no margin
maybe its cause i’m not echoing html/body yet
but w/o the form it works fine

uh uh… are you sure you don’t have a * { margin:0; padding: 0} in your css ?

i think i do :-)
thats bad right?
awesome its all good now

snoop-: it’s ullian item/lilianother item/li/ul

yea i got ul’s within ul’s
for tree listing

oh
ulliulli/li/ul/lili/li/ul
oh wait
http://yawgm8th.wuputah.com/ul-ul.html
like this

how do you guys confirm deletes?
alert?

if (confirm(‘yeah?’)) { kaboom(); }

Is there a (simple) way to make a select box in which you can also type?

can someone help me with an RSS validator warning? http://paste.css-standards.org/23459

Hello, I do not understand how to make my menu bars go across the whole white space on my webpage at http://www.uniquelynorth.com/Uniquely_North_Web_Template.html, thank you

hi !
i try to refernce a web site in google but i can’t
somebody can help me ?
refernce/reference
i use META keyword and description
TITLE balise but i can’t reference my website and i don’t understand why
my site is html hosting 4.01 valide

?

How do to my website appears on web ?

You mean: you have created a website but it does not yet appear in the Google index?

webben_, yesz

what is the URL for your website and when did it go live?

yes, sorry for my english i’m french
http://galeriespacearts.selfip.org/
webben_, i try several once the firstone month ago

It can sometimes take a while to appear in search engines.
Have you submitted your URL to Google, Yahoo, and MSN?

i heard that it’s very fast with google

Not necessarily.

webben_, no just google and DMOZ

I’d suggest submitting it to Yahoo and MSN too. http://webdev.benjaminhawkeslewis.com/getting-started#findability has links to various guidelines from the search engines
you’re not following all of them yet

ok

instead of a real h1

Also worth remembering that search engines are mostly interested in stuff that other people have linked too. So if you can get a link from a friend whose site is indexed, that would help.

ok
thanks

you are welcome

hi
what does this tag do “meta name=refresh content=3; url=foo.php”?

Redirect to foo.php after 3 sec
if content=”3′”; afaik

hmmm
it’s not working for me…

inside head?

*sorry for my bad english*

nope.
should it be?

Yes
Hmm

k, I just had a blank page with that in it.

Is foo.php exists?

yep it does.

One sec

http://gargantua.servehttp.com/chawana.php
here check it for your self.

meta name=refresh content=”3; url=foo.php”

hmmm

3; url=foo.php – it’s all in content section

nope still wont work.
check it for your self :P

Yes, i see. I’m thinking

lol

Hmm. The code is right. http://www.html-reference.com/META_name_refresh.htm
url is an absolute URL to be loaded. Maybe this is a problem?

kthulho. nope.
kthulho, I fixed it.
meta http-equiv=”refresh” content=”2;url=chawana.php”

Is it possible to semantically “code away” the top-left column in a table? Is there any such thing as negative colspan?

Maybe its browser depended? http-equiv or name

maybe

Is it possible to semantically “code away” the top-left column in a table? Is there any such thing as negative colspan?
hello is u hoem hello

Hi
I want to help, but i just cant understand what means “semantically “code away”". My english is bad

kthulho:
Well… like colspan=”2″ sort of “kills” the next column, but I want to “kill” the previous one.
Hmm… not column. Cell.

One cell?
Hmm
There is no such thing, afaik
colspan not killing coloumns, its connecting them to each other
and make one coloumn
*column

Yes…
But this sucks.

is not good enough.

because you will visually see that there is an invisible column.

Visually see in code? Or what?

Eh?
Visually see when rendering.
Plus it semantically still exists, even if you could style it away.

Sorry, have you an example?

Um…
Can’t find any.
A table with one row of ths, and then many rows of one th followed by tds.

Problem in top-left th?
Shit, i cant imagine that
It’s a language barrier )

Hello, how do i make my div the same height as the list it contains? the background of the div isnt matching up correctly to the list inside of it, even though they have the same size and padding sizes
http://www.uniquelynorth.com/Uniquely_North_Web_Template.html
er i guess they are the saem height, but not perfectly lined up

hi
I’ve been doing a page containing an applet
and in some cases I want to display a div that overlaps everything in the said page
but no matter what the z-index is, the div goes behind the Java applet
I would like to know if there is a way/hack to work around this

afaik, nope

mmm….
guess I’ll go with alerts and prompts…

vertical align?

`css vertical-align @ johnny5

johnny5, css vertical-align: http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align , http://phrogz.net/css/vertical-align/index.html

thanks

valign= ?

(oh, maybe it’s deprecated…)

what i really need is the css way i guess

]vertcenter

http://zoffix.com/zoffix/css/vertcenter.shtml , http://reisio.com/examples/vertcenter/

hi people, when we point our browser to a certain website that contains index.html, or index.php, is there a way or tool that can allow client-side to find out what are the subdirectories on this site?

FreeNet, a simple server side script can do that

i am saying can i obtain subdirectories info from client side?
example if i view www.yahoo.com, is there a tool that can scan their link for “physical” subdirectories

FreeNet, only brute force. Some JS probably could do that too…

ok i see… thanks

Actually I really doubt JS could do that.. that would have a security issue..
So yeah, that’s done to blow off people like you.

is there a channel where people can show thier websites to others to check out and comment on ? =/

hello, could anyone help me with this http://pastebin.com/m59bc7b96 I can’t load the page with utf-8 I’m in a mac and my blog is hosted in wordpress, I’ve never had problems with this before…

I’m trying to set a padding to 0px for one of my tables but it’s completely ignoring it. If I specify a colour then it sets the colour to what I want, but not the padding. Is it possible it inherits from parent elements?

can anyone reccomnd a good visitor counter provider?
or code source or something safe/free

Have a good day everybody

hi, what could be reason that frame would be shown in IE6
does there have to be done any hack that frame would be shown

Hey guys
Without using JavaScript, is there any way to have a div’s content or something change when a link is clicked?
And how can I remove the scrollbars on the page with HTML or CSS?

hi any idea why this validated html http://pastebin.com/m7d07410 doesn’t show IE6

hey
what was the reason for not using w3schools for reference ?

hey! i need some help with a div that i need to have changing heights, like for instance if a text is very long then it expands to be able to contain the whole text
http://revolt-it.com/offensiv/spip.php?page=international&id_article=7
a href=”http://revolt-it.com/offensiv/spip.php?page=international&id_article=7″http://revolt-it.com/offensiv/spip.php?page=international&id_article=7/a

Comments off

Hi Im trying to put one of my packages javaImedia into a jar file When I did it I ended up with a jar file containing

heh
hahahaha
the office right?
office space
or something like that

office space

g[r]eek, yep Office Space
Lumbergh, the boss

damn funny flick

office space++

i like how it’s about programming too

orange swingline stapler

red!

crap
I knew it was something like that

“I used to be over by the window, and I could see the squirrels, and they were married, but then, they switched from the Swingline to the Boston stapler, but I kept my Swingline stapler because it didn’t bind up as much, and I kept the staples for the Swingline stapler and it’s not okay because
if they take my stapler then I’ll set the building on fire… “

and in the end he sets it on fire

he says the squirrels were married?

he’s not exactly all there

i thought it was merry

yeah merry

haha
that makes much mroe sense

“License and registration… chicken fucker.”

mind you, i just had a moment (like the main actor in scrubs when he goes off into daydreamland) where i was picturing a squirrel congregation under an oak tree with two squirrels reading their vows to each other and priest squirrel and the works

LMFAO

mmm food… bbl

I definitely heard it as “married”

i bet their vows were as solid as oak

wakka

flippo, http://www.imsdb.com/scripts/Office-Space.html

krustofski, I’ll be darned

misquoting office space is a high crime…

punishment is watching grandma’s boy
another programming movie

Do you think it reasonable that “@parameter” be an alias to “@param” in JavaDoc?

haha that was damn funny too

i also liked it

“how can they see me!!??”

http://www.imdb.com/title/tt0151804/quotes

fuck i died laughing

krustofski, It makes much more sense as “married”

. . .

damn..

perhaps if you’re handicapped…

lol

krustofski, So who is more trustworth, IMDB or the place with massive copyright violations?

it’s definately merry. i dated the script-writer’s daughter (not really) and she told me so

[y]
When I heard it in the movie I heard it as married. Wasn’t any doubt in my mind.
It’s much more pathetic that way.

dude that’s the same argument an ostrich would use to say “the enemy wasn’t there”

“merry”? Why would he use that word, and not “happy”?

if you catch my drift

http://www.script-o-rama.com/movie_scripts/o/office-space-script-transcript.html

and this is how religious wars are started

just a transcription, but still.

damn jews

You probably think it is okay to have Han shoot second

hahaahha

actually in the latest they kinda shoot at the same time

i don’t get that reference
probably about Han Solo

Is it guaranteed that “Foo” == “Foo”?

yse

uh i thought it’s not

duh
of course not
i mean .equals(“Foo”) etc
brainfart

“Foo”.equals(“Foo”); right?

yes

yeah

Better add a unit test, just to be sure.
(Kidding.)

i thought you were jewish

i don’[t think i've ever said that
but i am

ah ok, pat on the back then
(you were defending kosher earlier)
(i kinda assumed)

not necessarily defending it, just saying by definition it's humane

kosher hotdogs kick ass

totally

one of my best mates is a jew. we tease each other all day telling anti-greek / anti-jew jokes. its great

wtf, you're greek?

yeah ive been kind of secretive about it

i don't eat kosher at all

http://ask.metafilter.com/47906/Anyone-know-Mike-Judge-or-Stephen-Root

neither do i, i'm just saying that kosher dogs taste awesome

dogs?
haha

maybe you don't know this cause you're greek
but people say dogs instead of hot dogs a lot

not in my country
learn something new everyday

well i don't think your country has anything but goats
i could be wrong

my country = south africa btw

oh, i don't think your country has any food then

haha

flippo, http://www.youtube.com/watch?v=9tvSoVPKLGQ
flippo, its definitely merry

yeah cause you fuckers import our best

that was like 200 years ago

i saw some fruits in europe, imported from africa... apples the size of, well, fucking big apples. down here we get our own, second rate harvest

krustofski, married!

merry!

i wasn't referring to our labourers :P

oh

sounds like "married to me". plus it's confirmed supposedly in that thread that was just posted, it's mentioned on the dvd commentary
er, rearrange the quotation marks as appropriate.

nmx, thank you, honest broker

fucking snapple bottle cap
anyway
i'm gonna go now
ttyl

cheers

speaking of kosher dogs... why can't I seem to find those hebrew national bagel dogs anywhere anymore...

those are the ones i'm talkin' about

I also don't see how kosher is "humane"

heh this place down the road from home, called New York Bagles, owned by a jew, sells the best web hosting bagle dogs ever
*bagels

i'm content with einstein bagels

##bagels perhaps?

~cheeser++

cheeser has a karma level of 377, g[r]eek

oh, hebrew national stopped selling them…. buggers

take that evil one!

you know what they say…
if you’re going to dine with the devil…

why would i need a long spoon to dine with the devil?

so you don’t get burned dumb ass.

wouldnt a long table be in order then?
not a long spoon

you’re about a sharp as a sack of wet mice.

mice have teeth
they can be sharp

You guys are funny. :-)

no u

heh

i agree on that mouse part, mice hurt.

^ entertainment … wow

http://www.youtube.com/watch?v=dGNs7QMeV7E
(Married!)

man… you just don’t know when to quit

g[r]eek, what’s the fun in that?

where do I need to put a .properties file inside a jar so that a classpath-based loading mechanism can find it? Should it be visible anywhere inside the jar directory tree?

in the root

I always put them in the same directory as the class loading it. cheeser apparently does otherwise.

depends on how you want to load them.
but for things like log4j, they just go in the root of the jar.

Ah, mine are always custom resource files

that band sucks anyway

Seriously overrated.

they try to sound like Hoobastank but can’t quite pull it off

Irritating lead vocal

yeah, it’s confusing b/c log4j is finding its .properties (in the root) but my custom one right next to it is not being found

props.load(getClass().getResourceAsStream(“/mine.properties”);

good idea, i will try it with the slash

it’s not just a good idea. it’s correct.
8^)=

~DANCE

/-

no

HACK THE PLANET!!!! LOLROFLHAHAHAHAOMGITSFULLOFSTARS!!!!!!!!

~smack mohadib

thanks , i feel better

~tell mohadib about thank you

mohadib, You’re welcome.

~abuse javabot

I guess the factoid ‘javabot desktoptd’ might be appropriate:

er

DesktopTD stats is http://www.handdrawngames.com/DesktopTD/GroupScoreboard.asp?group=##java believe dat
DesktopTD stats is a href=”http://www.handdrawngames.com/DesktopTD/GroupScoreboard.asp?group=##java”http://www.handdrawngames.com/DesktopTD/GroupScoreboard.asp?group=##java/a believe dat

what a horrible, travesty of a movie this was.

Transformers?
I totally agree

~smack mohadib

cheeser, I hope you’re not watching it for a second time

:x

Colbert just went off and this is still going

~smiley

Fanook, I have no idea what smiley is.

awww

~sing

In a gagga da vida honey!

gagga?

cheeser, this is the first time you saw it then? It’s special. A real addition to the genre of programming movies.

oh, no.
i’ve seen it several times.
8^)=

cheeser, that’s hard to understand.

haha. Marc Anthony is in this!

cheeser, You’re on drugs!

lol
~ridicule cheeser
LOL

Well, they must be pretty good drugs at least.

it also has angelina pre-boob-job
and with really bad hacker makeup
“you’re pretty good. you’re ‘elite.’”

Keep a bucket nearby.

What movie is cheeser watching?

I’m glad we have such work to capture the essense of our era for future generations.
freeone3000, “Hackers”

oh god

eeee. that movie gives my hives.

Wow.
Well, tell me when they steal the millions from the gibson.

they just hacked the planet.
it’s all over now.

I thought Tron was more true to life.

tron rocked

my son (8.5 yrs old) loves Tron.

Well, it had the Dude as star.

he also really likes Titan AE.

Tron is a religious fundamentalist overthrowing a formed government in order to establish a theocracy to his god, the Users.

freeone3000, you scare me

i _love_ hackers

~smack Gracenotes
~smack g[r]eek

i often just play it in the background in a small window on 2nd monitor while coding

mis-tabbed

YOU HAVE MISSED

~tell Gracenotes about caps.

Gracenotes, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=hawkingcapslock – check this out.

the director of that movie had an excellent imagination

don’t mock my emotional distress

Hackers seems to have a cult, like “Roller Boogie”

best hacking visualization ever

Roller Boogie 0wnZ.
LindaBlair++

pr3d4t0r, You just have the hots for Linda

Who wouldn’t?

Zaftig

Bless you.

need to appreciate Hackers fwiw
i watched that movie as a 15 year old programmer for the first time.

Roller Boogie btw, as far as cult classics go

that movie is ass

Tron also rocked

g[r]eek, you were the target audience!

hehe yeah

Tron is epic win

Uplink is a better visualization.

Heh.

haha Tron
i remember the stand up arcade game

And I have a dislike for tron, if only because that dang minigame is the only reason I cannot fully beat kingdom hearts 2.

g[r]eek: how old are you now?

23

ah.

noone dislikes tron
no one!

tron was one of the first movies to use cgi iirc

Tron was made in the days of Asteroids.

i think it was after asteroids

I think pacman was still in the future

it had more than one color

haha
anti-trust was also pretty cool.

anti-trust wasn’t bad enough to be cool

g[r]eek: i can tell i should never take movie recommendations from you

i liked their depiction of xp style coding
ok
don’t watch 300 then. i loved it

oh, damn.
that was great
8^)=

Hundreds of scantily-clad men in the heat of battle. Yep.

although every greek now thinks he’s a spartan…

You like gladiator movies, kid?
Ever been in a Turkish prison?

the acting was not super in some parts
but who went for the acting…

Buffed men in thongs is what mohadib wants

lol

i went for the action. girlfriend went for the six-packs. win win

man jibblies?

thats messed up joed

JODE?

joed!!!

oh joed
chode

!

(is it a game?)

how’s it going, man?

Doing good.

g[r]eek: would you like to play a game?

this is getting entertaining.

bring it

Working on some stuff still.

##swing thinks you’re drunk
?

the only way to win is not to play

g[r]eek: oh, g[r]eek. you’re so young.
Fanook++

fanook has a karma level of 38, cheeser

the only winning move Fanook
pfft

now *there* is a good movie about hacking

meh, haven’t seen that movie in years

Ferris Bueller?

wtf, jumanji comes to mind

close!

friends don’t let friends irc drunk

lol

ferris beuler rocked

oh, i’m sober. just a big movie night.

Election?

sure man

just got back from the bourne ultimatum.

nice

cheeser, not drunk? what fun is that?

colder

i heard it was good cheeser
is so?

*awesome*

nice!

cool. identity and supremacy left big shoes to fill

The Freshman? The Producers?

if i hand four hands i’d still be all thumbs up.

lol
what does that mean?
thats good right

very

Fine hacking movies are in short supply.

heh, you guys remember that movie “it”

aye

g[r]eek: i’ve read the book at least 3 times.

that crazy clown gave me nightmares as a youth

are there any?

g[r]eek, with James Arness?

yes. it was a book first.
you kid.

haha

spoooky as a kid

mohadib, the Fog is excellent

aye!!
i really liked it

cheeser you’re starting to sound like an old man

We need a movie about zombie hackers

lol

been done

Is that not #php the movie?

you read any Ayn Rand novels/
one of my favourite authors
so there, i do have some _old_ in me :P

i haven’t but i have the fountainhead on my shelf to read

heh
howard roark reminds me of you.
you’ll know what i mean

now i’m scared.
8^)=

hmmz
g[r]eek: wasnt he the ’special’ charcter?

darn it, i break it again

no?

Aftermath_, when?!

oh. heh

he was the one with the helmet?

OH
that missile launch movie
fuck that’s old school

g[r]eek, don’t disrespect tradition

nah it’s been bugging me where that line cheeser quoted came from
no disrespect. i remember loving it

Matthew was a young man then

jeez that probably came out before i was born

in 86?!

Heh

i was born in 84
wargames!

i was close

g[r]eek: which line? i’ve quoted 4 or 5 different sources

i think

8^)=

Jesus Josef and Mary…

oh, that one.
sheesh
kids…

its been bugging me for last few minites :P

That’s one movie that everyone is supposed to know.

*minutes

It’s like quoting from the Wizard of Oz

what about old school game
“you want some rye? ‘course you do.” – 10 points to whoever gets that

ok. time to hit the sack and read.
have fun storming the castle.

princess bride!

gnight cheee

winnar is me!

Brains! Brains!

is there a java text-to-speech library?

(Return to Zork.)

Jslur

~flippo++

flippo has a karma level of 71, g[r]eek

google++

mohadib, shh!

hah
that game is old school

Zork rocked.

yeah

as did all of them

you ever play Phantasmagoria?
and The Horde
damn loved those games
when RealMagic graphics was first released

g[r]eek no, I had fun with LL though

i had most fun with monkey island series
lucas arts games really captured my imagination as a youngster

Born in 84 you are not exactly that old either :P

old soul if you will
i get that old man’s attitude from reading far too much and spending lots of time listening to old folk tell their tale

Heh, Nothing wrong with reading.

some of my best friends are books

Karma-Sutra for righthanded?

LMFAO

~bomb joed

~joed++

joed has a karma level of 64, r0bby

OHH! power of 2!

~bomb r0bby
:P

oh baby.

one of ##java’s finer moments.

hi all. I’m running a java application on a jvm. whats happenig when I launch a second java hosting application ? does it spawn a second JVM ? Is there any way to controll it (select if I want to run at the same jvm or not) ?

By default, yes, it does spawn a second jvm to keep classes isolated like they should be.

Two separate JVMs.
Dude, don’t say stupid thigns.

i just got Raptor off a mate’s pc. remember that?

ok, is there any way to put both applications on the same JVM ?

If you want to spawn more than one Java application from a single JVM, you’ll need something like OSGi, DXA, or write your own loader.

g[r]eek indeed.

OSGi is the easy one.

ok… I see

Writing your own loader is a piece of cake too, but you will run into some threading issues.

thank you

The loader basically needs to start one thread for each application, load the classes, and fire up the main(); method in each.
You’re welcome.

just as a devil’s advocate, what would be the downside of just doing a launcher for both apps that does something like new Thread(new Runnable(){public void run(){Clazz.main(…);}}).start();

hi all

Hello. I am using MessageDigest at the moment, and that produces a String. However, I just want the straight byte values, is the best way to get these with toCharArray() to avoid the charset mangling with getBytes ?

How execute one script in Javam in C I use system(/path/script) Java I don`t know

Runtime.exec()

hello java friends!

HEYE!

I love java

so do I !!

Fanook, thx

I don’t know why people dislike it. The rigid structure keeps it more difficult to screw yourself

Pervs

Design by contract keeps me sane

HENCE PERL LOVE
er

probably, unless you want to choose a ’standard’ charset to always use

Does anyone know of a good IDE for groovy (if they’re tried it). Groovy’s IRC channel is deserted, and the interwebs are no help.

IDEA

is that free?

Not as in beer, but as in free to be productive

I was afraid no one would ever use groovy.
Just one language too many, and the online docs suck

The Manning book is out though…

Weird thing is that Groovy doesn’t look half bad.

The book is fine. Just crap online though.

does netbeans support groovy yet?

it seems really cool, but there are no docs

Very strong Smalltalk influence in some ways.

yes, sort of

Still too much java web host baggage, but that’s understandable.

pr3d4t0r, It would have done well, if it had come out a few years earlier

Heh.

check out coyote…I’ve been trying it, but it doesn’t autocomplete

I stand by my prediction: scripting is where it’s at for the next 3-5 years in Java land.

why?
why not use a scripting language?

Some of the groovy generated byte code relies too much on reflection though. Can’t really be used conveniently from Java

http://www.eweek.com/article2/0,1895,2107637,00.asp

I think i’d use groovy the other direction

That’s because of the lame architecture of the JVM and core classes.

I wanted to use groovy interchangeably, at all levels. Much more likely to succeed that way.

That’s changing.

do my heavy lifting and frameworks in java, and use groovy to tie it all together and do the presentation layer, or something else boring and repetitive

It’s not Groovy’s problem, sadly.

how do i revolutionized world?

Jimi Hendrix left it.

how do i shot web?

__david, I wanted to use groovey to remove boilerplate at all levels
[groovy]

i’d like to use it to write simple webapps
and use java for JNI
4 languages ftw

You can, there is some groovy rails stuff

__david, there are already enough ways to do top-level glue

I need to write a simple app that queries data from a database, without using jdbc; what is a good library to use (nothing compliated/hibernate); will decide in 30 secs

C bindings to legacy, shell scripting, java(JNI), and web presentation that looks pretty
that would be glorius

I remember jython dying a slow death of disinterest. It has been around for ages.

?
I think jruby might as well.

vm hosted languages

I disagree–i think some people will use them b/c they already have java installed

joed, ruby and python fans don’t want the j-version.

groovy was a snap to set up

Exactly.

jython is still on a 2.1 release

using javascript to scrit java is actua;;y cool though
imho

i wish groovy had good online docs

the excuse that jython2.1 is stable so we don’t need to update doesnt fly anymore

Now groovy exists only in a j-version. But too many will look and say “I can already do that in X”

that’s why i like it
I don’t _need_ to learn new syntax

ramza3, jython lost all its developers.

that is what I heard.

b/c it’s almost entirely backwards compatible. I like groovy b/c I can use new syntax when I need it, and leave it to the interpreter, not the ide, to infer my meaning

flippo, that is why I kind of moved from jython to jruby

From java web hosting people I’ve heard ‘groovy’ hey it is almost like a perlish thing, this is simple.
and then they stop using it.

Groovysh isn’t intuitive
that’s a problem
python -i is great–you just code as you go

joed, no one is solving new problems with groovy that they couldn’t solve before

w/ groovysh you need to type “go”
and arrow keys are broken

jruby is getting a lot of support from the community. scala too

you’ve hit the nail on the head

~flippo++

flippo has a karma level of 72, joed

what does solving new problems have to do with 90% of programmers?

i want to solve the solved problems faster
(and, may i add, my computer is tharshing its harddisk to utter unusabliility
I can’t even see what i’m typing)

mmm swap space

__david, A big enough improvement in efficiency is enough to solve new problems

I feel ilke a problem that would be nice to solve would be some combination of green threads and native threads on java
if I could feel fine spawning 1000 parallel threads to do stupid shit

oh dear, that makes no sense at all

I am trying to write a quick database app, but dont want jdbc; hmm, should I use ibatis

HAHAHA

and still have a repsonisive program

if you have the queries, yeah it is easy.

Ciao, i miei amici.

Night.

for example, have thrades each blocking on various inputs from all over the place (websites, etc), but have it only use one native thread. Taht would be cool, and lead to smoe elemgant programs if the syntax was nice
good night

and I am just messing around, I haven’t touched jdbc in years

i know i ask this sometimes. and ussualy get the answer JAD(clipse) but what is the best decompiler for java 1.6 that understand try/finally
thats opensrc written in java is my contraint

~pastebin

http://rifers.org/paste

if people here have been able to operate with some of the sourceforge decompliers liek jdec or another which ones?

have doubts whether people here to use proper english?

My doubt is clear.

were is here? What is proper?

oh, srry, ment propre

it would be no wonder if all internet is converted into “lolcat” type of talk eventually

Woflborg; if satan has his way

Sad but true…. I’ll help kicking it away as long as I possibly can though.

im in ur for loop, upping ur vars!

you can haz engrish?

coughkickhimcough

/kick a lot of retards.

I never said that though, i had a frog in my throat

course you did

you have heard of Lolcode? most esoteric languages don’t cause CS majors to vomit (not sure if this one does either, but probably)

http://www.theserverside.com/news/thread.tss?thread_id=46581

oh yeah, i read about it last nite

the specifications are coming along pretty smoothly, actually
and the implementations, too

how do I set a window always on top?

despite a couple of logical flaws (yes, I should use one line)

i already gave you that answer

Hey guys is there a swing gui editor for Eclipse?

vbabiy-Laptop: yes, the Visual Editor plugin

is it any good

ah, comedy begins

last time i used it (about 2 years ago) it wasn’t entirely crappy

ok thanks

I thought it was decent enough.

generated gui code always tends to read like crap though

Although I like to write guis by hand myself

yes, I’ve seen that graphic, as a too-indulgent frequent reader of http://icanhascheezburger.com
s/reader/viewer

you did? i must have missed it

has the world gone mad? http://www.tetraboy.com/lolcode/ or do people have WAYYY too much free time on their hands…

yes, and yes

Ok, if I create a HttpURLConnection for a website, and getContentType() returns text/plan, how come the Object from getContent() isn’t a String?

or were you the one that said somthing like “look it up”? lol

because the method doesn’t know what type it is

stringz stringz stringz

I did instanceof String and it failed that check

i pointed at the docs, yes. Window, iirc. Seriously, go read the docs for it

I’d learn lolcode, but i’d never be able to obey the insanely bad english and the lack of structure

http://java.sun.com/javase/6/docs/api/java/awt/Window.html#setAlwaysOnTop(boolean)

then it’s not a string, is it.
don’t do that, he’ll keep coming back now

yjanks

then you wouldnt learn lolcode, since those are the only reasons to learn it for.

my question would be what is it if it isn’t a String

If you tell them exactly where to go a few times, they will figure out the system.

i don’t know. use getClass to find out

If you just say “look it up” they will get confused

swing tutorial; google.

sadly enough, no.

hang out here for awhile, you’ll notice people won’t rtfm…it got me in trouble more than once\

we tell them exactly what class (occasionally method) to look up. if they can’t be bothered to read the page, we don’t want to be bothered either.

(ragging on them)
I learned to accept the things i cannot change, and instead laugh when they fail

I answer questions at Allexperts.com; I’m sure I get worse than here

you act like this is a job or somthing lol

hear hear!

~tell AustLaw about aolbonics

AustLaw, 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

it is. You need to learn to google if you want to learn _ANYTHING_

quite possibly, but have you considered you might be contributing to it? I answered questions at sparknotes for about a year, then quit when the solution manual idiots started popping up everywhere

Also, you need to know how to browse resources, read books, etc (sun has EXTENSIVE documentation _AND_ tutorials.

nah, few books are bit of time can replace google, but then you would need to have things like “patience” and ” ability to read documentation”

I can use google fine, but I figure common methods should be very simple for someone to answer

javadocs.

and it would be just as simple for you to read the documentation

not really

~barbie javadocs

barbiejavadocs is hard!/barbie

well, then you just suck

tell AustLaw about fail

AustLaw, http://img378.imageshack.us/img378/4934/failtx2.jpg

that makes me laugh and cry

Programming channels on fn have a reputation to live up to

you do need to know how to read api documentations, which are meant to tell you how a method works, (or at least what it does, and how to use it.); barring that, you find tutorials.
spoonfeed you?

1. copy/paste from Homework 2. Java install/uninstall questions 3. a vague question that uses some library I don’t know 4. A question I can answer 5. “What do I do for my school project”

~tell AustLaw about RIF.

AustLaw, Reading Is Fundamental

when I ask for a simple method that im having a hard time finding in the documenation is hardly spoon feeding
bwhen I ask for a simple method that im having a hard time finding in the documenation is hardly spoon feeding/b

“Would you please explain to me: what does java do for the internet?”

knowing what letters represent the method to do it is hardly somthing I need to ‘learn

Our channel, our rules.

Simple question, why is your reading issue our problem?

We like keeping a higher level of discourse here.

~javadoc Window.setAlwaysOnTop(*)

r0bby, please see java.awt.Window.setAlwaysOnTop(boolean): http://java.sun.com/javase/6/docs/api/java/awt/Window.html#setAlwaysOnTop(boolean)

So rather than arguing with the regulars, rephrase your question or apply their advice.

there you go.

~tell AustLaw about documentation proxy.

http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=knuttz_ueba_22

thats the exact same link I gave about 3 minutes ago

i believe this is what he wants

Oh, sorry.

i know, that’s how i knew what
but it got lost in this…mess

I guess *YOU* are AustLaw’s documentation proxy!

heh ya I figured it out the first time you said it

AustLaw
actually
~javadoc JFrame.setAlwaysOnTop(*)

I don’t know of any documentation for JFrame.setAlwaysOnTop(*)

anyhow, you stand a snowballs chance in hell to get anything proper done if you cannot fathom why javadoc should be your first choice for information on how the api works.

crap
i should have read that more..

don’t ask what java does for the internet. ask what the internet can do for java
(lame rendition of JFK’s famous quote)
hm, that’s actually painful to read. figuratively.

i thought they only make chickenwings..

that’s KFC

Give it BGP? IGP? SMTP?

Applets never really did interact with html too well

it has a k.. and a f.. same thing!

it seems like Java is more useful server-side than client-side.

?

to me, anyway :|

I really don’t know… I’ve never used java server side

eh, client-side isn’t that specific. I was referring to applets

heh
well ill give you that java is more usefull server side than in applets

well, we don’t discuss those anyhow.

since, applets are not usefull.

dev/null is more useful than applets

tell that to Jadex, Yahoo, Pogo, ect…

gah.

You may not like them, but they are popular

breakfast time. bbl
so is maralyn manson

You can’t design a product from your own feelings. You have to go with what your audience wants. If applets work better, then you should use them
If most of your audience has the Microsoft JVM, then you need to make sure your code works on that VM

clients want solutions. they don’t care what you use. applets are lame. there are better ways to accomplish the same thing

is it possible to create an object that can throw on exception when defining a variable outside of a method?

no client in his right mind will request that you use applets specifically

variabled defined outside of a method are called class members
*variables

not all clients are there from when you start. Some clients you have to grab after you make your product

some clients are insane

true

~tell AustLaw about rbi

AustLaw, rbi is http://java.sun.com/docs/books/tutorial/reallybigindex.html

indeed, they got those things online, called Books…. you want class members.

bookmark that.

and the answer’s no

and you never want your class members to be public unless they are constants.

yes, I am trying to set a static member variable, is there now to catch the exception if I try to create it when it is defined?
k

0_o

use a static initializer block

still, sometimes there is a need for interactivity (as in GUI and client-server) inside a web page, what’s the recommended replacement for applets? flash?

How many users would Jadex lose if they moved runescape to Java 6?

ajax

aditsu, jnlp

g[r]eek: dhtml is quite limited
jnlp doesn’t work inside a web page, does it?

javabot tell AustLaw about static initializer

AustLaw, static initializer is run when a class is loaded, see http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#39245 and http://www.ftponline.com/javapro/2003_04/online/tricks_pford_04_10_03/

it starts there

i just read “interactivity”, “gui”, “client-server” – ajax meets all 3

Ah yes, static initializers… so easy to abuse

g[r]eek: well, yeah, it works in many situations, but some things either can’t be done, or would end up looking like the windows 95 source code if implemented with ajax

you must be talking about a special kind of interactivity. in which case use flash :P

But really, you should try to keep your complex static variables lazly initialized

I’d look at laszlo if that is the complexity of it.

www.goproblems.com

br
b

Does anyone know of a way to get the annotations from a class without having any code execute?
Or just a certian annotation

~tell subanark about javadoc Class

subanark, please see java.lang.Class: http://java.sun.com/javase/6/docs/api/java/lang/Class.html

Yea, I know I can ask for the annotations that way. But doing so will cause all annotations on that class to load

looking at something without looking at something?
“can i tell wether there is an “a” in a text file without reading that text file?”

rading is fine… I just don’t want any code to execute

annotations are code?

I think annotations are not supposed to execute code
(but they can probably be made to do that)

annotations can contains enums

static blocks will executed when loading a class, hm.

Enums are just like classes
classes can have static blocks

you’ll have to write your own .class file parser, etc. perhaps.
that is…do .class files contain bytecodes related to annotations?

well thats what things like bcel are for
sure they do
well not bytecode
But the annotation is described in a compact way in the .class file

I don’t see a tutorial on the site for actually setting up a java programming enviornment, like what java software to download, etc etc, is there one?

goto http://java.sun.com

~tell sprink about getting started

sprink, getstarted is http://java.sun.com/tutorial/getStarted

~tell sprink about first cup

http://java.sun.com/docs/books/tutorial/getStarted/cupojava/

also see getting started section at http://javafaq.mine.nu/

okay, ty

Thank you. – English, we endorse it.

okay no problem, sorry. I was in a hurry to get started

Have fun!

good luck!
w/win2

thanks. What is w/win2?

boolean winwin = r0bby.getConsole()

yes, computers are amazing!
welcome to the club of owning a pc!

it’s a cell phone, but yes, I guess it is a computer

it’s a command to switch windows, but i mistyped it
(I’m using irssi)

oh. you know you can use alt+1-9 for switching windows?

not when you have 100+ windows.

hmm, I can’t imagine anyone needing that many irc channels. heh :P

for that problem, i’ve made aliases.

understood

let’s put this way: i lurk in a crapload of channels

happy wednesday folks

whats so happy about it?

half way through the week?
ouch, the minimum requirements for neatbeads IDE is pretty harsh
netbeans*

yeah, you can’t really run it on your phon
e

heh, it barely runs on my laptop :P

get a better laptop
trade your phone… and soul.. for it

if I trade my phone for one, I’ll have nothing to keep me interested in java

how’
you _MAY_ get a job

I have a job :P

mprentice!
Shitz0r… I’m running out of time

disabling a time bomb?

back to school on com. cent.

Nah. Ordering some new business cards and T-shirts for a conference I’m speaking at in September.
Heh.
The fans just kicked in.
iMovie + Keynote ‘08 + Photoshop + all the usual shit, including Java 5, Mule, and a shitload of other stuff.
Core2Duo++

hmm is there a way to save a “view” in eclipse? like now ive worked with a project which isnt done but i have some other stuff to do and i want to save the open sourcefiles etc
not the actual files, i just want eclipse to remember what was open :P

minimize++

can you have more than 1 instance of it running at a time?

yes, but you can’t use the same workspace

When I do Process p = Runtime.getRuntime().exec(…) when I try to wrap a argument with a double quotes, or single quotes, why does it not work?

~doesn’t work

krustofski, doesn’t work is useless. Tell us what it is, what you want it to do, and what it is doing. Consider putting some code and any errors on a pastebin. (use ~pastebin for suggestions)

Process p = Runtime.getRuntime().exec(“/usr/local/bin/php -q /opt/red5/mediainfo.php ” + typee + ” \”" + filename + “\”");
And of cource the other lines which are really not needed…
When I don’t wrap my filename is quotes it works fine
But when I do I get nothing
Ah… each argument has to be broken up into an String array…

~karma Luke_S

luke_s has no karma, r0bby

nevermind

He, he, he… I just thought of a great interview question…

what is it?

People, I need help setting up an axis web-service over SSL, please
I have this custom-generated certificate on the server side, and my client java application is throwing an exception while connecting to it. Please somebody help me to make the client understand the hand-made certifiate

what have i got in my pocketses?

string or nothing!

Excelsior!

probably

How would you merge String[] one = {“one”, “two”, “three”} and String[] two = {“four”, “five”, “six”} so you end up with String[] one = {“one”, “two”, “three”, “four”, “five”, “six”} ??
I’m thinking that once I declare one it’s of a fixed size like many other languages and I can’t simply do something like one[] = “four”, … etc…

what, you want to merge after creation of the two seperate arrays?

woah, i just noticed that varargs can be given manual enumerations (1,2,3), arrays (new int[] {1,2,3}) and collections (Arrays.asList(new int[] {1,2,3}))
ah, no it can’t

with JavaScript, that’d be one = one.concat(two);

i don’t really see the point in doing what you’re suggesting on runtime
however you could try making a new array

I don’t know how many elements I need

this might help, maybe, sort of: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#arraycopy(java.lang.Object,%20int,%20java.lang.Object,%20int,%20int)

I just read I’m better off using an ArrayList (List) and then using toArray()

Luke_S, one.length + two.lenght :P

well, if you’re not sure on teh length, then yeah, you’re far better off using a collection

definitely… collection is better for that sort of flexibility

~tell Luke_S about Arrays.asList(*)

Luke_S, I have no idea what Arrays.asList(*) is.

Problem is I don’t have two arrays, I need to add any number of elements. ArrayList will work. It’s late, can’t believe I didn’t think of it.

ok..

wait, i’m a bit confused Luke_S =X
first you were asking about merging two arrays; now you’re saying you don’t have two arrays ;p

I was trying to give a basic example

.

Which didn’t work :P
Ok…. the addAll command of ArrayList wants a Collection… how do I get my Array into that format ?

hmm

~javadoc Arrays

r0bby, please see java.util.Arrays: http://java.sun.com/javase/6/docs/api/java/util/Arrays.html

lemme get the docs up ;p

http://java.sun.com/javase/6/docs/api/java/util/Arrays.html#asList(T…)

is Collection another word for Array?

no.
~collection api

I guess the factoid ‘be api barbie’ might be appropriate:
Javadoc is *hard*!

~collection

r0bby, collection is http://www.darksleep.com/notablog/format.cgi?article=Java_Collections_Tutorial.foo

http://java.sun.com/docs/books/tutorial/collections/index.html
you can pass that an array of elements and returns a List, which is a collection.

oh so it will take a List as a Collection?

do you know about interfaces etc?

I a vague understanding

List is an interface which extends the Collections interface

ok

*have a

every class extends Object, right?

Yeah
I know what extends means

therefore, any Type can be added to an array of Objects

“interface” I’m not quite sure

well, implements /using interfaces is the same thing
so if something implements an interface, then it is said to be an implementation of said interface

it means different thing in interfaces, since interfaces have no implementation, you extend interfaces, rather than implement.
tell Luke_S about interfaces

Luke_S, interfaces is http://java.sun.com/docs/books/tutorial/java/concepts/interface.html

which means you can cast the implementation as the interface
;p excuse the possibly poor wording

myList = new ArrayListString(); // this is valid, because ArrayList is an implementation of List.

Oh
I see

an interface is a contract, which in order to implement it, you MUST write implementions of its methods.

hmm

So this should work fine:
ffmpeg_command.addAll(Arrays.asList(“/usr/local/bin/ffmpeg”, “-i”, inFile, “-f flv”, “-ar 22050″, “-ab 32″, “-qscale 3.5″));

try it.

Knowing that ffmpeg is declared as String[]

ugh

errr
ffmpeg_command

i’m just trying to remember if you need to cast an object as the interface/superclass before adding it to a collection of said superclass/interface

I mean ArrayList
I’m tired..
well I could see if it compiles..

you will need to import java.util.Arrays

hi

Bevin:

yeah figured that out once I got the error and realized the difference between “Array” and “Arrays”

*yawn*

home finally?

nah, I’ve been home for a while.
http://www.ride-engineering.com/products.php?d=1&p=e&pn=KA-LPH00-BA
Me wants
I wonder if that works on the 2007 model.

i am trying to set a mapped property using BeanUtils, but the key contains parenthesis, so BeanUtils.setProperty(bean, “property(key_with_()_parens)”, value) fails miserably. any ideas?

wowsa flash h264 support looks amazing

i can’t find anything on the commons-beanutils site that explains how to escape, or whether it’s possible…

joedj?
man.

more specifically, i’m using BeanUtils.populate(myBean, pageContext.getRequest().getParameterMap())

Somehow they need to bring Flash and Java together, and make flash not suck.
Like, make flash run as an applet, and make applets not suck balls.
…wait…that’s a bad idea.

~smack svm_invictvs

Hi! I’m trying to put one of my packages (javaI.media) into a jar file. When I did it I ended up with a jar file containing the dirs javaI/media/ (containg *.class). Then I try to start a class that uses this package with “java -classpath /home/sebdah Test” but I end up with a
java.lang.NoClassDefFoundError. What might be wrong?

you need to use the fully qualified name of the class with the main method
so is the starting class in the javaI.media package?
if it is, try java -cp /home/sebdah javaI.media.Test
oh
and -cp /home/sebdah/jarfile.jar for the classpath actually =X

Test is not part of the class, it just uses the class

what’s the name of the class file with the main method?

In the package none has a main method. The Test class has

so the Test class isn’t inside a package?
=[\
=\*

no it's outside
/home/sebdah has Test.class and javaI.media.jar

import javaI.media.*;

ahhh, lol, ok
haha

Am I totally lost?

um, i'm kinda new to java 2d and i need some help

not totally just mostly

java -cp /home/sebdah/javaI.media.jar; Test

Lothy`: :O

hehe ok

i normally autojoin

jar != package

i think he's talking about a jar file that he wants to use vinse =\
strange name for a jar archive though ;p

I should have the package inside the jar file, according to my teacher. And the file should be named as above
and I should also have the Test class outside the jar file

Lothy`: do you have any experience with java 2d?

nope

Arrays.toArray(...) is incompatible with String[], which is what exec wants…

i wish lawl were still here

well the jar’s filename is javaI.media.jar isn’t it sebdah?

he would have an awnser

ah i see: -cp foo/bar doesnt work if the jar fiel is in foo/bar, you have to do -cp foo/bar/jarfilename.jar

lawl is a moron most of the time

Lothy`: but his pokeclient does what i want to do

~javadoc Arrays

Lothy`, please see java.util.Arrays: http://java.sun.com/javase/6/docs/api/java/util/Arrays.html

hmm

Lothy`: yes it is

http://www.legecon.com/poke/index.php?page=play
he dosent have a JTextField next to the username and password fields

what i provided should work then

does anyone know how he did that?

Exception in thread “main” java.lang.NoClassDefFoundError: Test

there’s no toArray method in the Arrays class ;p
and Arrays subclasses Object, so there’s no superclass with that method either
so i’m not sure what you’re saying. =\

I’ve got the files that my teacher has written, but I can’t start them either. Probably I’m doing something wrong when starting them. Wanna download her files and give it a try?

Lothy`: There is a “toArray” method in the Arrays class, I think you’re thinking of the “Array” class not the “Arrays” class. The problem is “toArray” is providing me with an Object[] and I need a String[]

http://www.tjuvlyssnat.se/tmp/MediaTest.class and http://www.tjuvlyssnat.se/tmp/javaI.media.jar

~javadoc Arrays

Lothy`, please see java.util.Arrays: http://java.sun.com/javase/6/docs/api/java/util/Arrays.html

I’ve looked at that documentation, and I still don’t see a solution to the problem
The only function that’s there that I can see is toString, or the like, that converts it into a String, making it comma delimited. It needs to be String[].
And the fill and copy commands don’t seem to return String[] at all

What are you trying to do?

~tell Luke_S about ArrayList.toArray(*)

Luke_S, I have no idea what ArrayList.toArray(*) is.

~tell Luke_S about java.util.ArrayList.toArray(*)

Luke_S, I have no idea what java.util.ArrayList.toArray(*) is.


anyways, see ArrayList.toArray

wait

~tell r0bby about javadoc List.toArray(*)

r0bby, please see java.util.List.toArray(): http://java.sun.com/javase/6/docs/api/java/util/List.html#toArray()
r0bby, please see java.util.List.toArray(java.lang.Object[]): http://java.sun.com/javase/6/docs/api/java/util/List.html#toArray(java.lang.Object[])

hmm, did you mean that toArray was in ArrayList Luke_S ;p because it’s certainly not in java.util.Arrays

that used to work..

first of all, you forgot “javadoc”

eeeek i didn’t even see that
thanks

wow
The solution is System.arraycopy

…didn’t we tell you that like an HOUR ago.

finnally found a topic on Google after using the right key words
with a regular array, yes

heh, what was your problem anyway?

You know what… I’m making a function…

we’re not sure, he was giving us half the information, never the _WHOLE_ problem

When I used .toArray it was giving me Object[] and I need String[]

cast it.

casts don’t work well on arrays

hmm
yeah, it’s very hard to offer help when what you’re telling us often contradicts the next thing you say =\
like the original example, saying you had two arrays, and then saying you didn’t have two arrays -

Well it’s partly true
There are instances where I need to add more than 1 element at one time to a single array

list.addAll?
hmmz.. hard to follow you tbh

Would be crazy to do mylist.add(“…”) mylist.add(“…”) mylist.add(“…”) when {“…”, “…”, “…”} is easier :P
I did that, but like I said when I used toArray it gave me an Object[]
The exec command requires String[]
I’m just going to use a normal array and create an append function :P

(String[])toArray(new String[]{});
?
oh well..

Might be cleaner anyway…

That is too much. toArray(new String[]{}) should already be fine

I am new to ActiveMQ and trying tu run example. AMQ server run with no errors. but when i am trying to launch sample-app under tomcat i get: java.net.BindException: Failed to bind to server socket tcp://localhost:61616 due to: java.net.BindException: Address
already in use: JVM_Bind

hm. me personally likes the semantics of new String[0] better. no difference, though

oh, i should not explicitly start activeMQ.. that’s the reason

Is there a lolcode to java compiler?
LCEE
LOLCODE Enterprise Edition
That’d be cool, to code an enterprise application entirely in lolcode and run it on a VM.

for certain definitions of “cool”
Or “funny”

hey

Might not be the boss’ definition of “cool” :P

i’m trying to write a Makefile. when i compile, gcj is giving “multiple definition of..” and then all sorts of symbols. any ideas?

am i right if i say Apache Ode is the open source BPEL engine more used/extended today?

nvm i found it

~tell wonderwal about gcj

wonderwal, gcj is not Java; don’t be surprised if we refuse to help you. You can find information about gcj at http://gcc.gnu.org/java/ or see #gcj on irc.oftc.net

if you want a build system: see ant or maven

ok

if i put sashlik.war in TOMCAT_HOME/webapps and run tomcat, it will be available at http://localhost:8080/sashlik? (all settings are default). Can’t reach app in browser..

http://lolcode.com/implementations/java-sdk

bleh.
Kitties are for chinese food, not for jokes

There’s a cat taht’s always hanging around my apartment.
And I think somebody abandoned it, because it has no collar or anything.
And I never see anybody put it out or take it in…
I wonder if I shoudl put some food out for it.

call animal control

why?

so it can go live in a cage and get food

or I could adopt it…

i think its better off away from you

adopt it

why?

svm_invictvs, because.

Be nice to the kitty. Cats are important.

meow

(It will count in your favour when they later conquer the world)

animal control will either kill it right away, or keep it for a while and kill it if nobody wants it

heh

the cat has clearly decided to adopt you

really depends on where

heh
heh, I wonder.
My neighbor moved out, and I’m almost wondering if he just left the cat be.

well go feed it.

teach it to code
and outsource some work

sell it to local chinese restaurant.

http://www.no-clutter.com/gallery/albums/cats5/921-1163919784-1162679538434_b.jpg

svm_invictvs, http://www.sheerboredom.net/modules.php?name=News&file=article&sid=25

that is _WRONG_

DRMacIver, lol

svm_invictvs, !!!

hi all!

greetings earthling.

I’ve a question about java-persistence api

~ask

The Ask To Ask protocol wastes more bandwidth than any version of the Ask protocol, so just ask your question.

hi all

In mine database (postgresql) for the primary key column I’ve added the default value – that is the nextval from the sequence. when I create the entity in java – would be that value read into mine entity class (or it will be setted-up with null value)

Technically he didn’t ask to ask a question.

technically, he followed the same principle, but you’re right

well… maybe there is an answer for mine question? or here will be only answers about how I questioned ?

I had a guy who’d I’d always say, “Hey, I have a question”
If I could help you, I would. but I’m not familiar with JPA. SOrry
he’d reply to me with, “You just asked a question.”
he was an idiot.

thanks

svm_invictvs, you’re right

if I need to build a binding for a C library, such as xine, how can I use, somethings like JNI?

Buenas noches, amigos.

Yes.

Nos vemos mañana.
Z z .

svm_invictvs, thanks

g’night
Check out swig.

the primary key value will be loadaed into the java entity

thanks for calling me on that, :*

svm_invictvs, have you ever use it?

no, honestly. But i’ve wanted to give it a try for some time.

I can’t remember if ihappens when you persist the entity or when you flush the session. I think JPA does it when you flush and Hibernate native does it when you persist

so I create with no values mine entity – and the value will be read?

yes.

cool

and it’s “my entity”, “my database”, etc. Just to be helpful.

uhm maybe it’s better than use only jni

There’s quite a bit of boilerplate code you’ve gotta write in both C++ and Java to make bindings between java and C/C++…

at what moment of time the KPA fulshes the session?
sorry JPA

using jni or swig?

when you tell it to!

swig helps you by basically writing setting up the boilerplate for JNI and providing you stubs. If I recall correctly.

hello. Does anybody know of a comparison between Struts and Faces?

svm_invictvs, great! thanks

http://www.swig.org/exec.html

some people use a servlet filter which flushes sessions and commits transactions (unless there was an exception)
but that completely depends on the design of your application

thanks

Oh, I guess it does a little more than generate stubs.

have a good night/day whatever it is by you, I shouldn’t have jumped on you like i did.

so I should always make a manual flash?

JPA doesn’t flush for you except, I think, when you commi the transaction

Well, good luck.

I’m going to read all the docs now

zap-clone: you don’t want to look at e.g. wicket as well?
zap-clone: it’s well brilliant

I had to investigate ways of interfacing two Java dn C++ at work, and I foudn SWIG…then the idea of using it was shot down so I never got to use it.

hmm, actually I never used any of them and am open for everything (I used Velocity in a project a while ago though, but thats more low level)

g’night all!

Hm. How does one reflectively instantiate an inner class?

I’ve a record with some foreign key field (many to one). So to get populated a list of records with one key field value I should populate them from the referenced entity? or by creating named query like SELECT s FROM mytalbe s WHERE foreign_key_field = :foreignTableEntity ?

Ah, it just gets an implicit parameter in the constructor.
(It’s really cute how transparently fake the inner class abstraction is. )
(It’s really cute how transparently fake the inner class abstraction is. )

is there a way for an application to request a JFrame’s components be redrawn?

we need real closures, damn it

i have a bit of a problem. i have some java classes which i’ve compiled using the JDK 6. the point is, of course, to have them able to run cross-platform. the platforms i need to run them on are basically Windows, Linux, and Mac. they also have some JNI code with them. the problem is, JRE 6
is not available for Mac, only JRE 1.5 . I don’t think my code has any real dependency on any new features of JRE 6, so I’m wonder

ing how if I can “back-compile” the code so that when run under JRE 1.5 it doesnt give an error simply because the .class files have a newer version number on them

Agreed.

NoorulIslaam, you can always use jdk 1.5 instead

the sheer refactoring effort of Ui code once we get that function should keep us occupied for six months

man_in_ltop, i don’t want to install two JDKs just because Apple f’ed up in releasing java 6 for mac

NoorulIslaam, apple don’t release java

they do, for the mac

no, sun produce java

not for the mac

NoorulIslaam, why not ONLY use jdk 1.5, since you’re not using any features of jdk 6?

You mean in 2014 when we finally migrate to Java 7?

s/2014/early 2008

see -target option of javac

“Java 7 is released” is a different date from “People start using Java 7″

sun only makes JREs and JDKs for windows, linux, and solaris
tazle ok

or you can compile with JDK 1.5 to ensure that you don’t use any 1.6-only APIs

tazle is there a list of new APIs that were introduced in java 6

Which is surprisingly easy to do. Some of the utility classes like Arrays snuck in a bunch of useful features in java 6.

the javadocs usually mention when a method was introduced, if it’s recent (1.5 and 1.6 at least, perhaps 1.4)

yeah hmm

Somewhere around there, yeah
Although I must say, the speed of adopting new JREs has picked up a bit here..
we are all the way up to 1.5..

most of the userful classes snuck in in java5 as part of operation iraqi freedom

tazle so specifying javac -source 1.5 -target 1.5 *.java should then compile it for JRE 1.5 ?

yes, but you can still accidentally use new APIs

tazle right. i guess i’ll have to go through the code to make sure i didnt use any

I recommend you compile with an older JDK and just test the code with both JRE5 and JRE6

thanks for your help

Yeah, we’re using 1.5 as well really. I don’t imagine there will be any huge obstacle to us migrating to 1.6 at some point though, there are just higher priorities at the minute.

oh and, another small question, undoubtedly, the upgrade from JRE 1.5 to 6 introduced security updates to the VM itself, along with the new APIs

(Well, the one I’m working on is a clientside app, so probably won’t upgrade to 1.6 for a while)

Yeah, I can’t say I’ve had any overwhelming need to move to 1.6 either..

so having the code running on a 1.5 VM would have some security holes too eh?

wlfshmn, … but but… top level dran n drop in swing!!!!

just use 1.6
targeting 1.5 at this point doesn’t make much sense

It would be nice. Some shiny features, the improvement to APT is pleasant, I’d like a chance to play with the tools API some more. A few of the API enhancements are handy. But it’s not a big deal.

1.6 is an enormous improvement. the speed up in the jre is really significant though there have only been minor api improvements.

If I’m made to do swing-work, the choice of JDK is the least of my (and the project owners) problems ,)

meeper unfortunately 1.6 is not available for mac

oh, you should use a real OS

meeper oh i do
but some of the customers use Mac

wlfshmn, whats the top of your problems?

but Mac OS is a “real” OS still :P just lacking in java :/

my utter unfamiliarity with swing and my dislike for UIs

On an amusing note, the clientside app I’m writing at the moment is licensed to run on windows only. It has two developers – one on a mac, one on linux.

hah

sounds like a really convinient setup

I hav ea ton to learn before I should be used to create anything user-facing, really.. assuming a non-techie end-user

since nobody will be able to debug the problems!

i’m sure they have a spare windows me boxing laying around somewhere

Specifically on windows XP only. I think the restriction is more so we don’t have to deal with a) Shitty old versions of windows and b) Vista than so that we don’t have to deal with non-windows.
We will, of course, test it on windows. :-p

sounds like its going to be a brief test :P

Unlikely. We’re pretty good at testing.

are there any major issues out with 6 on vista?

6 runs fine on vista. only problem I’ve found is a problem with microsoft mice

now how ironic is that

our app is deployed on linux and solaris, developers are on linux, windows and OS/X
but we send a deployment team to each customer, so that’s a bit different…

they sit in the server room until the product goes out of production use ?

no, we have support teams for that…
in theory, anyway
if they weren’t all a bunch of… anyway…

ahh, so you dont actually deploy the people..

no. although some of them should perhaps be deployed to Afghanistan

what would they do over there?

minefields need clearing

http://www.comics.com/comics/dilbert/archive/images/dilbert2003055370822.gif

Comments off

Im trying to use ndiswrapper with a linksys card in slax Ive gotten it to work once maybe not this download of

hey, I am trying to make an .iso file from my /home/tmp dir. when I dd if=/home/tmp of=/home/tmp/dvd.iso I get an error /home/tmp is a directory … Why doesnt it work ?
do I need to unmount it ?\
got it. used mkisofs. But why didn’t the dd work ?

why do you think dd should do something like that?

I dded my /dev/dvd fine
does it have to be unmounted ?

are you aware of the difference between a device node and a directory?

Mendez, dd in this fashion can be used to write from a file to a device or vice versa, not to a mount point

so dd is for device nodes, got it

no, dd is for moving continuous data from one place to another.

does anyone know an online scan site to scan an IP i specified ?

I am trying to remember a video game from my childhood… in it, you were a warrior that picked up varying degrees of more powerful chain weapons. You would sling your chain weapon out with an axe or blade on the end and kill stuff. It looked similar to Golden Axe. What was it called?
BLACK TIGER!!!!

hi all, i ve installed dictconv, now i d like remove it. it was not in reository so i downloaded from website and just installed (/configure…make all install). now i d like knowing how remove it (ubuntu 6.06, acer laptop)

make uninstall usually works

i ve already try…
it looks it doesn t work
but maybe i ve to write that code in the right directory
ok, maybe it worked
i ve redownload the software
and i ve retyped ./config
then sudo make uninstall
is the correct way?
tnx

is anyone using ipw2100 here?

hey awol you around

/sbin/udevd –daemon”" so I tried to reinstall it but it’s not letting me past the Packages Selection menu

have you tried running a memory test on that machine? (I reccomend memtest86)

would the memory test that comes on the Xubuntu live CD do?

Anathem4, yes

ah, that is memtest 86 \o/

finestkind

is it supposed to loop round when it gets to 100%?

Anathem4, i suppose it can run for hours and even days, but the longer it takes the more sure you are things look fine, memory problems are sometimes very odd and with specific sequence , i never figured out how long it can be run to say “ah! this mem is ok”

well, I don’t think my memory has a problem, I got my laptop back from repair only last week
(the mobo had died)
deleting and resizing the partitions let me start installing again \o/

can someone please give me a hand with lm_sensors
i cant get it to work, and its in my package manager
Can’t access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and libsensors

Why does root own /var/www/* (in Fedora) How am I supposed to edit files there? Can’t I just chown -R apache:apache /var/www/* and add myself to the apache group?

if the apache user/group can write those files, then any visitor who somehow gets past apache has carte blance to your public dir
because web visitors visit as user ‘apache’

ack……well then root shall retain control and I’ll just have to edit locally and keep sudo cp to test.

meaning you should do your development somewhere that isn’t accessible by the public, then put those files in production when they work (owned by root, of course)
or set up an apache dir that only localhost can access. options are endless

I like the localhost idea the best.

look atbout right?

looks right but I don’t have apache directives memorized :/
deny all first

Thanks for the info and help

you bet!

I’m trying to use ndiswrapper with a linksys card in slax. I’ve gotten it to work once, maybe not this download of slax, but now can’t seem to get it to work again. Basically I can’t modprobe ndiswrapper now, line 706 error. Anybody have any suggestions short of downloading and reinstalling the OS again?
is anyone familiar with slax?

hello
I’ve just installed the nvidia-glx package, and now opengl doesn’t work at all
I’m running Kubuntu on a Dell Inspiron 8200 laptop with a GeForce 2 Go video card
and my xorg.conf is suitably edited, and it shows the nvidia splash screen when X starts
but all my opengl screensavers just show a blank screen, instead of working poorly
can anybody help me with this?

hey is there a way to to change a tar.gz to a rpm

Hello..

how i can repair one deleted file im my system?

possibly using a disk editor – depending on the file system

hi all

did anybody ever answer my question? it disconnected me without letting me know

guys ,, I have a DB question
I wonder how much my db will be if I store 1 million name in it. Name size is no more than 25 letters?
how is this estimated ?

acceleration is enabled ok otherwise ?

is the nvidia kernel module loaded?
try lsmod | grep nvidia as root

what was the question?

I’ve got some specific questions regarding X and keyboard/mouse binding. This the best channel, or can someone recommend another channel?

What’s the question?

doesn’t seem to be reacting (in particular in Compiz or Beryl) anymore (it was a few days ago) AND my Logitech Trackman Optical doesn’t function so all the buttons are independant. I have no idea what to do about the first issue, I have read and followed many how-to’s for the 2nd with no luck.

Btw, wasn’t trying to do the newbie: “Can anyone help” thing. Just wanted to go to the best hosting channel possible.

Are you using KDE?
Or Gnome?
…. Or what?

KDE, Fedora 7
For example, I have SuperN bound to zoom, but when I hit it now (with XChat having focus), I just get the n as if I wasn’t holding Super

Oh sorry

?

I wasn’t paying attention.. one second.
I had to do somethign special in KDE to get super working
OH yeah.. it does have to do with X
but kde control center will do it for you
Open kcontrol
go to regional & accessibility… keyboard layout… Xkb Options
About 80% down it says “alt/win key behavior” chose “super is mapped to win”
setxkbmap -option altwin:super_win
Or just do that ^.^

yay!
Thank you

No problem
I was going to try the new version of fedora but it broke my windows install by saying that the first partition was the second partition… when I was setting up the linux partitioning

Can you work a miracle with my TrackBall now? (Cordless Optical TrackMan)

Dunno what that is.

I gave up on dual-boot and use VMware Server now

Meh
Windows for Photoshop and games.

Can’t use wine/Cedega?

Photoshop works ok under wine… there are bugs
Cedega only really works with nvidia and I have an ati card
Stupid non-open-source ati drivers.

hi there, has anyone ever tried to restrip a raid5 array?

hey all…I have windows, ubuntu, and slackware installed on the box im currently using; ubuntu and windows currently are showing up in grub. What i don’t know how to do is add Slackware, which is on hda4, to the boot list

choose one linux distro, and add your other distro to it’s grug list

what
please elaborate

“grub list”?

the grub boot loader

the list of boot options in grub
i don’t know how to add another OS to it

he means choose one distro’s menu.1st file and always use/edit that to change your boot options
i’m going to assume you’re using the ubuntu grub… boot to it and edit /boot/grub/menu.1st file

yes
ok
so should i just like copy one of the lines and change the drive to hda4

add another stanza pointing to the correct boot partition hda4 == (hd0,3)
you’ll probably need to know the precise spelling of your slack kernel file name as well

sorry, im totally new to grub, and linux, so i don’t know what (hd0,3) is

grub numbers things a little differently than /dev/hda4

ok

hd0 is the first hard disk and the 3 means the 4th partition

ok
thank you

type info grub for all the details

then do i have to do ‘grub-install

no!

ok

no need to redo grub-install

ok
good, cause id have no idea what id be doing there, haha

hey, its me again…does anyone know where the kernel is and its name for Slackware 12

/boot/something there
look in your grub config for the filename

im trying to add it to grub
so it wouldn’t be in grub config, would it?

no, but still
the old is there, use it as an example
also, good luck… as if you ask those question I worry about your linux knowledge to do that job (no offence there)

ls -al / will show the symlink of /vmlinuz to the actual kernel… but ya could just use /vmlinuz in most cases

ahha, yea, i know
i realize that my questions are probably stupid, but i am learning

you learn the hard way?

what do you mean by that?

you should have googled for some kernel guide… it would have told you everything

be very careful when upgrading the slack install that any kernel upgrades dont rerun lilo|grub to wipe out the ubuntu’s grub menu

i personally think that im learning pretty fast
for having no one to personally help me

running a triple boot system is not for the average newbie

but i wouldn’t know where to look in a kernel guide
hahaha
but its what i want, plus, ill learn

kernel install howto or something like that

and ive gotten this far totally on my own
ok
its just that all this info at once is overwhelming, so its kinda hard to find what i need
so im asking at IRC, i figured that would be easier

a general linux help “rule” ask google, then if really you don’t know ask on irc

ok
sorry, and thanks

it’s ok to ask

wait…couldn’t I mount that drive and look for the kernel
dun
duh*
casper, what will happen if I enter the new info incorrectly? will grub work at all?

depend at what level you mess up
keep the old entry there
just add the new one
and it should be fine

ok, because on the line /boot/vmlinuz-2.6.20-16-generic root=UUID=1d64ffb8-b2eb-4998-bbe2-c0f83991df66 ro quiet splash
for ubuntu, i don’t know what any of that is after the kernel
root=
should i keep that the same, or should I not have it at all

ew… uuid… yucky…

do I need that copied over? do I need a new uuid for slack
or do I just take it out

you need to specify the other root id, or device..
but… slack is old and ugly…

what are you saying?
im reading on linux forums, and it says nothing about a root id
from what they say it should be kernel /boot/vmlinuz-generic-2.6.21.5 root=/dev/hda4 resume=/dev/hda3

adapt the root…
hi there, has anyone reconfigured a software raid array? is it known to break? or it’s relativelly safe?

“reconfigured?”

yeah, I need to change the chunk size

I’m not sure if you can
Though if you have some docs which contradict my statement, then obviously I could be wrong
check “man mdadm” under “GROW MODE,” I think there’s only a few things you can change

I know it’s doable

Okay, so just ignore me then
I’ve clearly never done it.

but… the problem is that I don’t really have the space to move my data out of it
so I’m thinking to reconfig it with data on it

how do i print the time/date in epoc format on bash

date +%s

thanks grepper i was trying date -s=%s

np

when i do a vmstat i always get the same values for cpu usage it dosent change but if i do a vmstat 1 then they change

then how do you know they changed?

hi
anyone with experience with openbox here?

hey is awol around
hey i was wondering is any one has expirence with ndiswrapper or any other knowledge with dlink dwl 122 ver A2 and how to get it to start working

i’m not very round at all… too skinny in fact…

lol any ways how do i get into that program that i can enable and active netmanger and such

nearly everything in ubuntu is controlled via the menus
look in the admin menus

i am in fedora

oh right… duh
well ya should specifically state each time you ask a question…. all relevant details
i cant remember everybody i help
but same deal…. have a look for admin tools in yer menus

ok run down was that i am the dwl g122 a2 dlink dongle user that couldnt get it to work …..FC6 ….and i have another one ( dongle that is tew 444ub ) but the ndisgtk program crashs before it starts so i cant load it ther

dang
try the fedora forums
i got real lazy and switched to ubuntu… less headaches

garrr

anyone know how to convert mkv to avi?

Comments off

Im trying to use mvprintw and Im having trouble refering to the window I am using primarily stdscr but I am using

blocks doesn’t support c++ by default either
ridiculous

hi
I need a cigarette first though.
I suppose popavic has gone.

draichis_, so, how’s your sister?

Grow up

Hi everyone

hi

I asked this earlier, but I am still a little confused about how software code is designed

read a book

The question I am wondering about is how professionals create lots of code so fast

RTFM!!!
LOL jk
bioeng, most professionals work in teams to develop software, and therefore productivity is a lot higher. 2 coders can work a lot faster than 1

Hmmmmm
That is why the engineering college I used to attend focuses on teamwork?

Could be

With a lot of programming experience; it would seem relatively easy to write large coding projects.
Why is this important?

When I was attending school, the other students seemed to have an advantage over me

draichis_, at the same time, you don’t expect microsoft to only have one coder working on the windows kernel (in spite of the fact that the stability of the windows kernel would indicate otherwise)

Yes, so?

Hmmmmm
Nowadays, I’m wondering how they, as professionals now, can perform their job efficiently

Why does this matter?

draichis_, perhaps he looked at a million line source code file and got intimidated
udraichis_, perhaps he looked at a million line source code file and got intimidated/u

I am wanting to return to school soon
and I want to do better this time

the best way to get good at something is to practice

What stopped you before?

I did not have certain personal website host qualities expected of an engineer when I was going to school

So, this is our problem?

No

!books bioeng

books is http://www.iso-9899.info/wiki/Books

I’m just wondering how algorithms are derived
That’s what I’m asking

check out the art of computer programming volumes 1-3 by knuth

Is this a question for a mathematician?

I still see no relevance in your question.

bioeng, have you ever taken descrete math?

Yes

Yes, knuth wrote some good books

well, descrete math has a lot to do with computer algorythms

His work is pretty legendary.

I thought about this topic because I do much better with hardware than I do with software

bioeng do you know any assembly languages

They touched on assembly while I was in school

bioeng, emerse yourself in a specific Archetecture, learning assembly language can help “bridege the gap” between hardware and software

Ah thank you

if you know what the compiler is generating, you can better understand how to write faster algorythms

I recommend the write great code series as well

I did also do some research in the field of software engineering
They talked about a topic I believe they called “black-box design”

bioeng, just so you know, I am only just out of highschool due to start college in a week, but I already know a lot about this stuff because I read books like there is no tomorrow and I practice what I learn from those books

And from what I understand, every function has a prototype that gives the inputs to the function and what it returns?

technically, you don’t need to declare function prototypes, but it is generally recomended
you can write your code in such a way where you write your functions and have all the code that uses the functions bellow the function definition
you would have your main function as the last function in the source code

And the main function just calls the supporting functions and is responsible for accomplishing the main objective of the program?
These objectives are then specified by what software engineers call requirements analysis?
I guess I’ll take both of those answers as yes

Drugs are bad for you

m’kay
now you lost your shape
tsk tsk…
m’kay, Mr. Mackee

im looking for some advice in debugging a app of mine that uses a convenience lib i also wrote. i cant output to the console, i have to fprintf to a file. im not sure how i can have the lib (optionaly) print out info
or how the app and lib could share the FILE
better way to go about this?

You would pass the FILE* to the library or have the library use a specific FILE* like stdout and have the main app redirect (freopen, etc) stdout.
or stderr.

Xgc how can i pass anything to the lib? mean make a new arg for the functions?
wouldnt make debugging output optional then

You could have a helper function that passes the FILE* and the lib could check for non-NULL before using it.

hmmm

Whether the helper stored a non-NULL FILE* would make it optional.
The lib could store it in a static storage area.

ooo, never though about it like that
that should do the trick
thanks

void hold_set_debug_fileptr(FILE* fptr) { local_fptr = fptr; } …
You’re welcome.

good evening

hiya there

mornin’
or good evening..

morning for the UK
sup?

hi scott_w
I can’t even sit down and read the news anymore.

I still couldn’t find how select() can be used without blocking

I’m going to go to bed; my eyes have begun to hurt.
Night all

um, use the timeout parameter appropriately?

if I have a parser that sits behind multiple sockets, wouldn’t the parser blocks each time it processes one socket that i ready for reading ?
*… is ready …
If I make my recv read a little at one time, it wouldnt make any difference from using a thread. So how is multiplexing faster than threads ?

Comments off

Im trying to migrate – to LVM on Raid where it was just on Raid before -dev-md2 where now its -dev-VG_foo-LV_foo

nuxil, try and see if its enabled in the bios or if you can change its irq settings

i need help getting my com port working!! can anyone help me out?

anyone knows a tool that helps me debug or work with dhcp? the thing is, dhcp used to work, but now it kinda cant detect a DHCPOFFER. entering my internet info in a static works though…

dhcp shouldn’t detect dhcpoffers

dhclient then

use wireshark to capture the packets coming into your system and look them over
packet capture is the best tool
also do you have different subnets on your network? if so ensure your dhcpd is setup to answer on them

hmm
will have a look thanks

also ensure that dhcpd is running

what is the bottom bar called exactly im having trouble searching for a solution to a problem im having with my bottom bar under Gnome
I cant see any of the stuff i add to the panel such as Window Switcher but if i connect with VNC i can see it all

can commands in crontab contain spances?

yes, make sure that you use quotes when needed

hi people
i need to set the DISPLAY variable but I dont know how

what type of quotes?

bash tutorials http://linuxcommand.org/writing_shell_scripts.php and and advanced tutorial is at http://tldp.org/LDP/abs/html/

ok i got another question
i need to start an exec from tcsh
by using “sudo ./setup” in tcsh
i started tsch from a terminal as a user
Can’t open display:”
so I don’t really know what to do
can u help me with this?
I’ve been told that the DISPLAY environment variable needs to be exported
but I don’t know where, and what value shoud be assigned to that variable

Hi
The Fn keys aren’t responding on my USB keyboard, but xev shows that they’re generating the correct X events. How can I get Gnome to act on them?
When I try to use gnome-keybinding-properties, F1 appears as 0xf5, so I’m guessing the Fn keys aren’t being interpreted as Fn keys at some point.

that is really strange
especially as xev detects them correctly
some MS keyboard have a meta key called fn lock

omg

that will make the fn keys act like normal fn keys or like special, and useless, keys

that’s it

heh

I’m using a MS Ergonomic KB. Damn Fn lock!
Thank you so much!

np

heh, I was about to enter it all into xmodmap or something

you can still do that
then you don’t have to care about fn lock
bbl

Heya.
I’m trying to find the command which changes the background of the root X window.
The command which will change the “wallpaper” of an unmanaged X desktop, if you will…

xsetroot

kasc, thanks.
If I wanted a nice simple desktop manager, what would you guys recommend? Something for just drawing a wallpaper, really? :P

window manager or desktop environment?

I just want to draw a nice wallpaper to the root window, really. I already have a WM i like.

it’s not the job of a WM do draw wallpaper

actually you dont even need a window manager to put a wallpaper…

kasc… i know. I just said I have a WM I like already, and all that I’m trying to do is draw a nice wallpaper.
any idea how i can do that?

xsetroot or any other image viewer, almost all have capability to “set picture as wallpaper”

I see. xsetroot seems to work with bitmaps only… Know anything that does PNGs, in particular?

FYI PNG is a bitmap

Well I put xsetroot -bitmap /path/to/png and it says bad bitmap format file…

Is it possible to have the programs closed, not killed, when I log out from an X session? I’m using Fedora 7 with gnome.

http://biagi.miniville.fr

hi all
just wondering what is the best way to determine why a process has stopped or if there is a monitoring tool that can be implemented
like tripwire for runnign processes?

“dot” generates shapes that are too small to contain the text. Anyone knows why this may happen?

dot in graphviz?

yes

all I an suggest is messing around in the optons for the graph
options*

anyone know of software that will monitor a command/proccess and log who ran it or terminated a process?

sudo can do some of that if you change the cmd so only root can run it, then set appropriate options in ‘visudo’

how about at the proccess level
anything to watch if a process starts/stops

not that I know of

ack thats a bit rough
rather mysterious when a proccess ends with no mention of it in the logs

http://www.gnome.org/~seth/blog-images/monkey-hoot/WorkspaceSwitching.ogg Any suggestions?

hey all, i was wondering if its easy to set up dual monitor in ubuntu with an ATI graphics card?
easy as in i don’t have much linux experience
is anyone here?

Nope, just you.

haha
do you know anything about dual monitors in linux

Nope, but google might
What’s the problem?

I’m the problem to he honest
i don’t know much about linux

dual what?

but i do know a lot about windows, but thats not saying much
dual screens, monitors, whatever you wanna call them

and it consists on what?
wanna have 2 monitors for 1 CPU ?

Hi … I fund on a forum that I have to “allowing inbound tcp port 990 in my iptables configuration.” .. anyone know how I would approach?

i just want to get dual monitors, like you move your mouse across one, then it moves to the next
and i don’t know where to start

is there anyway to install an hp bios update (they only make windows exe to be run from within windows) though I only have linux installed on this lappy?

the mouse perhaps
xD
well I don’t have any mouse sorry
just a touchpad lol

are you talking to me

gentoo-wiki.com/HOWTO_Dual_Monitors
no I’m talking to me

i have ubuntu, will that still owrk

It depends on how your distro deal with your video cards,just try out

argh, if i screw up xorg.conf, im in trouble, aren’t i?

I don’t know,i hope that the folk around may help ,gd luck

haha, ill mess around iwth it some other time
i don’t truse my self
trust*

metguru_ are u using mIRC to get here?

no
X-chat
y

mIRC,it’s a windows IRC client

i know that
i use it when im in windows
im in ubuntu at the moment

metguru_ X-chat is good?

farrel, X-Chat is dope.

yes, I perfer it just a smidge over mIRC
but similar
they’re*
whats wrong with Xchat?

Jivedue what client are u using?

farrel, X-Chat, I’m saying it’s good.

Jivedue ok grr my poor english xD

haha, I thought you were saying it sucked

tought same thinf haha
is it possible to connect to an IRC server from the command line (on linux)
?
i mean from a linux console

farrel, Yes, there are command-line IRC clients.
farrel, You could search and find some I’m sure.

k i’m looking to build my own
from scratch

#gnusol

?

can someone tell me howto change my color depth in ubuntu 7.04 in gnome i think
?

is there a way to change the program that gnome calls when you pick the “Suspend” option?

iptables .. what ports does MSN Messenger use, i block outgoing – but may need to alow MSN ?

where can i find a livecd based on kernel version 2.4.7

hi there
does anyone knows a way to get a sidewinder gamepad back to work with fedora 7?

where can i find a livecd based on kernel version 2.4.7

uhmm, why such ancient kernel?

because it’s the kernel that the driver for my raid controller works with

good luck. back around 2.4.7 there weren’t many ‘live cd’ distros
if google doesn’t turn up anything for ‘2.4.7 livecd’, then you may be SOL

yeah everyone wants the newest and baddest.

uhmm, that wasn’t the point
however, since you decided to bring it up, not everybody wants an unsupported old junk

seems like promise was good at supporting linux with their drivers back in 2.4

what exactly are you trying to accomplish?

trying to get data off of a four disk stripe that windows
doesn’t like anymore

i’d stick with windows for this

i would too, if i had any remote hope that it would work.

well, the issue is simple – if it doesn’t work under windows [which has most likely better drivers], then using linux will be a lost cause

i’m sure t

hello, does anyone konws if there a way to dump everything that’s going on lynx? or using tcpflow (or similar) is the only way?

ni idea

im having trouble deleting some files that have no file information ( file date, permissions, owner etc show up as single “?”)

http://pastebin.ca/609732

strange
and what happens when you try rm 1200_20070418170000.mpg.png ?

permission denied . as root

what does stat say about the file ?

same thing permission denied

is it possible to chmod it ?

no same result. chmod , chown

did you have a hard reset or something that would lead to file coruption ?

not sure .. some of them have been around for quite a while.
june of last year .. looks like

dunno really, might be worth rebooting with a fsck, or just umount’ing the one partition and doing it

i just added another drive to the LVM and had it booted with knoppix. i did a fsck then

ah, never used LVM myself

thanks anyway

np

I’m trying to migrate / to LVM on Raid where it was just on Raid before (/dev/md2 where now it’s /dev/VG_foo/LV_foo which is on /dev/md2). I rsynced the files off, repartitioned, rsynced on, edited /etc/fstab and /boot/grub/menu.lst. Now I’m getting “mdadm: no devices for for /dev/md2″ and
subsequent errors as a result. What now?

hey, I’m trying to use 7z to extract an entire directory of .7z files. Can anyone tell me the proper way of doing this? 7z x *.7z doesn’t work

is there a way to wget a whole directory?

man wget, wget -r
Basically, no, only referenced files.

I’m trying to migrate / to LVM on Raid where it was just on Raid before (/dev/md2 where now it’s /dev/VG_foo/LV_foo which is on /dev/md2). I rsynced the files off, repartitioned, rsynced on, edited /etc/fstab and /boot/grub/menu.lst. Now I’m getting “mdadm: no devices for for /dev/md2″ and
subsequent errors as a result. What now?

Is there a way to change sda2 to sda1?

where could the output from udev be logged?

Comments off

hi i am trying to boot mepis from a live cd and everytime i try to it loads up then says press ctrl alt f7 to

oh, incase anyone cares, it looks like it was a putty issue, changed my font and set the translation to UTF8 and it seems to be sorted

hi.
is there a way to let a group be a member of a group to allow cascaded acls? Is there a addon? ..special fs? ..commercial software?

hey all
E: clvm: subprocess pre-removal script returned error exit status 1

morning

you can find the mentioned preremoval script in /var/lib/dpkg/info/ . Just write “exit 0″ in it as the first executed command. then try to remove again…

could anyone suggest a lightweight sound recording app ?

I have burned several 500m tgz music files to a dvd but when I try to drag them from the dvd onto a hdd it tells me it cannot read the .tgz file how can I move the files ??

that means the file is corrupt

I got no errors whilst packing or burning them ?

what does tar -tzvf /mnt/dvd/myfile.tgz say

stdin: Input/output error

did you try using the command line to copy the files

Yes and got the same result

twager, type ‘file/mnt/dvd/myfile.tgz’

nik-Wrk: Tells me it cannot read file input/output error

twager, mhm.. do ‘ls /mnt/dvd/’
and check if its displaying properly
maybe the dvd is not mounted properly

nik-Wrk: Shows all the files ok

twager, like johnthewolf saids, try ‘cp /mnt/dvd/myfile.tgz /tmp/myfile.tgz’ and then ‘file /tmp/myfile.tgz’ and see what happends

what would you recomend for a fast, noob friendly distro?

ubuntu

Last_Hero the most boob friendly distro is probably freespire/linspire

reading `FERRY.tar.gz : input/output error

these days, probably ubuntu.

noob*
ubuntu is too technical

/

twager, try with like 3-4 different files
Last_Hero, go with Mandriva or Suse

nik-Wrk: Tried 3 and all the same error…

twager, it looks like the dvs is f***** up, or your box is not mounting the dvd properly
dvs = dvd

Thanks for help…Got to get wifes dinner ready :-(

lol
np

i am a dvd? =/

bye

haha

hehe

sup dvs01

not much, at work

k

/
actually wait that’s not true, it let me login before deciding it didn’t like my keyboard

knoppix is nice for noobs
gentoo is also very good
very well documented
takes a while to setup, but once you get everything working, it’s a gem
gemtoo :/
ubuntu is only good for human beings
not for noobs

keck0f, you still here

hi
can some one tell me how to do X tunneling with applications

gentoo sounds interesting

you will need to learn the basics anyways. gentoo offers that

yeah, I’m downloading the liveCD

you’ll need to read up on it though

gonna read through the install guide while it’s downloading
and have it open next to me while I install

i am planning to build one micro ATX system for my lcd tv, is there any one out there having such setup

I’m having trouble using rsync –link-dest, it used to work for me but it seems to have stopped since I’ve reinstalled the os. Is it possible that the rsync 2.6.9 is broken?

when i attach my external usb hdd its not being detected…

silverblade what does “dmesg” say?

it does not indicate anything has happened
drive worked fine up until yesterday.
only change ive made was to power it on, look in /dev/disk/by-id for its id, and modify fstab

silverblade, the usb drivers should display a message in dmesg… do you have other usb devices that you can test with? If not, have you tried rebooting?

hmm i just tried a mem stick and that is detected
i also tried plugging this into my laptop and its not seeing it either :/

are your usb modules up and running?

the fact i can see my usb mem stick would indicate that
ok looks like its failed
i put another drive in it and it works on both pcs

anyone have any recommendations on a cms system? something that would make it easy for non technical people to post news items to our website?
I’ve found a few…but they’re all php and php scares me sorta…

hi i am trying to boot mepis from a live cd and everytime i try to it loads up then says press ctrl alt f7 to go to a menu, which i press then i am just greeted with a black screen and nothing happens, can anyone help me?

I would check their website for known issues with certain hardware, and possible workarounds
assuming the iso md5sum checked out and the burn was good

why cant i mkdir a dir in /mnt?
I get a Permission denied when i mkdir something inside /mnt

hey guys i need some help, i tried booting off a usb drive but it says could not find kernel image when i try it, can anyone help

celt1c sounds like mount problem

ya

do you have other usb devices?
do you have other usb devices??

is the bootloader on the usb drive?

yes
:-D

are you having the usb boot problem or celt1c?

celt1c,

and you are answering because?

y was trying to help him

ok im just gonna forget the usb and use a live cd
but im having another problem
im on a laptop trying to connect to my wireless internet but cant
i have wpa enabled

go figure …

any error messages? log messages? anything informational?

im jus trying to play around with kwlan
never used it before

well… ^^

ya…

e-live is nice
just would like to have time to compile enlightment in my solaris

there are lots of things that might have gone wrong. without any specific error message or anything descriptive, there is no way to find the actual problem.

kasc, i would bet it has to do with the usb connection
used to be sda and then became sdb

did you ever set up booting from an usb device yourself?

nope but i had to solve one of those
just need to look at my notes
it had something to do with setting hard the usb drive
anyway isn’t need anymore
celt1c, is using live cd now

yep

is there a command line app for resizing jpegs?

convert, p/o ImageMagick

cool, anywhere i can obtain just convert?

not that I know of

hmm guess i could always just reupload after editing

yeah mean to it manually? ewwwwww :p

lol
i have about 10 pictures that are extortionately large.

fwiw, you can set compressionlevel with convert, too, and rescale if necessary
but if it’s a one-time deal, you’re right. IM might be overkill

ok

how to I search my plugin files for a function in a linux SSH prompt

Does anyone here know of any gui style “remote user account logger/viewer” … basically I need to watch a user account remotely as it is being accessed, and I need to log this to file.

define ‘watch a user account’
then again, you didn’t define it in #linux either

I did actually, if you scroll ^^…. but regardless….. user bob logs in to the server, and I watch “everything” bob does *remotely*, as he does it

ask user bob to use screen, then you can attach another session to it

ahhh, but then user bob knows the boss is watching and stops doing his illegal activities

you never said anything about illegal wiretapping

its not wiretapping, and its not illegal

it is wiretapping, and it is illegal, unless the user is informed about the monitoring.

I see no difference then me watching as it happens, or me reading the logs after the event has occurred

anake
could you explain that suggestion about using screen?

drophot

*ananke

if that was proved to me to be illegal, then I would not partake in it, but I simply don;t see the difference

logs don’t contain all the information you’re interested in. otherwise, you would be satisfied with them
screen should let you attach ‘read-only’ sessions, which would allow another user to see everything

well from my knowledge, the user already knows he is being monitored, as it was in the NDA signed upon employment.

interesting, i’ve never seen an NDA which would include ‘your actions may be monitored’ clause

niether had I until I was asked to sign it

back in the day ttysnoop would be the answer you’re looking for

ty, I will let the boss know, as well about your comment of it being illegal, he will have to double check it, as I won’t be a part of something like that

out of a 5 day forensics course I took from the SANS institute, an entire day was devoted to legalities…

remember though, slightly different based on country

another thing you have to ask yourself – what exactly are you trying to find out. watching a terminal may not be necessary/best solution
indeed

looking for a few things actually
unauthorized file transfers of classified files, unauthorized access to root, and some illegal use of company resources
I’m still uncertain what exactly the boss meant by “illegal use of resources”

sleuth kit may help you with unauthorized file transfers. you can easily create a timeline of file access
unauthorized access to root is a bit tricky. does that user have root password? if so, ‘unauthorized’ is very subjective

if he has the password, he either hacked it *which I find hard to believe due to the passwords used* or he obtained it through illegal means…. this user was never given any access to root

unless that user is hiding his tracks, access to root should be easy to find out. both sudo and su can log who was trying to become root, and obviously you can find out when root logged in via ssh or console

I’ve made attempts to search out any rootkits, but all attempts come back clean

gotta run, bb in 20

hmmmmm, does sudo & su “auto” log these events? I’ve never known they could do logging

yes. kinda

kk, thanks for your help thus far, appreciate it

for sudo, a simple addition to /etc/sudoers will do it:
Defaults log_year, log_host, logfile=/var/log/sudo.log, \
actually, remove trailing , \

thanks

for su, check /etc/login.defs for something similar to
SULOG_FILE /var/log/sulog

thanks again, enjoy

i want to serve video with a flash player on my site and was wondering if red5 was the best answer?

what is the command to set the hardware clock?

“date” or go into the BIOS

hwclock
I hate when the answer is in my question…

my external network access is VERY slow, but local access is fast. Please help.
I’m running Ubuntu.
Disabled IPv6
routing table looks good

Are you sure that your outgoing pipe isn’t just being slow right now?

DNS server is same as for another machine which accesses internet approx 20 times faster

Oh, okay, so other hosts on the same LAN are running much faster to the outside world?

sekhmet, yep. had this problem for days
sekhmet, correct

pastebin your ifconfig, route -n, iptables -L -v -n, and /etc/resolv.conf
if you would
That would help establish your config anyway

sekhmet, ok. where’s pastebin?

why is iptables grammar so fcking weird

I tend to use rafb.net/paste

hi

but if you google “pastebin” you’ll find hundreds of ‘em
see /topic for another one

thx
sekhmet, see http://rafb.net/p/iJdIrH26.html

Hm, you don’t have a route to your loopback
That could possibly cause some issues (or at least, if that turned out to be the problem, I wouldn’t be surprised)

sekhmet, is that bad? I can still ping localhost.

127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
^^ should have a line similar to that
Well it *could* be problematic, anyway.
Could be that it’s all right

ok, lemme see what happens if I add it

I don’t think you actually need that 169.254.0.0/16 route, either, though I know that does have *some* purpose I never remember

sekhmet, nope. still very slow.

What’s the status line from a “ping -c 10 www.google.com” ?

http://rafb.net/p/HXRz2o90.html
sekhmet, i think ping is being blocked/firewalled somewhere.

I dunno – have you looked into the possibility that your gateway/router is limiting you?
Maybe an IP collision elsewhere on the network?
(heading afk, be back in a bit, btw – good luck)

no ip address host collision – this machine was working fine until ~2weeks ago when I installed Ubuntu.
back soon

after editing zone file, how do i activate it?

is there a 100% real as in i will bet my job on it real backup solution that is open source for windows and is able to quickly recover from disasters?
if the word rsync is mentioned i will flame.
i use EMC retrospect it is commercial
and they charge for every new jboss server hosting i add
but it does work very very well

Anything telling in dmesg?
Do you mean, “How do I tell named to pick up the changes I just made?”

sekhmet, what file does dmesg read?
I’ve rebooted into Fedora – Ubuntu was too slow & driving me nuts.
/var/log/dmesg!

Well, yes and no
“dmesg” itself reads from your system, er, ring buffer or something
Which isn’t actually a file
Your system logger will generally output all of that to /var/log/syslog or /var/log/dmesg though
So that’s generally equivalent
But just running “dmesg” doesn’t actually read from any file

gotit
what am I looking for? (in dmesg?)
nothing is jumping out at me

Anything having to do with eth0
Or something mentioning packets, etc
If nothing’s jumping out at you, it’s probably not helpful

there’s nothing then
What a puzzle!

Yeah, I dunno
What NIC / driver?

I’ve been linux hosting networking for 10 years & this is the most stumped I’ve ever been.

It may be worth it to slap another NIC in there, to see if the problems are just on that NIC

I’m using the card (not sure what it is) with Fedora 7 right now … it’s working fine.
problem occurs when I boot into Ubuntu … s …. l …. o … w ….

Ah
How different are the kernel versions?

Fedora == 2.6.11-1.1369_FC4
Ubuntu == 2.6.20 (from memory)

Hum
Well it still would be a good idea to try another NIC when in Ubuntu
If that fixes the problem, then at least you know that it’s something up with the NIC driver in Ubuntu’s kernel

clarification, I mean Fedora 4, not Fedora 7.
s/mean/meant/

And if not, you know it’s a more general system problem

sekhmet, good point
might try the wireless interface
would still be quicker (I hope!)

Indeed
Well, I’m out for the night, good luck again

sekhmet, thx for your help
muchly appreciated

I’m having a bit of trouble setting up NXbuilder… I can’t get the Setup.php part to work… I fill in the data on the page, but when I click accept, it tells me: “Cannot write dump file” Any Ideas?

hello room

if he room had a voice, it might echo back.. as it is you probably won’t hear much. it’s more like a bulletin board (forum) though. Post a question and maybe check later for an answer…

Is ktrace available for linux?

try strace
I’ve never used krtrace, but I understand that they do essentially the same thing

im contemplating software-RAID. Specifically, mirrored mode with 1 sata hdd and 1 ide hdd (so that its independent of the controller – besides which this is my disk config anyway) – am i likely to encounter performance drops if i do this

hello

rm: cannot remove directory `/var/lib/openwebmail/users’: Device or resource busy and lsof returns nothing

what’s the best host thing to use for viewing cbr and cbz files?

let darkstar in debian… babies

Hey all
Anyone know of a any messenger client which has voice chat option available. pidgin doesnt have voice options

guys is there any messenger out there with voice chat feature ?
pidgin wont do voice chat. neither does amsn or kopete

Comments off

« Previous Page« Previous entries « Previous Page · Next Page » Next entries »Next Page »