132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for krystosan

I am using Python 2.6 with ide and i created a list with names `names = 'mark', 'raymond', 'rachel', 'matthew', 'roger', 'judith', 'charlie', 'melissa', 'betty']` and then set `names = nmls` so even if I update names, nmls gets updated... however if I do `names = deque(['raymond', 'rachel', 'matthew', 'roger', …

Software Development ide python
Member Avatar for Lardmeister
0
210
Member Avatar for josh.culley.31

I'm stuck writing some code for an intro programming class. I'm pretty sure the mistake is probably that I mixed integers with strings trying to get a result, but I'm just not sure which code I need to replace after messing with it all day and getting many different traceback …

Software Development python
Member Avatar for woooee
0
6K
Member Avatar for shhhhhh14

Help me with writing a program that calculates the average value of the elements of a 1- dimensional array of size N.

Software Development c
Member Avatar for rubberman
0
103
Member Avatar for alice.cooper.18659

I am currently trying to pull high,low, and closing stock data from Yahoo finance, and graph it using Turtle. I was able to pull the data from the url into a list but I can't figure out how to graph it. I know the dates have to be the x-axis, …

Software Development finance python
Member Avatar for alice.cooper.18659
0
200
Member Avatar for Daigan

`LDA C031 MVI B, A LDA C032H ADD B STA C033H HLT` Okay so I made a program that add two numbers in 8085 AL but I keep getting 0A on C033 whatever I put in C031 AND C032. Help, please? Thanks!

Software Development assembly
Member Avatar for rubberman
0
97
Member Avatar for Decode098

This Programs is a Simple Calculator that usses Arrays and pointers. Currently a freshman student and im completely lost on the errors i keep on getting #include<stdio.h> #include <conio.h> main() { clrscr(); int num1[5],num2[5],sum[5],*n1,*n2,x; char oper[4],*o; *n1 =num1[5]; *n2 =num2[5] *o = oper[4]; oper[0] ='*'; oper[1] ='+'; oper[2] ='-'; oper[3] …

Software Development c
Member Avatar for cproger
0
321
Member Avatar for tomz6

Is it possible to store data to CPU memory, if so how much memory can I store and how? Say I wanted to store an array, about 6MB in size?

Software Development c++
Member Avatar for rubberman
0
242
Member Avatar for gelmi

Hi, i just don't know why does this program is wrong, the problem is if I choose 1 and 3 . after I choose choice no.1, I enter the employee id and name nothing happens after that, same as choice no.3 which I will enter the employee id to find. …

Software Development c++ file-stream ios
Member Avatar for rubberman
0
167
Member Avatar for terabyte

Many string functions seem to work without the null byte... is it necessary to add it all the time? and my second question, does scanf %s automatically ads the null byte?

Software Development c
Member Avatar for deceptikon
0
143
Member Avatar for tanmay.majumdar2

#include <cstdlib> #include <ctime> #include <iostream> #include<conio.h> #include<string.h> /* time */ using namespace std; char square[10] = {'o','1','2','3','4','5','6','7','8','9'}; void box(); void player1_won(); void player2_won(); void fu(); int main() { srand((unsigned)time(NULL)); int abcd[45]; char type[34]; string data[56]; again: string x[3], z="sayTanmayRoxx", p; char f, g; int a; int d; cout<<"enter password\n"; …

Software Development c++
Member Avatar for rubberman
0
219
Member Avatar for dreday92

I am having a few compiling errors due to the syntax confusion on some the functions, Im confused to what im doing wrong, I know its a simple solution I've just been looking at this for hours and cant figure it out. //Header File #ifndef BST_H #define BST_H #include <iostream> …

Software Development algorithm c++ programming-construct
Member Avatar for rubberman
0
268
Member Avatar for ireallyneedhelp

ok guys i really need help my friend asked me to help him with his assignment can help me at least give a guide where and what to do? Accept the month. Accept the name of each staff. (Assume that there are only 5 marketing staffs) Accept the number of …

Software Development c++
Member Avatar for rubberman
0
189
Member Avatar for elmousa

I am in the process of writing a program for our department as follows: We have about 40 field directorates in addition to the central department. Each field directorate has its own LAN and is connected to the central department through our WAN. I need to write a program that …

Software Development c++ lan-wan
Member Avatar for elmousa
0
255
Member Avatar for safian123

Hey guys how you doing, When i try to add a record through my application i get an error message there is no row at position 0 here is the code any help would be appericiated: Dim con As New OleDb.OleDbConnection Dim dbprovider As String Dim dbsource As String Dim …

Software Development open-source vb.net
Member Avatar for safian123
0
190
Member Avatar for ppstyle

I am making a windows based application in visual studio 2010 using VB. My project starts with a splash screen and a brief welcome splash then opens the main mdi form. The menu in the mdi form has the link to open all the other modules. My question is- How …

Software Development vb.net visual-basic visual-studio
Member Avatar for Begginnerdev
0
186
Member Avatar for tomz6

Does anyone know of an easy way to get the computer to do separate tasks for each core? Assuming each task has no memory collisions etc. how can I get each core to work on it's own separate block of code?

Software Development c++
Member Avatar for mike_2000_17
0
203
Member Avatar for johans22

import logging ... log1 = logging.getLogger() How can I find out what is the file name + path used for logging?. Like to find that out from anywhere the logging is accomplished. also, for plotting, plot.xticks(), I like to create a range to force beginning tick, the ending tick and …

Software Development python
Member Avatar for johans22
0
153
Member Avatar for Lindsey1211

Hi, So i'm trying to write a program that will work like a credit card database. The instructions say to add a file with 10,000 names that was given to us and add it to our project file. a scanner is suppossed to read through that file and add each …

Software Development java
Member Avatar for stultuske
0
283
Member Avatar for Qonquest

I'm going through a netbeans tutorial on Java ecommerce located here: http://netbeans.org/kb/docs/javaee/ecommerce/setup-dev-environ.html When I get to "running the web project, step 1", I click the green run button in the NetBeans IDE. In my browser, it goes to http://localhost:8080/AffableBean, but no HTML is displayed. If I view the admin domain …

Member Avatar for javanoob101
0
191
Member Avatar for Divinedar

Can anyone help. I have the following code: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 7 Then MakeHyperLink Target, "Q:\" End If End Sub Option Explicit Private Files As Dictionary Private StrFile As String Dim StrFlePath As String, FleCollection, fle, f1, fs, f2, subfld Sub MakeHyperLink(InRange As Range, …

Software Development file-system visual-basic
Member Avatar for Divinedar
0
352
Member Avatar for shredder2794

Hello all, I have a MKMapView that is having a very strange problem which is kind of hard to explain. I have an MKOverlay that is saved between sessions by saving the points of the overlay to a file and loading the overlay in viewDidLoad. So here's the problem: Steps …

Software Development ios ipad iphone objective-c
0
177
Member Avatar for riahc3

Hello Dont ask why but lets say I want to encrypt "hello" and the encrypted forum is "238324" I want to do: String avariable=dcrypt(238324); //avariable should now hold hello public string dcrypt(String encryptedtext) { //do decrypt stuff return descriptedtext; //decriptedtext should be hello } Basically thats what I want.....Dont care …

Software Development java
Member Avatar for JamesCherrill
0
720
Member Avatar for Ashenvale

Hi everyone! I'm trying to display the logo for a particular supplier but I always end up with an error picture. here's my code: Imports System.Data.OleDb Imports System.Data Public Class SupplierDetails Dim objConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Cristy\Desktop\InventorySystem\InventorySystem\inventory.mdb") Dim objDataAdapter As New OleDbDataAdapter( _ "SELECT Supplier, ContactPerson, PhoneNumber, FaxNumber, " & …

Software Development dataset vb.net
Member Avatar for TnTinMN
0
119
Member Avatar for Kristjon

1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 0 T 0 1 S 0 0 1 1 1 0 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 …

Software Development algorithm c
Member Avatar for Moschops
0
123
Member Avatar for Lindsey1211

Hi, Im trying to write a program that uses a .txt file to fill an arrayList of type Customer (A class that I made.) and then using that ArrayList to perform other functions within my Customer Database class. when I test my method, nothing is being added to the ArrayList …

Software Development java
Member Avatar for javaAddict
0
187
Member Avatar for Yorkiebar14

Hello, So I'm trying to make a program to auto bump my facebook posts. I have made it log in etc but there is no 'post' button on facebook, you have to press enter on the keyboard. How can I make the program press enter in the box and make …

Software Development asp.net html-css vb.net visual-basic
Member Avatar for Begginnerdev
0
244
Member Avatar for tbanisida

Hai Friends This is Bency. I need a help for type a word in textbox in tamil word in c#.. Advance thanks

Software Development c#
Member Avatar for geniusvishal
0
932
Member Avatar for PreethiGowri

I have written a code which used to send data that was saved in my mysql database, through ethernet using UDP protocol, everything worked fine until i sent fewer data(25 rows), when i started sending data in huge amount(100 rows) it used to display Java Result: -1073740791 and would stop …

Software Development java java-netbeans microsoft mysql
Member Avatar for PreethiGowri
0
327
Member Avatar for terabyte

seems like I never need malloc to allocate memory dinamically when it comes to strings example: int main(void) { char *str; puts("keyword:"); scanf("%30[^\n]\n",str); printf("%s",str); } I never defined str size, yet it works sorry if this is a stupid question it's 2 am and I'm studying for some c quiz …

Software Development c
Member Avatar for sepp2k
0
117
Member Avatar for game06

i want to set a collision on my tile map using getBounds function. level class int map[][] = { {2, 0, 0} {1, 1, 0} }; 2 = player 1 = ground 0 = sky i want to set collision so player cant go though ground. so he should fall …

Software Development java
Member Avatar for JamesCherrill
0
355
Member Avatar for savedlema

Hi friends! I got one puzzle. I wonder if there is a way I can create a table but get a table name from a value of the textbox/combo box control. Does anyone have an idea? I mean something like "CREATE TABLE (TextBox1.Text) (".....)" I wonder if that is really …

Software Development mysql puzzle vb.net
Member Avatar for RvSon
0
661
Member Avatar for major_lost

Some time ago, Reverend Jim gave me some good advice on dynamically creating controls with VB.net. Following the advice, I created 26 Labels (with text A-Z) and a event handler for the click event of the labels. Now I need to determine WHICH label was clicked and the text of …

Software Development vb.net
Member Avatar for major_lost
0
359
Member Avatar for greyfox32

In my Advanced Data Structures class we have an assignment to implement a linked list using arrays. One array holds the data item, while another contains a reference to the next item. I'm not really sure about how to add/remove items. // **************************************************** // Reference-based implementation of ADT list using …

Software Development java linked-list
Member Avatar for greyfox32
0
1K
Member Avatar for ImZick

Hi this code is to fill up my Combo1 Item which is came from my Table1 .Combo_Main_AM.Items.Clear() Dim da As New OleDbDataAdapter("Select * from Table1", con) da.Fill(dt) For Each myRow In dt.Rows .Combo1.Items.Add(myRow.Item(0)) Next so it will add up the combo1 Jessie James Nick now the question is how can …

Software Development vb.net
Member Avatar for ImZick
0
214
Member Avatar for flebber

Hi I was doing an exercise in the Real Python book. It gave a task of simulating a coin toss "I keep flipping a fair coin until I've seen it land on both heads and tails at least once each – in other words, after I flip the coin the …

Software Development python
Member Avatar for flebber
0
2K
Member Avatar for dinesh012

hi i have problem with my VB.net program I have a form and 3 GroupBox in the same form. i want go next 2 GroupBoxes afther Clicking the Next Button.. Can you Help me ? plz.. GroupBoxes1 to next GroupBoxes2 next GroupBoxes3

Software Development vb.net
Member Avatar for ImZick
0
177
Member Avatar for deadsolo

Hi there everyone, I am having some difficulties getting a regular expression to work. I have a line of text with 5 numbers.I want to ignore the first number, and grab the other 4 numbers. Here is what the text I am dealing with looks like. 1681 12.33754513 7.066246057 6.079261254 …

Software Development java regex
Member Avatar for deadsolo
0
289
Member Avatar for mferarri

In main method which should I use? CarOwner owner = new CarOwner("Danni", "123456789"); or CarOwner owner = new CarOwner(); owner.setName("Danni"); owner.setPhoneNumber("123456789"); I know how to make both work, I can edit the class file to suit whichever way it is written in the main method. But what do people do …

Software Development java
Member Avatar for mferarri
0
331
Member Avatar for Martje

I am having a dialog box opens that lets you select a picture and then copy that picture to another folder but the problem is that i am having an error that says that i can't convert a System::String to a LPCTSTR. I searched this subject on google but i …

Software Development c++
Member Avatar for Suzie999
0
316
Member Avatar for mical700

I have problem reading file form command line. I am trying to do " abcd: ./rev < numbers", but it gives me an error: ./rev < numbers Usage : ./rev FILENAME Here is the code: #include <stdio.h> #include <stdlib.h> void reverse(FILE * file) { int fscanf_return_value; char x; /* read …

Software Development c file-system
Member Avatar for mical700
0
369
Member Avatar for cupin06

The program i want to code is user will enter 2 ebook title,edition,year and pages.After that must write to binary file and read the binary file again to found the book with the highest pages.The first problem is why i cannot use this statement. printf("Enter ebook title: \n"); scanf("%s",mybook.title[i]); I …

Software Development c file-system
Member Avatar for Ancient Dragon
0
206
Member Avatar for Mireya B.

Hello, I am new here. I would like to ask opinion from you guys on what are the best options available for me to develop a database system using Visual basic? I am using Visual Basic Express Edition. My problem: I am currently developing a toolkit that needs the user …

Software Development microsoft-access vb.net visual-basic
Member Avatar for Reverend Jim
0
226
Member Avatar for dinesh012

hi i have problem with my VB.net program I have a form and 3 GroupBox in the same form. i want go next 2 GroupBoxes afther Clicking the Next Button.. Can you Help me ? plz.. GroupBoxes1 to next GroupBoxes2 next GroupBoxes3 using same Next button

Software Development vb.net
Member Avatar for Dili1234
0
103
Member Avatar for jmartzr1

Hey everyone, I am having trouble on this one practice problem. It is a question that requires another question I already completed to solve this one. The qusetion is "Implement a method allPerfect() that takes an integer parameter end. The method prints every perfect number from 1 to end. Use …

Software Development java mathematics
Member Avatar for JamesCherrill
0
541
Member Avatar for herbiebill

I have migrated my Oracle Developer 6i Forms and Reports to Oracle Developer 11g. Everything works fine except three of my batch report applications. They generate 300 to 400 reports each, which in 6i were stored (in pdf format) in a Windows network folder. From the folder they were emailed …

Software Development oracle pdf unix
Member Avatar for herbiebill
0
141
Member Avatar for solomon_13000

I wanted to verify is this a good example of a flyweight design pattern: package com.flyweight; public interface Chemical { String getName(); String getSymbol(); Double getAtomicWeight(); } package com.flyweight; import java.util.HashMap; import java.util.Map; public class ChemicalFactory { private static Map chemicals = new HashMap(); private static ChemicalFactory factory = new …

Software Development java web-design
Member Avatar for ~s.o.s~
0
190
Member Avatar for EjhayEspineli

Hello guys, I'm new to vb 2010 and it screws me alot... can you please help me to code my login form containing 2 textboxes: usrn and pass. my database **Account** has two columns, namely Username and Password... one thing is, I thought it was the same as Vb 6.0, …

Software Development vb.net
Member Avatar for Begginnerdev
0
283
Member Avatar for waleed.makarem

Gentlemen, I have an issue regarding collecting address data from webpage (telephone directory with have name,address,phone, speciality and Map location). I need to do vb.net application that collects all of these data to my application. The issue i face now is to read extract teh html code to names, Also, …

Software Development vb.net
Member Avatar for Begginnerdev
0
265
Member Avatar for Papa_Don

Group, I've got several textboxes within a form that are set to link to a data column that are set to accept a "null" (blank) value. However, these columns are formated to receive numeric data. When the user bypasses entering anything within those textboxes (as they should do), what is …

Software Development vb.net
Member Avatar for RvSon
0
387
Member Avatar for Rasool Ahmed

Hi guys, As you know the Internet divided into private network and public network, the public IP which include to public network is accessible and private IP which include to private network is inaccessible due to Internet network. So, I decided to use one of public servers have windows servers …

Software Development
Member Avatar for Rasool Ahmed
0
328

The End.