October 3, 2006 at 9:35 pm
· Filed under Linux Help, Fedora, Linux
Webmail Web Hosting | Webmail Hosting
is there a way to make do like mkdir monthdate and it make a folder with the the month and the day?
GhostMan, yes
How and create a simlink to do the same thing?
using date +%m
mkdir `date +%m`
check man date for other options
what about creating a simlink to the date
just as you would create a normal sym link and then use a subshell i.e. “ to run date
just as i showed you with mkdir
;-}
sweeet
as I said for a full listting of date options
man date
;-]
is there a way to tell what a simlink for a dir is?
So I can see why its not working
ls -al
inside the ir?
yes
see anything wrong with cp -a /folder /folder/blah/`date +%m%d`
cause that didnt work hmm
errrm
folder/ maybe ?
cp -a testdir/ ./testdir`date +%m%d`
testdir/ is current dir
also ./currentdir
/dir/dir/dir is full path
pwd to check
hmm I cant even get a simlink to work
without the date
GhostMan, works here
Permalink
October 3, 2006 at 9:30 pm
· Filed under Linux Community, Linux Help, Fedora, Linux
PHPBB Web Hosting | PHPBB Hosting
anyone know any alternate commands for adding users, except 'adduser' and 'useradd' ?
useradd is the command
and it's in /usr/sbin
adduser is a symlink to it
oh
hm
I get "bash: adduser: command not found."
any idea why?
su -
I think its FC5
cause you didn't su right
then try it
the little - is important
or use full path
/usr/sbin/useradd blah
"su: user useradd does not exist"
jebus
hah
su -
su - && useradd blah
oh, cool.. thanks
Permalink
October 3, 2006 at 9:27 pm
· Filed under Linux Help, Fedora, Linux
Best Blog Web Hosting | Best BLOG Hosting
how can I mount a drive so every user can read it?
chmod the mountpoint
would a dir with the sticky bit set look like: drwxrwxrwt ?
yes
sticky bit just places the t at the end
the other is chmod 777
ah
thanks
Permalink
October 3, 2006 at 9:21 pm
· Filed under Linux Help, Fedora, Linux
PHP Web Hosting | PHP Hosting
well it wont detect my vga driver, damnit…?
so you need a better driver to see the better res..
yeah thats the issue
funny how suse and kubuntu both got me higher resolutions than fedora
sigh
i took the entire computer apart
james_: tighter probe setup .. possibly
searched the motherboard for a model number
nothing
the video card is integrated
Divine07: do: lspci
so there's no way to tell what's in there
already tried
generic output
lshw
cmd not found
01:00.0 VGA compatible controller: nVidia Corporation NV18M [GeForce4 448 Go] (rev a2)
/sbin/lspcs
/sbin/lspci
OMG
it gives you all that
Divine07: install it ?
i am, lol
by the way, thankyou for the help
i've been working on this for hours
Permalink
October 3, 2006 at 9:17 pm
· Filed under Linux Community, Linux Help, Linux
Email Web Hosting | Email Hosting
hmm, i dont quite understand what the Cloneable interface is for?
i have an abstract class
with a bunch of sub classes
It's there to indicate that your class is in fact clonable
and some of them are cloneable
so, when trying a clone and wanting to verify that the object is infact cloneable
you get an exception
CloneNotSupportedException, right?
well, no because i know it throws that
i do if (obj instanceof Cloneable)
which determines if the class actually implements the interface
Don't explain java code to me 
heh sorry
Tell me what the problem is
but what then? i cant seem to call the public clone method without casting it to the specific types implementing cloneable
and a public clone method
i thought the Cloneable interface would actually implement this method so I could use it
Then either implement it on the base class or have something on the base class that delegates the call
easy peasy 
er.. what?
alright thanks
Interfaces don't implement methods
they declare their existence
yea
what i meant, sorry
or a requirement really
heh
Action: jjava giggles hysterically
your sub-classes that are Clonable, all have to implement the clone()-method
or have one provided for them through a common base class
yea
but then if implementing clone in the base class, i wouldn't know which of the sub classes that actually have a valid clone method
so i'd have to catch the exception of calling clone() ?
er.. they all do in that case
catching the exception is unrelated
CNSE is a check exception and is therefor mandatory to catch and/or re-throw
er.. declare throws
ah alright
thanks
Permalink