199,114 Archived Topics
Remove Filter ![]() | |
Hello I'm looking for the correct method/way for reading & writing raw JPEG image binary data. I am obtaining the raw data via TCP stream, the official JPEG specs say that the raw JPEG image data starts at HEX value 0xffd8 & ends at HEX value 0xffd9 as below... [CODE]Start … | |
First, sorry for posting this here, but I couldn't find a VBScript forum on Daniweb (which I find surprising). I'm working with binary data in several different projects. Below is an example of code that works to retrieve a static map image (PNG) from Google: [CODE]strFileURL = "http://maps.google.com/maps/api/staticmap?markers=2200+S+Western+Ave+Lisle+IL&zoom=14&size=400x400&sensor=false" Set objXMLHTTP … | |
Hello. Can anyone please tell me if there are any sites where i can practice programming? i mean sites like TopCoder, SPOJ, CodeChef. But i needed a site where there is an explanation for problems(so that i can understand the basic algorithmic concepts) and then go on practicing it. i … | |
Hi there, I've just switched to Eclipse. I've been using TextPad so Eclipse is pretty cool.. But I've been getting weird error messages that I don't understand/not used to. Here they are: [CODE]JButton btnEnter = new JButton("Enter"); btnEnter.addActionListener(this);[/CODE] Here the Error says: Multiple markers at this line. -Syntax on token … | |
[CODE]import java.util.*; public class DiscountBolts { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); double bolts, nuts, washers; double total; System.out.println("Enter number of bolts: "); bolts = keyboard.nextDouble(); System.out.println("Enter number of nuts: "); nuts = keyboard.nextDouble(); System.out.println("Enter number of washers: "); washers = keyboard.nextDouble(); total = (bolts … | |
HI Friends i have create this simple code in visual C++ [CODE]#include<iostream> int main() { std::cout<<"Hello World!!"<<std::endl; system ("PAUSE"); return 0; } [/CODE] can anyone help me to write log file on base of this please | |
| |
some one know good toolbar for picturebox control in c#.net? one that have zoomin and scroll options. Thanks | |
Hello guys, i'm studying the Java programming language. every thins were going very well, but once i have encountered RECURSION i started to feel so bad. there is a recursive method that is blowing my mind. I can't figure out how does it print that the sum of a set … | |
Hi all, I have a query pulling out dates from a database, these dates are then added to an array and inserted into a graph along the x-axis. From the results, there could be one value with one date or there could be 10 values with one date. This means … | |
Hello everyone: I'm a C++ newbie. I have written code for performing calculations that needs data from another code. These data are in text files. I know how to read in an ENTIRE text file, but I can't figure out how to extract certain pieces of it. I would very … | |
Hi, I have a problem in my code. I am putting a image icon in my coe and want to call the code behind function Left_Click() on its OnClick() event. But the Click event is generating after two times clicking. and I have wriiten in the Page Load event I … | |
how to select multiple buttons on a flowlayoutpanel? | |
i'm writing a Java program that ask the user to input words using JOptionPane.showInputDialog() Then look at each letter in the word and add up the points for each letter. Vowels (a,e,i,o and u) are valued at zero.The letters "x" and "q' are valued at 5.All other are 1.Anything not … | |
I am using an overloading operator to add two polynomials. I have gotten it to work, but I am wondering if I can improve on my if statement by not changing the value of degree for the rest of my program. The if statement is used if the second polynomial … | |
Hi, I would like to create a table as attachement below is VB6, may I know what component name of this table? is this DBGrid? Thanks! | |
i have 2 program one of them in C# and the other one in visual c++. i use Socket programing in 2 of them and i want to connect them. the program in C# is Client and the program in c is server. when i connet client to server, conect … | |
Can someone tell me how I can accomplish this. I want the results of a form to be placed in a pdf and then added as an attachment. I am not sure if this is possible, but if someone knows how, please let me know. Thanks. | |
An account has the properties account number, balance, annual,interest rate, and date created, and methods to deposit and withdraw.Create two sub classes for checkings and savings account.Checkings account has an overdraft limit, but a savings account cannot be overdrawn. One problem that i'm having is that when I withdraw x … | |
Before I start, I would like to stay thanks to the people who helped before in my previous threads. Sorry if I can't reply quickly at that time due to connection issues. Back to the problem. I am working on a stemplot([url]http://en.wikipedia.org/wiki/Stem_and_leaf_plot[/url]), which prints the data(the plot thing) into the … | |
Is there a way to hide functions and such when they happen? Example: [code=syntax]print func(x, y)[/code] from showing up when you run it? I want it still printing, just not visible. I want it to print. | |
Hello....i want to create one table in aspx.net.I am using gridview in order to make the table. The things is I want to include the data row by row inside gridview using different sql statements...here I try to upload the template that I want as of my output.If anyone can … | |
Hi all, 1) I am trying to use Ajax and Jquery on master page. In my existing project i have used the Ajaxpro.dll it's working fine. but when i am trying to use jquery then it throws error "Object doesn't support this property or method." 2)I have taken a fresh … | |
Hi, every one am trying to capture referral data from various sources using ColdFusion such as Google Adwords, Yahoo, MSN, Google etc. I have done this in the past using PHP as it allows access to the header variables, but I'm rather rusty when it comes to ColdFusion having only … | |
I'm still learning PHP and just starting to get to grips with it. [CODE] $url = $_SERVER['REQUEST_URI']; $user = $_SERVER['HTTP_USER_AGENT']; if ($url == "/example.php" && $user == "HelloWorld") echo ""; else Header("Location: http://www.google.co.uk"); [/CODE] Basically what I'm trying to achieve is when the useragent is "HelloWorld" and the URL is … | |
I'm learning C mostly for linux development, but right now I am working through a few general books to get me started. But I am having some problems understanding #define versus declaring a variable directly(?). I know that #define declares a constant, but for example normally I would declare a … | |
Hey there, I'm having trouble getting my program to read the last instruction of the file, and so far, I haven't been able to figure out why. Any help would be appreciated. [CODE]/* The Simpletron Machine Language Program. The purpose of this program is to simulate a primitive computer. This … | |
Ahh, long time since I was on pposting end :D Ok here it goes. The code bellow show mobile application that takes string from user and past it on to servlet. Servlet read it add extra data on front of message and send it back to mobile device that display … | |
Let me show you how do I create setup file of my program. [Code] Project>WindowsApplication1 properties>Compile>Advance compile option>Target CPU : AnyCPU Target framework(all configurations): .NET Framework 3.5>OK File>Add>New Project>Other Project Types>Setup and Deployment>Setup Project>OK Setup>Properties>Prerequisites>Select Create setup program to install prerequisite components & Windows Installer 3.1 & .NET Framework 3.5 … | |
hey need some help with my loan program i have two problems how do you add the total of the variable sumtin from a while loop and i need to show the inital loan first then after the calculations are done show it again like i want it to show … | |
I have recently voluteered to be a mentor for a local inexperienced FIRST robotics team. The main area I will be mentoring is the programming aspect of the competition. The controllers for last years robot was programmed using LabView but they also can be programmed in C++. The better teams … | |
I am working on a couple projects where I need to upload files from a client using my software to my webserver and then do some other things. But I would like the software to handles this automatically so the user doesn't have to worry with it. I am currently … | |
#include "stdafx.h" #include <iostream> using namespace std; void main(); int _tmain(int argc, _TCHAR* argv[]) { double sum_positive=0,sum_negative=0,sum_total=0,num; int total_negative_number=0,total_positive_number=0; cout << "Enter number.\n" << endl; for (int i=0;i<10;i++) { cin >> num; sum_total +=num ; if (num>0) { sum_positive+=num; total_positive_number++; } else { sum_negative +=num; total_negative_number++; } } cout <<"Sum … | |
Hello can you help me,i have problem of this if i will use scanf("%c",&repz); my porgram will exit it will not loop to menu..but if i will change to %s this will loop to menu...but i declare variable repz as char...can you help me or explain on this why it … | |
I'm working on a basic "banking" program. The most recent change I've made to it is to use inheritance so that instead of just an Account, you can make either a checking or savings account specifically. Everything is working fine, except that the checking account is supposed to have a … | |
Here is my code, what I'm having problems with is taking values from a 10 field file (scores.dat) and putting them into a list. How would i go about this? [CODE]def main(): fileIn = open( "scores.dat", "r") lineIn = fileIn.readline() while len(lineIn) != 0: print lineIn lineIn = fileIn.readline() parse(lineIn) … | |
[COLOR="Green"]hello every one hi i am new to daniweb i think i will find a solution in daniweb. hi i wanted to change my php melody1.6.4 url structure my url structure is like this [url]http://example.com/frozen/frozen-2010-movie-video_1c4063b5a.html[/url] i wanted to change it to like this [url]http://example.com/frozen/frozen2010movie/1c4063b5a[/url] i have spent my valuable time … | |
Could anyone help me with these; 1. Create a new line in vb 2008 (endl in c++) 2. Steps in updating a database when the database resides into another computer (for my client/server application) Thanks averyone, hope you could do something for this! my system is almost done... | |
Hey guys, i am working on a program and it deals with arrays. Basicaly its a conversation program i am working on. I have alot of it done but i am stuck with the displayiong of the info. Now being this is an assignment i would really like advices and … | |
I'm writing this in VB.NET, so I figured I'd post here. So, I'm writing a program to convert some pdfs to jpegs. This is all well and good, and the program seems to work well for the most part. Unfortunately, I've come across a bit of a problem. The pdfs … | |
Hi everyone, I'm sure the fix to this problem is really easy as I checked my code and I've pinpointed the cause but I'm not sure where to apply the fix. Currently I'm developing a Wordpress theme at ReceForPeace.org and on the index page you can see that the footer … | |
Hey, I am grabbing a date from a row in my table which is currently formatted as: date("Y-m-d") 2010-09-29 So in my code I have something like this: $row['date']; How do I use this to rearrange the date to look like: 09-29-2010 I looked at the formatting tutorials, but they … | |
wen i write the data to notepad,i get the result below: <SRT>,160,[COLOR="Red"]161,[/COLOR] NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,4127288.4600,0.0000,31-12-07,0,AGF,MYR,100101 NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,175000.0000,0.0000,31-12-07,0,AGF,MYR,102101 <END>,[COLOR="Red"]4302288,[/COLOR] wat i wan is like below: <SRT>,160,[COLOR="Green"]161[/COLOR] NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,4127288.4600,0.0000,31-12-07,0,AGF,MYR,100101 NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,175000.0000,0.0000,31-12-07,0,AGF,MYR,102101 <END>,[COLOR="Green"]4302288[/COLOR] i don't wan [COLOR="Red"](,)[/COLOR] behind 161 and 4302288 Hope hav sum1 can answer my question.Thanks... [CODE] For Each row In dt.Rows … | |
I have a string in Python that is comprised of code in C/C++ syntax. I would like to use regular expressions to search through this string and replace an expression of the form 'pow(a,b)' with 'a^b' I've attempted to do this, but my code does not seem to be working. … | |
Hi guys, I'm trying to make a program where i read in two words and then search a text file for each occurence of that word. Also I want to print the first line that each word occurs in. My problem is after i get into the file I cannot … | |
hello, is richtext control available in asp.net.where is the control. how tio use it | |
Hi, Im currently taking an introductory course in python and i need help with some stuff. Basically for an assignment the first function we have is supposed to get an an average red value of all the pixels in the image. red being the R in (RGB). So basically the … | |
hiii I have two page in my adminitrator folder of my web site manageuser.aspx and userinformation.aspx .Now when i click at manage button at manageuser.aspx page i have to navigate userinformation.aspx page with corresponding user. i set in the greed view of manageuser.aspx page- [CODE]<asp:HyperLinkField HeaderText="manage" Text="manage" DataNavigateUrlFields="UserName" DataNavigateUrlFormatString="UserInformation.aspx?user={0}"/> [/CODE] … | |
I would like some help to index through an empty array and fill it with 10 entries one at a time. The objective of the task is to create a GUI with two buttons, one (Store) to save the value into array position and second (Quit) to run statistics calculations … |
The End.