520 Posted Topics

Member Avatar for lewashby

I created a small table with one entrey with three columns but I can't get it to show up in my php code. I'm not really doing anything with the form variables right now I'm mainly focused on getting the code below that to query my SQLite DB. <?php // …

Member Avatar for pritaeas
0
382
Member Avatar for lewashby

I can not get a page to load from the following php program. When I load the page in the browser all I get is a blank white page. I also looked in the /var/log/apache2/error.log file and found this line -> [Sun Aug 25 21:36:37 2013] [error] [client 127.0.0.1] PHP …

Member Avatar for pritaeas
0
277
Member Avatar for k D chuki

kevinedwards are you saying the the software center is more powerfull than apt-get? If so, how so? I'm not assuming you're wrong, it's just that if you're right I would like to understand.

Member Avatar for kevinedwards
0
215
Member Avatar for lewashby

I'm getting `sed: -e expression #1, char 35: unterminated s' command` when I try and run the following script. Any ideas? #/bin/bash # # # This script is to be used to re-write a configuration file # replacing select values, SSID, IP, device name, gateway, # and frequency with the …

Member Avatar for lewashby
0
321
Member Avatar for lewashby

Using Linux. I'm trying to learn PHP so I'm also going to need to learn some MySQL to work with my PHP code. Do I need mysql client or mysql server? I thought it was on my system but after issuing the command 'mysql' I got the following error. garrett@bedroom …

Member Avatar for Trap910
0
282
Member Avatar for lewashby

In the following code I'm trying to figure out what InitDB is? I need to reconfigure these files for a particular website and to use SQLite. http://www.html-form-guide.com/php-form/php-registration-form.html <?PHP require_once("./include/fg_membersite.php"); $fgmembersite = new FGMembersite(); //Provide your site name here $fgmembersite->SetWebsiteName('user11.com'); //Provide the email address where you want to get notifications $fgmembersite->SetAdminEmail('user11@user11.com'); …

Member Avatar for veedeoo
0
794
Member Avatar for lewashby

Any idea why this is happening? garrett@bedroom ~ $ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Member Avatar for lewashby
0
226
Member Avatar for lewashby

(Linux System) Everytime I try to log into MySQL or create a database I get "Access denied for user@localhost". I just recently installed mysql using apt-get install and I don't recal creating a password or anything for it when I installed it. Any ideas?

Member Avatar for 1stDAN
0
172
Member Avatar for lewashby

In the following script I need to know if the configuration files is for a 2.4 or a 5.2 radio. This info is found in the filename so I'm trying to use grep -l *2.4* to find out if it's a 2.4 config file or not. If it's not the …

Member Avatar for lewashby
0
413
Member Avatar for lewashby

I How can I get the output from grep into a variable? In the following program I've tried the SSID line two ways but I am not getting what I want. `SSID=$(grep) ${FILE} -o empty-ssid` Gives me this garrett@bedroom ~/Desktop/folder/project $ ./testScript.sh ../OLD-172.28.50.30-system.cfg Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep …

Member Avatar for lewashby
0
684
Member Avatar for lewashby

In the following program everything works fine when I enter 5 or 8, but if I enter 4 or 7 the program crashes with a Segmentation fault error. I'm just trying to add zeros until the number of characters in string is evenly divisible by 3 and I'm doing so …

Member Avatar for lewashby
0
172
Member Avatar for lewashby

How could I get the file name and the permissions to a file as a string? This is on a Linux system.

Member Avatar for james.lu.75491856
0
225
Member Avatar for lewashby

Any ideas on some good beginner projects for PHP? I'd like to at, some point in the future, get into front end development and although I have a little self taught programming knowledge I don't have any real work experience in I.T. or programming at all, just the programs you …

Member Avatar for diafol
0
179
Member Avatar for lewashby

I use Linux & Rhythmbox to manage my iPod but that is blocking me from being able to use the .aax audio book file from audible.com The .aax files work well with iTunes but since I don't use iTunes anymore I'm kinda out of luck. I could manually place the …

Member Avatar for lewashby
0
275
Member Avatar for lewashby

(Linux) In the following program when the command python permissions.ph is issued I simply get another prompt, but when python3 permissions.py is issued I get the error below. Why does python2 see tkinter but python 3 doesn't? garrett@bedroom ~/Projects/TestArea $ python permissions.py garrett@bedroom ~/Projects/TestArea $ python3 permissions.py Traceback (most recent …

Member Avatar for vegaseat
0
1K
Member Avatar for lewashby

I'm using LinuxMint 15. I'm getting the following errors when I tried to install the AMD CATALYS 13.1 Legacy driver. Any ideas what's wrong and what I can do? garrett@garrett-bedroom ~ $ cat /usr/share/ati/fglrx-install.log Detected a previous installation, /usr/share/ati/amd-uninstall.sh Dryrun uninstall succeeded continuing with installation. Check if system has the …

0
171
Member Avatar for lewashby

I'm looking throug the documentation at python.org for modules and functions allow me to do basic operations on in a Linux file system. I need to do simple things like list the file and folders in a directory 'ls' and change director 'cd'. I found these two pages that looked …

Member Avatar for lewashby
0
146
Member Avatar for lewashby

In the following program, why is the count function failing? I'M getting an error that it needs at leat one argument and that I have given it 0. I have here count(number), how is number no an argument? According to the documentation the start and end points are optional. I …

Member Avatar for lewashby
0
1K
Member Avatar for lewashby

If I wanted to host a game on let's say, Steam Counter-Strike, what setting to I need t use for port forwarding to let someone I know login using my routers IP address. I options are TCP/UDP, TCP, & UDP. Also, what should be my starting and ending ports? Thanks.

Member Avatar for aVar++
0
186
Member Avatar for lewashby

Please take a look at my fstab below. I'm trying to mount the HD stb onto /home/garrett/ but I don't know waht options I should choolse. Thanks for any and all replies. # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc …

Member Avatar for rubberman
0
147
Member Avatar for lewashby

I need to make a script run under my username each time the computer boots up. I have been told that the file I need is in the /etc/init.d/ directory but that's all I know. This script will not be service I shouldn't have to mess with all the 'S' …

Member Avatar for rubberman
0
82
Member Avatar for lewashby

I'M trying to get my .aax audio book file from my computer to my iPod but am having trouble. I don't use iTunes or Microshaft Window$ so it's a little more complicated. I'M using the Linux OS with Rhythmbox media player. I tried to manually move my .aax files to …

0
166
Member Avatar for lewashby

In the following program I'm trying to set the first, second, & third character values stored in processTheseThree [0], [1], & [2] to the int values D1, D2, & D3. When I tested my code with the line `std::cout << processTheseThree[firstSecondThird] << std::endl;` I was getting the correct values but …

Member Avatar for vijayan121
0
231
Member Avatar for lewashby

In the following script I'm trying to have an automated task to move all the screen shots I have taken with the "Prt Scr" button from ~/Pictures to ~/Pictures/ScreenShots Any ideas why it's not working. I did it at first with the mv command but was told by my instructor …

Member Avatar for lewashby
0
736
Member Avatar for lewashby

// Array for one's place char arrayOnes[10] = {"", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"} In the code above I'm having trouble declaring this array. I either get > error: too many initializers for ‘char [10]’

Member Avatar for mike_2000_17
0
179
Member Avatar for lewashby

In the following script I'm trying to have an automated task to move all the screen shots I have taken with the "Prt Scr" button from ~/Pictures to ~/Pictures/ScreenShots Any ideas why it's not working. I did it at first with the mv command but was told by my instructor …

Member Avatar for mike_2000_17
0
160
Member Avatar for lewashby

I'M trying to get backtrack Linux to boot from a USB flash drive. The book I'M reading is haivng me to a lot of formating and what not on the flash drive from the CLI and then use rsync to copy the contents of the backtrack disk to the flash …

Member Avatar for lewashby
0
376
Member Avatar for lewashby

In the following css and html document can anyone tell me why my page width css code isn't working? mystyle.css #page { width: 25%; } Here's the html page. <html> <head> <title>Bail Bonding</title> </head> <body> <link rel="stylesheet" type="text/css" href="mystyles.css" media="screen" /> <form action="bail.php" method="POST"> <div id="page"> <table width="25%"> <tr> <td>First …

Member Avatar for crescendo
0
184
Member Avatar for lewashby

In the following program I'M trying to take a number no more than 12 digits long and make it a factor of 3. If the input is 1, the program would turn the number into 001. If the input is 12, the program would turn the number into 012. If …

Member Avatar for tinstaafl
0
122
Member Avatar for lewashby

I'M wanting to write my own command/script for compiling my c++ files. I use g++ -g -Wall filename.cpp -o filename I'M trying to figure out how I can trip of the last four characters (.cpp) from a string. Any ideas?

Member Avatar for rojomoke
0
249
Member Avatar for lewashby

I'M trying to make the following web page fluid, or liquid. I want the page and form to resize as the browser is resized. Any idea on how I can accomplish this? Thanks. <html> <head> <title>Test</title> </head> <body> <link rel="stylesheet" type="text/css" href="mystyles.css" media="screen" /> <form action="bail.php" method="POST"> <div id="page"> <table …

Member Avatar for LastMitch
0
120
Member Avatar for lewashby

I need to move my favorites from my firefox on my Windows partiton to the firefox sitting on my Linux partition. What do I copy/cut the from on the Windows partition and where to I past them for firefox on the Linux partition? Thanks.

Member Avatar for Rik_
0
66
Member Avatar for lewashby

Note that I'M using Mint Linux with Cinnamon. I just got a new 250 Gig SSD and I'd like to have it mounted at /home/garrett. First of all, what's the best way to do this? Should I simply add a mount command to my .profile file? Secondly, I'M assuming that …

Member Avatar for rubberman
0
117
Member Avatar for lewashby

Does anyone know where you can buy 1080p movies and tv shows online with no drm? I hate having to use specifies software or a specific OS just to play video file. I prefer to place things on my own home server and use them when and how I want.

Member Avatar for rubberman
0
170
Member Avatar for lewashby

I recently had problems with Cinnamon DE and I had to temporarily download and install gnome3, which then altered the login screen a little. After I fixed my cinnamon problem and removed gnome3 I'M still stuck with this other login screen that I don't like as much as the original …

Member Avatar for SilverMecer
0
324
Member Avatar for Proglearner
Member Avatar for bsimms86
0
251
Member Avatar for lewashby

Just purchased a new Samsung 250 Gig SSD, extern & internal. When I pluged it into my Mint Linux desktop via USB it never showed up or auto mounted. When I tried to run the command 'sudo mount /dev/sdc /mnt' it gave me this error, 'mount: you must specify the …

Member Avatar for lewashby
0
184
Member Avatar for lewashby

I just went in to edit /boot/grub/grub.cfg and the first thing I seen in the file was this: # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # How am I to make changes if …

Member Avatar for lewashby
0
131
Member Avatar for lewashby

I'M using the program ByteCopy by PavTube to rip my DVD and BDs into .mkv files. The program can rip with lossless quality. The problem I'M having is that it's ripping each disk of my DVD and BD tv shows as one giant file rather than ripping each episode individually. …

0
60
Member Avatar for lewashby

How can I make the following web page liquid? I want the fomr to resize with the browser. <html> <head> <title>Bail Bonding</title> </head> <body> <form action="bail.php" method="POST"> <table width="25%"> <tr> <td>First Name:</td> <td align="right"> <input type="text" name="fname"></td></tr> <tr> <td>Last Name:</td> <td align="right"> <input type="text" name="lname"></td></tr> <tr> <td>Address:</td> <td align="right"> <input …

Member Avatar for lewashby
0
153
Member Avatar for lewashby

I'M trying to output a message if the PHP query on the MySQL database come back empty. But when I uncomment this line `//echo "No result found for entry";` not only does it fail to output this message when there is no match but it also fails to load the …

Member Avatar for Geffory
0
211
Member Avatar for lewashby

What's gvfs and why can't root access it? Emphasized Text Heremint-desktop ~ # du -sh /home/garrett du: cannot access `/home/garrett/.gvfs': Permission denied 73G /home/garrett

Member Avatar for lewashby
0
191
Member Avatar for lewashby

Note that this is on a Linux machine. I'M just starting to learn PHP and MySQL. I wrote the following php program that executes from an html form. Note that at this point the date from the html form is not being used to query the MySQL database. At this …

Member Avatar for pixelsoul
0
350
Member Avatar for lewashby

I've been having a problem with my php, apache, mysql. I can't find the problem so I'M gong to uninstall all of them and re-install them using tasksel. But when I type sudo apt-get remove mysql, it returns the following: garrett@mint-desktop ~ $ sudo apt-get remove mysql Reading package lists... …

Member Avatar for cereal
0
185
Member Avatar for lewashby

When I click a link a simple HTML web form linked to a php file, the browser is downloading the PHP file rather than executuing it in the browser. Any dieas?

Member Avatar for broj1
0
154
Member Avatar for lewashby

The following code block is producing and endless loop and I can't figure out why. Note that charv is just he second command line argument in the main function. int testNumber = 1; while(argv != '\0') { std::cout << testNumber; argv++; testNumber++; } I wrote this piece of code just …

Member Avatar for Suzie999
0
164
Member Avatar for lewashby

In the following html/php page why is my "select" tag not showing all the options? <html> <head> <title>Learning PHP & HTML</title> </head> <body> <form action="somefile.php" method="post"> <form> <table width="25%"> <tr> <td>First Name:</td> <td align="right"> <input type="text" name="fName"></td></tr> <tr> <td>Last Name:</td> <td align="right"> <input type="text" name="lName"></td></tr> <tr> <td>Phone Number:</td> <td align="right"> …

Member Avatar for lewashby
0
291
Member Avatar for lewashby

I'M trying to learn PHP (note that I am using Linux) and I'M having trouble keeping the /var/www directory clean. Since that is the directory that apache will host the files from, how can you keep that directory organized with and for multiple web projects or practive assignments from differenct …

Member Avatar for migcosta
0
91
Member Avatar for lewashby

I ran the command ifconfig and in addition to lo and eth0 I got this item that I have never seen before. Can anyone tell me what it is? virbr0 Link encap:Ethernet HWaddr da:1c:6c:2a:cb:80 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX …

Member Avatar for tnhjennis
0
248
Member Avatar for lewashby

I tried to run ./configure on a small program that the Linux book I'M reading instructed me to download and I got the error "no acceptable C compiler found in $PATH" I then tried to run atp-get install gcc, but then I got "unable to locate package gcc". Any dieas?

Member Avatar for naphets
0
173

The End.