43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for chophouse

I'm writing a script to automatically up load a file from Server A to FTP server B. I'm getting stuck at the connecting part. I can connect with a python script using regular FTP, and have done so, but when trying to implement a SSL connection, I keep getting a …

Software Development cybersecurity python
Member Avatar for chophouse
0
3K
Member Avatar for Crazyscript77

Hi all, just wondering if someone could help me out with a small loop question. If I had an input field in a GUI which writes to variable "counter" (a numerical value), how would I be able to use this value to control the amount of times a loop is …

Software Development gui python
Member Avatar for Crazyscript77
0
187
Member Avatar for smart_virus87

I'm playing around on how to get last name in the string. Below is my current code and it is working. I want to know if there is another way to do it. strMsg = "John Doe" length = Len(strMsg) For i = 0 To length char = Right(strMsg, i …

Software Development visual-basic
Member Avatar for Jx_Man
0
235
Member Avatar for nouth

for example I don't know what this is called ยป `[('cat', 'meow'), ('dog', 'ruff')]` if I try `for l in [('cat', 'meow'), ('dog', 'ruff')]: print l` I am using l for lady luck lucy not I for I or the number 1 + maybe even | pipe for smoking it …

Software Development python
Member Avatar for vegaseat
0
250
Member Avatar for salesman91

hi I am trying to save multiple images into one ID and I am getting no where ...I am posting the code so for storing and retrieving image (one image)...but need to store more than one ....need some help here ... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using …

Software Development dataset open-source oracle sql
Member Avatar for salesman91
0
2K
Member Avatar for strRusty_gal

Hi Everyone, I need help with my assignment but i only require assistance to give me some guidance on the issue. I need to write code in c linux programming, that can change directory [CD]. when you open the command prompt in the linux machine, you type cd .. or …

Software Development c
Member Avatar for strRusty_gal
0
240
Member Avatar for asaidi

Hi can i run a program on windows compiled under ubuntu... simply..the program was wrotten on c++ under ubuntu os thanks

Software Development c++ ubuntu
Member Avatar for iamthwee
0
108
Member Avatar for TheFueley

I remember doing a class to handle rational numbers in one of my classes way back when. I decided to do it again. What I'm having trouble understanding right now is why do I even create a class when my overloaded functions are all friend functions? As I understand it, …

Software Development c++
Member Avatar for TheFueley
0
681
Member Avatar for ObSys

Trying to return Multiple Card objects from a hashmap Currently using the following code private HashMAp<Integer,Card> allCards = new HashMap<Integer,Card>(); public Card getAllCards() { Collection col = allCards.values(); for(Card c: col) { return c; } } This works but only returns 1 Card object from many. How can I change …

Software Development java
Member Avatar for ObSys
0
170
Member Avatar for kkjaykamau

I am new to using datagridviews and wanted to know how to populate certain fields. I have created a form and added a datagridview (named GridSellProducts) with Visual Studio designer and added 8 columns with the first named Item. I have also changed the column type for Item to DataGridViewComboBoxColumn …

Software Development json visual-studio
Member Avatar for Kratoswoo
0
181
Member Avatar for pc20912

Table1 ID Name City ContactNo GK12-350 - Peter - Munich - 8997557906 EG24-812 - Colling - London - 8726 6000 RU38-915 - Brezhnev - Moscow - 4958721273 Table2 ID OderFrom OrderDate AprovedBy EG24-812 - City Saloon - 23-03-2012 - Thomas RU38-915 - General Merchants - 01-07-2011 - Rumpe EG24-812 - …

Software Development vb.net
Member Avatar for jrevox
0
608
Member Avatar for DanielTradeWs

I have this problem, I have a SQL code working perfectly on SQL Query windows... SELECT ID_no, nom_navire, date_mes, date_sav, description, nom_fourn, no_facture, date_facture, accept, decline FROM DB_FACTURE WHERE( ID_no = 39) Answer perfect On my code Is ... SELECT devise FROM FOURNISSEURS WHERE nom_fourn = '" + Nom_FournPass + …

Software Development open-source vb.net
Member Avatar for DanielTradeWs
0
400
Member Avatar for glao

Hello, I wanted to ask. If I define `typedef float mymat3[3];` and then I have a function: void myfunc(float *One_mat_, .... and inside function I do: mymat3 * One_mat=(mymat3 *)One_mat_; while(i<numPoints) { One_mat[i][0] = (One_mat_[++c1]); Does this mean , that I am copying One_mat_ (which I am casting it as …

Software Development c++
Member Avatar for glao
0
170
Member Avatar for DanielTradeWs

Hi every boddy Big problem here. I don't know if from access or vb.net I program in Visual Basic inside Visual Studio 2010 I have Access 2002 dbase with the first field caled ID_no : autonumber and primarykey and it is a "LONG INTEGER" I can not change because it …

Software Development vb.net visual-basic visual-studio
Member Avatar for DanielTradeWs
0
613
Member Avatar for Iceman10284

Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and the display the following data: โ€ข The lowest number in the array โ€ข The highest number in the array โ€ข The total of the numbers in …

Software Development python
Member Avatar for booicu
-1
7K
Member Avatar for Waseemaburakia

I'm trying to modify a Bibblesort code I'm writing that will count the number of instances and print out a seperate line for each instance and how many occurances it had. def BubbleSortList(MyList): ComparisonCounter = 0 for j in range ( len(MyList)): for i in range ( len(MyList)-1-j ): if …

Software Development python
Member Avatar for Waseemaburakia
0
294
Member Avatar for Kratoswoo

using (StreamReader readFile = new StreamReader(filepath)) { string line; while ((line = readFile.ReadLine()) != null) { textBox1.Text = textBox1.Text + line + Environment.NewLine; } } This is what I have so far. I have tried using .Split to try to seperate them but do not know much about it. So …

Software Development
Member Avatar for ddanbe
0
234
Member Avatar for kyriacos1986

I am trying to calculate the overall time of an album. The user enters the track length (double) in format mm.ss . Then convert this in a String so I can calculate min and sec separately. public void overallRunningTime() { int min = 0; int sec = 0; for(int i …

Software Development java
Member Avatar for kyriacos1986
0
112
Member Avatar for manel1989

Hi everyone! I have in my GUI and two radio button **choco** and **gecode** and under each button (choco or gecode)I have 2 radio buttons *solution optimal* and *Feasible solution*: my problem lies in the selection buttons. Let me explain: when I click the radio button **choco**, I …

Software Development gui java
0
158
Member Avatar for cambalinho

//write void write() { setlocale(LC_ALL, "en_US.UTF-8"); cout <<""; } template <typename A, typename ...B> void write(string argHead, B... argTail) { setlocale(LC_ALL, "en_US.UTF-8"); if (blnBlink==true) { CONSOLE_SCREEN_BUFFER_INFO csbi; GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi); string a; a=argHead; TextBlink(a, csbi.dwCursorPosition.X, csbi.dwCursorPosition.Y,csbi.wAttributes); COORD Position; Position.X=csbi.dwCursorPosition.X+strlen(a.c_str()); Position.Y=csbi.dwCursorPosition.Y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),Position); } else cout << argHead; write(argTail...); } template <typename A, …

Software Development c++
Member Avatar for cambalinho
0
199
Member Avatar for sinnebril

Hi, I'm trying to teach myself the Python language with the Google Python class ([url]http://code.google.com/edu/languages/google-python-class/set-up.html[/url]). With the exercise 'wordcount' I get a Traceback error (with the main function and sys.exit(1) function). Even with the solution script (as displayed here). Does anyone recognize this problem and can some one tell me …

Software Development google python
Member Avatar for vegaseat
0
992
Member Avatar for andrew mendonca

Here is the website for the assignment: http://www.docdroid.net/6ap6/inheritance5.pdf.html Note: The ones highlighted in blue are the ones I completed, and the ones highlighted in yellow are the ones I need help with. Here is the website for the first header file (point.h): http://ideone.com/6bAeqv Here is the website for the first …

Software Development c++ pdf
Member Avatar for richieking
0
208
Member Avatar for vn412

Hi, I have a table with curdt field with datatype datetime in ms-access. the entries in curdt as follows:1/28/2011, 2/9/2011 etc. I have a form with two datepickers with custom format of dd/mm/yyyy. my query is like [CODE] select * from table where curdt between #dtfr# and #dtto# [/CODE] where …

Software Development vb.net
Member Avatar for Krishan_2
0
615
Member Avatar for Labdabeta

Hello, I am working on an event driven library and am having one minor problem. Basically I have two ways to get what I want done. Method 1: Smart pointers and factory functions #include <iostream> #include <vector> #include <memory> using namespace std; class Object { public: virtual int getInt(){return 0;} …

Software Development c++ oop os-x
Member Avatar for Labdabeta
0
257
Member Avatar for alina.nazchowdhury

I have a code where if some buttons are selected its showing in a message box which was selected, but if no button was selected I want to show a message in the message box. Here is the code, please make me understand, I tried by my own but its …

Software Development visual-basic
Member Avatar for alina.nazchowdhury
0
302
Member Avatar for Liam Stover

I followed this code im new to programing and i wanted to make someones elses program then chnage it to my liking, i finesd the code and i tryed running it and all it send in the console was "<terminated> Main[Java Application] C:/Program Files(86x)/java/jre7/bin/javaw.exe (Nov 19, 2013 11:15:54: PM)" the …

Software Development java
Member Avatar for Liam Stover
0
103
Member Avatar for jrosh

I have two web services added to the project. One is real web service. Other one is test webservice. i have used them to set some parameters. eg: WS.OrderDescription WS.Amount WS.OrderNumber etc I want to change this WS and WS-test interchagebly. For that i want to add this two into …

Software Development
Member Avatar for jrosh
0
107
Member Avatar for Kratoswoo

So What I am trying to do it take a CSV file take what is in it and diplay it in a big textbox or txt file. String[] lines = File.ReadAllText("**").Split(','); foreach (string line in lines) { textBox1.Text = line; } That is what I have so far. Issues is …

Software Development
Member Avatar for Kratoswoo
0
172
Member Avatar for ThisIsMeOrIsIt

Hi all - I need to write a program that reads in an array of strings from a file and uses a radixSort method to sort and print the array based on what characters they are composed of. The implementation should be able to handle strings of characters. The characters …

Software Development java queue
Member Avatar for mas971
0
4K
Member Avatar for apiatex

write a function named, smallestValue, that accepts five integers and return the smallest integer accepted.( just write a function)

Software Development c++
Member Avatar for phorce
0
189
Member Avatar for krystosan

How do I rotate image in this code every n seconds http://pastebin.com/SKDzuC15 lets say i want to change the image in pixmap after 5 seconds to next image, what is happening right now the last one gets displayed.

Software Development image python
Member Avatar for krystosan
0
268
Member Avatar for vbforum

I'm creating a document using an existing document and adding text to it, then saving it as a different filename. I'd like to have a hyperlink in it, but I'm having an issue. The hyperlink is created and looks fine but doesn't work because the file location is added to …

Software Development perl vb.net
Member Avatar for G_Waddell
0
225
Member Avatar for kyle.mace.35

So I am trying to reverse a string inputed by a user and I am getting an error on one line of my code the line is lw $t3, $t0($t1) #load value. Why can I not do this? .data prompt: .asciiz "Enter in a string: " backwards: .asciiz "That string …

Software Development assembly
Member Avatar for turboscrew
0
6K
Member Avatar for stevewilliams02

I need help with the button action for this code. When you click on the button, a new window should open with the GIF image of the horoscope sign. The name of the GIF image files are "Pisces.gif", "Taurus.gif",etc. from Tkinter import * #Call all modules for TKinter in order …

Software Development gui python tkinter
Member Avatar for sneekula
0
192
Member Avatar for raidenx44

Public Class Add_Material_Form Public Sub ComboBoxMaterialClass() Dim MatClassnum As Integer Dim MaterialClass() As String = {"Book", "Dissertation", "Journal", "Theses"} For MatClassnum = 0 To 3 MaterialClass(MatClassnum) = cmbMaterialClass.Items.Add(MaterialClass(MatClassnum)) Next cmbMaterialClass.Text = "Select Material Class" End Sub Private Sub Add_Material_Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ComboBoxMaterialClass() End …

Software Development vb.net
Member Avatar for raidenx44
0
144
Member Avatar for robert99x

Programming Python 3rd Edition by Mark Lutz has example code (below) where a variable seems to be assigned with options ("or") but what the criteria for selecting the options is not clear. The explanation is almost non-existent but I think this is to do with feeding in a variable number …

Software Development os-x python
Member Avatar for robert99x
0
293
Member Avatar for VBOI

Instead of entering text to console, I want to use the text from a text file and use this function and method to do a concordance count of words and how many times they appear in the text file. check line 137 #include "stdafx.h" #include<stdio.h> #include<stdlib.h> #include<string.h> #include<conio.h> #include<ctype.h> #include …

Software Development c++ linked-list
Member Avatar for iamthwee
0
180
Member Avatar for Pioggia254

Hello! I am a newbe to python and apologize in advance for this question, because I am sure it is an easy fix that I am oblivious too - I wrote this simple program for a guessing game- very basic, which is fine - but when you get to the …

Software Development python
Member Avatar for vegaseat
0
173
Member Avatar for alina.nazchowdhury

Hello, i would like to allow the user to press Retry button from msgbox only 3 times. I just don't succedd to do it, here is my code if anybody can help me? Private Sub cmdValid_Click() Dim Response As Integer If txtPassword.Text = txtPassword.Tag Then MsgBox "You've passed security!", vbOKOnly …

Software Development visual-basic
Member Avatar for alina.nazchowdhury
0
544
Member Avatar for vinodvinu

Hi there, I am a newbie in programming. Python is my choice. because it is easy to learn. But the Tkinter GUI making is horiible. I don't like to write code for GUI. I like the visual basic method. So i installed Qt Designer. But i don't know how to …

Software Development gui python qt
Member Avatar for vegaseat
0
446
Member Avatar for KAMAE94

a C++ program that reads in two partially filled arrays. One array contains student IDs (with int type) and the other contains GPAs (with double type). The program will sort the two arrays according to the student ID and print out the results?

Software Development c c# c++
Member Avatar for iJimJones
0
160
Member Avatar for prettyknitty

I have been working on this code (school assignment) for a few days now. It seems to be almost finished, but I am not sure what's going on. When I run it in an online complier, it displays correctly, which is supposed to look something like this "12345" "1234500000" However, …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
913
Member Avatar for skyyadav

#ifndef BASE_H #define BASE_H class Base { public: int m_nValue; Base(int nValue=0) : m_nValue(nValue) { std::cout << "Base" << std::endl; } }; #endif #ifndef DERIVED_H #define DERIVED_H #include "Base.h" class Derived: public Base { public: double m_dValue; Derived(double dValue=0.0) : m_dValue(dValue) { std::cout << "derived se" << std::endl; } friend …

Software Development c++ oop
Member Avatar for gerard4143
0
322
Member Avatar for Red_Rain

perhaps there is some sort of logic error i am missing here but i cannot figure out whats going wrong. I wrote this simple for loop to write the contents of a ComboBox to a txt file. The process works but for some reason it is doing the job twice. …

Software Development operating-system visual-basic
Member Avatar for Reverend Jim
0
177
Member Avatar for mavtcr

Friends please help me in FORMATTING DATE I have a Form with three text boxes 1.txtNo- Data type-Number 2.txtName-Data type-Text 3.txtDob-Data type -Date format dd/MM/yyyy two buttons one for adding and the other for viewing Using visual data manager I have created a database-Members with table-List having the following Fields …

Software Development visual-basic
Member Avatar for mavtcr
0
299
Member Avatar for kal_crazy

Ok I have done the fibonacci number iteratively but now I want to do it recursively. I am using CPUSims 3.6.9 16-bit (4 bit opcode). ;getN ;get a value, n, from user ;test if fib(0) or fib(1) return to main with value getN: read ;read a value and store into …

Software Development assembly storage
Member Avatar for kal_crazy
0
2K
Member Avatar for Prithvi.R.K

Can any one tell me how to check if the elements of two arrays are same? in c

Software Development c
Member Avatar for Prithvi.R.K
0
204
Member Avatar for cambalinho

i understand that the macro is a code that is changed before compile it. so i did these macro with these code: #define (events2((y),(x))) (class events3 : public ( y ) { events3(); ~events3(); }(x) ; ) //#define (events2((y),(x))) (class events3 : public ( y ) { events3(); }(x) ; …

Software Development c++
Member Avatar for Ancient Dragon
0
224
Member Avatar for rovastola

So I have to make a code that asks the user how many times it wants the word "nonsense" to be printed on a new line, I managed to get it to work but its reverse, if i write 100 it prints once and 1 it prints hundred times, how …

Software Development java
Member Avatar for rovastola
0
117
Member Avatar for Mr.M

Hi Dw I'm working with permissions in my program I want it to protect the chosen file by permissions and now what I want is how can I make these permissions unchanged by a user? Or if not possible because I don't want even the administrator to change these permission …

Software Development cybersecurity microsoft-access vb.net
Member Avatar for Mr.M
0
788

The End.