Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Hopalonghacksaw

Member
  • Content Count

    34
  • Joined

  • Last visited

Awards


About Hopalonghacksaw

  • Title
    Member
  • Birthday 2003-07-17

Contact Methods

  • Steam
    Hopalonghacksaw
  • Twitch.tv
    Hopalonghacksaw
  • Twitter
    @hopalonger

Profile Information

  • Gender
    Male
  • Location
    USA
  • Interests
    Computers, football, basketball, tinkering with electronics
  • Biography
    Alto Sax
  • Occupation
    WHY AM I HERE

System

  • CPU
    2600k
  • Motherboard
    Msi Pg-65b3
  • RAM
    32gb
  • GPU
    MSI Geforce Gtx 1060 Gaming X
  • Storage
    128gb hyper X savage 2x 256gb Western digital hard drives
  • PSU
    600w Antec
  • Display(s)
    Acer x203h, acer k202hql
  • Cooling
    212 evo
  • Keyboard
    Corsair RGB Strafe
  • Mouse
    Logitech MX-4000
  • Sound
    Cheap speakers
  • Operating System
    Windows 10

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I am Using A Script that I pulled from Github Here for a school project and Have Zero Clue what is causing the Size Of Error that I get when I run the code. I have have pretty much recreated His Example code and it I am running on PHP 7.4.2 Which should present no issues. I have looked at the code and have No Clue Where the Error Comes from and when I look at the code and underlying math I have Zero Clue how it works becasue of the fact that I see there is no value being set for Points but they end up pulling the value from count of and Parsing it into an array. Now I could run the Program and just turn off error reporting but that has put me in a bad situation where I slam my PC with 20,000+ Errors on a single page which is the back end of my Server. The Specific Error that I get is Warning: sozeof(): Parameter must be an array or an object that implements Countable in SERVERDIR\stlcalc.php on line 147. This happens in the Read Triangle Function Which is very important to the program overall as counting the triangles is Key to Slicing the STL file and getting overall Statistics, if there is another peice of code that can do this and it currently functions Please send it my way. Thanks for any help in Advance
  2. Overall Idea So I have had this idea kicking around for some time. The overall concept is that You can have a Distributed network of Hobbyist Makers connected together to complete tasks created by other people. The System would make it so almost all hobbyist can be accepted to the site if they complete any certification and can start doing certain jobs. Paying People for there hobby's and lowering the price for low demand custom goods. Services The services that would be offered would be Turing an Idea, Model, Or Product into an Model, Product, or Mass production item. For Modeling a simple show of skills would be easy to make a person certified which also makes it so almost anyone can make money doing very little. There would also be the Physical Production aspects which would require the person who wants to make to order a certification kit and Send it back once its completed so it can be reviewed. The Reviewing process would then Give Them a overall skill level which would be a factor in what jobs the Maker can accept based off of things. 3d Modeling Welding (All Types) 3d Printing Soldering CNC (I Know there is a lot of these but yeah) Job Flow The Makers have a pretty easy flow for getting work and getting paid. I really don't think it's going to be a hard time to get people to join the site to make things because who does not want to be paid for there hobby's while being there own boss. This would allow for pretty high quality and competitive pricing for people which helps most people overall. Search Jobs -> Find Job -> Either Bid On Job or Accept Job -> Get Portion of pay -> Build what ever is required -> Send Over items -> Get rest of pay Job Creation Sources The way that jobs can be created I envision would come from a few sources. 1. Someone who has a little product and wants outsorced manufacturing from the same people as them 2. Someone Who has an Idea they want to make a product 3. Someone who has found an opensource product and wants it made for them either Custom or not How the Site makes Money The Site makes money in 3 Simple ways: 1. Taking a 7% Cut of The Price of Job Creation Which comes out of the creator side not the Maker Side 2. Advertisements for highly targeted products for 3. Online Store that is connected to the payout system. This allows for users to buy new tools and some extra things with Credits for working (there would also be cash/Check payouts) Overall I would love some input on the idea. I have just created the First working version of the site and it needs a lot of work to be done. I have not released it fully yet as I just Don't know if it is worth the time to keep working on. If you have any questions please ask them so I can Work on the overall idea. The more feedback the better. Also is there a better place that I should post this to get more input on this?
  3. Thanks So much I figured It out. In the row messages I did not set a value and there was no default so that is why it did not insert. I also had a header redirect so it could not display errors.
  4. So I just Tried That and I Still Got No change. I really have no clue what was going on.
  5. So I am having a problem with PHP and inserting into A database. So here is the Code I have that is supposed to insert into a database public static function createJob($user_id,$value,$files,$local,$shipping,$print,$weld,$cnc,$solder,$laser,$timeframe,$zipcode,$material, $material2,$desc,$start,$end) { $database = DatabaseFactory::getFactory()->getConnection(); $sql = "INSERT INTO jobs (createid,3dprint,weld,cnc,solder,laser,files,pay,material,local,zipcode,timeframe,material2,description,startstage,endstage) VALUES(:user_id,:print,:weld,:cnc,:solder,:laser,:files,:pay,:material,:local,:zipcode,:timeframe,:material2,:desc,:start,:end"; $query = $database->prepare($sql); // Insert Data into Rows $result = $query->execute(array( ':user_id' => $user_id, ':print' =>$print, ':weld' => $weld, ':cnc' => $cnc, ':solder' => $solder, ':laser' => $laser, ':files' => $files, ':pay' => $value, ':material' =>$material, ':local' => $local, ':zipcode' => $zipcode, ':timeframe' => $timeframe, ':material2' => $material2, ':desc' => $desc, ':start' => $start, ':end' => $end )); //check if function executed properly return $result; } So I call This Function and Get Zero Errors. I have Error Reporting On with the Report all Errors set to 1 and I have checked the php logs and mysql logs with no problems. I have checked and the data is being processed and passed through. I Also get no result when I run the function It Just Doesnt Work for Some Reason Here is the table that I am trying to insert into. CREATE TABLE IF NOT EXISTS `jobs` ( `job_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'auto incrementing user_id of each user, unique index', `active` tinyint(1) NOT NULL DEFAULT '0', `createid` int(11) NOT NULL, `doid` int(11) DEFAULT NULL, `3dprint` tinyint(1) NOT NULL DEFAULT '0', `weld` tinyint(1) NOT NULL DEFAULT '0', `cnc` tinyint(1) NOT NULL DEFAULT '0', `solder` tinyint(1) NOT NULL DEFAULT '0', `description` varchar(5000) COLLATE utf8_unicode_ci NOT NULL, `files` varchar(25) COLLATE utf8_unicode_ci NOT NULL, `pay` decimal(8,2) DEFAULT NULL, `reviewed` tinyint(1) NOT NULL DEFAULT '0', `material` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `local` tinyint(1) NOT NULL DEFAULT '0', `zipcode` int(6) NOT NULL, `timeframe` int(2) NOT NULL DEFAULT '2', `shipping` decimal(10,0) NOT NULL DEFAULT '0', `material2` varchar(500) COLLATE utf8_unicode_ci NOT NULL, `laser` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'New Tool', `Cdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `dodate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `Message` varchar(5000) COLLATE utf8_unicode_ci NOT NULL, `startstage` int(5) NOT NULL COMMENT 'What Stage did it start at', `endstage` int(5) NOT NULL DEFAULT '1' COMMENT 'What stage will it end at', PRIMARY KEY (`job_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tasks Table'; Any Help Would Be Appreciated.
  6. Update: I changed the SQL Query and now it magically works without a problem. Hmm I guess I should not use the generated phpmyadmin Query
  7. I just did that and the getPublicProfilesOfAllUsers() function returns data just fine but getUserExtensionOfAllUsers() function does not return any data what so ever. Is there some differences in the functions that I am missing that would affect if there is data being returned? public static function getPublicProfilesOfAllUsers() { $database = DatabaseFactory::getFactory()->getConnection(); $sql = "SELECT user_id, user_name, user_email, user_active, user_has_avatar, user_deleted FROM users"; $query = $database->prepare($sql); $query->execute(); $all_users_profiles = array(); foreach ($query->fetchAll() as $user) { // all elements of array passed to Filter::XSSFilter for XSS sanitation, have a look into // application/core/Filter.php for more info on how to use. Removes (possibly bad) JavaScript etc from // the user's values array_walk_recursive($user, 'Filter::XSSFilter'); $all_users_profiles[$user->user_id] = new stdClass(); $all_users_profiles[$user->user_id]->user_id = $user->user_id; $all_users_profiles[$user->user_id]->user_name = $user->user_name; $all_users_profiles[$user->user_id]->user_email = $user->user_email; $all_users_profiles[$user->user_id]->user_active = $user->user_active; $all_users_profiles[$user->user_id]->user_deleted = $user->user_deleted; $all_users_profiles[$user->user_id]->user_avatar_link = (Config::get('USE_GRAVATAR') ? AvatarModel::getGravatarLinkByEmail($user->user_email) : AvatarModel::getPublicAvatarFilePathOfUser($user->user_has_avatar, $user->user_id)); } return $all_users_profiles; } public static function getUserExtensionOfAllUsers() { $database = DatabaseFactory::getFactory()->getConnection(); $sql = $sql = "SELECT * FROM userextension WHERE userid > 10"; $query = $database->prepare($sql); $query->execute(); $all_users_profiles = array(); foreach ($query->fetchAll() as $user) { // all elements of array passed to Filter::XSSFilter for XSS sanitation, have a look into // application/core/Filter.php for more info on how to use. Removes (possibly bad) JavaScript etc from // the user's values array_walk_recursive($user, 'Filter::XSSFilter'); $all_users_stuff[$user->userid] = new stdClass(); $all_users_stuff[$user->userid]->all = $user; $all_users_stuff[$user->userid]->user_id = $user->userid; $all_users_stuff[$user->userid]->address1 = $user->address1; $all_users_stuff[$user->userid]->address2 = $user->address2; $all_users_stuff[$user->userid]->state = $user->state; $all_users_stuff[$user->userid]->city = $user->city; $all_users_stuff[$user->userid]->zipcode = $user->zipcode; $all_users_stuff[$user->userid]->fullname = $user->fullname; $all_users_stuff[$user->userid]->stripeid = $user->stripeid; $all_users_stuff[$user->userid]->balance = $user->balance; $all_users_stuff[$user->userid]->totalpay = $user->totalpay; $all_users_stuff[$user->userid]->totaljobs = $user->totaljobs; $prints = "3dprints"; $all_users_stuff[$user->userid]->$prints = $user->$prints; $all_users_stuff[$user->userid]->weld = $user->weld; $all_users_stuff[$user->userid]->cnc = $user->cnc; $all_users_stuff[$user->userid]->solder = $user->solder; $all_users_stuff[$user->userid]->phone = $user->phone; $all_users_stuff[$user->userid]->num = "100"; } return $all_users_profiles; } Any Help would be great.
  8. I am working on a project that is based of the the Huge PHP login Framework on Github. I am Working on adding in the other database tables for the users and I want to make it so I can see the data in the table on the admin page. The Admin index page has this implemented for the current table but I have created a page that is for the rest of less accessed information that an admin does not need to look at on a regular basis. I copy and pasted the getPublicProfilesOfAllUsers() from the UserModel.php and added it right below along with the changes to the code that I saw as necessary. Then I mapped the function and values on the admin controller page. I also created a basic html page that was based of the admin page that showed normal user information and I removed the code that I felt was not necessary. I know I have data in my Mysql Database in the table so I really don't know why its not being passed through to the html page. I have tried setting default values on the model page and still I get no information passed through to the webpage I don't know that I did wrong and it would be a big help if I could get some pointers. UserModel.php index.php private.php AdminController.php
  9. You could disable autobed leveling by either removing the GCODE that does autobed leveling which I belive is the “G29” Command. The other option is to unplug the sensor and start the print with the bed manually leveled and the print head very close to the bed and going from there.
  10. I personally have a Anet a8 and it cant print a decent square but at school we have Prusa Mk3 and they are amazing for what they can do. If you really want more info Check out Make’s 3d printer round up they did a large number of price points and had nice graphs and everything.
  11. I know some people who are into complex mechanical devices such as mechanical calcuators so I will message them and see if they are willing to look at it. If We had larger scans I could definetly look at the logic and see where the fault might be.
  12. There is also the power problem. I doubt that this screen is going to use under 3.5 to 5amps at5v just because of how much power is used for a standard screen. Plus you might want to plug in your phone to charge things. So personally I would go for a bigger battery but it starts to near the super book price range so it might just be worth it to go buy a super book if you still see it as an option. Unless you want to build your own battery which is possible despite what linus says about spot welding and heating batterys it probably will be cheaper to buy a super book but It would be a great project that could be made better by the adition of a raspberry pi or any other small computer that could be used for desktop replacment or sent up as a thin client. Overall looks like a good fun project if your up for it but its not the most practical. I have done similar with a old laptop display some batterys and A Raspberry pi and it was great for learning but terrible for anything useful.
  13. So I am using the SP racing f3 Flight controller and it works great for my big quad well on my small racing quad. To anwnser the second question about firmware. Yes there is firmware that goes onto the quad. There are a ton of places that have better resouces than me so I would recommend you start searching about “ Inav” or “Cleanflight”. Those are 2 biggest firewares that come to mind and have lots of vidoes showing how to do things. You will need to make sure that your flight controller supports the firmware but there is a large number of supported controllers out there. Once flashed there are lots to configure on your computer and upload to flight controller. You get access to large amounts of tuning and all sensors that are connected or built in to the controller. There is a lot to learn about RC drones so I recommend watching the Hak5 Racing drone series before you start. Also There are many ways to connect your RC controller to a flight controller so your likely to have support it is more of just seting up one way for them to communicate and making sure its solid. Hope this helps
  14. There is a great Program made for the esp8266. It has a Webserver running on the Esp8266 then you can edit values there with very little software. Its a great arduino project that is a bit complex but I have used it and the instrutions are pretty good. It might seem overwhelming but I can help walk you through the process if you need it. I also belive that there is a video or 2 that shows instuctions also. https://github.com/jasoncoon/esp8266-fastled-webserver/blob/master/README.md
  15. Ok thank you all for the recomendations. I will definetly start with the basics before I move on. I will probably do some online study guides for A+ and Net+ to start and go from there.
×