199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jamie_10

Design a java program that generates 100 random numbers, and keeps a count of how many of those random numbers are even and how many are odd. This is what I have and it is not suppose to be an array just simple coding with a boolean. import java.util.Random; public …

Member Avatar for Sean Francis
0
305
Member Avatar for සශික

I making application using vb.net and mysql database(mysql query broweser). In my programm there is two date time pickers (dtpisf & dtpist). I want to run this application like this, when I select two dates from date time pickers and click button it will show total of column in text …

Member Avatar for සශික
0
291
Member Avatar for dmanw100

Hello, I've just begun working with assembly so I'm sorry if this question is simplistic. I would like to implement an atomic add (for incrementing an array pointer). My code looks like this: int * ptr; int step; asm("lock add %1, %2;\n" :"=m"(ptr) :"m"(ptr),"r"(step) : ); But I'm getting an …

Member Avatar for Feanis
0
318
Member Avatar for sam.tubb.75

I'm very new to the Raycasting algorithim, and was reading a webpage on how it works with CPP code to accompany. I followed what the page described and converted it into Python/Pygame and then ran it, but my result was *very* different. I have a feeling it has something to …

Member Avatar for andybe
0
306
Member Avatar for hdhookings

Hi, I have a datepicker in a div to ensure that it is displayed permanently. Stupid thing is I cannot get the date chosen. Somebody clicks on a date. How do I get that into my php programme? Dave

Member Avatar for Dave_9
0
232
Member Avatar for jarograv

I have the following section of code that works perfectly when I run it as a .py file. When I convert it to a .exe using py2exe it appears that the linecache.getline() function is not working properly. I am able to create and write the .txt file fine, so I …

Member Avatar for Gribouillis
0
336
Member Avatar for Stevenson66

I need to open this pptx-file. Can anyone help me with that? http://www.filedropper.com/testfileq9 Made in Microsoft PowerPoint 2010 and cannot been seen or open with any applications... If it can't be open, how can I fix the file.

Member Avatar for allen.welch
0
862
Member Avatar for mexabet

I'm trying to automatically populate a navigation menu based on available categories in the database. As follows is my code: <?php $sidenav = query("SELECT cat_id, cat_name FROM prod_cat ORDER By cat_name LIMIT 20"); if ($sidenav != false) { $sidenav->execute(); while($result = $sidenav->fetch(PDO::FETCH_BOTH)) { echo "<div class='left_button'><a href='/customcms/products/index.php?page=list-product&category={$result['cat_id']}'>{$result['cat_name']}</a></div>"; } } ?> …

Member Avatar for mexabet
0
330
Member Avatar for සශික

I used mysql query broweser to create database and tables. but when I run this code it doesn't show results. But there is no error SELECT * FROM expenses WHERE datee BETWEEN 01/01/2016 and 01/09/2016; can anyone help me ?

Member Avatar for සශික
0
124
Member Avatar for RobertSharp

Hi, I'd been working on a MS Word document for 2 hours when Word crashed. When I restarted Word, all of my changes were GONE. Can anyone tell me how to recover my temporary document? I tried to look at my Windows/Temp folder but I'm on my work computer.

Member Avatar for Vlastimil
0
1K
Member Avatar for Bensirpent07

So I haven't used preg_match too terribly often but I found this example online for parsing a page to get text from div's: preg_match("/<div class=\"topic\">(.*?)<div class=\"content\">(.*?)<\/div>/", $html, $matches); Now everything looks familiar to me and I understand until I see the (.\*?) What role does it play in preg_match?

Member Avatar for Bensirpent07
0
173
Member Avatar for basit_3

Hello Guys i want to make a password protected setup installer for my VB.NET application

Member Avatar for basit_3
0
96
Member Avatar for Zzz_1

the program is supposed to find the sum of 10 integer numbers stored in an array but i'm having this error: [Error] invalid types 'int[int]' for array subscript. this is my program: #include<iostream> using namespace std; void readarray(int array[][30], int rows) { int i=1; cout<<"Enter 30 Numbers into an array:"<<endl; …

Member Avatar for gemsvidhi
0
609
Member Avatar for Hephaestus

Hey guise, I have a uni assignment; setting up backend code for a tour company website. Everything's gone swimmingly but I've run into issues implementing a system for rating the tour packages. Implementation for the rating system: user clicks rate button, the rating score is added to a running total …

Member Avatar for Pablo_3
0
448
Member Avatar for Gilbert_3

Hi guys I need help from you. How do i increment the id like for example: EMP001, EMP002, EMP003 I hope you can help me out guys, thanks in advanced.

Member Avatar for Reverend Jim
0
422
Member Avatar for COKEDUDE

Is this the correct way to print char*? *I know c has the value I want because of the print statement below it. The o is not giving the value that I expect. char out[50]; char *o = out; int i = 118; *o++ = c; printf("o is %d (%c)\n", …

Member Avatar for tinstaafl
0
169
Member Avatar for COKEDUDE

I am trying to get the first value of a null initialed array of string.I have tried every method I can think of with no luck. I either get warning, errors, or a segmentation fault. Whats the correct way to print the null value and use it in the if …

Member Avatar for tinstaafl
0
464
Member Avatar for COKEDUDE

In this example in the malloc() what does the UL do? #include <stdio.h> /* perror */ #include <errno.h> /* errno */ #include <stdlib.h> /* malloc, free, exit */ int main(void) { /* Pointer to char, requesting dynamic allocation of 2,000,000,000 * storage elements (declared as an integer constant of type …

Member Avatar for Soft_1
0
189
Member Avatar for COKEDUDE

I have seen a few different ways of doing malloc error checking? Is one way better than the other? Are some exit codes better than others? Is using fprintf with stderr better than using a printf statement? Is using a return instead of an exit better? ptr=(int*)malloc(n*sizeof(int)); //memory allocated using …

Member Avatar for Soft_1
0
750
Member Avatar for muralibobby2015

hello... i was installed wordpress3.0. from that day i am getting this error when i am open wordpress getting this error. then i reinstalled wamp. but still problem. this is the error [CODE]Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience. these …

Member Avatar for mehul.jadav
0
138
Member Avatar for Romina_1

Hi guys! I'm new in c++ so I really need your help. I have this code but I have to use classes, how can i modify the struct to class? Please help me. #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <conio.h> #include <iomanip> using namespace std; int main() …

Member Avatar for admiri92
0
283
Member Avatar for jjones0150

I keep getting this error: " Exception in thread "main" java.lang.ClassCastException: java.util.Collections$EmptySet cannot be cast to java.util.List at JayJuan.InventoryManager.getProductList(InventoryManager.java:15) at JayJuan.InventoryManager.addProduct(InventoryManager.java:48) at JayJuan.InventoryApp.main(InventoryApp.java:35) C:\Users\JonesJ58\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1 " Based off this error and the code I provided please help me figure out how to get this program to run correctly. …

Programming java java-netbeans
Member Avatar for JamesCherrill
0
507
Member Avatar for lonrat

I created this website: http://valerobrothers.com/ Try narrowing the width of your browser enough so that a scroll bar appears at the bottom of the browser. Notice how when you scroll left/right parts of the background disappear? Does anyone understand why this happens and what a fix might be?

0
168
Member Avatar for සශික

I'm trying to load sum of columns to text boxes. but it give me this error: "Object cannot be cast from DBNULL to other types" this is code : query = "SELECT sum(fuel) as ttlfuel, sum(stationery) as ttlstationery, sum(salary) as ttlsalary, sum(vehicle_part) as ttlvp, sum(other) as ttlother FROM mcs.expenses WHERE …

Member Avatar for සශික
0
736
Member Avatar for mpdph09

I am trying to populate textbox on winsows application from database. The stored procedure pulls data using datareader. Data looks fine when I execute stored procedure on SQL server management studio. But when I am trying to populate from the application its not getting same result. I apprecaite all help. …

Programming c c# c++
Member Avatar for mpdph09
0
303
Member Avatar for jjones0150

I have the code for my InventoryManager class, my Product class, and my InventoryApp class . Based off this code, I need someone help me correctly call the methods I already have in place. There is a section where the method is supposed to be called and I have made …

Member Avatar for jjones0150
0
253
Member Avatar for dawbin

I am dynamically adding Child DIVs to a Parent DIV, but appendChild() inserts the new child DIV at the end and I want new insertions to be at the top. I understand inserBefore(), but initially there are no children in the DIV. Is ther an easy way to do this?

Member Avatar for diafol
0
82
Member Avatar for සශික

I got dannie web help and make best effort to get good idea. Finally I make this code. but This code okay for search data and load it to text boxes. but again I change some values and click update button It say "connection alredy open." this is search code …

Member Avatar for Reverend Jim
0
360
Member Avatar for SimonIoa

Hello the same issue has troubled me in the past. I have a autocomplete script that the user chooses people to send them something. I use to store multiple values in one row. That is the id of the selected people that the user chooses. Thats not the proper thing …

Member Avatar for SimonIoa
0
249
Member Avatar for altjen

Hi, I am trying to develop a software which can get information like listed bellow In System : -SERIAL NUMBER(847MY5N15) -UUID(4C4C4554-0134-3710-804D-B8C04F594E31) -BIOS VENDOR(Dell Inc.) -BIOS VERSION(A09) In Motherboard(Optional, but will be good if : -MOTHERBOARD VENDOR(Dell Inc.) -MOTHERBOARD MODEL(02XJP9) -MOTHERBOARD VERSION (A03) -MOTHERBOARD SERIAL NUMBER (/847MYN1/CN1296112402BB/) In CPU: -CPU MODEL(Intel(R) …

Member Avatar for JOSheaIV
0
793
Member Avatar for Hamza_13

how to get value of user type column into combox box , user type is 2nd table first is user so in combo box there's a list for example doctor ,abc,xyz and iam working on windows application data grid view cellContent click event when i click on any cell all …

Member Avatar for JOSheaIV
0
216
Member Avatar for eny321

I am trying to write an elevator test program in java. It is suppose to execute the following steps using the methods in the class: 1: Starting from the first-floor. 2: Go to 2nd (update bool GoingUp) 3: Go to 3rd 4: Back to second floor This is what I …

Member Avatar for stultuske
0
4K
Member Avatar for lewashby

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 how does this work? Why is the `if` statement after the execution code? I would expect the `if` to be …

Member Avatar for Gribouillis
0
400
Member Avatar for ehpratah

Hi Guys! I cant find a way to show my data array the way i need it to be hope you can help me. i already tried using array_push(), json_encode() but still no result. basically what i am getting is like this Array ( [0] => Array ( [name] => …

Member Avatar for ehpratah
0
289
Member Avatar for Sophia_1

Hi everyone, am trying to import excel file to 2 tables using php but unable to do so. The 1st table is Kra (kraid,kra) and 2nd table Kpi (kpiid,kpi,kraid). The foreign key for Kpi is kraid. When i import the file the following message appears "Invalid File:Please upload CSV file.", …

Member Avatar for Sophia_1
0
1K
Member Avatar for pars99

I'm not sure how crazy this sounds, but bear with me. I have a long list of links that are people's names. Inside each link is a set of information, where an email address is located after other information. I need to make (or just find in general) something that …

Member Avatar for pars99
0
372
Member Avatar for muralibobby2015

hello..... google provided translated code. i want to restrict dropdown languages. i want to show only 5 languages. i tried a lot. anybody help me plz. how to show selected languages.here is the code. displaying all languages in drop down. i want to display only 5 languages...how to do?[CODE]<html> <head> …

Member Avatar for diafol
0
1K
Member Avatar for Malbora

How to create a character for my game? Im trying to develope a game in html5,css3,javascript

Member Avatar for rproffitt
0
99
Member Avatar for Papa_Don

Hi group, I'm trying to insert both a copied range (from and Excel file) AND a message (text) into the body of an Outlook email. I've perfected the code to insert the range, but I've not figured out how to get the message to go along with it. I hope …

Member Avatar for Papa_Don
0
5K
Member Avatar for khaled02

Hi, I hope you can help me out of this because i really dont understand how to fix this code anymore, i tried and tried and it don't work. When i debug this code in Microsoft Visual Express 2010, it says the following erros are: 1>------ Build started: Project: Adreesbook2, …

Member Avatar for khaled02
0
241
Member Avatar for MissMolly

This code displays the contents of an array in the format: 1 2 3 4 1 2 3 4 etc... $data = $_POST['data']; foreach ($data as $tempone) { foreach ($tempone as $key=>$temptwo) { echo "$temptwo", "\n"; } echo "<br>"; } How can I get those results and use them in …

Member Avatar for cereal
0
135
Member Avatar for Mr.M

I'm having the below code which works fine. The code is for typing some text on a website text field. In my case my site only have 2 components( it one TextBox, and one Button) the app simply loads this site and then auto type in the textbox field then …

Member Avatar for tinstaafl
0
852
Member Avatar for ALosh99

Hello, I am trying to write two equations, each element in the equation is an arry , double XDiffusion (int D,int D11, int x, int s) { float DeltaX; return DeltaX; } double YDiffusion (int D,int D11, int x, int s) { float DeltaY; return DeltaY; } int main() { …

Programming c++
Member Avatar for ALosh99
0
620
Member Avatar for bLuEmEzzy

Hi Guys, Do you have any ideas on how to create and read barcodes in PHP? Ive been researching it but still I did'nt get answers. Thank You!

Member Avatar for pritaeas
0
220
Member Avatar for aalekh

I was trying to write a code for: read in N numbers from a file FILE1 into an array(dynamic) then sort those numbers then search for numbers (1 per line, given in FILE2) in the array. #include <stdio.h> #include <stdlib.h> #include<math.h> #include<string.h> int main(int argc, char* argv[]) { FILE *fp1=fopen("myFile1.txt", …

Member Avatar for rubberman
0
2K
Member Avatar for සශික

I'm coding button which name 'Load'. I coded it like this, Try Using cmd = New MySqlCommand(Query, con) Query = "SELECT first_name FROM custormer WHERE custormer_id='" & txtcustormeridforloanform.Text & "'" dr = cmd.ExecuteReader() While dr.Read() Me.txtcustormername.Text = Convert.ToString(dr("first_name")) cmd.ExecuteNonQuery() End While End Using Catch ex As Exception MessageBox.Show(ex.Message) End Try …

Member Avatar for Reverend Jim
0
273
Member Avatar for AntonyRayan

Hi In my table , I have date of birth value like 1991/10/21, I want to display that date of birth like: 21/10/1991(Twentynineth October One thousand Nine Hundred Ninety Nine) date of birth in numbers and in Characters also. How to do that, it has to do dynamically?

Member Avatar for diafol
0
238
Member Avatar for ramsiva

below is my php and html code <div id="entry1" class="clonedInput"> <h3 id="reference" name="reference" class="heading-reference"></h3> <div id="domain_section" class="notranslate"> <div class="form-group"> <label class="col-md-3 control-label label_pro" for="inputDefault">Product:</label> <div class="col-md-6" > <select class="form-control populate select_pro" name="select_pro[]" id="select_pro" data-plugin-selectTwo > <?php //`product_id`, `product_name`, `quantity`, `cat_id`, `banner`, `desc`SELECT * FROM `products` $get_scategory = mysql_query("select * from …

Member Avatar for diafol
0
195
Member Avatar for MissMolly

This script works fine, but there's a part I'm not sure if there's an easier / better way to do it. The part I'm talking about is commented in the script. Also any general advice on improvements if there are any to be would be cool. <?php if (isset($_POST['submit'])) { …

Member Avatar for diafol
0
234
Member Avatar for stephen_UK

In this pseudo example I have a table called **carsales** which contains 2 columns called **date** and **make** Every time a salesperson sells a car they enter the date in the **date** column and model of the car for example Ford, Honda, Audi in the **make** column. The required output …

Programming mysql php
0
119

The End.