132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Remy the cook

I am trying to extract blogs related to economy using the RSS feeds in python. I have no idea how to get a specific number of blogs and how to get those blogs in a particular domain (like economy). My project requires analysing these blogs using NLP techniques, but I'm …

Software Development python xml
Member Avatar for Remy the cook
0
2K
Member Avatar for Nebil

i have a rich text box that displays items.These items have column names.The column names are loaded when the form loads.They hold values as rows.These rows are appended at a click of a button (when add button is clicked). At the bottom,let me say i have another field(total amount) in …

Software Development vb.net
Member Avatar for tinstaafl
0
251
Member Avatar for cambalinho

i'm building a class with std::function for recive several parameters or none: class event2 { public: typedef std::function<void(...)> OnSomethingHandler; void operator() (...) { eventwithoutarg (...); } event & operator = (OnSomethingHandler Handler(...)) { eventwithoutarg(...) = Handler(...); return *this; } private: OnSomethingHandler eventwithoutarg(...); }; what i'm doing wrong with '...'?

Software Development c++
Member Avatar for Ancient Dragon
0
7K
Member Avatar for roshan_iiita

I am trying to run a shell script at a fixed time with the help of "at" command. But it doesn't seem to work. For example, I created a shell script named as "task" having content: vlc and schedule it to run at 21:52 with the command: $at -f task …

Software Development shell-scripting
Member Avatar for alex.sergeev.311
0
698
Member Avatar for ricardo.driju

Hi everyone, please help me, i don't know how to insert a datepicker in VB4. I am trying to find something in the web, but there is no documentation about it. I will apreciate a lot the help. Thanks in advanced.

Software Development visual-basic
Member Avatar for mridul.ahuja
0
73
Member Avatar for alina.nazchowdhury

i have three buttons and i want to disable a button until the first is pressed. Can anyone give me a clue, i guess is with if statements, but i don't know to do it.

Software Development visual-basic
Member Avatar for mridul.ahuja
0
166
Member Avatar for Con7e

Hello to all! I've made this script the other day, and I need some input from you telling me how could I improve the code / style. There aren't problems with the code (it does the job) but I want it more organized and "simple" so that in 1 week …

Software Development open-source python regex
Member Avatar for Con7e
0
275
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a possibility to pass a dictionary to another program? What I want to do is send some information from one program to another, I want to use an array but I can't set keys and that is what I really need and …

Software Development vb.net
Member Avatar for joshl_1995
0
217
Member Avatar for Satya Prakash_1

I am writing a GUI flow using wxPython which has 4 pages (or more). They way I have approached is creating 4 (or more) classes with each class defining its own static (background) and dynamic images / content. In my application I would then programmatically create instances class required and …

Software Development gui image python
0
244
Member Avatar for cambalinho

see these sample: template <typename a> class test { test(a argument) { cout << argument; } }; //declare it: int main() { test<string> a("hello"); } how can i do it: test a("hello");

Software Development c++
Member Avatar for cambalinho
0
389
Member Avatar for pythonnewbie16

Hey fellow programmers.Im a new python programmer.Only been learning for about 2 weeks.Below is a code I wrote this weekend.It is a simple text adventure.tell me what you think of it.Feel free to copy and paste it into python and run it yourselves.I'm open to suggestions. #Text adventure v 2.0 …

Software Development python
Member Avatar for snippsat
0
397
Member Avatar for PulsarScript

Hi to all, i need to implement ofstream outfile code. Here is my code.How can i implement the ofstream outfile to ,so that the contents of the collection are re-written to the file before the application terminates. #include "stdafx.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int list[12]; …

Software Development c++
Member Avatar for mridul.ahuja
0
128
Member Avatar for smitty68503

I am currently working on a project that has a textbox I need to do a validation on. I want to actually do two validations: 1) Make sure it is an integer and 2) Make sure it is divisible by 10. I have done a lot of searching and have …

Software Development vb.net
Member Avatar for raidenx44
0
365
Member Avatar for WildBamaBoy

I'm trying to send data back and forth between two computers using a Socket (TCP). The data is in the form of serialized Packet objects. At an early point in the application, it must send 25 or so Packets of the same type to the other side. See Case 1 …

Software Development socket-programming
Member Avatar for Ketsuekiame
0
543
Member Avatar for peter.son.10297

Hai everyone. I am new to this forum. Can anyone tell me the scope of jobs in java for the nest 10 years.

Software Development java
Member Avatar for JamesCherrill
0
170
Member Avatar for strRusty_gal

Hi eVeryone, Please help me on below code. I don't know what's the erorr mean. Error Message *test.c: In function ‘main’: test.c:12:2: warning: passing argument 2 of ‘tokenise’ from incompatible pointer type [enabled by default] test.c:5:6: note: expected ‘char **’ but argument is of type ‘char * (*)[100]’ test.c: In …

Software Development c
Member Avatar for strRusty_gal
0
297
Member Avatar for Dili1234

Is there possiblity to send, 5 data(5rows) at one time to the sql database in vb.net2008

Software Development vb.net
Member Avatar for Dili1234
0
159
Member Avatar for sanjit.dasgupta2

I am using Turbo C++ 3.0. Things to be noted : 1.) I am very new to C++ 2.) I can only use the above said compiler. 3.) List, vector, functions, classes, file-handling, structures, templates and objects cannot be used in the program as per my assignment. Here's my Code: …

Software Development c++
Member Avatar for sanjit.dasgupta2
0
1K
Member Avatar for Massive++

I need C++ CODE for appending an int array passing pointer

Software Development c++
Member Avatar for rubberman
0
175
Member Avatar for azwitsal

c++ program codes that computes for density, wherein mass and volume are asked from the user?

Software Development c c# c++
Member Avatar for kal_crazy
0
87
Member Avatar for Mafiamanandre

Hi all. I'm designing a Visual Basic 2010 forms app. I would like to create a login for this app so that unauthorized users cant use the app. Only people with a username and password can use it. I would like this login to act as a demo too. Explanation …

Software Development vb.net visual-basic
Member Avatar for joshl_1995
0
180
Member Avatar for iTechnnn

Let's say that i have an array of objects. So, I need to delete the count objects starting at the given index. Make sure to compress myObjects and update currentObject. You must also verify that the given index exists in myObjects and that there are count entries starting from there. …

Software Development java
Member Avatar for iTechnnn
0
273
Member Avatar for stevewilliams02

I have already made a post on how to open a JPG file but I now plan to use GIF image files. Can someone show me a sample code example on how to open GIF image files whenever you click buttons on TKinter GUI in Python? Thanks.

Software Development gui image python tkinter
Member Avatar for stevewilliams02
0
1K
Member Avatar for Xakzi

Hello! I got a neaty tricky situation here.. I have a picturebox1 and listbox1 and a few items in listbox1. I got images in resources.resx (bmp) and want to load different images depending on what index is selected.. I wanted for it to be something like this.. Bitmap bmp = …

Software Development image
Member Avatar for Xakzi
0
2K
Member Avatar for SpottyBlue

I have a problem when creating the Personal Finance Software in my group. It's part of my group's assignment. The EnterExpense() function only creates one line instead of many (if the user wants to continue entering more info). The ViewInfo() function can read the file, but cannot load the text …

Software Development c++ file-stream finance
Member Avatar for richieking
0
279
Member Avatar for dark_falzar

So I decided to learn Python as my first programming language... So far I kinda like Python(when i say so far, I mean just now i started it just now), I'm using www.codeacademy.com as a tutorial(more on studying the basics first) and so I'm just wondering will I be able …

Software Development python
Member Avatar for ryantroop
0
337
Member Avatar for castajiz_2

I would like to know if there is a class wich generates RANDOM words which have sense(are in use in the daily language in englis). I am making a project where uppon a given random generated word i would like to collect letters for that given word so once i …

Software Development
Member Avatar for castajiz_2
0
284
Member Avatar for bryann

I was wondering if somebody could explain this to me. I am trying to find numbers that are NOT divisible by other numbers. Originally i wrote: if i%3!==0 however it came up with an error and said it was invalid syntax Instead my code now reads if i%3!=0 This works …

Software Development python
Member Avatar for Lardmeister
0
116
Member Avatar for aVar++

Hello, I was revising for my exam and can't think what would go in this space... What do you guys think it is? Images can be stored as bitmaps. A bitmap is a description of the bits that make up an image. Each pixel is represented by a number that …

Software Development
Member Avatar for aVar++
0
207
Member Avatar for bnn678

So my code to test a prime number is as follows: PrimeTest(): test = input ( "What number would you like to test? " ) test = int(test) true = 0 divisor = 0 for divisor in range (2, 10): if ( (isinstance( test/divisor, int )== True) & (test/divisor == …

Software Development python
Member Avatar for bnn678
0
374
Member Avatar for johni700

I want to uploade image and also want to store in database.Please anyone help me and tell me the code or share some link of uploading image. thanxx

Software Development c# image
Member Avatar for ddanbe
0
184
Member Avatar for vladimir.bednoi

Good day, I need help with my code. It's very simple and I was compiling it successfully at school, but at home I'm having problems with it. Here is the code. http://gyazo.com/dc78a310f529374338a244227b56215f and #include <cmath> #include <iostream> #include <conio.h> using namespace std; int main () { float a, b, c; …

Software Development c++
Member Avatar for Moschops
0
277
Member Avatar for Lawrence Motshegetsi

Write a program that will get/input 10 employees data, then input time started to work hours then minutes, then employee should input time finished work hours then minutes. then find how many hours 1 employee worked and the average time worked by all employees. use arrays.

Software Development c++
Member Avatar for rubberman
0
96
Member Avatar for cwarn23

Does anybody know where I can find a c++ object oriented library for my c++ project where in short I can set each pixel on each frame to a specified color and saving the result to a .avi file preferably compressed. I know this sounds simple in theory but I …

Software Development c++
Member Avatar for rubberman
0
407
Member Avatar for sing1006

#include <stdio.h> #include <stdlib.h> double average(int arrx[6], int *ptr); int main(void){ int arry[6]= {2,5,4,5,6,7}; int count=0; double avg; avg=average(arry,&count); printf("The average is %.2f\n",avg); printf("Number bigger than average is %i", count); return 0; } double average(int arrx[6], int *ptr){ int c=0; int sum=0; double a=0; for(c=0;c<6;c++){ sum=(double)sum+arrx[c]; } a=sum/6; for(c=0;c<6;c++){ if(arrx[c]>a){ …

Software Development c
Member Avatar for Moschops
0
187
Member Avatar for chdboy

I want to open an Instance of a form in MDI Container here is my code I just want an instance of a form to Edit records in the database Private Sub BtnEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnEdit.Click Dim Emp As New Employee() Emp.MdiParent = Me …

Software Development vb.net
Member Avatar for deceptikon
0
3K
Member Avatar for iTechnnn

Let's say that i have an array of objects. So, I need to delete the object at the given index and make sure to compress myObjects and update currentObject. Also, I have to verify that the given index exists in myObjects. This is what I got: NOTE: I will just …

Software Development java
Member Avatar for JamesCherrill
0
171
Member Avatar for priyamtheone

MSDN recommends disposing any variable of type System.Drawing.Brush before its last reference is released. Otherwise, the resources it is using will not be freed until the garbage collector calls the Brush object's Finalize method. As we know, local variables are destroyed automatically when the control flow goes out of the …

Software Development asp.net visual-basic visual-studio
Member Avatar for Momerath
0
214
Member Avatar for infiniteloop56

Hi, I have a quick question. I am making a hang man game for project (I am at university as a computer science major), I have completed most of the game but have run into one small issue which has been given me a big problem. Right now I am …

Software Development java java-swing
Member Avatar for JamesCherrill
0
388
Member Avatar for Hollyin

**I have a half complete coding which basically comes down to a gui interface. The problem is that I don't know how to get it working as ticket vending machine with fixed rates and fixed amount of cash being able to put in. So, far, I've done up to calculating …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
266
Member Avatar for tricket_7

I am working on this editDistance program in Java, but I cant figure out how to return the new strings..... The program is returning the editDistance, but everytime a char doesnt match I want to delete it out of the string, in the end when I call printDistance(), I want …

Software Development java
Member Avatar for JamesCherrill
0
397
Member Avatar for flebber

Having trouble getting pyhon to repeat things for me. What I wanted to test was python's random.sample. So say I have a list myList = range(1, 15) I can for a single time do this import random >>> myList = range(1,15) >>> random.sample(myList, 3) [10, 6, 11] >>> I would …

Software Development python
Member Avatar for flebber
0
223
Member Avatar for daino

Would anyone know of a C++ library which can enable me to encode and decode Ascii base 85 encoding? I'm having trouble finding one on the web. Thanks

Software Development c c# c++
Member Avatar for daino
0
1K
Member Avatar for kruschev

#include <string> #include <iostream> #include <vector> using namespace std; class Person { public: Person(); Person(string n, string a, string tel, string em); string getName(); string getAddress(); string getTel(); string getEmail(); virtual string whatAmI(); private: string name, address, telephone, email; }; Person::Person() { } Person::Person(string n, string a, string tel, string …

Software Development c++ oop
Member Avatar for Krimeplay
0
362
Member Avatar for 12344321

Hi, I am new to writing code and am doing a programming assignment for a class that has to be separated into different functions. I figured most of it out, but can't seem to get the validation part to work at all. could someone with more experience than me please …

Software Development python
Member Avatar for 12344321
0
177
Member Avatar for idnurr

To get and set various variables inside structs in C++The main struct object should be a pointer.the structs have got so many member function to get and set it variables from the user.finally the structs should be protected in such a way that no two users can change the details …

Software Development c++
Member Avatar for rubberman
0
133
Member Avatar for Saboor880

I have been using Visual basic 6.0 for one year. 1-I want to know that what is difference between visual studio and vb 6.0? 2- What is difference between vb 6.0 and vb.net? 3- Now i want to use vb.net. So tell me how can i install vb.net? and from …

Software Development vb.net visual-basic visual-studio
Member Avatar for Deep Modi
0
397
Member Avatar for pc20912

I am using VB.Net 2008 Express Edition, I created project its works fine, Now I want to add Word File that Project and When run Setup File (from Publish) on another computer that Word file also autocopy with this project, Is possible to do this..? How I code to open …

Software Development file-system vb.net
Member Avatar for pc20912
0
504
Member Avatar for pythonnewbie16

Hello everybody. I recently started a python temperature conversion program and seem to be stuck. Im fairly new so I tried several things such as a fuction to convert temperature and and if and else statement and both combined. My code lets me input a temperature but then doesn't convert …

Software Development python
Member Avatar for HiHe
0
941
Member Avatar for Guled_1

Based on the loan application records of a bank and the example of query, write a program that determines whether a loan applicant is to be approved or disapproved his/her loan application. Criteria of an application to be considered are assets, income and the loan value. Applicant with assets > …

Software Development c++
Member Avatar for Ancient Dragon
0
105

The End.