419 Archived Topics
Remove Filter import wx app = wx.App() win = wx.Frame(None) win.Show() app.MainLoop() Why does the above code only work in python2.7 and not 3? | |
I have a Samsung Galaxy Tab. To my dissapointment it is unable to be mounted to Linux. I found a few website with instructions on how to mount it be so far they haven't worked. I'M really trying to get more and more away from Window$ but I'M finding it … | |
Just got the book C++ Programming in easy steps. I just did the following program and although I ran it with now problems the book and this program really do not at all help understand how an enum or a typedef are usefull in the real world. #include <iostream> using … | |
garrett@mint-desktop ~ $ c++ -v Using built-in specs. COLLECT_GCC=c++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version … | |
( make 2>&1 | tee make.log && exit $PIPESTATUS ) && Could someone give me a detailed explanation of the above line? I know that tee is creating a text file while also allawing the output to come to the screen but need a better understanding of $PIPESTATUS. Is "exit" … | |
I'M converint all of my videos from iTunes using DRM removal softare. Most of these videos will be played on Linux and or my Samsung Galaxy Tab, my format options are: MPEG-1 NTSC, MPEG-1 PAS, MPEG-1 SECAM, MPEG-2 NTSC, MPEG-2 PAS, & MPEG-2 SECAM, MPG, MP4, & MKV. What should … | |
I need to view a text file that located somewhere in a file.tar.bz2 file. Anyway I can explor a tar.bz2 file and view a text document there in? | |
I've set up a small php file called phpinfo.php the script is below. <!DOCTYPE html PUBLIC "_//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/ xhtml-transitional.dtd"> <html xmlns="http://www.w3.org/1999/ xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/tml; charset=utf-8" /> <title>First PHP Script</title> </head> <body> <?php phpinfo(); ?> </body> </html> I've already installed both php5 and apache2, … | |
I just got a new Netgear N router. I didn't use the install CD because there is no computer besider our router and DSL modem. I just plugged it up and at all the Windows computers in the house seem to be able to connect just fine but my Linux … | |
I've got an iPod classic and I'M having the worst luck moving it to my Linux. I was hoping to use Clementine or Rockbox to run the ipod but when I try rockbox I'M getting a permission denied error, even though I've added +rwx to the permissions of the devices … | |
I'M having a bit of a problem with audio books on Linux. I buy my books from audible.com but since they don't support Linux it's just one more thing keeping me from fully leaving Windows. There audio formats are in .aax. Their books play fine in iTunes and on my … | |
I have Western Digital TV Live that plugs into my TV and also into my 1TB external HD. I have attached four pictures to help with what I'M confused and having trouble with. Take a look at my network1.png, notice that the device is listed in two places, one big … | |
movies = ["The Holy Grail", 1975, "Terry Jones & Terry Gilliam", 91, ["Graham Chapman", ["Michael Palin", "John Cleese", "Terry Gilliam", "Eric Idle", "Terry Jones"]]] print(movies[4][1][3]) In the above code, how does [4][1][3] result in "Eric Idle"? It looks to me like the 4 selects Eric Idle becaue it's the 4th … | |
data = open('sketch.txt') for each_line in data: try: (role, line_spoken) = each_line.split(':', 1) print(role, end='') print(' said: ', end='') print(line_spoken, end='') except: pass data.close() I'M gettin the following error when I run this code but it looks exactly like what I'M seeing in my Head First book. File "sketch.py", line … | |
I'M trying to find the python3 file that would be the counterpart to the python3.exe in Windows. I want to point Geany to pyton3 rather that 2.7 which it's pointing to now. I don't even know if I found the right directory or not but I've attached a screenshot from … | |
I'M trying to learn php and I use Mint Linux as my OS. I don't know if php is installed or not. I went to synaptic package manager and input php, I got back a big list of php-xyz packages and I dont' know which one to get. Any suggestions? | |
File "/usr/local/lib/python3.2/distutils/archive_util.py", line 52, in make_tarball tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress]) File "/usr/local/lib/python3.2/tarfile.py", line 1769, in open stream = _Stream(name, filemode, comptype, fileobj, bufsize) File "/usr/local/lib/python3.2/tarfile.py", line 421, in __init__ raise CompressionError("zlib module is not available") tarfile.CompressionError: zlib module is not available garrett@toshiba-laptop ~/Desktop/nester $ I'M getting the above … | |
I'M trying to work my way through the linux from scratch project and I'M on page http://www.linuxfromscratch.org/lfs/view/stable/chapter08/grub.html I've really messed up my boot up process. I did make a boot disk as descriped in the above link.The computer originally had Debian (CLI only) has the host system from which I … | |
bash: bld: line 11: syntax error: unexpected end of file I'M gettting the above when I source the attached script file. Can someone please let me know what I've got wrong here? Thanks The script file was build from the commands here > http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gmp.html ![]() | |
I'M trying to downlaod CentOS, but I keep getting this http://www.gtlib.gatech.edu/pub/centos/ page. I don't know what I'M need to do here, how do I use this? | |
I'M getting the following error while trying to make the program handbrake in in my Mint Linux. Build is configured! You may now cd into ./build and run make (/usr/bin/make). garrett@mint-desktop ~/Downloads/HandBrake-0.9.8 $ cd build garrett@mint-desktop ~/Downloads/HandBrake-0.9.8/build $ make /bin/mkdir -p libhb /usr/bin/m4 -Iproject ../libhb/project.h.m4 > libhb/project.h /bin/cp ../libhb/common.h libhb/common.h … | |
I'M trying to write a shell script using && so that each line will only execute if the preceding line executed without any problems. How would I do that with the following cat:? cat > /etc/nsswitch.conf << "EOF" # Begin /etc/nsswitch.conf passwd: files group: files shadow: files hosts: files dns … | |
I've got a 58 minute mp3 file and I'd like to burn it to an audio CD with multible tracks. Right now it's just one big file. Any dieas? | |
For a while now I've been wishing I could replace iTunes with something on Linux and reduce my need for Windows. It would be nice if Apple would just release iTunes for Linux but I'M pretty sure that's not going to happen. The thing is, nothing handles an iPod as … | |
/root/bin/go-lfs I need to add teh above to PATH. If I simply write "export PATH="$PATH:~/bin/go-lfs" will it cause a problem? I'M assuming that this would remove enerything already in PATH and that might cause problems for the duration of my shell. If so, how could I added it without overwritting … | |
I recently replaced my one stick of 2GB RAM for two 2GB RAM sticks for a total of 4GB RAM. I purchased the sticks from a local computer guy who runs a computer store here in town. He said that since they were the same amount and kind of stick … | |
I've attached my output error and my script is below, also the link the the directions. http://www.linuxfromscratch.org/lfs/view/stable/chapter05/perl.html Here's my script: ( patch -Np1 -i ../../../perl-5.14.2-libc-1.patch 2>&2 | tee patch-perl.log && exit $PIPESTATUS ) && sh Configure -des -Dprefix=/tools && cp -v perl cpan/podlators/pod2man /tools/bin && mkdir -pv /tools/lib/perl5/5.14.2 && cp … | |
I just go a new solid state 240 gig hd. There is currently a 500 gig dual boot W7/mintLinux HD in the computer now. I want to re-install W7 & ML on my new SSHD but leave the other for storage, it already has a lot of files on it … | |
Has anyone done the linux from scrath project (http://www.linuxfromscratch.org/)? If so, I created the directory /mnt/lfs/source just as the LFS book instructed me to do and now after turning the computer off and back on, the sources directory is gone. This is the second time this has happened. Any ideas? | |
lfs@debian:/mnt/lfs/sources$ tar xjvf binutils-2.22.tar.bz2 tar (child): bzip2: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now lfs@debian:/mnt/lfs/sources$ the file binutils-2.22.tar.bz2 is in this folder, why am I getting this? | |
lfs@debian:~$ scp output garrett@192.168.1.10:/home/garrett ssh: connect to host 192.168.1.10 port 22: Connection refused lost connection lfs@debian:~$ Why is the above not working? I am wasily able to ssh from on computer to the other, why will scp not work here? output is just a simple text file. | |
I'M building a Linux from Scratch system(www.linuxfromscratch.org) and I've run into a little confusion. An easy way to download all of the packages and patches is by using wget-list as an input to wget. For example: wget -i wget-list -P $LFS/sources Additionally, starting with LFS-7.0, there is a separate file, … | |
Guys I feel really stupid asking this but I can not downlaod debian. Everytime I try I get on of these (http://cdimage.debian.org/debian-cd/6.0.5/amd64/bt-dvd/) pages and I have no idea what to do with it. | |
I just download backtrack linux 5 R2 and wrote it to a disk. When I restarted the computer with the disk in the drive the backtrack menu did not have an install option. It had a lot of options but installation wasnt one of them. I noticed that the Desktop … | |
I recently compressed a whole username(I think the file was DeveloperBackup and I think the extention was .gz but I'M not certain) in ubuntu and I had one copy of the file on my ubuntu laptop and one on my external HD. I know this sounds really stupid of me … | |
I've uploaded two files, one is a screen shot of my the ftp address to my server and the other is the ftp settings files that is sitting on my ubuntu server. I'M not understanding how it works. Where in the ftp settings to I designate a directory for the … | |
When taking the LPI exam do you have to take both the LX0-101 and 102 exams at the same sitting or can you take the two on two different dates? Thanks. Even if I had a job as a Linux admin I would find it almost impossible to do that … | |
I've been using iTunes for a while now but I'M really sick of their prodected file crap, having t authorize and de-authorize different computers all the time. What I'M looking for is a program with extensions/add-ons for different online music stores. Maybe one for amazon's music store where you would … | |
I recently got an ubuntu server up and running in my house. Is there a way I can set it to suspend or hybernate or whatever youi call it so long as hard drive stops spinning and uses less power? What I would like is a way to wake it … | |
I'M reading a Linux book and I've come to a section on setting up an NFS service on my home network server. I was told to exid the file /etc/exports. The problem is, I think the book was written for Fedora and my home server is powered by Ubuntu Server … | |
I'M working my way through a C++ book and now I'M doing a card deck program. Here's the line I'M having trouble with. r = card % 13; // r = random 0 to 12 card in this case is just a random int number from 0 to 51. 52 … | |
#include <Stdafx.h> #include <iostream> #include <stdlib.h> #include <time.h> #include <math.h> using namespace std; int rand_0toN1(int n); int hits[10]; int main() { int n; int i; int r; srand( static_cast<unsigned int>(time(NULL))); // set seed for random numbers cout<< "Enter number of trials to run "; cout<< "and press ENTER: "; cin>> … | |
I've got a linux ubuntu media server running in my house but I've got two small problems with it. How can I set it with a perminate IP so I will not have to physically go to the box each time I turn it on to check the IP? Also, … | |
Does anyone know a way to make my msconfig setting stay. When I restart my computer all that crap come right back. Windows has no respect for user preferences. I know you can set it to start up in bare minimum but I'M afraid that would me a little to … | |
When I use username@ipaddress everthing works frine, but when I try to use username@computername I got nothing. It would really be a lot easier to use the computer/server name rather than walk over to the other machine and check the ip evertime. Any ideas? From everything I've read username@computername should … | |
I'M just trying to work my way through the book "Head First SQL" but I can't seem to get it installed. I just need the simple DOS like pompt MySQL program to learn on. Here's what I'M getting when I try and install it. mysql-server-5.5-winx64:6 - Looking for valid template … | |
I'M reading "Linux + Guide to Linux Certification" and I've come to samba and I'M having trouble understanding a few things. The book says I need to add a username and password on the Linux system that corresponds to the username and password on the Windows clients? And then another … | |
I just installed Ubuntu Server but I'M not getting any network activity, let alone an internet connection. When I type ifconfig I only get the local ip address of 127.0.0.1. I have connect the eth0 port to one of the open ports on my wireless router and I'M still getting … |
The End.