199,114 Archived Topics
Remove Filter ![]() | |
Hey guys, I'm trying to create another shell script that does the following, but I am not sure where to start. Any help would be greatly appreciated! •Reads student name, address, city, and email and phone number from the keyboard with meaningful headings for each of them on separate lines. … | |
Basically what I want to do is add a prefix (input by the user) to be added on a chosen word by the user. Is that posible? I got stuck and don't know what to do.... Here's what I have so far. [CODE]// The "Prototype" class. import java.awt.*; import hsa.Console; … | |
My joomla site is showing this error on line 205 and 219. [CODE]<?php /** * @version $Id: debug.php 14401 2010-01-26 14:10:00Z louis $ * @package Joomla * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This … | |
Guys i wanted to connect Java Application with MySql database.I have written a Java Programme.I have already created the database also.But it doesn't connect with the Database.This is my code.[CODE]import java.sql.*; public class check { public static void main (String[] args) { Connection conn = null; try { String userName … | |
Hi, I have inserted a facebook like button into my page. And I want to edit content that appears on the clicker's facebook wall. How can I modify it? | |
I just started learning mysql (today) and I figured out how to insert data into a table and how I am learning how to echo the data. Here is what I have so far: [CODE]$email = mysql_query("SELECT * FROM mail") or die (mysql_error()); $row = mysql_fetch_array($email); echo $row['email'];[/CODE] This does … | |
I want to parse XML and change the contents of the XML Which one should I choose? boost::spirit or boost::serialization Thanks a lot | |
My question is about looping skill overall. I am having problems with loops. Is there any book/tutorial/website about this particular skill in java programming to help me learn how to loop in correct/effective way ? I know how to write simple loops, I know structures of loops too. When I … | |
I have used the Process.start function to open an Excel file as shown in the code Process.Start("report.xlsx") and it works perfectly well. My question is can this function be used to open a particular worksheet called Report1 in the report.xlsx file. If so what would the code be. I have … | |
Hello I want to make a GUI, and for it I need to use absolute positioning, since I want each element to have a precise position within my frame. I am making each element that makes up the frame by extending JPanels, so I'm building each block within the window … | |
Hi I have a login 'box' up in the top right hand corner of my web page. When someone logs in i want this to disappear and show a message and logout link. I have got this so far, but i cant seem to get it to work. Login form … | |
i have two array of chars of size 12 each having only 0's or 1's. what i am trying to do is that in for loop [CODE]for(i=0;i<12;i++) { int a=1starray[i]; int b=2ndarray[i]; int c=a^b }[/CODE] but every time c gets 0 only. iam not getting it why. can anybody help … | |
Hi everyone, First off - I'm very new to Java so please be gentle. I'm having some problems with an assignment from school: [B]Input[/B] The input starts with an integer k indicating the number of words in the text (max 1000), followed by k words. [B]Output[/B] The output will consist … | |
Having issues creating table using chain hashing (linked nodes). The program compiles, but is crashing during execution. I admit I don't really know what I'm doing since I havent really used inked lists in forever. A lot of this code I do not expect to work right away, such as … | |
Hi, Am using Visual studio 2005 with MS Access. I have a Datagridview with a date column in format 11/23/2011(Month/Date/Year). Now i want to know how 'search criteria based on particular month and date'. For Example if select 'Nov' as a month from combobox and click on search button, only … | |
Hi I am trying to populate a text area based on a value submitted through a drop down box. Below is the code i have written to populate that text area. But i cannot seem to get it to work. All it shows is blank. [CODE] <?php if (!empty($_SESSION['LoggedIn']) && … | |
hi, i was wondering if any you guys knew of a simple way to sync from an access database offline to a mysql online database? currently my system is running on php/mysql. there is another company who have a system that uses an access database behind it. i can access … | |
Hi Guys, I am trying to make a text box that will accept a password from user.The password should be masked while typing. [CODE]def MyFunc2(self,event): box2=wx.TextEntryDialog(None,"Enter Password","PASSWORD","Waiting",style=wx.TE_PASSWORD) if box2.ShowModal()==wx.ID_OK: global pwd1 pwd1=box2.GetValue()[/CODE] The code is a piece of a program . The above code when run , shows the text … | |
Hi, I am developing a VB net application with lots of TextBox. I need to call a module everytime any of the textbox gets focus. I dont want to write code in every textbox gotfocus event, but a generic code which will call the module everytime any textbox gets focus. … | |
Hey guys. Im trying to open a file the user entered. [CODE] cout<<"Please enter the file name"; cin>>name; cout<<"Do you want to open the file? [yes] or [no]"<<endl; cin>>pick; if(pick=="yes") system("C:\\wmplayer.exe [COLOR="Green"]fname[/COLOR]"); else cout<<"Good bye"; [/CODE] How do i get the value thats in fname to be printed their so … | |
If I click on div first time it show alert and if i again click on div it will not show any alert box | |
Im trying to open a file. The user enters the name of the file they want to open example [CODE] string fname; string pick; cin>>fname; cout<<"Do you want to open the file?"; cin>>pick; if(pick=="yes") system("wmplayer.exe [COLOR="Green"]fname[/COLOR]"); else cout<<"Thanks for your time; [/CODE] Can someone show me how the replace the … | |
I can add nodes to my JTree, but after expanding a node, I can not add any child nodes to that node, or at least they dont show on the screen? Actually I can use the .add(new DefaultMutableTreeNode("Label")); to add a node to a parent node, but the new child … | |
Hi I just started learning programming and tried some looping with file management. I am not sure how to join the string after looping can someone give me some pointers how can i go about doing it? Thanks! This is my code [CODE] import string testFile = open("test.txt", "r").readlines() for … | |
[code] class robot_generic { public : template<typename Request, typename Response> bool const queryDriver(Request const &req, Response &res) { //some jobs, blah blah blah } template<typename Request, typename Response> bool const queryMoney(Request const &req, Response &res) { //some jobs, blah blah blah } }; class robot_A : public robot_generic { public … | |
Hi I have a function which either updates or inserts a record into the database table, depending on what the user selects. However I need to manually refresh the page after the action has been done, as the status is not updating on the page. How can I force a … | |
[CODE]Module Module1 Sub Main() System.Console.Writeline{"this is my program"} System.Console.ReadLine{} End Sub End Module[/CODE] this is my code am getting an error saying that Error 1 Expression expected. Error 2 Method arguments must be enclosed in parentheses. Error 3 Expression expected. Error 4 Method arguments must be enclosed in parentheses. | |
[CODE]<img src="/images/skip/en.png" alt="Skip" height="39" id="skip">[/CODE] I tried this code: [CODE] Dim theElementCollection As HtmlElementCollection = Bot.Document.GetElementsByTagName("img") For Each curElement As HtmlElement In theElementCollection Dim controlName As String = curElement.GetAttribute("name").ToString controlName = "skip" curElement.InvokeMember("click")[/CODE] So pretty much I need to click the image to pass to the next page. | |
I need help with a lab I'm doing. In this lab you have to show the number of odd digits a number has, for example the number 4135 would have three odd digits. I've already done a lab where it tells you if a number is odd or even but … | |
Hi everyone, If there are multiple hyperlinks in a webpage, How do I recognize them using java script. Also How do I store the content of the hyperlink in a variable , so that the data stored in the variable will be used the query a database and populate results … | |
Hi, I am pretty new to php. I am trying to get a result from a database display as a link with php tags in it. however I am getting this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' on line 53 I don't know what it's … | |
I ve a mask text box. mask is 00 00 00 00 format. my requiement is ,the box should accepts hexa decimal value too... my expect format look like 0A 0C 0a 0f...pls help me..thanks in advance.. | |
Dear Experts, Thanks in advance for helping me out. I am new to C# as well asp.net. I have already running appllication asp.net , needs to change in asp file with C# code. Scenario: My application is using third party software "activepdf server,webgrabber" to convert and print to pdf. BUT … | |
I'm trying to write this program that'll generate 10 random values in a given range, store these numbers in a .txt file, and then read these numbers from the same file and display them on the screen with equivalent words. I've got to the part where im trying to read … | |
All, I am reading in a text file into my program. I have managed to do the following 1. Split first line of the text file up based on the position of the commas and put them into an array. I.E [CODE] StreamReader reader = new StreamReader("shopping.txt"); string line = … | |
Initially I was to design this simple program to have a file be read in and store 50 numbers in array1, and the last 50 numbers in array2, then calculate a total (array1 + array2) and store it in array3. But I need to change this program to utilize the … | |
Have a interesting problem. I make a little ajax mechanism to get info from php file and add a function for delete the data. phpfile.php: [CODE] <?php if(isset($_POST['bu'])){ $data = 'text<a onclick="something();" href="#">alert</a>'; echo $data; } ?> [/CODE] js file: [CODE] function getdatafromfile(){ var bu = 'bu'; $.ajax({ type: 'POST', … | |
I have my two JTextFields identified in a GridLayout, but when I try to reformat them the stay as large as their positioning allows. I have tried to specify the size of the field but it never changes on the final product. Could this be because the GridLayout or something … | |
Hello, I have a set of assembly instructions that I am trying to assemble with nasm and execute however I am receiving errors and i am not sure why. The result of executing these instructions should print out a sting. Any help would be much appreciated. [CODE]xor eax,eax push eax … | |
How to submit content of textarea when clicked on Share Div? [CODE] <div class="status"> <textarea class="input" name="status" id="content" > So whats on your mind? </textarea> </div> <div class="button_outside" id="share"> <div class="button_inside">Share</div> </div> [/CODE] ![]() | |
Hello. I am new to php but not to c++; I'm trying to use a submit button to run some html divs and some gui. here is an example of this , very basic. [CODE] $hourglass1 = strip_tags($_POST['hourglass1']); if($hourglass1){ echo" MY DIV CONTAINERS"; } [/CODE] The problem is when i … ![]() | |
hello guys grade book *write a program that will calculate the average of an unknown number of students. *your program should validate the grades to be between 0 and 100. *there are 5 grades to be entered and averaged . *the program should enter the grades using a for loop … | |
I have a program in which tells me the highest number and the lowest number. ( i am using a loop for the highest and lowest) I need to get the second highest and second lowest. without an array i was wondering if i could find that within the same … | |
I have this method that gets me groups from AD: [CODE]public ArrayList GetUserGroups(string sUserName) { ArrayList myItems = new ArrayList(); UserPrincipal oUserPrincipal = GetUser(sUserName); PrincipalSearchResult<Principal> oPrincipalSearchResult = oUserPrincipal.GetGroups(); foreach (Principal oResult in oPrincipalSearchResult) { myItems.Add(oResult.Name); } return myItems; }[/CODE] But when I go to use it: [CODE]protected void AuthenticateAndLoadUserProfile() { … | |
I want to write 1 extension method,it's purpose is convert 1 IEnumerable<T> to 1 ObservableCollection<T>, but i've error : [COLOR="Red"]Error 5 The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?)[/COLOR] Here is my code : Code: [CODE=CS]using System; using … | |
How to create reports in core java like visual basic 6.0 report | |
Hello, I wrote a hangman game but it won't output what the user entered. At the beginning the display array is filled with underscores and as the user enters letters it is supposed to get updated with their input, but it isn't updating. Can someone please tell me what I'm … | |
Hello, I am a novice programmer and I was given the following task: write a Payroll class that uses the following arrays as fields : employeeId (holds 7 integers that are initialized, I placed them in my code below), hours and payRate (both are doubles and hold 7 numbers). I … ![]() | |
[CODE][/CODE]I was having trouble wording my title. I'll try my best to describe my problem. I'm a SQL newbie, so go easy on me.. I'm trying to match records that "doesn't exist" between two relational tables. For instance, if I have two tables. [CODE]Table 1: Client_ID Client_Name Table 2: Purchase_ID … ![]() | |
This is my first post so be easy on me please. Im using a INI parser to read and write to an ini file. When reading the ini file I have certain parameters set to 1 or 0, which need to be stored to a checkbox variable. Heres a peice … |
The End.