Our Software Development forum encompasses topics related to native application programming design and development.

60 39 38 36 36 34 32 31 30 30
Member Avatar
I am trying to use a hash set to do a Monte Carlo analysis of the Birthday Paradox. Here is my pseudo code: Set number of collisions to zero Loop (10 to100 by 10) Loop: Generate a birthday. (use 1-365) See if it is already in the set. If it …
by kayleigh0411 in Software Development ()
Member Avatar
Hi, I'm trying to write code that will allow me to assign values to lists of strings. I then want to compare user input to the lists and create a scoring system based on what has been typed in. For example if the input contains letters in list1 then the …
by bryann in Software Development ()
Member Avatar
Hey everyone, I have the following list in my code ... and in main function I have the following list ... I want to iterate the list through Streams in java 8 in order to calculate the total amount of all the orders. How do I do that? Please help
by cool_zephyr 7 in Software Development ()
Member Avatar
I tried this code and it did not do what I expected. ... What I expected was the opposite of what I got, which was the following. bitarray False bitarray False I thought ... would set the byte to 255, which I believe is all bits set. I got the …
by Suzie999 213 in Software Development ()
Member Avatar
hey, folks, thanks for clicking :) i want to assign a pressed key to a button, i clicked before, similar to what we know from computergames, when we change the key bindings. For example: click button1 -> the application is waiting for any key to be pressed -> we push …
by Stefan_6 in Software Development ()
Member Avatar
For the VB Studio 2010 software I developed, I'd like to include source code, a class maybe, written in VB (not c++) that allows me to get (and change) ID3 V1 and V2 tagging data from MP3 files. I've been looking for months and have found .exe's and someone else's …
by paul1145 in Software Development ()
Member Avatar
HI guys, as mentioned in my revious post, I'll redo my wordCount application using the GridBagLayout approach. The functionality of the application hasn't changed at all: I've only removed the various Jpanels and, for simplicity, used only the JFrame and attached all the comonents to the JFrame. I've had a …
by Violet_82 35 in Software Development ()
Member Avatar
HI guys, I'm trying to build a small GUI application where users can input text (in a JTextArea) and by pressing a button, you get a summary of how many times each word in the text has occurred. So here come the questions. First, the GUI itself. The way I …
by Violet_82 35 in Software Development ()
Member Avatar
The program seems to be building fine however I can only get it to return "Your tax amount is: 0.00". I've stared at the thing for hours and cann't for the life of me find my problem/problems. Any suggestions are extremely appreciated. ...
by Callie C. in Software Development ()
Member Avatar
Hello All, I am having trouble looping through a 2D array in C++ (should be very easy, but I am just starting C++). At the current moment I have this class file ... amd this header file: ... As you can see, I tried looping through that way, but what …
by sirlink99 44 in Software Development ()
Member Avatar
I have been using Eric to develop Python2.7 code for a while. I have just tried to look at Python3 and cannot figure out how to do it in Eric. Setting > Preferences > Python says Python2 uses .py extension, Python3 uses .py3 I create hello.py3 ... If I run …
by micksulley in Software Development ()
Member Avatar
So I am trying to self teach myself Python and so far it is working great. However I have ran into a bump in the road and can't really figure out why this script isn't working... Any ideas? ... Thanks, Powerade661
by Netct24 in Software Development ()
Member Avatar
The console says arr1 is not a function! ... This type of error occurs many times and I don't definitely understand what is the problem. I know that there as methods that change arrays as splice, and some methods dont change arrays but make new arrays on the basis of …
by kouty in Software Development ()
Member Avatar
I am trying to write a generic class with at type parameter T, and add a method that takes an ArrayList of type T and returns a standard deviation as type double. My program is compiling with no errors, however the standard deviation is incorrect. It is outputting the standard …
by kayleigh0411 in Software Development ()
Member Avatar
I am writing a custom MembershipProvider for ASP.NET and would like to record certain events in a table when they happen. I have the methods to do it, but I would like to get the value of the "ID" column of the row I insert into the table. I have …
by zachattack05 56 in Software Development ()
Member Avatar
Hi, I have built a shell extension handler, using this as a template: ... In this instance, it registers with a ".ts" extension: ... The project compiles fine, and the registration works also. But on one PC, it fails to load (the context menu for .ts files is not updated), …
by BobFX in Software Development ()
Member Avatar
Hello I try to learn the String.charCodeAt(index) method Here is a snippet that demonstrate that the first index is allways 48 independentely of the character. How work's it (I was expecting that each letter has her unicode-number equivalent. ... what is the secret of this numbers. Sorry if it is …
by kouty in Software Development ()
Member Avatar
Exercise Three: In this exercise, you will create a program that gets two numbers from the user and checks to make sure the first number is less than the second number. It should then display the sum of the even numbers between, and including, the two numbers entered by the …
by DGnana in Software Development ()
Member Avatar
I was wondering if it would be more efficient to render a single BufferedImage instead of rendering a bunch of BufferedImages in a double for loop? I have an idea of how to do it, I just don't know what methods in BufferedImage you would use to create the bigger …
by Doogledude123 45 in Software Development ()
Member Avatar
Hey I have a question, how many people actually use telerik? Does anybody have experience with it, and what are your opinions on it? To me it is just another third party library that nobody knows, but I want an opinion on it from actual seasoned developers. I have worked …
by overwraith 57 in Software Development ()
Member Avatar
Rev Jim: I need to get a random file name from a specific directory (folder) each time this routine is called. I was given these steps on another website, but I need to be shown how this is done. Can you please assist? Get the files - Directory.GetFiles or DirectoryInfo.GetFiles …
by major_lost in Software Development ()
Member Avatar
Hello everyone, I am new in assembly programming for MIPS and I was given a project to write a program that converts any decimal bumber from 0 to 511 into octal and return the result with 3 digits in reverse i.e. 170 for the decimal 57, 026 for 400 and …
by Eppie in Software Development ()
Member Avatar
i'm trying getting the richedit caret positions. seems that i can't use the caret functions. ... i get the Y correctly, but i don't understand how can i get the X.. can anyone advice me?
by cambalinho 14 in Software Development ()
c++ c
Member Avatar
Hi all, i am using a ribbon in my c# 2010 project, first i had .net framwork problem while i was running the form then i changed that to .net framework 4.0 now it says Win32 exception Unhandled. What is the problem? is the problem in debugger?
by Hanif1993 3 in Software Development ()
Member Avatar
Hi guys, I'm now looking at what seems to be a nice exercise on my java book. Basically, the exercise asks me to build a virtual keyboard GUI - see screenshot - and when you press each key on your real keyboard the key you've pressed will change its background …
by Violet_82 35 in Software Development ()
Member Avatar
Hello. My question is very basic but I can not find/understand the answer anywhere. How check if the name-value "name": value in an object. I know that with Object.keys() method we can checking the names of the properties. I know too that with Object.name or Object["name"] we can see the …
by kouty in Software Development ()
Member Avatar
Howdy I have a timespan that contain in excess of 24 hours. For the example lets use a value of 1 day 6 hours and 32 minutes. I would like to get this into a string that displays "30:32". Have so far tried something along the lines of ... however …
by Mike Askew 131 in Software Development ()
Member Avatar
HI guys, as I'm gettng into Java GUI again after a long time, I'm trying hard to remember things, but not everything is that clear anymore. I'm in the process of building a very simple GUI application with a few buttons. First question is about the JFrame and JPanel. From …
by Violet_82 35 in Software Development ()
Member Avatar
Group, 10 months ago I posed the same question as to how to programatically create the variable names via the loop. However I'm now in real need of doing this and I don't fully understand what each step of the syntax actually means and what it does. Therefore I need …
by doncwilson_1 16 in Software Development ()
Member Avatar
Say hypothetically you had a reader which did something like this... ... Would this actually be useful in not just flat files, but CSV, etc, etc? I am just having some second thoughts about this program, as to whether it would actually be useful to people. There's not really any …
by overwraith 57 in Software Development ()
Chat Log Latest Posts