132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for can-mohan

Hi, I would linke to know what is the best way to synchronise the shared memory segment. is threads usage are also advisible whie synhcronising the shared memory segement. in what circumstances we should use threads or semaphore to synchronize the memory segment.

Software Development c c++
Member Avatar for rproffitt
0
464
Member Avatar for Andrew_34

I am trying to send a message to my websocket server but I keep getting this error. Traceback (most recent call last): File "send.py", line 5, in <module> ws = websocket.create_connection("ws://ipaddress:9001") AttributeError: 'module' object has no attribute 'create_connection' I created a python server file server is started but when I …

Software Development python websocket
Member Avatar for Andrew_34
0
680
Member Avatar for Roy_7

Hi, I have installed Specflow in VS 2015 but I cannot see feature file when I add a new item. This worked up until Friday when my company changed domains. I have also created a completely new project and installed specflow but still no feature files are available. Can anyone …

Software Development visual-studio
Member Avatar for Roy_7
0
242
Member Avatar for bhavna_816

I have created an aplication in C# windows application version 1.1 to display some records in a datagrid. The datasource of the datagrid is datatable and not any database.I want tht when we edit any cell of a particular column and press "Enter" it should show a Message Box let's …

Software Development c# microsoft
Member Avatar for Reverend Jim
0
4K
Member Avatar for Yasir_7

how to create a simple calculator for addition, subtraction, multiplication,division and factorial using switch...case statement in C++ programm

Software Development c c# c++
Member Avatar for rproffitt
0
146
Member Avatar for johans22

Got blue, red and yellow lights that each can turn ON independently of one another. Using operators, structs, etc. how to obtain the current color, if having: Red & Blue is purple, Blue and Yellow is green and Yellow & Red is Orange. This is not a homework.

Software Development c
Member Avatar for rubberman
0
268
Member Avatar for jonymanolo

Hello Guys I am looking for some code,that can help me to build a C# method that can generate a photo mosaic (a big picture that is build up from other pictures) but really i dont have idea how can i do this. :S Thanks for all your help :D

Software Development image
Member Avatar for Paul_45
0
1K
Member Avatar for Hishamullah

Hi, I want to create a Alternate Coloring in MsFlexGrid that using the Visual Basic Programming. Here I attach a source code : MsFlexGrid I give name : Flex If Wt <= RsParts.Fields!Lowerlimit Then '*********************************************************** '2. Section for create Color at 1 Column under REMARK Dim lngRow As Long Dim …

Software Development visual-basic
Member Avatar for rproffitt
0
1K
Member Avatar for Peter_36

How do I make a line of code that would go back to a part of a program without making it a loop? For example ###Code I don't want repeated### some line for later to come back (line 2) $$$code I want to repeat$$$ jump back to line 2

Software Development c++
Member Avatar for ddanbe
0
360
Member Avatar for nitin1

Hi, I am facing an issue in string to const char pointer conversion. I am doing stuff in the fun() but here i am just giving my example. Here it the code: // Helper function string fun() { string abc = "Daniweb"; // print here #1 return abc; } // …

Software Development c++
Member Avatar for AssertNull
0
3K
Member Avatar for Kifiote

Hello Guys! Please help me out!!! Curently finishing a small project, when my boss asked that the report should include the person Photo... CR won't display photo unless it is stored directly into DataBase. I read some where it is easuer to use Parameter to save both text and image. …

Software Development dataset file-stream image vb.net
Member Avatar for Kifiote
0
894
Member Avatar for Baastina

Try Dim cn As New SqlConnection("Data Source=MSR\LOCAL;Initial Catalog=Eventena;Integrated Security=True") cn.Open() Using cmd As New SqlClient.SqlCommand("INSERT into BirthdayRegistration where Name='" & TextBox4.Text & "',LastName='" & TextBox2.Text & "',Email='" & TextBox5.Text & "',StreetNo='" & TextBox6.Text & "',Main='" & TextBox7.Text & "',Area='" & TextBox8.Text & "',City='" & ComboBox1.Text & "',State='" & ComboBox2.Text & …

Software Development legal open-source vb.net
Member Avatar for deceptikon
0
601
Member Avatar for metalla_nz

Hi all, Im developing a small app that stores information in a database. When I first released, I tried to make sure my DB was future-proofed against any changes. However i'm about to release a new version that requires a change to the DB schema. Currently my terrible way of …

Software Development
Member Avatar for Garr
0
315
Member Avatar for J.C. SolvoTerra

# BlowFish? # BlowFish was the brain child of Bruce Schneier back in 93. Since BlowFish was released to the public domain, Bruce Schneier has released new encryption algorythems, TwoFish and ThreeFish. BlowFish is an increddibly popular and very strong algorythem. Because it conforms to Kerckhoffs's Principal [Explained Here](http://en.wikipedia.org/wiki/Kerckhoffs's_principle), even …

Software Development algorithm encryption vb.net
Member Avatar for zen_1
0
1K
Member Avatar for Papa_Don

Hi group, I'm discovering that my Excel spreadsheets that are being created by a VB.net app I've written isn't completely closing them as they should be. I'm struggling to understand why and how to fix this. Here is the code for the portion of the app that creates the workbook, …

Software Development microsoft-office vb.net
Member Avatar for Papa_Don
0
5K
Member Avatar for Bryan_5

I just started learning how to use pointer array and i'm trying out examples to know more about them but i get confused with them easily. So, I tried to do a simple arithmetic calculation using a pointer array. The user will input 2 string variables for addition. I then …

Software Development c++
Member Avatar for deceptikon
0
358
Member Avatar for Bryan_5

I'm doing a simple addition arithmetic using pointer array but i'm stuck at trying to print out my pointer array. int main() { string str1, str2; cout << "Enter the first string" << endl; cin >> str1; cout << "Enter the second string" << endl; cin >> str2; stringtoInt(str1, str2); …

Software Development c++
Member Avatar for tinstaafl
0
367
Member Avatar for can-mohan

In below code snippet , I am trying to add the intefeger and float values in Array template but was surprised to see below output for float value as 5.1 was expected there but getting 0 . Can anybody let me know what can be wrong here. output value=5 value=15 …

Software Development c++
Member Avatar for can-mohan
0
365
Member Avatar for ibpet11

Hello everyone here, I want to be able to read from file or DB and place lines on a page in Matrix form. This is what I mean, say I read a file to an array or list(of string), so that I have the lines like this 1.aaaa,bbbb,ccc 2.5533ds,iodfas,ssss 3. …

Software Development vb.net
Member Avatar for Taywin
0
316
Member Avatar for Papa_Don

Hi group, I'm making a handful of changes to an existing program I wrote a year or so ago. For some reason I can't get it to build as I'm getting an error that says: 1> Copying file from "obj\x86\Debug\Restran Solutions.exe" to "bin\Debug\app.publish\Restran Solutions.exe". 1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(3506,5): error MSB3113: Could …

Software Development vb.net
Member Avatar for Papa_Don
0
692
Member Avatar for David W

This thread will be an attempt to develope a SIMPLE (and good enough) class for beginning Java students, to ease their coding for valid and crash proof, user (Console type) input, (and also handle Console output.) We assume here that beginning students need not worry much, about obtaining the fastest …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for johans22

typedef struct { unsigned char Val1; unsigned char Val2; unsigned char Val3; unsigned char ValArray1[2]; unsigned char ValArray2[2]; unsigned char ValArray3[2]; unsigned char Val4; unsigned char Val5; }s1; From the above structure, would like to map only the Val3, ValArray1,ValArray2 and ValArray3 to series of bit values using ideas like …

Software Development c
Member Avatar for AssertNull
0
260
Member Avatar for Bryan_5

I'm trying to store some information in a binary file. However, i met with a problem that i can't rectify. For example, if the first order comes in, there is a struct of information that includes orderNo 1, which will be stored into the binary file. When there's a second …

Software Development app-store c++ file-system ios
0
231
Member Avatar for PCSAWICK829

Alright. I'm teaching myself python from 'Learn Python the Hard Way: 3rd Edition' by Zed Shaw.. it's been informative so far. Definitely learning. After his lessons, he gives study drills, extra project to put your learning to use. He challenged us to: "Find out what Zork and Adventure were. Try …

Software Development python
Member Avatar for Conrad_2
0
9K
Member Avatar for Siberian

I'm creating a pseudo type script at the moment using a well known programs API which uses JS. When the user is prompted and enters in a name since the API uses ECMA 3.0 I cannot directly use String.Prototype.Trim() as it's not supported in ECMA 3.0. I have a prompt …

Software Development api javascript
0
279
Member Avatar for Khang_1

Using the following Let X be the year Let A be the reminder of the division of X by 19 Let B be the reminder of the division of X by 4 Let C be the reminder of division of X by 7 Let D be the reminder of the …

Software Development
Member Avatar for rubberman
0
156
Member Avatar for Sudo Bash

I am writing a game in which I need to know whether or not a user preforms an action in one second or less. I can not use time() because it measures time in seconds. If the user starts the action half-way through a second it would mess with accuracy. …

Software Development c++
Member Avatar for Yangang
0
4K
Member Avatar for giancan

Dear All, I have a very long list of values as follow (43, 560) (516, 1533) (1316, 3047) (520, 1528) (3563, 1316) (45, 557) (3562, 1312) (2686, 1964) (2424, 3340) (3559, 1317) (50, 561) (2427, 3336) (1313, 3046) (3562, 1313) (3559, 1318) (2689, 1962) (2429, 3339) (3721, 2585) (1317, 3048) …

Software Development python
Member Avatar for JamesCherrill
0
824
Member Avatar for Doğukan

I'm trying to develop some code to do a button click onto an application without moving the cursor over to it. I can see messages under Spy++ but nothing happens. Thanks in advance... Public Class Form1 Const WM_LBUTTONDOWN = &H201 Const WM_LBUTTONUP = &H202 Const MK_LBUTTON = &H1 Public Declare …

Software Development vb.net
Member Avatar for Reverend Jim
0
824
Member Avatar for hamzah_1

Is there a way I can fix the way ji get neighbors of a 2d coordinate? """6.009 Lab 5 -- Mines""" def dump(game): """Print a human-readable representation of game. Arguments: game (dict): Game state >>> dump({'dimensions': [1, 2], 'mask': [[False, False]], 'board': [['.', 1]]}) dimensions: [1, 2] board: ['.', 1] …

Software Development python
Member Avatar for rproffitt
0
367
Member Avatar for Pandey_1

I have generated checkbutton from inputstatus dictionary to set as default values.After tht once it get display on GUI when i select it respected text and status will be added to new dictionary '''inputstatus = { 'maggi': 1, \ 'pizza': 1, \ 'cold drinks': 1, \ 'fries': 1, \ 'chapati': …

Software Development gui python
Member Avatar for Gribouillis
0
513
Member Avatar for Ackroid

This is my assignment yet i can't work it out. Kindly help me? Public Class Form1 Private Sub nudYear_ValueChanged(sender As Object, e As EventArgs) Handles nudYear.ValueChanged 'convert month and year to int' Dim month, year As Integer Select Case cmbMonth.Text Case "January" month = 1 Case "February" month = 2 …

Software Development vb.net
Member Avatar for ddanbe
0
790
Member Avatar for wilsonchama

Hi guys, I am trying to fill a datagridview on the form with data from sql server databse based on the name of the company selected in the combo box. But the code i am using gives me an error message saying "The data types text and varchar are incompatible …

Software Development sql vb.net
Member Avatar for Santanu.Das
0
492
Member Avatar for lytonia

Create a “C program” that determines whether or not a person is qualified to vote. Test for the following criteria for voting: Ask for the users first and last name (adds personalization) 18 years old or older Citizen of the United States State of residence (can only be one) Not …

Software Development c++
Member Avatar for ddanbe
0
385
Member Avatar for Priya_14

I have database table created in sql server visual studio.I have one dashboard kind ,so whenever i want to change the value automatically balance amount should caluclate and display the changed value. Su Si Sa Sd Balance 10 12 13 14 ( Balance=Su+Si+Sa+Sd) 14 15 13 17 ( Balance=Su+Si+Sa+Sd) 17 …

Software Development visual-basic visual-studio
Member Avatar for Priya_14
0
485
Member Avatar for Pandey_1

Suppose i have one dictionary menu={'pizza':1,'Burger':1,'sandwitch':0} when i run tkinter gui these all key will be displayed on GUI. If value is 1 then respected key must be ticked rest will be unticked

Software Development gui python tkinter
Member Avatar for slate
0
179
Member Avatar for Baran_1

I wrote and run this code in Windows, in DEV C++ but I am keep getting a Segmentation fault on Ubuntu's terminal when I try to run this program. Here is my whole code. #include<iostream> #include<string> #include<fstream> #include<cmath> using namespace std; int Str2NumByAscii(const string& str); // convert string to number …

Software Development c++ microsoft ubuntu
Member Avatar for rubberman
0
5K
Member Avatar for rennel

Hello everyone..I am a newbie in DANIWEB..I really need your help guys regarding the topic i stated in the title..I am trying to create a payroll system..The system will get the data from the database, compute the NET and GROSS SALARY then afterwards save it back to the database.It is …

Software Development c++
Member Avatar for Sean_13
0
2K
Member Avatar for Pandey_1

There is one application where two radio buttons are available.i.e default and custom. If custom is selected then one panel will be visible which contain available drives list of not selected checkbox which are generated based on list but while i am doing such things it generate checkbox many time …

Software Development python tkinter
Member Avatar for Pandey_1
0
365
Member Avatar for glao

Hello , I have this: #include <iostream> #include <cstdio> #include <cstdlib> #include <vector> using namespace std; typedef struct { float x; float y; Point *next; } Point; int main() { Point *thePoints = new Point[2]; thePoints[0].x = 2; thePoints[0].y = 3; thePoints[1].x = 4; thePoints[1].y = 5; (thePoints[0])->next= 11; cout …

Software Development c++
Member Avatar for glao
0
436
Member Avatar for can-mohan

Hi All, I below code snippet I have been using diff-2 structure with same variable due to having different -2 default values for the variable (var) in current implementation for both the structure a and b. This way i need to create 17 structure with same variable (var) but different …

Software Development c++
Member Avatar for AssertNull
0
470
Member Avatar for Nol_1

Hello DaniWeb Community, I'm a beginner Java programmer. The LoanTableTester contains the main method and the LoanTable is a class separate from the LoanTableTester class. May I please have help with a cannot find symbol - variable mortgage error? I wrote the methods for calculating the c, monthly payments, number …

Software Development java
Member Avatar for Nol_1
0
404
Member Avatar for Pandey_1

from Tkinter import * from ttk import Style class Example(Frame): def __init__(self, parent): Frame.__init__(self, parent, background="#333") self.parent = parent self.parent.title("sample") self.parent.iconbitmap('sample.ico') self.pack(fill=BOTH, expand=1) self.centerWindow() self.initUI() def centerWindow(self): w = 500 h = 450 sw = self.parent.winfo_screenwidth() sh = self.parent.winfo_screenheight() x = (sw - w)/2 y = (sh - h)/2 self.parent.geometry('%dx%d+%d+%d' …

Software Development operating-system os-x python tkinter
Member Avatar for Pandey_1
0
7K
Member Avatar for PulsarScript

Hi have a question,why i do not get value output for FutureValue,do i use in the wrong place in Main method calculateFutureValue() ? package sd4.dobs.ui; import java.util.Scanner; public class Console { private static Scanner sc = new Scanner(System.in); public static void displayLine() { System.out.println(); } public static void displayLine(String s) …

Software Development java
Member Avatar for PulsarScript
0
600
Member Avatar for samsons17

does anyone know how to do the program that are more or less like peteranswers?? This is the website which has been using to trick people... [URL="http://www.peteranswers.com/"]http://www.peteranswers.com/[/URL] and this is the secret : [URL="http://chriswondra.com/2007/02/21/peter-answers-the-secret/"]http://chriswondra.com/2007/02/21/peter-answers-the-secret/[/URL] i'm just wondering if i'm capable to do just a simple program that is similar like …

Software Development c++
Member Avatar for AssertNull
0
1K
Member Avatar for Sashika_1

I had question about vb.net. I know normally this is simple. But in this case it's dificult. Let me explain this. I had three forms. Form1 is mdi parent form. Others 2 parent forms are child forms which named form2 and form3. I want to send form3 text box value …

Software Development vb.net
Member Avatar for tinstaafl
0
1K
Member Avatar for PulsarScript

Hi all i have couple jsp pages and java class as follows below.Can you help me with the session on the handleForm .jsp As this page supposed to show all info entered by the user in the form.I did manage to display session object in thanks,jsp But have now a …

Software Development java java-jsp session
0
184
Member Avatar for Artur_5

Hello, I'm totally new to programming and wanted to make a text-based game based on what I know, but I've met a problem I don't know how to fix. Also this code is not finished, I'm just trying to get it to work first. Basically, I want the loop to …

Software Development microsoft python
Member Avatar for Gribouillis
0
484
Member Avatar for Sashika_1

I find answer for this question from internet and also here. Some got some help from here. But it doesn't worked 100% fo my situation. So let me describe all things detailed. This is about three forms. To our easy understand I'll named those Form1,Form2,Form3. Only Form1 is MDI parent. …

Software Development vb.net
Member Avatar for tinstaafl
0
297
Member Avatar for Aina_1

Im currently doing an application which is when user plugged in usb drive, login form will pop up so user need to login first but if user failed login for three times, webcam will automatically capture. The problem here, **how to make the webcam to automatically capture after user failed …

Software Development open-source vb.net webcam
Member Avatar for Sashika_1
0
272

The End.