64,152 Solved Topics
Remove Filter ![]() | |
Hi there, I'm putting together a simple client and server to receive packets containing video data. Here is the part where data is read. The data packets contain typically around 1000 - 1500 bytes of data. [CODE] int getNoPackets = 0; int packetsWrittenToFile = 0; for (i=0; i<NPACK; i++) { … | |
Hi, unsurprisingly this is my first post :) I want to learn C# mainly to support work in Excel and I was wondering what development tools I need. There are so many variations from MSDN to Visual Studio Standard and others. I am a competant programmer in other (some odd) … | |
Hello I'm making an GUI app to open a image and zoom it. This function is used to open the image & display it: [CODE] def file_open(self): filename =askopenfilename(filetypes=imageTypes) image1 = ImageTk.PhotoImage(Image.open(filename)) self.canvas.config(height=image1.height(), width=image1.width()) self.canvas.create_image(2, 2, image=image1, anchor=NW) self.image = image1 self.img_zoom(image1) # passing image1 to img_zoom function[/CODE] The image … | |
Hi everyone, new to the DaniWeb community, i have always used it for homework help in the past, but i'm about to rip my hair out if i stare at this code for another hour. basically the project is to write a code that reads data from a file, gets … | |
Hi, I'm writing a small program to simulate a projectile moving through air in a gravitational field. I have several classes for vectors, the gravitational field, and the projectile itsself. However, when constructing any of these objects in the main method, I get a "cannot find symbol" error, despite the … | |
Once again, I'm stuck on a wx.python issue with regards to the floatcanvas. So... I have a script that erases and redraws an image in the canvas, based on changes made to two slider widgets (sldMFI, sldIDT). Before it redraws, I'm trying to define the current zoomed view as the … | |
Dear ALL, Hi. Long time no see. How are you? I have come back to Programming class already. Could you tell me how can I start to VCL Forms Application if I use Delphi6? Cheers, turbomen | |
hi !!! I am making a window application in which I want tree view in left panel .For each nodes (the nodes here are outlook messages stored in a vault,) click I want the corresponding outlook message to be displayed in right panel . The outlook message in the right … | |
![]() | I'm losing the will to live! I'm currently trying to place array values from php files into a mysql db table. As it happens some of the values have non-ASCII values: [B]e.g. “%1$s”[/B] I seem to be able to encode all my usual accented characters, but the slanted inverted commas/quotes. … ![]() |
Hey everyone. i am stuck with some work kindly help A.S.A.P!! Its for Java. Thanx!! 1. Write an application that reads an integer and determines and prints whether it is odd or even. Hint use the remainder operator 2. Write an application that reads two integers, determines whether the first … | |
Hello, I have been working on a very simple Python Game so far (Not using pygame atm) and I ran into a problem that is very simple but I just do not know what to use to get it to work. Basically what I have right now is that the … | |
Hi all, In my program I need to create 2 log files, success and error. But I need to create either one of them, depending on the out come of the program execution. In other words, if program fails for any reason, I need to create the error log file … | |
hi... i m trying to get values of more then one select box on same page.. i am showing list of all users with select box..so per user there is one select box... i want to get the value of all select box...which is select or not select... here is … | |
Hi all, I dabble in a bit of XNA from time to time. I'm creating a 2d top down tank game. My AI bot that controls the enemy tank, works like this simple pathfinding to target until in range, turn turret to target and fire. The problem I have is, … | |
HI, Can any one know how to convert byte array into char array. For example : byte buf[]=teststr.getBytes(); Note: buf is byte array. I need to convert this into char array. | |
i have a problem with a program which gets a matrix[3][3] (with values 1-20.) i want to print the index of cells whose surrounding cells all have lower values. in a matrix 0 0 0 0 1 0 0 0 0 it supposed to print only [1][1]. can someone look … | |
Hello, I am still a newbie in python. I am trying to slice a string, but I don't know how. [code] def start(): exp = "1+2"; string1 = exp.split("+"); print exp; print "Operator 1 is : " , op1; print "Operator 2 is : " , op2; [/code] I want … | |
I Use visual Basic 8.0 and Mysql 5.0 I have one Table1: Table1: RecordID , Integer = primary key auto_increment NOT NULL Articlenr , Integer Articlename, Char(20) Table1: has nine records: RecordID, Articlenr ,Articlename 1 , 1100, Hamer Big Red 2 , 1110, Hamer Big Blue 3 , 1120, Hamer … | |
Hi All, I have a table in mysql in which there is a column which have following kind of data $Category=>Income;$NAV=>10.2181;$Repurchase;Price=>0;$Sale;Price=>0;$Date=>26-Feb-2008; I want to Bifurcate the data in that column into 5 separate columns in the same table in this way $Category=>Income in this thing "Income" in column "category". $NAV=>10.2181 … | |
So I have to create a method that creates a custom arrow object and then returns it. No drawing is to be done in the method, it will be drawn once it's returned. I think I'm utilizing GeneralPath the correct way and then casting it to a shape properly but … | |
hi all... how can i use TestChanged event of a text box in vb.net... do i need to use any javascript or some other scripting language for same? thanks | |
Does anyone know how to do this: I need to read data from a .txt file into a multidimensional array that is dynamically allocated from memory. How would one do that? Thanks to whoever can help me! | |
Hi, I need some advice on how to edit records from a mysql database using php. Basically the record will be displayed after a particular field is chosen. What i need to know is how can i show the field data in a drop down box one after another and … | |
Hi, I would like to get the following script to work. The script should search for file that are bigger then 200 and that have been created or modified today! The problem is the comparator == does not work! when i compare the ( $6 == $dat ) i don't … | |
[CODE] Imports HR.EZTwainLibrary Imports System.Runtime.InteropServices Public Class frmNewScan Private Sub btnSource_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSource.Click If EZTwain.IsAvailable Then 'if TWain services are available EZTwain.SelectTwainsource(Me.Handle) 'select Twain source Exit Sub Else MsgBox("Twain not avaialble.", MsgBoxStyle.Critical) End If End Sub Private Sub btnAcquire_Click(ByVal sender As System.Object, ByVal … | |
hey guys, i am trying to create a simple menu using canvas for example [CODE] class Name extends Canvas{ MenuItem menuitem; public Name(){ JPanel panel = (JPanel) container.getContentPane(); panel.setPreferredSize(new Dimension(800,620)); panel.setLayout(null); setBounds(0,0,900,600); panel.add(this); setLocation( 0, 20 ); MenuBar menuBar = new MenuBar( ); Menu menuFarm = new Menu( "About" ); … | |
I am not sure how to accomplish this, but I am trying to take dates from two fields and using the current date show the progress percentage in a different field. So, if past date is Jan 1st, the current date is "x", the future date is Jan 11th. How … | |
I need to develop a piece of code in an old legacy Visual C++ 6.0 system. I am invoking a stand-alone executable via a system call. This exe is supposed to create a file if processing goes OK or not create one if it fails. The name of the file … | |
Hi I have this login page where user enters in and goes to main page, it has a button called enter form >> which on clicks go to a form submission page . The user enters the form and click submit, once he click submit the form is submitted and … | |
So I have figured out how to receive output from an application using [CODE]process = subprocess.Popen("my_app", shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE) info = process.communicate() [/CODE] But how do I SEND info TO an app? I have an application that asks for a yes(y) or no(n) confirmation … | |
Hi, I want to take a command with its options as input and execute it with one of the exec() functions. My approach is to take input first and put it in an array by dividing with string tokenizer. Then I call execvp() which takes the array including the command … | |
Hi, I'm trying to create a program that reads in a line of text. For some reasons, when I try to run the program, "Your input has ---- non-blank characters." comes up under every words. I want it to just come up once at the end. Any help will be … | |
Does anyone know how I can get this script to show all the entries in atom.xml? It only shows the top four right now. [CODE] google.load("feeds", "1"); function initialize() { var feed = new google.feeds.Feed("http://thedosblogger.blogspot.com/atom.xml"); feed.load(function(result) { if (!result.error) { var container = document.getElementById("feed"); for (var i = 0; i … | |
Hi, I need to have a grid view that will select only few columns from two tables in the database and show them. I have my own data layer implemented, i.e. I have functions that are pulling all the tuples for a satisfied condition and returning them back to me. … | |
I am writing a program that computes the tax and tip on a restaurant bill for a patron with a $44.50 meal charge. The tax is 6.75 of the meal cost. The tip is 15 percent of the total after adding the tax. I have to dislay the meal cost, … | |
hi every1 i m creating a simple ms access project. i created a report ,when the user opens it,it opens a query which askes user to enter name. the user enters the name and the report by that name generates. is there a possibility that when the name is asked … | |
I have code written in JavaScript this a form that dynamically adds row (taken from internet and modernized by JavaScript masters) [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head><title>dinamik sheet</title> <script> var i=iteration; function addrow(){ var tbl = document.getElementById('sheet'); var iteration = tbl.rows.length; var row=tbl.insertRow(iteration); var cellLeft = … | |
Hi all I have a little problem. I have a table that has up 300 rows in it. There is a column where a day and date is inserted. The data looks like this: Monday, 08 March Tuesday, 09 March Wednesday, 10 March Thursday, 11 March Friday, 12 March Right … | |
Hello, My problem is, I am trying to format a number into a certian format. The number is 100072305608500 (this is the exact copy from what was passed in) the format it should be in is 100/07-23-056-08W5/00 I am using [CODE]return (string.Format("{##0/00-00-000-00W0/##}}", Convert.ToInt64(wellLocation)));[/CODE] where the # are optional digits. I … | |
Hello again. :) I am comparing two nodes (some of my other methods need this method). I am having a problem with this method because it returns false even though both nodes have the same content. What are the problems of this code? Any suggestions? This is the critical part … | |
I am trying to render multiple scenes in different window. I am confident that the data is correctly read in from the .txt file and used to initialise the Beam and Segment objects (each Beam object comprises >=1 Segment) However when I attempt to render the scenes the program tries … | |
hi.... i m fetching 3 fields from two different tables that is ecode and edate from emp_company table and scode from emp_shift table.....and after fetching the records i want to change the value of any of the record and want to insert as a new record in emp_shift table.........but my … | |
This is what I'm gonna do and I know I havnt got far, but have been searching on google for 5 hours and dont have the solution yet, Your little sister / brother asks you to help her/him with the multiplication, and you decide to write a java application that … | |
Hi Friends... I use Delphi 2010 application.. To do some calculation I load array of numbers into string grid but some times i have to make some of the rows inactive and do the calculations..Can any body help me out with a code to disable selected rows and do my … | |
hi i created a new OutlookAddIn project. the project adds a custom toolbar button to outlook. when run the project in debug mode, i see the custom button and everything works. i want to install the poject in another computer, i added a new SetupProject to the solution and targeted … | |
Hey i have a program thats due sunday and my teacher doesn't really teach that well....so i'm kinda confused and need help. problem: read a file of positive intergers and then print each lin and then print each number in the line (i've done this part) this is where i … | |
Hi guys.. In the huffman algorithm I have made an output file contain 0 and 1.. how can I say to compiler that these 1 and zero are bit no Byte. and how can i make the real Huffman output that its size is lesser than the initial file, What … | |
hey, i was writing this program for complex number calc and when i run it ,it never returns me the right values.. so can u plz make necessary changes where i m wrong.. YEAH AND ONE IMP THING TO TELL U I M BEGINNING WITH POINTERS AND I LITERALLY SUCK … | |
I've been trying to make a synthesis game for my Organic Chemistry class, but when I try to draw some buttons on the screen I get a segmentation fault. I am using some functions for loading taken from Tim Jones's tutorial. I have built a Button class that has the … | |
Hey everyone~! I am pretty new to threading but I'm trying to figure it out by playing around with its possibilities. I wrote a program where 2 threads are supposed to "race" to count to 10 and then the first one there says "I win!" and the second says "I … |
The End.