132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aluhnev

Hi,i used this example for practicing,supposed to be easy one,but,abit confusing. Can you help to solve and point to mistakes i've done. Postman Pat became bored one night at the postal sorting office and to break the monotony of the nightshift, he carried out the following experiment with a row …

Software Development c++
Member Avatar for Lerner
0
731
Member Avatar for Dudestreet

Hi Team, I understand that there are numerous number of Articles with the following Title and I should have gone through them before posting but believe me, I've done it all. Either way, I'm not getting to a solution. Hope I get some help here.. # So Here is the …

Software Development open-source vb.net
Member Avatar for oussama_1
0
299
Member Avatar for moaz.amin.37

when we create a thread like this class Run implements Runnable{ public void run(){ //You code } } class Helloworld{ public static void main(String args[]){ Thread t1=new Thread(new Run()); Thread t2=new Thread(new Run()); } } in above code thread t1 and thread t2 is creating in `main()` method its mean …

Software Development java multithreading
Member Avatar for JamesCherrill
0
274
Member Avatar for davidbr

Hi, I have this def update_labelain0_val(self): val=get_ain0() self.labelain0_val.set(val) self.labelain0.config(bg="#32CD32") #0-12.9v -> 0-6000N valain0=float(val) valain0_calc=valain0*6000/12.9 valain0_calc=int(valain0_calc) self.labelain0_calc.set(valain0_calc) self.labelain0calc.config(bg="#FF8C00") threading.Timer(0.1, self.update_labelain0_val).start() return This is part of a class which update a label in a window. It is working fine. My problem is : how can i give a variable name o this …

Software Development python
Member Avatar for Gribouillis
0
220
Member Avatar for rose_2

well .. i found out that python is easy language prog. for beginner like me .. but at 1rst am looking for some advices from proff. programers and i found some videos by Dr.Andrew N.Harrington from chicago on http://anh.cs.luc.edu/python/hands-on/ ..

Software Development python
Member Avatar for Schol-R-LEA
0
374
Member Avatar for kingk110

Hello I was asked to show relations between data in a graph. For example object0 is related to object1 and object2 object1 is related to object 2 object2 is related to object0 and object1 object3 is related to object 1 then the graph will be as shown here [Click Here](http://postimg.org/image/ewn4i6prh/) …

Software Development wordpress
Member Avatar for kingk110
0
288
Member Avatar for game4tress

I need to change the background image of a button that is declared in xaml, like this: <Button x:Name="btnBorder" Content="Moldura" Width="80" Height="80" Margin="10,6,10,6" Click="btnBorder_Click" > <Button.Background> <ImageBrush ImageSource="/Images/arrow-expand.png" AlignmentX="Center" Stretch="None" x:Name="imgSourceArrow" /> </Button.Background> </Button> and I'm trying to change the ImageSource of the ImageBrush. For that, I'm using this code …

Software Development asp.net gui html-css image
Member Avatar for tinstaafl
0
2K
Member Avatar for gil.nickson

Im having a problem here, i dont know where to start, im just a begginner i already finished my window forms in visual studio and now i want to connect it to my ms access database, i dont know what to do. Please help.

Software Development vb.net visual-studio
Member Avatar for Santanu Das
0
242
Member Avatar for Tlotleng

Like the title says; Why would you want to make class objects (instances of a class) instead of built in types parameters of a function and in C . E.g. Why do this: class Person { public: void SetAge(Person &Age); instead of this: class Person { public: void SetAge(int iAge);. …

Software Development c++
Member Avatar for Neuman
0
284
Member Avatar for munchlaxxx

How can you view the values of the registers in Visual Studio? I think they should appear in the Output section at the bottom of the screen. I'm using Visual Studio 2013 for Desktop.

Software Development assembly visual-studio
0
112
Member Avatar for Stefce

Hello i have a little problem over here im trying to make a mouse listener and on mouse click the ball to come to the mouse pointer... i have maked a small "game" which is not bunch of confusing code... i have maked the ball to be controlled by the …

Software Development image java java-swing
Member Avatar for Stefce
0
2K
Member Avatar for funnym3

I have a problem with my vb payroll project. When I click the Edit Button a msg pop-up saying that "Input string was not in a correct format." and when click the Delete button, msg is "Fatal error encountered during command execution." I tried to change the values of @g …

Software Development c#
Member Avatar for funnym3
0
569
Member Avatar for Deep Modi

Hello guys, I want to know how to convert the JPG file into the WAD file ? the thing is not common as all. its not about to change extension, I need it to convert it as like "HI tag Converter" or "Decal Converter" or "wally" tec... I just google …

Software Development vb.net
Member Avatar for Deep Modi
0
3K
Member Avatar for Shibbir Khan

I have this function and everything works until a and b both equal 1. When that happens the carry bit is going to 2 when its supposed to be only 0 or 1. Is my algorithm wrong for the carry bit carry_bits |= ((a & mask) & (b & mask)) …

Software Development algorithm c++
Member Avatar for Moschops
0
206
Member Avatar for Suzie999

In my windows forms application, I start a thread to do some work. I need to be able to pause what that thread is doing without having to restart the whole thread or start a new thread. I have some code but somehow it does not look thread safe. It …

Software Development
Member Avatar for JOSheaIV
0
129
Member Avatar for Fo.katia

Hello guys, I really need help with this one. Can you please help me create a program in Python that displays information about a rectangle of any size. Input: two mouse clicks for the opposite corners of a rectangle Output: Draw the rectangle. Print the perimeter and area of the …

Software Development python
Member Avatar for vegaseat
0
3K
Member Avatar for OnEaglesWingsjf

What's wrong with: def project_to_distance(point_x, point_y, distance): dist_to_origin = math.square_root(point_x ** 2 + point_y ** 2) scale = distance / dist_to_origin temp1= point_x * scale temp2= point_y * scale print temp1, temp2 print project_to_distance(2, 7, 4)

Software Development python
Member Avatar for vegaseat
0
340
Member Avatar for shammi.khan.73

Right now I'm trying to create an oppish translator. That is, after a consonant or several consonants in a row, you add 'op' to those letters. As an example, cow would become copowop or street which would become stropeetop. This is what I have so far: def oppish(phrase): #with this …

Software Development python
Member Avatar for Gribouillis
0
379
Member Avatar for laavanya

What does this mean ? Statement st=con.CreateStatement(); how method of Statement interface is accessed by Connection interface reference con ? please help me to understand the concept...

Software Development java
Member Avatar for JamesCherrill
0
365
Member Avatar for shahera.arafat

**this is the code and it keeps giving me a red line under (z=v2*v1),,please help me finding the mistake :( :( thanks ^_^ #pragma once using std::cout; using std::cin; using std::ostream; using std::istream; class vector{ public: friend ostream& operator<< (ostream&,vector&); friend istream& operator>> (istream&,vector&); friend vector operator*(vector &,vector &); vector(void); …

Software Development c++
Member Avatar for shahera.arafat
0
206
Member Avatar for ndowens

I am trying to learn C++. I wrote a little calculator using class to see if I can do it and give some practice. The following is the code: [CODE]#include <iostream> using namespace std; class Calculator { float a, b; public: float add(float, float); float subtract(float, float); float multiply(float, float); …

Software Development c c# c++
Member Avatar for egidijus.aranauskas
0
4K
Member Avatar for ice23

Hi im just a new here and Im hoping that you can help me. Im having a problem in my project and I cant find any solution in the internet thats why i am hopeful that in this forum somebody will help me. this is my codes Private Sub cmdupdate_Click() …

Software Development visual-basic
Member Avatar for ice23
0
319
Member Avatar for Trle94

Hello, does anyone know how to read .exe file and put into textbox info from adress 0x61AA04 example? and to allow me to edit in textbox and save?

Software Development
Member Avatar for Trle94
0
233
Member Avatar for lewashby

I'm trying to add /home/garrett/bin/libpy/ to my python path so I can import my own libraries, I would also prefer not to overwrite the default python path but rather append my own path to the default. When I try to `echo $PYTHONPATH` or `$PYTHONHOME` I get nothing and even if …

Software Development python
Member Avatar for Gribouillis
0
705
Member Avatar for aluhnev

Hi,i used this example for practicing,supposed to be easy one,but,abit confusing. Can you help to solve and point to mistakes i've done. Postman Pat became bored one night at the postal sorting office and to break the monotony of the nightshift, he carried out the following experiment with a row …

Software Development c++
Member Avatar for aluhnev
0
380
Member Avatar for Bensjariou

Windows ViSTA - HP Pavilon Entertainement PC (Under windows XP and 2002 IBM PC, no problem) The problem is I get error 3170 and error 3051 when I define a workspace as I show in the code tested I need a solution I will appreciate very much.

Software Development visual-basic windows-vista windows-xp
Member Avatar for Bensjariou
0
568
Member Avatar for kegs88

Hey guys im trying to work on this assignment i have. I am new to programming and this is my third assignment. Any help would be appreciated. Im not sure if im on the right track or not. here is what i have to do: allow the user to enter …

Software Development c c# c++
Member Avatar for ddanbe
0
2K
Member Avatar for glao

Hello , why am I taking : > > *** glibc detected *** ./run: double free or corruption (out) #include <stdio.h> #include <stdlib.h> void func1(int **A ) { *A = (int*) malloc( 2 * sizeof(int)); for (int i = 0; i < 10; i++){ (*A)[ i ] = i; //printf("\nA …

Software Development c
Member Avatar for glao
0
882
Member Avatar for Jeroen Mathon

I can't see to wrap my head arround the meaning of this error. Its becouse im converting integer functions to character functions. src/dataio.cpp: In function ‘char* getName(char)’: src/dataio.cpp:118:17: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] readUser(uid); ^ src/dataio.cpp:60:6: note: initializing argument 1 of ‘void readUser(char*)’ void readUser(char* uid) ///Reads …

Software Development c++
Member Avatar for Jeroen Mathon
0
181
Member Avatar for schzatprodn

here my script, please help me to resolve it :D thanks #include<stdio.h> #include<stdlib.h> #include<string.h> #include<float.h> int main() { /* KAMUS */ /* volume gas ideal = V=nRT/P -R= 8.314 P: tekanan (Pa/ N/m^2) = 8.5 V: volume ruang (m^3) n: jumlah mol gas (kmol) = 1.5 R: tetapan umum gas …

Software Development c
Member Avatar for schzatprodn
0
9K
Member Avatar for Jonathan_7

Hello I am an absolute begginer and am working on a paint calulator program. I am trying to return the price from the paintformula ex: price = paintFormula(wallArea,price,height,length,width); or paintFormula(wallArea,price,height,length,width);. When I call the method I keep getting errors like: PaintCalculator2.java:33: error: variable price might not have been initialized. import …

Software Development java
Member Avatar for JamesCherrill
0
166
Member Avatar for johnt68

Hello After two days of struggling I have come for some help. I have a listview of contact names that I want to search with text added into a textbox. It can either filter these as the text is entered or by a button search ... I haven't got anywhere …

Software Development listview
Member Avatar for keskin
0
4K
Member Avatar for flash121

Hello, I got an animation on my form, which is done using the onpaint method and invalidate (with constant updating of the moving object's position ofcourse). Later on, i put a background image on the form and since then im having performance problems with my animation. If im not mistaken …

Software Development image
Member Avatar for Fandi_1
0
1K
Member Avatar for gbhs

Hi to all, I have to preview dataset data using printdoc and my code is below. Upon clicking the Preview button the preview dialog displays fine with data. when I close the preview dialog then click the preview button the data is not diplayed. weird behavior to me. what should …

Software Development dataset vb.net
Member Avatar for Santanu Das
0
586
Member Avatar for skiboy209

Hello, I have been learning SDL through a set of tutorials [here](http://lazyfoo.net/tutorials/SDL/index.php). The program was able to bring up the image for each key that I had added. After adding code to omptimize the images the window pops up but shows no image and if I press a key it …

Software Development c++ image queue
Member Avatar for JasonHippy
0
357
Member Avatar for chubbyy.putto

a program to count the number of occurrences of words in a passage. The program will read white-space separated words from a file, convert all words to a single case, and remove any non-alphanumeric characters from both ends of the words. It is to count the number of each word, …

Software Development c file-system
Member Avatar for uonsin
0
212
Member Avatar for Silfro

Hi I have a problem with converting a struct.. I got 2 different structs but they have the "same" data. Struct1: struct sStruct1 { BYTE Base1; WORD Base2; float Base3; } Struc2: struct sStruct2 { BYTE* Base1; WORD* Base2; float* Base3; } Now I the problem: I have data inside …

Software Development c++
Member Avatar for uonsin
0
260
Member Avatar for asdsadddsadsd

Hi how can i arrange these numbers in acending and descending order? #include <iostream.h> #include <conio.h> main(){ int n1=0; int n2=0; int n3=0; int n4=0; int n5=0; int n6=0; int n7=0; int n8=0; int n9=0; int n10=0; int sum=0; float ave = 0.0; int highest; int smallest; float mean = …

Software Development c++
Member Avatar for uonsin
0
447
Member Avatar for DawnofanewEra

Hello, I got implementation of Data Encryption Standard implementation in java (internet code) but the only part that I cannot understand is the S-Box which shown below. I know how S-Box works but I don't understand this code especially &0x20 and stuffs like that. The S-Box takes a 6 bit …

Software Development encryption java
Member Avatar for rubberman
0
2K
Member Avatar for psichoman5

I have a problem with concatenate strings in pyhton. I need to concatenate the string clave and cadena_aleatoria(x) while cadena_inicio is minor than 256. This is my script: Any help? .Thanks! import sys import random x = random.randint(0,9) def cadena_aleatoria(x): cadena = [] cadena.append(x) while len(cadena)<10: x = random.randint(0,9) cadena.append(x) …

Software Development python
Member Avatar for Gribouillis
0
183
Member Avatar for Ritesh_4

Hi I have a code in java to generate a sitemap xml, and to get the last modified date using the following line of code: `oPrint.println(" <lastmod>"+ doc.getLastModified().toString()+"</lastmod>");` The output in the browser when calling the xml file is `<lastmod>23/05/2014 16:48:24 ZE4</lastmod>` which is in "dd/mm/yyyy"format. However, from this link, …

Software Development google java xml
Member Avatar for Ritesh_4
0
792
Member Avatar for aluhnev

//HI,need help to extract info from text file and display. //Here is my text file called Report.txt 01 09 2014 john 3.4 12.5 9.5 02 09 2014 freddy 3.4 12.5 9.5 03 09 2014 conor 3.4 12.5 9.5 04 09 2014 mike 3.4 12.5 9.5 05 09 2014 john 3.4 …

Software Development c++
Member Avatar for tinstaafl
0
476
Member Avatar for James_30

Would it possible to get sample build.xml file with imports a properties sheet. Or links to good build file structure and maybe a example of a good file system to maintain? I am dl the ant manual now. Anything that pertains to eclipse and ant would help me get started. …

Software Development xml
Member Avatar for James_30
0
162
Member Avatar for Sadiiiiiiiiee

hi i need help with my class assignment we're suppose to create a 4*5 grid, two player and three enemies. the grid is made up of coordinates and i am not allowed to use arrays. To start the game the players must enter their names and then go to (0,0). …

Software Development c
Member Avatar for cgeier
0
227
Member Avatar for javed.iqbal.3979

This worked for a txt/zip file download but if i want to save/download video/audio file.How to move ? //Two textboxes used here, //1.to take URL //2.to get saving location on drive private void downloadbtn_Click(object sender, EventArgs e) { WebClient myWebClient = new WebClient(); string path; path = this.savePath.Text; Uri tmp …

Software Development audio video
Member Avatar for cgeier
0
285
Member Avatar for kayleigh0411

There are no errors when I compile the program, but when I run it and use the "Enter" or "Clear" buttons, they do not work. ----jGRASP exec: java IncomeTax Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at IncomeTax.enterJButtonActionPerformed(IncomeTax.java:182) at IncomeTax$1.actionPerformed(IncomeTax.java:125) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6525) …

Software Development java java-swing
Member Avatar for stultuske
0
2K
Member Avatar for DkgMarine

hey guys, so i just started learning java and had some error in my first array code. Error: Could not find or load main class Being. I use eclipse if that helps, because i read that these problems might be that ecplise cannot find the class, so just making sure …

Software Development java
Member Avatar for stultuske
0
171
Member Avatar for DkgMarine

hey guys, -So in case 2, i'm trying to have the user to input elements (N,Y,P,D,G) only with specific Array location. I used switch inside a switch, but how do i re-loop if he enters wrong elements? -in case 3, i'm trying to print the whole 2D array, but the …

Software Development java
Member Avatar for oussama_1
0
1K
Member Avatar for Bhoot

First of all, the keylogger that i am developing is not at all for offensive and destructive purposes. :) I am developing a client monitoring application in C#.NET. Keylogging is one of the features in my application. Though i have developed the code for the keylogger, i have not been …

Member Avatar for Jay Cox
0
230
Member Avatar for rathiikk

hello sir,good morning am creating one pos software ,i have done all my designing and coding its working fine in my system ,i kept my db in inside debug-->bin section but after created as a software application and when am using any other system it is showing the db path …

Software Development asp.net vb.net
Member Avatar for Mr.M
0
235

The End.