132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nina.le.92

The goal of my assignment is to create a program that takes a string of words and encodes or decodes the string using a simple substitution cypher. I've gotten a decent amount done but I am stuck at the part where I actually have to encrypt and decrypt using the …

Software Development c encryption
Member Avatar for Banfa
0
269
Member Avatar for karan.geh

public class Jacobi{ // jacobi(a,n) public static void main(String[] args) { int n = 234567,a = 97770; if(n<=0 || (n %2) == 0) return (0); int temp, j=1; if(a<0) { a = -a; if((n % 4) == 3) j = -j; } do while (a!=0) { do while(( a % …

Software Development java
Member Avatar for stultuske
0
127
Member Avatar for jrosh

I am tryn a currency converter using hash table. What is the technique to use to enble covert both ways. Ex: Dollers to Euro and Euro to Dollers . I can understand how to do it one way using currency as the hashKey and rate as Hashvalue. (I hope that …

Software Development java
Member Avatar for JamesCherrill
0
164
Member Avatar for penguin22

Hey guys i'm trying to figure out how to open a new message window from outlook when i click a button on my form any help greatly aprreciated thanks.

Software Development c# microsoft
Member Avatar for Ketsuekiame
0
1K
Member Avatar for hookedtocsharp

The scenario is, If the user has logged in for the first using his one time password it should get redirected to ResetPassword.aspx If the user is not new, then should get redirected to Main.aspx page. Should I use IsPostBack or Membership.ValidateUser? How do we usually code in c# to …

Software Development asp.net c#
Member Avatar for Ketsuekiame
0
230
Member Avatar for london-G

Hello, Could you please assist me i want to deploy this application as an executable file with the MYSQL database embedded. I have clean and build the application, the jar file is there but nothing happens. The database is stored on local host. Thank you

Software Development java mysql
Member Avatar for jwenting
0
215
Member Avatar for game06

i recent been using my variables names like this boolean is_dead = false; turn out its not right. right conventions is boolean isDead = false; for some reason i dont like the 2nd one. may be bc i been using 1st one for so long. i was wondering is there …

Software Development java
Member Avatar for jwenting
0
213
Member Avatar for Awais Ali

hye guyz, Can any one tell me that what the data structure is used behind FACEBOOK ??? I have googled but not found any useful answer... plzz tell me quickly..

Software Development c++ data-structure
Member Avatar for BigBang@12
0
833
Member Avatar for emran.bader

i was try to solve it , but im begnner in vb.net this is my code Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As New ListViewItem(t1.Text) x.SubItems.Add(t2.Text) x.SubItems.Add(t3.Text) x.SubItems.Add(CInt(t2.Text) + CInt(t3.Text)) l1.Items.Add(x) t1.Text = "" t2.Text = "" t3.Text = …

Software Development vb.net
Member Avatar for gian88r
0
252
Member Avatar for somjit{}

i wrote a code to implement some basics of priority queue , but apparantly its not giving desired output. the code is implemented using binary heap as its data structure. i tried tinkering here and there , nut no luck... i want to display a given number of max or …

Software Development data-structure java queue
0
141
Member Avatar for aldm

Hi to all, I'm making one application for video control in firm...what's the best way to make application which have to access to webcam? There should be option for watching videos from more cams in real time...I read something on google and I found that Swing framework has some options …

Software Development java java-swing webcam
Member Avatar for gian88r
0
1K
Member Avatar for poopoowei

##TASK Step One The DNA molecule is a double-helix. You can think of this double helix as two parallel sequences of DNA with nucleotides or bases (A,C,G,Ts) on one strand matched with their associated nucleotide on the other strand according to the following rules: A matched with T C matched …

Software Development c++ file-stream file-system ios open-source
Member Avatar for poopoowei
0
340
Member Avatar for ImZick

Hi i'm having a trouble with this i got 3 textbox and i format it to Textbox1.Text = Format(Textbox1.Text, "Standard") Textbox2.Text = Format(Textbox2.Text, "Standard") Textbox3.Text = Format(Textbox3.Text, "Standard") which give something like this 1,230.00 2,500.00 1,245.00 and when i add it `Textbox4.text = Val(Textbox1.Text) + Val(Textbox2.Text) + Val(Textbox3.Text)` the result …

Software Development mathematics vb.net
Member Avatar for ImZick
0
241
Member Avatar for game06

les say i have a map: //my map is biiger but this is just a ex. int map[][] = {{1, 1, 1 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}; int camera_pos_x = 0; int camera_pos_y = 0; int camera_speed = …

Software Development java
Member Avatar for game06
0
253
Member Avatar for sadben.khan

I'm working on an assignment in which we aren't allowed to use arrays or functions. So i need to use loops to split words from a text file. I got most of the code working but i get an error at this part where the loop doesn't exit when i …

Software Development c++
Member Avatar for sadben.khan
0
226
Member Avatar for sadben.khan

So the "substr" command is used for extracting certain characters, i have a problem in which if the character is a space, the previous value is used for filling the variable The code: #include "stdafx.h" #include<cmath> #include<string> #include<iostream> #include<sstream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string line="Introductory …

Software Development c++
Member Avatar for sadben.khan
0
133
Member Avatar for wids101

i'm writing a cashier like program and i need help with the setfill code. i wrote "cout << "Item Cost: " << setw(8) << cost << setw(10) << setfill('=') << endl;" and the result is "Change Due: ======5" I want the equal sign to be on the next line all …

Software Development c++
Member Avatar for wids101
0
225
Member Avatar for in_xx

Hi, My project requires me to read in multiple ascii files and process them. So I am going to go through the data and using conditional statements store the result in lists. After this, I need to store this data and plot some of it using matlab and display the …

Software Development gui ide python
Member Avatar for vegaseat
0
481
Member Avatar for Fuzzies

Hi! I recently started teaching Java to myself yesterday via TheNewBoston on youtube. I began working on a few programs from the programmingbydoing website but I'm stuck on this problem:http://programmingbydoing.com/a/gender-game.html It's a problem focusing on nested if statements. Here's my code!: import java.util.Scanner ; public class MainClass { public static …

Software Development java
Member Avatar for bguild
0
565
Member Avatar for Papa_Don

Group, I see there are multiple "validation" type events to choose from in the "Declarations" drop-down box. I want to understand these choices better to see if one would work for what I want to do. I've got several textboxes that need to have either a number entered into them …

Software Development vb.net
Member Avatar for Papa_Don
0
236
Member Avatar for Martje

Hey guys, I am having a problem where i want to print a image and a simple string. i would want that when i print i get this on paper : [Click Here For Image](http://img339.imageshack.us/img339/9308/wiw.png) I looked up printDocument, printDialog and printPreviewControl from MSDN and got a few examples but …

Software Development c++ microsoft printer windows-api
Member Avatar for tinstaafl
0
350
Member Avatar for Echo89

Hello, I have been learning how to use the MS WinAPI, but their documentations is extremely vague in a lot of places, without information on the proper use of functions (PHP.NET manages this just fine!). But anyhoo. When I handle the WM_DRAWITEM message, it SHOULD display an image on the …

Software Development c++
Member Avatar for Echo89
0
1K
Member Avatar for lo0lo0999

Hi everyone I want some help in my paint application, I am using pictuerbox to draw on it but in the last day my requirement is change that the user want to open an image and do all the functionality on it.. I try to open an image but when …

Software Development image vb.net
Member Avatar for tinstaafl
0
116
Member Avatar for hussain_786

i need help to implement genetic algo on C#...the idea is take 10 number inputs from user then generate a chromosomes according to input kindly help me as soon as possible plz reply soon

Software Development
Member Avatar for Ketsuekiame
0
105
Member Avatar for l.worboyz

As part of my Uni course i have been given code to edit to create a MineFinder (mine sweeper) game. I have 3 seperate classes to create this game. But for now, my problem lies with this "MineFinderModel class... the tasks i am struggling to complete is as follows: > …

Software Development java
Member Avatar for JamesCherrill
0
154
Member Avatar for london-G

Hello, I have build my application and now that I am trying to run the jar file by double clicking on it nothing happens. I tried to access it from my terminal(mac OS) using this line: java -jar "C:\Users\Me\NetBeansProjects\BS1\dist\BS1.jar" But get the following error: Unable to access jarfile Can anyone …

Software Development java
Member Avatar for london-G
0
363
Member Avatar for Perry31

Hi, I have jpeg image of JFIF type, i want to read jpeg image, decode it and finally i want to display this image in a screen. Could anyone explain me the parsing of jpeg binary data for decoding and encoding? Thanks in advance

Software Development c
Member Avatar for Moschops
0
165
Member Avatar for jingoria

Hi guys, I am bit puzzled with a requirement on my program: Say I have a class A with some private variables class A { private: string variabe; }; Then I have class b with some other private variables class B { string varialb1; }; Now I have a class …

Software Development c++
Member Avatar for Banfa
0
270
Member Avatar for juan.sancen.7

I have some problems in my program. I have to read info from input files and display a message. This is what I have: #include <iostream> #include <fstream> #include <iomanip> using namespace std; void Printing(ofstream& outFile, int& percentFat); void Percent(float& fatGrams, float& cal, float& fatCal, int& percentFat); int main() { …

Software Development c++
Member Avatar for deceptikon
0
216
Member Avatar for murnesty

I read a sample code from a development kits. The global array is declared without indicating the array size. I wonder is it safe? Here is the code: #include <stdio.h> // For Used Function printf // UART Buffer char uart0_buf[]; // "sprint" UART[0] Buffer char uart2_buf[]; // "sprint" UART[2] Buffer …

Software Development c
Member Avatar for deceptikon
0
143
Member Avatar for krystosan

in the code from mox example on their page [[http://code.google.com/p/pymox/wiki/MoxDocumentation](http://code.google.com/p/pymox/wiki/MoxDocumentation)] where does PersonDao comes from ? import unittest import mox class DaoUnitTest(unittest.TestCase): def setUp(self): # Create an instance of Mox self.person_mocker = mox.Mox() def testUsingMox(self): # Create a mock PersonDao dao = self.person_mocker.CreateMock(PersonDao) # Return a value when this method …

Software Development python
Member Avatar for krystosan
0
242
Member Avatar for Kalpeshk9967

hi i m making a c# app which reads data from ms accesss & display it in textbox i have tried the following method but that didn't worked suggest me smthing or correct my code pls myconn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\nature bliss\Desktop\Stock\section1.accdb;Persist Security Info=False"); try { OleDbCommand cmd = new …

Software Development display microsoft-access open-source
Member Avatar for Ketsuekiame
0
258
Member Avatar for game06

so i got finally done with make my player move right and left, and 1st level. now i want to make my player shoot bullets. i kind of now logic behind it but i need some help. and please let me know if you have a better method of bullet …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for coolnezz

Hello C# experts! can't figure it out. obviously i'm missing something. here is part of my code: private void button1_Click(object sender, EventArgs e) { dataGridView1.ColumnCount = 5; dataGridView1.Columns[0].HeaderText = "Payment #"; dataGridView1.Columns[1].HeaderText = "Monthly Payment"; dataGridView1.Columns[2].HeaderText = "Amount to Interest"; dataGridView1.Columns[3].HeaderText = "Amount to Principal"; dataGridView1.Columns[4].HeaderText = "Remaining Balance"; double …

Software Development
Member Avatar for coolnezz
0
414
Member Avatar for fonzali

hi , I have found vegaseats codes and tutorials helpful for biginners , how can I collect them in the pdf format?

Software Development pdf python
Member Avatar for fonzali
0
160
Member Avatar for jeremywduncan

Hi again all, I have been tussling with this program all day. I can't seem to get pickle.dumps (or f.write..tried that earlier) to save without saving over itself. If I do a deposit(option 1) and then a withdraw(option 2), and then history(option 3), it only shows the last option ran …

Software Development python
Member Avatar for woooee
0
271
Member Avatar for ImZick

Hi i finally done my first project and thanks to those who help me here in daniweb. Special mentions @Reverend Jim and @TnTinMN. But when i run the setup to install it in another computer which is a 64bit. My project didnt connect to the database which is access. But …

Software Development vb.net
Member Avatar for ImZick
0
217
Member Avatar for brandon66

Hey guys i was just wonder how i would do this; i need to supply a value for Counts() in the triples function how would i do this to check all values in the array? Private Counts() As Integer = {two, three, four, five, six, seven, eight, nine, ten, eleven, …

Software Development vb.net
Member Avatar for brandon66
0
97
Member Avatar for Djmann1013

I am having a bit of trouble with converting a string (url) into a Uri. Here is the screenshot of the error: http://www.imgbomb.com/i/d15/3bk3v.png Here is the code that is giving me trouble: Private Sub ComboBox1_Change(sender As Object, e As EventArgs) Handles ComboBox1.TextChanged Dim myString As String = ComboBox1.Text.ToString() Me.WebBrowser1.Navigate(New Uri(myString)) …

Software Development vb.net visual-basic
Member Avatar for TnTinMN
0
2K
Member Avatar for ralph.d.abernathy.1

Hello all. I'm writing a program that converts from any cominbation of base 2, 8, 10, and 16. So far I have this code and I want to convert from hexadecimal to octal but it doesn't work. I would appreciate any help. Thank you! Here is the code: #include "stdafx.h" …

Software Development c++
Member Avatar for Nutster
0
503
Member Avatar for sk8ergirl

I'm using visual studio C# I have gridView and I checked enable selection I have radioButtonList with two values when the page load I want the cloumn with the selection to be hidden, but when the user choose one of the radioButton the selection column will be visbale Here is …

Software Development visual-studio
Member Avatar for ddanbe
0
127
Member Avatar for terrier_unknown

hy guys can you please tell me what s wrong with the folowing code float a,b,c; printf("input three numbers:\n"); scanf ("%f%f%f",&a,&b,&c); float z=sqrt((1/2)*(pow(a,2.0)+pow(b,2.0)+pow(c,2.0))-(3/4)*pow(a,2.0)); printf("res is %f",z); getch(); return 0;

Software Development c
Member Avatar for terrier_unknown
0
113
Member Avatar for tyler.dahle

void runGame(){ readimagefile("PIX\\Landscape.jpg", 0, 0, 800, 800); while(1 == 1){ moveCharacter(); //moveMonster(); } } void moveCharacter(){ int move = 0; int size = imagesize(0, 0, 800, 800); void *background = malloc(size); getimage(0, 0, 800, 800, background); readimagefile("PIX\\Character\\down_still.gif",x9,y9,x9+50,y9+50); thunderClaw(); //specialAttack(); //thunderball(); if(kbhit()){ if(getch()== 'd'){ move = 1; } if(getch()== 'a'){ move …

Software Development c++
Member Avatar for tyler.dahle
0
200
Member Avatar for sgw

The number D computed by the following polynomial formula D=(pow(i,5.)/120)-(pow(i,4.)/12)+(23*pow(i,3.)/24)-(83*i*i/12)+(571*i/30) should always be an integer, when i=1,2,3,4,5,.... However, for some i values, each separate term may not be an integer, but when putting together (with additions and subtractions) in the above formula, any non-integer parts would be "cancelled out", and …

Software Development c++
Member Avatar for sgw
0
162
Member Avatar for VIPER5646

Hi all I have multiple checkboxes to be used as the status of a certain order. another words as the order is being processed the user will check the status and a date will be inserted into an access table. Now my isue is when a checkbox is checked for …

Software Development sql vb.net
Member Avatar for VIPER5646
0
420
Member Avatar for tubzz

impliment the selection sort algorithm to sort the elements in a two dimentional array of order 3*4 in descending order. the program should prompt the user to input 12 element, sort and display the elements in the matrix format.

Software Development algorithm c++
Member Avatar for tubzz
0
423
Member Avatar for tony75

Hi I would like to write the script that produces at least 6 encrypted password using crypt module and save them in a file called password.txt but I get error? and How can I add more than 6 encrypted password ? import crypt import random, string password = input("Please ender …

Software Development encryption python
Member Avatar for tony75
0
663
Member Avatar for engrjd91

Hello i m the student of B.E ( Computer Systems ) .. i have to submit my Final year project proposal within 1 month.. my teachers had concerned me to work on android.. but being an engineer student they want a hardware based project from my side.. i have to …

Software Development android android-development java
Member Avatar for <M/>
0
115
Member Avatar for krystosan

I wrote this function earlier to set the priority if the items in listwidget, however what I think would be more pythonic is to write get and set priority method... how should i proceed with writing the method in a pythonic way ? def changePriority(self,direction): """ Reorder the items in …

Software Development python
Member Avatar for woooee
0
240
Member Avatar for SHINICHI

I need a little help on writing the following program: Use the Account class to simulate an ATM machine.Create ten accounts in an array with id 0, 1,. . . 9, and initial balance $100. The system prompts the user to enter an id. If the id is entered incorrectly, …

Software Development java
Member Avatar for untio
0
907

The End.