199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for siddiquedu

I choose a program that can read data from a txt file. Now, I input two column from txt file and i want to substract first value of 2nd column to every value of 2nd column. finally I want the sum of substracted values. Can anyone please help me. Actually, …

Member Avatar for siddiquedu
0
253
Member Avatar for loso09

I'm pretty stumped. I need to read a textfile using Streamreader in VB but not reall every single line I have to look for the line that has a specific character in a specific position to indicate that this is a start point, then read that line and the remaining …

Member Avatar for Reverend Jim
0
2K
Member Avatar for emily.webb.9026

Hi All, I am very new to image processing and my requirement is to detect whehter the given large image consist the given subimage (small image) using Java and FAST algorithm. I have found the java lib (jfeaturelib) which support APIs for FAST algorithms and other descriptors etc. Follwing link …

Member Avatar for JamesCherrill
0
745
Member Avatar for PM312

for my combobox i want to prevent user from typing **further text** if the typed text **do not match part** of combobox items i.e from starting Autocomplete mode set to SuggestAppend Autocompletesource set ot Listitems Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress Dim i As …

Member Avatar for Reverend Jim
0
2K
Member Avatar for aslam.junaid786

**Create a class Employee with name, Id and salary as data members. Provide appropriate constructors, set, get and display methods in the class. In the main program, use a do-while loop to enter data for employees as long as the user desires and save all data to a file. Once …

Member Avatar for Schol-R-LEA
0
241
Member Avatar for IT_Techno

When I use the insert function I can see new data at the front end. But I cannot see the new data in Access. Other times when I close the application and restart, new recorded is not there. If I look in Access application and closed it then open VS2010 …

Member Avatar for Momerath
0
188
Member Avatar for McLaren

Hello, there is a function which saves and sends post request: save_car: function(e) { if (e.keyCode != 13) return; if (!this.brand.val()) return; Cars.create({brand: this.brand.val(), color: this.color.val(), max_speed: this.max_speed.val() }); this.brand.val(''); this.color.val(''); this.max_speed.val(''); }, Request URL:http://localhost/backbone/car_list/backend/index.php/welcome/index Request Method:POST Status Code:200 OK Request Headersview source Accept:application/json, text/javascript, */*; q=0.01 Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en,lt;q=0.8,en-US;q=0.6,ru;q=0.4,pl;q=0.2 …

Member Avatar for McLaren
0
256
Member Avatar for zbzHenry

hello, i am trying to save data in my listview item to access database.. i am new to programming and i am currently working on a project i need to submit very soon, this is really urgent and i will be much happy if i could get assisted as soon …

Member Avatar for Dili1234
0
615
Member Avatar for Ariah17

Hey all, Sorry if this is really simple but I couldn't think how to phrase what I'm looking for on google. I've designed a piece of software for a friend for their business. When I learned VB we were always taught how to use it with Access Databases. I've decided …

Member Avatar for Dili1234
0
147
Member Avatar for Rasool Ahmed

Hello guys, I'm using MapViewOfFile to map a file and try to edit its data and save it on the file. The problem I have extra data to the file required to expand its size. So, how to append data to the end of memory mapped file using CreateFileMapping and …

Member Avatar for Rasool Ahmed
0
707
Member Avatar for PF2G

Hi, I'm creating a mentionInput, a textarea where i can identify people writing "@NAME" (like facebook) I have a this js file where i tell the info of the names i can identify: $(function () { $('textarea.mention').mentionsInput({ onDataRequest:function (mode, query, callback) { var data = [ { id:1, name:'Kenneth Auchenberg', …

Member Avatar for LastMitch
0
386
Member Avatar for nicfred

I have to do a project where the imust create a class that draws a crayon and then an applet that draws a box of those crayons. I can get the box to draw, just not the crayons. Help? CLASS import java.awt.*; public class Crayon { private final int BOTTOM …

Member Avatar for pbj.codez
0
276
Member Avatar for Kesarion

Hi, Im trying to connect to a database but it doesn't seem to work. This is the code I'm using: [CODE] #include "stdafx.h" #include <iostream> #include <my_global.h> #include <mysql.h> using namespace std; int main(int argc, char **argv) { MYSQL *conn; conn = mysql_init(NULL); if (conn == NULL) { printf("Error %u: …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for treasure2387

I know that C# is translated to MISL which is run by the CLR into machine code. .Net provides different languages such as VB and F# and C++. Are the different high level languages translated into the same MSIL language? Is there a difference between MSIL of C# and MISL …

Member Avatar for treasure2387
0
156
Member Avatar for showman13

Good Morning, I'v been combing through the net including many links on this site, trying to get the necessary information to make a video play on my webpage. No Luck I've tried multiple pieces of code to embed the video, but in each case I am faced with either a …

Member Avatar for showman13
0
252
Member Avatar for SLMQC

I am trying to create a form that allows a user to enter information and saves information to a file. Every item must be complete and the account balance must not be negative or error messages pop up. I have the form working, but when you click on the clear …

Member Avatar for Reverend Jim
0
263
Member Avatar for zachattack05

There have been a total of 9 different versions of Visual Studio now going all the way back to 1995. My question is for those of you who use Visual Studio, how often have you upgraded your Visual Studio version? Going from 2005 to 2012 for example, not applying updates, …

Member Avatar for zachattack05
0
139
Member Avatar for vishalonne

I have 84 combo box inside 12 group box, in a group of 12. Combo Box are named as cb1,cb2,cb3,cb4,cb5,cb6,...... Group Box are named as gBox1,gBox2,gBox3,gBox4,gBox5,.... Now I want to save the item name in a variable when I select or change item of any combo box. I know that …

Member Avatar for tinstaafl
0
216
Member Avatar for Violet_82

Hi all, I am reading a bit about inheritance, super classes and subclasses. Now when I build a java program I usually have a java file for the class and another one to test the class. I was wondering if I use a superclass and a subclass, should they be …

Member Avatar for Violet_82
0
362
Member Avatar for mith_cool

Hi, I have a scenario where in I had to sort an array, find duplicates and increment one or the other by 1. So, Eg: An array has 22, 23, 21, 21, 24 within it then, an array should be able to find 21 and increment it by 1 i.e. …

Member Avatar for Troy III
0
955
Member Avatar for IT_Techno

i have create windows application using 2007 Access database and i have this code : if (!UserNameTextBox.Text.Trim().Equals("")) { errorProvider1.Clear(); if (!PasswordTextBox.Text.Trim().Equals("")) { errorProvider2.Clear(); if (!RePasswordTextBox.Text.Trim().Equals("")) { errorProvider3.Clear(); OleDbConnection conn = new OleDbConnection(System.Configuration.ConfigurationManager.ConnectionStrings["Lands.Properties.Settings.LandsConnectionString"].ConnectionString); try { conn.Open(); this.usersTableAdapter1.FillUser(landsDataSet.Users, UserNameTextBox.Text.Trim()); if (landsDataSet.Users.Rows.Count > 0) { errorProvider1.SetError(UserNameTextBox, "إسم المستخدم المدخل مستعمل من قبل الرجاء …

Member Avatar for IT_Techno
0
181
Member Avatar for maxpaine69

Hi all, So i was doing globalization with resources, what happened, i tried basica country identification: pt - portugal; pl - poland; es - spain; and so on so on, what happen didnt work and a very big crash, after I put portugal file as language.pt-PT.esrx, and that one worked, …

Member Avatar for maxpaine69
0
223
Member Avatar for jason.bennett.376258

hi There, i have made an AI player for the game Oware, i am looking to improve my programming in order to make my player stronger. can anyone help? here is my code import random #pots = [[1,2,8,4,2,6], [4,4,4,4,3,4]] def ai_player(pots, scoring_pits, turn, valid_moves): """ Input: pots: list of pot …

Member Avatar for gusano79
0
619
Member Avatar for SLMQC

I am trying to create a form that allows the user to search (Access database) for a record by last name or customer number. It can be a partial last name or customer number. The SQL statement and code are below. This is the same method used successfully for a …

Member Avatar for G_Waddell
0
268
Member Avatar for jameslivsey

Hi, I'm having trouble writing a stored procedure in MS SQL SERVER. I have a table with 3 columns - REFERENCE, ID and AMOUNT. What I'm trying to do is SUM the AMOUNT based on different ID's for each REFERENCE. So it would be something like SUM(TBL.AMOUNT) WHERE ID IN …

Member Avatar for gusano79
0
204
Member Avatar for arunpawar

Hi, I am trying to create a simple form submission using php and mysql. I am stuck at very basic level of mysql and php code. Here is what i am trying to do. 1. index page where name and email data is shown. 2. add-data.php page where i am …

Member Avatar for arunpawar
0
218
Member Avatar for nao.chungs

I made this code: INSERT into author(authorfirstname1, authorlastname1,authorfirstname2, authorlastname2) select '".addslashes($_POST['authorfirstname1'])."','".addslashes($_POST['authorlastname1'])."','".addslashes($_POST['authorfirstname2'])."','".addslashes($_POST['authorlastname2'])."' from author where not exists(select authorfirstname1, authorlastname1, authorfirstname2, authorlastname2 from author where author.authorfirstname1='".addslashes($_POST['authorfirstname1'])."' and author.authorlastname1='".addslashes($_POST['authorlastname1'])."' and author.authorfirstname2='".addslashes($_POST['authorfirstname2'])."' and author.authorlastname2='".addslashes($_POST['authorlastname2'])."' ); The point of this code should be that it checks, if a value allready exists in database and if …

Member Avatar for nao.chungs
0
219
Member Avatar for Mr.M

Hi DW Well I'm new in java I'm using Visual Basic the most so now I just decided to cross platforms and start doing java, so there is a project that I'm trying to create in jave (I'm sorry for the namings just in case I don't use the right …

Member Avatar for JamesCherrill
0
319
Member Avatar for zachattack05

I am attempting to replicate the grid you see below taken from a popular accounting software program. I'm not after the title bar or any of the other controls, just a data grid view that behaves like the one shown, kinda like a check register. Does anyone know if this …

Member Avatar for zachattack05
0
267
Member Avatar for aps1003

I'm getting some error when compiling this code, could any one help me understand how to make primatives members of the iterator? template <class Type> void perfectShuffle(linkedListType<Type>& list) { linkedListIterator<int> tmp1; // Use for the topHalf of the list linkedListIterator<int> tmp2; // Use for the lowerHalf of the list int …

Member Avatar for ybkumar77
0
105
Member Avatar for jiecerbo31

I have a label that I would like to update with the current operation being done in a button's click event. Sample code: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 'Process 1.... lblProcess.Text = "Now processing process1" 'Process 2.... lblProcess.Text = "Now processing process2" 'Process …

Member Avatar for Mr.M
0
390
Member Avatar for riteshsingh_22

I'm new to session management so can anyone tell me ,How to store multiple values selected from gridview into session. and retrieving that values stored in session in another page.. any suggestions r appreciated..pls help..

Member Avatar for annaharris
0
342
Member Avatar for NyQii

Hey Guys! ive been stuggling with this for a while I Have a Datagrid and a few comboboxes the one combobox should populate the Grid when an Item is selected I debugged my code , and it seemd that all the correct data is being pulled through but i keep …

Member Avatar for annaharris
0
163
Member Avatar for manoj_582033

Friends, I am Developing a Windows Application For Lan, I am able to Scaning Pc's Name Which Are Connected on My Lan on Same Workgroup, But I have Problem That If Sudden I Get Lost Connection With any Client Pc, or Client Pc Become Shut Down So it Should Make …

Member Avatar for manoj_582033
0
131
Member Avatar for riahc3

Hello I have this similar code: var SomeVar = Class.create({ one: null, two: null, three: null, initialize: function(one, two) { this.one = one; this.two = two; }, startListeners: function() { $j('#somediv1').mousedown(function(e) { this.three=3; three="hi" }.bind(this)); $j('#somediv2').mousedown(function(e) { console.log(this.three); console.log(three); }.bind(this)); }, }); As you see there are more can one …

Member Avatar for riahc3
0
288
Member Avatar for shilu2

If I have dropdownlist as below <select onChange="this.value;"> <option value="Volvo" id="volvo">Volvo</option> <option value="Saab" id="saab">Saab</option> <option value="VW" id="vw">VW</option> <option id="audi" value="Audi" selected>Audi</option> </select> I want to display discription of item selectd so I have below code <div id="boxpopup" class="box"> <a onClick="closeOffersDialog('boxpopup');" class="boxclose"></a> <div id="content"> This is popupbox of Audi </div><!--end of …

Member Avatar for broj1
0
208
Member Avatar for manaila

I hava a simple Java application which uses the `ProcessBuilder` and `Process` classes to execute **cmd** commands. The commands just load a window. Now the problem is when the window is closed, the process remains running. Below is the code snippet I have used: try { ProcessBuilder pb = new …

Member Avatar for stultuske
0
147
Member Avatar for mjsmitten

If I have a array: $myarray = array("10"=>"apple", "20"=>"banana", etc..) up to 15 values. and I use $_GET['category'] to get my value from url for instance "10" How do I echo $myarray to be "apple"?

Member Avatar for paulkd
0
175
Member Avatar for BenWard

Hello, Whilst writing this I actually fixed the issue but I thought I'd post anyway as this technique might be useful to others... I have a javascript class I wrote (alas I can't post the whole code as the IP technically belongs to the company I work for) which presents …

Member Avatar for BenWard
0
401
Member Avatar for amkaos

Hi: i have contact form that i thought the validation (.js + php) worked fine because i received emails that were only submitted w/ all fields correctly filled in. i added submission to mysql database, then found out that empty fields were being submitted to database -- but not email.. …

Member Avatar for minitauros
0
563
Member Avatar for jencinas69

Is it possible to display a text box next to a cfselect upon selection in the cfselect. If someone selects an option from the dropdown I need a date type field to be display. Is this possible perhaps with coldfuision and ajax?

Member Avatar for paulkd
0
217
Member Avatar for blackcathacker

Yeah, basically I'm asking if anyone could either walk me through a solution of a problem, or if it would be easier to simply do it themselves. I'm "taking" a C class, and would love it if I could get pointed in the right direction with a certain problem. All …

Member Avatar for ddanbe
0
506
Member Avatar for mjsmitten

My url's are similar like this: website/search/category,Room/region,Oregon/ website/search/category,Room/ website/search/category,Room/city,Palm Bay/ website/search/city,Palm Bay/ website/search/region,Florida/ It always contains single or combination of CATEGORY CITY REGION I want to echo in an if statement, for example: if url contains "category,xxx" then echo "category is xxx". (xxx can be anything) I found this code: …

Member Avatar for diafol
0
394
Member Avatar for Bibek_NS

Can anyone pls help me with how to create a Progress Bar by using JavaScript methods like setInterval() ?

Member Avatar for radhakrishna.p
0
400
Member Avatar for Black_Lion

protected void Button1_Click(object sender, EventArgs e) { ClearTextBoxes(this); } public void ClearTextBoxes(Control control) { foreach (Control c in control.Controls) { if (c is TextBox) { ((TextBox)c).Text = " "; } } Hi all. I am writing a program using Microsoft Visual Web Developer. I have 3 textboxes (TextBox1, TextBox2 and …

Member Avatar for annaharris
0
190
Member Avatar for coder91

I have a page that allows you to insert a new item or update an existing item. I am using a formview for it, I have custom validation in place for the insert to check that the item number isn't already stored in the database, if it is a panel …

Member Avatar for annaharris
0
244
Member Avatar for coder91

I have a gridview that stores information about items - a number and a name, I have a custom validator set agains t to check the number doesn't already exist in the database to prevent duplication. protected void CustomValTBCodeServerValidate(object source, ServerValidateEventArgs args) { TextBox newCode = (TextBox)fvCode.FindControl("TbCode"); String XCode = …

Member Avatar for annaharris
0
139
Member Avatar for M.Waqas Aslam

hello ! i want to disable my usb port using c# or vb.net ,is it possible to do so using .net ? if yes then any idea how i can do this ? Regards

Member Avatar for PriyaVijay
0
530
Member Avatar for kelvnese

:) hi everybody, im newer in asp.net. today, im trying to bind my data to the Nivo Slider by the Data List. The code is like this: [CODE]<div class="slideshow"> <div id="slider" class="nivoSlider"> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [SLIDEIMAGE]"></asp:SqlDataSource> <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <ItemStyle /> <ItemTemplate> <img …

Member Avatar for shanky007
0
231
Member Avatar for php.coder

how can i get a token that a user has requested if he/she clicks cancel NOTE the user doesnt have to input anything if cancel is clicked that particular token is deleted from the d.b and the user is redirected to index.php i really dont know where and how to …

Member Avatar for LastMitch
0
135

The End.