199,114 Archived Topics
Remove Filter ![]() | |
Hello everyone, I am trying to take a screenshot and save it as jpg. I have found a code and save it as bmp but the file size is pretty big. After searching a lot I found this thread [url]http://www.daniweb.com/forums/thread327090.html[/url] but I can't compile the code... :( I am trying … | |
Ahhhh! OK, so I've been learning PHP for about 7 years now on and off, but never have I taken the time to look into URL rewriting. Until now I've not needed it, but you can guarantee the one thing you think you wont need, you need! I have the … | |
Sorry.... i have posted this question before in JavaRanch Forum but i did not get any satisfactory answer to my question. probably no one notices there. I am posting here with the hope that someone will come forward and give me some suggestion. i am using java swing and i … | |
I have a JList that becomes populated from click on buttons. My question that i need help with is, is it possible to use a function of the JList to get the string from a selected index and make a substring? thanks. | |
Hi folks, I have 2 very similar html contact forms on my site that run through PHP and get the results to the staff in an email. I use strip_tags to remove malicious content on each step of the form. Recently, a user sent an email that included some URL's. … ![]() | |
I am trying to write the code for a face that winks. My code doesn't give me any errors however when I try to run it the window comes up as a blank window. It does have the corredt title but no face is drawn in it and I'm not … | |
firstly, please suggest some tags i should put for this post. onto the problem.. i saw this programming problem on projecteuler.net and wanted to solve it for fun. i solved it, but i tried first till 142857 the output was good, ok, satisfying here's the link where the problem is … | |
hey everyone, i am attempting to create a simple dll in c++ that creates a timestamp, in the following format... [B]17042011233200[/B] Which is: [B]17/04/2011[/B] @ [B]23:32:00[/B] thus far, i have found a code ([B]see below[/B]), but after compiling with devc++ it doesnt seem to work, i am new with dll's … | |
i have a as an array b also .. how can i find the summation of there content .. thank you .. | |
Hello All I have some confusion in Declaration and defination of variables. Declaration means ===> where the variables are declared and no memory is allocated. Defination means ===> where the variable is declared and defination is allocated. For eg. if we write (1) int a; printf("%d",a); then it will print … | |
I have this function which reads in a workers.age from a structure. It determines how much taxes that worker will have to pay based on a base[i] salary that is also passed to that function. I am able to print out the net salary and amount of taxes paid for … | |
My understanding of this subject is - Two or more processes accessing a semaphore concurrently can cause Deadlock The provelms with semaphores is that you can forget to call the release method and it can cause deadlock Starvation Both processes can change the P and V counters of the semaphore … | |
i place two forms one contain 2 picturebox and 2 button and 2nd form contain 2 picturebox and one button when insert image in 1st form it automaticaly load on 2nd form when 2nd form load. plzzzzzzzzzzzzzz help me to do this | |
I have the following trig functions, but I am wondering if there is a faster algorithm that I could implement: [CODE]static const double SINMIN=0.0009999998333333; static const double COSMIN=0.9999995000000417; static const double TANMIN=0.0010000003333334; static const double E=2.718281828459045235360; static const double PI=3.14159265358979323846; static const double MINVAL=0.01; double sin(double ax) { double x=aabs(ax); … | |
My script is dies at the start when I try to devine a SplFixedArray and I don't know how to find the error. Help would be appreciated... [CODE] <? error_reporting( E_ALL ); // Initialize the array with a fixed length $array = new SplFixedArray(5); [/CODE] Thanks! WBR | |
Hi. Can you help me how to balance a chemical equation using linear algebra. I know how to do it on a piece of paper using the usual method of balancing. I just don't get the principle how to do it on the other method. Please give me a step … | |
I receive the correct results when I use Microsoft Internet Explorer. However, when I use Ubuntu and try to get the output, I receive a blank screen except for the title "Book Finder Search Results" which appears at the top. Are there any adjustments I can make, so I can … | |
Hi, Send key not working when system is locked.Is there any way to overcome this issue? | |
Why do we have to initialize a pointer to a string when it is declared globally ? I mean , [B]This doesnt work[/B] [code=c] #include<stdio.h> #include<conio.h> char *str; int main(void) { gets(str); printf("%s",str); } [/code] [B]But this works[/B] [code=c] char *str="1"; int main(void) { gets(str); printf("%s",str); } [/code] Even upon … | |
suppose i have 3 functions: a() b() and c() both a() and b() can called c(). if function c() is called how do i know who is the caller?? | |
[CODE]// petcount.cpp - Script 9.1 #include <iostream> #include <string> // Declare the class. class Pet { public: // Constructor and destructor. Pet(std::string theName); ~Pet(); void eat(); void sleep(); // Static method that will // return the current value of count: static int getCount(); protected: std::string name; private: // count will … | |
Hello Everyone , I have written a simple piece of code for reading an Image file(.png) in c but this code doesn't seem to work properly.Can anyone help me solve this problem of reading an image file in C ? Code I have written is :- [CODE] FILE *file; char … | |
help me face recognize using eigenfaces with opencv, a person in webcam | |
Hi, I try to change all first letter of the words in the textbox to uppercase. THis how far i try to change it but just the first word not the entire words. [CODE] Private Sub txtQuote_Change() txtQuote.Text = UCase$(Left(txtQuote.Text, 1)) & LCase$(Mid$(txtQuote.Text, 2)) txtQuote.SelStart = Len(txtQuote.Text) End Sub [/CODE] … | |
i have Msflexgrid with two column (Invoice No and Amount) say 5 rows Invoice no column is left align and amount column is right align i want to transfer this 5 rows data to a single text box i.e entire grid data to single text box invoice no should be … | |
Hi, this is a multiple choice question from my AP CS review book. I can't seem to figure out the right answer even after looking at the answer. Which of the following will evaluate to true only if boolean expression A, B, and C are all false? A) !A && … | |
I need a way to do the following and I cannot think of one, this is what I have so far: [CODE]typedef Obj2*(*Reaction)(); class Obj1 { public: Reaction reaction; }; class Obj2 { public: unsigned int numobj1; Obj1 *objects; }; class Obj3:Obj2 {};[/CODE] Can you find any way of doing … | |
Hi, I'm trying to create an array for converting Octal number from input to Binary later...print out for table look-up. Please help! [CODE] import java.util.*; // Scanner class public class check1 { public static void main(String [] args) { int i; String biArray[]={"000", "001", "010", "011", "100", "101", "110", "111"}; … | |
I was exploring random art and modified this nice example from vegaseat: [code]# random circles in Tkinter # a left mouse double click will idle action for 5 seconds # modified vegaseat's code from: # http://www.daniweb.com/software-development/python/code/216626 import random as rn import time try: # Python2 import Tkinter as tk except … | |
Hey; I am currently busy with multiprocessing and multithreading. There I saw a signal SIGCHLD which is an excellent zombie process cleaner by handling that signal. But when we are writing our handler function why we declaring it with an signal number arguement ? Is this arguement is automatically passed … | |
I want to know the difference between call by reference and call by pointer.. | |
Hello My Problem May Be Very Easy Or Very Hard Iam Still Noob In Php I Developed This Site [url]http://www.e-alriyadh.com/[/url] The Pagination Works Fine In The Index Page Like This [url]http://www.e-alriyadh.com/index.php?p=2[/url] Now There's A Problem In The Category Section Pagination This Is A Section [url]http://www.e-alriyadh.com/cat.php?id=22[/url] When I Try To Go … | |
Hi all, I was working on a MATLab program and I came to a point where I wanted to define a function such that one of the arguments would be used as a command. To clarify, the function being defined was an implementation of Simpson's rule that would integrate using … | |
i'm trying to make an IComparer that will sort numbers in ascending order with the exception that any negative values (in my case, all -1's) will sort to the end. the sequence would be 0, 1, 2, 3, -1, -1, -1... but i'm wasting all dam day and getting nowhere … | |
Hi, Noticed on the Mac that after a script runs the terminal is still there and not usable, one has to control q it to go away. Is there a way to have the script quit the terminal from the script when it ends? Thanks, jkrueger | |
Currently I am making code to be used to make my playing of an online conquest video game easier. The first program the user would run is the initialize program. This is how the program looks: [CODE] #initialize import csv x=1 y=1 n=0 citiesx=[] citiesy=[] city_names=[] total=input("How many cities do … | |
Hallo, Can somebody help me how to find combination between code´s. i have 30+ codes like this 7zv7pj. xjdcsa, efzlfl, xkaadt etd but i dont know any program or something what can i help me get more combination or understand how codes work. Ty for help | |
Im a noob to asp.net, im a web designer with html, css and basic php experience and want to learn more about asp.net/vb. Does anyone have any time to explain to me a good place to start, books, websites etc or the best place to start, do i need to … | |
Ok so i want to make a program that calculates pi. Ive done that already but it only gives me so many decimal places. I want it to give me tons. Im using Dev C++ if that helps too. Here's my code: [CODE] #include <iostream.h> #include <math.h> int main() { … | |
Hii all!! Well i want to know about how to check for the password entered by the user in a textbox?? When a user enters some characters in textbox, i want to show a label which will tell about the strength of password, that is it strong, weak , poor... … | |
Hi, First up, I am a little lost with events. I am trying to do this and I can almost say that its not doable: [code] "one.php" <?php echo '<input type="text" maxlength="5" name="bill" value="" /><br />'; $get_pass = 5; $get_pass1 = 10; ?> <a href="two.php?getpass=<? echo $get_pass ?>&getpass1=<? echo $get_pass1 … | |
Ok, so this is going to be a basic question that I should probably know, but it's baffling me right now... Also, be prewarned that this is a homework assignment I'm working on. I don't want answers, just guidance. I understand what I need top do(for the most part. obviously … | |
Hello people, I am using Turbo-C Can anyone give me a sample program using the bool array I tried compiling the following code snippet. But it doesnt work. [code] #include<stdio.h> #include<conio.h> int main() { bool a[10]={true}; clrscr(); printf("\nHello World"); getch(); } [/code] It gives the error [B]Undefined Symbol bool[/B]. But … | |
i want to change the font type to "Courier New" for my outlook message sent through VB [CODE]Dim oOApp As Outlook.Application Dim oOMail As Outlook.MailItem Set oOApp = CreateObject("Outlook.Application") Set oOMail = oOApp.CreateItem(olMailItem) MsgBox 2 With oOMail .To = Text1.Text .CC = Text2.Text & ";" & Text3.Text .Subject = Text4.Text … | |
What would the diagram look like and what [B]relationships[/B] would there be? It [B]stores[/B] the [B]customers (patients)[/B][B] details [/B]and [B]drug information(prescrip?)[/B]What[B] entities [/B]would there be ? e.g. customer/patient, pharmacist or doctor? or both? | |
[CODE]ifndef POLY_H #define POLY_H class Poly { public: Poly() : first(0) { } void addTerm(double coeff, unsigned exponent); // add term (coeff^exponent) to the polynomial; // might just change coefficient of existing term, // or might insert new term; maintains terms // in order from greatest to least exponent private: … | |
what the wrong for this code : [CODE]if (head==NULL)//1 if the list is embty cout<<"NO element in linked list "; else if { if (head==tail){ ///2- if we have one node delete head ; } [/CODE] how i can write the other case if valid addrese if the addrese in … | |
I have a C# WinForm application. On my Buttons I use the '&' (in the .Text properties) for Hotkey access. The strange behavior is that the '&' is converted to the appropriate underscore while in design mode BUT DOES NOT appear at Runtime. At runtime the Hotkey functionality works, but … | |
can you tell me what is the equivalent of: [CODE]flushall()[/CODE] in Turbo c++? Thanks! Im having a problem because of that. Or, what is the header file of it? Thanks AGAIN :D | |
Hi, I want sample code to validate the dates that is to be in the format YYYY-MM-DD(2011-04-21). I had created two Textboxes to enter date and one Button Control. The date format to be entered in the Textbox should be exactly like YYYY-MM-DD(2011-04-21). If user enters any other format like … |
The End.