132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for new_developer

Hi there, How to set vector size in Class ? I have set vector size at time of daclaration but it does not work. And should we have to deallocate vector memory in destructor ? #include <iostream> #include <vector> //included to use vector using namespace std; class VectorDemo { private: …

Software Development c++
Member Avatar for Moschops
0
542
Member Avatar for VKG147

So I was learning python from "Learn python the hard way" in python3 (my preferance) (I also tried everything in the 2nd python) and when I came across "Parameters, Unpacking, Variables" I was stuck for good. When I type in exactly the same thing as he does: from sys import …

Software Development python
Member Avatar for Schol-R-LEA
0
743
Member Avatar for m4mukulgarg

Hi all ive been thinking of a writing a compiler in java for my final year project. I have started to browse the net for help but to be honest its confused rather than helping me to get a clear image of what I would like to do. Ok.. let …

Software Development java web-browser
Member Avatar for Schol-R-LEA
0
558
Member Avatar for Hussain_3

i have exe file generated by the Compilation of C++ program now I want to pass arguments to the generated exe file through C# and save all of the output of exe file on a .txt file this is What i have done so far public static string RunCmd(params int[] …

Software Development c# c++ file-system
Member Avatar for tinstaafl
0
1K
Member Avatar for surya55

Hi all, for the below code: class A{ } class B extends A{ } why we extends 'A' class to inherit the properties in 'B'? Here we can use, class B{ A a = new A();//to get properties of 'A' class } why should we go for inheritance by using …

Software Development java
Member Avatar for stultuske
0
180
Member Avatar for silent lover

how to auto logout an apps when user did not touch the screen for at least 2 minutes? i add this to AppDelegate.m : - (void)sendEvent:(UIEvent *)event { [super sendEvent:event]; // Only want to reset the timer on a Began touch or an Ended touch, to reduce the number of …

Software Development iphone objective-c
0
178
Member Avatar for shroomiin

Hi. I have here a script which I had acquired from the net. I have tested it in a lab environment and it seems to accomplish my task perfectly. That being- to list each server in the domain, its services and the account the service runs under. Problem is- I …

Software Development open-source shell-scripting vbscript
Member Avatar for chriswelborn
0
167
Member Avatar for Somnath_1

I am trying to get two input from a file . #!/bin/bash echo "enter clientname" read clientname echo print|nsradmin -s $clientname -p390113|egrep 'NetWorker version|IP address'>> output_$clientname the content of the file would be : $ cat test_new1 NetWorker version: 7.6.3.2.Build.860; IP address: xxx.xxx.xxx.xx; I want to grab "IP address:" to …

Software Development shell-scripting
Member Avatar for chriswelborn
0
215
Member Avatar for NewCoder_31

I have a textbox, and what I want to do is to AUTO CONVERTI NUMBERS ENTERED IN TEXTBOX with a two decimal values?....Is this possilbe guys?....Example: 2 textboxes A and B, after entering 1222 to textbox A, it will automatically change to 1,222.00...Help here will be highly appreciated...Thanks

Software Development
Member Avatar for NewCoder_31
0
209
Member Avatar for ramsha.shahid.3139

Hi all, I am working on simplest web browser import socket mysock=socket.socket(socket.AF_INET,socket.SOCK_STREAM) mysock.connect(('www.py4info.com',80)) mysock.send('GET http://www.py4inf.com/code/romeo.txt HTTP/1.0\n\n') while True: data=mysock.recv(512) print data mysock.close() It's returning error 408:Request timeout at one time and at other runs smoothly but with incomplete output as: HTTP/1.1 200 OK Date: Sun, 14 Mar 2010 23:52:41 GMT …

Software Development apache python web-browser
Member Avatar for chriswelborn
0
378
Member Avatar for tortillisgroup

I believe that employing agile and lean techniques is very effective. It is very usefull for all projects either it is software or website or any other project if you agree or disagree give your reviews with proper reason.

Software Development agile-development
Member Avatar for Hiroshe
0
132
Member Avatar for R0bb0b

Hi, I am a PHP developer that has been put on a Java project and am trying to apply the same principles with new ones that Java provides and am stuck. I have successfully instantiated a class with a variable class name, which contains a constructer that has one parameter. …

Software Development java
Member Avatar for R0bb0b
0
174
Member Avatar for Nebil

Hi, I wanted to update a table in access db using right outer join.I created a temp table,copy the structure from the destination table and used it to store values from an excel file.And using right join tried to update the destination table making the temp table as a source.It …

Software Development vb.net
Member Avatar for Nebil
0
168
Member Avatar for aone.gaiemoabi

you are to write a Java program that asks the user to enter the following 4 numbers one at a time: 4.34 , 2.39, 1.34 0.9. Thereafter the is to print all the numbers back onto the screen followed by the average of the four numbers. Finally it should print …

Software Development java
Member Avatar for Slavi
0
152
Member Avatar for nhrnjic6

how to write definition head for a template function that returns enum. I got a template funciton List<List_entry>::print_List(){code..} but I dont get how to return an enum. My current head is : template<class List_entry> List<List_entry>::Error_code List<List_entry>::put(const List_entry &x){code..} but it errors me that I need 'typename' before 'List<List_entry>::Error_code' because 'List<List_entry>' …

Software Development c++
Member Avatar for nhrnjic6
0
303
Member Avatar for soche123

Hi guys how are you? I am having tough time extracting data from the ms database. I have three rows. WHat I want to do is the extract data from these three rows and pass to labels and display in the frame. But I'm stuck on the first one. my …

Software Development java
Member Avatar for llaspina
0
253
Member Avatar for Mafiasays

Hello everyone. I was wondering if somebody could solve this problem for me. I have a bot that is required to refresh and grab back times here is the code for that task : def findNST(html): NST = re.findall(r'<td id="nst">(.*) am', html) if NST == []: NST = re.findall(r'<td id="nst">(.*) …

Software Development python
Member Avatar for Mafiasays
0
784
Member Avatar for bananacat

My code goes as follows: private void btnChangeImg_Click(object sender, EventArgs e) { using (var openFileDialogForImgUser = new OpenFileDialog()) { string location = null; string fileName = null; string sourceFile = null; string destFile = null; string targetPath = @"..\..\Images"; openFileDialogForImgUser.Filter = "Image Files (*.jpg, *.png, *.gif, *.bmp)|*.jpg; *.png; *.gif; *.bmp|All …

Software Development file-system
Member Avatar for JOSheaIV
0
161
Member Avatar for theashman88

Hi I'm creating a code for my class and what I'm trying to do is to create a triangle class that is derived from abstract class TwoDimShape. However; when I create the triangle class and use base as a variable I get an error. My teacher wants us to use …

Software Development
Member Avatar for deceptikon
0
317
Member Avatar for Emmanuel_2

Below is a Python program I wrote to draw lines as many al there are mouse clicks. However, I wanted all the line segments to have the same attributes (eg: color, width etc), but that's not happening - only the last segment has my desired attributes. I am a beginner …

Software Development python
Member Avatar for vegaseat
0
289
Member Avatar for soche123

int counter; counter=1; rs = statement.executeQuery("SELECT * FROM Quiz WHERE SrNo=counterr");

Software Development java sql
Member Avatar for stpatrck
0
109
Member Avatar for mark103

Hi guys, I need your help, I'm working on my vb.net application as I want to click the button on the webpage when i click on the form button, but I'm having a problem with click the button on the webpage as it will do nothing when i click on …

Software Development vb.net
Member Avatar for mark103
0
224
Member Avatar for NewCoder_31

I have a program, and what I am thinking to add is the printing feature...I used the MS WORD connection to connect vb texboxes to msword receipt template i made, and it works fine....Is there any other way for this without exiting vb like i did?....Is there any approach for …

Software Development
Member Avatar for ddanbe
0
95
Member Avatar for Aya_3

can you please help me, how can i read a wav file byte by byte and then play this file without using PlaySound Function. any help ?

Software Development c++
Member Avatar for mike_2000_17
0
289
Member Avatar for Steve_19

I was studing the ant task dirname. I am in over my head understanding this animal. It suggests to me that I could use build.properties and or build.xml properties . The same possibility arises in java code and I benefited greatly by loading xml properties. In the ant enviornment is …

Software Development java
Member Avatar for Steve_19
0
169
Member Avatar for rianbattle

I'm somewhat new to deploying ClickOnce manifests, first off. I know the basics of how to publish to an app server, which then lets every use the newest version (after setting to check for updates before running the application). We have multiple VB.Net applications stored on our app server, that …

Software Development open-source oracle vb.net
Member Avatar for rianbattle
0
263
Member Avatar for Chem_1

what is the difference between this packages in Eclipse?Im beginner in java which package should i download. Luna Packages Kepler Packages Juno Packages Indigo Packages Helios Packages Galileo Packages Ganymede Packages Europa Packages

Software Development ide java
Member Avatar for jwenting
0
182
Member Avatar for diliupgabadamudalige

Is there any way to encrypt/decrypt all image files and audio files with python storing them in a password protected file and then retrieving them again without slowing donw the decryption part?

Software Development audio encryption python
Member Avatar for diliupgabadamudalige
0
208
Member Avatar for cambalinho

how can i build a typedef with variadic operator? what i mean is that i need build these: typedef std::function<void(void)> Event;//works fine, but for any parameters typedef std::function<void(...)> Event; //no errors Event test(int x, int y)=[](int x, int y) { int a=x+y; string b=tostring(a); MessageBox(NULL,b.c_str(),"hello",MB_OK); }; in these sample i …

Software Development c c# c++
Member Avatar for cambalinho
0
1K
Member Avatar for myk45

Hello All, I want to convert a markdown file to its equivalent HTML programatically and Iam looking for a way to do this properly. I would need a script that converts the markdown file into proper html.I'am aware of Doxygen which generates these .md files to hmtl just with a …

Software Development html-css perl
Member Avatar for pritaeas
0
212
Member Avatar for kanaly.john

Write a program in c/c++ that add two numbers which are between 3000000 and 5000000. the result should be shown as "number 1 + number 2 = result

Software Development c c# c++
Member Avatar for Sam_6
0
121
Member Avatar for myk45

Hi All, 1)It's easy to create a window in QT that the user can resize, but when they make the window bigger, all the contents stay where they were in the top left hand corner. They don't grow with the window. 2)Also when the window is launched the size of …

Software Development c++ qt
Member Avatar for myk45
0
5K
Member Avatar for sam289312

i have a question regarding a program I am making. please can anyone guide me? i want to add text of two buttons. is that possible?

Software Development c#
Member Avatar for JorgeM
0
89
Member Avatar for Jjajangmyeon

OK - I'm stumped I'm filling a 2D arraywith inputs, then when it hits the first function - for some reason the very first value in the array is being changed to -5 If I comment the function out, it's fine - it gets passes and passed back with no …

Software Development c++
Member Avatar for Jjajangmyeon
0
247
Member Avatar for henryz_box

I have a button with action listener. When action is performed I call a method to show a label with my message using: Actionperformed(){ ShowMessage(); PerformAction(); } NOTE: This code is just an example. The problem is the message never shows even though the action is performed. Any help will …

Software Development java
Member Avatar for henryz_box
0
343
Member Avatar for PinoyDev

Good day! I just want a little help on how to add the textbox data onto the datagrid when a button is click? I have 3 textboxes(txtname,txtaddr,txtcontactno) and a datagrid with 3 columns(Name, Address, Contact #). When a button is clicked, the data of the 3 textbox shouls be transferred …

Software Development visual-basic
Member Avatar for Hamza Saleem
0
320
Member Avatar for Clif40RD

I'm Having a problem with trying to figure out how to get my program to switch from one tab to another after a specific "Jbutton" is clicked. As displayed Below.

Software Development java
Member Avatar for llaspina
0
512
Member Avatar for mcroni

#i use python 3xx from tkinter import * from tkinter import ttk # i couldnt install PIL on my computer so I used Pillow. Hope you dont run into any problems import datetime import pickle ## init the variables here since i dont use objects in your code name = …

Software Development display gui python tkinter
Member Avatar for mcroni
0
724
Member Avatar for cambalinho

i'm buiding an image class, but i need some information... the C\C++ teach how read binary\text files... but not how the files are build like JPEG, PNG, GIF and others :( i can't find a page for give me the file struture and when i found it, i only see …

Software Development c c# c++ image
Member Avatar for mike_2000_17
0
559
Member Avatar for jthomas

I am trying to send data from a UITableView into any type of database. I have 2 questions. 1: What type of database should I use (ex. MySQL, access)? 2: How will I transfer the database from a table view to the type of database I should use? PS: Please …

Software Development microsoft-access objective-c
Member Avatar for bpp_distributor
0
481
Member Avatar for asardeen

I am exporting data from excel and show it in gridview and when I click submit, it needs to be updated in existing table. Below is my excel data S.No. RequestID Subdivision No Parcel No CUID Status Remarks 1 5 42 55 55 Open Pending I have successfully exported and …

Software Development dataset open-source sql
Member Avatar for JOSheaIV
0
339
Member Avatar for abaddon2031

SO i have a python code that collects xml data in a file then seraches the file for the scancode and once it finds that the scan code is there it starts scanning for the order number this is where im running into trouble at. What i want it to …

Software Development json python
Member Avatar for sneekula
0
478
Member Avatar for surferbloggy

Hi ,i have a contact form made with xib file it works but i can't change the background color of the view programmatically i tryed with this but nothing, i know how to put an image background but i need to change the color on the fly how can i …

Software Development objective-c
Member Avatar for surferbloggy
0
1K
Member Avatar for Joemeister

I have troubles trying to display a list of items/objects in a array. What I'm doing is I'm adding students with a name, surname, age, and marks for subjects (Properties) to an array. If I added 4 students in this manner to the list I want to display all the …

Software Development
Member Avatar for Joemeister
0
294
Member Avatar for annain

Hi, I want to develop RFID access system. I create a user database using Microsoft Access.When system and connection are ready, user will swap the card on the RFID reader and the card id will show on retrieve data column. The card id will use to compare with the data …

Software Development microsoft-access visual-basic
Member Avatar for Qing _1
0
2K
Member Avatar for 2384443

Hi, evry1.. i need yur help.. i want to place an image as my background.. how am i supposed to do it..?? i have tried this `setBackground("C:\\image\\background.jpg");`i also tired this `Icon m1 = new ImageIcon("C:\\New folder (5)\\background.jpg");lb1.setIcon(m1);` But none of this is working.. what shuld i do???

Software Development html-css image java
Member Avatar for raj.mscking
0
395
Member Avatar for Patrick_3

Hello everyone, I am attempting to make a custom control similar to a tooltip however I am not sure exactly how to produce the effect I desire. My goal is to have a popup, which is shown when the mouse hovers over a control, that contains some message and is …

Software Development vb.net
Member Avatar for docfnt
0
810
Member Avatar for itexamstube

i want to develop my website so i want to know what programming language is the best PHP or VB.NET?

Software Development php vb.net
Member Avatar for rubberman
0
487
Member Avatar for lewashby

I'm reading a book on C and it's telling me how to use gcc and about the -c option/flag. It reads "-c Compiles to an object (.o) file instead of an executable. This is important for creating library files." What is an object file and how is this good for …

Software Development c
Member Avatar for rubberman
0
144
Member Avatar for Roisin

Hi, I am working on an assignment in c# where I have to maintain student scores...there is a few questions up here already about it but I am still having problems. I need to create a program that allows the user to enter student names and scores... I gather I …

Software Development
Member Avatar for JOSheaIV
0
558

The End.