43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for NITHIN171

how to create a keylogger using a python????

Software Development python
Member Avatar for NITHIN171
0
162
Member Avatar for Slavi

Hey hey ..I've got stucked onto another one ... So, not sure how to explain this 1 but I can give an example ... When input = 1 - expected result is a string = "a b c d e f g h i j k l m n o …

Software Development java puzzle
Member Avatar for Slavi
0
159
Member Avatar for Slavi

Hey guys, I've got stucked on something here ... so to explain it here is an example. Let's say I have a string "aa a i". My idea is to get a result that is "aA A I". -> this is a challenge on Codehunt and I got stucked on …

Software Development java puzzle
Member Avatar for Slavi
0
161
Member Avatar for Slavi

Hey guys, I am making something that it takes a char, then it sums it with 5 and returns the new char according to the ASCII table, for example input is 'a' , then output will be 'f'. This code is doing it somewhat .. public static String Puzzle(String s) …

Software Development java puzzle
Member Avatar for Slavi
0
175
Member Avatar for Jeroen Mathon

I keep getting coredumps when i run this function. void readUser(int uid) ///Reads users from data directory { std::stringstream fileName; fileName << "./data/" << uid << ".dat"; user myUser; std::cout << "USERNAME:" << myUser.name << "\n UID:" << myUser.uid; ///Reads data from file FILE* dat = fopen(fileName.str().c_str(),"rb"); fread(&myUser, sizeof(user), 1, …

Software Development c++ coldfusion github
Member Avatar for JasonHippy
0
184
Member Avatar for dtbn

Hi, I already have an excel file (MyXL.xls) and a Visual Basic (Form1.frm) with a command button. Now, I want to write a code for the Visual Basic so that when I click on the command button, the excel file will be opened. Any help is significant to me! Thank …

Software Development visual-basic
Member Avatar for ice23
0
14K
Member Avatar for lewashby

I'm reading my C++ book and I've come to a chapter on structures and unions. The book has tried to explain the difference but I'm not getting it's explanation. Playing with the structure examples in the book reminds me of accessing attributes to a python Class but apart from that, …

Software Development c++
Member Avatar for cheryllocascio
0
195
Member Avatar for saimasiddiqui

I am taking my very first programming class ad kind of stump on the problem mention in this post.. In coding I only got so far as what shows here.... 2. Write Python statements corresponding to the following: a. Assign to variable flowers a list containing strings 'rose', 'bougainvillea', 'yucca', …

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

Hey everybody, As of this moment i'm trying to work out how to approach a state design. I've come across Source Makers' site [http://sourcemaking.com/design_patterns/state/cpp/1](http://sourcemaking.com/design_patterns/state/cpp/1) and am testing out the example. The program works fine when it's all in 1 file, although i had to change some stuff in main, but …

Software Development c++ oop web-design
Member Avatar for rubberman
0
3K
Member Avatar for Saboor880

Hi! i am writing a program in which i am reading a text file named "studentinfo". I have made a notepad file as "studentinfo" and then wrote a program to read this file. but there is an error occuring : " invalid operand of types 'char[20]'and '<unknown type>' to binary …

Software Development c++ file-system
Member Avatar for Saboor880
0
141
Member Avatar for GingerDontCare

Hello Daniweb, So, I am currently working on a simple download time estimator program using JOptionPane and some loops. I have some beginning code and wanted to check how it is working, only it seems I messed up something and am stuck in my loop when I run it. I …

Software Development file-system java java-swing
Member Avatar for GingerDontCare
0
1K
Member Avatar for HuePig

Hi, I have an Item class, how can I make my Item object be composed of more Item objects? Say I have a gun and its composed of more items like bullet and magazine, how can i make it do that? /*Item.h handles the item in game*/ #ifndef ITEM_H #define …

Software Development c++
Member Avatar for HuePig
0
118
Member Avatar for Razi_1

I am trying to make a simple calculator, unfortunately, it isn't going so well. Any ideas on how to make it simple? if gamemode=1 then {If gamemode 1 has been chosen} begin clrscr; title; writeln ('Welcome to Calculator'); writeln; writeln ('To begin, press <Enter>'); readln; clrscr; title; writeln ('Choose which …

Software Development pascal
Member Avatar for Razi_1
0
268
Member Avatar for xuexue

Hi! I want to display a table in the Local Report using SQL Connection. Parameters will be user-defined. Example. sqlSearch = "SELECT * FROM shipment WHERE " & port & " BETWEEN @datePerformedFrom AND @datePerformedTo ORDER BY recno DESC" `@datePerformedFrom` and `@datePerformedTo` will be supplied by the user. Please help …

Software Development vb.net
Member Avatar for xuexue
0
429
Member Avatar for James_30

Is the a model folder and file structure to follow if I wanted to build java projects in eclipse?

Software Development java xml
Member Avatar for peter_budo
0
192
Member Avatar for James_30

I have a couple java apps that run good in netbeans and in eclipse yet when I compile on the command line during the build.xml they all get these 100 errors. The list looks daunting but they are all dealing with joda time. Not sure what is going on. I …

Software Development java java-netbeans
Member Avatar for peter_budo
0
779
Member Avatar for xuexue

Hi! The for loop works and it reads the value of `recno()`. However, the sql code itself is being executed once only. Is there any tweak I need to do for DB2 iSeries codes? For k = 0 To recno.Length - 1 sqlUpdate = "UPDATE shipment SET status=@status WHERE recno=@recno" …

Software Development vb.net
Member Avatar for cgeier
0
267
Member Avatar for Saboor880

Hello to all frndz! i want to write a program in which i have stored some integer elements in an array and i want that my program searches for the largest integer and displays it. for example if i have some integers in my array like 23, 38, 81, 12. …

Software Development c++
Member Avatar for dinad578
0
216
Member Avatar for Stuugie

Hi All, I'm working on a script which has a primary function to look for jpg files. I can get it to work if the folder path is just my desktop but if I try the start of the path to be C:\ it errors out. Right now the error …

Software Development shell-scripting vbscript
Member Avatar for cgeier
0
414
Member Avatar for Tycellent

Sup everyone, Does anyone have any recommended tutorials/sites for Hash maps? I'm planning to use it to create and link "locations" in a basic text-based game but i've looked around and there seems to be a lot of description on hashmaps but not much tutorial/examples for them. Any sort of …

Software Development c++
Member Avatar for Tycellent
0
288
Member Avatar for Kim_3

Description: You are to develop a program that prints out the multiplication or addition table given the users start and end range and type of table. The program will make use of 2D arrays to calculate the table. The program will make use of the System.out.printf() method to allow formatted …

Software Development java
Member Avatar for rubberman
0
222
Member Avatar for PM312

Hi i want to display version information on my MDI form text Below code displays "1.0.0.0" it doesnot display rivision no `Me.Text = System.Windows.Forms.Application.ProductVersion` how can i display version revision ? thanks

Software Development display vb.net
Member Avatar for Deep Modi
1
4K
Member Avatar for Benny_1

Hi. I am making a really simple program to refresh my knowledge in java (which is obviously needed). When I click the screen, I want a bullet to appear in the center and move towards the point I clicked. Right now, when I click on the left half the bullet …

Software Development java java-swing
Member Avatar for JamesCherrill
0
200
Member Avatar for James_30

Can someone post an example of:importing a .properties sheet,and the basics of what needs to be in the file?also,along with the baseline . Dir is it possile to also reference a a system environments variable that I created to reference the path to my eclipse workspace?

Software Development xml
Member Avatar for James_30
-1
140
Member Avatar for James_30

I would like to import a netbeans project with dependencies into eclipse. Is there a standard procedure to do this?

Software Development
Member Avatar for James_30
0
4K
Member Avatar for lewashby

I'm reading 'C++ Programming in easy steps' and the program the book has given me will not compile. Compile line -> `g++ -g -Wall "${ARG}" -o "${ARG:: -4}" &&` ARG is command line argument 1. object.cpp:7:5: error: ‘string’ does not name a type string color; ^ object.cpp:14:19: error: ‘string’ has …

Software Development c++
Member Avatar for lewashby
0
231
Member Avatar for m.a.u.

Greetings everybody, I have been trying to convert UTC time into local time. Using ctime library, time_t, gmtime etc. But I am having nothing. When I searched the web, I saw nothing but examples with this library... I would like to ask you how could I convert UTC, a double …

Software Development c++
Member Avatar for m.a.u.
0
417
Member Avatar for kiddo39

I'm trying to use this code for a fibonocci sequence where I'm setting the starting numbers as b= and c=. What I'd like to do though is have it stop after so many numbers are added together, in this case it would be 53rd (a=53). I've tried a 'for i …

Software Development python
Member Avatar for HiHe
0
243
Member Avatar for pito_donje

how do I create an email with VB? when we click the button, type in all the data we sent to the email address we are headed

Software Development email visual-basic
Member Avatar for razamughal67
0
229
Member Avatar for moaz.amin.37

hello i am doing my assignment on simple calculator in java.Now I want to handle exceptions in it. so i need some information about exception for exemple a user enter any expression like `(10+23+56-55)` it is corrent formate but when the user enter wrong formate like `(20++56//5)` i mean operator …

Software Development java
Member Avatar for BenWard
0
418
Member Avatar for kiddo39

Hi, If I have a sentence like this: "I now have a total of % yellow bananas!" but I need it to change the number 2 to a 3, print, then a 4, print, etc until it reaches a set number like 10, how can I go about that? sentence …

Software Development python
Member Avatar for kiddo39
0
274
Member Avatar for senaddor

Hello: I am practicing with some existing code from the book, but when I go to compile this code I get an error on line 4: .....cpp(4) : fatal error C1083: Cannot open include file: 'mystack.h': No such file or directory [CODE]#include <iostream> #include <iomanip> #include <fstream> #include "mystack.h"[/CODE] Any …

Software Development c++
Member Avatar for yonela.yonce
0
2K
Member Avatar for ddanbe

How can I remove the selection triangle in the rowheader of a DataGridView? I looked here, I googled, MSDN etc. Perhaps I overlooked it on how to do it because it is such a huge class. The only thing I have right now is the [B]ShowEditingIcon [/B]property. When set to …

Software Development
Member Avatar for ddanbe
0
1K
Member Avatar for aabbccbryanmark_1

Try DoInsertQuery("If Not Exists(" & _ "SELECT * FROM tblSchoolYear " & _ "WHERE schoolYear = 'SY " & Trim(txtAddSchoolFrom.Text) & "-" & Trim(txtAddSchoolTo.Text) & "')" & _ "INSERT into [tblSchoolYear] ([schoolYear]) VALUES ('SY " & Trim(txtAddSchoolFrom.Text) & "-" & Trim(txtAddSchoolTo.Text) & "')") Catch ex As Exception MsgBox(ex.Message) End Try …

Software Development sql vb.net
Member Avatar for aabbccbryanmark_1
0
353
Member Avatar for Tycellent

Hey guys, I'm interested in learning about simple multithreading in C++ for Windows. Does anyone have any reccommended tutorials/links thats quite good?

Software Development c++ multithreading seo
Member Avatar for dinad578
0
416
Member Avatar for borchu

Hi, I am trying to find 2nd largest number that given input of numbers. The question is actually consider that you enter 5 number : 60, 70, 30, 40, 55 randomly -the order does not matter- my function should find 2nd largest number and return it. I am trying but …

Software Development algorithm c++
Member Avatar for Magnificant
0
3K
Member Avatar for GingerDontCare

Just need some help with java Math.max and Math.min when user inputs random numbers.

Software Development java
Member Avatar for Slavi
0
983
Member Avatar for soudruhcz

Hi All, I'm using Tomcat 7 with APR. I have HttpServletRequest from which I get client certificate. X509Certificate[] clientCertificates = (X509Certificate[]) req.getAttribute("javax.servlet.request.X509Certificate"); * when I do full SSL handshake, clientCertificates are returned correctly, * when I do Session identificator handshake, clientCertificates are returned correctly too, * but when is TLS …

Software Development java session
Member Avatar for soudruhcz
0
241
Member Avatar for Agus_1

Hello, i try to develop some application for inventory and transaction using VB.Net with database access i have a problem with query result, it looks like not using newest database when application already run. for example : i have MS access table like this ID CustomerName 1 John 2 Doe …

Software Development dataset vb.net
Member Avatar for Agus_1
0
229
Member Avatar for dhatsah

I have a form where the user can select an image (via a file dialogue) of any size which is then previewed in a pictureBox sized at 150px by 150px with the sizeMode of the pictureBox set to zoom any space that is then not occupied by the image is …

Software Development asp.net image
Member Avatar for Fenrir()
0
366
Member Avatar for Suzie999

I have been working on a project with selenium 2 webdriver for a few weeks. I got to a milestone and decided to compile my project in release mode and test the executable. Thing is, it crashes if I try to run it from the release folder (or anywhere else …

Software Development
Member Avatar for Suzie999
0
397
Member Avatar for EDWIN_4

Hello, in which senario do we normaly use this (*args,**kwargs)type of arguments in python.

Software Development python
Member Avatar for snippsat
0
150
Member Avatar for krunal1986

Hi, I want to convert my word file to pdf file in vb6. source code will be appreciated. so far, i have tried with below code also. Private Sub Convert_WordDoc_to_PDF(DocPath As String, sDestsPDFFile As String) 'Dim worddoc As New Word.Application Dim worddoc As Object Set worddoc = CreateObject("Word.Application") Dim x …

Software Development file-system open-source pdf visual-basic
Member Avatar for Vidya Sagar
0
5K
Member Avatar for harley.roberts.56

Hi there, i am a novice coder and i'm trying to comprehend the addhandler function. on my current form, i have two pictureboxes, that i am trying to use in an addhandler with a loop, so when they are highlighted, the sender will change image. Public Class Form1 Dim i …

Software Development vb.net
Member Avatar for harley.roberts.56
0
183
Member Avatar for DavidB

I am working with dynamic arrays which have been created using **<vector>**. For convenience, I have created a typedef : typedef vector<double> C1DArray; In the main program, several variables are created using this definition which, at the moment, means working with arrays of size 30. main() { . . . …

Software Development c++
Member Avatar for mike_2000_17
0
348
Member Avatar for mind_1
Member Avatar for rubberman
0
94
Member Avatar for Slavi

Hey guys, I was just looking into LinkedList and I came accross couple of methods. I quickly made a linkedlist and added numbers from 0 to 9 in the list then tried different methods such as pop poll, removeFirst and they all returned the same answer from 0 to 9. …

Software Development java
Member Avatar for Slavi
0
146
Member Avatar for andrew mendonca

Define a function string sort(string s) that returns a string with the same characters as s, but arranged in ascending order, according to ascii value . For example sort("hello") will return the string "ehllo". Notice that the function returns a different string from the original argument, since s is not …

Software Development algorithm c++
Member Avatar for Moschops
0
190
Member Avatar for mark103

Hi all, I'm working on my python script as I'm pulling the data from the sqlite3 database. I'm trying to convert the string object to datetime object, but I have got a problem with the code as I get the error when I'm trying convert from the string object to …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for andrew mendonca

Write a function int findLast(string words[], int numWords, string target) that returns the index of the last occurence of target in words or -1 if there is no occurrence. Remember: you can compare string objects using ==, these are NOT C-strings ! Here is my solution: int findLast(string words[], int …

Software Development c++
Member Avatar for rubberman
0
353

The End.