199,114 Archived Topics
Remove Filter ![]() | |
Hello, I am making a custom control which will serve as a "timeline". An integrated timer moves a line along the control to display where the time is currently. I am inheriting a Panel control for the timeline. When I draw my line, it constantly appears below the controls in … | |
How to give user the ability to set the decimal format rounding to whichever s/he prefers. I know that the users input can be gained by the code double decimalRoundTo; Scanner input = new Scanner(System.in); out.print(" Enter the number of decimal places you want to round to "); decimalRoundTo = … | |
<!DOCTYPE html > <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>AJAX with PHP: Quickstart</title> <script type="text/javascript" > var n = 1; function testNextPrime() { var isPrime = true; n = n + 1; // console.log('testing', n); for (var i = 2; i <= Math.sqrt(n); i += 1) { if (n % i == 0) … | |
This is a theoretical question but any specific technical knowledge that could help will also be appreciated. I am an IT Assistant with not much knowledge in programming (apart from EasyPattern and super-simple batch files) but have been given an opportunity to start getting into it by having been given … | |
hi friends....... i am doing a project in c#....... i need a urgent help...... i want to store all kinds of file(.doc,excel,bmp) in sql server 2008 in a single button click......the number of files to save depends upon the user...so i dont know how to create taable fr this and … | |
Hi all, So i was just wondering what would be the best software to use to program in C++ and then compile the program. So could you please name any software packages that you know of which can help you to program in C++ and if you could also state … | |
Q.1) Write a program that prompts the user to enter five words (using one cin statement), and store them in five variables, and then sort the words alphabetically | |
After build and debug my program, i want to publish it, and after is installed in my compiuter, i want the program will have the icon that i want to use, not by default. Like any other program, i want my program will have to an icon. Please help me … | |
Hello, This if statement is always returning true and I cannot see why. Could you guys tell me why? menu = input("Choose what you would like to do:\n\n1. Work out how far you will travel with a set time and speed\n2. Work out the speed you will need to travel … | |
Write a C++ program that will display the following menu and work accordingly. A menu which contains functionionality that will allow the following choices: 1. Enter the name of the file that contains students enrolled in the computer course. 2. Calculate and display the average and the letter grade for … | |
is there a way to mouse over the previous image and keep the previous image there but use png file that only has a play button in it. I echo my images out like this so I cant use java in the start of the page as I dont have … | |
I have a char all[1500]; which will store each network packet. I will convert the hex value into humand readable. Finally I need to extract the url. For e.g. I have this GET /mail/ HTTP/1.1\r\n. I know I can use first to decide if the word GET and HTTP/1.1. exist … | |
Hello guys, I am doing a Friend system on my website, and I did the friend request, to accept, but the friends list isn't alright in some part of code because it isn't take the correct id, anyone can help me? 1. <?php 2. 3. $users = $_SESSION['username']; 4. 5. … | |
Hello. I need to set up some pipes for a homework assignment as part of a bigger project. The issue I'm having is that the array (args) I'm using to populate the pipe arguments keeps segfaulting and I don't know why. Everything has been malloced beforehand and the faults only … | |
Hi all, I'm currently building a questionnaire and I've run into a head scratcher. Some of the questions require the user to give a number to represent the importance of the answer. Example: Instruction: Please select the radio buttons according to your preferred option, with 1 representing the most important … | |
I'm attempting to automate work on an external webpage. One particular element refuses to respond unless the mouse cursor is above it, which means the automation fails. I have tried firing events such as onmouseover, onmousedown etc.. but nothing appears to work unless the system mouse cursor is above the … | |
Hello, i'm new in PHP so i dont know much about it so ill need a little help with this "eazy" problem. I need to calculate the total price of the items on every "checkbox" check. here is my code: <?php $mikrobranova = 3999; $smasina = 4999; $amasina = 9999; … | |
Hi Team, I have written a Sample Code in which I cast SubClass reference to point to SuperClass Object. It behaves like a SuperClass reference ( I mean when i try to use Methods which are not in SuperClass,it throws error so it means it is an instance of superclass) … | |
Write a C++ program that can take either two integers or two floating point numbers and outputs the smallest number using class, friend functions and function overloading. | |
I NEED HELP PLEAS #include <stdio.h> #include <stdlib.h> #include <string> #include <ctype.h> #include <iostream> using namespace std; struct Player { int yearsPlaying; float playerPay; string playerLastname; string playerAge; string playerName; char playerNumber[100]; }; const char fileName [] = "Players.txt"; void createFile(void); void printPlayer(struct Player*pi); void writePlayer(FILE *fp, struct Player *pi); … | |
Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click Dim sqlquery As String = "INSERT INTO firstfloor_house_rent (datee,amt) VALUES ('" & DateTimePicker8.Text & "', " & TextBox24.Text & ")" Dim sqlcommand As New OleDbCommand With sqlcommand .CommandText = sqlquery .Connection = conn End With ans = sqlcommand.ExecuteNonQuery() If (ans … | |
So I'm trying to count the number of occurrences of each digit within an array. My code I've got so far looks like the following: #include <stdio.h> #include <string.h> int main() { int numbers [10]= {1, 4, 5, 5, 5, 6, 6, 3, 2, 1}; int count = 0; for(int … | |
i want to display all possible colors on a form (i am using timer with 500 interval). what logic should be there to display all possible color (i want to display colors which are more closer to each other like red to pink not just red to black). color should … | |
Hy I would like to know what python gui framework, I can use that will be compatible cross platform and will help me create my snippet saver, that will be relational database, with categories for each language. I thought I can use kivy to create my graphical interface than use … | |
Ok so I'm writing a program that outputs text to a file. Currently, I am writing it to a .TXT file for ease and convenience. Ideally, I would like to output some of the information so that it is formatted with Italics. I'm thinking that using a RTF file would … | |
I'm trying to code an array that will make user print in 125 digits and then add the sum of it, this works but im trying to make the message like: Please enter digit : 1 please enter digit : 2 Please enter digit : 3 ... Do i have … | |
Hi boys and girls, I use at-commands through the comport. The problem is if I send "get everything" to the comport the output is about 30 lines of text in under a second. The c# comport listener is only able to capture about 2 of these lines due to the … | |
I have a problem with deploying the 3 tier lightswitch web application on the server. On the local server IIS7 everything works perfect but when i deploy it to the vps which also runs IIS7 it gives me this error when i try to navigate to the page: HTTP Error … | |
What's wrong with this code: <?php include('include/con_database.php'); $result2 = mysql_query("SELECT * FROM banner ORDER BY DESC"); while ($data2 = mysql_fetch_array($result2)){ echo '<td>'.$data2['images'].'</td>'.'<br>'; } ?> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in E:\xampp\xampp\htdocs\IndonusaCMS\index.php on line 39 Line 39: while ($data2 = mysql_fetch_array($result2)){ | |
I am making a personal assistant console application by using C# my problem is when after selecting the condition in the loop in main method in 165th line after executing the below code the the scope of the exection should return to the 165th line until it exists.i have used … | |
This is a simple echo server that I've written while learning sockets programming. Compile the server and run it. You can connect to it using telnet like this: telnet localhost 1337 Disconnect the client by typing "/quit" without quotes. | |
( ! ) Parse error: syntax error, unexpected $end in E:\wamp\www\IndonusaCMS\admin\index.php on line 544 IndonusaCMS/admin/index.php ?> </div> </div> </body> </html> <? } ?> Line 544 is the last blank line. What should I do to fix the error? | |
package hw3.categories; import java.util.ArrayList; import hw3.DiceGroup; import hw3.api.IScoreCategory; /** * Scoring category for a yahtzee. A DiceGroup * with N dice satisfies this category only if all N * values are the same. For a dice group that satisfies * this category, the score is a fixed value specified in … | |
Hey everyone, I really need help in solving a problem that I have to use recursion for. I have a list of paper objects. Each paper object has its own author(s) objects. Each author object knows which paper(s) objects they belong to. I have to build a scholarly neighborhood for … | |
We need it tomorrow, the code for the assignment #3 and #4 question. There was no continuation. Date Class Project (part #3) Add the following data items to your Date class 05 points 1. int dayOfYear 2. String monthName 3. String dayOfWeek Add the following methods to your Date class … | |
Hello All, I am getting error "*You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1*" on running my php script. My SQL Syntex is: $query = "SELECT (movie_name,movie_year,movie_director,movie_leadactor,movie_type,movie_running_time,movie_cost,movie_takings) FROM movie … | |
Dear Sir, I am using these codes <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>My Contacts</title> <style type="text/css"> html { overflow:auto; } body{ background-color:#e7f4fe; } #container { margin: auto; position:absolute; top:0;left:0;right:0;bottom:0; background-color:#CFC; padding:10px; overflow:auto; width:300px; height:300px; } </style> <body> <div id="container"> <form action="" method="post" enctype="multipart/form-data"> <img align="middle … | |
<table width="700" border="1" bordercolor="#FFFFFF" bgcolor="#000000"> <tr bgcolor="#FFFF66"> <td height="28" colspan="3" align="center"><strong> My Blood Pressure Data</strong></td> </tr> <tr bgcolor="#FFFFFF"> <td>Date:</td> <td>:</td> <td><?php echo $row["date"];?></td> </tr> <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <td width="170">Select a time(12Hours)</td> <td width="3">:</td> <td><?php echo $row["time"]; ?></td> </tr> <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <td>Systolic mm Hg</td> <td>:</td> <td><?php echo $row["systolic"]; ?> </td> … | |
yes. my coding as follows Public Function connectDB() connStr = "Data source =KIRAN;Initial Catalog=eStaffMgm;Integrated Security=SSPI;User Id=**;Password=*******" connSQL = New SqlConnection(connStr) Return connSQL End Function My system name is Kiran and the database name is eStaffMgm The default instance of SQL Server 2012 is MSSQLSERVER The code in the module was … | |
i am using employee table to test if i am doing the whole program correct. I have 5 buttons. one is to add records and another to save(commit), to update, to delete and to clear. I am having trouble with the code to save the record to the data set. … | |
this is my selection option database from "lecturer" table from subjects No. subject credit_hour capacity 1 (111) AAA 3 20 2 (222) BBB 4 10 3 (333) CCC 3 30 This is my option which is displaying the option using ajax which is testing1.php <?php $conn = mysql_connect('localhost','root','password'); mysql_select_db('lecturer'); if … ![]() | |
Hi I need some help. I am trying to write a program that will search a file for numbers of type int and write the largest and the smallest numbers to the screen. This is how far I got but when I it came to writing the code that would … | |
Hi, I recently got BCrypt from the NuGet manager. I am trying to find documentation on how to use it in VB, but no luck. Anyone used this? Here is the link to the package: http://bcrypt.codeplex.com/ I just need to figure out how to use this in VB.net, if I … | |
I need help with my eiditing a record function, I'm struggling to get it to work. Thank you int Search(Student List[], int Size, string Target) { for(int i = 0 ; i < Size ; i++) if (Target == List[i].LastName) return i; return -1; } void Edit_Record(Student List[], Student & … | |
hey guys so im doing a really simple sign up form but its not working. maybe im doing smtg wrong. form: <form method="post" action="PersonalDetails_Process.php"><!--link to DB--> <br> <h1><center>PERSONAL DETAILS</center></h1> <br> <br> <label>Name <span class="small">Add your name</span> </label> <input type="text" name="name" id="name" required /> <label>Phone <span class="small">Add your phone</span> </label> <input … | |
Hi all, i read that the .net framework is a wrapper around the win32 api. can someone please clarify the following for me: 1.if .net is a wrapper around win32 api it means we are able to do everything with .net that we used to do with win32 api. then … | |
Hello everyone, I have a code to display images in a table for a specific ticket. I am needing the table to be 4 columns wide then repeat until there is no more images to show. Here is my code: <?php $folder = "images/ticket_images/".$_REQUEST['ticketid']."/"; $filetype = '*.*'; $files = glob($folder.$filetype); … | |
I am having problems displaying a map. Data in ListView is showing on the page but the map is missing. I would appreciate some help. Here is what I have so far: The following pieces of code are in MyDirectory.Master page: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> function init_map(map_canvas_id, lat, lng, zoomLevel, markers) … | |
Hi, I've been recently trying to create a language change script. Everything goes smoooth but there are several complexed places inside the page that needs some advanced php code. So the main problem is: I do not know how to make a variable from main page work in array. $eng … |
The End.