132,726 Archived Topics
Remove Filter ![]() | |
Hello. I have come across many scripts for rebooting remote computers using python, but what about the computer the script is running on? If possible, I would also like my script to run in the background so the little cmd box is not visible. Thanks in advance for your help. Software Development python | |
I'm trying to make a simple prime number generator for bigger program. It needs two numbers (n and c) and needs to edit them. So I decided to put the numbers in pointers, and just give the adress two the pointers. After about a half-houre of fumbling with *'s and … Software Development c | |
Hello I am not an experienced programmer, and I entered some code from a book I am following, to see if it would work but unfortunately I have run into some difficulty. This program prompts the user for the red, green, and blue values, and then fills a rectangle with … Software Development java java-swing | |
Hey all, Here is what I'm trying to do. I have a list whose output is: [['4/18/94', '29.125', '442.46'], ['4/19/94', '29.336', '442.54'], ['1/20/04', '75.175', '1138.77'], ['1/21/04', '75.711', '1147.62'], ['1/22/04', '75.595', '1143.94']] Item [1] in each list, the middle item, is the number I want to focus on. Currently, I have … Software Development python | |
Hey guys, I have been trying to search for this answer on online tutorials, but cannot figure out just what I am doing wrong. I have a list of names, and some of them have the character '/' For example: [CODE]list = [adam, bill, jon/juan][/CODE] Because later in my code, … Software Development python | |
Hi, We are into Reports development using C# and PDF Library (for front end). The development is done in Visual studio 2005/2.0 framework. Now since the production has 1.1 framework, I was asked to "downgrade" to VS 2003. The problem is we have Tuple/generics in 2.0. After I recreated the … Software Development c c# c++ pdf visual-studio | |
Is there an easy way to handle input from an entry box, in my project I am working on I have to call functions twice which ends up making a large mess of everything. Like if I call the [code=python] import tkMessageBox from Tkinter import * def yes_no_ask(answer): guidisplay.actiondisplay.configure(state=NORMAL) guidisplay.actiondisplay.insert(INSERT, … | |
I have a textbox and two events. The first event selects all text in the textbox if there is any. The second event deselects the text. My to events... [CODE] private void Textbox_enter( object s, EventArgs e ) { TextBox box = s as TextBox; box.SelectionStart = 0; box.SelectionLength = … Software Development | |
I need to log in to a website with Java, its an https(SSL) site. I have some code that doesn't give me an error but it doesn't log in. I've tried a similar program in python and it didnt login either. I think I'm missing some basic concept about this... … Software Development java | |
i have an arraylist, that stores objects from a class called prematricula and every object stored has name and province how i can do to pass the name of the province and the method return the names of the students sorted alfabethically... please if someone can help me.... Software Development java | |
How to make with C language for Feistel Cipher coding... plis help me !!! im new bie Software Development | |
Have created a simple bingo game, I'm going to add color later (why I have used the SetConsoleTextAttribute). The problem is that the X i replaced by 88, I know why (I think), it's becuse it's a int and not a char, but when i tried to put in (char) … Software Development c++ | |
Hiii..... when my program running this message comes.. Windows has triggered a break-point in mypgm.exe This may be due to a corruption of the heap, and indicates a bug in mypgm.exe or any of the DLLs it has loaded Actually in my operation I was copying files... Memory is deleting … Software Development c++ | |
Alright my program is giving me a hard time and I will have to briefly explain what it does and when the exception is thrown to give you a better understanding. My program goes off and reads a csv file, once it reads it, it adds the information to my … Software Development java | |
hi, I want to display data in to form(form contains textbox,combobox,datagrid) from database. Software Development vb.net | |
Hello, I am writing a method which must open a file, read its contents, close the file, open it later, write to the file, and close it again. The method is failing at the first step and throwing an IOException when trying to execute: [CODE]FileInput Stream fileHandler = new FileInputStream("myfile.fil");[/CODE] … Software Development file-stream java | |
Hi guys, i am quite newbie to c++. Is there any way to know object class. I have a object and i want to know the exact class name for that. Software Development c++ | |
![]() | Hey guys! I just wanted to make a simple Python Keylogger to know whether some on is fiddling with my laptop while I'm away or not...also, I want it to write the keys pressed to a file... Oh, and, do to this is pyHook easier or Threading? And, BTW, what … Software Development python ![]() |
my name randy im IT student... in this semester i take computer network security, and i get the Feistel Cipher assignment... the lecture give the assignment is create feistel cipher program with any language... any other of you can help me with java language???? please thx Software Development java | |
[B][COLOR="Red"]First:[/COLOR][/B] I'm not asking how to do this, just carry on... Hey, I found a nice link on how to read C/C++ declarations: [B][URL="http://unixwiz.net/techtips/reading-cdecl.html"]http://unixwiz.net/techtips/reading-cdecl.html[/URL][/B] I'm leaving it here for anyone... I hope it will be useful to you! Software Development c | |
The .h file traditionally holds declarations and the .cpp file the definitions. The #include inserts the human readable ASCII code that is the .h file, right there at the top before compiling. The main purpose of the .h file was to gather together all the declarations (more even than you … Software Development c++ file-system | |
So I have this simple list and scroll bar combo and I have been trying to make it stay at the bottom of the scroll bar as the text is added so it looks like the scroll bar is just to look back over the previous text. Like in a … | |
public byte[] EncryptMyData (byte[] plainData, out byte[] encryptionKey)<-- what the mean of this??? { encryptionKey = Guid.NewGuid().ToByteArray(); int[] scheduledKey = AcedCast5.ScheduleKey(encryptionKey); long iv = AcedCast5.GetOrdinaryIV(scheduledKey); byte[] result = (byte[])plainData.Clone(); AcedCast5.EncryptCBC(scheduledKey, result, 0, result.Length, iv); AcedCast5.ClearKey(scheduledKey); return result; } public byte[] DecryptMyData(byte[] encryptedData, byte[] decryptionKey) { int[] scheduledKey = AcedCast5.ScheduleKey(decryptionKey); long … Software Development | |
Hi All I am attempting to install a low level keyboard hook using the following calls: [code]HANDLE hDll = LoadLibrary(DLL_NAME); LPVOID procAddress = GetProcAddress(hDll, "HookProc"); HHOOK wHook; wHook = SetWindowsHookEx(WH_KEYBOARD_LL, procAddress, hDll, 0);[/code] I have built a DLL containing HookProc define below: [code]__declspec (dllexport) LRESULT CALLBACK HookProc (int nCode, WPARAM … Software Development c | |
hi all ..i have a problem with my project and need your help plz ... i have this code [code] int [] exp = {32,1,2,3,4,5,4,5,6,7,8,9,8,9,10,11,12,13,12,13,14,15,16,17,16,17,18,19,20,21,20,21,22,23, 24,25,24,25,26,27,28,29,28,29,30,31,32,1}; int [] expword = new int [exp.length]; String s=toenc.getText(); if(s.length() < 32) JOptionPane.showMessageDialog(null,"Word must be 32"); else{ int[] e = new int[s.length()]; for (int … Software Development java | |
does anyone of you lot know a way to use colors in a program compiled in Dev C++, except for the [code=c++] system("color a"); [/code] function? and I'd also be glad to know another way to clear the screen, then the: [code=c++] system("cls"); [/code] function Software Development c++ | |
Hey guys, I want to be able to insert data into text boxes and when i press the button store to be able to store the data into the database. Does anyone know the code to do this? Below is the code I have used so far, I know its … Software Development open-source vb.net | |
i have to get an integer out of the unsigned char string and assign it to unsigned int varable.... i mean if i have unsigned char array = { "123"}; i simply want to get either 1 or 2 or 3 out of it and assign it to unsigned int … Software Development c++ | |
hey everyone i am using a select query and showing input string is not in correct format ...plz help me...... here is my query..... int id = Convert.ToInt32(String.Format(@"SELECT Id FROM Student WHERE RegNo ='{0}' ", cmbRegNo.Text)); Software Development | |
Hi all, I am wondering if it's possible to change the order of elements? Added few check boxes and then GroupBox. However, groupbox is under checkboxes which makes them not visible. How do I change that? There must be a better way than just recreating groupbox first and then checkboxes. Software Development pascal | |
I have written a poker game in Python and have it fairly well finished. My hang-up now is an option to play again. Most of the game is in a function called playHand() which re-runs as long as you still have money, but if you lose all of your money, … Software Development python | |
Hello, I am not sure if anyone will understand what I am asking for, but here goes anyway: I am looking for a way to generate a list of tuples with random values; something like the range function except I want to have a list of tuples rather than integers. … Software Development python | |
Im just new in java and im trying to make a program that would copy a picture from a specified folder and paste it also to a specified folder. i know how to select the picture using the filechooser and my problem is how to copy it. | |
My Question : Suppose IA--->>>An Interface void func(); A---->>>Abstract Class implementing IA void func(){} B---->>Class extending A void func(){} C---->>Class extending B void func{} Now what i am doing .... i made an Object of C class..... C c = new C(); IA ia = c; now if i want … Software Development java | |
My friend and I are trying to write a program for my Spanish teacher so that she can just type Spanish words and English words into an application, those words get stored as an array somewhere, and then another program that tests the kids uses that array. The program gives … Software Development c++ | |
I'll try to get this as simple as possible. The problem is fairly simple. [code] long double a=100000000; cout<<a; [/code] Well, the output this shows is "1e+08" I do not want the output to be in exponential form. Rather, I want it to be printed as "100000000". What shall I … Software Development c++ | |
i have an assignment: Write a recursive function that will compute the value of a representation of a number in given base. int base(char num[], int radix); For example, calling the function as base("1011", 2) should return 11, but calling it as base("1011", 10) should return 1011. i need to … Software Development c | |
Public Sub SearchUser() Try conn = New MySqlConnection() conn.ConnectionString = "server=localhost; user id=root; database=eps" conn.Open() sqlquery = "SELECT username FROM pass WHERE username = '" & cmbUserName.Text & "'" Dim myCommand As New MySqlCommand() myCommand.Connection = conn myCommand.CommandText = sqlquery 'start query myAdapter.SelectCommand = myCommand Dim myData As MySqlDataReader myData … | |
Hey everyone, I tried a site search but it turned up cold. Has anyone here ever written a small method to take a list of names and sort them in alphabetical order? If so, would you mind posting it up, or directing me to a tutorial that would explain this … Software Development python | |
Hi every body I want to know how i can read a very large binary file in to a character array using c++. I can read the whole file by using fread function but when i go no searching anything in that character array. i cant search. i have used … Software Development c++ | |
Respected Sir/Madam I need to find out the execution time of a fragment of code. For that I am using time_t structure, but it gives time in seconds. And the value of CLOCKS_PER_SEC in my comp is 1000000. Will you please me in getting the time in milliseconds Thanks & … Software Development c | |
Hi All, I want to convert any (current datetime differs in format depending regional setting) into 20090622172120 format. How do I do that? I want solution that work with any regional setting. many thanks, Jeet Software Development | |
Hi again my problem is i always make mistake in writing statement for update, here's the code [code=vb.net]Private Sub cmdUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpdate.Click Try Dim com As New OleDbCommand com.Connection = con com.CommandText = "update Watches set WatchBrand='" & txtWatchBrand.Text & "',WatchModel='" & txtWatchModel.Text … Software Development vb.net | |
i am using [B]VB.NET 2003 [/B]and i need to read some data from a cvs file and store it into a two dimensional array.... i couldn't find an example anywhere.. pls help :'( Software Development vb.net | |
Write a Python program to show the temperatures starting at zero degrees Celsius, up to 100 degrees Celsius, in steps of 2 degrees, with the corresponding Fahreneit temperature shown in the next column. Temperatures should be shown as floating point numbers to two decimal places. Use a for loop for … Software Development python | |
I am new to python program, don't know much about the syntax of python. I have written a program which will extract the csv data as below. <html> <body> import csv, sys filename = "inputfile.csv" reader = csv.reader(open(filename, "rb")) #rownum = 0 try: for row in reader: #if rownum == … Software Development finance open-source python | |
Hi all, I need some help on parsing latin character, when i am applying stylesheet(XSLT) on source xml file this will give some target xml file but when transforming file those latin characters converting into "?"(Question mark). Please help me how to solve this problem... Software Development xml | |
can anyone show me the diffrence ? im still confuse i read about vb and net at wikipedia but i just dont understand vb.net and vb . Software Development vb.net | |
[code] #include <iostream> #include <cstdlib> using namespace std; int main() { cout <<"enter the problemset and number""\n"; //problems represents name and numbers string problems , probtitle; string xx; bool x=true; char quote; string str1, str2; string begin; //gather name if(cin.peek()=='"' || cin.peek() == ''') { cin >>quote; getline(cin,problems,quote); } else … Software Development c++ | |
Hello, I have a question to ask whoever can help me. I've have dev - c++. see I've been using C++ for a while now but i'm still sorta a newbie... i havn't had this problem before but i've been trying to do a password program just to play around … |
The End.