199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wfray

This is confusing. I'm creating an index for a MySql table of structure "yyyymm", where "yyyy" is year (e.g. 2011) and "mm" is month (e.g. 02). I acquire them with: [CODE]$yyyy = date('Y', time()); $mm = date('m', time());[/CODE] I subsequently convert them to strings with strval and concatenate them (I've …

Member Avatar for wfray
0
136
Member Avatar for Dani

I currently use Sphinx search, and am attempting to sort my results in time segments mode, which means time segments in descending order and then relevance in descending order. Currently I use SPH_SORT_RELEVANCE, and it works fine. But every time I switch to time segments mode, it returns zero results. …

Member Avatar for Dani
0
214
Member Avatar for Pokenerd

Hi Guys, Right now I'm building an application that draws images to the screen. What I would like is to be able to 'cut' portions of those images away (this is going to always be a circle). This is the code I'm using. Is it possible to make a clipping …

Member Avatar for Pokenerd
0
164
Member Avatar for coolbeanbob

I'm trying to create a program in Java that I have in C++. In my C++ file, I have main the main method outside of any classes. Eclipse does not seem to like this. Is this not possible in Java? Do I need to put main in a class? import …

Member Avatar for jon.kiparsky
0
154
Member Avatar for magikkar2nd

Hi i get "illegal start of expression" compiling error ZMOD.java:1295: illegal start of expression for (int j = 0; j < paramArrayOfgz.length; j++) localArrayList.add(paramArrayOfgz[j] = = paramArrayOfgz[j]); ^ 1 error Press any key to continue . . . the whole code is this [CODE] import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; …

Member Avatar for jon.kiparsky
0
589
Member Avatar for theweirdone

Hi, I'm pretty new to CakePHP, and have been managing so far. I've created a scraper that scrapes TV.com for episode information (episode number, airdate, title, description). The scraper works fine, and returns an array such as: [CODE]Array ( [0] => Array ( [name] => Stowaway [number] => 17 [description] …

Member Avatar for jkon
0
326
Member Avatar for Josef01

I have a remove button like i would like to delete just sigle selected row from both datagridview and the actual database.the problem I am having is in deleting selected row.if i dont use the parameter the contents of the table gets deleted ,i dont have any primery key just …

Member Avatar for Josef01
0
194
Member Avatar for hmnetonline

I am having problems with the code below. It is writen in C# on .Net 3.5. The actual code is much more lengthy, but I copied what should be important. The error I keep generating in VS is "An object reference is required for the non-static field, method, or property" …

Member Avatar for Momerath
0
609
Member Avatar for intes77

hello im having problems on how to make a column sorter for my JTable. i want to make a sorter for each column. but i dont know what to do. any advices will be glady accepted :) i've seen other tables that their column headers can be clicked to sort …

Member Avatar for mKorbel
0
1K
Member Avatar for ethio

Hello, Im trying to store 4 rows of delimited text from a text file( abc, abc, abc, abc abc, abc... ... ...) into an array and loop each line of the array and print it, but its not going well. [code] <? $file1 = "properties.txt"; $filedata = fopen($file1,"r"); $array1 = …

Member Avatar for diafol
0
113
Member Avatar for Awesumlewy

Hello, I am currently trying to improve my programming skills and I just can’t get my simple program to work correctly. Here’s the problem: I have managed to allow a user to input 10 numbers then when they insert these 10 numbers, the sum and average is displayed, simple! Then …

Member Avatar for richieking
0
173
Member Avatar for VP2

Hello! I've got a little problem... I want to make a program which puts 10 random character, but the characters should NOT be digits. [CODE]#include <ctime> #include <stdio> #include <iostream> using namespace std; int main() { time_t t; time(&t); srand(t); int i,c; char ch; printf("Generating 10 random characters...\n"); for(i=1;i<=10;i++) { …

Member Avatar for WaltP
0
155
Member Avatar for cms271828

Hi, I have a project that uses 'basicplayer', a mp3 player. I can get it to work when it runs in netbeans 6.9.1, but when I build project (into jar file in dist folder), it no longer runs. I need to get the jar files that I added to project …

Member Avatar for cms271828
0
246
Member Avatar for Forthright

Hi I am trying to call a 3rd party method which relies on const char* I want to pass an arbitrary value. The (broken) code below should show what I'm trying to do. [CODE] #include <iostream> #define MAX 1000 // 3rd party stuff void ConstPtrMethod(const char* s) { std::cout << …

Member Avatar for Forthright
0
346
Member Avatar for Pinchanzee

I'm having trouble with some basic AJAX, I'm very new to it but have found a similar chunk of javascript that I've altered to my needs (kind of). I have a <div> that I want to change upon the click of a link. It contains a list of entries, ordered …

Member Avatar for Pinchanzee
0
180
Member Avatar for mbarandao

Good day all: I need to search my db table for all services called "oil change" which where inserted 85 days ago (based on an inserted date column in the table) and display those results. Here's what I have: Mysql Table id (auto) servicearea carid customerid dateofservice An example of …

Member Avatar for mbarandao
0
2K
Member Avatar for nats01282

Hello i am trying to create a script that will allow for the user to click a link and pop up page opens up with the content from the same page e.g [CODE] <?php $option = $_GET['option']; ?> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function topWindow(){ popup = window.open("page1.php?option=<?php echo $option; ?>","scrollbars=no"); …

Member Avatar for diafol
0
382
Member Avatar for ReaperUser101

Hi everyone Im trying to take my SQl and "SCRIPT" it to a .sql file(accomplished) and add it to my Delphi(accomplished) and then [U]connect them[/U] and show the data in a TDBGrid but seem to be battling. The .sql file adds and creates the Database in delphi but I don't …

Member Avatar for pritaeas
0
248
Member Avatar for RaigaX9

Hello, I'm having another problem with assembly. I'm writing a Fibonacci sequence in assembly and I think I got all my stuff set up, but after I try to convert from .m to .s using gm4, I'm getting this here: NONE:0: gm4: ERROR: EOF in argument list Can anyone tell …

0
113
Member Avatar for Jaseem Ahmed

i have a project, where i have a menu, in which option Customer info, where all the basic information of customer is stored...and blow there is another menu, whre Asset Servey is menu, now i have a text box in wch customer with its code is shown, now i want …

Member Avatar for AndreRet
0
82
Member Avatar for carlitosway17

Hi Am working on s shape inheritance hierarchy project where we are supposed to define 2d or 3d shapes then use a few examples e.g circles or spheres to calculate areas and volumes of the 2d and 3d shapes respectively. Everything is working fine it compiles and builds successfully but …

Member Avatar for quuba
0
240
Member Avatar for zangetsuu

when i run the program it skips the Int Tax(); function an i tried changing it to void an taking out return 0; but its still not working [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> char vehicle[5]; int car; int truck; int hrsn; //Hour the vehicle entered …

Member Avatar for zangetsuu
0
181
Member Avatar for doomfrawen

Hello friends, hope this is the right site to post this, anyway let me tell you what's my problem. I'm building a site that uses php, javascript where necessary and AJAX, my problem is that i need to set a cookie (the cookie works perfectly), but i need it to …

Member Avatar for jkon
0
207
Member Avatar for zacblazic

Hey guys, My lecturer told me that when I have solved a problem, I should always look for ways to improve it. I was wondering if it is okay to post my code here and ask the community to comment and tell me if it can be improved, but I …

Member Avatar for anilashanbhag
0
121
Member Avatar for Taimoor Rana

Hello Guys, Im Using GridbagLayout as LayoutManager, but I am not able to place my button at top-right of my frame. I'm also attaching my current output and what i actually want to do. here's my code: [CODE]package projectilemotion; /** * * @author Taimoor */ import javax.swing.*; import java.awt.*; public …

Member Avatar for mKorbel
0
129
Member Avatar for dyla123

Hi i am looking for a chat for my webpage, doesnt have to be anything special just a basic chat where members can talk. I need it to be secure too so only members can chat on it and not random guests. Even if you don't have a code, a …

Member Avatar for anilashanbhag
0
101
Member Avatar for dav555

I try to transmit an OpenCV IplImage from a Server (Ubuntu x64) to a Client (Win7 x64) The following code works fine if both (Client and Server) are on the same operating system. But when the server is on Ubuntu and the client on Win7 it doesn't work. The image …

Member Avatar for dav555
0
427
Member Avatar for stefh

Hi there, my name is Stéphane, i'm french and a beginner with Python... I've registered on a french forum about Python to ask a question regarding an issue i have with a code, but it seems the members of this forum are not active. I paste the message i posted …

Member Avatar for stefh
0
666
Member Avatar for brianjoe

Hi people :) I'm in the process of developing a website where there is going to be music on. (Dont worry, the users that will come to the website already know that there will be music - it's the point of the website). But I'm thinking that it would be …

Member Avatar for RoyalElite96
0
349
Member Avatar for micmo

Hi Guys, I have two forms (Main and Sub). There will only ever be one instance of Main, but can be many open windows of the Sub form. What I want to do is know which Sub form was the last form to have focus when switching to the Main …

Member Avatar for zachattack05
0
10K
Member Avatar for bangla

Hi, i have the below code for form. At one time, when i went to my page i saw some data/link in my site. i guess a hacker entered some script in data field. someone pls help me how i can protect my page. ------------------- <form name="myForm" action="gdform.php" method="post"> <input …

Member Avatar for diafol
0
84
Member Avatar for AutoPython

I'm creating a program and I need the class 'Child' in the following code to inherit the value of 'age' from the class 'Mother'. [CODE] #include <iostream> using namespace std; class Mother { public: int TellAge(void); protected: int age; } MObj; class Child:protected Mother { public: void ChildTellAge(void); } CObj; …

Member Avatar for AutoPython
0
136
Member Avatar for Acute

Following code: [CODE=php] <?php $test_array = array(); $test_array['string_index'] = "data in string index"; $test_array[] = "data in index 0"; $test_array[] = "data in index 1"; $test_array[] = "data in index 2"; foreach($test_array as $key => $val) { if($key != 'string_index') { echo $val."<br>"; } } ?> [/CODE] gives result: data …

Member Avatar for jkon
0
94
Member Avatar for andy.apple

Hi, I want to sum up all values within a vector of doubles, let say [4.5 8 5 90 24 32 58 1.8 17 25]. The sum is 265.3 which isnt to difficult. But when using the accumulate function I get 264!? [CODE] #include <iostream> #include <math.h> #include <vector> #include …

Member Avatar for andy.apple
0
141
Member Avatar for Behseini

Hi Guys, I am trying to create a re-sizable windows that when ever a user click a button a groupBox appear at windows ,eventually the Height of the form will increase and when the user want to hide the groupbox the windows will back t its regular size. I have …

Member Avatar for Behseini
0
119
Member Avatar for varia

Hi, everyone, First of all, I wasn't sure where to put this tread so I apologize if it is in the wrong place... I am developing a web application using jsp, java and Tomcat, so I figured this is as good place as any... I am in need of help. …

Member Avatar for varia
0
188
Member Avatar for Vertana

I've been racking my brain over this for a few days now. I'm attempting to write a program in Python 3.1 / PyQt 4.7.5 that will open a Powerpoint, go through every shape on every slide, determine if it is a picture and then save that picture to the specified …

Member Avatar for Vertana
0
1K
Member Avatar for kiko11

[code=text]jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/Users/Kix/Desktop/IMPORTANT DOCS/oop/BANKSYSTEM/Accounts.mdb;DriverID=22;READONLY=false} Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at banksystem.BankDBDriver.retrieveData(BankDBDriver.java:200) at banksystem.BankSystem.actionPerformed(BankSystem.java:109) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6267) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6032) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) …

Member Avatar for mKorbel
0
307
Member Avatar for samsambm

Hello , I'm trying to set 3 different tables using url variable from a differnt page. When a certain var is selected , the page should display a certain table. each table is differed by name and im using an IF statement. My issue is that only the first echo'd …

Member Avatar for samsambm
0
156
Member Avatar for CanaznFTW

This is my first post and I'm sort of new to programming and figured joining this forum to try and get some help. So please excuse me if I happen to miss something. Task: - Create a cylinder specified by my program with the radius and height - Which will …

Member Avatar for CanaznFTW
0
4K
Member Avatar for Urban48

hello! I'm developing a software to monitor communication to different locations. the principle is simple: send ping every second and display the results in real time (ms delay, packet loss etc) It's also important to mention that I'm running the software from Linux, so in order to ping from my …

0
115
Member Avatar for Wraithmanilian

This code is for a stand-alone file, named "thumbnail.php" or something similar. Once uploaded to your server, it can be called from inside an IMG tag. There are four options for this script without modifying anything. [LIST=1] [*]First, you can resize the image to a percentage of the original, as …

Member Avatar for Web Dev Rob
0
379
Member Avatar for Gribouillis

This snippet defines a function [icode]a2bits[/icode] which converts a characters string to a string of 0's and 1's showing its bitwise representation.

Member Avatar for Gribouillis
0
2K
Member Avatar for andylbh

Hi guys, I'm trying to do a client server socket program, where the client writes a list of numbers for the server to compute, and then finally server returns a result. I've managed to get my functions working the way I want (not in client/server) But I've problem implementing it …

Member Avatar for gerard4143
0
2K
Member Avatar for Phaelax

I thought "JTree. setRootVisible(false)" would hide the root yet display its children, but it doesn't. I've even tried to expand its children but nothing shows when I hide the root. Here's the code if you need to see it. [code=java] DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Root"); JTree projectTree = new JTree(rootNode); …

Member Avatar for villadsen
0
5K
Member Avatar for FBG

Hi, On my website I have a group of tables (about 40). I want visitors to be able to search all these (identical) tables at the same time. Right now I'm using MATCH and UNION to do a FULL INDEX search on all tables. The problem is that this method …

Member Avatar for FBG
0
148
Member Avatar for Quintia

Hello there im new to php and for some reason im having trouble with the String variables, every time i change the $light variable it doesn't = the supposed String and just always echo's "stop". [CODE]<html> <head> <title> Conditional Statement Practice </title> </head> <body> <?php extract($_GET); /* Put your PHP …

Member Avatar for diafol
0
94
Member Avatar for netclick

Wondering if anyone is able to help me locate a specific set of templates. I saw them on the net and I lost the link. Now I want to buy them. They are great designs and are about 5 of them in the following categories (from memory): Web Design Web …

Member Avatar for diafol
0
115
Member Avatar for DJ_4375

Hi there guys really hoping for some help after searching Google for a stupidly long amount time and coming up blank. I am using Crystal Reports 10, Asp.net 1.1, SQL Server and Visual Studio 2003 with VB. I have an Image field in the database that I need to retrieve …

0
206
Member Avatar for AngelicOne

I read that there are two ways of doing this: using WIA SDK and avicap32.dll. This is the first time I worked on an API that utilize a webcam. It seems that there are no official ways of using a webcam in .NET. Could someone give a link for a …

Member Avatar for AngelicOne
0
101

The End.