Hi, I have the program, which is a traffic simulation, and I have a few linked lists in it. I'd like to ask you what is the easiest way to check if I don't have duplicats in them? The code which runs it looks like that: public static void main(String[] args) { Simulation s = new Simulation(); s.addRoad(Road.Orientation.HORIZONTAL, 50, 5,3); s.addRoad(Road.Orientation.HORIZONTAL, 500,1,4); s.addRoad(Road.Orientation.VERTICAL, 100,3,2); s.addRoad(Road.Orientation.VERTICAL, 600,2,3); s.addRoad(Direction.DOWN, 1,300, 2,3); s.addRoad(Direction.RIGHT, 3 ,340,1,2); s.addRoad(Direction.UP,0,500,2,1); s.addRoad(Direction.LEFT,2, 400,1,2); s.addIntersection(0,2); s.addIntersection(3,0); s.addIntersection(2,1); s.addIntersection(1,3); s.start(); } Simulation extenst Thread, so first I build road system, then add intersection (if there is a T shape intersection …

Member Avatar
+0 forum 0

Got Client with need of **"online print shop"** Client is providing paper printing (like business cards, flyers), printing on cloths, office stationary, logo embroidery on any type of clothing. Client provided some examples. **Links** * [rockdesign](https://www.rockdesign.com/) * [moo](https://www.moo.com/ca/) * [readyprint](https://www.readyprint.ca/) * [vistaprint](https://www.vistaprint.ca/) * [printshop](https://printshop.ca/) * [printvenue](https://www.printvenue.com/) **Where do I start?** Which platform should I choose? 1. CorePHP 2. Wordpress 3. WooCommerce 4. Magento 5. Prestashop 6. WordPress Is there any plugin or script that should I go for???

Member Avatar
Member Avatar
+0 forum 7

I have a table that contains some cubes with servers and active status (see attached image): note: CUBE1 is repeated intentionally. The idea is the same cube is getting synced from the same server 1 as a data source (process_server) onto different target servers (query_server; say server2 is in region A and server 3 is in region B). The way the environment is set up is both servers have to be active/active status (meaning TRUE) except for some additional test cases, i am setting to false sometimes one or the other. I have the following script now calling the cube …

Member Avatar
Member Avatar
+0 forum 2

I created a broadcastReceiver to receive sms and it works fine on emulator but on real device it works only when app is running when app is closed it doesn't receive any sms

Member Avatar
+0 forum 0

Hi fellas, I hope my first message here comes across more helpful than bothering. I’ve recently launched a WordPress backup plugin - WPvivid Backup/Restore. It contains pretty all basic features that you’ll need to backup/restore you site and is fairly easy to use. And most important, it’s completely free(free update and support). I made it because I realized that there’s still a growing need for the easier and more affordable backup solutions in WordPress community, we hope our plugin can give people a hand. Please check it out at WordPress’ plugin repository: https://wordpress.org/plugins/wpvivid-backuprestore/ Any feedback will be greatly appreciated. Joe

Member Avatar
+0 forum 0

I have a script that populates a form from MySQL database table row for editing. I'm performing MySQL SELECT and UPDATE via PDO. After editing a particular table row and clicking on the submit button, the table row doesn't update. The following is "modify-course.php": <?php // configuration require("../includes/config.php"); // query admin table to retrieve current admin's profile //select a particular admin by id // query users table to retrieve current admin's profile if (array_key_exists('aid', $_GET)) { // select a particular admin by id $stmt = $pdo->prepare("SELECT * FROM admin WHERE aid=?"); $stmt->execute([$_GET["aid"]]); $admin = $stmt->fetch(); # get admin data if …

Member Avatar
Member Avatar
+0 forum 3

Hello, i got a table in Excel (or exported to CSV). There are 3 columns (1. column = specification / 2. columns = value1 / 3. column = value2). On my vb.net form i got a textbox, 2 labels and a button. If i write in in the textbox "5" it should search in the Excel or CSV-File in columns A (specification" the "5" and then it should show the both values in this row in label1 and label2. I tried much things but i can only read and show the complete row in only one label and only from …

Member Avatar
+0 forum 0

Why much time is needed to access an applet having swing components the first time?

Member Avatar
Member Avatar
+0 forum 2

To be honest with you, all the codes that i made were self taught, i had to advance myself to learn more stuff in C++ which my first challenge is to make a simple but clean made text based adventure game, but im at the wall atm. (don't judge me, i'm still a newbie to C++) One is making choices, i tried doing "if" then "else if", on my last project, and it always reads the first "if", making the other two choices non-readable, so i had to force myself to make only one choice (hence making it a game …

Member Avatar
Member Avatar
+2 forum 2

Hi everyone, new to the message board. I saw online that this is a good place for info. Im currently new to the web dev scene. I started coding and am looking for relavant info and such regarding anything i need to know. Currently working on CSS, been taking awhile due to my full time job. Just wanted to make sure im in the right place!

Member Avatar
Member Avatar
+0 forum 5

import csv import xlwt import os import sys #import openpyxl # Look for input file in same location as script file: inputfilename = os.path.join(os.path.dirname(sys.argv[0]), 'book2.txt') # Strip off the path basefilename = os.path.basename(inputfilename) # Strip off the extension basefilename_noext = os.path.splitext(basefilename)[0] # Get the path of the input file as the target output path targetoutputpath = os.path.dirname(inputfilename) # Generate the output filename outputfilename = os.path.join(targetoutputpath, basefilename_noext+'.xls') # Create a workbook object workbook = xlwt.Workbook() # Add a sheet object worksheet = workbook.add_sheet(basefilename_noext, cell_overwrite_ok=True) # Get a CSV reader object set up for reading the input file with tab delimiters datareader …

Member Avatar
+0 forum 0

I should go to this program mentioned below. make a double loop (do ... while) to suppress an incorrect daily calculation!note :::: work with a char variable "error" for erroneous daily calculation. In contrast to the origin program, deposit and payout data should be requested again for a result of the daily bill of 0 or a number in the minus area! #include <iostream.h> #include <conio.h> #include <stdio.h> main () { char error = "n"; int e_tag, e_mon, e_jahr, a_tag, a_mon, a_jahr, days; float capital, interest rate, interest rates; do { error = "n"; cout << " <snip> cin >> …

Member Avatar
Member Avatar
-1 forum 1

Hi guys, i'm having a difficulty to set the path in vb.net.i put the code in the module and every time i run the code it throws error "Could not find file 'C:\Users\Abdueie\Desktop\BMS\Bridge Asset Management\Bridge Asset Management\bin\Debug\Adigrat.accdb'." here's the code Public conn As OleDbConnection = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source= .\\Adigrat.accdb;Persist Security Info=False")

Member Avatar
Member Avatar
+2 forum 10

I'm somewhat new to coding websites. I'm trying to have a code where it pulls multiple images from a single database and displays it in a grid, not a table. At the top of my page I have a normal connection to the database. (very sorry about not having a code snippet, I'm new to daniweb and keep having errors when trying to use code snippets.) <div id="grid" class="grid-container"> <?php while ($row = mysqli_fetch_array($query)) echo '<div class="grid-item"> <p>'.$row['images'].'</p> <p>'.$row['project'].'</p> <p>'.$row['summary'].'</p> </div>'; ?> </div>

Member Avatar
Member Avatar
+0 forum 1

Hi All, My first post in a LONG time (got a prompt from admin). I have a fully working ASP.Net website that handles dimensions in metric. The customer now wants to extend the website to allow Americans to use it using imperial measurements!!!?? (Yes, I have tried to talk them out of it!). I think the way to do this would be to keep everything in metric as far as possible and convert to imperial (feet & inches instead of metres) on the fly. So, when displaying the values I convert from metres to feet/inches After accepting input I convert …

Member Avatar
+0 forum 0

I have an eCommerce website. Website loading speed is too slow. I have talked with hosting service provider. They told me that there nothing is wrong with hosting. So I need a developer who can help me to fix this issue. I will pay good.

Member Avatar
Member Avatar
+0 forum 5

The facts: We are talking about a small company (5 persons) with many clients that making real money (we don't) . We provide our own software that has unique features against the e-commerce completion. The problem: the first glimpse of the problem arose around 2012 and made clear around 2014 with web sockets. Some clients didn't want a simple chat with their client but instead a full live eShop where they could negotiate the prices of a product or even start a discussion with a visitor. The solution would be implementing web sockets in to our framework and that worked …

Member Avatar
Member Avatar
+1 forum 7

I'm using the free website builder Mobirise application. Is it possible to remove all the links to Mobirise from the code? It's really annoying. I don't want to do it manually.

Member Avatar
+0 forum 0

So, I have created a text file containing the following: 10001 General Electronics 500 20001 fACEBOOK 700 10002 Twitter 400 The records are stored in a struct containing an integer id, string company and integer number of shares variables. I want the user to enter a Id, say 20001, and the output should display the details of only that particular user and not of anyone else. Also, I want to change number of shares of user 20001 from 700 to 600.

Member Avatar
+0 forum 0

Hi, When I was trying to create the IT Request Form and testing it out, I got some problems during the testing. The home page (index.blade.php) ended up getting an error called "Undefined offset: 1", maybe due to the table database problem. ![0TyCAu.png](/attachments/large/4/8730ed8f11be3f5ed672376eee11d83f.png) The checkboxes in the Request Form (requestForm.blade.php) should not be all checked, instead the user has to select a checkbox option. ![0Tyvyx.png](/attachments/large/4/338e30d7d03b784fd3c723e1bf5d80fb.png) Is there a way to fix the form? My IT Request Form project: https://drive.google.com/file/d/1Vpif_1Cxm-Kkw-4_5ZKYt-Tjd1IWJB9_/view?usp=sharing *Please note that the data I entered when testing is fictional (not real).

Member Avatar
+0 forum 0

Hi. I want to detect a face and draw line exactly around the face to crop it. I searched a lot and used the EmguCV face detector. but now my code just draw a "rectangle" around the face and if I crop it, I will have a rectangle with a face inside it and it's not useful for me. this is the core of my simple code: CascadeClassifier _cascadeClassifier = new CascadeClassifier(Application.StartupPath + "/haarcascade_frontalface_alt_tree.xml"); using (var firstImage = Image.FromStream(saveImageStream)) { var bgrImage = new Image(new Bitmap(firstImage)); Image grayFrame = bgrImage.Convert(); var faces = _cascadeClassifier.DetectMultiScale(grayFrame, 1.01, 1, Size.Empty); foreach (var face …

Member Avatar
Member Avatar
+1 forum 1

I'm trying to make this queue program for school to take the next packet out of my queue (therefore delete it) in the queue function : struct packet_t *queue_retrieve(struct queue_t *queue) in line 73. I know that i have to use my write and read but i fail to understand how exactly. I also have to implement it as a circular buffer so when it reaches the end of my queue it starts at 0 again. Also is it enough to free(q) and (p) in order to delete packets/queues like i did in the queue_destroy and packet_destroy functions or do …

Member Avatar
Member Avatar
+0 forum 1

I would like help with creating a form that when submitted, creates a webpage which is able to be edited by whomever submits the form; I would also like this url/link to be added to a database.

Member Avatar
Member Avatar
+0 forum 1

pls can iny one help me , i want to display table from database or datagridview to template word for exmlple i have table "items" with 3 champ id_items,name_items,price_items

Member Avatar
Member Avatar
+0 forum 1

How can I locally save an image using its URL address?

Member Avatar
Member Avatar
+1 forum 4

# Lab Question# We must create a program that do the following: Allow the user to type in a student name the coorosponds with the student's exam score. The program will be able to accpet exam scores till the user types in the phrase "allDone". The code will determine which student has the highest score and give the name and the score to the user. Here is an example of what will be shown in the console.... *Sample Input* Bob 82 Mary 90 James 87 alldone *Sample Output* Mary has the highest score. Her score is: 90. ## Question ## …

Member Avatar
Member Avatar
+0 forum 6

When posting code, I get error > begin a line with 4 spaces in a row (or one tab), preceded by a blank line. 4+ spaces or tabs may not be used anywhere else.

Member Avatar
Member Avatar
+0 forum 5

I am updating a C++ program, part of which copies arrays of doubles by iterating through each array (copies elements of array wa2 into array X): for (j = 0; j < N; ++j) { X[j] = wa2[j]; } // End for j I would like to use the built-in function copy, so am going through the program replacing all loops with copy: copy(wa2, wa2 + N, X); However, this causes my compiler to complain: > error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values …

Member Avatar
Member Avatar
+0 forum 3

Hi, I'm working as a Software Engineer. You can imagine, how will be my work? I used to work when I'm in my home too, especially, during the month ends. The problem is, I'm not able to access my internet during the day time .there will be a connectivity problem. Planning to replace the internet box at home . It's disgusting to use it. But instead of being attached to a phone cable, my friend suggested the replacement of cable and placing portable internet solutions. I enquired about the connection and heard that a portable WiFi device enables us to …

Member Avatar
Member Avatar
+0 forum 1

Hello, I want to have a manual IP-input-box like windows. ![tcpip_properties.gif](/attachments/large/4/1b3cb2d2b7b2be11e2b4abcef8d6fcc5.gif) I tried by MaskedTextBox but the problem is, the 3 pionts are sliding when i insert some numbers and i can insert letters and numbers higher then 255 (higher is not allowed in IP´s). I hope anyone helps me, maybe with some codesnips!?! :) best regards josh

Member Avatar
Member Avatar
+0 forum 6

The End.