199,114 Archived Topics
Remove Filter ![]() | |
Hi everyone, I am doing my final year in BSc Computing and Information systems. I am looking for some advice on my chosen project. Its about a mobile based sign translator.Photos that contain some text in foreign language taken using mobile camera is sent to a work station where the … | |
hi, i've been trying to solve this but no luck. This is my code [CODE]$replace1 =str_replace('hreflang=\"'.$arr['variantslang1hid'].'\" lang=\"'.$arr['variantslang1hid'].'\"','hreflang=\"'.$arr['variantslang1'].'\" lang=\"'.$arr['variantslang1'].'\"',$replace1);[/CODE] it should replace but no. i'm not escaping "" properly. how can i solve this? help much appreciated! | |
To anyone creating a C# program for intro C# class. My program is suppose to calculate shipping cost when user chooses either two radio buttons,and choose from the list box with the shipping cost, while typing in the distance. But while doing the code I get the error message Use … | |
![]() | Hi, I am relatively new to C++ and I am having problems sorting a set of items here is my code: [CODE] #include<iostream> #include<sstream> #include<string> #include<iomanip> #include<fstream> #include<vector> #include<string> #include<cstring> #include<set> #include<algorithm> using namespace std; struct SimpsonChars { string firstname,lastname; double firstnum,secondnum,thirdnum,fourthnum,fifthnum; SimpsonChars(const string& lname = "", const string& fname … ![]() |
Here is what I have. I need the check boxes to add the variables Masters(3000) and doctorate(8000) to whatever the value of the current radio box. If they are both checked then they should both be sumed along with the current radio box value. If they are unchecked it should … | |
So I need to write a function that if a file exists, it will change the file name by sequentially adding integers, starting with 1, to the base file name (the part that does not include the file extension). so if the filename is hello.dat, then it will return hello1.dat … | |
i am new to vb.net... my problem in this query is that "Format is not a recognized built in name" this Format() is an sql function right? is there a header file to call the format() function just like c++? can anyone help me with this? please! here's my query … | |
Proper way of doing this? Please disregard some variables. [CODE]Imports Oracle.DataAccess.Client Imports Oracle.DataAccess.Types Public Class Addcage Dim conn As New OracleConnection Private cmd As OracleCommand Private da As OracleDataAdapter Private cb As OracleCommandBuilder Private ds As DataSet Dim roomprice As Integer Dim roomtitle As String Dim lubid As String = … | |
Hi , In my application I have to implement Tooltip for Link Button. When mouse hover on link button , I should get a Tooltip. It can be a Telerik ToolTip as well. Please help me with this concept. I need step by step process for implementing this. Regards. | |
Hi guy, would you help me, how to create table (ACCESS) with primary key in visual Basic 6? Set catNewDB = CreateObject("ADOX.Catalog") catNewDB.Create "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & sDatabasetocreate & _ ";Jet OLEDB:Engine Type=5;" ' Engine Type=5 = Access 2000 Database ' Engine Type=4 = Access 97 Database Set … | |
Hello Everyone, I would like to seek your help since I am a beginner to vb. I want to create a report based on some criterias such as dates or names. For example, the user will select the dates from a combo box above and the report to be displayed … | |
Hello, everybody, I am doing my Java homework and we used this line in class with no problems at, I have the code from the program we used in class and it works on my computer no problem. However, when I put it into my homework's code, it gives me … | |
Hi folks. I'm new here so appologies if I'm not posting in the correct place. Here's my issue. I want to paint independent graphics on the same JPanel. I thought that I could create a method that paints my image(s) then call this in the constructor, but not sure what … ![]() | |
Hi, I am new to programming and have just started learning C and C#. I am trying to print the following pattern using for loop in C# 1 23 456 78910 and so on... I have tried everything but its not giving the desired output. Can anyone help me with … | |
if (A == nullptr || B ==nullptr) { cout<< "empty"; } When a put this code in Visual C++ 2010 Express, told me this error no operator "==" matches these operands Could someone help me how to solve, it is really important | |
I'm trying to make a prepared statement to query a customer database and set their user session variables. When I try to run it I get this error. Fatal error: Call to a member function bind_param() on a non-object in C:\wamp\www\HW2\user_login.php on line 57 Can someone help me with why … | |
Hello there, can anyone can help me with my problem, i want to update a record, but im getting an error. this is my code [CODE]<?php // connect to the database include('connect-db.php'); // check if the form has been submitted. If it has, process the form and save it to … | |
I already wrote the code to read in these two files: processing_rules.txt - which will contain rules like these: 0R1, 0R2 1S3, 0S3 end input_data.txt - will contain data: 5 00110101 The positive number (5, in the example above) represents the position in the second-line sequence, from which processing will … | |
Hello I'm making an application that reads a series of values from a text file and then converts it to a bitmap image. Currently, I'm using arrays, but, deciding on a particular length is annoying. I have been reading a few tutorials and i've read a lot about using vectors, … | |
Hello, so my assignment was to take a text file that contains a properly written C++ program code and to go through that code character by character and output all the comments in that code to another text file. This is what I got so far, basically I`m wondering how … | |
I have problem that i want to replace a posed value of form with the correct name but not getting the proper text I am only getting the form values i.e. [B]pbs[/B] and [B]gs[/B] <?php include "connect.php"; $school=$_POST['school']; if ($idevice =="pbs") { $tb_school = "Public School"; } else { $tb_device … | |
Hello guys, I want to ask the experts here, if what technology of .NET would I consider when my client wants his POS connected to a USB-based Scanner? Is still a serial communication? I'm a new programmer so please do give me some advice. thanks | |
Hello Guys, I really need your ideas on this one... Ok, I'm only familiar with php and simple html coding. I'm designing simple book loan database. Consist of two sql tables (a very simple one) table 1 book_in table 2 book_out Ok.. Let say, every book is determined by a … | |
Bored and just wrote this. Anything I did wrong? Anything that can be improved? Relatively new to C++ but I have the basic basics down(I like to think so anyway). [CODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; void programIntroduction(); void gameLoop(); int playerChoice, cpuChoice, wins=0, losses=0, ties=0; int … | |
I have created two classes: [code]class dm_Step { public: char m_plus; char m_particle; float m_energy_sec; float m_xpos_sec; float m_ypos_sec; float m_zpos_sec; }; [/code] [code]class dm_Track { public: vector<dm_Step> m_track; } [/code] I have a data base with hundreds of lines of code in the following format: + gamma 2.306013 -0.213225 … | |
In the address bar, i am getting the clean URL. I want to parsed it out.please help me out. [url]http://example.com/folder/test.php?stuid=xx44[/url] | |
I'm in a computer programming course on Florida Virtual School, and I'm stressing out over our current assignment, because it seems like it should be easy. The point of the assignment is to write a program to count how many times the Scribbler robot stalls and then print the results … | |
Hey, I am having trouble implementing a c++ function that will allow the user to enter a lower and upper bounds and reverse everything in a char[] in between the bounds, so if array is, char[] = {'A','B','C','D','E'}; and the user input was 1 and 4 for 1 as the … | |
Hello thanks for helping me before. I have a issue and I need its complete solution if someone can help me in this I have a simple php which contains html script and which have iframe included in it. I want its java scrpt embedded code so that users can … | |
I had to write a program that finds out whether a matrix is Skew-symmetric matrix or not...well my code is a disaster I seek help in this matter. In which way can I write this code to make it eficient,short and smart? this is my code (yet again it;s a … | |
I'm trying to convert my code for querying and accessing user login info and putting into session varibles to using a prepared statement to do the same thing, but I can't figure it out. Original: [CODE] $query = "SELECT id FROM customer WHERE username='$username' AND password='$password' LIMIT 1"; $result = … | |
Hi, I noticed many programmers accuse C++ as very hard language for GUI and very good language for the code. Is there any way to integrate 2 languages, C++ and any other language which is easy to make GUI with? Thanks. | |
I'm trying to run a simple servlet that counts the number of times a user visits the page using cookies but I'm getting the following error. I thought that NullPointerException was because there were no cookies at all in the browser. But after checking I found a couple of cookies … | |
Hi, I've been trying to learn what pointers are and how they function, and I now finally understand most of it. However, I don't understand the assignment of strings to a char *, and what the values they have mean. I wrote a small program to learn: [CODE]#include <stdio.h> #include … | |
Hey guys! I'm almost done with a payroll application im creating but I'm stuck with this Crystal Reports issue.I want to filter the report by displaying data by two specific textbox,TextboxA(EmployeeID) and textboxB(PayrollNumber).How can I do this?please help!! | |
My final question. I have values which have been serialized into a table forum_polls as are in the following format as shown in the two examples below: [CODE]a:2:{i:0;a:2:{s:6:"answer";s:3:"Yes";s:5:"votes";s:1:"1";}i:1;a:2:{s:6:"answer";s:2:"NO";s:5:"votes";s:1:"2";}}[/CODE] [CODE]a:5:{i:0;a:2:{s:6:"answer";s:2:"CA";s:5:"votes";s:1:"1";}i:1;a:2:{s:6:"answer";s:4:"CIMA";s:5:"votes";s:1:"1";}i:2;a:2:{s:6:"answer";s:4:"ACCA";s:5:"votes";s:1:"0";}i:3;a:2:{s:6:"answer";s:5:"CIPFA";s:5:"votes";s:1:"1";}i:4;a:2:{s:6:"answer";s:24:"MBA(specify in comments)";s:5:"votes";s:1:"1";}}[/CODE] which unsererilized (I cheated and used an online unserializer) give: [CODE]array ( 0 => array ( 'answer' => 'Yes', … | |
The code below takes the quantity of tickets from the 55 tickets that is available and it stores the value in a text file. What I want the program to do is to store the amount of tickets that is available and then each time the program executes it will … | |
I want to update a record of a gym member when his/her weight change. But unfortunately my program can't find the given member. Here is my code: [CODE] public static void updateWeight() { Scanner in = new Scanner(System.in); // Creation of a new Scanner object String tempName = ""; // … | |
Hi, I created a game in which players take turns entering their symbol by clicking on a box that is implemented on a grid window. I am having a hard time being able to check if the player has four symbols in a row diagonal or up or down or … | |
anyone who can help me regarding how to read data from .dbf files recordwise. | |
hi , how can i print data as grid view in python, in my case a variable is carrying all the data which is coming from table and i want to print them by using two nested loops. [CODE]data_from_table = ['col 1'] + "/t" + ['col 2'] + "/t" + … | |
I am making a html form on a website and then that form should be forwarded to an email. I am having a hard time with this. Dead line is near and i do not know what to do. Below is the code: PHP code: [CODE] <? if ($_POST){ if … | |
Hi everyone, I've written a cellular automata code in python that updates land uses based on each cell's adjacent neighbors. I import a text file as a dictionary with cell id: land use code. I also import a text file with each cell's adjacent neighbor. I then run the cellular … | |
Here's the full assignment: [QUOTE]The ABC Corporation wishes to review a group of its products based on their performance in the prior fiscal year. The company has the sales data for these products for each quarter in the year. Having heard of your programming experience, the company has hired you … | |
So, what is my deal... I'm working on a script, which, at some point will require the user to insert his or hers username and a password. My question is, how can I make that when the user will write in the password box/line whatever, instead of its characters, to … | |
I am working to take c code from an academic paper and edit. I am studying cryptographic algorithms. I have ran the following code, but I am having a little difficulty understanding two things. First, the program uses unsigned long ints. When they are added or subtracted, I don't get … | |
I have a battleship python assignment due in an hour and I can't figure out where the error is in this code. It seems like when player 2 plays sometimes the coordinates saved in Board.remaining_ships can't be deleted because they aren't there. Please please please help Here is the error: … | |
I am having a hard time getting specific text from a webpage. [url]http://mbible.com/john/1-1.htm[/url] OR [url]http://m.bible.cc/hebrews/1-3.htm[/url] (Whatever easier!) I want to get the text infront of "KJV" label. ex: KJV: sometext. how can I get this "sometext" tried this and didn't work. [CODE] 'Dim htmlElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("a") 'For Each … | |
I have an options table setup like so: [CODE]option_id option_name option_value 1 sitetitle SimpleCollab 2 siteurl http://example.com/ 3 sitepath /home/user/MAMP/htdocs/pm 4 enable_registration 1 5 enable_query 1[/CODE] Then my php code is as follows: [CODE]function get_pm_option( $option ) { global $pmdb; $result = $pmdb->query( "SELECT * FROM " . DB . … ![]() | |
Hi, I was wondering is there a way where you can sell limited tickets. For example there are 55 seats in a bus and 55 people bought the tickets for the bus,the people who want to buy those tickets for the bus must wait for an hour. How would I … |
The End.