520 Posted Topics

Member Avatar for gyno

I would suggest Linux Mint, you can download it here -> http://blog.linuxmint.com/?p=2714 Learn how to navigate the file system, with relative and absolute paths. Learn to edit config file with VIM, also with relative and absolute paths. Learn how Linux mounts drives and how to mount them manually, then access …

Member Avatar for XP78USER
0
392
Member Avatar for lewashby

#include <iostream> #include <string> #include <stdlib.h> #include <cstring> using namespace std; class Fraction { private: int num, den; // numerator & demoninator public: Fraction() { set(0, 1); } Fraction(int n, int d) { set(n, d); } void set(int n, int d) { num = n; den = d; normalize(); } …

Member Avatar for Ion_1
0
493
Member Avatar for lewashby

I just installed a headless Debian on my first that I'v ever built but I can't install any packages on it. root@media-server:~# apt-get install vim Reading package lists... Done Building dependency tree Reading state information... Done Package vim is not available, but is referred to by another package. This may …

Member Avatar for lewashby
0
198
Member Avatar for lewashby

I just finished my first computer that I've ever built from the scratch. I used an MSI motherboard, AMD processor, DD3 RAM, and a Samsung SSD. I am wanting to install a headless Debian on it that I'll user for my in home media server but I'm having problems. I …

Member Avatar for Gribouillis
0
164
Member Avatar for lewashby

I use Banshee as my Media player and it works just find except that when I rip CDs into .wav files Banshee doesn't always get the ID3 information, artist, album, title, etc... Any suggestion on a good CD ripper for Linux that does a better job at this. I would …

Member Avatar for lewashby
0
235
Member Avatar for lewashby

I'm looking for a good printer/scanner that works well with Linux, any suggestions on brands and models? Thanks.

Member Avatar for mike_2000_17
0
205
Member Avatar for lewashby

I just installed CentOS in my Oracle virtual box and now I'm having trouble getting it to connect online. I'm following the directions here -> http://xmodulo.com/how-to-configure-network-interfaces-in.html but the file ifcfg-eth0 is not showing up in /etc/sysconfig/network-scripts/ a lot of ther ifFILES are showing up but not that one. I would …

Member Avatar for Sana_4
0
245
Member Avatar for lewashby

[Linux & gcc] I'm taking C courses and pluralsight.com and I'm both getting an error with a program I got from one of their videos as well as having some trouble understanding something in the code #include <stdio.h> #include <ctype.h> int main() { char message[] = "Hello world!"; for(char *p …

Member Avatar for TalhaMoazSarwar
0
213
Member Avatar for lewashby

I'm trying to install CentOS on my Linux Mint desktop through Oracle's VirtualBox. The instalation screen says it's installing to sda1 and that's it's mount points are /boot -> 500 MB, / -> 5.02GB, & 614 MB. Is this safe or is there a chance this is going to mess …

Member Avatar for lewashby
0
309
Member Avatar for lewashby

[Linux] I have had a hard time understanding pointers beyond a simple array step through and modifying one address at a time. When I get into pointers to C-structures, C++-objects and classes my head starts to hurt. And that's just to name a few. I find the C syntax `*++p` …

Member Avatar for mike_2000_17
0
433
Member Avatar for lewashby

if I have something like the following file = open(filename, 'rb') for line in file: #do stuff Once I find what I'm looking for in file and it's placed in the line variable, how could I then capture that position withing file, not just line?

Member Avatar for lewashby
0
204
Member Avatar for lewashby

I have a few questions about libraries and header files. Since libraries are binary files and header file are source/text files why do they not just compile the header files along with the rest of the library files? It doesn't make sense to me to have libraries that are binary …

Member Avatar for gusano79
0
183
Member Avatar for lewashby

I recently re-installed my Mint system and now vim does not auto indent when writing code and has poor color coding. Does any one know what I need to change and where the config file for that is? Thanks.

Member Avatar for JasonHippy
0
163
Member Avatar for lewashby

Is there a way to set an NFS shared directory to my recursivly chared via NFS, that directory including sub directories?

0
163
Member Avatar for lewashby

I'm currently building a headless Debian NFS media server and I'm doing most of my testing on my desktop. My cliant streaming device will by my "WD TV Live' TV streamer because it can read a Linux NFS network, I hate Samba. One of my problems is that the TV …

0
165
Member Avatar for lewashby

If you're creating a media server how do you control if the files are pushed out via tcp or udp? Or is that a client thing? I'm currently building a headless Debian media server and I was wonsering how that words. As far as streaming videos in my house either …

Member Avatar for Traevel
0
598
Member Avatar for lewashby

When I delete files on any given file system like hard drives that I have mounted to my system or USB stick I get a directory that usualy named '.Trash-1000'. How does that directory work? Do I need to manually delete the .Trash-1000 directory because it might remain taking up …

Member Avatar for rubberman
0
346
Member Avatar for lewashby

I don't know if this is a Linux Mint problem or a Debian problem. I use Mint as a desktop but I just installed a standard no GUI edition of Debian for my media server. I was going to use the Mint file browser Nemo to connect to the Debian …

Member Avatar for lewashby
0
355
Member Avatar for lewashby

Just got my nephew an HP Windows 8.1 laptop and either he can't remember the password that he just created or something is messed up. Is there a way to reset the password or do a hard reset if you can't even get logged in? Thanks.

Member Avatar for gerbil
0
172
Member Avatar for lewashby

In the following program it says that there is a conflict between my getline and the getline in stdio.h. I understand what it's saying because stdio.h has it's own getline function. What's confusing me is that this is the program that my programming book (The C Programming Language) is giving …

Member Avatar for deceptikon
0
180
Member Avatar for lewashby

I was using the Linux Mint Flawless media server to host all my movie rips as .mkv files but I decided to go with a standard no GUI Debian server instead. I set up an NFS server to host my files with the most likely client to be my Western …

Member Avatar for lewashby
0
365
Member Avatar for lewashby

I need to use the tar command to unpack a .tar.gz file and I need to do it from root but when the files unpack I want them to be owned by a specific user, not the root user. Can someone give me a hand?. I found the man pages …

Member Avatar for rubberman
0
709
Member Avatar for lewashby

[Linux] Mint I wrote the following code from an SDL book I have and it seems to be building just fine but when I go to run the program I get this error -> "Launch failed, Binary not found." I used Eclipse as my IDE and the setting are adjusted …

Member Avatar for tinstaafl
0
272
Member Avatar for lewashby

When I compile the following two programs one of them compiles and one of themse does not but I don't see a difference. The smaller program is the same only I've taken out a lot of the code so that I'm left with only the minimum that I need to …

Member Avatar for mike_2000_17
0
4K
Member Avatar for lewashby

I have I Brother Laser printer and it seems to be pring everytying just fine. But when I go print some property listings from a realesate company it all the sudden will not print at all and I get the following error. -> There was a problem processing documents 'flexmls'(job …

Member Avatar for lewashby
0
218
Member Avatar for lewashby

I'm a little confused about inlining member functions. Does all code actually have to be on one line or does it simply mean writing the whole function inside the class rather than from outside using the :: syntax?

Member Avatar for deceptikon
0
131
Member Avatar for lewashby

In the following program, where is pt1 getting it's values (1, 0)? I get pt3's values (5, 10) because I can see them in the code. #include <iostream> using namespace std; class Point { private: int x, y; public: Point() {} Point(int new_x, int new_y) { set(new_x, new_y); } void …

Member Avatar for AndrisP
0
127
Member Avatar for lewashby

In the program below I'm a little confused with these two lines -> `fbin.seekp(n * recsize);` & `fbin.write(reinterpret_cast<char*>(&age), sizeof(int));` In the first one, why would we start writing to the file at position n * recsize instead of position 0? I would think that we would start writing at 0 …

Member Avatar for deceptikon
0
132
Member Avatar for lewashby

I have an iBasso digital music player and I need a little help uisng rsync. I want to copy all of my muisc from /home/garrett/Music/ into my SD card which is at /media/garrett/6BF6-AC8A/ I'm currently using the command `rsync -a --delete /home/garrett/Music/ /media/garrett/6BF6-AC8A/` The thing is I would also like …

Member Avatar for mike_2000_17
0
232
Member Avatar for lewashby

I've been reading 'Learn C++ By making Games' and it uses the SDL library. The problem is the book has poor code examples, a lot of them don't even show the #include <libraries> instead jump straight to the main() function. So I just ordered the book 'Linux Graphics Programming with …

Member Avatar for lewashby
0
703
Member Avatar for lewashby

I'm trying to add /home/garrett/bin/libpy/ to my python path so I can import my own libraries, I would also prefer not to overwrite the default python path but rather append my own path to the default. When I try to `echo $PYTHONPATH` or `$PYTHONHOME` I get nothing and even if …

Member Avatar for Gribouillis
0
701
Member Avatar for lewashby

In the following program what is `ifstream`? It looks like it might be a Class name making `file_in` an object of that class passing `filename` as an argument but this particular book hasn't touched OOP yet so I wasn't sure. #include <iostream> #include <fstream> using namespace std; int main() { …

Member Avatar for NathanOliver
0
335
Member Avatar for lewashby

One of my C++ books was showing the line `cin.getline(arg, arg)` and later showing `getline(cin, arg)`. Why is the second one not object.function and yet have the object as one of the arguments? What's the difference?

Member Avatar for lewashby
0
327
Member Avatar for lewashby

#include <iostream> class Book { public: Book(char* char*); private: char* title; // dynamic pointer to char array char* author; // dynamic pointer to char array public: Book& Book::operator=(const Book& b) { if(this != &p) // make sure it's not the same object { delete [] author; // delete author memory …

Member Avatar for rubberman
0
215
Member Avatar for lewashby

The book I'm using continues to give me code and fails to explain the syntax. I got to a chapter on operator overloading and it gave me some code but didn't actually explain any of the code. I having trouble understanding the Rectangle operator+ line and that methods contents. Why …

Member Avatar for lewashby
0
193
Member Avatar for lewashby

What is the difference between these two classes? In the second one `protected:` looking like it isn't doing anything at all, there's nothing under it umbrella. class Tank { protected: int wheels; public: void setWheels(int newWheels) { wheels = newWheels; } int getWheels() { return wheels; } }; /////////////////////////////////////////////////////////////// class …

Member Avatar for lewashby
0
184
Member Avatar for lewashby

I'm reading my C++ book and I've come to a chapter on structures and unions. The book has tried to explain the difference but I'm not getting it's explanation. Playing with the structure examples in the book reminds me of accessing attributes to a python Class but apart from that, …

Member Avatar for cheryllocascio
0
195
Member Avatar for lewashby

I'm reading 'C++ Programming in easy steps' and the program the book has given me will not compile. Compile line -> `g++ -g -Wall "${ARG}" -o "${ARG:: -4}" &&` ARG is command line argument 1. object.cpp:7:5: error: ‘string’ does not name a type string color; ^ object.cpp:14:19: error: ‘string’ has …

Member Avatar for lewashby
0
231
Member Avatar for lewashby

In the program below what is the difference between rand and srand? My book says that rand returns an int between 0 and RAND_MAX, which is never smaller than 32,767. Yet this code returns a number from 1-6, how is that? I see the line `( rand() % 6 ) …

Member Avatar for deceptikon
0
216
Member Avatar for lewashby

I just re-installed my Mint system and now I can't get php to work. I've tested apache and it seems to be working just fine, entering localhost into the URL brings up that default page in /var/www/ but when I created a small php file called testphp.php with nothing but …

Member Avatar for lewashby
0
196
Member Avatar for lewashby

I copied the following from a back but I'm getting the erros that you see at the bottom of the page. #include <SDL/SDL.h> #include <stdio.h> #include <stdlib.h> int main() { int main() SDL_Surface *screen; if(SDL_Init(SDL_INIT_VIDEO) != 0) { printf("Unable to initialize SDL: %s\n", SDL_GetError()); return 1; } atexit(SDL_Quit); screen = …

Member Avatar for lewashby
0
237
Member Avatar for lewashby

I'm reading a book on C and it's telling me how to use gcc and about the -c option/flag. It reads "-c Compiles to an object (.o) file instead of an executable. This is important for creating library files." What is an object file and how is this good for …

Member Avatar for rubberman
0
144
Member Avatar for lewashby

I have an iBasso DX50 digital music player and I have all of my music for it stored on a 128 GB micro SD card. I sync my music directory to it using the following command. `rsync -a --delete SRC DEST` but I've noticed some odd behavior. I thought the …

Member Avatar for elicro
0
375
Member Avatar for lewashby

I recently installed Windows Server 2008 and how my BIOS keeps setting the Windows boot as the default boot rather than Linux even though I keep setting the Linux SSD as the primary. Any ideas on why it keeps getting reset to Windows in the BIOS? I have 3 OSs …

Member Avatar for lewashby
0
232
Member Avatar for frankie198

I like WingIDE, you can det it from http://www.wingware.com It's not free but it's a good IDE designed specifically for python.

Member Avatar for Jack_9
0
855
Member Avatar for lewashby

I just tried installing MS Server 2008 R2 and it seemed to install fine but when I try and start it this is what I get and the black and white screen with all the BS. File \Windows\systm32\winload.efi Status 0xc0000428 Any ideas?

Member Avatar for JorgeM
0
314
Member Avatar for lewashby

I'm trying to mount my SD card to my computer because the auto mount feature isn't working for some reason. The card shows up on the first line of the 'lsusb' command, I know that's it because that line goes away when I take the card out and re-run the …

Member Avatar for happygeek
0
238
Member Avatar for lewashby

For the past week I have been unable to update my Linux Mint 15 Cinnamon desktop. The shield at the bottom right corner of the screen just shows a red X, when I click on the shield and enter my password this is what I get -> http://pastebin.com/BpC29xhf

Member Avatar for rubberman
0
93
Member Avatar for lewashby

I just gutted one of my old desktop as am thinking about building a server. How do I know what size form factor this case needs. I'm assuming it's ATX or micro-ATX but I don't know.

Member Avatar for lewashby
0
102
Member Avatar for lewashby

builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 14: invalid continuation byte I'm getting the following error that pops up not in my script but in the codecs.py file. I've used code exactly like this in another program and it worked just fine. Any ideas? Script below. #/usr/bin/env python3 …

Member Avatar for snippsat
0
822

The End.