132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Subhradeep

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
Member Avatar for Gribouillis
0
2K
Member Avatar for Neko Chan

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++
Member Avatar for Neko Chan
0
159
Member Avatar for Jaspal_1

#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
Member Avatar for Jaspal_1
0
146
Member Avatar for Surendrasinh

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
Member Avatar for Surendrasinh
0
231
Member Avatar for NardCake

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
Member Avatar for NardCake
0
185
Member Avatar for goo_1

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
Member Avatar for vegaseat
0
328
Member Avatar for kiail

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
Member Avatar for JOSheaIV
0
177
Member Avatar for iFrolox

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
Member Avatar for iFrolox
0
122
Member Avatar for nitish.mohiputlall

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: "); …

Software Development c c# c++
Member Avatar for robsonminag
0
151
Member Avatar for zuki88

hello everyone i want to input ip like a char,then split into "127 0 0 1" so that i can scan ips for start ip to end ip. I tried with strtok spliting but program crashes when i do sprintf (buffer, "%s",pch[1]);

Software Development c++
Member Avatar for L7Sqr
0
324
Member Avatar for maheshmkkd

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++
Member Avatar for deceptikon
0
238
Member Avatar for uttkarshsing

I am not uderstanding difference between overiding andoverloading concept?

Software Development c++
Member Avatar for deceptikon
0
201
Member Avatar for Smalls

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
Member Avatar for JOSheaIV
0
4K
Member Avatar for codemonster

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
Member Avatar for irum.nageen.3
0
14K
Member Avatar for alina.nazchowdhury

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
Member Avatar for rishif2
0
217
Member Avatar for mhieyo

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
Member Avatar for oussama_1
0
296
Member Avatar for VUEKID

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
Member Avatar for VUEKID
0
130
Member Avatar for vishal anand.s

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
Member Avatar for rishif2
0
1K
Member Avatar for fugio

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
Member Avatar for fugio
0
174
Member Avatar for Alessandrorenzi

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
Member Avatar for Alessandrorenzi
0
719
Member Avatar for elie.karkafy
Member Avatar for oussama_1
0
514
Member Avatar for laklaker

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++
Member Avatar for deceptikon
0
187
Member Avatar for coolioschmoolio

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++
Member Avatar for deceptikon
0
515
Member Avatar for techxaidz

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
Member Avatar for techxaidz
0
326
Member Avatar for mcoliver88

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
Member Avatar for mcoliver88
0
256
Member Avatar for kalo150

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
Member Avatar for Schol-R-LEA
0
102
Member Avatar for ahmed.talha.16

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
Member Avatar for jwenting
0
318
Member Avatar for kirtee2209

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
Member Avatar for Ketsuekiame
0
389
Member Avatar for drieran

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 …

Software Development c ubuntu
Member Avatar for drieran
0
246
Member Avatar for elie.karkafy

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
Member Avatar for oussama_1
0
352
Member Avatar for Smith6969

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 …

Software Development display java
Member Avatar for JamesCherrill
0
190
Member Avatar for dancingdophie

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
Member Avatar for javanoobcoder
0
272
Member Avatar for jordaninc

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
Member Avatar for Reverend Jim
0
165
Member Avatar for Suzie999

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++
Member Avatar for Suzie999
0
1K
Member Avatar for H_beginner

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++
Member Avatar for rubberman
0
156
Member Avatar for H_beginner

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++
0
84
Member Avatar for joester007

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
Member Avatar for Begginnerdev
0
171
Member Avatar for oussama_1

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 …

Member Avatar for oussama_1
0
6K
Member Avatar for krystosan

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
Member Avatar for krystosan
0
283
Member Avatar for kyle.mace.35

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++
Member Avatar for kyle.mace.35
0
197
Member Avatar for vivosmith

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
Member Avatar for mKorbel
0
372
Member Avatar for woochoi24

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 …

Software Development algorithm java
Member Avatar for JamesCherrill
0
3K
Member Avatar for RHNation

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
Member Avatar for Lardmeister
0
4K
Member Avatar for mavtcr

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
Member Avatar for mavtcr
0
140
Member Avatar for ange1991

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 ..

Software Development c c# c++
Member Avatar for ange1991
0
122
Member Avatar for Benjamin_4

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 …

Software Development java mysql
Member Avatar for Benjamin_4
0
3K
Member Avatar for CodyOebel

**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
Member Avatar for Ancient Dragon
0
401
Member Avatar for rwe0

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
Member Avatar for rwe0
0
242
Member Avatar for bright.silva

@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
Member Avatar for bright.silva
0
153
Member Avatar for Alvin_2

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
Member Avatar for deceptikon
0
167

The End.