199,114 Archived Topics
Remove Filter ![]() | |
this is my first attempt to implement OOP. IS this class ok?(in terms of structure) AND another Question: there are some folders in message application in Symbian phones and sometimes there are up to 1000 messages in each folders. I do itterate over all messages for gathering their info about … | |
include '../../snippets/connect.php'; $orgid = $_GET['orgid']; if(!isset($orgid) || empty($orgid)){ die("Please select your image!"); }else{ $query = mysql_query("SELECT orghomepic FROM org_home_pic WHERE orgid='".$orgid."'"); $row = mysql_fetch_array($query); $content = $row['orghomepic']; if (empty($content)) { **$image = imagecreatefromjpeg('http://www.ineed.org.uk/dev/media/images/nohomepic.jpg'); header('Content-type: image/jpg'); imagejpeg($image);** } else { header('Content-type: image/jpg'); echo $content; } } So this was working previously … | |
[Pictures](http://s10.postimage.org/v28zknfu1/Untitled5.png) I googled and found the solution [Solution](http://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing) but I'm nub sooo, what is compiler flag? how to set it up? there multiple choice, so where should I start? Or should I just switch to IDE(Code::Blocks), the C++ Primer recommend me to use command-line interface compiler and compile it 'manually'. … | |
Hi, I want to upload files from one remote server to another using CURL I used following to upload a text file in "localhost/uploads/example.txt" to another machine http://192.168.0.202/example/ <?php $ch = curl_init(); $data = array('name' => 'Foo', 'file' => '@localhost/uploads/example.txt'); curl_setopt($ch, CURLOPT_URL, 'http://192.168.0.202/example/'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_exec($ch); … | |
I need help with the if else statement below. I am trying to use branching to determine and drawString to find the longest lines between the points. Everything I try with the branching method seems to give me errors so I have no idea what to do and it is … | |
Given: Sour extends Blue extends Pan `Pan p4 = new Sour();` Then set of 6 new statements given and asked to choose which ones will compile. They are: 1. `Pan p5 = p4;` 2. `Pan p6 = (Blue)p4;` 3. `Blue b2 = (Blue)b4;` 4. `Blue b3 = (Sour)p4;` 5. `Sour … | |
I have a class orders which has its instanced stored in a QMap/Map and has a Key:int, value:order pattern. Everything went fine until I started iterating through the map and accessing the functions of the class.First I was trying to print out the order objects values using it's getter methods … | |
Dear Users, I've been trying out with the JavaScript code to hide the textarea when a radio selection-value fulfilled the textarea will hide. So far I can't get the script right; maybe these forum can share me some information to correct my code. **JavaScript function to Hide:** function disable() { … | |
How do I do a get/post for an array in c#? In C#, you get and set variables like this: `public int ID { get; set; }` How would one get and set an array in C#? This will not work: `public uint [5] BIG_Hash {get; set;}` | |
hi guys just wanted to ask how I can add numbers in string form, I tried to add them but instead of getting 9 I get 36. here's how I tried it: Compute comp = new Compute(); comp.Bet = betTextbox.Text; comp.Funds = fundsTextbox.Text; betTextbox.Text = "6"; fundsTextbox.Text = "3"; Convert.ToInt32(betTextbox.Text); … | |
hi... i would like to ask im using vs 2010...and i would like to create a vb.net with it... i have google everything n everywhere about this one particular thing... i create my project as below open vs 2010 > new project > i choose windows form application(as shown on … | |
hi, i already reach to the end of my project, however there are still minor features i want to add in for the upload. When the user upload their pictures, i need to create a folder for that particular user and store the picture inside, means different user for different … | |
Hi , I am not able to start "apache tomcat 7.0.22" I have double clicked on "startup.bat" file in the bin folder of the apache tomcat folder after that i typed http://localhost:8080/ in my web broswer but i get the following error " Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the … | |
Please help, I have a small application which has a MS Access as backend, and the front end is developed using VB.Net 2008. When I click on the listview item and then click delete button to delete a particula list and its content on the database, it is giving me … | |
i want to know how to read all the message inside the file including their spacing,indents if possible using File Handling... can that be done? content of data1.txt: First Name: (TAB)John Doe Last name:(TAB) Manly Height:(TAB) 5'7 Weight:(TAB)164 kls Address:(TAB)Somewhere but here, (TAB)but not to far City. here is my … | |
| |
Hello, I need to write a program that takes a string and reverses it via pointers. I have a function called Reverse and what it does is take to pointers (*front and rear*) and intializes them to the front and back of the char array respectively. Then what it does … | |
Dear all, I have a problem to count the total of receiving items.. but when I run this code I output of the total displayed "1".. not "5"...here my code.. hope someone can help me to count the total of receiving.. <?php include 'connection/db_connect.php'; ?> <form name="form1" method="post" action=""> <table … | |
how do i get the full path of running process in task manager. | |
Here is my complete code. I have really tried everything but couldn't understand where i am going wrong. There is NO ERROR in compilation but the output does take in the elements and output is not being generated. My compiler is Borland 5.2 #include <iostream> #include <conio> class ListStack { … | |
Hello there, I am new to C++. I have a task from school to make simple sorting program using Insertion Sort with a linked list. I would like to have comment, feedback, and correction of my code below. #include <iostream> using namespace std; struct Sort{ int value; Sort *next; // … | |
not sure where to post this but the problem is that i cant seem to compiler a program in unix. i am using unix: SunOS unix2.its.albany.edu 5-10 Generic_142900-06 sun4u sparc SUNW, sun-Fire-V440 1-create file emacs hello.cl(l = lower case L) 2.write program in "COOL" class Main { i : IO … | |
I would like to know if this is a correct way to call and define a function for my program #include <iostream> #include <cmath> using namespace std; int math(double a, double b, double c); int main( ) { int math; char a,b,c; math = a + b + c; return … | |
i need help,, i have a text file like this below Line 1 Line 2 Line 3 my question, how to readfile from that txt line by line using Win32 API and output to console... can anyone help me,, i'm very new in c++ Thanks | |
so i made this program with a function call and definition and i keep having problems with the call function and i get error C2059: syntax error : 'return' when i build my program. #include <iostream> #include <cmath> #include <iomanip> using namespace std; int math (double cartons, double totalcost, double … | |
In my program, I have a section to insert information about a customer into an Access database. I get the error below at the .ExecuteNonQuery. Message: System.Data.OleDb.OleDbException (0x80004005): Field 'Customer.Business_Phone' cannot be a zero-length string. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& … | |
Nothing bothers Bob more than when taller people stand up in front and block his view at sporting events. It bothers him so much, that he has developed a measure for the displeasure that a crowd feels because of this phenomenon. Most days, he calls his measure the Index of … ![]() | |
Earlier today, I was very bored. I set out to see if I could write a program that would solve 24 problems (see [Wikipedia](http://en.wikipedia.org/wiki/24_Game)). Now, I was bored, mind you, and I thought, "Can I solve it in 1 line of code?" NOTE: I do not recomend this approach, it … | |
Hello, i have this sqlexception errors when i try to insert data into my sql2005 from vb2008. SqlException unhandled : Incorrect syntax near '12' and also near '3' I am sure it is coming from the datetimepicker. However the same code is working on other forms in the same program. … | |
Hello, thanks for taking the time to read this. I'm working on (what should be) a simple, simple java program, I am very new to java so please bear with me. I'm writing code with a method that takes an array of int values and determines if all the numbers … | |
How do I put the following output in a table format as shown below in the code? | |
Hi I have looked around to see if it is possible to automatically delete records with a date field once that date is in the past. Everything I have found just gives the script but you would have to run it every day. Is there a way to have it … | |
| |
Im supposed to make a little game in which you're supposed to guess a letter in 6 tries. It reads the letters from a text file. I get a bunch of errors and dont really know what to do. Any suggestions? #define _CRT_SECURE_NO_DEPRECATE #include <stdio.h> #define MAXGUESSES 6 //this function … | |
Dear all, I have declared following two hashmap. `public static HashMap<Integer,String[]> m1 = new HashMap<Integer,String[]>();` `public static HashMap<Integer,String[]> temp = new HashMap<Integer,String[]>();` At starting point of my execution both map will contain key from 1 to 20 and mapped value with it. Means key value pair are same in both … | |
Hi.. **I want to auto login in my client site which is secure**. I have to enter my username and password every time i logon to site. can any one give me code to auto login to site which is secure and most important think is that i dont have … | |
**I have a string** $string =" HTTP/1.1 200 OK Connection: close Date: Tue, 25 Sep 2011 14:09:35 GMT Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Server: Apache-Coyote/1.1 Content-Length: 12881 Content-Type: text/xml;charset=utf-8 Client-Date: Tue, 25 Sep 2012 14:09:35 GMT Client-Peer: 123.46.53.940:8080 Client-Response-Num: 1 <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:Header/> <soap-env:Body> <PlexViewResponse Command="rtrv-ngfs-subscriber-v2" … | |
first thank you for solving privious problems. I am working on codeigniter . i am making signup form in which countries dropdown list is required. i am unable to make this drop down list with table country in my database.Can any one help me. | |
if($username&&$password) { $connect = mysql_connect("localhost","root","") or ("Couldn't connect!"); mysql_select_db("phplogin") or die ("Couldn't find db"); $query = mysql_query("Select * FROM users WHERE username='$username'"); $numrow= mysql_num_rows($query); i just wont to know the IF statement when it stars what is his function in the code. ![]() | |
pls help how to use e.hasmorepges..below these code private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { // e.Graphics.DrawLine(Pens.Black, 20, 20, 800, 20); e.Graphics.DrawString("INVOICE NO:", new Font("Times New Roman", 11, FontStyle.Regular), Brushes.Black, 40, 75); string uer = dateTimePicker1.Text ; e.Graphics.DrawString(uer, new Font("Times New Roman", 11, FontStyle.Regular), Brushes.Black, 500, 75); string N = … | |
import java.util.*; public class MyLinkedList { private Node head; private class Node { private String element; Node link; } public MyLinkedList() { head=null; } public void insertAtHead(String ele) { Node curr = new Node(); curr.element = ele; curr.link = head; head=curr; } public void insertAtTail(String ele) { Node curr = … | |
Hello all! First time poster here and I'm looking for a little help figuring out the time complexity of this program. int y; void p(int x) { x = y - 1; y += x; cout << x << " " << y << endl; if (x<3) p(x); cout << … | |
so i was bored and decided to make a dice simulator, and i ran into a error. heres the code #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int total[12]; int dice1; int dice2; int aitotal[12]; int aidice1; int aidice2; void Roll(){ srand(time(0)); dice1 = 1+ (rand() %6); dice2 … | |
hey, i am, sorry for just asking now.......:( | |
Hi, is knowing HTML, CSS and Javascript sufficient enough for getting an internship somewhere? I'm currently a full-time college student. I'm really worried about not knowing enough for one. What was your first internship like? | |
How do I graph a parabola using an equation where the user can just input an angle and velocity. And is it possible to have an object follow this path? | |
Hey, I am trying to use a for loop inside a recusive method, but everytime the method runs recursively, the integer in the for loop resets to zero because of the initialization. Is there anyway to keep the integer counting up, and not resetting to zero? Thanks in advanced! | |
Are there any open source video hosting complete websites? | |
<?php /********************************************************************************* * Filename: index.php * * PHP 4.0 + MySQL + AJAX *********************************************************************************/ //------------------------------- // index CustomIncludes begin include ("./common.php"); include ("./Header.php"); include ("./Footer.php"); // index CustomIncludes end //------------------------------- session_start(); //=============================== // Save Page and File Name available into variables //------------------------------- $sFileName = "index.php"; //=============================== //=============================== // index PageSecurity … | |
Problem Statement - Case Study : Simulation of a Parking System Consider a Parking System with a machine, handling parking process and payment process. This machine has a card slot-in and slot-out, a customer console (keypad and display) for interaction, a cash collector and a cash dispenser. The machine will … |
The End.