132,726 Archived Topics
Remove Filter ![]() | |
Hi, I know i am asking a question which can be googled and find lot of explanation. I have actually gone through many but none explained the ownership property completely. > Mutex is acquired by some process, only that process can unlock it how the other process/thread know that the … Software Development c | |
I am trying to build a simple app that calculates the farenhit to celsius converter. Here is my code.. from gi.repository import Gtk, GObject class DemoWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="Demo Example") self.set_size_request(300, 400) vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6) self.add(vbox) self.entry = Gtk.Entry() self.entry.set_text("Enter Farenhit") self.button1 = Gtk.Button(label="Calculate") self.button1.connect("clicked", self.on_button1_clicked) vbox.pack_start(self.entry, True, … Software Development python | |
#include <Stdafx.h> #include <iostream> #include <stdlib.h> #include <time.h> #include <math.h> using namespace std; int rand_0toN1(int n); int hits[10]; int main() { int n; int i; int r; srand(time(NULL)); // set seed for random numbers cout<< "Enter number of trials to run "; cout<< "and press ENTER: "; cin>> n; // … Software Development c++ | |
Hi guys, I need to parse JSON data from an HTTPS protocol so I downloaded and integrated libcurl into my VS2010. Everything works fine and sample codes work fine when I use "http" protocol. However, a CURL error keeps coming out when I try to read from "https" protocol.... The … Software Development c++ http-protocol json | |
When I print a document from my Delphi 2007 program I quite often get a message "Printing in progress " and printing is aborted. Only part of the page is printed,not always identical part,but close. When closing the message I get "Access violation at address 004FEEC5 in module........read of address … | |
So i made another Code in C in which i am making a program to stop working when the Licence has ended. The Program Runs but lets say the date its suppose to end on June 20, 2012 so it triggers the Stop of use of the program. This is … Software Development c | |
public class ForLoop { public static void main(String[] args) { String writtenStuff = "Hello i am bucky bucky"; int otherNum = 0; int length = writtenStuff.length(); int i; for (i = 0; i < length; i++){ if (writtenStuff.charAt(i) == 'b') continue; } }//end method }//end class Here is my code, … Software Development java | |
Hi ive been given some question as part of a homework assignment, just to clarify i dont want the answers to the questions just advice as to where to look for resources. The Socket programming model and how that model works in Java, explaining clearly how Sockets support a simple … Software Development client-server java socket-programming | |
I havent done java in a while and not sure what to do with the void methods please can someone help me out thanks whole thing is in a zip file as well done in bluej as there is a long list of code here. /** * class Player * … Software Development audio file-stream gui java java-swing user-interface window-manager | |
public static void main(String[] args) { String searchMe = "Look for a substring in me"; String substring = "sub"; boolean foundIt = false; int max = searchMe.length() - substring.length(); test: for (int i = 0; i <= max; i++) { int n = substring.length() int j = i; int k … Software Development java | |
Ffirst of all, i have just achieved to code a program that counts the chosen letters. ( For example, i wanted it to count how many 'p's exist in the string. ) Now, for example i want to code a console application that extracts only the ones that are not … Software Development java | |
public class ForLoop { public static void main(String[] args){ String writtenStuff = "someone was here!" + "here i am!"; int numP = 0; int length = yazi.length(); for (int i = 0; i < length; i++){ if (yazi.charAt(i) != 's') continue; ++numP; }//for end System.out.println("the total number of the letters … Software Development java | |
I'm trying to get the first row in each worksheet to be shaded and have the font bold. Right now, I am able to get the first worksheet changes made, but none of the other worksheets within the same workbook are being changed. Here is what I have written so … Software Development vb.net | |
C++ Programming The file attached contains the instructions. This is what I have done so far. It outputs the contacts from the file. I need help by tonight. Please Help!!!! I have all the tokens on the vector token. I want to create a Contact with those tokens Ex: Contact … | |
Hi, I have one perl script for comparing two text file entries. But its not working according to my expectation. Its comparing line by line, not like comparing one entry to the complete file. I like the script to be compare all the entries irrespective of line by line comparison. … Software Development file-system perl | |
This program is one part of the GUI part for my reminder program. I would like to update the JTable which shows all the task and will refresh every 2 second. I have questions... (1)the SwingWorker never executes( I put println in the code but it shows nothing ) How … Software Development gui java java-swing storage | |
Hi , Help me to convert flowchart to pseudocode . Thanks Flowchart in PDF : http://www.4shared.com/office/FgnhUYgw/Project_Full_Flowchart.html | |
the assignment to create 4 classes to make message server i made the code but i have an errors Software Development java | |
Hi, I am running Java 1.6.0_31 on my machine and would like to have "Nimbus" set as the default look-and-feel for my Java applications. I have followed the instructions obtained from the Oracle java website i.e. by creating a text file named **swing.properties** with the following line of code **swing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel** … Software Development java java-swing oracle | |
I get this error. /*array dimension missing new ImageIcon [] = getClass().getResource(name[0]),*/ ^ and I dunno what's missing. and not sure if anything else is wrong because for now there are 4 erros for name[0],name[1],name[3],name[4] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.Container; import java.io.IOException; import java.io.*; import java.awt.BorderLayout; import … Software Development java java-swing | |
Hi! I'm working with word through my c++ application. And I want to read some documentation about available opportunities. I see some piece of code of some paticular situations (to add a picture, to add text, to save file, to fill table) in forums, but I want to observe all … Software Development c++ | |
Hi all I've been struggling with this one for some time now and I would realy appreciate some help. I have a string which gets data from mssql server, reader collects data (among others also "person) SQLStr = "select * from tablename order by id desc command = New System.Data.SqlClient.SqlCommand(SQLStr, … | |
I have started a database application just like an address book, however I would like to have the user to upload a picture that will show when the user click save. Any idea? Thanks alot Software Development java | |
Hi guys, How to sort hashtable keys in ascending order. I have 5 keys 1,2,3,4,5 and respective values are 10,7,8,6,9,5. but when i am displaying records it shows like this..... foreach (DictionaryEntry entry in srque) { MessageBox.Show("Key === " +entry.Key); MessageBox.Show("Value ===" +entry.Value); } the output i am getting like … Software Development | |
Back on my form with a ton of financial data entry textboxes but I want to have the data formatted at runtime, as I enter the data. I have a format declared as Public Const cFmtCurrency = "##,###,###" ' don't need decimal for the local China currency What would be … Software Development vb.net | |
Hi all, I am attempting to assign values to a multidimensional array but am having difficulty. This isn't the exact code that I'm using, but the idea is this: for(int T=0; T<5; T++) { array[T][3][4] ={{4,2,6,4},{5,2,5,3},{6,3,1,5}} } For all T from T=0 to T=4, assign the same values shown above. … Software Development c++ | |
Hi, I am trying to delete data from dataGridview, and update my Access database, but I am having trouble withe these code it keep stated that I have "Object not set to an instance of an object" and I don't know where my code went wrong, please help, I am … Software Development dataset microsoft-access vb.net | |
Hello xD First : Im new to c# stuff Im having some windows form app. I read data from datagridview(iv puted in from table..works fine) and i should write it to table in database.. My insert statment doesnt do nothing.. private void button3_Click(object sender, EventArgs e) { int amorplanid = … Software Development open-source | |
I'm new to vb so it is no surprise that I am stuck. I have this code and it runs as it should but I get a the Error "Run-time error '91: Object variable or With block variable not set". How can I fix this and have it continue on … Software Development vb.net ![]() | |
Hi all, I have to interface an IC which is giving serial output bitwise from a single pin this pin is directly connected to a microcontroller i have to read this single pin to an unsigned int. i have written a function something like that but its not working. unsigned … | |
Hey guys, I'm trying to use mpi4py on my mac but I'm running into some problems. I'm just trying to get it up and running by running a simple helloworld program that runs on different processors. When I run the command 'mpiexec -n 2 python helloworld.py' I'm getting a very … Software Development python | |
public class Main{ public static void main(String[] args){ User u1 = new User("My Super Ex-Girlfriend", 5734); User u2 = new User ("Morad", 5734); User u3 = new User ("Fatma", 5734); Network n = new Network("Telecom international", 5734); Message m = new Message ("My Super Ex-Girlfriend", "Morad", "My heart in pain", … Software Development java ![]() | |
i have a function that is supposed to check a string against a set of types, stored as a hash set in the class o. however the function only works if there is one word. if the string conmtains more than 2 words, my program crashes with NullPointerException. public static … Software Development java | |
Hi Recently I had the following error occur when the CImg destructor is called, 0xC0000005: Access violation. It occurs at the end of the function unwrapFilteredImage when the destructor is called and I have traced it to the point where inImage is being destructed. The first thing that is destructed … Software Development c++ | |
I was creating a program using vb.net on visual studio. Unfortunatley when I closed out I save it in a way where all of my developer coding was erased. Luckily I still have the debugging file, but it won't allow me to see the form developer or design view (which … Software Development vb.net visual-studio | |
[Sample Project](https://skydrive.live.com/?cid=e4d7ee6214fdc062&id=E4D7EE6214FDC062%21120) Excuse me. I am a new vb programming and my enlish is not well. A link on top is my sample project. I have to try hard to fix it. But i have no idea how to fix. If you download my project and run it. When you … Software Development vb.net visual-studio | |
#include <iostream> #include <string> #include <cmath> #include <math.h> #include <algorithm> #include <cstdlib> using namespace std; int main() { string names[10]; int score[10]; for(int scores = 0; scores < 10; scores++) { cout << "What is your score? "; cin >> score[scores]; cout << endl; } int swapHolder = -1; int … | |
a simple c++ program for an adress book that adds contact, stores the contacts and searches for the contact... it should have only one class called class addy_book..i called a constructor and am stuck coz i don't know where to go from here #include <iostream> #include <fstream> using namespace std; … Software Development c++ | |
How to provide auto size re-ajustment in java design i.e when vb.net form are expanded then it automatically expand the button and textfield appropiatly like nothing changed... while in java every thing messes up... Any Suggestions. Software Development java | |
i have a Qt code writed in C++ . i want translate it to python code, but i have a problem in 4 code line: all code is: void TableView::print(QPainter* painter, const QRect& area) { const int rows = model()->rowCount(); const int cols = model()->columnCount(); // calculate the total width/height … | |
import javax.swing.JOptionPane; import java.text.DecimalFormat; public class payrate { public static void main(String[] args) { String str; String name; double horasT; // horas trabajadas double rate; // rate por hora double salarioB; // el salario bruto name = JOptionPane.showInputDialog ("Entre le nombre del empleado: "); do { str = JOptionPane.showInputDialog("Entre las … Software Development java java-swing | |
im having trouble with this oledb commands im just a starter using this commands why can i not add to a microsft access is my insert declaration wrong can i give my code just for you to check it if something is wrong? Software Development | |
hey guys, im building a small prediction software, the GUI is in PHP and i want to do the data crushing in C. (sequence, matrix and multiple variables isolation) i know the basics in C, but im no C expert. Is it possible to pass from C to PHP other … | |
Hello, I would like to get some help please. I am a newbie in Java and i am stuck. Actually I wrote a code in which i want to draw a circle and then move that circle downwards like free fall. I can deal with the coordinates but i don't … Software Development java java-swing | |
Hey Guys, Could someone guide me o show examples of how i can hit a url and find whether its dead or alive, well simply i want to monitor couple of sites incase they go down so if the site is returning me holding page or any other error i … Software Development java | |
Have some problems with the qt destructor. I'm working on QtCreator: here's the class: the .cpp #include "controller.h" Controller::Controller() { } Controller::Controller(MovieRepo *movrep, MovieValidator *movval){ this->movrep=movrep; this->movval=movval; } void Controller::addMov(int id, string title, string desc, string type)throw(ValidatorException){ Movie* mov=new Movie(id, title, desc, type); movval->validate(*mov); movrep->store(*mov); } const Movie* Controller::getById(int id){ … | |
i work with 3 more form. 2 form has no border. when i click a button a form is show. when i minimize main form the other form still show. but i want when i minimized main form all from will minimize what was open. Software Development visual-basic | |
![]() | Hi guys, I'm not sure how to enter new entries into an array that is full. scanf() allows us to input a number. array[i] allows us to put the number into the array The problem with int array[x] is that you have to define the number of values in the … Software Development c |
I use a book to learn Java ,and this book contains making a difference question in each end of the chapters. I finished chapter 5, which is all about if and switch statements and operands such as bitwise and logical and loops. Now, it asks me to create a quiz … Software Development java | |
public class NewClass { public static void main(String[] args){ int[] a=null; int p=0; int i=0; while(p<11){ a[i]=p; p++; i++; } } } what is wrong here.....here the array can not store data. Software Development java |
The End.