|
Computers Ask about your system/software issues here, or discuss the latest in the field. |
|
Thread Tools | Display Modes |
09-20-2006, 04:49 PM | #81 |
Moderator
|
actually, the mkdistro tool they include seems really awesome. i never knew about it before today. perhaps a testtubelinux is in the works!? or perhaps not... haha
|
09-20-2006, 06:19 PM | #82 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
i've actually gone back to gnome temporarily. (forgive me xfce, for i have shamed you! )
what i think would be ideal is xfce on either an arch or gentoo setup, but i'll wait around until the next release of xfce. currently xfce comes with xffm, which i must say, is god awful; however, i've heard rumblings that thunar will actually become a part of xfce in the next release?? so until then i'll be using gnome and xfce (xubuntu-desktop) back and forth on my ubuntu install. thunar is still a masked package in portage, and i can't remember if arch has a thunar package. and dream linux looks sorta interesting. i'll investigate more later when, hopefully, it doesn't take ages for images to load from their server. fuck! |
09-20-2006, 06:24 PM | #83 |
Moderator
|
yeah their site is slooooow...
i do believe Thunar will be part of XFCE soon |
09-20-2006, 06:28 PM | #84 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
thunar v0.4 is in the latest xfce 4.4 release candidate, now that i check. so whenever they serve that up, i'll be checking it out. xubuntu will get 'er done for now.
|
09-20-2006, 06:29 PM | #85 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
we should rename the computers forum to "linux" and there is only allowed to be this thread
also we're both mods |
09-20-2006, 07:10 PM | #86 |
Moderator
|
sounds good to me!
|
12-04-2006, 11:22 AM | #87 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
here's something you might find interesting.. a few months ago i wrote a simple little perl script to rip cds and encode them as *.ogg files. (i'm never happy with the other programs out there...)
you need to have the cdparanoia and oggenc commands available to you in order for this to work correctly [sudo apt-get install cdparanoia vorbis-tools]. what it does is gets information about the album from a text file i've created. here's an example: Code:
album=Green Cosmos artist=Deerhoof Come See the Duck Green Cosmos Malalauma Spiral Golden Town Hot Mint Air Balloon Koneko Kitten Byun the script: Code:
#!/usr/bin/perl my $album, $artist, $numtracks; my @songs; open ALBUMDATA, "<album.data" or die "album.data file is missing!?"; # read the album name, artist name, and track # names from the album.data text file $album = (split /=/, <ALBUMDATA>)[1]; chomp $album; $artist = (split /=/, <ALBUMDATA>)[1]; chomp $artist; while (<ALBUMDATA>) { chomp $_; push @songs, $_; } $numtracks = scalar @songs; close ALBUMDATA; # give the option to cancel ripping if # the album.data information isn't good print "\nalbum to rip: $album by $artist\n"; print "$numtracks songs\n"; for (my $i = 0; $i < $numtracks; ++$i) { print $i + 1 . ". " . $songs[$i] . "\n"; } print "\nrip it? (y/n) "; $line = <STDIN>; chomp $line; # if they say 'y', do it; if they say ANYTHING # else, then don't do nothin' if ($line eq "y") { # rip the *.wav files print "ripping tracks with cdparanoia...\n\n"; # system "cdparanoia -d /dev/hdc -B"; system "cdparanoia -B"; # encode the *.ogg[/*.mp3] files print "encoding ogg files..."; for (my $i = 1; $i < ($numtracks + 1); $i++) { $tnum = ($i < 10) ? "0$i" : "$i"; $title = $songs[$i - 1]; $cmd = "oggenc -N $i " . " -t \"$title\" " . " -l \"$album\" " . " -a \"$artist\" " . "--output=\"$tnum - $title.ogg\" -q 5 track$tnum.cdda.wav"; print "\n\nripping track $tnum...\n"; #print $cmd system $cmd; } # all done; tidy up and delete the *.wav files # and end the program print "done encoding .ogg files!\n\n"; print "erasing .wav files\n\n"; unlink glob "*.wav"; print "ripping/encoding completed\n\n"; } and if you wanted to make mp3s, you can just swap out oggenc for lame.. i should also mention that the oggenc command generates the ogg tag information for each file. it would be kinda silly to skip over that.. once you've put the right information in the data file (album.data) all you need to do is perl ripper.pl and it will go to work. some things i should add: - regular expression to remove characters that aren't allowed in file names, so it doesn't try to create a file with a bad name and die. - make it use the Audio::CD perl module to do a cddb lookup so i don't have to type out the track names every time i rip a cd (but i'm too lazy to install this module and learn how to use it..) who knows, somebody here just might find this useful. note!!: i tacked on a .txt extension to each file so i could upload them, so if yer gonna download them just remove it. (or copy the text in the code boxes into brand new files called album.data and ripper.pl..) |
12-04-2006, 12:13 PM | #88 |
Moderator
|
awesome script, johnny! i've actually been thinking about doing something similar, although i would have used python instead of perl.
i want to do something similar to retag files, though. i have yet to find a really good tag editor / file renamer. |
12-04-2006, 01:07 PM | #89 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
the plan is to rewrite it in python with a pygtk front-end. but perl on the command line works just fine for now--i never seem to get around to fixing this up.
i've also been planning on writing a quick address book/contacts app. with python (pygtk gui again..). i really like orage for a calendar program, and i haven't been able to find something equally simple and small for an address book. i have to do everything myself, it seems like! |
12-04-2006, 05:45 PM | #90 |
Moderator
|
dude i completely agree with that. i had a fling with Evolution and that just was too much after I discovered Orage.
perhaps we can team up to make some XFCE apps? XFCE really needs to more apps that don't rely on gnome libs. <edit> i am looking through your script, trying to brainstorm how to port it to python... the logic all makes sense, but perl syntax doesn't! chomp $album? WTFBBQ!? |
12-04-2006, 06:50 PM | #91 | |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
i'll be happy to answer any questions you have. chomp is a handy function that removes the newline ('\n') character from the end of a string. it's necessary 'cause i'm reading this stuff from a text file that has each song name separated by a newline.
and i'm not sure if you're familiar with perl's file i/o, but if you're not then i can explain that each time you see "<ALBUMDATA>" that just reads a line from the file i have open. and in the loop ("while (<ALBUMDATA>") the line from the file is read into a default variable ($_). Quote:
|
|
12-04-2006, 08:27 PM | #92 |
Moderator
|
i've never done any perl programming, and never really had any desire to thanks to its nasty syntax.
xfce apps, here we come! |
12-06-2006, 10:05 AM | #93 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
perl isn't that nasty. the problem is that it allows people to make it nasty.. you can do some really weird one-liners. i think my perl code is pretty readable. chomp is just a built-in function :P
|
12-06-2006, 12:31 PM | #94 | |
Moderator
|
Quote:
yeah but... chomp just doesn't make sense! how does chomp == remove \n from end of line? my first inclination was that MAYBE chomp "chomped" a line from a text file, but the newline thing just comes out of nowhere. |
|
12-06-2006, 04:42 PM | #95 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
i think it's because chomp is, more or less, an extension of the chop function, which simply removes the last character from a string and returns it (whether or not that character is '\n'). chop -> chomp. chomp is just like a smarter version of chop, for a specific situation.
|
01-06-2007, 11:21 AM | #96 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
so i'm downloadin' the dreamlinux 2.2 live cd, because i got curious the other day. i don't think i'll actually install it, but i guess it's worth investigating. engage looks very nice (i think it's from enlightenment..?).
|
01-08-2007, 08:57 PM | #97 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
so i've been on the hunt for a browser lately.. firefox is sort of the standard, i guess, but i've been wanting something a bit better lately. so now i will run through a list of options:
i don't think i could handle using dillo or links2 ("links2 -g" fer gui). sure, they'd be quick and show me all the content.. but everything would be so ugly. so i guess i just stick it out with firefox, or maybe.. go ahead and install konqueror? got any ideas? |
01-08-2007, 11:58 PM | #98 |
Moderator
|
fuck dude... i have the same problem, and i have not reached a suitable conclusion... basically firefox is a bit to sluggish for me sometimes and i want something lighter.
swiftfox really isn't all that much faster, and any firefox based browser is gonna be just as bad as firefox. epiphany is ok, but it's not nearly as packed with features. opera isn't free software and the suites are just too much. konquerer is pretty good, but it renders some pages strangely, mostly with fonts being too small. there really isn't much plug-in support that i know of, and nothing like down-them-all. being able to use it for pretty much everything KDE related is nice, but like you said, it is a QT app and sticks out. the reasoning behind iceweasel is a little tricky to understand. according to the FSF, firefox isn't free software, because not only does the windows and official linux version contain non-free elements, but they also host and give access to non-free plugins. add on top of that the whole artwork fiasco that happened. the FSF is a little zany sometimes, and so are those debian dudes, so i guess they figured they would stick it to the firefox dudes, because really they are doing some anti-free software practices. firefox has become the standard for the most part, so i think it is a fairly big deal that something that has become the champion of open-source is really not so free. so i just stick with firefox and hope that something else comes along eventually... |
01-14-2007, 02:54 PM | #99 |
Moderator
Join Date: Oct 2004
Location: Upper Canada
Posts: 1,276
|
i just got enlightenment (dr17) up and running, and it's pretty sweet. http://www.ubuntuforums.org/showthread.php?t=319336
i think the one in ubuntu's repositories is dr16.. kinda old. e17 is really nice. |
01-14-2007, 04:49 PM | #100 |
Moderator
|
johnny, do you post on ubuntuforums, or just browse? i should post on there more, but it's kinda overwhelming to actually help people sometimes.
post a screenshot in the screenshots thread! i've never really been too interested in installing e17. despite the fact that i've been using xfce for the past few months, it doesn't feel natively complete for me, like ubuntu's gnome is. now, don't get me wrong i love stuff like openbox that is just completely nothing more than what it is, because there you gotta tackle everything from the beginning. but e17 looks like it would be like xfce where it has a lot of cool stuff, but there are gaps here and there and fixing them can be a pain. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
a funny little poem one of my old teachers found in a newspaper a while back.. | johnny | Miscellaneous | 8 | 08-14-2005 01:06 PM |