64,152 Solved Topics
Remove Filter ![]() | |
We are asked to create a calculator but before I do that I must correct the codes given in order for me to know what I must add in my calculator but I do not know how to solve the "void cannot be referenced " error...how can I do that? … | |
Is there any class for information providing box when i bring mouse over the object in java. I mean when i bring mouse over the combo box it display information about that combo box I cant load picture, seems some error in picture loading area..... | |
I have two text files containing multiple lines of text from a datalogger, and I need to compare the two files and save the difference into a third text file. ie.... text1: 10/13/01, 21:34:23, 4324 10/14/01, 09:12:32, 3423 10/15/01, 04:45:54, 7834 text2: 10/12/01, 43:34:34, 6453 10/13/01, 21:34:23, 4324 10/14/01, 09:12:32, … | |
Hi Frendz, How to get the id of an element using onClick Event in <body> tag using javascript? | |
I have connected java with oracle over lan, in connection string i have provided the IP address, now the startup is very slow, how can i make it fast, i have already asked the same question in java forum but no responce, so i thought oracle expertise can answer this … | |
I am using a acript to control the input field of my page where it can enters numbers only in telephone field. Can anyone help me on how to modify the code to allow a symbol '+' ? [CODE] <script> function zz(txt) { var txt1 = txt.value.replace(/[A-z]/g, ""); document.getElementById('aa').value = … | |
I've tried a number of the HTML/CSS techniques to get my table to scroll horizontally but none of them work. The table has been wrapped with a DIV and the CSS has included the OVERFLOW code but all to no avail. The code is basically like this: [code=html] <div class="Divscroll"> … | |
heres my script [CODE]function count_chars(tarea) { if ( document.getElementById("checkchars").checked ) { x=document.myform.tarea.value; document.myform.charcount.value=x.length; } else { var x ; x = document.myform.tarea.value.replace(/\n/g,''); var y = x.split(' '); document.myform.charcount.value = x.length - ( y.length - 1) ; } } function count_words(tarea) { var y=tarea.value; var r = 0; a=y.replace(/\s/g,' '); a=a.split(' … | |
Good day to everyone:) , i'm a new user here and i'm also new to Visual Basic , i'm having problems coding the codes myself. It's an assignment for me from school , after attemtping it for a few hours , I'm almost finish but i'm having trouble in the … | |
One WordPress site on one of my servers is giving an incorrect HTTP response code when a page can not be found. On the end-user side, the user sees a custom 404 page. But on the web-server side Apache is giving a 200 or 300 response (not sure which one) … | |
I need to extract an integer value from the end of a string, and I'm a little bit lost on algorithm functions/classes in C#. Is there any sort of convenient class/function to help with this? Here is a sample string: "omaha nebraska weather 2400" | |
Hello everyone, I am trying to write a simple web application where I have a mySQL table. I am using drop down menus to select options on how to filer the table.... i.e. select the subject, filter the table for just that subject and continue on. Anyways I'm trying to … | |
Hi there, Im using c# i have a button save and a datagridview. I have textbox and binding navigator that gets the data from database1. Once i click the save button the data in my textbox save to another database2. Now i want to have a loop that continous get … | |
Good day, The challenge I am experiencing is obtaining the contents of the private necessary to decrypt data. I've reviewed tutorials on public/private key generation and my keys are properly formatted. To debug, I substituted a pair of keys created a year ago when I took a course on secure … | |
Can anyone help me with this syntax.. i made 3 forms. and i want form 1 & 2 inputs displayed in form 3.. this is what i made so far.. don't know what to do next Form 1 [CODE]Public Class Form1 Inherits System.Windows.Forms.Form Dim ID, sname, course1, year1 As String … | |
for the past ten years i have tried without much success to program in c, c++, java and c# .net. my major problem has been inconsistency and lack of focus and direction. now, i want to start all over again with Python as my language of choice. what must i … | |
I've seen many different answers to this...is it possible to have a constructor for a class that returns a value? | |
I am trying to setup a form that will output html to the email recipient so the format of the email doesn't look all jacked while at the same time making sure the person is human and doesn't allow bad characters. (so it has a verification script and it strips … | |
I've tried this a number of different ways and I've even downloaded the Regular Expression reference sheet from addedbytes.com, but I just can't figure out how to move this eregi_replace() statement into a preg_replace() statement. I've read and understood the delimiter requirements for preg_replace(), but I think the problem is … | |
Trying to build a simple python script on my mac, but the mac is 64 bit and apparently does not want to play nice. Does anyone know of any workarounds or if I am missing something? command i am running is python setup.py py2app -A output is: error: argv-emulation is … | |
How do I grab the output sent to the console and save it to a .txt file? Thanks in advanced. | |
Good morning all, I recently started an entry level job creating web pages in ASP.NET/C#. I've been getting along fairly well but when I began doing cross-browser testing on a site I just finished, I discovered that while the site renders fine in IE, only the master page is rendering … | |
Hi, I am having problems when generating a chart dynamically. The problem is that sometimes the chart is rendered with a black background and sometimes without. I have stepped through the code and verifies each number and there are no anomalies or numbers that might cause a problem. The y … | |
Hi All Please some one Help me find out why this code doesn't work: [code=python]codes=['zlib', 'zip', 'base64', 'hex', 'utf-8'] def encoder(str, i): return str.encode(codes[i]) def decoder(str, i): return str.decode(codes[i]) en = encoder('Some string here', 2) print en[/code] | |
Hi, I'm reading a file and trying to write it out with the current date in the file name. But I'm getting an error when trying to run this code[CODE]use D_Db; my $dbh = D_Db::connect('EDW'); my $Curr_dt=D_Dates::get_curr_ccyy_mm_dd({dbh=>$dbh}); my $sth4BobExt=$dbh->prepare("Select * from TableX"); $sth4BobExt->execute(); while ( my @BobExtrow = $sth4BobExt -> … | |
hie i just want to know if someone can give me an exemple of how toreplace a data from a single data in a textfile . i read that i need to use a temporary textfile but i still dont get it thanks by advance | |
[CODE]title = 'Pmw.NoteBook demonstration' # Import Pmw from this directory tree. import sys sys.path[:0] = ['../../..'] import Tkinter import Pmw class Demo: def __init__(self, parent): # Create and pack the NoteBook. notebook = Pmw.NoteBook(parent) notebook.pack(fill = 'both', expand = 1, padx = 10, pady = 10) # Add the "Appearance" … | |
hey! I have some questions regarding exceptions. concerning this code: [CODE]try 15 { 16 cout << " Function throwException throws an exception\n"; 17 throw exception(); // generate exception 18 } // end try 19 catch ( exception & ) // handle exception 20 { 21 cout << " Exception handled … | |
![]() | Hi guys, I need to put stop sign as small icon in the tab. This is my XAML code: [CODE=XAML] <Window x:Class="assignment.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Canvas Height="282" Width="430"> <TabControl Height="271" Background="White" Width="405" Canvas.Left="0" Canvas.Top="0"> <TabItem> <TabItem.Header> <DockPanel> <TextBlock Text="Stop" Margin="2,0,0,0" VerticalAlignment="Center"></TextBlock> </DockPanel> </TabItem.Header> <Canvas > <Path Data="M80,81 L79.5,160.5 … ![]() |
hey there, in Java, I can take a text file and build a two dimensional array out of it. I hope I can do that in PHP as well but I can't seem to be able to do it. these are the specifics of my problem: I have an xml … | |
I am working on a project on online e-commerce website.My requirement is that when a user clicks on "Add to cart" option some queries will be sent to the database and no redirection will take place.how to do this using jsp.(I don't know javascript). | |
Hy , I have a problem with the TableModelListener , my application should print out the cell were the content has been modfied but it does notheing. Here is my code. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; import javax.swing.event.*; /** * * @author Pilu */ public class Afisare … | |
![]() | Hello, i attempting to edit an online payment form to connect to MySQl, i have managed to get everyting working up until the payment page. The problem i am having is sending the cart contents via encrytion to the server. When there is one product, there are no issues. If … ![]() |
Hello, I am trying to program my page so that when a user clicks on a column heading of a gridview, the data is sorted either in ascending or descending order. So far, I have done it so that the gridview can be sorted: [CODE] <asp:GridView ID="GridView1" runat="server" Height="143px" AllowSorting="true" … | |
Hi there, I'm currently working on a small broject which is about providing flexible download service. Basically, I read the info from a csv file and put it in the futurelist, then depending on the length of the file I will put it either in currentlist or delayedlist and after … | |
How can i rename a part from a cell in a data table i have the folowing table id -------------- 35 albumdescription -------------- test 1 name -------------- 001.jpg type -------------- image size -------------- 97182 location -------------- test 1/thumbs/thumb001.jpg location1 -------------- test 1/slides/001.jpg I can change albumdescription and folder with [CODE]if(isset($_POST['change_name_alb_wein'])) … | |
hey there, I am trying to write a simple script that lets me remove lines from a file. I have an elementet.txt file that contains one-word lines. I thought that if I put the file lines onto an array, and then put back the array elements back on file, excluding … | |
I am trying to create a 3D vector and then populate it with values. Firstly I want to create a 3D vector of size 100 with all initial values set to zero. I know that to do this in the 1D case the code would read as follows: [CODE]vector<float> vec … | |
When printing an int to stdout, the %d type is used. Why "d"? The other types (s for string, c for char, f for float) all make mnemonic sense, but I cannot figure out why "d" for int. It's not short for "double" or "decimal" I think. | |
hey ya all.... i have a tab control in a win form app. and the tab control has 3 tabs. in every tab there is a DGV docked in a container's panel, here is the thing. up until now i used the containers click event to load data into the … | |
I have the following HTML in a webpage that I want to mine for data: [code=HTML] <td id="topdisplay" class="menu-item"> <div class="bg"> <a href="/game.php?village=55303&screen=ranking">Ranking</a> <div class="rank"> (4<span class="grey">.</span>120.|2<span class="grey">.</span>124 P) </div> <table class="menu_column" cellspacing="0"> </div> </td> [/code] I want to get the data inside the rank class and get the numbers, … | |
Is this code correct? It is supposed to get input from SMS messaging API and save it to database. Mysql database is created with Table inbox and 2 columns called ID & Msg. I want to know if this code is going to do the job? Else help me in … | |
Hola. so, im making a simple program right now to work on my java skillz, and just for fun in general (im pretty new to java). so, i was wondering, whats the fastest way to find the maximum number in an array of STRINGS. because i tried parsing the ints … | |
I am having problems using the accumulate to find the sum of all elements in a vector. Here is what I have: [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> #include <fstream> #include <istream> #include <string> #include <vector> #include <numeric> using namespace std; int main() { vector<float> energy; for(int i = 0; … | |
Here is what I have so far: [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> #include <fstream> #include <istream> #include <string> #include <vector> using namespace std; class dm_energy_vec { public: vector<float> m_energy_dep; }; int main() { const int phantom_size = 50; int energy_index; vector<float> xpos; vector<float> energy; vector<float> energy_dep (0, phantom_size); vector<dm_energy_vec> … | |
I recently stumbled upon a boost installer (which I think is awesome), here [url]http://www.boostpro.com/download/[/url] and I was wondering if there is anything similar for QT and Visual Studio 2010? On the QT Website I found this page, but no VS2010 installer. Will the 2008 one work ? [url]http://qt.nokia.com/downloads[/url] I suppose … ![]() | |
I'm doing a small GUI program it is that I have two buttons when I press on any of the buttons it displays a dialog box saying which button I pressed .One of the buttons is a text with image displayed on it . my problem is that an exception … | |
hey guys.. i have problem compiling this code.. i am new to c++ by the way. this is my code. [CODE]// Project.cpp : Defines the entry point for the console application. // Doodle Program #include"stdafx.h" #include<iostream> #include<conio.h> #include<random> using namespace std; int main(){ randomize(); cout<<"Doodler! Press I/J/K/M to move, Q … | |
Good day, I am climbing a wall trying to figure out why I can not retrieve the results of a mysql query to a php array. My query polls the database and it is retrieved but all the data is encrypted. I need to take the results and put them … ![]() | |
Hi Why there is a var function when we create classes?? I tried to use a variable with out type var before it and it worked ![]() |
The End.