64,152 Solved Topics
Remove Filter ![]() | |
When doing email blasts using CFMAIL and CFMailPart email accounts with gmail can not view the content, (it is blank). I am using the following construct: CFMAIL CFMailPart type="TEXT" Text version of EMail here. CFMailPart type="HTML" HTML version of EMail is here. No one seems to have a problem except … | |
out = open ("output.jh") towrite= a+b out.write (towrite) When you want to put an output to a file. instead of the information going right next to eachother how could they go one over the other in the file. This would be for many different outputs. | |
i'm a new comer to this language. can anybody tell me why this simple piece of code gives me an error indicating that "NameError,name 'example' is not defined". by the way i use Wing IDE to write my codings. class example(): def _init_ (): print("a class is created") def m1 … | |
Hi All, Really appreciate your help!!! I am new to java and this is my new project in java. for my application am trying to get DB results by calling a oracle procedure through JDBC.i was able to do that and was getting results back to the DAO class.am setting … | |
Hi all, I'm new in programing.I'm trying to assign random numbers which math.random will choose.Each time I run program Math.random must choose either 50,100 or 150 ie: 50*1 for 1, 50*2 for 2, 50*3 for 3. I hope my explanation makes sense. Thank you! [CODE] int width; width = (int)(Math.random() … | |
Hi all. I recently began to give C++ a go again after failing on the first attempt. I quickly ran into the same problem that led me to C# the first time around. Strings, damn strings. I simply cannot get my head around arrays of charactors, they stress me out, … | |
A file called input. john 9 7 6 7 4 3 9 5(double space)76 54 53 77 65(double space)4 45 45 def main(): fin = open ("input", "r") line = fin.readline() x = line.split(" ") a= (int (x [1])+ int (x [2]) +int (x [3])+ int (x [4]) +int (x … | |
I manage a small website. I went over the logs this morning and found a page reference on the site that should not have been there. It was of the format "/xmlrpc.php". I did a search for the term and found the XMLRPC website. I didn't understand what was written … | |
I manage a small website. I went over the logs this morning and found a number of pages or page references on the site that should not have been there. Most were of the format "/_vti_bin/". I did a search for the term and learned about the Front Page debacle. … | |
I hope this is the correct forum for this question. I manage a small website. The site uses a database with MySql. When I launched the site, around 3 years ago, the PHP code I wrote had minimal security and validation in PHP because I relied on javascript validation for … | |
I am doing an exercise from Stroustrup's book. It is the drill from chapter 10 on input and output streams. The program I wrote compiles but crashes when it reaches the prompt for the output file name. My IDE (VC++ Express) simply says there is an unhandled exception yielding a … | |
Hello all I have a form working perfectly, however I need to put this form in a $display_block .= "... ... ..."; which I have done and which works fine also (minus the following radio code). My problem is that when I add this code back inside the display block, … | |
Hi all I want to make sure that my password field should contain numbers as well as letters i am using something like function isAlphabet(elem, helperMsg){ var alphaExp = /^[a-zA-Z]+$/; if(elem.value.match(alphaExp)){ return true; }else{ alert(helperMsg); elem.focus(); return false; } } but it does nothing when there are letter in field … | |
Hi there; I hope I post this message in true place.My question is about modules in oop. In Code complete, author Mr Steve McConnell mentioned "module" in page 89. [QUOTE] Semantic coupling The most insidious kind of coupling occurs when one module makes use not of some syntactic element of … | |
I'm beginning a program that needs to read a file given in the command line. My first question is, if my command line looks like: $java mysimulator 5 proc.txt And I want to use proc.txt, which args[i] is it? Right now I'm assuming that the class name is args[0] and … | |
Hi this is driving me a little crazy, have been looking everywhere for a solution for the last few days. I'm new to php and i'm trying to create a simple food shopping cart, i have a repeat region for food extras attached to the food item. [CODE=php]<table width="100%" border="0" … | |
I need to write a tic tac toe game that displays who's turn it is. It doesnt have to restart or have AI. Im not sure why everytime i click it repaints a different colors. I want every cell to be one solid color then depending on if its X's … | |
Dear friends, I get a assigment and i very confused with this cases. How to write a function that computes the area of an arbitrary polygon – so not necessarily a triangle or rectangle, etc. The input of the function should be a list of points, where each point is … | |
When I use a GET request from a browser address bar… [URL="http:/example.com/vast/1/73188"]http:/example.com/vast/1/73188[/URL] …it loads and displays an XML output. If you then refresh the page a new file loads. Actually, there are something like 5 different titles with load in rotation as you re-call/re-fresh the page. That’s all well and … | |
I am learning mySQL and PHP and am very appreciative of the help I have received here. As some of you know, I am working on a Hockey Pool site. One of my first experiments was to build a static form on a php page that would take the input … | |
Can anyone explain why the last line works? It seems like it is trying to cast a CRectangle as a CTriangle (which I imagine should fail?) but it outputs "5" as the function should. [code] // virtual members #include <iostream> using namespace std; class CPolygon { protected: int width, height; … | |
Hi guys, i am trying to implement elevator simulation but stuck in some ways. 1st. i would like to set the background of my elevator class area into yellow but when i tried to do so by typing app.setBackground(COLOR.YELLOW) under class Elevator, i unable to change it. 2nd. i tried … | |
Hi All, I am coming from C++ world and working on some C# code. Currently working on a class with an ArrayList data member and would like to control which methods/behaviours get exposed to the client of this class. One of the functions in this class takes an index as … | |
I was told on another forum that my table was not set up properly. Specifically, two of my columns, "keywords" and "catagory" should be in child tables. I just dont see that, or I dont understand why I would need to do this for these columns. here is my info … | |
Hey Guys, I'm just experimenting at the moment - I've made a small application in C# that uses a WebBrowser Control to navigate to a website (which is currently on my LocalHost using WAMP) using a custom UserAgent (HelloWorld) Now, when I echo the useragent, it tells me what I … | |
I'm doing my first C project in, maybe, 15 years, and have gotten stuck. I'm trying to link a 3rd party library into my project. I've installed the headers in ./include/ft and the libs in ./lib/ft Here's my compiler command and associated output: [icode] [root@wayne tele]# g++ -g lib/ft/libmbusmaster.a -lm … | |
Hi, I have a problem with my instance. I need to do a file read to extract all the numbers in the text file. However, when reading the file, I used String, and hence the file is read as a String. Later on I need to equate the output of … | |
Hello,everybody.I want to write a program that change the color of blocks and text on each block in a web page by it.You know in a web page we have many blocks and each blocks we have texts and may be shapes.[B]So,I want to assign three(3) code to each block … | |
Hi guys, I have a form which has multiple drop-down menus using the standard <select> tags, but I can only get the results for the first drop-down menu. Does anyone know how I can expand the below code to support multiple variables using a querystring? Thanks, Julian [CODE]<!DOCTYPE html PUBLIC … | |
I'm trying to populate a select box with rows from a table, but it's not showing up properly. I've looked at the source of the page, and it looks like the option html is not being outputted. Anyone spot what's wrong? [CODE]<h1>Upload Picture</h1> <form action="gallery.php" method="post"> <label for="photo">Select file: </label><input … | |
Please send me information/Source code on my e-mail ID that how can we implement BFS algo. in Java. Please tell me as soon as possible. | |
someone knows how to launch an app in mac?? [CODE] import os class LaunchApp: def launch(self): os.startfile("/Applications/QuickTime Player.app") s = LaunchApp() s.launch()[/CODE] this code works on windows and [CODE]os.system('gnome-open ' + /path)[/CODE] on linux but in mac, it returns this error "AttributeError: 'module' object has no attribute 'startfile'" | |
I'm creating a website as my college project which consists of HTML pages and JSP. I've started writing JSP code, but don't know how to run it. Can you tell me how to proceed after creating JSP file. (i've created Login.jsp and login.html file. Gave <form method=post action="Login.jsp"> in login.html … | |
Hi, How do I check if a member of a struct is null? I've tried: [CODE]if(ErrorInfo->TestName != NULL)[/CODE] The above method returns true even when [B]ErrorInfo->TestName[/B] contains nothing (debug shows it as 0xccccccc, ""). [CODE](!(strcspn(ErrorInfo->TestName, "") == 0))[/CODE] The above method throws an access violation. I've tried other ways too … | |
Hi, Can anyone help on my code. i'm not sure whether i'm code in right way or not. I would like to do 1) read total value from a particular table in 2 database (MyAccount & DealerAccount)from the most recent transaction 2) read grandtotal from another database from the most … | |
wanted to know the difference between Page.IsPostBack and Not page.IsPostBack. what is the purpose of using these? where it is being used? | |
Hi guys I need a code that outputs the save as Dialog box. Just as simmple as that. Thanks. | |
I keep getting an error when I try to instantiate the ArrayIterator class within a name space [CODE]$a = new ArrayIterator; //works just fine namespace test; $a = new ArrayIterator; //get error //Fatal error: Class 'test\ArrayIterator' not found in /www/ on line 3[/CODE] I've been searching the web for hours … | |
Okay, I’ve got a noob question. It’s been awhile since I coded so I thought I’d start off at the beginning and create a template list and tree. Back in the old days I left the nodes open, but I wanted to keep the data private this time. My first … | |
Hello, I am a newbie in C++ programming. I try to write a C++ program to first read and split a hugh text file (that containing multiple small files inside it) into multiple small text files, then I need to write the first line of each small text file into … | |
I have a string that I need to convert to int before updating it in my database, but haven't managed to figure out how it's done. Here's my latest try: [code=c] int iLager = Int32.Parse(TextBoxProdNumberOf.Text); SqlConnection conn = new SqlConnection(config); conn.Open(); string sql = "UPDATE Produkter SET iLager ='" + … | |
Hello! I have a table with some rows and cells (code at the end), and created a function which searches for text inside the cells and returns the row number where the text is (to simplify the example, only English Name is working). Then, it should set the grid cursor … | |
I have a 2 tables that I want to select in a weird way but I'm not sure how to join them, should I use inner join or join left or group by etc... [CODE]//my desired out come employee_id | training_name ---------------------------- 1 | training a | training b | … | |
hi, I m working on vs 2010. asp.net. i have problem with apply class using jquery. there is one textbox. i use class by this way its perfectly work. but when textbox multilink property is true. then problem is raise. pls help me to use this... thanks in advance. jack | |
[CODE]// #include <iostream> using namespace std; #include <cmath> #include <math.h> int main() { float a, b, c, t, s, area; cout << "Enter the lengths of your triangle's sides: "; cin >> a >> b >> c; if(a>b) {t=a; a=b; b=t;}; if(b>c) {t=b; b=c; c=t;}; if(a>b) {t=a; a=b; b=t;}; if((c*c) … | |
Hi all, I've got a certain instance in my program where an integer variable, let's call it 'x', is initialised in one part of a class, however the value is not present when the integer is called in another class. To explain further, I've got 2 classes - 'class1' and … | |
Hi everyone, I need to modify a website created with Smarty. Pretty big website. I have 2 questions. 1. When I try to access index.php, instead of webpage I get screen full of characters. How to see the pages? Guess I need to install smarty, but even their "quick installation" … | |
Hi, I know that Quantum Computers haven't made much of an impression yet as they are not very powerful but I have a feeling that they will become a lot more powerful within the next 10-15 years. I know I'm a bit [B]mad[/B] but I just want to know if … | |
Hi, I need to do a file read and extract all the numbers in the text file to be used in my java program. However, I'm having some problem with the try and catch statement. Must the try and catch statement be in the main loop only? Can't I used … | |
Hi there, I am trying to find the max and min value in a an array of size 100, but the input is stopped when there is a 0 entered, and it too gets added to the array. The code below works good, EXCEPT it's min value is always -2, … |
The End.