199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Patrick_3

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 …

Member Avatar for Patrick_3
0
1K
Member Avatar for Start4me

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 = …

Member Avatar for Start4me
0
3K
Member Avatar for menukadevinda

<!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) …

Member Avatar for JorgeM
0
437
Member Avatar for Jojola

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 …

Member Avatar for Reverend Jim
0
226
Member Avatar for visya

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 …

Member Avatar for JOSheaIV
0
236
Member Avatar for Chinney

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 …

Member Avatar for Chinney
0
318
Member Avatar for amani_1

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

Member Avatar for rubberman
0
93
Member Avatar for alina.nazchowdhury

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 …

Member Avatar for ACE--
0
154
Member Avatar for aVar++

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 …

Member Avatar for Gribouillis
0
249
Member Avatar for Epn5014

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 …

Member Avatar for Ancient Dragon
0
160
Member Avatar for branding4you

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 …

Member Avatar for branding4you
0
150
Member Avatar for newbie14

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 …

Member Avatar for newbie14
0
143
Member Avatar for nuno.freitas.meneses.monteiro

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. …

Member Avatar for nuno.freitas.meneses.monteiro
0
326
Member Avatar for greatman05

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 …

Member Avatar for greatman05
0
260
Member Avatar for mmcdonald

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 …

Member Avatar for pritaeas
0
225
Member Avatar for Suzie999

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 …

Member Avatar for JorgeM
0
92
Member Avatar for Stefce

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; …

Member Avatar for Stefce
0
8K
Member Avatar for murali2489

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) …

Member Avatar for murali2489
0
176
Member Avatar for vaishali.k

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.

Member Avatar for yazan.quraan.39
0
157
Member Avatar for Carlos_9

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); …

Member Avatar for deceptikon
0
231
Member Avatar for sushilsth

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 …

Member Avatar for Reverend Jim
0
284
Member Avatar for Alonso_1

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 …

Member Avatar for deceptikon
0
3K
Member Avatar for Learner010

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 …

Member Avatar for Reverend Jim
0
192
Member Avatar for dany12

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 …

Member Avatar for dany12
0
348
Member Avatar for Matthew kun
Member Avatar for ObSys

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 …

Member Avatar for JamesCherrill
0
278
Member Avatar for rovastola

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 …

Member Avatar for Heanre
0
168
Member Avatar for Krefie

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 …

Member Avatar for Ketsuekiame
0
111
Member Avatar for dbalas

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 …

Member Avatar for Ketsuekiame
0
219
Member Avatar for davy_yg

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)){

Member Avatar for rpv_sen
0
128
Member Avatar for aditya.bhoi.35

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 …

Member Avatar for Ketsuekiame
0
364
Member Avatar for D33wakar

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.

0
390
Member Avatar for davy_yg

( ! ) 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?

Member Avatar for davy_yg
0
55
Member Avatar for tyler.dahle

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 …

Member Avatar for JamesCherrill
0
228
Member Avatar for CheerfulBiscuit

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 …

Member Avatar for JamesCherrill
0
253
Member Avatar for reiferdinan.picar

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 …

Member Avatar for stultuske
0
326
Member Avatar for EmilyJohnson

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 …

Member Avatar for EmilyJohnson
0
302
Member Avatar for tqmd1

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 …

Member Avatar for tqmd1
0
209
Member Avatar for nadiam

<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> …

Member Avatar for PsychicTide
0
284
Member Avatar for RAYNISH

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 …

Member Avatar for ryanjayson
0
248
Member Avatar for lyndata

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. …

Member Avatar for ryanjayson
0
320
Member Avatar for bestnone

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 …

Member Avatar for diafol
0
210
Member Avatar for rayborn66

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 …

Member Avatar for Emran__
0
2K
Member Avatar for Djmann1013

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 …

Member Avatar for Ancient Dragon
0
482
Member Avatar for refphlex

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 & …

Member Avatar for zouhair.kasmi
0
147
Member Avatar for Izzah_1

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 …

Member Avatar for zouhair.kasmi
0
236
Member Avatar for CoolAtt

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 …

Member Avatar for deceptikon
0
304
Member Avatar for patk570

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); …

Member Avatar for patk570
0
180
Member Avatar for lm111

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) …

Member Avatar for lm111
0
332
Member Avatar for Giedrius_1

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 …

Member Avatar for broj1
0
217

The End.