199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wallet123

Hello! i need to filter the searched data in the database sql and display it on the table. But i keep on getting tis error: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(Unknown Source) at app.SearchByKey.SearchStudentNumber.SearchStudentRecordReader(SearchStudentNumber.java:38) at app.ui.ListOfStudents.updateSearchTable(ListOfStudents.java:159) at app.ui.ListOfStudents$3.keyReleased(ListOfStudents.java:105) at java.awt.Component.processKeyEvent(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) …

Member Avatar for JamesCherrill
0
433
Member Avatar for kosar latif
Member Avatar for pritaeas
0
8K
Member Avatar for Priti_P

Hello, I have done code for scheduling the event in php. As I schedule it, it goes to user's calender as an invitation. If I reschedule it, then new invitation goes with same matter with new values. But I found it is not overwriting the previous one. How can I …

Member Avatar for Priti_P
0
120
Member Avatar for Shigolala22
Member Avatar for java_programmer

I have a question - how mwmory is allocated when any data structure is declared? Suppose I have declared a list as follows - List<Integer> lst = new ArrayList<Integer>(); How many bytes will be allocated for that variable or initially no memory will be allocated? Memory will be allocated when …

Member Avatar for jessicarobort
0
248
Member Avatar for Ahmed.C

Is there a way to get online elements text and display that on to a form label or textbox or w.e? e.g. http://puu.sh/4xWQj.png in that how would i get "iTzSnD" to make it display in the form? same with any other webpage element? how can I get this done?

Member Avatar for Ahmed.C
0
130
Member Avatar for Donima4u

Please help, i get this error when i run my script on my testing server Notice: Undefined index: id in index.php on line 5 Notice: Undefined offset: 1 in index.php on line 8 but on my actual website, it displays a blank page, with the background colour, how do i …

Member Avatar for cereal
0
525
Member Avatar for faisal6621

I want to work on an antivirus software program. But, what should I know first to dig?

Member Avatar for JamesCherrill
0
742
Member Avatar for abinmathews

hey i want to create two *buttons* namely** submit** and **update** button in one page,but i need to knw wheather both the actions of the button can be performed in the same page or in diffrent page,if it is to be performed in diffrent page,how do i do it??

Member Avatar for stultuske
0
271
Member Avatar for codetoeternity

hello dear members, i am a student of bachelors degree in computer science and finally i have to choose and develop a project as my final project. i am planning to replicate a game, like jetpack joyride (as i am seeking a career in game programming). i think i have …

Member Avatar for jwenting
0
3K
Member Avatar for dannybarh

Is the error i get trying to connect to my db. Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2005): Unknown MySQL server host 'http://www.fleethabari.com/' (1) in /home/www/fleethabari.com/inc/config.php on line 2 Unable to select database: Unknown MySQL server host 'http://www.fleethabari.com/' (1) Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in /home/www/fleethabari.com/inc/config.php on line …

Member Avatar for pritaeas
0
678
Member Avatar for J_SON

Heres the scenario : Ive got a struct to represent 5 client nodes in a system, the client nodes send packets to the server node every 2 seconds. A GUI is created to properly display values from the client. The problem im having is representing a client offline on the …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for iTechnnn

My assaigment was: Suppose we are working for an online service that provides a bulletin board for its users. We would like to give our users the option of filtering out profanity. Suppose we consider the words cat, dog and llama to be profane. Write a program that reads a …

Member Avatar for masijade
0
518
Member Avatar for chrisschristou

hello fiend i need help i have create a lot of pages with same methode and work fine on local but never work online i want know if oder way exist when i have data in form and i clic on submit data insert into table and users directly navigate …

Member Avatar for broj1
0
399
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on …

Member Avatar for andrew.mendonca.967
0
728
Member Avatar for NitsPatel

hello, How I can not display Uncategorised category from post when not select any category in Wordpress Thanks in Advance nits**

Member Avatar for NitsPatel
0
299
Member Avatar for bullet_1

I am using following code. It displays date and time for each file in log. But I want it to display only once sw.WriteLine("File Name {0}", file); sw.Write("\r\nLog Entry : "); sw.WriteLine("{0} {1}", DateTime.Now.ToLongTimeString(), DateTime.Now.ToLongDateString()); sw.WriteLine ("-------------------------------"); The output is Log File : File Name D:\DotNet\test\1.txt Log Entry : 12:47:05 …

Member Avatar for bullet_1
0
190
Member Avatar for romy_1
Member Avatar for AK777

Greetings, I am looking for suggestions and feedback about needed bandwidth from a Web hosting company (thinking of VPS or Dedicated) for my websites. Earlier I had asked about how to insert thumbnail (live) images, if possible, of other websites so that users can see a preview (live) of the …

Member Avatar for AK777
0
170
Member Avatar for MBBS

How to set opposite interval of timer control For Example: If timer interval is set to low that progress bar speed is slow If timer interval is high that progress bar speed is high.

Member Avatar for rishif2
0
314
Member Avatar for genetist

Hi to all PERL programmers, I have data like this with 6 columns LINES XY1 XY2 XY3 XY4 XY5 P1 Z/Z T/T -/- T/T T/T P2 A/A A/A G/G Z/Z T/T 1 G/G T/T G/G T/T G/G 2 T/T A/A C/C C/C T/T 3 T/T G/G T/T G/G T/T 4 …

Member Avatar for 2teez
0
161
Member Avatar for boney

Hello, My HTML+JS : <head> <script type="text/javascript"> function passList() { var p=[]; $('input.first').each( function() { if($(this).attr('checked')) { p.push($(this).attr('rel')); } } ); $.ajax( { url:'process.php', type:'POST', data: {list:p}, success: function(res) { $("#result").html(res); } }); } function passType() { var q=[]; $('input.second').each( function() { if($(this).attr('checked')) { q.push($(this).attr('rel')); } } ); $.ajax( { …

Member Avatar for boney
0
225
Member Avatar for gogs85

I have problem with css when use this htacces code RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /index.php?id=$1&page=$2 [L] mode_rewrite work ok but css is not :( How to fix?

Member Avatar for cereal
0
3K
Member Avatar for Petranilla

Hi, Having some issues connecting to MS Access Database. I think its ot connecting to the database. Below are the source codes: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DB extends DBDriver implements ActionListener { JFrame f; JLabel Fname = new JLabel("First Name: "); JLabel Lname = new JLabel("Last …

Member Avatar for Petranilla
0
346
Member Avatar for nitin1

I have a map like this : map<int,map<int,int> > m; in this, I can insert value like a 2-D array. like this, m[i][j]=3; so, now i want to iterate all the values in a particluar row of map. for ex. if m is like this : m["user-id"]["movie-id"], then i want …

Member Avatar for NathanOliver
0
979
Member Avatar for shasta90

What option for cURL needs to be changed in order to retrieve the XML content, as I have added the curlopt option for xml content but all that happens is the JS error of "no data received" <?php $agent = $_SERVER["HTTP_USER_AGENT"]; $timeout = 5; // set to zero for no …

Member Avatar for shasta90
0
410
Member Avatar for lewashby

In the following program the first strpos() function is working just just fine when searching for a matching email address in the text file as long as it's on the first line but the second entry it jumps streight to the else clause and echos "Unknown user name" even though …

Member Avatar for pixelsoul
0
176
Member Avatar for Sallybaks

Suppose you save $100 each month into a savings account with the annual interes rate5%.So, the monthly interest rate is after the first month,the value in the account becomes 100*(1+0.00417)=100.4417 After the second month, the value in the account becomes (100+100.417)*(1+0.00417)=201.252 After the third month ,the valiue in the account …

Member Avatar for Ancient Dragon
0
223
Member Avatar for theashman88

i'm trying to alter a table's column name but i keep getting an error. alter table GelderlandDist change inauguration 'inauguration date'; but i keep getting an error: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the …

Member Avatar for JorgeM
0
194
Member Avatar for lewashby

(Linux) In the following program I'm trying to process the file accounts.txt line by line searching for a match to the form supplied variable '$email'. The function fgets() is stepping though the file line by line correctly but my attempts at using preg_match() and or strpos() to determine if that …

Member Avatar for lewashby
0
159
Member Avatar for vokselbama

how do I write a simple code for the following in visual basic 1 percentage (%) 2 sin , cos, tan

Member Avatar for ddanbe
0
77
Member Avatar for ben25x

Hey guys, I'm using OpenCV to get an image from my webcam and then run it through code. It's supposed to be live feed, and I got this code from an online tutorial (somewhat revised): #include <stdio.h> #include <stdlib.h> #include <opencv/cvaux.h> #include <opencv/highgui.h> //opencv libraries #include <opencv/cxcore.h> CvCapture* camCapture; //opencv …

Member Avatar for ben25x
0
384
Member Avatar for DuroF1

Hello: I am a small business owner with an assortment of 150 items in my store. I do have a mobile domain and yes, it is a mini version of my site !!!! The domain was registered to protect my brand name. I have finally decided I do need an …

Member Avatar for Dani
0
169
Member Avatar for Jugottabe

Hey guys, noob programmer here. Over the last week or so we've been learning about classes and inheritance in my latest progamming class. I've recieved a variation of the ever so popular poker program and am having some problems putting it all together. I haven't had the opportunity to test …

Member Avatar for Jugottabe
0
390
Member Avatar for mark5rockzz_1

I'm afraid to ask this on SO because all I can get is down-vote so I ask it here.* ## **Question:** ## Does C/C++ compiler (e.g the popular "gcc") with OO concepts allocates/creates all data member if other data member are not in use? /************************************* * code for example: * …

Member Avatar for mark5rockzz_1
0
294
Member Avatar for YakuzaJevin

Can someone help me with my codes about the log in using javascript, everytime i log in it opens a new window for the homepage, but i want it to be in the same window, thank you :D <html> <head> <title> Login page </title> </head> <body background="black_background_metal_hole_very_small-wallpaper-2560x1600.jpg"> <h1 style="font-family:Comic Sans …

Member Avatar for YakuzaJevin
0
235
Member Avatar for saurav2007

# /*Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of arr[] except arr[i]. My code is printing garbage value.Pls someone suggest me what is wrong and how can I correct it..Thank …

Member Avatar for parag29081973
0
233
Member Avatar for mdgowhar

#include<iostream> #include<fstream> #include<ctime> #include<cmath> using namespace std; clock_t start, end; double cpu_time_used; int main() { int m,i,j,n,k; double P[150][150], tou1, cx[8],cy[8], U[150][150],V[150][150]; double u,x[150],y[150],dt=1.0, T[150][150],S[150][150],t=0.0; cout<<"enter the units in X x Y"<<endl; cin>>m>>n; class pdf { public: float feq[150][150], f[150][150]; }; pdf f0, f1,f2,f3,f4,f5,f6,f7,f8; // For X for (i=0;i<=m;i++) { …

Member Avatar for mdgowhar
0
177
Member Avatar for infatuate

Hey guys what I'm about to ask isn't for what I really need it for but learning how to use the rand() function in this manner will help me apply it to what I need it for. Lets say I wanted to ask the user for a random integer such …

Member Avatar for deceptikon
0
263
Member Avatar for gtsiga

Hie everyone I have the below code on my console to import data from an excel sheet to a mySql database but unfortunately I am having an error which reads: NO CONNECTION TRYING TO RECONNECT.... ERROR 2005 (HY000): UNKNOWN MYSQL SERVER HOST '(ID,NAME):' (11001) ERROR: Can't connect to the server …

Member Avatar for gtsiga
0
542
Member Avatar for mike89

I'm experiencing a few issues trying to install rpy2-2.3.7 under Cygwin64 on Windows7 using R 3.0.1 and python 2.7 $ python setup.py install finds R version to be 3.0.1 at the beginning of the install, but on line 158 it bombs out for failing to discover the R version. I …

Member Avatar for Gribouillis
0
439
Member Avatar for Louie_Rave

Hello everyone. I'm currently exploring Java's GUI and trying a lot of codes now. I found a game GUI source code on the net. This program uses images to properly run. I can run the program now but it only displays black screen. It already have the folder for the …

Member Avatar for Louie_Rave
0
256
Member Avatar for alex.plouff

needing help with homework - calculator using javascript i need to grab the text from the <input> and use that number in the equation. <script> function runMe(){ var x == document.getElementById('input1').value; document.write(x); } </script> <body> <form> Enter number <input type="text" id="input1" value=""> <input type="submit" onClick="runMe"> </form> </body>

Member Avatar for AndrisP
0
124
Member Avatar for weeraa

I'm bit new to C#. I just want to change the start up form in my project. (This is a windows form application). There is a field named with STARTUP OBJECT and a dropdownlist in Project properties. But my problem is I have created few forms in my project and …

Member Avatar for weeraa
0
246
Member Avatar for weeraa

I want to bind database value to combo box in C# windows form. I know this is a common problem for begginers. I search in the internet about this. Acoording to that I modified my code. But my problem is, it is not raised any error message and data not …

Member Avatar for weeraa
0
240
Member Avatar for weeraa

I want to change form1 textbox1 text from from2 variable. This is the flow. 1. Show form1 2. click button in form1 3. then show form2 (form1 do not hide. It is still visible) 4. click button in form2 (form2 has variable and it set to form1 text box and …

Member Avatar for weeraa
0
293
Member Avatar for kylealb007

package guessinggame; import java.awt.FlowLayout; import java.awt.Color; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JTextField; //create class GuessingGame that extends to JFrame public class GuessingGame extends JFrame { public static void main(String args[]) { //define variables private JLabel instruction1JLabel; private JLabel instruction2JLabel; private JLabel instruction3JLabel; private JLabel …

Member Avatar for JamesCherrill
0
165
Member Avatar for jamil.baig

I'm new to android (and in general) mobile app development. When it comes to setting an event listener to, say, a button, what is the difference between setting it in the xml: `android:onClick="blah"` and setting it in the .java file btn.setOnClickListener(new View.onClickListener) Any particular time when i should use the …

Member Avatar for pspwxp fan
0
320
Member Avatar for techxaidz

Hi i'm a beginner in android mobile development. I have a question regarding sqlite(Android)... Is there a way for me to be able to import text file onto database other than making it hardcoded..? or if there's not, how can i populate my database if i have a string formatted …

Member Avatar for peter_budo
0
190
Member Avatar for Kleon

sorry i am very very new in programming. My question is at switch statemnt if user type different of 1,2 or 3 i dont want to break but i want to start from beginning asking user again to type 1, 2 or 3, i know how to do with goto …

Member Avatar for ddanbe
0
107

The End.