199,114 Archived Topics
Remove Filter ![]() | |
Hello, I am trying to send e-mail using Perl and Net::SMTP::SSL. However, I receive errors when running this script (example from documentation): [code=perl] #!/usr/bin/perl -w use Net::SMTP::SSL; sub send_mail { my $to = $_[0]; my $subject = $_[1]; my $body = $_[2]; my $from = 'me@gmail.com'; my $password = 'MySuperSecretPassword'; … | |
In the following example I am trying to open a file that I have named in the command line for Read. Does anyone have any suggestions? ========================================== [code] #include "stdafx.h" #include <fstream> #include <iostream> using namespace System; using namespace System::IO; using namespace System::Text; using namespace std; #define RSIZE 1 // … | |
Hi Ive been using some httpRequests but have gotten tired of writing the 'preparation code' for every request... so I thought I'd make a function that accepted a URL, and a list of parameters and would return the responseText variable... But what seems to happen is that my other code … | |
hi i am Raghavendra. I dont know anything abt how to connect to oracle (sql) from VB 6 . could u plz let me know d steps n d code for executing the queries. its very urgent plz let me know | |
here i'm using the calendar tool as a popup window to select dates. but its showing in the format of mm/dd/yyyy, where as i needed in the dd/mm/yyyy. can any help me plz | |
So I'm working on my final project, and I decided to create a BMI calculator. As part of the requirements, I need to call a function into play. Below is what I have so far, but I am getting errors. I don't expect the solution, but could someone assist me … | |
Hi, I cannot use any of the features (like intellinsense, auto tag creation, scripting, outline tags, switching between design and code) in my visual studio html pages (like .aspx, .ascx, .html ,etc.,.) in 2008. But in visual studio 2005 its perfect. I use svn (subversion) as my source control and … | |
What is the difference between [CODE]file = open("name.txt")[/CODE] and [CODE]file = open("name.txt", 'r')[/CODE]? I can still use the methods: read(n), readline(n), and readlines(n) without adding the "r" in the open method. | |
I have two servers and one of them have mysql db and one doesnt so is it possible to use mysql db in my other server while hosting my website on another. also if there is how would you do it with php. | |
Well basically I keep a null value returned code and I have the same issue in all 6 of my functions. Here is the error code - `Warning BC42105: Function 'GetTimesheet' doesn't return a value on all code paths`. A null reference exception could occur at run time when the … | |
I've pretty much got it down how to determine operating system version, service pack level, 95/NT based, etc. for Windows XP and earlier versions by using GetVersionEx(...) and that's pretty handy for getting system information that software users probably don't know and don't know how to figure out (sadly). A … | |
how can I print a report of the page if it has a many text boxes that I want to print it in one decoment | |
I'm just curious to see what are favorite PHPers in terms of the following: 1. What is your favorite IDE (If you can tell why you love it, it will ice the cake)? 2. What is your favorite JS/PHP libraries (I would love to hear why) 3. What PHP framework … | |
hellow people i am a beginner i really need help. i am a college student one of my project was all about compiler.i made a c++ tutorial but the problem i have no idea on how to put a compiler on it. do you have any idea on how to … | |
Hi, I'm trying to write a console program that will sort and find the median of numbers that are given in a text file. The text file can have ints or doubles. The problem I'm having is outputting the median and the insertionSort functions. I think that they are failing … | |
I am trying to enable Gzip for CSS and JavaScript but whenever I do it the CSS fails to load (thats what firebug says) and same with some of the JavaScript (like some of it loads and other doesn't. The CSS and JavaScript are external files. I am using the … | |
How do i put a function inside another function? Im getting confused with the function definition. Plz help?? | |
Is it possible to do a page postback after endREquest() or in the endRequest() ? I have a button in update panel that I allow user to click just once as the process took bit of time to finish. I used following code to achieve that but now my application … | |
I am using [URL="http://musicplayer.sourceforge.net/"]XSPF Web Music Player[/URL] slim, and whenever I put it into a web page and play it using Google Chrome or Safari the song starts playing twice. When i press the pause button one instance of the song keeps playing while the other keep going without any … | |
Hi, I have code: [CODE] public func(z) { int a = z; pnlGraphics.Paint += new PaintEventHandler(panel1_Paint); } private void panel1_Paint(object sender, PaintEventArgs e) { } [/CODE] how can I send val a to panel1_Paint? | |
If I Open a file using something like: FileStream^ fs = File::OpenRead( path ); How can I determine the size of the file so that I can read all of the data bytes in the file? What sort of Read would you use to read one byte at a time. … | |
Ok so heres what I am trying to do to help you understand my question. I am making my WINAPI load hidden so it's not in the taskbar and is only running as a process using ShowWindow(hwnd, SW_HIDE) on case WM_CREATE: Now what I am trying to do is make … | |
Hi, I have been writing a PHP code. As I couldn't execute it locally (installation issue), I moved it to my server as a '.php' file. I haven't executed or run a php file in server before. Can anyone please say me how I can view the output of my … | |
hello all im having as the title would suggest a runtime crash in my program cant quite figure out why hits some ware around enter tenant name. line 53 [CODE]void ComplexInterface::editUnit(){ bool test = false; do { int unitToEdit; cout << "choose a Unit to edit " << endl; for … | |
Hi Guys I have been working on an Automatic Email Function. The code returns two different email addresses which are used to send emails to. The problem is - in second email sent the Body of the text is repeated twice i.e. In the First Email Sent: Welcome to the … | |
Hello everybody, I want to overload a function based on an array dimension or pointers. Ex: [CODE] int calc(int a[]); int calc(int a[][]); [/CODE] or [CODE] int calc(int *a); int calc(int **a); [/CODE] *a should be &a but i dont know how to face a reference of a reference so … | |
How can I stop shape after 5 seconds of moving? I know how to move it and how to stop it but don't know how to make it stop IN 5 SECONDS. This is the rest of the code that I have done but the 5 seconds part is still … | |
[CODE] [Davis@localhost UNS]$ gcc U_bc.c [Davis@localhost UNS]$ ./a.out a=d i=100 f=0.000000 sizeof(u)=4 [Davis@localhost UNS]$ cat U_bc.c int main() { union test { char ch; float f; int i; }; //union test u={'a',21,34.65}; gives a warning excess elements union test u={100.23}; printf("a=%c i=%d f=%f\n",u.ch,u.i,u.f); printf("sizeof(u)=%d\n",sizeof(u)); return 0; } [/CODE] in the … | |
Hi All, Thank you for reading this and helping me! I am finishing off my program with a method that can compute Average Scores from a list of data. It's giving me an error that says "invalid use of member (did you forget the â&â ?)". Below is the code … | |
Hi all, I am new to perl I want to compare two files File 1 is having protein names like Biotin-[acetyl-CoA-carboxylase] ligase Acetyl-/propionyl-coenzyme A carboxylase alpha chain Acetyl-CoA carboxylase, carboxyl transferase, beta subunit biotin carboxylase-like protein CYCLOPROPANE-FATTY-ACYL-PHOSPHOLIPID SYNTHASE 1 CYCLOPROPANE-FATTY-ACYL-PHOSPHOLIPID SYNTHASE 2 mycolic acid synthase long-chain-fatty-acid-CoA ligase 3-oxoacyl-[acyl-carrier-protein] synthase I … | |
Hello, I'm trying to deploy an application. On my development machine, I have Office 2007, and using it to automate excel from c#. On the target machine, there's Office 2003, and I getting an error message when trying to installm that I should isntall Microsoft.Vbe.Interop version 12.0.0.0. I removed all … | |
[code=php] <?php include 'config.php'; include 'opendb.php'; $result = mysql_query("SELECT * FROM 888db ORDER BY id") or die(mysql_error()); echo "<table border='0'>"; echo "<div id='bodyframe'>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row … | |
| |
Dear members I have a challange. I want to update my CRM database (MSSQL) with turnover numbers from our ERP database. I can retreive the data in different file types from my ERP database so they can be importet as a flat file. But does anybody have a good idea … | |
im trying to generate a random number using #include <cstdlib> and then srand(time(0)); but it keeps telln me i need a constructor, destructor or type before the (. what do i do?? | |
Hello everyone, I need a little help understanding what to do for a final project. I'm writing a program that will make an array for 10 songs, sort them by title, genre, and artist name, and make a hierarchy chart showing the branch of modules. I understand this for the … | |
Hi all, How can i get the value of a specific text in a select box. example 16 of text OEC using jquery, I am not getting the value correctly <select name="categories" id="categories" class="validate"> <option value="0" selected="selected"><--select one--></option> <option value="57">OBC</option> <option value="16">OEC</option> </select> I had tried For example something like … | |
Hello all I have just started to learn programming, and I am having a little trouble getting around array and vectors; I need to create a structure to store a certain amount of data based on the user's input. I was told by my teacher that I have to declare … | |
Hello, I am writing a program in C++ to open a web page in a browser using command line. Suppose, I enter open [url]www.google.com[/url] It should open Google's home page in a browser. I want to make this program multithreaded so a user can open as many web pages as … | |
What is a seed in c++? "Call a function to populate the array to perform the following: Ask the user for a [I]seed[/I]" | |
Hi. I am kinda new to java and I really need help on this program that I have been assigned. Here is the assignment: [B] Assignment:[/B] Write a KochCurve program that uses DrawingTool and provides a drawKochCurve method for drawing Koch curves. Each drawKochCurve method can take the number of … | |
Can anyone tell what is wrong in the below program.I want to ping an ip address which is entered by the user. [CODE]#include <iostream> using namespace std; int main() { char ip1[30]; cout<<"Enter the Ip Address"; cin>>ip1; system("ping ip1"); return 0; }[/CODE] | |
These codes work fine to display data from listview to textbox. TextBox1.Text = ListView1.Items.Item(ListView1.FocusedItem.Index).SubItems(0).Text Is there any alternative codes for this purpose? | |
Hi, I'm completely new to Java, and I'm already lost with the installation. :p I'm on the custom install page and I see Source Code: Source code for classes that comprise the public API of Java. Public JRE: The standalone JRE. Any application can use this JRE. It registers Java … | |
hello folks, I have an array of integers and I need to search if there's a combination of 2 numbers that resault a defined sum. No loops or static variable are allowed. Any suggestions? cheers, Elad. | |
The following is output from an unknown command off an old school DEC Ultrix machine. Does Linux have a similar command/tool? Thanks, Kent 1 pend_nonpayment: int(), <pend_nonpayment.c 79> 2 usr_pwd: <> 3 display_error: <> 4 clears: <> 5 paint: <> 6 current_date: <> 7 get_process_date: <> 8 strcpy: <> 9 … | |
I've never written byte variables on my unix shell before, so I don't know if it works or not. I'd been using unsigned ints to get hex numbers as input but I was having trouble with what my input actually was. My friend told me to use byte variables instead … | |
![]() | Hi again, I am trying a competition entry (its old, purely to test myself) and I have come against a problem, this is the description for the competition: In a word game each letter has a score based on its position in the alphabet, A scoring 1 through to Z … ![]() |
basically i have 4 files 2 contain the following data . Trying to find out data which is common and not common in both files and write it out to files common and not common. It almost works except for it doesn't compare the last item in the list before … |
The End.