132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for somjit{}

I saw a tutorial from a site where it showed the use of `ArrayBlockingQueue` as a thread-safe concurrent data-structure . Just for learning purposes , i tried to build something similar using synchronized and wait-notify methods in java. I'm hoping someone could guide me to some improvements and point out …

Software Development data-structure java
Member Avatar for ~s.o.s~
0
210
Member Avatar for skyyadav

implement a generic fn mapf with prototype template<class Sequence c , class UnaryFunction) Sequence mapf(Sequence c , UnaryFunction f) for ex if c is a seq containing the seq (3,2,7,6,8) and f is the fn that returns twice it integer agument. then container returned by mafc(c,f) is a list containing …

Software Development c++
Member Avatar for mike_2000_17
0
414
Member Avatar for jomared145

'I have a problem in database Program in VB 6.0 that connects to Ms access which the field datatype is OLE object. ' here is my problem 'when i tried to run my program i always got this error message '"System Error &H80040E00 (-2147217920)" 'here is my code for uploading …

Software Development visual-basic
Member Avatar for nkwuda.mathias
0
261
Member Avatar for saurav2007

While creating a database..Is the data transfered directly from the user-input into the database or transfered to a buffer and final transfer from buffer to database is done..? Plz answer it..

Software Development c file-system
Member Avatar for deceptikon
0
97
Member Avatar for DM Galaxy

As I watch one of the videoon net on screen recorder. I watch that by adding reference > com > hycam2 is visible. (this is the important else I can't create my app) So I browse the hypercam2 Directory. And try to add the file: hycam2.tlb But pop up msg …

Software Development assembly vb.net visual-basic visual-studio
Member Avatar for DM Galaxy
0
371
Member Avatar for ashdane.beckford

hello is there anyone here that can help me with python

Software Development python
Member Avatar for Schol-R-LEA
0
113
Member Avatar for sam.escott4

Hi, In an application im making, I need to square a decimal value in a text field to then use in other calculations later, but when the compiler squares the value it ignores the decimal points, treating 1.85^2 as 185^2 and returning 34225 rather than 3.4225. What am I doing …

Software Development vb.net
Member Avatar for KenSquare
0
358
Member Avatar for razree

Hi all, I really need your help on this one. I have a MSSQL db table with two columns-ID and name. Each row in this two columns contains an unique ID and a name. Now I have a query that imports just a name in the listview (I don't want …

Member Avatar for razree
0
1K
Member Avatar for policeachan

dennis richie made c language with only 32 keywords all the functions and statements are to be created by the programer. if so wher is the source code of "printf" "scanf" "cin" "cout" ?

Software Development c
Member Avatar for Nishant_2
0
1K
Member Avatar for orca_lee

Hi everyone, Hope u all in good shape. I'm doing a simple project integrating mobile agents using aglets with intrusion detection system using snort., all these are done with linux fedora core 5 platform. The basic idea is, when snort detect an intrusion, an aglet will read the log file …

Software Development java
Member Avatar for stultuske
0
453
Member Avatar for intelharsh

Hello people, I am using zbar library to detect barcode. I am able to compile and run their sample code in main.cpp Now if I make a class and include <zbar.h> in the header of that class, I get the following error : /usr/local/include/zbar/Exception.h:144: error: the default argument for parameter …

Software Development c c# c++
Member Avatar for intelharsh
0
603
Member Avatar for mohammedfae

Hello dear friends I am developing an application in java and in part of it i need to implement RSA encryption alogorithm that can encrypt any form and size of files ... can someone please guide me to an implementable code of RSA ?

Software Development encryption java
Member Avatar for mohammedfae
0
3K
Member Avatar for PulsarScript

Can you give an idea how to create this pattern:7. Write a program to display the following pattern x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x …

Software Development c++
Member Avatar for Learner010
0
165
Member Avatar for toniann.midori

Ive spent almost 4 hours messing with this code trying to figure out whats wrong...to no avail. I keep getting zero as the total in the displayTripCost function at the bottom, i dont know if i messed up the pointers or what when i called by reference.... Please help!!! //Toni-Ann …

Software Development c
Member Avatar for toniann.midori
0
357
Member Avatar for hmx7

class student_name: def __init__(self,student): self.student = student def student_name(self): print('Student Name: ', self.student) class Majors: def __init__(self,name1,name2): self.name1 = name1 self.name2 = name2 def major(self): pass def major2(self): print('Majors: ',self.name1, self.name2) class School: def __init__(self,school): self.school = school def school_name(self): print('School Name: ', self.school) class Student_Track: def __init__(self, School, student_name, …

Software Development python
Member Avatar for hmx7
0
170
Member Avatar for أبو_1

Hi can you pls help me for code to check the duplicate data before instert or update records.... i work with Ms Access database 2003 with disconnection mode (dataset) into vb.net 2008

Software Development dataset vb.net
Member Avatar for KenSquare
0
717
Member Avatar for prabhakar78

hi i am validating cells in the datagrid in datagrid celleditending event. if the validation fails message is diplayed in the message box when i click ok in the message box the focus move to the previous row .i want the focus in the current validated cell i try this …

Software Development asp.net c#
Member Avatar for tinstaafl
0
312
Member Avatar for princess.ferolino.1

can you help me how to display an equivalent color once an input letter matches its first character for example b is for blue, r for red and so on. letter colors b or B blue r or R red g or G Green y or Y yellow other Letter …

Software Development c++
Member Avatar for cambalinho
0
248
Member Avatar for kdevesh

How do i reset the existing password in cpp and need that new password for starting the program everytime i start the program?? Please help.

Software Development c++
Member Avatar for cambalinho
0
231
Member Avatar for andrew mendonca

Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/oJ6mI8 Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/inEyqe Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/EDTWeS The header file is correct. I …

Software Development c++
Member Avatar for rubberman
0
215
Member Avatar for glez_b

I have a long list of data structured in the following way Date , Time, Temperature, Moisture, Accumulated precipitation 1/01/2011, 00:00, 23, 50, 2, 1/01/2011, 00:15, 22, 45, 1, 1/01/2011, 00:30, 20, 39, 0, 1/01/2011, 01:00, 25, 34, 0, 1/01/2011, 01:15, 23, 50, 0, . . . . 1/01/2011, 23:45, …

Software Development python
Member Avatar for glez_b
0
3K
Member Avatar for margaretbn

#include<stdio.h> int main(){ printf("hello world"); getch(); return 0; }

Software Development c++
Member Avatar for Learner010
0
100
Member Avatar for Nines

how do i put a password, change password on my code because everytime i put it in, my program don't shows it it just jumping to my selection menu, and how do i delete informations that ive put on my program? this is my code. thank you in advance. [CODE] …

Software Development c c# c++
Member Avatar for kdevesh
0
4K
Member Avatar for pygeek

Hi, im new to this forum, im trying to make a text editor in python for my school, and its nearly finished, but whenever i save a text file then open it again it makes weird square symbols at the end of each line. Thanks in advance. And i didn't …

Software Development python tkinter
Member Avatar for pygeek
0
482
Member Avatar for eijnar

how can i create this pattern in a java loop with the use of input. for example input is x = 5 y = 6. this will be the output. ***** * * * * * * * * ***** I've tried different code but it gets me to full …

Software Development java
Member Avatar for IIM
0
222
Member Avatar for Tewhano

Thanks to Muschops and Schol-R-LEA I finally got my program working. However I decided to change my file format and replace the underlines with spaces and separate the data with a comma. I open the file and use getline to grab the data but I have an error that reads: …

Software Development c++ file-system
Member Avatar for Tewhano
0
3K
Member Avatar for james.lu.75491856

Traceback (most recent call last): File "C:\Users\James\Desktop\pvz.py", line 64, in <module> Pea((10,20)) File "C:\Users\James\Desktop\pvz.py", line 48, in __init__ Projectiles.add(self) File "C:\Python27\lib\site-packages\pygame\sprite.py", line 319, in add sprite.add_internal(self) File "C:\Python27\lib\site-packages\pygame\sprite.py", line 147, in add_internal self.__g[group] = 0 AttributeError: 'Pea' object has no attribute '_Sprite__g' import pygame,traceback width = 480 height = 640 …

Software Development python
Member Avatar for james.lu.75491856
0
569
Member Avatar for MONTS

import java.io.EOFException; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Scanner; class Record implements Serializable { int roll; String name; public void setData() { Scanner scr=new Scanner(System.in); System.out.println("Enter Roll Number: "); roll=scr.nextInt(); System.out.println("Enter Name: "); name=scr.next(); writeData(); } public …

Software Development java
Member Avatar for Seldar
0
196
Member Avatar for Syafiq_1

write a program to request two integer number,x and y. If x falls within the range of -2 and 7, y is either 5 or 10, then the program will display ""within range". Otherwise the program displays "out of range".

Software Development c++
Member Avatar for Syafiq_1
0
179
Member Avatar for edet4krist

How do I retrieve image saved as a blob from oracle database please kindly help out.

Software Development image java oracle
Member Avatar for stultuske
0
240
Member Avatar for xirosen

[CODE]Hi.... can everyone help me pls in how to make program using visual basic that can Preview documents before printing.. Help me pls.. thanks...[/CODE]

Software Development visual-basic
Member Avatar for babrad
0
2K
Member Avatar for Tewhano

I am trying to read from a text file and input the data into a struct. I have read through all the threads on this topic and have not been able to work out where I am going wrong. My text file is: > Plain_Egg 1.45 Bacon_and_Eggs 2.45 Muffin .99 …

Software Development c++
Member Avatar for Tewhano
0
134
Member Avatar for sreetha

sir please give me a code for finding bigrams in a given file. example .. if the word is I AM AN OLD MAN.. output should be in a list as [I AM] [AM OLD] [OLD MAN]. i have seen some programs but its giving bi grams of a word. …

Software Development python
Member Avatar for Gribouillis
0
114
Member Avatar for talat.zaitoun

def my_startswith(s1, s2): if s1[0] == s2[0]: return True elif s1[0] != s2[0]: return False elif s2 == '': return True elif s1 == '' and s2 == '': return True Iam having trouble with the third and fourth elif. Third elif: i need to say that if s1 is …

Software Development python
Member Avatar for Gribouillis
0
225
Member Avatar for Caoimhe

I am recently new to python and as part of my college work i need to design and implement a python program relating to computer system administration. I would be grateful if anyone has ideas of a project. Thank You

Software Development python
Member Avatar for Caoimhe
0
200
Member Avatar for EXTRA_RICE

i am using vb2010 express. can u pls tell me wat is the code for delete?bcoz when im doing delete my database is not updating after i exit.i can add item in database but i cant delete it.any help?thanx guys? hope u understand my problem.

Software Development visual-basic
Member Avatar for Reverend Jim
0
154
Member Avatar for zunairah

i have a java client and c# server the server code is static Socket listeningSocket; static Socket socket; static Thread thrReadRequest; static int iPort = 4444; static int iConnectionQueue = 100; static void Main(string[] args) { Console.WriteLine(IPAddress.Parse(getLocalIPAddress()).ToString()); try { listeningSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); //listeningSocket.Bind(new IPEndPoint(0, iPort)); listeningSocket.Bind(new IPEndPoint(IPAddress.Parse(getLocalIPAddress()), …

Software Development android dns java
Member Avatar for JamesCherrill
0
209
Member Avatar for ankit94679467

There is a prison of health retarded patients in which each patient is allowed to move within the premises. Each of the patient wears a jacket which is embedded with a seven mobile devices wiz; accelerometer with positioning system to check the movement of the prisoner, heart rate calculator to …

Software Development c objective-c
Member Avatar for ankit94679467
0
148
Member Avatar for Rahul47

5 in decimal = 0101 in binary. Its 1's Complement is 1010. Adding 1 to it gives 2's Complement which is 1011. Now 1011 also represents 11 in decimal. How to differentiate +ve and -ve numbers in Binary ?

Software Development assembly
Member Avatar for Labdabeta
0
240
Member Avatar for onalenna_1

create a program that gets the marks the user has for their classes this year. Tell them how many classes they are failing (despite what many o f you think a fail is 50%) Save as Name_Surname_Repetition_Problem1.py................i seriuosly need help with this program,python is giving me a hard tym

Software Development python
Member Avatar for sneekula
0
145
Member Avatar for krystosan

how do I make a class return as `Namespace(filter='b', list="['hi','by']")` class NameSpace(object): """Mock for argparse's NameSpace """ def __init__(self, lst=None, flter=None): super(NameSpace, self).__init__() self._filter = flter self._lst = lst Is it possible what I am thinking, i guess we have to do something using special method call ?

Software Development python
Member Avatar for krystosan
0
320
Member Avatar for alina.nazchowdhury

I get lots of error in my program like: Warning 1 WithEvents variable 'Close' conflicts with sub 'Close' in the base class 'Form' and should be declared 'Shadows'. C:\Documents and Settings\Alina\My Documents\Visual Studio 2008\Projects\WindowsApplication1\WindowsApplication1\Form1.Designer.vb 321 23 WindowsApplication1 Error 2 Expression is not a method. C:\Documents and Settings\Alina\My Documents\Visual Studio 2008\Projects\WindowsApplication1\WindowsApplication1\Form1.vb …

Software Development visual-basic visual-studio
0
114
Member Avatar for riyamanavalan@g

i want to disable controls like cut copy paste delete oprtions in openfiledialogue box in my project which is developed using c#.net....any plsss help me.....

Software Development asp.net
Member Avatar for riyamanavalan@g
0
127
Member Avatar for kay19

Question: Well I have to input a number correctly with comma's and a decimal. My input would be 243,111.11 and the output would come out as 2,43,,111.11 Do I have to create additional for loops statements for each digits and check for comma's/decimal? I almost scrapped this code for attempting …

Software Development c++
Member Avatar for kay19
0
252
Member Avatar for cwarn23

Hi, recently I have wanted to learn how to write Windows native binary code to make a binary script which in one form or another will display hello world. I am hoping to eventually create a more efficient compiler using this method but as you should understand already, this is …

Software Development assembly c microsoft
Member Avatar for Schol-R-LEA
0
382
Member Avatar for Ashok Karale

here is screenshot. http://i.stack.imgur.com/0LAQZ.png and here is code. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Data.SqlTypes; using System.IO; using System.Drawing.Imaging; namespace SampleApplication { public partial class AddNewUser : Form { public AddNewUser() { InitializeComponent(); } // set the …

Software Development dataset open-source regex
Member Avatar for Michael27
0
207
Member Avatar for PulsarScript

Hi to everyone.Can somebody help to : Write a program to display all the hour and minute values in a 24-hour clock from 00:00 to 23:59.

Software Development c++
Member Avatar for deceptikon
0
136
Member Avatar for andrew mendonca

Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/oJ6mI8 Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/RSrshS Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/U5F2O8 My question: I got the code …

Software Development c++
Member Avatar for Schol-R-LEA
0
151
Member Avatar for Gribouillis

You can teach your linux system that executable python files must be executed with /usr/bin/python. This allows you to write python scripts without the shebang line [icode]#!/usr/bin/env python[/icode]. This snippet shows you how to do it !

Software Development python
Member Avatar for Gribouillis
0
1K
Member Avatar for JamieVern

Hello, All. I'm a beginner with Java writing and would greatly appreciate a hand with the problem below: A student has decided to fly his remote controlled airplane. The airplane has about 12 minutes of flight without any extra weight. For every 1/2 of a pound added, the lifetime of …

Software Development java
Member Avatar for Schol-R-LEA
0
211

The End.