199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for idmanner

Hello, I've been working on this chat program which has a gui. Basically for now im just pressing start then connect to get a connection. Start is for the server window and if you press connect that will be the client window. I can send messages from the client to …

Member Avatar for idmanner
0
291
Member Avatar for Petcheco

Hello, guys. This challenge asks us to find the 10001-th prime. Here's my code: // A reasonable approximation is to say that the n-th prime is such that p(n) = n*(log n + log*(log n) - 1). // With that in mind, we can say that the 10001-th prime is …

Member Avatar for Petcheco
0
258
Member Avatar for younes.keraressi

Hi, i got a problem in my websever, i am using lastest version of uniform server on microsoft windows 2008 r2 , but the problem is the httpd crash i searched for the solution some1 tells that i should use sfc/scannow , i did it same problem , and details …

Member Avatar for younes.keraressi
0
329
Member Avatar for blueshiftdani

I am trying to store a value from a selected row from one table into another. My code is as follows. string CustomerID = textBox1.Text; SqlConnection con1 = new SqlConnection(ConfigurationManager.ConnectionStrings["ConString"].ConnectionString); con1.Open(); SqlCommand myCommand = new SqlCommand("Select CustomerID, Name from TableCustomer WHERE (CustomerID like '" + CustomerID+ "')", con1); SqlDataReader rdr …

Member Avatar for blueshiftdani
0
4K
Member Avatar for luigi_1

i was developing an app for android where by clicking on buttons i could control the digital state of an Arduino board. Arduino responses with a xml file created in runtime and, by fetching its contents, i'd like to display the actually state of the pins. Now, i could realize …

0
113
Member Avatar for CattleOfRa

I've just started learning C++ on Linux. I have written a very small program which compiles but I get run time errors everytime I run it. The code is shown below: #include<iostream> int DoubleOf(int n); int main() { std::cout << "Double of 5 is " << DoubleOf(5); return 0; } …

Member Avatar for sepp2k
0
194
Member Avatar for bunkus

Is there anybody having a code snippet for using the Bresenham circle algo and modifiying it in a way so that it actually draws arcs with specified start and end angle instead of complete circles? A Bresenham algo for a complete circle in Python would be like this: [CODE]import PIL.Image, …

Member Avatar for vegaseat
0
8K
Member Avatar for gahhon

Based on my understanding, both are doing the same way which also kind of override the methods. Abstract method is, both childclasses are having the same methods, but different execution code. Interface is, whenever the class implement the interface class, the class must write the execution of all the methods …

Member Avatar for JamesCherrill
0
227
Member Avatar for kadriirdak

Hi, I have a range of *start* and *end* dates return from database in while loop i need to find, how many of them are continuing. The example return data; Array ( [start_date] => 2014-09-22 [end_date] => 2014-09-28 ) Array ( [start_date] => 2014-09-15 [end_date] => 2014-09-21 ) Array ( …

Member Avatar for kadriirdak
0
271
Member Avatar for gahhon

I have a Task class (superclass) which inherited PracticeTest class(childclass). I'd faced question regarding my pass year question. In fact, we are allowed to declared like this Task aTask = new PracticeTest(); But i wonder why we are doing this way? Thanks for advance explanation.

Member Avatar for JamesCherrill
0
208
Member Avatar for kadriirdak

Hi I have a query and I like to see the result until the condition match. I am trying to find if the end date(+1day) is equal to next row start date if so list it. I have the below query does the job but it also list whole table …

Member Avatar for kadriirdak
0
151
Member Avatar for vegaseat

Just some interesting applications of the bitwise and (&), or (|) operators. You might find some other uses.

Member Avatar for vegaseat
0
282
Member Avatar for JasonWung

Hi, I have this situation while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ $images[] = [ 'image' => $row['image'] ]; } function image_html($image) { return '<img src="' . $image['image'] . '" class="img-responsive" />'; } echo '<div class="small-box"> '. image_html($images[0]) .' </div> <div class="small-box"> '. image_html($images[1]) .' </div>'; // some more divs Is it possible …

Member Avatar for ryantroop
0
200
Member Avatar for A. Gregory

how do you write a c++program using the do while and while do loop to list prime numbers between one and thirty

Member Avatar for David W
0
181
Member Avatar for cristian.stilpeanu.1_1

hello, after I fill the contact form, I get the message that was sent successfully, but my email receive error: A message that you sent was rejected by the local scanning code that checks incoming messages on this system. The following error was given: Erorare reference : This email was …

Member Avatar for cristian.stilpeanu.1_1
0
529
Member Avatar for Bartosz

Hello there, I am having a problem with small application. I have used gdb and following error appeared: strlen() segmentation fault. Could anyone help me to find out solution? int main(int argc, char* argv[]){ char* name = malloc(strlen(argv[1])); name = strcpy(name, argv[1]); printf("%s \n", name); return EXIT_SUCCESS; }

Member Avatar for Bartosz
0
3K
Member Avatar for Shiladittya

I want to get all the vertices from an ARC. I have all the data (for ex : start point, end point, start angle, end angle, radius) which will used to draw an arc but my need is I have to generate all the vertices from the arc data. I …

Member Avatar for stultuske
0
213
Member Avatar for reminem

Hello everyone, I'm creating a simpel survey tool'. When people insert the question, they can also what kind of question type (checkbox or radiobutton) Adding question and types in the mysql is oke.. I have a problem with showing the type & question Problem: the questions only show if I …

Member Avatar for reminem
0
270
Member Avatar for pritaeas

For one of our projects we are looking for a Word editor that can be used in ASP.NET without the need of Office/Word being installed on the server. The requirement is that we need to be able to edit Word mail merge templates online. Any advice or pointers welcomed.

Member Avatar for pritaeas
0
242
Member Avatar for Sophia_1

Hi, i have problem to save record and send email in php. After selecting the responsible person, the system supposed to save the responsible person in the database and then send email to notify the responsible person on his progress. The coding is below but it doesn't work. Please kindly …

Member Avatar for cereal
0
592
Member Avatar for Wendy_3

I am having trouble with my code. The conversion for both Fahrenheit and Celsius will not display, and when I select "Celsius to Fahrenheit", it gives me the conversion for Fahrenheit to Celsius. I'm not sure what I'm doing wrong. I've already searched for help and have gotten nowhere. So …

Member Avatar for rch1231
0
345
Member Avatar for Robert_34

I keep getting this error message when I try to run ----jGRASP exec: java DomParserExample Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:615) at DomParserExample.getIntValue(DomParserExample.java:152) at DomParserExample.getAlbum(DomParserExample.java:111) at DomParserExample.parseDocument(DomParserExample.java:89) at DomParserExample.runExample(DomParserExample.java:35) at DomParserExample.main(DomParserExample.java:177) ----jGRASP wedge2: exit code for process is 1. ----jGRASP: operation complete. Here is my code that I …

Member Avatar for JamesCherrill
0
828
Member Avatar for Jake.20

Greetings Pros, I just want to ask how can i format a certain string to italic. I have this code but it's not working. Well I know it will not work because the array is still in array format not in string yet. Right? $(document).ready(function() { //The demo tag array …

Member Avatar for Jake.20
0
378
Member Avatar for Papa_Don

Group, I'm converting a text file into a .pdf file using ItextSharp. The code below works perfectly to do this. Unfortunately the default font size is to large. I need to make it smaller. Here's my code: Private Sub ConvertToPDF() ' Converting the Restran text file to a PDF file …

Member Avatar for tinstaafl
0
4K
Member Avatar for Ma Nicole Ydralyn

Hi guys I am really having trouble on what to do with my program. We are asked to make a cashier's program and I don't know how to do the the Receipt... I don't know what to do in the order part... how about if the customer will order 3 …

Member Avatar for David W
0
6K
Member Avatar for Yuki_1

Hey guy,I would like to do a number jumping just like the picture.In the textbox,it will show number "3".When the button is click,the textbox number "3" will change to "2" then click again it will change to "1".How to do it?! I had try this code but useless(i know that …

Member Avatar for Yuki_1
0
151
Member Avatar for Papa_Don

Group, I'm using `System.IO.File.Move` to move an existing file into another folder. However it the program is stopping at this point with the error message "The process cannot access this file because is being used by another process". Unfortunately I can't find "the other process". For the record, I've also …

Member Avatar for Papa_Don
0
1K
Member Avatar for hadisur_rahman

Write a program to check the password is too strong or strong or weak & also check the password is validate or not.. you can use code of c/c++ and you want ....

Member Avatar for Lutina
0
633
Member Avatar for basitji

Write a program that accepts three values from a user and print the two highest value and thier sum.

Member Avatar for Lutina
0
122
Member Avatar for punji

I'm trying to query from two tables but whenever i run my php script i get this error, any help would be highly appreciated Database query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to …

Member Avatar for punji
0
224
Member Avatar for tgreiner

OK, so I've asked a question like this before and I thought I understood the answer (solved) but I am having problems again and I still do not understand why. I am compiling with MinGW. Here's the code: string filename="D:/__GNU analyze/test/bin/Debug/_ClusterFormat/Test2.6d .txt"; fstream file, file2; string cluster="frame"; string line; Matrix …

Member Avatar for tinstaafl
0
142
Member Avatar for Satyam_1

HI, I have a form1 with datagridview, and same datagridview in form2. both have databindingsource so when I update any data in form1 it should reflect the changes in form2, when both are open. Here is some what could i get, but its not refreshing the data. form 2 load …

Member Avatar for altjen
0
356
Member Avatar for paul1145

In the code below, I'm trying (works) to insert a mail message before the signature line. With each new email within a run, the email new window flashes on the user's desktop. I'd like to minimize to outlook window to reduce the 'flashing'. The email is sent correctly but I …

Member Avatar for paul1145
0
415
Member Avatar for danielg55

I have this in a code: ` int load_snapshot(char *fname, int files) { FILE *fd; char buf[200]; int i, j, k, dummy, ntot_withmasses; int t, n, off, pc, pc_new, pc_sph; #define SKIP fread(&dummy, sizeof(dummy), 1, fd); for(i = 0, pc = 1; i < files; i++, pc = pc_new) { …

Member Avatar for rubberman
0
100
Member Avatar for Suzie999

I'm using the titled library from http://dotnetzip.codeplex.com/ I've zipped up a few folders and files `zip.AddDirectory(path);` where path is a fully qualified path to the folder I want to zip. When I extract `zip.ExtractAll(AppDomain.CurrentDomain.BaseDirectory + "Zipped");` I get the whole directory hierarchy in the "Zipped" folder. That is fine if …

Member Avatar for tinstaafl
0
237
Member Avatar for durgaBHAVANI
Member Avatar for vegaseat
0
2K
Member Avatar for Pompy

Hi im trying to do this project for class on functions. I am little confused on what i am doing wrong. Here is the assignment 1) Write a program to calculate the wind chill. The wind chill is calculated by using the ambient temperature and the wind speed. Wind chill …

Member Avatar for Santanu.Das
0
240
Member Avatar for Ahmed_62

plz some one explain in details this code : we have array of 9 cells and 0 present empty locations we want solution of this array (no number will be repeated) also if there is any way to call this functions in main so as the program runs succesfully plz …

Member Avatar for gusano79
0
206
Member Avatar for Violet_82

Hi guys, I'm following an example from a book (incidentally I'm amazed how many mistakes I've found in pretty much all the MVC books I've so far consulted) and I think I've found where the error is by going line by line, compile and executing the app. Basically, this is …

Member Avatar for Violet_82
0
807
Member Avatar for Habib_7

I wrote this program that get words from user and if it was entered already it will print you loose but when I the first code crashs but the second code works! why the first code is crashs? #include <stdio.h> #include <string.h> int getword(char *word); int find(char * words[], int …

Member Avatar for David W
0
334
Member Avatar for Syed Ammar

Hey guys im having a problem in structures.. i dont know how to initialize a an array of 10 contact instances.. plz help me out. this is my question statement.. "Declare a structure Contact that has a name, address, mobile number. Now create and (hardcoded) initialize an array of 10 …

Member Avatar for Moschops
0
235
Member Avatar for Raman_4

In the below python code, scrollbar for the panel is not working. I have added checkboxes under panel in the 2D for loop. Please help here def GenerateTree(self,event): v1=int(val1) v2=int(val2) print v1,v2 x=v1+v2 print x panel = wx.lib.scrolledpanel.ScrolledPanel(self,-1, size=(1100,1500), style=wx.RAISED_BORDER,pos=(10,145)) panel.SetupScrolling() UEarr=('UE1','UE2','UE3','UE4','UE5','UE6','UE7','UE8','UE9','UE10','UE11','UE12') LCarr=('LC3','LC4','LC5','LC6','LC7','LC8','LC9','LC10') y=0 i=0 j=0 k=0 for i in …

Member Avatar for vegaseat
0
241
Member Avatar for ramkishor

how we can bind DataRows value into list<string>detail sir i am binding values from database then how we can use list<string> for example dr["field"].tostring();

Member Avatar for ramkishor
0
122
Member Avatar for Bensirpent07

I have some JQuery code where an if-then statement is being run after a .slideToggle event. I just don't understand why the if section is still being run when it would appear the if statement is false. Code incoming: JQuery: $(function() { var pull = $('#pull'); menu = $('div#nav ul'); …

Member Avatar for Bensirpent07
0
224
Member Avatar for divyakrishnan

Hi.. I setting start date and end date in my php page using javascript with following options. Start date options mindate-today maxdate-end date(after selecting end date) End date options min date - start date Its working correctly.But I want to change the date format from yy-mm-dd to dd-mm-yy. I changed …

0
103
Member Avatar for collin_ola

Hi! So yesterday when trying to run a program that previously ran perfectly, I received the error shown in the title and I've no idea why. Nothing that could have caused such error was changed, so I've absolutely no idea what the problem could be. Here's the code the error …

Member Avatar for stultuske
0
2K
Member Avatar for Rachy3091

Hi I'm new to this forum and to java, I have some work to do which requires that I have to write a program that reads in a list of whole numbers and that only even numbers in the range 1-100 are accepted and both 'N' and 'n' terminate the …

Member Avatar for stultuske
0
144
Member Avatar for ramkishor

sir, i have created a global variable on one button click within for loop this variable has many records i want each record to be inserted on another event can it be possible. as string str; button click() { foreach(datarow dr in dt.rows) { str=dr["field"].tostring(); } } submit button() { …

Member Avatar for djjeavons
0
214
Member Avatar for Fayzan

Hi every one, i have been given an assignment, and i need your help in making the programme. The question is Write a program to simulate a lottery game where a set of the lottery numbers includes 6 different numbers from 1 to 49. A possible run may look e …

Member Avatar for JerrimePatient
0
221
Member Avatar for lena1990

Hi all , I create a small VoIP application to transmit voice and I want to calculate delay so I need both devices to have the same time if you have an idea to calculate the delay or to synchronize the two devices I will be gretaful for any help

Member Avatar for lena1990
0
228

The End.