199,114 Archived Topics
Remove Filter ![]() | |
Hello, I have small problem and can't solve it. I am trying to write javascript function inside html file and call it from click button but it does not work. I try both tags: `<script type="text/javascript">` `<script language="JavaScript">` I include it at the head tag, at first of body, at … ![]() | |
![]() | I'm making money lending system. On that I use mysql database. I want to find customer's who skipped their daily instalment. I try this code. But It has error. ***Prveious code:*** SELECT l.loan_id, l.custormer_id,custormer_name FROM loan l JOIN income i ON l.loan_id = l.loan_id WHERE l.loan_id NOT IN (SELECT loan_id … ![]() |
**i want to normalize these ingredients values to range of 0,1 my question is how to pass how dictionary to function? and recieving as a arguments** sample code def normalize(d, target=1.0): raw = sum(d.values()) factor = target/raw return {key:value*factor for key,value in d.iteritems()} Use it like this: >>> data = … Programming python | |
Hello, Please could someone help me with the syntax to add orderlines to an order in the below? I just cant figure out the syntax for it. many thanks using System; using System.Collections.Generic; namespace ParentChild { class Program { static void Main(string[] args) { var Order = new Order { … | |
Hi , Below is the code for printing even/odd numbers alternatively.But some how i am not able to achieve the result. I have seen a version with while loop http://www.bogotobogo.com/cplusplus/quiz_multithreading.php working perfect. But i would like to use one thread for printing one value instead of same thread running in … | |
hi all Hi i build program. it is a selection. if else. where it ask the user to enter 3 marks for a student. the student pass if their grades is greater than or equal to 50 and they fail if their grades is less than 50, right my problems … Programming java | |
> Help please, I'm just practicing and it's really annoying to have an error. I tried everything but yeah, failed. lol #include <stdio.h> main(){ int order; int price=5; int bill; int billd; int billf; scanf("Amount of Order: %d",& order); if (0<=order<=10); bill=(order*price); billd=(bill*0.1); billf=(bill-billd); { printf("Bill: %d",billf); } else if(11<=order<=20); … | |
I am writing a VB.Net (VS 2015) application to control equipment in real time which is connected via USB ports. The equipment requires that text string, terminated by a chr(13) be sent. Most commands will get a response back. For example one command (set VALVE1 ON) will open a valve … | |
Hi I have an excel macro question in VBA. I have this code. I want it to go down each cell in row C and run the same if statement instead of just depending on cell C2. I want it to continue to C3, C4, C5, all the way till … | |
Suppose this is a Table Create Table Person( PersonID varchar(8), PersonLN varchar(16), PersonFN varchar(16), PersonADD varchar(64), PersonPH varchar(16)); so there are many enrty in that table.. So how to select the lastest row entry from that table? what will be the Mysql statement? take PersonID as a Primary key.......... | |
Hi Guys, I am a novice at coding, firstly I knowthe functions in my code are deprecated in future versions of PHP, I'm running 5.5. I have a few days to get my current code working with this desired functionality which is a throw away prototype, so for now I'm … | |
![]() | Hi all, I'm having an issue with a local copy of a live WordPress site. The local site itself "http://localhost/mywordpress/" works, but when I try to access the wp-login.php page, it redirects me to the production site. I do the following under a local XAMPP setup: copy the production WP … ![]() |
Hi everyone, I am trying to make a user login page. The user is required to fill username and password in textFields and when he clicks the Submit button, all details are needed to be written in the database. import javax.swing.*; import java.sql.*; import java.awt.*; import java.awt.event.*; public class register … | |
I am trying to define a function in c++, I wrote it in main function. I am getting an error : a function-definition is not allowed here before ‘{’ token}I have defined it as following : float distance(float x, float y, float pitch) { float r; //local variable r = … Programming c++ | |
Ok, I know about how to check for the end of a file, but what I need to know, is if you create a new file, thats empty, how do you check if it really is empty, and if its the same as EOF, then what am I doing wrong … | |
Hi all I have a system that im working on the the code works fine it, but theres a part thats giving me issues below is the code that loops through the number of records in the table and generates the same number of update queries with the random numbers … | |
So I'm starting to learn Python (3.43) code on my own time and my friend who is a major in Comp Sci made up a little assignment for me to try to complete although I have no class experience. So what I need to do is make some code where … | |
Hello everyone, I have a txt file with data which I want to import to an excel file, by button click. The first couple of lines of the txt file contains general information which I don't want to export. The program should only read the lines which contains a word … | |
Hi guys i need help to read block data from binary.. The format is Byte position, Content, Format 1 - 4, Block Length, I * 4 5 - 12, Sensor Name, C * 8 13 - 20, Satellite Name, C * 8 21 - 24, Latitude, R * 4 Im … Programming visual-basic | |
I've been trying to debug this for a couple of days...cannot see why it performs the way it does. Help is much appreciated. Forgive me about how lengthy the assignment details are. -Create a function named whileTest(). Inside the function, create a variable named number and assign it a value … | |
Hello to all! I am using Sql server express 2008. Now I want to use Integtation services such as creating and executing packages. But I could not find any interface to create and execute packages in version of server which i am using. When I go to start menu > … | |
hi I have been trying to build this array program but the result is hurrendous dont know where i have gone. here is the codes. it is public static int getLargest(int num[]) { int i, largest=0; for(i=1; i<5; i++) { if(i==0) { largest = num[i]; } else if(num[i]> largest) { … Programming java | |
Hello to all! I want to make my netbeans project executable and portable. i write a program which connects to Ms access database and execute an Insert Query. My program is running successfully. Now I want to made executeable of this project and want to run this executable on another … | |
I'm working on a program that requires some very low level optimization. My question is, when precision isn't an important factor, how can I automatically use the most efficient floating point type for whatever architecture the program is being run on? As far as I'm aware, floats are more efficient … | |
hi..... i am searching for the query for retrieving the deleted data from the table.From the web i got "flashback" method to get the dropped table.Any one has any idea pls,help me thanks in advance | |
I have a problem whereas one domain is redirecting to another domain, both of which I own. How can I get one domain independent of the other ? | |
Hi guys, I need to create the following program: 1. Declare 2 5-element integer arrays. (a) One should be for the winning lottery number (hard code this as 12-35-34-2-5). (b) The other should be for the user's lottery number input. 2. Declare an integer to count the number of matching … | |
I want to find the MAC address of network adopter, I have a working code too but my problem is it only works if IP addres is enabled otherwise it won't get the address is there any solution to find MAC address even if IP Enabled is false if its … | |
I'm using phpexcel , I created a script that so far it takes me an Excel spreadsheet and I put the field values in an array of associative arrays , I found a way then print these values in a table html , to see if the recreated excel files … | |
hii frnds Need Help i am work on vb.net windows application now in my application there are on update button but simply if u update the record then first delete the record then insert that's update there record but i check if E_id and E_code same then msg show data … Programming vb.net | |
My understanding of code blocks is that it uses gcc. So I am curious why gcc allows you to have a function called itoa, but code blocks does not let you have a function called itoa. Does anyone know? | |
This program displays a simple analog clock to show the current system time. Uses a Hand class to create objects - hour, minute and seconds hands.The 'hands' are just straight lines, and two circles make the 'frame' of the clock. Compiles correctly on TurboC++ v3.0 | |
#include <algorithm> #include <cassert> #include <cstdint> #include <iostream> #include <iomanip> #include <string> #include <vector> // Use these constants for your arrays. const int MAX_ROWS = 100; const int MAX_WIDTH = 100; // Side of an airplane, port or starboard. These terms are more // precise than "left" and "right," which … | |
Hi Guys! im making a small website based around a very simple and basic mvc pattern (in this case just seperating files into different folders) Im currently stuck on selecting data from the database and displaying it. My model looks like this: <?php require_once('../Controller/config.php'); class Readings { public $dbconn; public … | |
I want to get all the related pics corresponding to the pic selected.... here is my view page <?php foreach($detail as $row){?> <img class="primary-image" ima="<?php echo base_url();?>images/<?php echo $row->image;?>" src="<?php echo base_url();?>images/<?php echo $row->image;?>" alt="" /> <?php }?> my control page looks like this.... public function product_details($p_id) { $data['active_mn']='product_details'; $data['product']=$this->roxmodel->get_product_details($p_id); … ![]() | |
I have a form on "add-category.php" that enables the admin to create a category and doing so includes uploading an image to a folder and inserts its file name and relevant text into the database. The script worked well with mysql_, but now it stopped working after I upgraded my … | |
<td width="50%" class="path">Student Name <div class="span12"> <form method="post" action="<?php $_SERVER['PHP_SELF']; ?>"> <select name="student_reg" class="chzn-select"required/> <option></option> <?php @$db = mysql_connect("localhost","root",""); mysql_select_db("student",$db); @$result = mysql_query("select * from admission")or die(mysql_error()); while ($row=mysql_fetch_array($result)){ ?> <option value="<?php printf ($row['id']); ?>"><?php printf ($row['name']." ".$row['lastname']); ?></option> <?php } ?> </select> </td> </tr> <?php $sub_name = $_POST['sub_name']; $sub_id … ![]() | |
Group, I've created and published a VB.net program. I've also installed this onto my computer. I want to set it up now to run via the Window Task Scheduler. However I need to locate the executable file to start the run. However I'm unable to find it using the name … | |
Hi there to all I'm trying to make application which should extract certain data from XML files. I'm using form, combobox and button. If someone could guide me because I'm not so familiar with programming... here is code example To populate Combobox1 and it works fine Private Sub form1_load(sender As … | |
Hi All, I want to generate report in a document format and the same should be converted in to pdf using JAVA. Can you please any one suggest me some libraries for the same. Thanks in advance Regards, Anand | |
Hello! I recently installed windows vista on a old laptop, and i saw that it comes with a program called Windows photo gallery. Is there any way to make a program with all \ most of the features of that program? Thanks! | |
#include <algorithm> #include <cassert> #include <cstdint> #include <iostream> #include <iomanip> #include <string> #include <vector> // Use these constants for your arrays. const int MAX_ROWS = 100; const int MAX_WIDTH = 100; // Side of an airplane, port or starboard. These terms are more // precise than "left" and "right," which … | |
I am going through .net book. I happen to read that once we are storing the web form in asp.net ,it automatically shows local host path in save directory. But in my computer I don't see local host path. It shows the usual vb.net installed folder in C directory and … | |
Hi all, I have an array of objects that looks like this: object(stdClass)[2] public 'statuses' => array (size=97) 0 => object(stdClass)[3] public 'metadata' => object(stdClass)[4] public 'iso_language_code' => string 'en' (length=2) public 'id' => int 700797209428668416 1 => ... n => ... I a simply trying to iterate through the … | |
Hello, I have this code: #include<stdio.h> int q = 10; void fun(int *p){ *p = 15; p = &q; printf("%d ",*p); } int main(){ int r = 30; int *p = &r; fun(p); printf("%d", *p); return 0; } which returns `10 15` I can't understand why it doesn't return `10 … Programming c | |
hi i have a events script for users if the user submits a event then the event shows up fine but if they add another event it over rights the previous event how can i stop that where they can add more than one but maximum 4 as one time … | |
I have a base64-encoded string on database row. How to create a .pdf file from this encoded string using codeigniter and mpdf ? foreach($report as $files) /* send email confirmation*/ $this->data['email'] = TRUE; require_once APPPATH.'third_party/MPDF561/mpdf.php'; $mpdf=new mPDF('c','A4','','',10,10,20,20,10,10); $mpdf->SetDisplayMode('fullpage'); $this->load->helper('custom_email'); $emailTo ="email@address.here"; $emailFrom =$this->config->item('email'); $emailSubject ='Subject Here'; $emailMessage ='Your PDF files … | |
Hi I hope somebody can help me. I am trying to download jquery and keep getting an error.I am running win10 with the edge browser. With the old pc running win7 did not have any problem, any idea what to do? Thanks | |
Here is the original task: * The Fast Freight Shipping Company charges the following rates: Weight of Package Rate per Pound 2 pounds or less $1.10 Over 2 pounds but not more than 6 pounds $2.20 Over 6 pounds but not more than 10 pounds $3.70 Over 10 pounds $3.80 … | |
I am Using a fingerprint Scanner for attendance posting. My aim is to copy the attendance log files from the fingerprint reader machine.the machine is connected to one of the lan ports on the same network.I know the ip address of the device and port no,But dont know how to … |
The End.