199,114 Archived Topics
Remove Filter ![]() | |
Hey, I have some background with db creation and have done lot's of work creating and programming with RDBs. I am currently working on a huge website and I am curious about cost/benifits of using a json array vs a relational table. My gut says I should be using a … | |
An application that I am making uses a web browser object to watch videos from YouTube (From an embedded link like [url="http://www.youtube.com/v/fregObNcHC8"]this[/url], not a regular link). The problem is that when the user clicks anywhere in the web browser object, it screws up some other aspects of the application. How … | |
Why does this work [CODE] for myfile in `find . -name "R*VER" -mtime +1` do SHELLVAR=`grep ^err $myfile || echo "No error"` ECHO $SHELLVAR done[/CODE] and outputs [CODE] No error err ->BIST Login Fail 3922 err No error err ->IR Remote Key 1 3310 err [/CODE] But this does not … | |
![]() | Hey there everyone! I have an issue with a script with which I had sweated much, and I can't suspend it even if I find another solution for what I want. What I want would be the following: A script that creates a full backup of a directory and all … |
[CODE]public class duplicate { public static void main(String[] args)throws IOException { System.out.println("Enter words separated by spaces ('.' to quit):"); Set<String> s = new HashSet<String>(); Scanner input = new Scanner(System.in); while (true) { String token = input.next(); if (".".equals(token)) break; if (!s.add(token)) System.out.println("Duplicate detected: " + token); } System.out.println(s.size() + " … | |
Hi everyone I have an application which hooks to notepad and records the keyboard strokes, this works fine only when i have an notepad open before executing my application. Once the appl is running and then i open notepad my appl doesnt work. My ques is suppose i have first … | |
I have to open and read a file whos file name is provided through a command line argument. Right now, I am using the following method. My main: [CODE]#include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #include "functions.h" int main(int argc, char *argv[]) { int count, string_size; int other = … | |
It will not add Inventory to the program. It prints out zeroes for the list. Please someone help me make this work [CODE]#include<iostream> #include<string> #include<iomanip> #include<fstream> using namespace std; struct Inventory { long Inventory_N; float Price; char Inventory_Name[50]; }; void menu (ifstream&, ofstream& , Inventory L[], int); void loadInventory(ifstream&, Inventory … | |
HI, I am parsing a log file that contains several thousand lines of logs. Each entry in the log ends with the Line Feed character \n. However some of the lines have an embedded 'CR'character in. My parser should ignore those and not treat text following the CR character as … | |
Hi Guys, I'm kinda new at this..but I need help cause I keep on getting this error and I don't know what's wrong with it. So Please Help Me. Thanks. Here's My Code: [CODE]#include <iostream> using namespace std; int addition (int,int,int,int,int, int); int addition (int a, int b, int j, … | |
Need help with this. Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\pixels\index.php on line 35 [code] <?php include_once ("config.php"); ?> <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <link rel=StyleSheet type="text/css" href="main.css" > </head> <body class="main"> <div class="outer"> … | |
Dear friends I have a query regarding VB.NET....Whenever we type any code on the code page not on the design page all the controls that appear on the screen for eg:- if I type "Textbox." different options is available on screen in a drop down list like "Equals,Fromchild handle.formequals...etc.etc" or … | |
:D Hello everyone, I am making a program where the user types in a string and then the string is saved to the clipboard, but I am not quite sure how. I have had a look at [url]http://www.cplusplus.com/forum/beginner/33250/[/url] but I am not quite sure how to implement this. I would … | |
[CODE]private void getPreviousButtonActionPerformed(java.awt.event.ActionEvent evt) { List<Tweet> listOfTweets = remoteBean.getMoreTweets(5); StringBuilder displayStringBuilder = new StringBuilder(); if(listOfTweets != null) { for (Tweet tweet : listOfTweet) { displayStringBuilder.append(tweet.toString() + "\n"); } textArea.setText(displayStringBuilder.toString()); } } [/CODE] As it stands when i run the code that this method is in and enter a number of … | |
Hi, Borland C++ 5.5 isn't working.:@ Test file [B]Hello.c [/B][CODE]#include <stdio.h> int main(void) { printf("Hello world!\n"); return 0; }[/CODE] [B]Output :[/B] C:\Users\Administrator\Documents>bcc32 Hello.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland Hello.c: Error E2209 Hello.c 1: Unable to open include file 'stdio.h' Warning W8065 Hello.c 5: Call to … | |
whats wrong with this code??? the vb always tell that items is not a member? [CODE]Imports MySql.Data.MySqlClient Public Class search Public conn As New MySqlConnection Private Sub search_load(ByVal server As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If conn.State = ConnectionState.Closed Then conn.ConnectionString = "SERVER = localhost; USERID = root; … | |
Hi, I have done some code to write to Excel from a String Array of 3 items. These 3 items are written to columns 1, 2, 17 or 3, 4, 17, depending on the value of the 3rd item in the array. For certain Excel files, this is taking too … | |
I need some help setting up the following full php script a well as DB available on request, 46 pages in text format. Basic requirements: These 2 files needs the export to pdf function [url]http://www.lifestyle-solutions.biz/jeanadmin/print-[/url] program.php?idprgramdet=40 [url]http://www.lifestyle-solutions.biz/trainers/print-[/url] program.php?idprgramdet=40 Basic requirements: 1) 2 exercises per page (exercise plus progress report block) … | |
I'm in desperate need of pointers :( I have this problem. [CODE]private class frmMenu private intX as integer Private Sub btnEstimate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEstimate.Click frmEstimateMenu.Show(intX) end sub end class private class frmEstimate private y as integer Public Overloads Sub Show(ByRef x As integer) y=x … | |
Hello, In CFQUERY operations, can someone advise as to the following: 1. What data types REQUIRE single quotes for UPDATE and INSERT statements? * We are using MS SQL 2008 R2 with CF9 2. Is it best practice to use CFQUERYPARAM for EVERY statement now days? I searched everywhere but … | |
I'm newbie in java, can you help me to this code. the image needs to move diagonally [CODE]public void actionPerformed(ActionEvent e) { x += 3; if (x > 600) { y = random.nextInt(600); x = random.nextInt(-45); star.setX(x); star.setY(y); }[/CODE] | |
Hi all. I have a dynamically generated HTML page using PHP. I create my PHP variables and then have them in line with my HTML like so: [CODE] <tr> <td align="right">Restaurant Subtotal</td> <td align="right"><strong><? $subTotal = getSubTotal(); echo money($subTotal);?></strong></td> </tr> [/CODE] I have a need to send the generated HTML … | |
How can I pass multiple values from a JSP to a servlet using an hyperlink. Following is my code [CODE]<div style="width:500px;height:20px;border:2px solid blue; padding-top:25px; padding-left:40px; padding-right:20px; padding-bottom:10px;"> <jsp:include page = "/Alphabet.jsp"/> </div> <a href = "cart.jsp"><img src="shopping_cart.jpeg" width=50 Height=75 alt="Shopping Cart" border="0" style="float:right;"></a> <%@ page import="com.classes.chemical.*, java.util.ArrayList" %> <td width … | |
Hi all the problem lies with the createJSON function for some reason it is breaking no idea why though. please advise... [CODE]<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css"> <title>User Details</title> <script type="text/javascript"> function validateForm(){ var x=document.forms["myForm"]["username"].value if (x==null || x=="") { alert("username must be filled … | |
Hi, I am trying to call a simple fortran subroutine from a C++ interface and in turn call this C++ function from a C# application. Here is the fortran subroutine : [CODE]program hello_world2 implicit none c call hello call hello end subroutine hello !DEC$ ATTRIBUTES DLLEXPORT :: hello implicit none … | |
Hi I would like to know how to create a MySQL statement with Count(*) and natural join. I have a table named iphead and another table named even. iphead has a number of IP addresses and I would like to count the total number using count(*). Next, the even table … | |
I have a uload script that saves PDFs to the DB, and i have another page, where I want to read the PDF file, but the latter is not really happening.. AM I DEFINING MY PDF_DIR CORRECT: [CODE] define('PDFS_DIR', $_SERVER['DOCUMENT_ROOT'] .'includes/pdfs'); [/CODE] This is the read_pdf.php file: [CODE] <?php require_once("includes/config.php"); … | |
This is code for an internal forum, it works on my local server, but not the godaddy one i just purchased! phpinfo()s posted below: [CODE]<?php // forum.php :: Foro interno del juego.Version 1.0 define('INSIDE' , true); define('INSTALL' , false); require_once dirname(__FILE__) .'/common.php'; /* Este foro esta basado en el PHPBBs … | |
So, i am trying to have an explosion when the asteroid and house collides. And i think i have the code written down, but something might me be missing. Please help me figure this out. Thanks a lot. [CODE]# Fresh Start # Classes: House; Asteroid; Explosion from livewires import games … | |
[CODE=c]# include<stdio.h> # include<string.h> # include<stdlib.h> int main(int argc, char **argv){ // Declare Variables char barcode[50]; int count; long long intBarcode; long countryCode; int dig0, dig1, dig2, dig3, dig4, dig5; int dig6, dig7, dig8, dig9, dig10, dig11; long long num; long rem, sum; int checksum; long long manufac, product, language, … | |
i found error in the following code.... [CODE]import java.sql.*; import java.util.*; class search { public static void main(String args[]) throws Exception { Connection con=null; ResultSet rs=null; Statement st=null; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:oracle","user","vinay"); String s="select *from student where roll=?"; st=con.prepareStatement(s); rs=st.executeQuery(); Scanner inp=new Scanner(System.in); System.out.println("Enter roll to search"); int r=inp.nextInt(); st.setInt(1,r); while (rs.next()) … | |
Hello. I've posted here a few weeks ago about an idea i was hammering. I've refined it and removed some unnecessary features as it wasn't really needed. I'm a last year computer science student and this idea is for my graduation project. It is about a new programming language for … | |
good day all.. While I am compiling a vb6 project, the error highlighted this: format(date,"YYYYMM") Can anyone help me? Thank u very much.. | |
hi, my file say ll.out having data like 12.0 , -25.30, 0,0,....etc i want to store data in a variable one by one say var=12.0 now i want to compare this value with zero.if var !=0 then want to store those values into a array. here i want to assign … | |
Please help me!! I am new to C++ Here is a program helped me little bit. -------------------------------------------------------------------------- [code=cplusplus] #include <iostream> #include <fstream> using namespace std; main () { int filename; cout << "Enter file name"; cin >> filename; ofstream myfile; myfile.open ("filename.txt"); myfile << "Writing this to a file.\n"; myfile … | |
I want to create a patient appointment schedule desktop app with an oracle database. Basically its going to be 2 computers with the app and one of them is going to have the database service running. Ok so my question is... should i do it in eclipse or netbeans? am … | |
![]() | I have written this small test script: [CODE]<html> <body> <?php if ($_POST['amount']) { foreach ($_POST as $key => $in) { echo $key; echo "="; echo $in; echo "<br />"; } exit ('</body></html>'); } ?> Form output: <form id='transfer' method='POST' action='transfer.php'> <input type='hidden' name='touser' value="inge"> <input type='hidden' name='amount' value="1000"> <input type='hidden' … |
Good Day Everyone.. i have two tables..how to read from one table1 to table2.. example.. Table1 with thousand over records various types of recurrance and due pattern. where ID = History_ID Table 1 ID Reccurance Duepattern 1 Monthly 10 2 Yearly 25 3 Monthly 15 4 Weekly 5 yearly 14 … | |
hi guys havent been here for a while , im a fairly competent vb.net programer but have a problem think im just missing something ,im working on a fairly big project but im gonna keep this question small and simple . if i have 2 forms amd one module the … | |
Hi, i am having problem uploading. [B]1.[/B] [CODE]<html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form> </body> </html> [/CODE] [B]2. [/B][CODE]<?php if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo … | |
How to replace text from (abc) to (cba) in vb.net Example: [CODE]here is text (abc)random text here(cba)[/CODE] | |
Hii friends the object browser in visual studio contains many controls and properties ....so is it possible to remember in mind all these controls. Whenever i am programming in vb 2008 and for reference i look at the examples on internet i always find some new controls,properties etc which makes … | |
Is it possible to use #ifdef with Boolean AND and OR? For instance something like [CODE]#ifdef WIN32 || WIN64 cout << "This is Windows." << endl; #endif[/CODE] The above doesn't give a compiler error for me, although it doesn't evaluate the or condition. | |
Dear friends: I want to draw the sparse matrix sturucture to a file. The attachment shows an example. Could you please suggest me some methods to achieve this goal. Regards. Your Sincerely | |
Hi All, I am seeing that there is no way to retrieve more than 1 image from a mysql table? I have googled it, looked into 10's of websites.. no solution. How can i simply retrieve many pictures from a table,with the other columns if possible, please? and i also … | |
Hi all, I'm working on a C++ app that needs to communicate with a server. I was wondering if it would be possible to use Java for the Server, and C++ for the Client. I'm assuming it should work (without the use of JNI) because TCP packets are TCP packets, … | |
In need some help with this little programming .. I just got 3 errors .. :'( [code=c]#include <stdio.h> int main (void) { char A , B , C , D , E , F; int id1[ ]; float grade[ ]; float marks[ ]; float average; float num1, kk=0; /********* Jami, … | |
Good Day Everyone.. since i have two tables..how to read from one table1 to table2.. example..Table1 with thousand over records various types of recurrance and due pattern [CODE]table1 ID Reccurance Duepattern 1 Monthly 10 2 Yearly 25 3 Monthly 15 4 Weekly [/CODE] output must b like this in table2 … | |
I have a Database that stores a residentID, apartment, MoveInDate, and MoveOutDate. I am trying to run a query from this database to find the resident row where the MoveOutDate is NULL so I can enter the date they moved out. My Coldfusion is not the best and here is … | |
hello all I hope there someone to help ,to point what mistake i have done ,thank you the error message is ex.Message = "Incorrect decimal value: '4000000,00' for column 'Jumlah' at row 1" denny My code always automatically add ",00" at the end of decimal jmldec (only if ccstr=="id-ID") here … |
The End.