199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DavidB

I have been writing plain old vanilla JavaScript pages for a while, for numerical math problems. Usually, I create one page for a specific problem. For example, one page to solve a system of 3 Equations in 3 Unknowns, one page to solve a system of 4 Equations in 4 …

Member Avatar for diafol
0
193
Member Avatar for lps

Good day, I having a problem where creating my setting table as condition below column User_id setting effective_date effective_end_date Row 1: 1 ABC 2017-03-01 2018-02-28 Row 2: 1 DEF 2018-03-01 2019-03-01 I wish to add a constraint to block if same user add in a setting with the effective_date or …

Member Avatar for lps
0
298
Member Avatar for Sherwin_4

Below is my code: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <iostream> using namespace std; ///////////////////////////////////////////////////////////////////////// /* // struct Edge // Represent one edge in the graph. Fields contain // two vertex numbers and a weight. */ struct Edge { int vertex_1, vertex_2, weight; }; //////////////////////////////////////////////////////////////////////// /* // struct Graph …

Member Avatar for Seif_2
0
385
Member Avatar for Mahfuz_2

'Declare the global variables to be used throughout the form Dim mfirst As Single Dim msecond As Single Dim manswer As Single ' Declare the global variables for the operators: Add,Sub,Mul and DIV Dim mbutton As Integer 'Change the sign of the number from + or - or vice versa …

Member Avatar for Reverend Jim
0
299
Member Avatar for _1_14

I have problem in display image from access 2007 database to rdlc i work in windows form c# vs2015 Actually i need to display image from database to more records from access 2007 but i cannot in rdlc i do as following : In RDLC drag image control to report …

Member Avatar for rproffitt
0
451
Member Avatar for Peetah

I am writing a program that reads a comma-delimited file. There are several words on each line that will each be assigned to a string variable, each line in the file is a record, and the file contains several records. I am using getline with a delimiter, e.g. [B]getline(inputstream, string, …

Member Avatar for Adam_37
0
15K
Member Avatar for Phil_7

I have found a source of and aledged xml file (although it is named as solarxml.php, when I download it the data that I want is there, i.e. solarflux, aindex, kindex and sunspots, but I have no idea how to determine how to extract the 4 data fields I want, …

Member Avatar for Traevel
0
296
Member Avatar for tnd2491

for (UINT wCount = 0; wCount < pMan->aAccounts.wNumItems; wCount++) { CUserAccount *pAccount = (CUserAccount *)pMan->aAccounts.aItems.GetAt(wCount); if (pAccount->csProfileName.Compare(pGroup->csProfileName) == 0 || pAccount->csSingleActive.Compare(pGroup->csName) == 0) { if (pAccount->_csUserGroup.CompareNoCase(_T("GrpAdmin")) != 0 && pAccount->_csUserGroup.CompareNoCase(_T("GrpOffice")) != 0) { pAccount->pFuncRestrictions->SetRestriction(Area1, Activity1); pAccount->pFuncRestrictions->SetRestriction(Area2, Activity2); pAccount->pFuncRestrictions->SetRestriction(Area3, Activity3); pAccount->CreateInDatabase(pConnec); } } } Here, my code is calling CreateInDatabase twice …

Member Avatar for tinstaafl
0
323
Member Avatar for Kittipat
Member Avatar for Brittany_2

Warning: I am brand new to programing. I am trying to create a random letter generator game for a class project. I feel like I have a good start to it but I am having difficulty with a few points. The program is supposed to ask the player how many …

Member Avatar for Nutster
0
1K
Member Avatar for Clif40RD

Hi Guys, I have a data bound grid-view with action buttons for updating and deleting items in a users shopping cart. The grid-view uses a 'SelectMethod' in the code behind to generate the data. The problem I'm having is that every time I edit some data in the grid-view, the …

Member Avatar for ddanbe
0
1K
Member Avatar for ALi_66
Member Avatar for sciprog1

Hello Members, I want to write a C program which creates two threads and uses a semaphore (as a critical section) to sleep for 1 second and then terminate. I am having a hard time with some of the C Syntax for semaphores. Is it possible to post an example …

Member Avatar for charlottegracie
0
4K
Member Avatar for Harshit_4

#include<stdio.h> #include<conio.h> void main() { float r, area; char ch = 'y'; do { system("cls"); printf("Enter the radius of the circle -: "); scanf("%f", &r); area = 3.14 * r * r; printf("The area of the circle is -: %f", area); printf("\n"); printf("Do u want to try again (y/n) -: …

Programming c
Member Avatar for charlottegracie
0
180
Member Avatar for Neethu_1

1) While working dates, when and why the local time and universal times are used? 2) Which multi-threaded program is recommended for reducing CPU usage? Why?

Member Avatar for Reverend Jim
0
155
Member Avatar for Mark_65

Hey guys i'm a noob with javascript. I have two scripts that generally do the same thing but each do not properly work with my code. The first script will work with adding rows and allow me to delete them, however it will also delete the top row. This is …

Programming finance javascript
0
191
Member Avatar for Mark_65

The following code will allow me to add a table row line and I can add the starting amount with the first amount input into the first row, but if I add a row and enter in an amount I want it to add or subtract that as well. Thanks …

Member Avatar for broj1
0
2K
Member Avatar for nadiam

Hello. I have an exercisse to convert from 24-hour to 12-hour clock. code: /*ALGORITHM READ INPUT VALUE IN 24-HOUR FORMAT DISPLAY THE EQUIVALENT 12-HOUR CLOCK WITH THE PERIODS AM OR PM */ #include<stdio.h> #include<conio.h> int InputValid24Hour(void); void Output12HourClock(int); void main() { int data; data = InputValid24Hour(); Output12HourClock(data); _getch(); } int …

Member Avatar for nadiam
0
482
Member Avatar for kishpopboy

I'm Currently working with a payroll system with daily time record.. I'm having troubles with their time records, what i did is this, i created 6 textboxes on the form the 1st textbox is for the AM IN 2nd is for the Lunch OUT the 3rd Is for the total …

Member Avatar for CERTIVE
0
5K
Member Avatar for SpottyBlue

Hi, I really need help and this is my first time of trying to link 20 sheets into a survey chart (Chart 1). How to do that? The chart in "Chart 1" is only based on sheet 1. Excel file: https://1drv.ms/x/s!AqKGcmac7PpVz2StIkZ445NRYVat

Programming microsoft-office
Member Avatar for rproffitt
0
383
Member Avatar for programmingnoob

im having a problem controlling a stepper motor using a microcontroller..what i did is that i test it with my board coz it has led's to check whether its working or not..we are tasked to make a program in c++ that would make a variable reluctance stepper motor work. If …

Member Avatar for rproffitt
0
3K
Member Avatar for Jim Clinton

** Here's my codes: Public Class frmLogin Dim sqlcode As String Dim connstring As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Jim Clinton Amarga\Desktop\Class Records\Class Records\bin\Debug\dbClassRecords.accdb" Private Sub btnLogin_Click(sender As Object, e As EventArgs) Handles btnLogin.Click If cmbLoginType.Text = "Administrator" Then Dim sqlLoginCode As String = "select * from tblusers where User_username = '" …

Member Avatar for Santanu.Das
0
471
Member Avatar for can-mohan

Hi, Below command will give the cpu and memory usage of process in terms of percentage. can we achieve same usin c/c++ API. ps -C <process name> -o %cpu,%mem | tail -n 2

Member Avatar for can-mohan
0
4K
Member Avatar for Ama_1

// This program uses a switch-case statement to assign a //letter grade (A, B, C, D, or F) to a number test score. #include<iostream> using namespace std; int main() { char grade; int testScore = 10; cout << "Enter your test score and I will tell you\n"; cout << "the …

Programming c++ daniweb-bug
Member Avatar for AssertNull
0
454
Member Avatar for Naveen_20

![ThemeStyle.jpg](/attachments/large/4/31d4230c77b20fb9af32ad748aae54e3.jpg "align-center") ![styles.jpg](/attachments/large/4/0fc7d1c38e3f3fb412ee34a7a56e3abe.jpg "align-center") ![stylesv21.jpg](/attachments/large/4/bf208775fabcb23124fc6f1b79e86dae.jpg "align-center") ![activity_main.jpg](/attachments/large/4/579d91fae02cb95c1b34fc7d52c365a6.jpg "align-center") ![tool_bar.jpg](/attachments/large/4/38db3d667138e5709888f3aac97193ce.jpg "align-center") I tried various forums but no luck I couldn't figure out what's wrong with it

Member Avatar for rproffitt
0
906
Member Avatar for koneill

All, In the code snippet below - I am trying to only send an e-mail if the page is reached via a POST request - the if statement is not being recognized in the CGI code - as when I access the page this is on directly - I get …

Member Avatar for koneill
0
360
Member Avatar for Dylan_11

HI, I have the below php code that i am attempting to use to search the database for a value that has been inputted in the form. This connects to the database and works fine but brings back no results. I found the following error: Warning: mysqli_num_rows() expects parameter 1 …

Member Avatar for abubaker_2
0
563
Member Avatar for phphp

Dear Sir, I have these code <html> <head> <style type="text/css"> html, body { height: 100%; width: 100%; margin: 0; padding: 0; } body { overflow: hidden; } #content { max-height: calc(100% - 280px); overflow-y: scroll; padding: 0px 5% 0px 5% !important; margin-top: 10px !important; border: 0px dotted #39F; } </head> …

Member Avatar for rproffitt
0
1K
Member Avatar for Minimalist

Good day guys, here is another question I have, working with vb.net community 15. I have a large datagridview to display all lessons for my school timetabling program. There could be up to 14 timeslots = lessons per day. Now I like a timetabler to be able swap days like …

Member Avatar for ddanbe
0
840
Member Avatar for Anel_1

**A newbie would appreciate if someone could give him a pseudocode or any kind of explanation for the part of the code where the actual algorithm for matrix determinant is written.** using System; namespace Determinant { class Program { public static double DET(int n, double[,] Mat) { double d = …

Member Avatar for Anel_1
0
6K
Member Avatar for janicemurby

hi all ive got a file to display info from database and im trying some way to fetch username from another table for it i have put this at top of file. <?php $query = mysqli_query($conn,"select * from user"); $fetch_user = mysqli_fetch_array($query); ?> and here is the section for displaying …

Member Avatar for janicemurby
0
318
Member Avatar for S._1

Hello everyone, I'm pretty new to python and I have found this code https://www.daniweb.com/programming/software-development/code/260268/restart-your-python-program to restart a python program. I have developed a little program and applied this function to it. By pressing a Button the function `resize()` is being called which triggers the `restart_program()` function. But when I start …

Member Avatar for Gribouillis
0
2K
Member Avatar for Minimalist

Good day community, I have completed vb.net program (a school timetabling program) and I am in the process to create a website. At the moment word -press on wamp server and parallel Microsoft Expression Web 4. To sell the program off the website, either clickonce or downloaded, I request the …

Member Avatar for Minimalist
0
311
Member Avatar for davy_yg

Hello, Can anyone help me check my contact captcha? http://www.advance-web-studio.com/contact.php That suppose to appears a captcha. Like this: http://www.advance-web-studio.com/captcha.jpg I wonder why it disappears?

Member Avatar for Dani
0
235
Member Avatar for nadiam

Hello. I'm taking subject compiler construction. and there is a question and the answer that i don't anderstand. if it was digit -> [0 - 9] then it would be ->0->1->2->3->4->5->6->7->8->9 final state digits -> digit+ then it would be ->digit->digit->digit loop final state but this question i dont understand …

Member Avatar for rubberman
0
435
Member Avatar for Dylan_11

HI, I have attempted to put a login page on to my web page that i am developing as a learnig curve. I am almost there i think, i have created a table in my database that stores the username and passwords and i have a php script that i …

Member Avatar for diafol
0
1K
Member Avatar for insanely_sane

Hola people :D So now that my holidays have begun... I'm bored :P I have decided to make random stuff with Java. So till now I have upgraded my checkers game (added high scores, color 'themes' for the board, etc.), made a music player kind of thing (used JFileChooser and …

Member Avatar for David_97
0
2K
Member Avatar for Andrea_7

Hi, I'm a graphic designer and am designing a site using Adobe Muse which creates HTML, CSS, and JavaScript. Can I export the site as HTML to a developer to integrate with Cold Fusion? There is a client login portion of the larger site created with Cold Fusion (I believe). …

Member Avatar for diafol
0
334
Member Avatar for can-mohan

I am looking for log archival utility or approach which should be able to help me in based on below policy. (1) whenever log file (system.log) size >30859 or file is 3 day old then it should archive the same with new name system.log1 and again start the feeding the …

Member Avatar for JamesCherrill
0
407
Member Avatar for davy_yg

controllers/Cspages.php public function index() { $this->load->helper('url'); $this->load->model('gallery_model'); $pic_unique_id = 18; // slider $data['pic'] = $this->gallery_model->get_picture($pic_unique_id); $this->load->view('index', $data); } views/index.php <?php foreach($pic as $pic_item): ?> <img src="<?php echo base_url('assets1/images/slider/'.$pic_item->pic_item );?>"> <?php endforeach;?> models/gallery_model.php public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures', array('picture_unique_id' => $pic_unique_id)); return $query->result(); } Now the result is: A …

Member Avatar for diafol
0
6K
Member Avatar for Karuna_2

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click 'Using writer As System.IO.StreamWriter = New System.IO.StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "Word List.Txt", True) Using writer As System.IO.StreamWriter = New System.IO.StreamWriter("C:\Users\Home\Desktop\lessons Word\Word List.Txt", True) Dim curLine As String = TextBox1.Text If (TextBox1.Text.Count > 1) Then curLine = "" For Each line As …

Member Avatar for tinstaafl
0
455
Member Avatar for ahmedrizwan1

public static void main(String[] args) { System.out.println(" Enter a terminating value "); double term = IO.readDouble(); System.out.println(" How many numbers will you enter "); double numbers = IO.readDouble(); //reading the value of how many numbers the user will enter System.out.println(" What is the largest number you will enter ?"); while(numbers<1){ …

Programming java
Member Avatar for rproffitt
0
577
Member Avatar for Mirty

python programming Your job for this question is to use Python turtle to draw any picture you'd like, making sure to meet the following requirements: Your code must use at least 1 if-statement, prompting the user to decide between 3 choices (e.g. colours, shapes, sizes, or anything else you'd like) …

Member Avatar for rproffitt
0
392
Member Avatar for long5001

Hi, I am trying to write a simple script that reads a file for two time stamps and then finds the delta. However, I can't get passed converting the time strings to datetime objects. I haven't done any coding since college and I everything I've read says this code should …

Member Avatar for long5001
0
974
Member Avatar for janicemurby

hi im attempting to add mysqli_real_escape_string into form to make more secure and after i added it in code below $event_type = $_POST['event_type']; $event_date = $_POST['event_date']; $event_country = $_POST['event_country']; $event_postcode = mysqli_real_escape_string($conn, $_POST['event_postcode']); $event_title = mysqli_real_escape_string($conn, $_POST['event_title']); $event_description = mysqli_real_escape_string($conn, $_POST['event_description']); $event_ltm = $_POST['event_ltm']; like so and go to fill …

Member Avatar for janicemurby
0
253
Member Avatar for Vanessa_1

I need to make this python code to only take one parameter. Right now it takes multiple. def get_list(): return [input("Please enter a string: ") for i in range(int(input("Please enter the number of strings you want to input\n")))] def longest(lst): return max(lst, key = len) def alpha(lst): return [e for …

Member Avatar for Gribouillis
0
347
Member Avatar for Shereen_1

Write a C++ program that inputs the number of students in a class and the number of tests and the grades of the tests conducted by each student, then it calculates the average of the student and outputs related information as given below. The Average of a student is calculated …

Member Avatar for JamesCherrill
0
333
Member Avatar for gamechick1988

hi, I'm new to PHP and mysql (so you're warned ;) ). i'm making a videogame database ( with XAMPP) and something goes wrong when I try to update my game data. It says the update went fine but the only all the spaces are now blank except for the …

Member Avatar for diafol
0
213
Member Avatar for gentlemedia

I have an issue with what seemed a simple task, but I'm having a brain farth, so it's not :) I count child elements with `length`and add `+1` on top of that length. This works fine and I store that in a var `$trackCount` $trackCount = $carousel.find('.owl-item').length +1; Now I …

Member Avatar for diafol
0
338
Member Avatar for naazsayed

HI , There are TWO Excel Files in my Program which I am trying to upload to a FTP server and then later Download it and its getting uploaded and downloaded with no error but when i try to open the file i get error message its corrupted or not …

Member Avatar for naazsayed
0
1K

The End.