132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 7sisters

Hi, I am really new to Python and I am having real trouble with this new language. This is what I want to do: I have two sets of .txt files that contain numbers. They look like this: FILE1 1028.085 283.795 2056.13 295.254 121912.4 11.346 0.004 147.932 780.677 966.771 289.326 …

Software Development python seo
Member Avatar for 7sisters
0
163
Member Avatar for pardhu463

Hi to all... I am getting a warning, i am trying to avoid that but its not sorted out..Please suggest me to avoid that warning. my code is as follows.. [CODE] const char var[][2][5]={ {"1.95","3.70"}, {"2.40","4.60"}, {"2.70","5.70"}, {"6.60","13.40"}, . . . . }; void fun(int col,int row,char *str) { ... …

Software Development c
Member Avatar for pardhu463
0
268
Member Avatar for cutexxbaby

hihi i am a newbiest on c# and window form i am doing a web service, and use a form which contain a datagridview but meet quite alot of problem 1. how to validate user input with database, like example, when the user insert a username, however the database have …

Software Development c#
Member Avatar for DaveAmour
0
380
Member Avatar for larrymtl

Hello guys, please could somebody help me...there is a problem with logic in my loop with pretty the same structure in methods: [B]public void isMember()[/B] and [B]public void deleteMember()[/B] Compilator ignores the scanner and directly goes to else statement and puts it in the loop 10 times... [CODE] import java.util.*; …

Software Development java
Member Avatar for larrymtl
0
245
Member Avatar for steve_Student

Hi I am a student needing help with my assignment. My assignment is a loan calculator that takes in a customer’s details such as name, address, occupation and the amount they wish to borrow. My assignment says the base interest rate is 9.7%, however: if the amount a customer enters …

Software Development gui java
Member Avatar for NormR1
0
290
Member Avatar for steve_Student

Hello, iam a student who is currently studying for an FD in IT, I need a bit of help with my java assignment and as it is a mortgage calculator i am developing, maths is not my strongest subject I have been trying to find out how to take in …

Software Development gui java
Member Avatar for Ezzaral
0
312
Member Avatar for bluehangook629

Hey guys, I was wondering if there is a way to group controls together without using any containers such as panel, group box, or container. Thanks

Software Development vb.net
Member Avatar for Ezzaral
0
998
Member Avatar for babbu

Hi, I have a code that writes data to excel using setcontentype(application/vnd.ms-excel) Now I want one of the columns to be formatted to currency. I do not intend to use any additional jars(POI, etc). Is it possible to achieve the task. Thanks

Software Development java
Member Avatar for peter_budo
0
111
Member Avatar for leo1937ca

Attached is a visual representation of My Array that was used in my VB6 program the dimensions are: [CODE]Dim MyArray(5,30) Option Base 1[/CODE] I am using an ACCESS DataBase to populate the array. Using the For Next Loop I can access any position within the array such as a individual …

Software Development vb.net
Member Avatar for skatamatic
0
192
Member Avatar for olsane

hey i have a little problem, how do i make this two triangle: O O O O O O O O O O O O O O O O O O O O i have to get input from user, that part i have done. but the problem is loops …

Software Development java
Member Avatar for NormR1
0
93
Member Avatar for coding101

Hello, so my question is this..lets say you have a file like this. Computer Science 01 //course number 30 //number of students that can enroll 4 //number of students currently enrolled Math 02 //course number 20 //number of students that can enroll 12 //number of students currently enrolled And i …

Software Development java
Member Avatar for NormR1
0
130
Member Avatar for Lee21

Hi Everyone, I'm having a hard time on using Transaction then after that I need to use sqldataadapter. When I tried the code below I'm having an error "[COLOR="Red"]ExecuteReader requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The …

Software Development sql vb.net
Member Avatar for adam_k
0
598
Member Avatar for STP_Captain_Slo

Hi I have been looking all day trying to find a way to do this. I need to run a Batch file which is held on a server, the file path begins with a IP Address which DOS doesn't like. So i found the pushd command which assigns a temp …

Software Development file-system vb.net
Member Avatar for adam_k
0
286
Member Avatar for zepi

hi all, please help me on this... Is there a way to get the SQl View's String Command used to create said View? For Example, I have a View named tryView, now I want to get the string command used to create tryView like this one... [QUOTE] CREATE VIEW tryView …

Software Development sql vb.net
Member Avatar for adam_k
0
117
Member Avatar for winecoding

I have a string, which is read from a database. The string can be just "null". I need to decide whether it is null or not? Among the following ones, what is the appropriate way to do it? [CODE]String a = …; If (a == null) If ( a.length == …

Software Development java
Member Avatar for mKorbel
0
159
Member Avatar for bufospro

Hi, I am trying to make a timer applet when I click stop button to stop counting, disappear stop and appears continue button and when I click continue to continue the counting. My code is : [CODE] import java.applet.*; import java.awt.*; import javax.swing.*; public class Timer extends Applet implements Runnable …

Software Development java java-swing
Member Avatar for mKorbel
0
99
Member Avatar for happy8899

[CODE] set a = 3 set type = a echo $($type) [/CODE] How for me to get value of 3 from variable $type which is a. I can't get value 3 from what i do above? please help thanks!

Software Development shell-scripting
Member Avatar for IIM
0
161
Member Avatar for gingank

Could anyone tell me the different between this two? I try to learn the C++ and i'm a newbie on it? Any recommended books or website to learn C++? Thanks in advance...

Software Development c++
Member Avatar for yoni0505
0
193
Member Avatar for coroll

Hi!, I have a formProd and a dataGridView in it. I want to access the dataGridview of formProd from formMain. [CODE] foreach (Form form in Application.OpenForms) { formProd prd = (formProd)form; if (prd is formProd) prd.itemsGridView.DataSource = DS.Tables["product_Header"]; }[/CODE] this gives me InvalidCastException. can any one tell me how to …

Software Development
Member Avatar for coroll
0
149
Member Avatar for coroll

Hi, im new to c#.When i execute the following code i get "vshost.exe has stopped working" message. Firstly i insert some data to a table in sql server 2008.then i want to retrieve the MAX(Mem_ID). My insertion is working properly. But when im trying to retrive MAX(Mem_ID). It gives above …

Software Development
Member Avatar for coroll
0
2K
Member Avatar for AnkitKumar

class Foo { public static void classMethod() { System.out.println("classMethod() in Foo"); } public void instanceMethod() { System.out.println("instanceMethod() in Foo"); } } class Bar extends Foo { public static void classMethod() { System.out.println("classMethod() in Bar"); } public void instanceMethod() { System.out.println("instanceMethod() in Bar"); } } class Test { public static void …

Software Development java
Member Avatar for JamesCherrill
0
120
Member Avatar for debasishgang7

So guys here is my situation. There is text file.Which contains some strings.They are all comma separated. What i wanna do is just read the text file and print individually those strings which are comma separated. Suppose the text file contains: dog,cat,bird,good,bad,blah,blah,blah etc.... The python script should print dog cat …

Software Development python
Member Avatar for vegaseat
0
157
Member Avatar for KAY111

Hey, I just discovered a very interesting phenomenon. I have 2 programs. m.cpp [CODE] #include <iostream> #include<time.h> using namespace std; int main() { int a=34,b=40; while(1) { usleep(400000); cout<<a<<" "<<b<<"\n"; } } [/CODE] and n.cpp [CODE] #include<iostream> #include<stdlib.h> using namespace std; int main() { int a,b; while(1) { cin>>a>>b; cout<<a<<b; …

Software Development c++
Member Avatar for L7Sqr
0
173
Member Avatar for ToniSoft

hi Dears, i am very very new in programming and i have a problem with inserting something into table, this is when i connect it with database iam able to read everything in database, private OleDbConnection myCon; public Form1() { InitializeComponent(); myCon = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Aidi\Desktop\AccessDBase\WindowsFormsApplication1\WindowsFormsApplication1\Students.mdb"); } i have create …

Software Development open-source
Member Avatar for ToniSoft
0
136
Member Avatar for Stangaciu

HI , i have a little problemn. I have to tables codMP and Content.Display like this. codMP name In 1 x ? - 20 - here i want to sum the column from the second table where codMP = with what is in the column codMP. The same for the …

Software Development display vb.net
Member Avatar for Stangaciu
0
133
Member Avatar for hszforu

i am using python idle in windows7 to run my program. whenever i try to run the program i get an syntax error as unexpected indent. the code i am trying to run is as follows: [CODE]def print_lol(movies): for each in movies: if isinstance(each,list): print_lol(each) else: print(each)[/CODE]

Software Development python
Member Avatar for Gribouillis
0
928
Member Avatar for tomtetlaw

I've registered my raw input devices successfully but Windows doesn't send me the WM_INPUT message when I press keys or do things with the mouse. I am using an event hook to get the messages since I'm using SDL and it receives other messages fine. This is the code I …

Software Development c++
Member Avatar for tomtetlaw
0
2K
Member Avatar for bluehangook629

Hello everyone, I am current upgrading some of the functions on an inventory system. Current system accepts manual data input from the user and stores them in a SQL database. One of the inputs is control number which is a primary key in one of our table so it needs …

Software Development vb.net visual-studio
Member Avatar for bluehangook629
0
645
Member Avatar for tomtetlaw

I am trying to use SDL with the Raw Input API but whenever SDL sends me a keyboard input message, the [icode]msg[/icode] it sends me is an invalid pointer and it gives me an access violation when I try to use it. I check to see if it's invalid for …

Software Development api c++
Member Avatar for Ancient Dragon
0
1K
Member Avatar for Arjun_Sarankulu

I have a application contain 1 text book for Multiple line 2 Button(Query and Export) and 1 DataGrid View If user enter the query in textbox and click on Query Button i want to prompt for use input to get key for validating purpose My application is working fine But …

Software Development
Member Avatar for Arjun_Sarankulu
0
138
Member Avatar for virendra_sharma

Hi Frnz, anyone can help me with code , how to setting up [B][U]"solr search engine "[/U][/B] for document search on ur desktop in .net

Software Development
Member Avatar for virendra_sharma
0
96
Member Avatar for merse

Are there ay freely available language library? I need class of LETTER, WORD, SENTANCE, TEXT, ... for example a letter can be more than one character, like sch in German WORD category has to be stored, like noun/adjective etc. I have to write my own package?

Software Development c++
Member Avatar for merse
0
90
Member Avatar for mirkuh

Hi, I want to call CTest's StaticMethod via a function pointer from Class CCaller. I noticed that StaticMethod is not inlined and the call takes much more time compared to calling the function directly. When calling directly the function gets inlined - even without the inline keyword. Can't the function …

Software Development c++
Member Avatar for JasonHippy
0
412
Member Avatar for sandeepparekh9

Function to Convert Dataset to Excel. It will export all the table of the given dataset to the given excel. Example: [CODE]ExportDatasetToExcel(dsFinal, "d:\\my.xls") [/CODE] where dsFinal is my Datase and second parameter is the excel file location. Make sure the excel file exist.

Software Development dataset vb.net
Member Avatar for Fa3hed
0
1K
Member Avatar for vlady

Hello, I do the following exercise: [COLOR="Green"]Write a function called most_frequent that takes a string and prints the letters in decreasing order of frequency. Find text samples from several different languages and see how letter frequency varies between languages. Compare your results with the tables at wikipedia.org/wiki/Letter_frequencies.[/COLOR] I try my …

Software Development python
Member Avatar for vlady
0
1K
Member Avatar for Kiah07

I need some help with some code. I'm using boost filesystem library V3 c++. I am using an iterator to list files and directories recursively. My program runs perfectly until it scans the "System Volume Information" directory on Windows machines. At that point the program throws an exception because it …

Software Development c++ regex
Member Avatar for pseudorandom21
0
522
Member Avatar for jaejoong

Hello! I need to create a system that will not calculate weekends and holiday. Can somebody help me? Thanks in advance.

Software Development vb.net
Member Avatar for jaejoong
0
96
Member Avatar for Doughng

I'm a beginner in programming, and I'm doing a project that requires continously getting an input from the Serial Port. I already used the SerialPort class to retrieve the data and use it in my programm, and now I want to write those same SerialPort values (splitted into array[0]....array[7]) into …

Software Development
Member Avatar for Mitja Bonca
0
237
Member Avatar for Eswarimallur

Hi, I am gettitn error in the python scripts as shown below: AttributeError: 'module' object has no attribute 'lib' I have installed the package WxPython of 2.8 version and Python of version 2.6 Please help me out to resolve this error

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for GregMalick

Here's the problem I'm trying to solve: I've written a DLL that's used as a plugin within another program. Within the DLL is a number of structure allocations which represent the positions of points in a mesh (over time). These allocations can be very very large. If another instance of …

Software Development c motherboards-cpu-ram
Member Avatar for GregMalick
0
469
Member Avatar for Zany..!

hi. I am new to C #. I want to know is there any way to add shortcuts keys to our application buttons. I mean if the user press 'n' key on his/her keyboard button1 will triggered it's self and perform the task behind the button. Plz help..

Software Development
Member Avatar for rules_ky
0
565
Member Avatar for leo88

Hi, I am exploring a timer function which I wants my program function runs every 10 minit interval. Below is my coding: [CODE] Dim timer As Timer timer = New Timer(600000) 'timer.Enabled = True timer.Interval = 600000 timer.Start() 'Do function timer.Stop() [/CODE] Actually I am not familiar with timer function, …

Software Development vb.net
Member Avatar for leo88
0
275
Member Avatar for Komerad

Hi I found this piece in another "solved" threat. The person that wrote this however had a different problem with it. I changed the bar size value from 12 to 6500. For me this works but has a major flaw : When : lengths to cut < size of a …

Software Development algorithm c++
Member Avatar for Komerad
0
1K
Member Avatar for AW8Dragon

Hello, got a question that has been bugging me For example there is this text file: Name: yyyy mm dd Phone: Email: Andrew 1989 5 8 123459886 somethin@ Emma 1988 1 30 256497565 other@ Stan 1991 12 26 456548912 tell@ Charles 1975 8 11 123154894 2eee@ can i get first …

Software Development c++
Member Avatar for m4ster_r0shi
0
120
Member Avatar for winecoding

For the computation involving multiple types of variables, such as integer and double, is the following approach the correct way in terms of not causing any hidden error or information lost? [CODE] int a = 2; double b = 3.0; double c; c = (double)(a+b); c = (double)(a/b); [/CODE]

Software Development java
Member Avatar for jon.kiparsky
0
238
Member Avatar for naffan

Good morning all, Hopefully a quick solution, I've done some reading up on taking command line arguments and I almost have it licked, but I'm running into some trouble trying to send into a method.. I'll give you an example of what I mean Let's say I want to send …

Software Development java
Member Avatar for naffan
0
392
Member Avatar for KAY111

Hey, I am writing this program in which I get x and y coordinates on stdout from a C program.....something like 23 34 45 56 21 56 .. . and so on.... now I need to pipe these values into a Java program and display a cube at the corresponding …

Software Development gui java java-swing
0
115
Member Avatar for MAnders09

Hi everyone! i have a question if someone know how can i check with a VB application if another programs window is minimized or maximized? example i would make a simple VB app that could while running check with a timer if "MS Paint" for example was maximized and check …

Software Development visual-basic
Member Avatar for MAnders09
0
310
Member Avatar for sadsdw

Hi everyone, I'm trying develop a code to read a file containing records of INDIVIDUAL ID, FATHER ID and MOTHER ID, and re-code the file using multiple trees. At this point I'm not concerning to re-code the IDs and I would like to build the multiple tree. The idea is: …

Software Development algorithm c++
Member Avatar for sadsdw
0
120
Member Avatar for akhal

Hi I have to pass a 2D array by reference to a constructor of a call where it manipulates this array. I have found out one way of doing so as: [code] class calc{ double (*my_a)[size]; calc(double (*arr)[size] /* or double [][size] */) : arr(my_a) {} // Passing array in …

Software Development c++
Member Avatar for NathanOliver
0
419

The End.