# Class 1 # import java.awt.Canvas; import java.awt.Color; import java.awt.image.BufferStrategy; import java.awt.Graphics; import java.lang.Runnable; import java.lang.Thread; import javax.swing.JFrame; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import java.io.IOException; public class Game extends JFrame implements Runnable{ private Canvas canvas = new Canvas(); private RenderHandler renderer; private BufferedImage testImage; private Rectangle testRectangle = new Rectangle(30, 90, 100, 100); public Game() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(0,0, 1000, 800); setLocationRelativeTo(null); add(canvas); setVisible(true); canvas.createBufferStrategy(3); renderer = new RenderHandler(getWidth(), getHeight()); BufferedImage testImage = loadImage("Grass.jpg"); testRectangle.generateGraphics(12234); } private BufferedImage loadImage(String path){ try{ BufferedImage loadedImage = ImageIO.read(Game.class.getResource(path)); BufferedImage formattedImage = new BufferedImage(loadedImage.getWidth(), loadedImage.getHeight(), BufferedImage.TYPE_INT_RGB); formattedImage.getGraphics().drawImage(loadedImage, 0, 0, null); return formattedImage; } catch(IOException exception){ exception.printStackTrace(); …

Member Avatar
+0 forum 0

I'm looking to change the source of an image by using onclick to have the image source change more than once. The expected outcome is basically to have the user click one image, then it will change to image 1, once that is clicked it will chance to image 2, and so on. I am struggling to find a way to do so with more than 2 images? I have tried various different ways but just can't seem to find a way that works with more than 2. I am only a beginner so it is difficult finding where I …

Member Avatar
+0 forum 0

Hey! Having some more fun with htaccess again! - I have tired everyhting and cant get it to play... Below is my code: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{REQUEST_URI} !(/$|\.) RewriteRule (.*) %{REQUEST_URI}/ [R=301,L] RewriteBase /v2/ RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f # Admin Pages RewriteRule ^admin/$ admin/index.php [NC,L,QSA] RewriteRule ^admin/([a-z0-9\-]+)/$ admin/$1.php [NC,L,QSA] # Super Admin Pages RewriteRule ^master/$ master/index.php [NC,L,QSA] RewriteRule ^master/([a-z0-9\-]+)/$ master/$1.php [NC,L,QSA] # If none just normal page RewriteRule ^([a-z0-9\-]+)/?$ users/$1.php [NC,L,QSA] ` https://domain.com/ - should load users/index.php https://domain.com/login/ (or any /XXX/) - should load users/$1.php https://domain.com/master/ - should load master/index.php https://domain.com/master/xxx/ …

Member Avatar
+0 forum 0

hello, I am trying to learn c++, and I am trying to run this program to display the correct answers in the end. the user will be asked to input their answers to the 20 questions on the list. for what I have read, I think I should be using some if or nested if statements? please help, thank you. Also, this is not my assignment (as I was accused of from other forum I tried), I am already working and just trying to learn programming on my spare time. thanks again, code is below. #include <stdio.h> #include <conio.h> #define …

Member Avatar
+0 forum 0

Firefox Freezing Add-on My next proposal would be for you to open Firefox Freezing to Safe Mode and determine the status of in the event that you have any unfortunate additional items placed.Mozilla Firefox closes out of the blue, it will uncover an exchange box that prompts those surfing the web to present a report of the collide with designers of the program. In view of the accident report, Firefox designers will improve resulting forms of the program. Meanwhile, clients would need to think about investigating steps to determine it. Note that on the off chance that Mozilla Firefox Freezing …

Member Avatar
-1 forum 0

Magento 1.9 - How to include custom PHP Script into .PHTML file My magento tracking page: https://i.stack.imgur.com/3GIoN.png Back-end magento code : https://i.stack.imgur.com/ySgMA.png How can i add my PHP script into this tracking page. Tracking page code - trackorder.phtml [ https://i.stack.imgur.com/ySgMA.png ] <?php if(Mage::getStoreConfig('trackorder/trackorder_general/enabled')): ?> <div class="page-title"><h1><?php echo $this->__('Track Your Order ') ?></h1></div> <div class="form-list"> <form name="track_order" id="track_order" action="" method="post" onsubmit="sendAjax('track_order','<?php echo Mage::getUrl('*/*/track');?>'); return false;"> <!--<form name="track_order" method="post" id="track_order" action="<?php echo Mage::getUrl('*/*/view');?>">--> <ul class="form-list"> <li> <label for="order_id" class="required"><em>*</em><?php echo $this->__('Order Id') ?></label> <div class="input-box"> <input type="text" name="order_id" id="order_id" value="" title="" class="input-text required-entry" /> </div> </li> <li> <label for="email_address" class="required"><em>*</em><?php echo $this->__('Email …

Member Avatar
+0 forum 0

Hi, While I have some basic js coding skills and a few APIs uses in the past, I get stuck with one because it basically contains 3 calls. All async. Step 1 is pushing a file to the service and get back an ID in return. Step 2 is requiring a specific operation on the previously pushed file thanks to the ID Step 3 is downloading the result The fact is that I need to ensure all of these steps are individually ok before calling the next API endpoint. And exit if something went wrong. I am having hard times …

Member Avatar
+0 forum 0

Looking to create an asset for the Unity Asset store in C#. I don't want to give away the source code, yet I want users to be able to purchase + download my work and use it in their projects. I'm not sure what this is called or how to do it. Any ideas? Much appreciated!

Member Avatar
+0 forum 0

I have a CSV file with a bunch of columns, but I only need the information for the 11th column. How do I read through each line and skip to the 11th column and then store those values in a vector? I'm struggling to find clear information on how to read files in c++. This is what I have so far: #include<iostream> #include<fstream> #include<vector> #include <sstream> #include <string> std::string readStock(std::string fileName){ std::vector<std::string> ticker; //create vector std::ifstream f(fileName, std::ios::in|std::ios:: binary|std::ios::ate); std::string finalString = ""; if(f.is_open()){ std::string str; std::getline(f,str); //skip the first row while(std::getline(f,str)){ //read each line std::istringstream s(str); //stringstream to parse …

Member Avatar
+0 forum 0

<?php include 'connect.php'; $output = ''; if(isset($_POST["export"])) { $query = "SELECT * FROM order_details"; $result = mysqli_query($conn, $query); if(mysqli_num_rows($result) > 0) { $output .= ' <table class="table" bordered="1"> <tr> <th>MAIN BILLING NO</th> <th>ORDER TYPE</th> <th>ORDER NO</th> <th>DATE/TIME</th> <th>PORTING</th> <th>SWITCH PREFIX</th> <th>LCP</th> <th>LCPCUPID</th> <th>RH</th> <th>RH CUPID</th> <th>PORT DATE</th> <th>PORT TIME</th> <th>ASSOCIATED NUMBER</th> <th>POST CODE</th> <th>DDI START</th> <th>DDI END</th> <th>NOTE</th> </tr> '; while($row = mysqli_fetch_array($result)) { $output .= ' <tr> <td>'.$row["bill_no"].'</td> <td>'.$row["order_type"].'</td> <td>'.$row["orderno"].'</td> <td>'.$row["date"].'</td> <td>'.$row["porting"].'</td> <td>'.$row["prefix"].'</td> <td>'.$row["lcp"].'</td> <td>'.$row["lcp_cupid"].'</td> <td>'.$row["rh"].'</td> <td>'.$row["rh_cupid"].'</td> <td>'.$row["port_date"].'</td> <td>'.$row["port_time"].'</td> <td>'.$row["asso_no"].'</td> <td>'.$row["post_code"].'</td> <td>'.$row["start"].'</td> <td>'.$row["end"].'</td> <td>'.$row["note"].'</td> </tr> '; } $output .= '</table>'; header("Content-type: application/vnd.ms-excel; name='excel'"); header("Content-Disposition: attachment; filename=exportfile.xls"); header("Pragma: no-cache"); header("Expires: …

Member Avatar
+0 forum 0

How to display error messages and details of error occurred during jQuery AJAX Call

Member Avatar
+0 forum 0

I'm trying to setup the links on this page: http://limitlesshoops.com/levels.html to lead to specific pages within this PDF: https://fiftyallstars.com/a2z.pdf --- I've found I can lead people to whatever page like this: https://fiftyallstars.com/a2z.pdf#page=7 but I'd like to lead them to a page based on Today's date. I've added a few example pages to the end of the PDF that have 12/01/19 etc. in the header section. I figure if the browser's "find" functionality can scroll to that page, then there should be some javascript that can do the same. Any help would be awesome. Thanks! ------------- Here are some helpful links …

Member Avatar
+0 forum 0

If you are like me and tired of going to sites and having either a Snap shots, intelliTXT, Contentlink or the like pop up just because I move the mouse pointer over a word that has been associated with one of the contextual ad service. Well if you are using the [browser Opera](https://www.opera.com/) they have built in a quick and easy way to accomplish this. operaWhat you need to do is download this .ini file. Then you will need to replace the one that is currently installed in your system for Opera. Chances are if you check your blocked content …

Member Avatar
-1 forum 0

I want to print database value on multiple pages using C# using HasMorePages property. I have worked on the same, but the loop goes infinetly (without stop) and the same data is repeatating on each page, how to solve it?

Member Avatar
+0 forum 0

I am a student learning, I was tasked with the following; > Create a class called AddressBook. Create the address book with a dynamic array and when the object is created, the programmer should specify the maximum number of items in the addressbook. (e.g.) AddressBook myAddressBook(20); It should contain a method called addName that will take a name and phone number and add it to the address book. There should be a method called findName that will take a string for the name and return the phone number if found in the list otherwise return “Person Not Found”. The class …

Member Avatar
+0 forum 0

Hi, I am getting an error while making a vector. frame.h #include <wx/wx.h> class Frame : public wxPanel { public: Frame(wxPanel* parent, int xx, int yy); ~Frame(); private: int x; int y; } frame.cpp #include "frame.h" Frame::Frame(wxPanel* parent, int xx, int yy) :wxPanel(parent) { x = xx; y = yy; } Frame::~Frame() { } in another wxPanel , I am creating a vector- std::vector<Frame> vFrames; And using it in a function- FinalFrame::addFrame() { vFrames.push_back(Frame(this, 20, 40)); } And I am getting this error- `error: use of deleted function 'Frame::Frame(const Frame&)' ` Is this related to wx or I am coding …

Member Avatar
+0 forum 0

hello, my sign in working fine..but not my logout and signin script...help please. this is my logout script: <?php session_start(); session_unset(); session_destroy(); header("Location: index.php"); and my signin script: <?php if (isset($_POST['login-submit'])) { require 'dbh.inc.php'; $mailuid = $_POST['mailuid']; $password = $_POST['pwd']; if(empty($mailuid) || empty($password)) { header("Location: ../index.php?error=emptyfields"); exit(); } else{ $sql = "SELECT * FROM users WHERE uidUsers=?; "; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { header("Location: ../index.php?error=sqlerror"); exit(); } else{ mysqli_stmt_bind_param($stmt, "s", $mailuid); mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); if ($row = mysqli_fetch_assoc($result)) { $pwdCheck = password_verify($password, $row['pwdUsers']); if ($pwdCheck == flase) { header("Location: ../index.php?error=wrongpassword"); exit(); } else if($pwdCheck == true) { …

Member Avatar
+0 forum 0

How can I optimize images on my site?

Member Avatar
-2 forum 0

How to use partial view as modal popup?

Member Avatar
+0 forum 0

What will be the new SEO strategy for 2020?

Member Avatar
-1 forum 0

Heres a pic of my database table ![Screen_Shot_2019-11-16_at_2_35_54_AM.png](/attachments/large/4/0749479693675147a0ccc8219b89e87f.png) Im trying to create a search page with drop down selectors to filter through each of the last 8 columns. I want the the drop down selectors to be able to select multiple entries (I have this working already) I also want them to preload values from data already entered into my table columns. (I also got this working with the help of tutorials... although I admit I don't fully understand how this part works) Using these tutorials i've created a php page that contains 8 drop down selectors that automatically pull …

Member Avatar
+0 forum 0

analyze the problem. walkthrough the code. I would like to charge for this solution $10 to Renewal Computer Services, if I may post here (kids & teens free). when -50 is reached, doesn't blow past the maxvalue+1U and cause a cpu-hogging forever loop, it doesn't actually reach -50 equivalent (UINTMAX-49). #include <cstdint> #define ufordown0(var,maxvalue,step) for(uint64_t var=maxvalue; var>maxvalue; var-=step) /* Example: ufordown0(i,200U,50U) { } */

Member Avatar
+0 forum 0

Really hoping someone can help me out or point me in the right direction. This is my first ever post in a coding forum so I apologize in advance if I’m breaking any forum rules. I already have a bunch of php code sorted from modifying web resources. I need help altering it further to help me accomplish my goals. Below I’ve included my code, along with screenshots of the code executed in a browser and my MySQL database table. Background: I’m a professional musician but I have extremely basic computer programming knowledge. Nothing formal.. I use google, YouTube, Forums, …

Member Avatar
+0 forum 0

I am trying to write a C++ solution for a problem which is written C, I have learnt C++ very long ago(may be 15 years), and the way C++ is evolved now is kind of taking long to understand and not easy as 'C' to develop a solution. Would request any experts help in solving the problem . Actually, the problem is quite big , but i broke down into small , so i that i can reuse from learnings here. I have already started with a small class here to store a list of strings and print them. But …

Member Avatar
+0 forum 0

Web page seizing is a type of search engine record spamming. It is finished by creation a duplicate of a prevalent website which shows substance fundamentally the same as the first web pages. In any case, it diverts you to the web that is inconsequential to website. Web page capturing is goes under dark cap search engine optimization technique.

Member Avatar
-1 forum 0

I am skilled in Core PHP, JavaScript, Mysql, Ajax, HTML, CSS, jQuery and Codeigniter and having 4+ years of experience in Web Development. I have very vast knowledge in dynamic and static website development.

Member Avatar
+0 forum 0

I am developing an app to android and ios, which purpose is get directions to a certain clicked marker (point) in the map. So, I am using the Google Maps API with node.js, and I have the data from the points stored in a MongoDB. I've been serching but I can't find anything that solves what I want to do. I want now to get those points coordinates from the data base object and then use the coordinates to when I click a marker (a point), then appears a infowindow with a button saying "go to location" and when I …

Member Avatar
+0 forum 0

Hi all, I have an application which saves data (books details like book title, author and location) to a mySql db and performs CRUD operations. I thought I'd use hibernate to take care of the ORM side of things and everything was OK when it came to create a record, but for RUD operations I had an issue. If I'm a user, I'm likely to be willing to find a book by its author, title or location, certainly not by its ID and yet as far as I can see, hibernate uses IDs for these kind of operations. I dug …

Member Avatar
+0 forum 0

Hi, We want to make disappear the Outgoing Message Queues to be sure that our app wouldn't use them anymore. If Outgoing Message Queues are temporary, when does it disappear from compmgmt.msc when they are suspended and cleared, and the application only uses local message queues afterword? What is their lifecycle? Is there a way to delete them? Best Regards,

Member Avatar
+0 forum 0

I have a question for those who are looking for bugs and vulnerabilities for money. How are you looking for customers? Is it freelance or a permanent job or a hobby? I found one blockchain project that offers to find vulnerabilities for money. I will post the text of their proposal, if the administration does not mind: *In order to improve the security of the program code, we announce the beginning of bug-hunting. Anyone who finds a new critical bug (vulnerability) will get 100 000 TERA. Bug should be reported confidentially to progr76@gmail.com or telegram @progr76 TERA Foundation: https://terafoundation.org* What …

Member Avatar
+0 forum 0

The End.