132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shahinalam07

Given: A string s of length at most 200 letters and four integers a, b, c and d. Return: The slice of this string from indices a through b and c through d (with space in between), inclusively.

Software Development python
Member Avatar for stbuchok
0
105
Member Avatar for m_ishwar

Guys! I would like to know if it was possible to create an assembler using python since it has excellent string handling features. Any Ideas how it could be done?

Software Development python
Member Avatar for m_ishwar
0
158
Member Avatar for liliafan

Hi I am attempting to pass a reference to an object from one function to another, is this even possible, if so what is the syntax this is an example of what I want: [code] class SomeClass { public: int a = 100; }; void second_function(SomeClass & ref_to_classobj) { std::cout …

Software Development c++
Member Avatar for Lucaci Andrew
0
218
Member Avatar for mesbahuk

I have been working on a conversion project for last few days where I need to convert a Java library to C#. At one point I came to java's certain feature called [Exceptions Thrown by a Method](http://docs.oracle.com/javase/tutorial/essential/exceptions/declaring.html). Here is a little glimpse of it: public boolean isRequest() throws NullPointerException { …

Software Development c# java oracle
Member Avatar for Ketsuekiame
0
306
Member Avatar for gyno

Hi everyone, i want to write codes that will input random number to an array(say of size 9),already i have used random method in Math class but i just want to know if there is another method i can use to input random number into an array other than the …

Software Development api java
Member Avatar for JamesCherrill
0
259
Member Avatar for rash_13

I have successfully implemented Porter Stemming Algorithm. I wanted to project ideas, as to where I could apply it, a more practical application?

Software Development algorithm c++
Member Avatar for Lucaci Andrew
0
128
Member Avatar for farhaana.ahmed.58

i have a text document 'topics.txt': 1~cocoa 2~ 3~ 4~ 5~grain~wheat~corn~barley~oat~sorghum 6~veg-oil~linseed~lin-oil~soy-oil~sun-oil~soybean~oilseed~corn~sunseed~grain~sorghum~wheat 7~ 8~ 9~earn 10~acq and so on.. here the numbers correspond to the file names, i have about 20000 files. import os import re import sys sys.stdout=open('f1.txt','w') from collections import Counter from glob import glob def removegarbage(text): text=re.sub(r'\W+',' …

Software Development python
Member Avatar for chriswelborn
0
250
Member Avatar for ZER09

does any one experience this while using mdi the code is something like this using a as new form a.mdiparent = this a.showdialog() end using then when i tried to show the new form it will close automatically. why is that happening? thank you

Software Development vb.net
Member Avatar for ddanbe
0
96
Member Avatar for anisha.silva

Hi i am new to the web service technology. how do i deploy a web service in AWS in a micro account. i need to deploy a application to access a book store online. appreciate if someone could point me to some tutorials. Appreciate a reply. thanks

Software Development api java xml
Member Avatar for radhakrishna.p
0
332
Member Avatar for J-P1988

Hey! When i compile my code in Qt5, i get an weird symbol of triangle with an "?" at place of an french À. I try to chaqnge encoding to Latin1: no changes. UTF-8 it's same and i can't edit it. I tried many encoding but no changes. Weirdly months …

Software Development c++ qt
Member Avatar for J-P1988
0
116
Member Avatar for jose.a.rueda.5

Hi! I have this kind of project and im really needing help for it. The compiling and print have to be a spiral matrix. it must start in the center and then move to the right and then up and then to the left, making a spiral. I have to …

Software Development c
Member Avatar for jose.a.rueda.5
0
161
Member Avatar for AmrMohammed

Greetings I have a MDI application that when run for the first time it asks for the activation code by showing the main Windows Form (MDI parent) and another activation acquire code Windows Form showed above the main Windows Form using the ShowDialog() method. The main Windows Form including a …

Software Development
Member Avatar for AmrMohammed
0
249
Member Avatar for nathan.pavlovsky

Hello programmers! I am trying to return an array, made up of 7 members, all type ints via a pointer from a function. Here is a prototype of a function that does this: `int[7] colCountArray={0,0,0,0,0,0,0} //array saved in Board obj.` int* Board::accessColCount() { return &colCountArray; } However, my compiler dosnt …

Software Development c++
Member Avatar for rubberman
0
115
Member Avatar for wolf29

I have 2 functions, one of which works and one of which doesn't. I do not understand this, because the only difference is that the second function puts in just the name of the variable, where the 1st function puts in the value. There is only one line to build …

Software Development dataset github open-source os-x python sqlite
Member Avatar for wolf29
0
327
Member Avatar for baabjitvk

hi when i'm giving some string to search in the data base, ms access, that search is going to be ignoring case. i want case sensitivity. how..? ex: if i would like to search for the word "Done", if there is no that word, and "DONE" is available in the …

Software Development visual-basic
Member Avatar for tinstaafl
0
97
Member Avatar for jpk1a873

I have to create a python program for class- the instructions are- Write a payroll program that pays time and a half for anything over 40 hours. This should have 3 functions in #addition to main. Which I did without the 3 funcitons. def main(): hours = float(input('How many hours …

Software Development python
Member Avatar for woooee
0
8K
Member Avatar for ScatteredHell

Hi, I want to make a app that can send and receive small text files each other. So I googled past days, only could find answers relating Sockets. I only found 1 good example, as others only had refer the MSDN. So I'm noob in C#, please anyone gimme a …

Software Development
Member Avatar for Ketsuekiame
0
150
Member Avatar for davidkroj

Hello All, My friend just made one dynamic website in Asp.net but after the complete development he want to change complete website in HTML. So please suggest me any tools in a market that can replace to complete dynamic website into HTML. Please suggest me how we can do that? …

Software Development asp.net html-css vb.net
Member Avatar for LaxLoafer
0
229
Member Avatar for mahesh113

How come foo(3,3.14); Doesn't work but Goo(3,3.14); works? Please reply. #include <iostream> using namespace std; double foo(double a, double b) { cout<<"foo(double a, double b)"<<endl; } int foo(int a, int b){ cout<<"foo(int a, int b)"<<endl; } double Goo(float a, float b){ cout<<"Goo(float a, float b)"<<endl; } int Goo(int a, int …

Software Development c++
Member Avatar for phorce
0
125
Member Avatar for vishalonne

I am using Netbeans 7.1 and MySQL. I need 1 column in jtable which will contain jradiobutton and user can select any 1 row's jradiobutton Please refer the fig for detail. After selecting RB further processing will be done on jbutton click event. ![64496cca6997d07cf995950d67a3e3f0](/attachments/large/2/64496cca6997d07cf995950d67a3e3f0.JPG "64496cca6997d07cf995950d67a3e3f0") Here is the code - …

Software Development java java-netbeans java-swing
Member Avatar for mKorbel
0
346
Member Avatar for james89

I need help on how to link different forms when programming

Software Development
Member Avatar for ChrisHunter
0
92
Member Avatar for GeekPlease

I have a datatable with nth column. Now, I want to change the index of some columns. Need help

Software Development vb.net
Member Avatar for GeekPlease
0
516
Member Avatar for weeraa

I developed a software using VB.net. (With VS 2008 Professional edition) The Project has Crystal reports in a folder. I want to make a setup exe with that folder. there are few videos in youtube for this. But I couldnt find any form or video that adding folder to the …

Software Development vb.net
Member Avatar for Luc001
0
251
Member Avatar for abra_ka_dabra

Could you please explain me what is a BufferedStream (what is a buffer and how it should be used?)? I have used a code that uses bufferedstream to write to a .txt file. I got the code while googling but don't know the theory behind how it works... please explain.

Software Development java
Member Avatar for abra_ka_dabra
0
182
Member Avatar for costy.bogdan

Hello, I'm a newbie in C/C++ programming and I wonder if you can make me understand the following, I have a small c++ statement, and the result is somehow weird for me: `char[10] arr="torino", *ptr; `ptr = arr;` `cout<<*&*&ptr;` and the result gives me the entire string.... PS: This is …

Software Development c
Member Avatar for costy.bogdan
0
121
Member Avatar for new_developer

Hi there, I am implementing simple student class when i run the program it crashes after getting input for char* name. Program is as follows. #include <iostream> using namespace std; class Student { private: char* name; int rollNo; float cgpa; public: Student() { name = ""; rollNo = 0; cgpa …

Software Development c++
Member Avatar for rubberman
0
419
Member Avatar for Affable zaki

hello folks. i have saved the values of unique_ID.text textbox1.text textbox2.text textbox3.text textbox4.text textbox5.text textbox6.text in columns column_ID and column_1 to column_6 in a table table_1 in database db_1. Now I want to update some values. but for that i want to show the values of column_1 to column_6 in …

Software Development sql vb.net
Member Avatar for M.Waqas Aslam
0
390
Member Avatar for nashy13

Guys, I want my textbox are ALL CAPITAL letters even I encode a small letter and it will become Capital .. thanks guys!

Software Development vb.net
Member Avatar for nashy13
0
236
Member Avatar for Clanstrom

Sorry for the confusing title, as I am new to C++ Basically, what I am trying to do is, to read a simple **test.txt** file's content, which are just two words actually: "Hello World" and desplay thier hexadecimal content in a shell, CMD or command line.(Whatever it is called), if …

Software Development c++
Member Avatar for Ancient Dragon
0
246
Member Avatar for thewilf

Hi All, Cannot for the life of me figure out what is wrong with application, when I run on laptop cannot get error to replicate however on tablet which application is designed to run on cannot figure it out. I have a windows form which is opened as an mdi …

Software Development assembly tablet vb.net
Member Avatar for Begginnerdev
0
224
Member Avatar for wolf29

I have a csv that needs to be put into a database format so I can sort and count the data. My approach has been to use python csv and sqlite modules. I am communicating with the database and creating one of the 2 tables. Second table has many more …

Software Development github python sqlite
Member Avatar for wolf29
0
3K
Member Avatar for CodyOebel

in my code for what happens when I click on my MAIN BUTTON runs my function light hack. Inside my lighthack function is a for(;;) {} forever loop. Inside this forever loop is a break when a condition is met. The problem I am having is when I click on …

Software Development c++
Member Avatar for Ancient Dragon
0
318
Member Avatar for cobaltfive

I am a new user of c++ and not really clear on pointers and the like , I have tried to search the web for some reasonable explanation but they just don't make much sense to me still. I would like to know what I need to do to pass …

Software Development c++
Member Avatar for cobaltfive
0
205
Member Avatar for sainisunil05

can someone please let me konw what is the error in this code, not getting expected output. #include<iostream> using namespace std; class myclass { public: int& num; myclass(int number) : num(number){} }; int main(){ int num1= 10000, num2 = 333; myclass mm(num1); myclass nn(num2); cout << mm.num << endl; cout …

Software Development c++
Member Avatar for Moschops
0
95
Member Avatar for KRUX17

Hi, I'm having some issues with getting next data from the database, it seemed to be working before, but now it doesn't change the textfields to the next data just appends the data into TextArea1 and TextArea2, the other data TextField1 etc.. Doesn't even change, so I do not know …

Software Development java
Member Avatar for KRUX17
0
203
Member Avatar for farhaana.ahmed.58

import os import re import sys sys.stdout=open('f1.txt','w') from collections import Counter from glob import glob def removegarbage(text): text=re.sub(r'\W+',' ',text) text=text.lower() return text folderpath='d:/induvidual-articles' counter=Counter() filepaths = glob(os.path.join(folderpath,'*.txt')) num_files = len(filepaths) with open('topics.txt','r') as filehandle: lines = filehandle.read() words = removegarbage(lines).split() counter.update(words) for word, count in counter.most_common(): probability=count//num_files print('{} {} {}'.format(word,count,probability)) …

Software Development python
Member Avatar for slate
0
4K
Member Avatar for nitin1

int m= i++ || ++j && k--; where i=2, j=3, amd k=5; acooridng to me, it will be executed left to right and then values of m=1, i=3, j=3 and k=5. but i have seen that precednace of && is more than || , than so how this expression is …

Software Development c
Member Avatar for Banfa
0
311
Member Avatar for cisumma

Hello. I have a app designed to organize dir’s on on the C drive where it was created. XML is extensively used in the business logic and house cleaning etc. public static final String USERHOMEDIR = System.getProperty("user.home", "."); <linkPath> C:\Users\Steves\Documents\.targetGuide\admin_\admin\Note Folder\test\c drive test tab\index </linkPath> public static final String USERHOMEDIR …

Software Development hard-drive java xml
Member Avatar for cisumma
0
344
Member Avatar for vani krishnan

We use to import packages in java like import java.util.*; import java.lang.*; import javax.swing.*; But, why is it javax for swing?

Software Development java java-swing
Member Avatar for jwenting
0
198
Member Avatar for ddanbe

Many situations arise when you have to choose between two options: true/false, male/female etc. This short snippet will only allow two chars to pass through: capital 'Y' or capital 'N'. The Read and ReadLine methods can serve also, but have the side effect you have to use Upper and Lower …

Software Development
0
250
Member Avatar for abra_ka_dabra

What is the difference between JDK and JRE? I know its silly to ask but i am shameless till i get my things get clarified... :D

Software Development java
Member Avatar for abra_ka_dabra
0
201
Member Avatar for Osaid9

Hello i'm trying to display date in textfield this is my code: private void DateObjectActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: java.util.Date date=new java.util.Date(); this.DateObject.setText(date.toString()); olny the problem is the date will only show If i press a button I want it to display automatically when I …

Software Development display gui java java-netbeans
Member Avatar for JamesCherrill
0
2K
Member Avatar for alaba81

**PLS HELP ME, design a digitally controlled washing machine that sets the wash temperature to 80degree celcius for cotten clothes 40degree celcius per quick wash and 1000 revolution for rinse and dry only using MICRO SOFT V. STUDIO 2010 c++ programming, PLS ITS URGENT!

Software Development c++
Member Avatar for Lucaci Andrew
0
126
Member Avatar for debasishgang7

Hi All, Using pydbg I'm opening certain files(ex. c:\\myfile.txt) within a win32 application(Ex. c:\\notepad.exe) in this way. dbg = pydbg() dbg.load("c:\\notepad.exe", "c:\\myfile1.txt") So my question is, if the target application(Ex. c:\\notepad.exe) is already running then,then is it possible to open a another file(For example c:\myfile2.txt ) within the same application …

Software Development python
Member Avatar for debasishgang7
0
258
Member Avatar for alaya
Member Avatar for tinstaafl
0
67
Member Avatar for G_S

Hy, I have a beginner question: when using PyDev should all my programs be inside a package or not?

Software Development python
Member Avatar for G_S
0
121
Member Avatar for ariel.cepeda.35

ys! I'm developing a software for a furniture company for keeping furniture cost to date.I'm Saving cost with the quantity and unit price for each material and keep them up to date by updating the material's unit price.For example: A chair need 3 Gallons of Thinner at $5,but today the …

Software Development vb.net
Member Avatar for Eternal Newbie
0
327
Member Avatar for ogsirus

Hi all, Im want to create a program for myself which will search my directories for ebooks and let me select the one i want to read. So for instance my first form has a button for C# Books, I want that then to produce a list of books found …

Software Development seo
Member Avatar for tinstaafl
0
241
Member Avatar for Reverend Jim

Thanks to diafol for putting me wise to the imdb api. Unfortunately, due to my ignorance of all things related to web programming I am stuck. I fetch my information via the following Dim url As String = "http://mymovieapi.com/?title=@title&type=xml&plot=full&episode=0&limit=1&year=@year&yg=1&mt=M&lang=en-US&offset=&aka=simple&release=simple&business=0&tech=0" url = Replace(url, "@title", "Star+Trek") url = Replace(url, "@year", "1979") WebBrowser1.Navigate(url) …

Software Development api vb.net xml
Member Avatar for Reverend Jim
0
338
Member Avatar for christinetom

Hi again everybody. Has anyone used tnFox Gui Toolkit? I've just looked at FLTK which seems to be perfect if you want to creat a small file size and easy to use. I'm exploring other options like this too. Is tnFox small in filesize. wxWidgets generates a rather big file. …

Software Development c++ gui
Member Avatar for christinetom
0
199

The End.