132,726 Archived Topics
Remove Filter ![]() | |
![]() | I am using Debian Linux and Python 2.7 with PIL. I want to capture an image from a webcam and store it in a file. What are the ways in which this can be done? Also,I want to covert the captured image for modification using Scipy. What is the procedure.for … Software Development debian python raspberry-pi webcam |
am awredy maek a table wif MS.Access and i want to integrate it in borland c++ builder... and then i will do dat teh table can be found itz record which r true. if teh table awredy found which record dat r true sooooo it will show in c++ form … Software Development c++ | |
#include<stdio.h> #include<stdlib.h> struct tree { int info; struct tree * left; struct tree *right; }; struct tree *root=NULL; struct tree * insert(struct tree *root,int item); void display(struct tree *root); int main() { int a,b,c,item; do { printf("press 1 to enter an element,2 to display,3 to quit\n"); scanf("%d",&a); if(a==1) { printf("enter … Software Development c | |
Hello Developers, I Want to disable all computer Monitoring programs like TeamViewer when my winform application runs and enable it when my application runs.I want to prevent my application tracking so i need this. e.g. Suppose i already connected with other user with Remote Desktop program for some work.so he/she … Software Development | |
Right off the bat I will say this has absolutely nothing to do with Microsoft Visual Basic. Recently I've been practicing language design and development and I've written a few basic interpreters for calculator languages and such and I've decided for some more practice I want to write a basic … Software Development visual-basic | |
What i'm trying to do is writing Program that print the number of newlines,words and characters in counted file by python I'm lost and i do not how should i do it? that what i got so far infilename = input("Enter the name of the file:") infile = open ( … Software Development python | |
Hello, I have an issue I've been beating my head on a little. I have a list that I've made from an xml document and I'm trying to call that list and print it to console and run queries on it. So far nothing I've tried or searched and implemented … Software Development | |
Hello, I'm trying to read a .xml or create the .xml if it doesn't exist or it cant find a node/child. This is what I have so far: bool XmlErr = false; if (File.Exists(XMLPath)) { try { XDocument xDoc = XDocument.Load(XMLPath); } catch { XmlErr = true; } if (XmlErr … Software Development xml | |
Here is the question: Write a program containing a function that takes has 2 integer parameters x and y and returns the value of x^2 + y^2. My codes: #include<stdio.h> #include<stdlib.h> int Myfun(int x,int y); int main() { int n,p,k,sum=0; printf("Enter 1st integer: "); scanf("%d", &n); printf("Enter 2nd integer: "); … | |
Create Student class as an abstract class in C++. Inherit GraduateStudent and PostGraduateStudent and ResearchStudent classes from Student class. Define proper constructors, destructors and functions related to attendance and examination result. Make necessary assumptions wherever required. Software Development c++ | |
I am not uderstanding difference between overiding andoverloading concept? Software Development c++ | |
What im doing is creating a dll that parses xml documents located on the interwebs. The issue that im having is that the application that will use it freezes while the documents are retreived and parsed. So, im under the impression that i will need to utilize threading of some … Software Development | |
I'm trying to overload the assignment operator. The objective is to copy two linked lists. I copy the first element fine, but for some reason the second loop around I encounter a null pointer and my loop ends on me. My brain is fried from over-studying and I can't think … Software Development c++ linked-list | |
I need to finish a program, i found it in a book but the for statement is now finised. I don't know to finish it, anybody can help me, please? Private Sub Form_Load() For i = 1 To Screen.FontCount - 1 Combo1.AddItem Screen.Fonts(i) Next For i = 5 To 300 … Software Development visual-basic | |
i just want to display datagrid value to label but i am getting problem after passing ten line. Label1.Text = Me.DataGridView1.CurrentRow.Cells(0).Value.ToString.Trim Private Sub DataGridView1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGridView1.MouseClick Label2.Text = DataGridView1.CurrentRow.Cells(1).Value.ToString Label3.Text = DataGridView1.CurrentRow.Cells(2).Value.ToString Label4.Text = DataGridView1.CurrentRow.Cells(3).Value.ToString Label5.Text = DataGridView1.CurrentRow.Cells(4).Value.ToString Label6.Text = DataGridView1.CurrentRow.Cells(5).Value.ToString Label7.Text = … Software Development vb.net | |
I need help to store my data i read from a cvs file, how do i input it into my arrays and use it to manipulate in other #include <iostream> #include <iomanip> #include <string> #include <cmath> #include <stdio.h> #include <fstream> using namespace std; const int MAX_ARRAY_SIZE = 120; void getData … Software Development c++ file-stream | |
hi my name is vishal. i have been trying long to figure out to export data from vb6 using join queries in sql to ms word. here is my sample code i have tried: Option Explicit Dim dIsVisible As Boolean Dim inst As String Private Declare Function ShellExecute Lib "shell32.dll" … Software Development microsoft-access visual-basic | |
Hi all, I'm trying to create a control and command control them from the property, there are too many similar statements. I want to cage them in a group of properties, so I have created a class that contains the property and call them from the main property of a … Software Development | |
Hello I'm trying to connect my PC to remote PC with socket but I have error 40006. I'm sure that there is not connection. Here is code: SERVER .............. Option Explicit Dim iSockets As Integer Dim sServerMsg As String Dim sRequestID As String Dim Income() As String Private Sub Form_Load() … Software Development visual-basic | |
how to prevent using ALT F4 TO close a vb form Software Development vb.net visual-basic | |
Hello! I would like to ask if its possible to change the size of the array? For example, the user will input a characters then that characters will be counted and the size of the array will be change. For example of the output: Enter your name: Laklaker The size … Software Development c++ | |
Hello everyone I am in need of some help.. I thought that I did my assignment the way that my professor wanted but I just found out that he wants me to solve it differently. Problem: Given any amount of money expressed in dollars, and cents, this program computes the … Software Development c++ | |
Hi! I am beginner in Java Programming and I am currently working with a program that randomly populate 14 buttons with a letter based on a given set of words and if the size of the word is less than the size of the button, it'll just populate it with … Software Development java | |
Hi I am creating a quiz of 10 questions, using a string array. When the user clicks on the next button the next question follows. How do i set it up that when the user comes towards the end of the array the previous button changes to finish. I know … Software Development gui | |
this code have to print all the prime numbers from 1 to 100 but when i run it cmd crash #include <stdio.h> int main(){ int a,b,c,d; for(a = 0;a <= 100;a++){ d = 0; for(b = 0;b <= 100;b++){ c = a % b; if (c == 0) d++; if … Software Development c | |
Hello! Im new to the java. During creating a program Im getting a warning "@suppresswarnings( deprecation )". I wants to know why is that warning occur and how to avoid it. Software Development java | |
Hi. I have an application in C#. When installing the msi, the user is requested to input some values and these are entered in registry under HKEY_LOCAL_MACHINE\SOFTWARE\MyFolder. When running the application, the value is read from the registry location and the application uses these values for processing. This works fine … Software Development windows-vista-7-8 | |
Hi, I'm developing with a BeagleBoard Black (BBB) under Ubuntu using C. When the BBB is powered on I'm doing many time controlled tasks. My problem happens when NTP changes the clock and all my counters are not valid. Normally BBB starts with no date/time set, some seconds later (if … | |
i have a txt file that is exported from an attendance software as follow : Date Time s1 s2 EmpiD IN\OUT 07-24-13 12:23:52 001 07 0000020009 0300000000 07-24-13 12:24:02 001 07 0000020010 0300000000 between the columns of this txt file different spaces for example between date and time 1 space … Software Development vb.net | |
Im trying to take an amount of change, less than $1.00, but more than zero and display the number of quarters, dimes, nickels, and pennies that will be required to make that change. The output must be presented in a descriptive manner that resembles the English language with the following … | |
So I'm writing an event-driven program. The program is supposed to calculate checks and deposits, but the calculation comes out completely wrong. For instance, if i type 500 for initial balance, click 'entering a transaction', type 1 for checks, and type the amount 50 for transaction amount, the remaining balance … Software Development gui java java-swing | |
A program is needed that will prepare a tuition bill for the college. The input will consist of the student’s name, student ID number, the student’s state of residency (i.e., KY, IL, TN, etc.), and total number of credit hours for which the student has enrolled this semester. The printed … Software Development visual-basic | |
Trying to put inline functions in external file within project, and getting below errors. If I remove "__forceinline", then all is well. If I have the inline function in main cpp file and not in header, it is fine also. Is there a procedure to deal with this? file.h __forceinline … Software Development c++ | |
I am trying to create a program which adds substracts two matrices. Using switch statements. I am not sure that I am making the correct function calls. I ve been struck on this for two days looking for some guidance. Please see below my code. I am trying to create … Software Development c++ | |
I wanted to know if I can make the matrix size entered by the user dynamic. Currently I have fixed it as a 2*2 matrix. If I try making it a dynamic array it says the integer should be constant. #include<iostream> #include<iomanip> using namespace std; int input (); void output(int … Software Development c++ | |
As I was testing the game I noticed that when you try to guess another number for the second time and you guessed it right the "Game over, the correct guess is __" messagebox.show appears. Can someone explain what is wrong with this? Public Class SuperAwesomeGuessingGame Dim ranNum As Integer … Software Development vb.net | |
Hi I have access database with two tables With a Relationship i can insert records into the first table with no problems but when im trying to insert a record in the second table i got error message Error message : Syntax error in INSERT INTO statement. - Microsoft Office … Software Development microsoft-access microsoft-office open-source vb.net | |
import sys from PyQt4 import QtGui, QtCore class Example(QtGui.QWidget): def __init__(self, items=None): super(Example, self).__init__() self.items = items or {'India':['New Delhi', 'Bangalore']} self.initUI() def initUI(self): self.combo = QtGui.QComboBox(self) self.cbBox = QtGui.QComboBox(self) self.combo.addItems(self.items.keys()) self.cbBox.addItems(self.items[str(self.combo.currentText())]) self.combo.move(50, 50) self.cbBox.move(50,80) self.combo.currentIndexChanged.connect(self.onActivated) self.setGeometry(300, 300, 300, 200) self.setWindowTitle('Learning by practice') self.show() def onActivated(self): self.cbBox.clear() self.cbBox.addItems(self.items[str(self.combo.currentText())]) def main(): … Software Development python | |
Alright so I am trying to swap fstreams. I do not use c++11 so there is no swap function. Is there anyway I can swap the files 2 fstreams have open? Or is there a way to get the name of the file that the fstream has open? Software Development c++ | |
import java.awt.Point; import javax.swing.*; import java.awt.Graphics; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import javax.swing.JPanel; public class painttest extends JPanel { private int pointCount = 0; private Point[] points = new Point[1000]; public painttest(){ addMouseMotionListener(new MouseMotionAdapter() {public void MouseDragged(MouseEvent event){ if(pointCount<points.length) {points[ pointCount ] = event.getPoint(); // find point ++pointCount; // increment number … Software Development gui java java-swing | |
I have to convert it to using for loop from while loop. I don't know how to start with it :/ import java.util.Random; //to use the random number generator public class DiceSimulation { public static void main(String[] args) { final int NUMBER = 10000; //the number of times to roll … | |
def main(): print('Welcome to the Fast Freight Shipping Company Calculator for Shipping Charges') print() #constants for the shipping prices weight_one <= 2 weight_two > 2 weight_three > 6 weight_four > 10 weight_one_rate = 1.10 weight_two_rate = 2.20 weight_three_rate = 3.70 weight_four_rate = 3.80 #get the weight of the package using … Software Development python | |
Friends,I have made a programme where master datas are entered and updated in an Access database. In the database there are several Branches with three digit codes.Under each Branch comes several families with a unique number.I want to generate this uniqe number automatically.. To explain further BranchA with code 100,BranchB … Software Development open-source visual-basic | |
private void button4_Click(object sender, EventArgs e)//delete { conn.Open(); comm.Connection = conn; comm.CommandText = " DELETE FROM Table1 WHERE Fname =" + textBox1.Text + ""; dataGridView1.Update(); conn.Close(); } HERE AM UNABLE TU DELETE THE RECORD IN MY DB .. | |
Please how can i insert into two different tables in mysql using java. i tried this and its only for one table. so how can i insert into branches and items table simultaneously in the same code? try{ String sql = "Insert into asset_update (Date_Acquired,Item_Code,Serial_Number,Cost_Of_Acquisition,Estimated_Useful_Life,Depreciation_Start_Date,User,Status,Disposal_Date)values (?,?,?,?,?,?,?,?,?)"; pst=conn.prepareStatement(sql); pst.setString(1, ((JTextField)date_aquired.getDateEditor().getUiComponent()).getText()); String … | |
**Sure hope your still around Ancient Dragon your a life saver, and a great teacher** What I'm after-->I am trying to send a message to a button on the parent window-- Ok here's my problem. I am trying to automate an install for various applications. For my first automation process. … Software Development c operating-system | |
I am not sure how to do this, please let me know your suggestions. I want to have my python program be able to read the site I visit with a browser (firefox) separately. An example of useage would be this: In the browser log into my account (credit card, … Software Development python web-browser | |
@Gribouillis and other gurus in the house, i just did this code but seem i ssem to be having difficulties in modifying it to work the way i want it.Its a bit lenghty, pls pardon me because am still a beginner in python.This program prints out where a particular property … Software Development python | |
I am building an online-offline application. The offline applications db should be synchronized with online app db. What I have done so far is, built an offline app with sql ce as backend, and used timer to check whether internet connectivity is available in each 5 minutes. The issue I … Software Development |
The End.