199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rjdelight

I'm trying to display some text in a JTextArea I have set up in a simple GUI. Easy right? That's what I thought, but I'm clearly not that advanced at Java. The hook is the information I want to display in the JTextArea is in a text file (file.txt). Right …

Member Avatar for mKorbel
0
1K
Member Avatar for i love my vans

Hey Everyone! ( <-- First Post, Wow) Well i want use a URL variable like this... [PHP]www.site.co.uk/index.php?page="about"[/PHP] With me so far? Ok. Now when the user enters the index.php page, i want specific content loaded into a preset table, in the case above it would be the about page, but …

Member Avatar for rekhasuresh
0
762
Member Avatar for gogs85
Member Avatar for gogs85
0
674
Member Avatar for magnetpest2k5

Hello, I have been using the python dictionary to create a multidimensional array. I recently stumbled upon the numpy module's array which creates a multidimensional list. Can we store string variables in this array module? or is there other ways in python to create a multidimensional list? Thanks

Member Avatar for vegaseat
0
2K
Member Avatar for CrazyMisho

Hello ,I have one problem making one simple program(actually I am new in this language). So I have two webbrowsers.How I can every New Window that is opened in webbrowser1 to be opened in webbrowser2 instead? Thanks in advance

Member Avatar for Momerath
0
97
Member Avatar for xanawa

hi, I downloaded a solution of a ribbon menu tool and used it by adding an existing project in my original solution. When i opened my solution on another computer the ribbon menu tool gives an error that The project file cannot be nfound and the solution is unavialable. What …

Member Avatar for xanawa
0
83
Member Avatar for san man
Member Avatar for rubberman
0
2K
Member Avatar for TheSassyDragon

Trying to understand two dimensional vector and was wondering if anyone could help me out on a sorting code for this so that it numbers 0-9 people, gets x number with each of them and then outputs the person (number) ate x pancakes - But in descending or ascending order. …

Member Avatar for TheSassyDragon
0
156
Member Avatar for moose333

Hello I am currently stuck on trying to collect some string items from a richtextbox and then count how many items there are. I then want to relocate one of the string items if there are more than three into another richtextbox. I currently have been attempting to capture the …

Member Avatar for moose333
0
246
Member Avatar for stan_l

I have read that OO supplies it's own python and uno.py [for 3.3 under ..\basis\program] - but there are ways to incorporate it into your current version such that a script can issue [COLOR="Green"]import uno[/COLOR] w/out issue. I have tried scripts that supposedly permit this and tried to work through …

Member Avatar for stan_l
0
147
Member Avatar for Mark_48

The dictionary part isnt working. can anybody help?? [CODE] string path = @"C:\1\"; string[] file1_Lines = File.ReadAllLines(path + @"TraceSet.csv"); string file2 = File.ReadAllText(path + @"SBoxOutput.csv"); string[] file2_Lines = file2.Split(new string[]{"\r\n"}, StringSplitOptions.RemoveEmptyEntries); //creating 2 lists for average values of file1 and file2: List<float> averageFile1 = new List<float>(); List<float> averageFile2 = new …

Member Avatar for Mitja Bonca
0
159
Member Avatar for ak24

Hello... I'm learning win32 api programming, and I can't figure out how the vsprintf (va_list, va_start, va_end) function works in the following code: [CODE]/*----------------------------------------------------- SCRNSIZE.C -- Displays screen size in a message box (c) Charles Petzold, 1998 -----------------------------------------------------*/ #include <windows.h> #include <tchar.h> #include <stdio.h> int CDECL MessageBoxPrintf (TCHAR * szCaption, …

Member Avatar for ak24
0
276
Member Avatar for Trebron

I have a text box which I search SQL server which returns to values based on the text I pass the SP and then I want to add to the list box items so here is my code below the DataTable contains the item I want to return in the …

Member Avatar for Trebron
0
152
Member Avatar for boot-baby-boot

Hi,i am looking for a light relational database server with the ability to recover after a crash.I am not looking for sqlite or any other single file db system.

Member Avatar for boot-baby-boot
0
164
Member Avatar for dalip_007

hey guys I have a string containing email addresses like "ceo@facekut.com" <ceo@facekut.com>,"Rahul Mahajan" <creative.rahul007@gmail.com>......... Now is there a way in php to remove all the things between quotes "..." and make this look like below? <ceo@facekut.com>,<creative.rahul007@gmail.com>......... or [email]ceo@facekut.com[/email] ,creative.rahul007@gmail.com......... I would be very thankful if anyone has answer. Thanks

Member Avatar for dalip_007
0
167
Member Avatar for gulbano

Hey All, Can any one tell me how two remove duplicate records from a table?

Member Avatar for debasisdas
0
78
Member Avatar for youvi

please clear the syntax error... [CODE] $locker_query ="update tbl_locker set locker_title='".$locker_title."',headline_text='".$locker_headline."',introductory_text='".$locker_intro_text."',popup_delay='". $locker_delay ."',repopup_frequency='".$locker_frequency."',forced_completion='".$locker_force_offer."',email_id='".$locker_email."',created_date=now(),guid='" . md5(time()). "' where locker_id='".20."'"; [/CODE] Thanks

Member Avatar for diafol
0
86
Member Avatar for C#mark

I have a batch file that sets JAVA_HOME, PATH and CLASSPATH and calls a jar file. The last line in the batch file is "java -classpath test.jar test %1". When I run the batch file from the command line, using a paramater, the parameter displays in the console as expected. …

Member Avatar for C#mark
0
2K
Member Avatar for duliduli556

Hi All, How do you use div class' in php such that you can attach html generated by php into that div class. Example <html> <head> </head> <body> <div class="border"> </div> <?php echo "This needs to go into the class border" ?> </body> </html>

Member Avatar for diafol
0
114
Member Avatar for bahed121
Member Avatar for abelLazm
0
286
Member Avatar for salmap

Hi, Simple question.How do you rename a label? I'm trying LAbel1.Name="sk"; Please someone tell me the correct code?

Member Avatar for abelLazm
0
234
Member Avatar for bahed121

hello, Can any one help me in C1TrueDBGrid? I want to add a dropdown column in my C1TrueDBGrid which has different values for each row and on index change it changes value another cell of the row Thanks in advance

Member Avatar for bahed121
0
1K
Member Avatar for D_En

A Friend has asked me to make him a program where the user can select a song, and there is a music Spectrum analyzer (Like the one in VLC)and the user can customise the colours of the player. i have done the code for selecting the song but i need …

Member Avatar for D_En
0
195
Member Avatar for smokin745

I have implemented the addActionlistener for the Add Contact button in this GUI setup (please try running this code in your computer to know what i am talking about) and when i click on Add contact, the new frame pops up, i enter the details in the New contact frame, …

Member Avatar for smokin745
0
180
Member Avatar for thijscream

[B]SOLVED ALREADY!!![/B] i'm getting the following error: UPDATE orders SET naamwijn = Josep Masasch Blanc de Blancs Brut Cava WHERE ordernr = 22 AND productnr = 16 LIMIT 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax …

Member Avatar for thijscream
0
83
Member Avatar for ayesha789

Hi, I want to make a form , in which I have 4 input Fields. [LIST=1] [*]Date1 [*]Date2 [*]Calender Days [*]Working Days [/LIST] When I enter date1 as 2011-04-07 and date2 as 2011-04-11 Then I require in Calender Days = 5 inclusive of date1 and date2 and Working days = …

Member Avatar for McLaren
0
276
Member Avatar for Shruthi_R

hi am developing a online test application i need to fix up a time for the test and redirect to result page as soon as the test is over how can i do this i think we need to set up a session timeout property can anyone clearly explain me …

Member Avatar for prashantprof
0
566
Member Avatar for jbennet

Okay, im fairly competent with VB.NET in general and i know a bit about how to do winsock programming under VB6. Well, sadly most of my old VB6 code doesnt work under .NET :( Im usibg VB.NET express 2008 beta 2 and was wondering what the best way was to …

Member Avatar for dreamyfriend
0
492
Member Avatar for e-papa

Guys I've been reading on PEP 8 and I see that one should use it especially to make sure that programs are standard. Please can anybody help as to how i can install it with my python 3.2 and how to use. Thanks in advance.

Member Avatar for e-papa
0
730
Member Avatar for devesh2222
Member Avatar for stemiros

Hi, I have a list of base types which stores multiple derived types. The following code shows a simplified setup. [CODE]#include "Base.h" #include "DerivedA.h" #include "DerivedB.h" #include <iostream> #include <list> void main() { std::list<Base*> base; std::list<Base*> *basePointer = &base; for (int i = 0; i < 10; i++) { basePointer->push_back(new …

Member Avatar for mrinal.s2008
0
2K
Member Avatar for ediddy02

I Downloaded Wamp server 2.0 for my php and mysql installation. When i click on the wamp server through start/programs/wampserver/startwampserver2.0 it just has an icon 'start wamp server 2.0',is it the right file i downloaded?isnt it supposed to contain other clickable icons like phpmyadmin,mysql,apache ?? Secondly,do i need to download …

Member Avatar for chrishea
0
638
Member Avatar for enzogoy

Hi all I'm a newie to PHP. I have a html form which will passed 6 value to a php file and from a php file, I would like to write these value on to 2 rows in the excel. Therefore each person submit the form, it will write 6 …

Member Avatar for mafhh14
0
5K
Member Avatar for chester1908

Hey all. I'm making a program which uses many buttons and a textfield. I need help and some explaining on how to organise components within a panel. For example,using [CODE]mainPanel.add(BorderLayout.NORTH,display); mainPanel.add(BorderLayout.CENTER,background); mainPanel.add(BorderLayout.EAST,buttonBox); mainPanel.add(BorderLayout.WEST,buttonBox2 );[/CODE] All components (the buttons within the background panel,the buttons within buttonbox1/2 and the display field) are …

Member Avatar for mKorbel
0
198
Member Avatar for geekme

Hello, for a project on network simulation I need to show graphical representation of the graph.Which library files can I use for the purpose?Should i switch to OpenGL.I know nothing about graphics in C++ right now.Please help. Regards.

Member Avatar for mike_2000_17
0
133
Member Avatar for mohana88

Hi, I am developing an application where in I am using both forms and command line arguments. I have tried using Environment.getCommandLineArgs(). But it is reading only one argument, the path of the exe file. The command line arguments are first read and if present they are executed. Or else …

Member Avatar for mohana88
0
586
Member Avatar for LloydFarrell

Hi all - How can i echo back the value of of the following - If the form has other errors - ie. if a user has missed filling in a field - I can echo other fields if there are errors Im just having some difficulties in echo-ing out …

Member Avatar for vibhaJ
0
201
Member Avatar for cyberdaemon

Good day, i have a problem regarding about adding a record to my database, i want to insert a record that not exist on my table, the record that i want to add to a field is not related to other table. This field should be related to other table …

Member Avatar for cyberdaemon
0
255
Member Avatar for suhaildawood

I am creating a part of a game in ASP.NET (VB). There is a database with four tables (topics), and in those tables there are three items. I need the application to be able to show a random item (for example the three items are 1, 2, 3 - I …

Member Avatar for Akash Saikia
0
248
Member Avatar for WildBamaBoy

My program starts 5 different threads when it is opened. One or more of them is not stopping correctly and is causing my program to remain alive even after the main form has closed. Before I go through trying to find which one is doing it is there some way …

Member Avatar for WildBamaBoy
0
4K
Member Avatar for leo88

Hi, i have a convert problem: [CODE] double v3; foreach (String cvt in sortList2.Keys) { if (!(sortList8.ContainsKey(cvt))) { sortList2.TryGetValue(cvt, out v3); sortList8.Add(cvt, v3); String.Format("{0:0.00}", sortList8[cvt]); sortList8[cvt] = (v3 * 100 / textBox2.Lines.Length); // how to convert the result to 2 decimal? } } IDictionaryEnumerator enumerator2 = sortList8.GetEnumerator(); while (enumerator2.MoveNext()) { …

Member Avatar for Momerath
0
216
Member Avatar for darkeclipse8

Okay so I'm having a problem with this. My homework is to take this array of numbers and increment each one by one. Sounded simple at first and then I realized that in the array the address of variables were assigned to an element in the array. My question is..how …

Member Avatar for Ancient Dragon
0
115
Member Avatar for serph09

I have this code: I'm trying to have my program download all the images (that contains "jpg") from a site. [CODE]Dim doc As IHTMLDocument2 = DirectCast(WebBrowser1.Document.DomDocument, IHTMLDocument2) Dim imgRange As IHTMLControlRange = DirectCast(DirectCast(doc.body, HTMLBody).createControlRange(), IHTMLControlRange) For Each img As IHTMLImgElement In doc.images If img.nameProp.Contains("jpg") Then imgRange.add(DirectCast(img, IHTMLControlElement)) imgRange.execCommand("Copy", False, Nothing) …

Member Avatar for codeorder
0
145
Member Avatar for lpmike

i got this error 'convert datetime to string format yyyymmdd vb.net' this is my code [CODE]Dim ExpDate As String = dgvBlock_Extend.Rows(icnt).Cells("Extend Door & Lift Expiry Date").Value.ToString("yyyyMMdd")[/CODE] the value is 4/6/2011 12:00 AM i wnt to convert to format yyyyMMdd how i'm going to solve this error?

Member Avatar for lpmike
0
83
Member Avatar for zach&kody

How do you override a superclass's methods with a subclass? These are my two programs, the first being the super class, and the second being the subclass of which I am attempting to override the superclass's methods. [CODE]// This class represents a walker with two feet. import java.awt.Image; import java.awt.Graphics; …

Member Avatar for rubberman
0
212
Member Avatar for slygoth

the structure and other things have been declared already just need some help with writing this info to the file with random access method. customer info; void customerinfo(customer); [CODE]void customerinfo(customer info) { FILE *ci; if ((ci=fopen("testing.txt","ab"))==NULL) printf("File \"testing.txt\" could not be opened"); else { printf("Customer ID: "); fflush(stdin); scanf("%d",& info.cusid); …

Member Avatar for rubberman
0
176
Member Avatar for Chris11246

Im trying to install the opencv libraries and i tried following the instructions at: [URL="http://blog.cuvilib.com/2011/03/22/how-to-build-opencv-2-2-with-gpu-cuda-on-windows-7/"]http://blog.cuvilib.com/2011/03/22/how-to-build-opencv-2-2-with-gpu-cuda-on-windows-7/[/URL] but Im having problems getting the sample code to compile. When I try: [CODE]#include <iostream> #include <opencv2/opencv.hpp> #include <opencv2/gpu/gpu.hpp> using namespace std; int main() { try { cout<<cv::gpu::getDeviceName(0); } catch(const cv::Exception& ex) { std::cout << …

Member Avatar for rubberman
0
284
Member Avatar for fadi_1234

[CODE]#include <ctime> #include <cstdlib> bool winner = false; winner = true; srand((unsigned)time(NULL)); comp_choice = rand() % 3; system ("PAUSE"); return 0; } [/CODE] How to transform this idea or this codes to simple codes in IOSTREAM Library

Member Avatar for rubberman
0
107
Member Avatar for CrazyProgrammer

Hi, I was wandering if someone could tell me how i would go about this, or at least point me in a direction? For a program that I need to develop, it need to perform a set of operations on a specific set of task. However each task is similar …

Member Avatar for Momerath
0
169
Member Avatar for sariberri

My program needs to tell whether two Students were selected, and if so I need to output to the screen their averages. I got the first specification which works for only one selection (just shows grade) but I have no idea to tell whether they selected two from the list... …

Member Avatar for sariberri
0
181

The End.