• Member Avatar for lewashby
    lewashby

    Began Watching laptop will not start

    My brothers laptop recently died, I believe due to a failed hard drive because when you turned it on you couldn't get out of the BIOS. I unscrewed the laptop's …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in python list comprehension

    Thanks. So is student a dictionary in each iteration of this code?
  • Member Avatar for lewashby
    lewashby

    Created python list comprehension

    import pymongo uri = "mongodb://127.0.0.1:27017" client = pymongo.MongoClient(uri) database = client['fullstack'] collection = database['students'] students = [student['mark'] for student in collection.find({}) if student['mark'] == 99.0] print(students) In the program above …
  • Member Avatar for lewashby
    lewashby

    Began Watching python list comprehension

    import pymongo uri = "mongodb://127.0.0.1:27017" client = pymongo.MongoClient(uri) database = client['fullstack'] collection = database['students'] students = [student['mark'] for student in collection.find({}) if student['mark'] == 99.0] print(students) In the program above …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in starting mongodb

    Okay so I fixed that and now I'm getting this. Sun Jan 10 14:57:42.529 [initandlisten] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017 Sun Jan 10 …
  • Member Avatar for lewashby
    lewashby

    Created starting mongodb

    When I tried to start MongoDB with the `mongod` command I got the following. garrett@mint-desktop ~ $ mongod mongod --help for help and startup options Sun Jan 10 14:50:55.049 [initandlisten] …
  • Member Avatar for lewashby
    lewashby

    Began Watching starting mongodb

    When I tried to start MongoDB with the `mongod` command I got the following. garrett@mint-desktop ~ $ mongod mongod --help for help and startup options Sun Jan 10 14:50:55.049 [initandlisten] …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in CSS, aligning in a table cell

    I changed my css from this .`facility { position: relative; float: top; float: right; }` to this `.facility { text-align: right; vertical-align: top; color: red; }` And the text that …
  • Member Avatar for lewashby
    lewashby

    Created CSS, aligning in a table cell

    I'm trying to align 3-5 items up in a table cell, three are on the top and two are on the bottom. In each of my table cells I want …
  • Member Avatar for lewashby
    lewashby

    Began Watching CSS, aligning in a table cell

    I'm trying to align 3-5 items up in a table cell, three are on the top and two are on the bottom. In each of my table cells I want …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in Trying to understand the POST form variable

    I wasn't getting an error or anything it's jut that I noticed that my POST variables appeared in the URL, `.com?var=x&var=y` What do you mean that my HTML MUST have …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in Trying to understand the POST form variable

    Thanks, I'll give that a try. Here's my code. <?php require_once('init.php'); $inmates = Inmate::get_inmates('COURT'); foreach($inmates as $inmate) { print $inmate->get_property('first_name') . " " . $inmate->get_property('last_name') . " " . $inmate->get_property('number') …
  • Member Avatar for lewashby
    lewashby

    Created Trying to understand the POST form variable

    http://www.w3schools.com/php/php_forms.asp On the page above I read that GET variables are send via the url and POST variables are sent as an HTTP request. When I tried POST with a …
  • Member Avatar for lewashby
    lewashby

    Began Watching Trying to understand the POST form variable

    http://www.w3schools.com/php/php_forms.asp On the page above I read that GET variables are send via the url and POST variables are sent as an HTTP request. When I tried POST with a …
  • Member Avatar for lewashby
    lewashby

    Marked Solved Status for constructor const arguments

    I'm reading 'C++ For Dummies 7th Edu' and I'v ran into this little snipet that's confusing me. BOOK You can add const-ness, however, as in the following void fn(char* pName) …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in constructor const arguments

    Thanks.
  • Member Avatar for lewashby
    lewashby

    Created constructor const arguments

    I'm reading 'C++ For Dummies 7th Edu' and I'v ran into this little snipet that's confusing me. BOOK You can add const-ness, however, as in the following void fn(char* pName) …
  • Member Avatar for lewashby
    lewashby

    Began Watching constructor const arguments

    I'm reading 'C++ For Dummies 7th Edu' and I'v ran into this little snipet that's confusing me. BOOK You can add const-ness, however, as in the following void fn(char* pName) …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in setting up xdebug for php on Linux

    Update, as of today I'm not getting these errors under the /var/log/apacher/error.log file, note that I wasn't even trying to edit the project under the udemy directory, that must have …
  • Member Avatar for lewashby
    lewashby

    Created setting up xdebug for php on Linux

    I followed this site -> https://www.box.com/blog/how-to-debug-php-with-vim-and-xdebug-on-linux/ but I'm not having much luck. I followed the firections and my phpinfo() functions is showing that xdebug is up and running but I …
  • Member Avatar for lewashby
    lewashby

    Began Watching setting up xdebug for php on Linux

    I followed this site -> https://www.box.com/blog/how-to-debug-php-with-vim-and-xdebug-on-linux/ but I'm not having much luck. I followed the firections and my phpinfo() functions is showing that xdebug is up and running but I …
  • Member Avatar for lewashby
    lewashby

    Marked Solved Status for Access denied for mysqli/mariaDB from php

    I get the following in my web browser when I try to connect to my mariaDB database. `Error!: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)` It also …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in Access denied for mysqli/mariaDB from php

    Thanks, that got it.
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in Access denied for mysqli/mariaDB from php

    <?php include('./constants.php'); try { $connection = new PDO("mysql:host=$host; dbname=$db_name, $db_user, $password"); } catch (PDOException $e) { print "Error!: " . $e->getMessage() . "<br />"; die(); } ?>
  • Member Avatar for lewashby
    lewashby

    Created Access denied for mysqli/mariaDB from php

    I get the following in my web browser when I try to connect to my mariaDB database. `Error!: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)` It also …
  • Member Avatar for lewashby
    lewashby

    Began Watching Access denied for mysqli/mariaDB from php

    I get the following in my web browser when I try to connect to my mariaDB database. `Error!: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)` It also …
  • Member Avatar for lewashby
    lewashby

    Created C++ heap memory and pointers

    I hot the following program from the book 'C++ For Dummies' but have two questions about it. First I compiled the program but I'm afraid to run because the memery …
  • Member Avatar for lewashby
    lewashby

    Began Watching C++ heap memory and pointers

    I hot the following program from the book 'C++ For Dummies' but have two questions about it. First I compiled the program but I'm afraid to run because the memery …
  • Member Avatar for lewashby
    lewashby

    Created firefox downloads failing

    I use firefox from Linux and Firefox keeps dropping my downloads, I don't know if this issue is specific to the Linux version or not. Is anyone else having this …
  • Member Avatar for lewashby
    lewashby

    Began Watching firefox downloads failing

    I use firefox from Linux and Firefox keeps dropping my downloads, I don't know if this issue is specific to the Linux version or not. Is anyone else having this …
  • Member Avatar for lewashby
    lewashby

    Began Watching Want to program in C++, finding the process of preparation too difficult

    I'm pretty good with Java but I would like to learn to create interesting things with C++ or C. At the moment I have to ask: Why do all of …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in Want to program in C++, finding the process of preparation too difficult

    I'm not a professional programmer by any stretch of the imagination so here are my novice thoughts for what they are worth. I've played around with VS a few years …
  • Member Avatar for lewashby
    lewashby

    Marked Solved Status for Locked out of phpmyadmin

    Linux Mint I logged into phpmyadmin and set the password option to 'no password' and now I can't log in. If I enter the password I was using I get …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in Locked out of phpmyadmin

    I'm trying it. How the heck is root getting 'Permission denied'? mint-desktop ~ # kill $(/var/run/mysqld/mysqld.pid) -su: /var/run/mysqld/mysqld.pid: Permission denied kill: usage: kill [-s sigspec | -n signum | -sigspec] …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in Locked out of phpmyadmin

    Nope garrett@mint-desktop ~ $ mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) This all happened after one adjustement in the myphpadmin …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in Locked out of phpmyadmin

    Now I've went a step further. I uninstalled phpmyadmin and I made a point to delete the /etc/phpmyadmin directory to be sure no old settings were still around and yet …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in Locked out of phpmyadmin

    I placed that line in my /var/etc/phpmyadmin/config.inc.php and now I'm getting a syntax error when I try to load phpmyadmin. I can click on pretty much anything and the error …
  • Member Avatar for lewashby
    lewashby

    Created Locked out of phpmyadmin

    Linux Mint I logged into phpmyadmin and set the password option to 'no password' and now I can't log in. If I enter the password I was using I get …
  • Member Avatar for lewashby
    lewashby

    Began Watching Locked out of phpmyadmin

    Linux Mint I logged into phpmyadmin and set the password option to 'no password' and now I can't log in. If I enter the password I was using I get …
  • Member Avatar for lewashby
    lewashby

    Marked Solved Status for tar command output?

    garrett@mint-desktop /var/www/html/udemy/php-oop/gallery/backups $ tar --exclude-tag-all=backups -cf lesson20.tar ../* tar: Removing leading `../' from member names I have an empty file called backups in my backups directory to keep the tar …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in tar command output?

    Okay, what will that do? I know when I run `tar tvf lessonxx.tar` on my tar files that it does list everything inside so it seems to be creating a …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in tar command output?

    I'm not running this command from /, or as root. I'm trying to backup the web project that I'm doing from the onine udemy class and it's stored at /var/www/html/udemy/php-oop/gallery/ …
  • Member Avatar for lewashby
    lewashby

    Created tar command output?

    garrett@mint-desktop /var/www/html/udemy/php-oop/gallery/backups $ tar --exclude-tag-all=backups -cf lesson20.tar ../* tar: Removing leading `../' from member names I have an empty file called backups in my backups directory to keep the tar …
  • Member Avatar for lewashby
    lewashby

    Began Watching tar command output?

    garrett@mint-desktop /var/www/html/udemy/php-oop/gallery/backups $ tar --exclude-tag-all=backups -cf lesson20.tar ../* tar: Removing leading `../' from member names I have an empty file called backups in my backups directory to keep the tar …
  • Member Avatar for lewashby
    lewashby

    Marked Solved Status for breaking between php & html

    The php/html file I am working on is laid out in this way. <?php // connect to DB $connection ?> html html html <?php foreach($connection-query($sql) as $row) do stuff ?> …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in breaking between php & html

    Using try/except was on my todo list but I don't have any experience using error/exception handling. Thanks cereal it's mostly working now.
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in breaking between php & html

    In reality both code files are using the same database and table, same version of php on the same computer. GOOD $sql = "SELECT full_name FROM inmate_board WHERE tdoc_number =".$tdoc; …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in breaking between php & html

    Thanks I'll give that a try. I'm not actually using a '#' in my code. I just didn't want to post the actualy code because it's for my State's correctional …
  • Member Avatar for lewashby
    lewashby

    Replied To a Post in breaking between php & html

    This is the code I wrote at first and it's working with any problems. But when tried the same thing with my newer program I'm getting the error 'Invalid argument …
  • Member Avatar for lewashby
    lewashby

    Edited breaking between php & html

    The php/html file I am working on is laid out in this way. <?php // connect to DB $connection ?> html html html <?php foreach($connection-query($sql) as $row) do stuff ?> …

The End.