64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for opawix

how can i integrate the codes to make it loop infinte sir/ma'am? i'am a total newbiew, thanks in advance. :D <script langauage="javascript"> col=255; function fade () { document.getElementById("fade").style.color="rgb("+ col + "," + col + "," + col + ")"; col-=5; if(col>0) setTimeout('fade()',25);} </script>

Member Avatar for JorgeM
0
122
Member Avatar for meenal9

I am confused "HOW to make a series of numbers in reverse orDer In java" I got the basic idea but i cannot join them together ...in this program compUtter Will identify weather input is binary or decimal .i am unable to make computer identify numbers in.please help wit Java …

Member Avatar for meenal9
0
288
Member Avatar for shahai.ali

hi i have the following problem after importing databse in c#. i have import a mdf database in C#. but it has exception after pressing `F5` for debugging. `A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. …

Member Avatar for shahai.ali
0
94
Member Avatar for simplypixie

My brain is not functioning! I am trying to select a number of random images (lets say 3) from a selection of folders within one other folder and I am either over complicating the code or am missing something as I can't quite get it to work. What I have …

Member Avatar for simplypixie
0
709
Member Avatar for javaprog200

Hello, I have a class (Buttons.java) which inherits from JButton and implements the ActionListener interface. The second file (ButtonsTest.java) creates a GridLayout of Buttons and adds them to the applet. The issue I am having is when I click on any of these buttons, the event is not registered. I …

Member Avatar for JamesCherrill
0
268
Member Avatar for tony75

Hi I would like to write program that calculate the sum of all integers from a minimum number up to the maximum number.by using the following formula? sum = 1/2 * number of integer * (minimum numbers + maximum number) How can I do it?

Member Avatar for rotten69
0
544
Member Avatar for Prysm[VA]

Alright guys, I've been looking at this on google and I can't seem to find an answer. Any help is definitely appreciated! Here is the code, then I will explain my problem. void printMenu() { cout<<"||============================||"<<endl; cout<<"||=========Main Menu==========||"<<endl; cout<<"||===1.Begin DNA Creation"; cout<<"||===2.Load the Files"; if(!dna1[].strand1){ cout<<"<0>";} else{ cout<<"<"<<sizeof(dna1.strand1)<<">";} cout<<endl; cout<<"=========||"<<endl; …

Member Avatar for Prysm[VA]
0
460
Member Avatar for hwoarang69

i hava a col in database called "features" and its type "text". some where in my website page i have a textarea. where user can list features. here is a ex: lets say below is a text area and user is entering features. at end of line is enter <textarea …

Member Avatar for urtrivedi
0
151
Member Avatar for xanawa

Hi i am using views in order to join 3 tables return (from p in this.Entities.priceTypes join userType in this.Entities.userTypes on p.userType equals userType.userTypeID // join product in this.Entities.products on p.product equals product.productID select new CommonDB.Views.PriceTypeView() { ProductName = p.product, Price=p.price, }); I managed to join two tables but i …

Member Avatar for mwatson81
0
311
Member Avatar for Darth Vader

Hello, I wonder if there is any faster method to find an index of an occurence within a string? The .IndexOf method in the below test, takes approx: 1050 milliseconds. Why this is interesting is that I have code that uses .IndexOf on perheps 100 places and have loops that …

Member Avatar for mwatson81
0
275
Member Avatar for rony001

I am not a programmer just learning. I would like to know how to save the scheme info into a table ? I have this sql statement that seems to work but how do i save the info into a table Dim CmdStr As String = " SELECT TABLE_NAME FROM …

Member Avatar for rony001
0
94
Member Avatar for rony001

how to create a pop up form for each row in datagridview that holds detailed info about that particular row of a column ? I want a editable pop up form with two text boxes and sum of both text boxes in the selected cell of the column . i …

Member Avatar for rony001
0
2K
Member Avatar for Helianthus

Hi All, I have just started building a program that will allow a user to select a plant from a dropdown list and then click a button to view detail related to the selected plant in another form. I would like to be able to read from a sequential access …

Member Avatar for Reverend Jim
0
161
Member Avatar for Violet_82

Hi I am having problems running and compiling a program with more than one class, but I am not sure how to do it in netbean, it keeps complaining. I have the 2 following files called respectively Account.java public class Account { String name; String address; double balance; } and …

Member Avatar for Violet_82
0
300
Member Avatar for Violet_82

Hi all, I have recently built a website using wordpress and I have noticed that wordpress adds some classes to my html tags automatically. I asked for support in their forum, but nobody got back to me, so I was hoping somebody could she some light on this? SO I …

Member Avatar for Violet_82
0
243
Member Avatar for JohnMcPherson

I am working on a program in Pro*C that uses fscanf to read a CSV file. This is a naive CSV file, with no commas allowed in the strings, and it is packed, with no whitespace between the fields. I read in a header record, which has some important information, …

Member Avatar for deceptikon
0
957
Member Avatar for hwoarang69

is there a way to use real link in include? bc the code below doesnt work. it say cant use http. login.php <?php include("http://localhost/E_COMMERCE/INCLUDE/header.php"); ... ?> --------------------------------------------------------------------- header.php ... <link rel='stylesheet' type='text/css' href='css/main.css' /> ... ------------------------------------------------------------------------------- another way in login.php, i can do this code below. but the problem is …

Member Avatar for hwoarang69
0
157
Member Avatar for janguyo

Hi guyz , PHP newbie and this piece is givin me a hard time please Help, have indicated the source of the error with a comment <?php ob_start(); include("dataaccess.php"); ?> <?php $strAction = "list"; $num = ""; $strTable = ""; $strkey = ""; if(!empty($_POST)) { if (trim($strTable) == "" ) …

Member Avatar for pritaeas
0
187
Member Avatar for albertkao

How to display text string with Javascript on screen? This is my test page: [CODE]<html> test <script type="text/javascript"> docwrite(1); document.write('hi'); docwrite('hello'); </script> docwrite(2); <script type="text/javascript"> function docwrite(x) { document.write(x); } </script> </html> [/CODE] I saw only "test docwrite(2);". I want to see "test 1 hi hello docwrite(2);" with " 1 …

Member Avatar for priakant
0
3K
Member Avatar for arcticman452

I have 2 JComboBoxes that are using an itemListener, right now the code I have compiles but when I call for tankSize and fuelCost to complete my calculations nothing is returned and my answer is always zero. What do I need to change so the variables transfer to tankSize and …

Member Avatar for arcticman452
0
133
Member Avatar for joshmac

I am getting the error message "Invalid argument supplied for foreach()". I can't see to figure out what. Below is my query. Is there something I'm missing? Thanks public function editRole($id) { $q = $this->_db->query("SELECT * FROM `" . TP . "roles` WHERE `ID` = '" . floatval($id) . "' …

Member Avatar for pritaeas
0
200
Member Avatar for ChrisHunter

Now then, It's not often I start a thread but I'm struggling to find the answer after a lot of tries on Google. The issue is that I have a "Profession" comboBoxCell as well as a "Discipline" comboBoxCell which is populated/ repopulated with a short list of disciplines dependent on …

Member Avatar for james6754
0
2K
Member Avatar for showman13

I was having issues getting this working 2 years ago and through posting in here, got it resolved... Now I have another related question to the same rewrite code... I haven't ever run into this issue til now, so didn't realize it existed... I need the rewrite rule to be …

Member Avatar for showman13
0
167
Member Avatar for amith_ami

hi all.... please help me..... i want to download the files from server using php code. any help tnx in advnc........

Member Avatar for picassokaka
0
6K
Member Avatar for Lynne Good

I have registered new custom post types and used this filter to add to my blog homepage add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query()) $query->set( 'post_type', array( 'post', 'kicksimage3', 'kicksimage5', 'kicksvideo', 'kicksstatus' ) ); return $query; } Now that it is showing on …

Member Avatar for picassokaka
0
427
Member Avatar for tingwong

Hi everyone, I have a project that creates a Train that pulls Boxcars. The boxcar is supposed to be generic type and have attributes such as load that adds only a specific type of object to the boxcar. The train is supposed to pull all boxcars created. I have written …

Member Avatar for JamesCherrill
0
340
Member Avatar for yorro

My [B]first column does not align to center[/B], although the sub-columns aligns perfectly [CODE=vb] Listview1.Columns.Add("Column1", 100, HorizontalAlignment.Center) Listview1.Columns.Add("Column2", 100, HorizontalAlignment.Center) Listview1.Columns.Add("Column3", 100, HorizontalAlignment.Center) [/CODE]

Member Avatar for ImZick
0
1K
Member Avatar for joshmo

hello. I would like to know how I can make out a Java code from a given mathematical equation like differentiation equations, summation and integration

Member Avatar for JamesCherrill
1
1K
Member Avatar for mbarandao

Hello all: I have the following mysql query statement: SELECT COUNT(*) as ttl_rows FROM (SELECT DISTINCT(date(timeentry)) AS day, COUNT(*) AS total FROM history where MONTH(CAST(timeentry as date)) = MONTH(NOW()) AND YEAR(CAST(timeentry as date)) = YEAR(NOW()) GROUP BY DATE_FORMAT(timeentry, '%d') ASC) as ttl_row the statement performs a search for all records …

Member Avatar for mbarandao
0
460
Member Avatar for utchia

hi i have been working on my project to create a store and i have to add items and sell items, and once i add items i store them into a textfile separated by commas, and i made the add item button work perfectly but i am having trouble with …

Member Avatar for Majestics
0
580
Member Avatar for london-G

Hello, I am going to build a program using one data structure, I am trying to figure out what are the advantages of using a sorted array over using a hashtable with chaining? Thanks

Member Avatar for rubberman
0
972
Member Avatar for subrata_ushasi

Hi , I have a form having some text fileds and submit button. One more input box and submit button . If a value is entered in input box and button pressed then that will search data from database and displayed in text boxes ,is done . Now I want …

Member Avatar for subrata_ushasi
0
268
Member Avatar for ponnu

L1.ListItems.Clear Dim li1 As ListItem Set li1 = LV1.ListItems.Add() While Not (rs.EOF) li1.Text = rs(0) rs.MoveNext Wend rs.Close

Member Avatar for ImZick
0
170
Member Avatar for f_atencia

I have an ASP page written in JavaScript that writes a CSV file into a database table. while (!oFile.AtEndOfStream) { var s = oFile.ReadLine(); var sArr = s.split(","); var sPostcode = String(sArr[0]).replace(re, ""); var sSuburb = String(sArr[1]).replace(re, ""); ...stored procedure to write into database... } It works fine for smaller …

Member Avatar for f_atencia
0
154
Member Avatar for Stuugie

Hi all, This is going to be difficult for me to describe but I'm going to give it a go! I have tables called tblCPI, tblCPI_Staging, & tblVSeriesList. Please see the diagram. ![Diagram](/attachments/large/3/Diagram.JPG "Diagram") Right now I am using SSIS 2008 to get data from Statistics Canada and load the …

Member Avatar for Stuugie
0
233
Member Avatar for daino

Heyall. I'm trying to use the sqlite3_exec function and am having trouble with the callback feature. I've placed my code below. I realise the callback function provides and argument void *data and the sqlite3_exec function provides a const char *data variable. That is where I'm getting the error. I've searched …

Member Avatar for Ancient Dragon
0
823
Member Avatar for dcdruck

I noticed something today about Arrays in JavaScript that struck me as a bit odd. I imagine there is an easy explanation that will make perfect sense when I hear it, but until then I thought I would ask the community. If I use an Array as the sole component …

Member Avatar for dcdruck
0
141
Member Avatar for marnun

It seems I don't understand completely reading from and into files, line by line. Here is my code that is supposed to read lines of two file, into string variables, I assume, and then write them into third file: *line of first file line of second file .... so on …

Member Avatar for marnun
0
280
Member Avatar for sheikh zohaib

hey all i am new to all this languages and Computer sciences so if you help me i am trying to write a code and its constantly giving me errors here is the code at line 10 , 102 , 115 tell me how to fix it.. waiting... #include<iostream.h> void …

Member Avatar for sheikh zohaib
0
179
Member Avatar for stharmon

Hi All, I am sed and awk illiterate and needed some assistance. I would like to write a script that will have sed replace all spaces with \space. For example. Program Files would be... Program\ Files I can figure out how to replace the space with a backslash, however, when …

Member Avatar for wickedjargon
0
233
Member Avatar for pilotkid424

I am trying to create a function which adds an array to another array and replaces the data in the 1st array with the new data. For example, A=A+B. However, when I write my code as below, I get the error C2676:binary '[' : 'const Matrix' does not define this …

Member Avatar for pilotkid424
0
226
Member Avatar for rachelmorg

hey this sounds like a really simple question to me but I can't seem to figure out how to do it! My code so far is public class numbers { public static void main(String[] args) { final int N = (args.length); for (int i = 0; i < N; i++) …

Member Avatar for rachelmorg
0
3K
Member Avatar for pars99

Is it possible to have a piece of C++ code display a picture and how? I want to display something for my Uncle's employees at a conference were holding with them and I don't know how to display pictures, if there is a way.

Member Avatar for deceptikon
0
202
Member Avatar for arcticman452

My program compiles but when I fun it I cannot get the city from the JComboBox to show in my JOptionPane. It shows up as "null" and when I click the clear button, nothing happens. I'm not sure how to fix these two problems. Here is my code: import java.io.*; …

Member Avatar for radhakrishna.p
0
162
Member Avatar for venkyb47

I was created a table with <table> tag and id is 'calendarid'. In this each td contains a textbox and an image. Some textboxes contain value and some are empty. I want to hide the image where textbox contains no value(or empty).I have used following java script code to do …

Member Avatar for venkyb47
0
145
Member Avatar for dancks

This is based on advise given ina previous thread I posted awhile ago for protecting data. I tried the following: <?php function base_encode($text) { $size = strlen($text); $str=""; for($i=0;$i<$size;$i++) { $str=$str.slide_left(substr($text,0,1),4); $text=substr($text,-1); } return $str; } function base_decode($text) { $size = strlen($text); $str=""; for($i=0;$i<$size;$i++) { $str=$str.slide_right(substr($text,0,1),4); $text=substr($text,-1); } return $str; …

Member Avatar for pritaeas
0
201
Member Avatar for CHOCHOCHO
Member Avatar for hasan101002

why the code is not running? #include<iostream> #include<string.h> using namespace std; class person { char name[20]; float age; public: person(char *s,float a) { strcpy(name,s); age=a; } person & person::greater(person &x) { if(x.age>=age) return x; else return *this; } void display(void) { cout<<"Name:"<<name<<"\n"<<"Age:"<<age<<"\n"; } int main() { person P1("John",37.50),P2("Ahmed",29.0),P3("Hebber",40.25); person P('\0',o); …

Member Avatar for hasan101002
0
405
Member Avatar for jcomputing

I have a contact form on my site when I click send I get the following errors: can anyone help please. Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:25 (Connection refused) in /home/jholmes6/public_html/contact/contactpage/sendmail.php on line 102 Warning: fgets(): supplied argument is not a valid stream resource in /home/jholmes6/public_html/contact/contactpage/sendmail.php on line …

Member Avatar for jalpesh_007
0
410
Member Avatar for myk45

Hello All, i am trying to tidy-up some code and i'm not completely sure how this can be done. What i have is this: (This is some sort of psuedocode that i just wrote to explain the problem, not proper code) void foo1(typeofList1 list1) { for (i = 0; i …

Member Avatar for myk45
0
192

The End.