43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Begjinner

Hi, Sorry if this is already asked, but I couldn't find it. I got a text file with 100010101001000010000011111001010 and it is 8bit, now I would like it to decimal. With the int(file,2) function it does not work. I get a very large number. Is there an extra command I …

Software Development python
Member Avatar for Begjinner
0
151
Member Avatar for sneekula

How would you make a simple bar graph from a list of data? [code]data = [20, 15, 10, 7, 5, 4, 3, 2, 1, 1, 0] [/code]

Software Development python
Member Avatar for Stefano Mtangoo
0
562
Member Avatar for Godflesh

How do i reach a class from within another class? I have Class A and Class B How can i activate or run class A from Class B? example, if class A and class B work toward the same resource, one create data the other consume data. How can i …

Software Development python
Member Avatar for Stefano Mtangoo
0
251
Member Avatar for xka

Hi, I am a total newbie to programming, so I do not know much about it. However I have created this very basic program which converts 2 currencies. I would appreciate it if I received some constructive criticism so I can improve my programming skills. Thanks, xka [CODE] #include <iostream> …

Software Development c++ finance
Member Avatar for jonsca
0
186
Member Avatar for __kanth

Hi Guys Is there any function in C which will help me make an input string invisible while we are entering the input?? I mean similar to oracle login. when we type our oracle password at dos prompt it is not visible. My requirement precisely. 1) I want to read …

Software Development c++ oracle
Member Avatar for __kanth
0
188
Member Avatar for JAM1011

Hey all, I am a bit lost. I need something tje user can type in data to such a parts QTY cost etc. There are no predefined parts list so the user can enter any part name/Number and there is no limit to amount of parts that can be entered. …

Software Development listview vb.net
Member Avatar for akulkarni
0
115
Member Avatar for thanatos2

hey guys i have a noob question. i'm trying to program this little text based RPG, i've made several but you're always controlling only 1 character and fighting 1 enemy, i want to change that and make you take control of 4 characters and fight 1-4 enemies at once (turn …

Software Development algorithm
Member Avatar for Geekitygeek
0
137
Member Avatar for Shmoil

Hello, I have a school assignment to build a 2 minute countdown timer in java. Gunjannigam managed to assist me in creating the functions. My code for secondCount, I have built a function so that I can adjust secondCount to a number and it will change the timer. When secondCount …

Software Development java java-swing
Member Avatar for Shmoil
0
230
Member Avatar for dynamicman

Hello my name is Mikal. I am working on some python code, and it is now at the point where it does what I want, but its not quite fast enough for my liking. Here is my current code that works: [code=python] self.timersVS = {'combat':0,'regen':0} ... # Tick Timers and …

Software Development python
Member Avatar for dynamicman
0
119
Member Avatar for siEricko

Hi I am learning how to use database. I am using sql server 2005. I would like to know how to make an sql query to the database from vb.net. I have tried some code. what i would like to know is, how to make the sqldataadapter statement with 2 …

Software Development sql vb.net
Member Avatar for siEricko
0
3K
Member Avatar for charlottetemp

Hi guys i was wondering how in python you invert this line as I have indicated. I have tried all sorts of mathemtical functions. I am using zelle graphics module. Currnetly I have produced lines going in one direction im trying to produce the same lines again but in the …

Software Development python
Member Avatar for charlottetemp
0
125
Member Avatar for ahmed supari

i am a beginner to the c language recently i`ve come across the expression - *s++ == *t++ what does this expression means??

Software Development c
Member Avatar for Narue
0
173
Member Avatar for Waseem Siddiqui
Member Avatar for sapphyr

Hi, I'm trying to make a program that prints a solid square of asterisks based on the side size entered by the user. The code builds fine but it doesn't work when I try to run the program. I get some code (looks like hex)? Please help! [CODE] #include <iostream> …

Software Development c++
Member Avatar for sapphyr
0
159
Member Avatar for gramatton

Ok, I got the assignment from my CompSci teacher to write a program that converts a string of an infix operation to a postfix one and it has to use a list and stack. The class that we have to write, Postfix, has to include a conversion, parsing, clear, and …

Software Development java
Member Avatar for joseph111
0
141
Member Avatar for shrikant.rails

Hi, Below is the snippet from my script which is working fine [CODE=python]if system is 'Conferences': assignedtomatrix[system]['Third'] = 'name'[/CODE] I have to now introduce one more loop checking, but could not find a way to do this. I have tried: [CODE]if system is 'Conferences': person = ['person1', 'person2', 'person3'] community …

Software Development python
Member Avatar for shrikant.rails
0
142
Member Avatar for ramjeev

Hi friends, This is regarding synchronization in Thread. If a block or method is synchronized, which object is said to be synchronization?

Software Development java
Member Avatar for ramjeev
0
94
Member Avatar for ankush.mukherje

Private Sub cmdusername_Click() Set adorsRAM = New ADODB.Recordset sSQL = "Select User from Master where CPU_No='" & txtcpuno.Text & "'" MsgBox (sSQL) With adorsRAM .ActiveConnection = cn .CursorLocation = adUseClient .CursorType = adOpenStatic .LockType = adLockOptimistic .Open sSQL End With If Not adorsRAM.EOF Then 'txtusername.Text = adorsRAM Else MsgBox "No …

Software Development visual-basic
Member Avatar for ankush.mukherje
0
149
Member Avatar for JohnDove

I want to get rid of the "publisher could not be verified..." warning messages that users get when they run my Visual Basic 2008 application, after downloading it from my website. How do I digitally sign it to my company name? My website has a secure area (i.e. SSL certificate). …

Software Development vb.net visual-basic
Member Avatar for kvprajapati
0
103
Member Avatar for napkinbob

Background: I have a tool that grabs files from a network location based on the file name. There are various files, but the names are all based on the creation date (report052209.txt). What i need to do is take the date selected from a datetimepicker and save a two digit …

Software Development vb.net
Member Avatar for kvprajapati
0
131
Member Avatar for makdu

Hi, I have an application and this application needs to close when the window shutdown happen. How can i detect that the system is shutting down from a C# program

Software Development
Member Avatar for makdu
0
2K
Member Avatar for roachae

I have a SortedList filled with keys and values. When I try GetKey(index), I get my key, and when I try GetByIndex(index), I get my value. But when I try to use IndexOfKey() or ContainsKey(), I get the following error: "Failed to compare two elements in the array." I need …

Software Development
Member Avatar for jonsca
0
236
Member Avatar for RandV80

I'm completely new to Python, just started going through the tutorial at python.org but am getting compile errors in places that should not be errors. I've installed Python version 3.1 on a Windows 7 machine, but I don't see any documented compatability issues. For an example, here's some simple sample …

Software Development python
Member Avatar for RandV80
0
7K
Member Avatar for adams161

hi, i have an array of JTextPane's. console 0 uses array[0] jtextpane to see their chat. console 1 uses array[1] jtextpane etc. up to them how many jtextpanes they use/consoles they create/open. they can move different chat channels to different consoles or have all channels go to one. lets say …

Software Development java
Member Avatar for adams161
0
153
Member Avatar for vlady

hello, Pls can anybody help me with a folloving exercise? (I must say that I am really beginer in this field, learning by myself and with daniweb (if sb gives me help)) Pompt the user to enter a string of forbidden letters and also to enter a words. Make a …

Software Development python
Member Avatar for vlady
0
130
Member Avatar for SgtMe

Hi everyone! I would like to make an Air Hockey game in pygame. I was wondering if it was possible to have 'proper' bouncing (ie. the puck goes in a direction relative to the angle the paddle hit it in). I can easily write the rest of the code. Thank …

Software Development python
Member Avatar for SgtMe
0
1K
Member Avatar for bonnysammy

Hi, all. I was wondering if you could help me. I was wondering why all controls seem to put extra space around them. If I look at the control in the design window, the area is all red. Is there a way to prevent this? I mean, all I want …

Software Development
Member Avatar for jonsca
0
87
Member Avatar for coolfriend

Plan and code a guessing and betting number game, as described by the text below and the sample output but do not write any functions (other than main). An appropriate welcome message with your name in it should be shown at the start of the program. The user starts with …

Software Development c++
Member Avatar for Nick Evan
0
87
Member Avatar for bdrkb

Hi I would Like to set my vb form caption from database can do this pls help me urgently

Software Development visual-basic
Member Avatar for QVeen72
0
68
Member Avatar for JPDobner

Hi, My code compiles and runs but the GUI will not display. I have tinkered with it but cannot get it to come up. Someone said I may be miscalling my GUI in this code, help? Thank you. [CODE]import javax.swing.*; import java.awt.event.*; public class Application_MainRunInv extends JFrame { private JTextArea …

Software Development display gui java java-swing
Member Avatar for JamesCherrill
0
121
Member Avatar for charlottetemp

Not sure what I've done wrong here tried lots of alternative combinations and not sure why this logic doesn't work! Im pretty sure it has something to do with the parameter not reading as the results inputted aren't going through the loop. Any help would be appreciated! The idea of …

Software Development python
Member Avatar for charlottetemp
0
106
Member Avatar for m_sam6

hi how i can do this by StringTokenizer Is there a more easy efficient method?

Software Development java
Member Avatar for AbhikGhosh
0
3K
Member Avatar for Evil Genius

Hi, I'm working on this Project. and I'm trying to use a Slide bar instead of just showing radio buttons [CODE]http://www.imgcentre.com/images/view/9dde627466.png[/CODE] I'm trying to replace them with a Slider bar and some how show the value (1 - 100) so, can someone please tell me how can I .... ? …

Software Development
Member Avatar for Evil Genius
0
115
Member Avatar for beforetheyknew

Hi guys just wanted some clarification on two issues. Nested Loops, I just want to clarify how i should read these for example: [CODE] public void nestedForLoop() { int i = 0; int j = 0; for (i = 0; i < 10; i++) { for (j = 0; j …

Software Development java
Member Avatar for darkagn
0
112
Member Avatar for beforetheyknew

Hi guys do you know of any sites where i can go through some java questions in preparation for a java exam. In the sort of style for example where you are provided a for loop and which isn't in the normal format and then asks you what would x …

Software Development java
Member Avatar for beforetheyknew
0
103
Member Avatar for ibackus

I'm trying to write a very simple program to print out in the terminal the first 10 entries in a long binary file composed of floats. The idea is to make this work something like 'head' in the linux terminal (but for binary files). The problem I have is I …

Software Development c++
Member Avatar for ibackus
0
141
Member Avatar for gingerfish

hello guys, could you please explain me when do we use these: int[][], double[][], float[][]? i mean, why there are two brackets "[]"? thanks

Software Development java
Member Avatar for gingerfish
0
64
Member Avatar for GyanPP

An unsigned long(9999999000) returns 1410064408. Any explanation to it?

Software Development c++
Member Avatar for GyanPP
0
147
Member Avatar for makdu

Hi , I have two text files. madavas1.txt and madax3.txt. There are different values in the files. I want a file which gives the difference between the commen value based on the fields below Gateway( please refer to the txt file attached)[code] new txt = madavas1.txt - madax3.txt.[/code] for Eg: …

Software Development
Member Avatar for makdu
0
122
Member Avatar for fortex

Hello people, I was recently working on some homework for my class, and I have a error on my code. First, I will tell what I need to do. What the program asks for is for a person to give a 3-number digit(N), from 100 to 999. After that, the …

Software Development java java-swing
Member Avatar for musthafa.aj
0
148
Member Avatar for xfrolox

I'm just trying to add a simple function to the textbox for security that if i only allow 0 - 9 Numbers and i try to put a letter it wont let me i forgot the code so if any can help me ...

Software Development vb.net
Member Avatar for pauldani
0
173
Member Avatar for Hidden-Coder

G'day all, When i'm using the search function (Below) I get a Unauthorized Access Exception on certain folders, which isn't a problem, however after this Exception i'm not getting any results. I have tried searching around but I couldn't make sense of alot of stuff that I found. I haven't …

Software Development
Member Avatar for Hidden-Coder
0
95
Member Avatar for Ranx

Hi, i'm hoping someone can help with a slightly odd problem i have. I have a piece of code that can create a folder on a sharepoint site from one machine, but not another. [CODE] If Not System.IO.Directory.Exists(strTargetLocation) Then System.IO.Directory.CreateDirectory(strTargetLocation) End If[/CODE] Originally it was because WebDAV was not running …

Software Development sharepoint vb.net
Member Avatar for Ranx
0
204
Member Avatar for StarZ

Hi, so I want to make this kind of "webpage" thing with GUI and how can go to another "page" not open another frame when I click on one of the buttons. Like in my program one of the buttons are "Sign In" and when the user clicks it I …

Software Development gui java java-swing
Member Avatar for musthafa.aj
0
240
Member Avatar for ankush.mukherje

hi experts please help me with this code [CODE]Private Sub cmdreport_Click() Set crApp = New CRAXDRT.Application frmViewReport.Show Set adorsRAM = New ADODB.Recordset Set report = crApp.OpenReport("D:\Ankush\created\proj11\Reports\Report1.rpt") sSQL = "Select type, user, location, cpu_no, model, speed, ram_unit from Master where RAM=" & Form1.cmbram.Text report.ParameterFields.Item("pRAM").Value = Str(cmbram.Text) report.DiscardSavedData 'CLEARS REPORT SO WE …

Software Development visual-basic
Member Avatar for ankush.mukherje
0
131
Member Avatar for isrinc

Newbie with problem reading 6-column floating point data. I copied an example and expanded for my use, but get this output in OutFileOne.txt: 0.000 0.000 0.00 0.000 0.000 0.00 Not getting correct values, nor correct # of values in columns. Any suggestions? Have tried explicit format (%5.2f) with no luck. …

Software Development c
Member Avatar for isrinc
0
1K
Member Avatar for bdrkb

Hi How can i send data from vb text box to crystal report text object directly

Software Development visual-basic
Member Avatar for abu taher
0
109
Member Avatar for capiono

Please does any know how to create a word document or PDF file from the textboxes and datagridview values? Thanks

Software Development c# pdf
Member Avatar for capiono
0
84
Member Avatar for capiono

I currently moved my windows form project to a different PC. In the project UI have some text boxes with a default value of "0". Before the move this worked fine. now if I run the code the UI does not show this default values. designer Code: [CODE] namespace PersonalBudget …

Software Development
Member Avatar for capiono
0
124
Member Avatar for dpfaff

Hello People, I took a class in C++ about a year ago and really liked learning to write code and working with with programs. I did not do very well in the class, in fact i ended up with a C-. Recently I decide that I wanted to try agin, …

Software Development c++ open-source
Member Avatar for Lerner
0
146

The End.