199,114 Archived Topics
Remove Filter ![]() | |
Is it possible to create a hard page return in your PHP code so that wehn the user prints the output, the page break will occur where it is defined? If this is possible, how is it done. I have not found anything in my Google searches. Any help is … | |
Hey guys, check this out: [CODE] File test = new File(path + "person.data"); FileOutputStream fos = new FileOutputStream(test); ObjectOutputStream oos = new ObjectOutputStream(fos); Person p = new Person(); Person p2 = new Person(); p.setName("Sub Zero"); p.setGender("Male"); p2.setName("Sonya Blade"); p2.setGender("Female"); ArrayList<Person> people = new ArrayList<Person>(); ArrayList<Person> people2 = new ArrayList<Person>(); people.add(p); … | |
I did exercise 2) of chapter 9 in Stroustrup's book. That chapter is about classes, its members, enumerations, constructors, etc. This is my first attempt at writing a program with classes containing public and private members that are both data variables and functions. It compiled and ran correctly,BUT. The exercise … | |
Hi, I got some zip files on my server people can download and am having a strange problem. Can't remember if i ever checked in IE but in FireFox, Google Chrome, Opera everything is fine. When i download a file from my website in IE the file is getting corrupt. … | |
I have never programmed in C and have not programmed in C++ for a little while and either way, I am still learning. I am writing a program in C and am converting a MATLAB program to this C program. I have a lot of variables from MATLAB that are … | |
Hey, I'm trying to make a way for the user to click a link in an email agent and the submit button (previously hidden by css) and it then becomes unhidden. [code=javascript] function showSubmit() { var submit = document.getElementsByName("submit"); if (submit.style.display=="none"){ submit.style.display="inline"; } } [/code] Then the html: [code=html] Click … | |
hi, i am trying to implement a proxy based on BaseHTTPServer built-in module. the GET & POST methods work fine, but i have some problems implementing the CONNECT (do_CONNECT) method, i understand how ssl tunneling works theoritically, i tried to implement it using httplib.HTTPSConnection, i write the headers and the … | |
Hey people. What I'm trying to do is get a String input from the user. And then displaying that string. I have no idea how to do it. I have most of the code figured out except that one part. Any help will be greatly appreciated! Thanks!! (By the way … | |
Good day, I'm having problems seeing how the recursion is working with this program. I've traced it but I don't understand why after if(num >0) is false it returns to the statement following the last function call and then seems to start the recursion again, but backwards? What I see … | |
Hi, I recently started learning C++ because i wan to develop games, anyway i just got to file i/o part and i got a problem with the binary file read. I created a class to test the binary file i/o: [code=c] #ifndef KAIZOKU_H #define KAIZOKU_H #include <string> #include <fstream> class … | |
Hi everyone. I wonder why the following code doesn't draw anything. [code=java] package AssProgLang; import java.awt.*; import javax.swing.*; import java.util.*; public class AssOutput extends JPanel { public AssOutput(Queue translatedQueue) { this.translatedQueue = translatedQueue; outputFrame = new JFrame(); outputFrame.getContentPane().add(this); // outputPanel attributes outputFrame.setLocationRelativeTo(null); outputFrame.setPreferredSize(new Dimension(640, 480)); //this.setPreferredSize(new Dimension(640, 480)); outputFrame.pack(); outputFrame.setTitle("ASSâ„¢ … | |
Hi developers, i try to write a file in binary format. But that file is not in binary format, i dont know what's wrong in my code [CODE] #include <iostream> #include <fstream> using namespace std; int main() { fstream file("file path", ios_base::binary | ios_base::in); char buf[] = "BinaryFile"; file.write(buf, sizeof(buf)); … | |
This code should return the same object every time. there is a part that i dont understand in the code. why to use private identifiers and then set/get method? why to hide your code variables/methods? [CODE] public class SingeltonEx { public static void main(String[] args) { Singelton singelton=Singelton.getSingelton("Roni"); System.out.println(singelton.getName());//Roni Singelton … | |
i have a bit a weak understanding of those 2 concepts. could you explain to me what is happening in that part of the code? [CODE] public class Part5{ public static void main(String[] args) { // Object[] zoo=new Object[4]; // zoo[0]=new Cat(); Object[] animals=new Object[4]; animals[0]=new Cat(); animals[1]=new Dog(); animals[2]=new … | |
Hello! I am trying to edit a csv file. This is my original csv file [CODE]"TINAMIFORMES",,,, ,"Tinamidae",,, ,,"Tinamus",, ,,,"tao","Grey Tinamou" ,,,"solitarius","Solitary Tinamou" ,,,"osgoodi","Black Tinamou" ,,,"major","Great Tinamou" ,,,"guttatus","White-throated Tinamou" ,,"Nothocercus",, ,,,"bonapartei","Highland Tinamou" ,,,"julius","Tawny-breasted Tinamou" ,,,"nigrocapillus","Hooded Tinamou" ,,"Crypturellus",, ,,,"berlepschi","Berlepsch's Tinamou" ,,,"cinereus","Cinereous Tinamou" ,,,"soui","Little Tinamou" ,,,"ptaritepui","Tepui Tinamou" ,,,"obsoletus","Brown Tinamou" ,,,"undulatus","Undulated Tinamou" ,,,"transfasciatus","Pale-browed Tinamou" … | |
Hi, I want to connect to a external server to either copy image.jpg to my local computer or list all the files stored in a path. How can I do this? I think cURL is used but examples on the web are not working for me. Thanks in advance For … | |
Hello! I have a table with the structure you can check at [URL="http://spreadsheets.google.com/ccc?key=0Ahb705_66NMOdG5RM0stQU5wVC1JUmRBbWhLeDRyM2c&hl=ca"]http://spreadsheets.google.com/ccc?key=0Ahb705_66NMOdG5RM0stQU5wVC1JUmRBbWhLeDRyM2c&hl=ca[/URL]. The table has many more rows but no more columns. Is there a way to select the rows like select all the fields from Table from row where Family is Tinamidae to the next non empty row … | |
I have been reading through many blogs, the MSDN website, and Google search results trying to figure this out... At what point, or in what situations would someone ever want to have multiple projects under one solution? I have thought about having a project that contains forms and some "core" … | |
Does anybody know any good open source live chat support modules I can integrate into my site? My company specializes in Seo. If you would like to view our website it is at <URL SNIPPED>seo tampa. ![]() | |
Hi Folks, Windows/Python3.1.2 I'm totally at a loss with this one... The code is supposed to open a file (postscript with UNIX LF-only EOL characters), look for and change a line, then write the lines back. It works fine, except for the fact that I can't dissuade Python from writing … | |
hello, for my application I have created a database containing a table where my clients data is stored before they are allowed to use the website. When they are allowed, the info on this table has to be transferred to 3 different tables, using the insert...select-statement. Doing this I don't … | |
Dear Experts, I have a modal popup and a GridView in it. The GridView is populated programmatically, i.e. I use .DataBind(). I can enter data into some of the GridView's controls. After I press Submit, I expect to do something with the entered data. But in the button press handler, … | |
Hello, I am trying to connect a unix server using ssh (phpseclib) and running an external program like 'C' program. I am using exec() to run .exe. My code looks this way [CODE]echo $ssh->exec('./demo.exe');[/CODE] demo.exe is a executable for program to add two numbers and the inputs are hardcoded within … | |
I looked through other threads, but could not find on how one would be set up. So my question is, How would you set up a C++ text based game. | |
Hello, I’m just trying to get the link and id name passing to other page, but when moving on the link the mouse, it shows only the first word of the ID. Here is the example. [CODE] <?php $id ="CURSO DEL RITE(CALEFACCIÓN,CLIMATIZACIÓN Y ACS)"; $link = "http://www.ginerllinares.es/prog_curs/sem/inscribir.php"; $path = "<a … | |
I want to be able to input two (2) 'grades' exactly like they are in the String array and have it come back printing BOTH showing the grades, again, as well as the grade score corresponding to those grades. For example: input C- (enter) B+ (enter) output does: ONLY the … | |
I am a newbie in Java programming. There're one question requesting us to construct an algorithm to sum up all the odd numbers from 0 to 100. Is this consider an algorithm? • Start • set sum to 0 • set number counter to 1 • while number counter <= … | |
Hey all, I am currently fiddling around with SQL/Access statements in C# and created a very simple dictionary program that will search for the words depending on the length of each text entered in one text box. So when the user presses the search button it the program will search … | |
Hello all Experts, I have following Code to get Image from dataBase and Show it in the Gridview Control on my web page but I am succeded to get data but when I bound the DataSet with GridView it doesnot show me Image. You can View error on Attached Image. … | |
i havae made circuit which we can operate from computer. i know c++ but hoe can we programme hardware using c++. any books or links or suggestion regarding to it please reply | |
hei How I send online fax through php. we all know there is a very easy function called [CODE]mail() [/CODE] can use to easy mailing. but I am finding is there any solution for send a fax like mailing thank you | |
This one might be a challenge... Okay some of you might have an inkling what i'm trying to do already from the last thread (thanks for helping!) but I figured I should start a new topic for a new problem so that people can search solutions easier. I've got multiple … | |
Hi Daniweb. I just read the other threads on regex and couldn't find the help I am looking for. The problem is simple. I have a bunch of settings in a .xml file which I read into my program. One of the settings is '*.txt', which is used for regex … | |
Hey, I'm trying to find any tutorial on taking user inputted text and displaying, on that page or another. I know how to upload a file, or provide that service to the user so I figured it might be similar, but I couldn't find any help on this scanning google. … | |
hi, i'm a newbie programmer and i just built a website with a poll. the page is completely in html and linked to the php script processing the poll result in the action attribute of the form tag. my problem is the results of the poll comes up in a … | |
Hi Folks, I'm making a Calculator on Visual Studio (Nope, it's not a College or University assignment). I'm at the part where I have added code to all of the number buttons but now need to see how the program is going to calculate sums of x amount of numbers. … | |
Can you help me to complete the code for this? The result should be in words. And wether 'A' or 'a' will be ok when you input the operator. this was the given: Enter First Number:8 Enter Second Number:9 M=* || m=* D=/ || d=/ A=+ || a=+ S=- || … | |
hiya, i am new in C++ and need to create a windows form application that at the click of the button the class is called and excecuted. I have done GUI's in java and its no big issue for me, its just that I need the GUI in c++ since … | |
Hi friends . recently i create one blog for music . i want to knw how to add the Songs in blog for Online hearing . . . please help . . . i searched one day and did not found . please help | |
Hello, What's the right way to open and close dialog windows multiple times? At the moment I instantiate a dialog window on a clicked button signal, then close it with self.close() but when I open it again Python crashes. So I can open the dialog only once. How can I … | |
Can anybody help me? I am following instructions about how to put an Iframe in my app. Here is the code for the button: protected void Submit_Click(object sender, EventArgs e) { //frame1 = (HtmlGenericControl)this.FindControl("frame1"); HtmlControl frame1 = (HtmlControl)this.FindControl("frame1"); frame1.Attributes["frameborder"] = "0"; frame1.Attributes["scrolling"] = "auto"; frame1.Attributes["width"] = 640 + "px"; frame1.Attributes["height"] … | |
Hello everyone, I am trying to process various texts by regex and NLTK of python -which is at [url]http://www.nltk.org/book-[/url]. I am trying to create a random text generator and I am having a slight problem. Firstly, here is my code flow: Step-1)Enter a sentence as input -this is called trigger … | |
selection menu : 1…Area of a Circle ----(3.14 * (r*2)) 2.Area of a Trapezoid ---- (height * (base1+base2) / 2) 3.Volume of a Sphere ---- (.75 * 3.14 *(radius*2)) 4.Volume of a Cylinder ---- (3.14 * (radius * 2) + height how would i make this using methods and switch … | |
I would like to learn how to program in Java. Does anyone have any textbook /other resource suggestions? | |
Hi, So, I did create a client and a server, and all of them work pretty well. When I send messages to the server, rather than sending one message at a time, I put the information in a class, say like a Person class - I put set the Person's … | |
While I know how to set this up perfectly, I was wondering, is it possible to set up my jdbc connection with my access database so that I have to put in a username and password? I would really like to do this with access, if it's possible | |
Hello, I am having some trouble compiling my code for the inventory program part 2, if someone could take a look and help me out I would really appreciate it. Thanks. I am required to implement an array to store, monitor, and retrieve data for camera inventory. [CODE]// Fig 2.4: … ![]() | |
Hi, I am new to perl and have been getting decently good at it. Now i am getting into doing plots with perl. I read some articles/examples on how to create plots using perl It mentions using GD::Graph Module However when i try to plot I get Can't locate GD/Graph/bars.pm … |
The End.