199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lavanyarao

I am getting this problem . my python code is for i,j in nltk.pos_tag(words): print i,j if 'JJ' in j: pj=(list(swn.senti_synsets(i,'a'))[0]).pos_score() print "pj:" ,pj elif 'RB' in j: pr =(list(swn.senti_synsets(i,'r'))[0]).pos_score() print "pr:" ,pr elif 'NN' in j: pn =(list(swn.senti_synsets(i,'n'))[0]).pos_score() print "pn:" ,pn elif 'VB' in j: pv =(list(swn.senti_synsets(i,'v'))[0]).pos_score() print "pv:" …

Programming python
Member Avatar for Brandon Hatch
0
327
Member Avatar for Joseph_18

I was able to get the ComboBox to load a list of files from a directory. but, now i am trying to get the contents of that file output to a TextBox or richTextBox. I am able to use this to output to another ComboBox(however, this is not what i …

Member Avatar for tinstaafl
0
309
Member Avatar for Natsu123

Hi, I am programming an app and facing a problem now. I want to Update my Database over the GUI from my App via PHP. My Problem is that the app always sends the value of the checkbox even if it is unchecked. I will post my Script below. update.php …

Member Avatar for cereal
0
863
Member Avatar for abhi10kumar

How I can convert ? Tue Mar 15 2016 05:30:00 GMT 0530 (India Standard Time) into 2016-03-08T00:00:00+05:30

Member Avatar for cereal
0
122
Member Avatar for Esmerelda

One of the questions given to us for the lab exam was to generate the first 10 armstrong numbers. I could generate upto 5 numbers correctly..the rest are wrong. [code] #include<stdio.h> #include<conio.h> void main() { int n=1,a,b,i=1,r; clrscr(); while(i<=10) { a=0; b=n; do { r=b%10; a=a+r*r*r; b=b/10; }while(b>0); if(a==n) { …

Member Avatar for Tushar_4
0
2K
Member Avatar for Ritzophia

In this vb.net form, I've created a login form which contains 3 fields: 1. User Name 2. Password 3. Combobox to select which which department the user belongs to. For combobox, I've created a particular code: Private Sub Form3_Load(sender As Object, e As EventArgs) Handles MyBase.Load cn.Open() 'da = New …

Member Avatar for tinstaafl
0
2K
Member Avatar for snehil_khanor

Hi, I have always programed in Turbo C 3.0 and little exp. with 4.5 but recently I installed Borland C++ Builder 6 and the environment is completely diifferent.. I was just testing some codes to get used to this new environment.. But this code below is giving an error i've …

Member Avatar for dessy_1
0
3K
Member Avatar for Joseph_18

I was able to get the ComboBox to load a list of files from a directory. but, now i am trying to get the contents of that file output to a TextBox or richTextBox. I am able to use this to output to another ComboBox(however, this is not what i …

Member Avatar for Joseph_18
0
288
Member Avatar for Mar. Na.

Hi all;;; please can anyone help me , when i opend my java program i wrote it previously ,,,i see the red line in the editor and code dosent exist ????and the error that appear : illegal character: \u000. I am very sad for this because my program ia too …

Programming java
Member Avatar for rproffitt
0
538
Member Avatar for scubbastevie

Hi Folks, I have a small issue with css that I need help with. I have a rating system on a project. My css is set up to display grey stars that can be hovered over which turn to blue stars until selected, although when I select 1 star, the …

0
181
Member Avatar for Eskindir_1

so all i want to so is read a txt file and store it into an array but im im having a difficulty and here is my code and my txt file has a delimeter (',') so i put a getline function as well but it is not wrking for …

Member Avatar for tinstaafl
0
7K
Member Avatar for Brian_17

Hello All. I'm trying to loop the following statement with PHPmyAdmin in order to add 1000 entries with the variable "i" incremented for each entry. (data and ip can be static) INSERT INTO 'TABLE'('id', 'data', 'ip') VALUES ([i], [06/03/2016],[192.168.0.1]) It's been 20 years since I've done any coding with loops. …

Member Avatar for AndrisP
0
4K
Member Avatar for giancan

Dear all, I need help with unicode. After reading a lot on several webpages I still cannot solve my problem. I have a wx window in python. In one field I set a filename, say "áio" (stupid name, but just to give you the idea). If I want to create …

Programming python
Member Avatar for Gribouillis
0
318
Member Avatar for James_43

Hi all, I am doing some basic experimenting with ENCOG ANN, but am having issue following a simple walthough. At this stage I am simply trying to grab data from a CSV and normalise it. My code is: string filename = "spots.csv"; var format = new CSVFormat(',', ' '); IVersatileDataSource …

Member Avatar for Christian_7
0
494
Member Avatar for Tashia_1

OleDbConnection cn = new OleDbConnection(); cn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\`Hp\Desktop\PROGRAM1\notificationSystem\notificationSystem\Database.accdb"; OleDbCommand cmd = new OleDbCommand(); cmd.Connection = cn; //reg(); cn.Open(); cmd.CommandText = "select article from news where npublished = '" + metroDateTime1.Text + "' AND ntime = '" + label4.Text + "'"; //AND ntime = '" + label4.Text + "' //Scalar …

Member Avatar for Tashia_1
0
251
Member Avatar for bumsfeld

Using the wx.lib.pdfwin.PDFWindow one can read Adobe PDF files (.pdf) with wxPython. The PDF file format is popular document file format allowing mixing of text and graphics. The GUI toolkit wxPython's newer wx.activex module allows one to use the ActiveX control, as if it would be one wx.Window. It actually …

Member Avatar for bucefala
0
2K
Member Avatar for eniacpx

I keep getting "List index out of range" when trying to execute this code, but for the life of me I cannot figure out why, If anyone has any experience coding linux gDesklets this would help. File: StockWatcher.display [code] ... parser.dataSet = stockInfo.html ... [/code] stockInfo.html is an object containing …

Member Avatar for Gribouillis
0
5K
Member Avatar for ericalanso

The eror says: llegal static declaration in inner class Question1.Question1Listener modifier 'static' is only allowed in constant variable declarations ---- /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the …

Programming java java-swing
Member Avatar for JamesCherrill
0
472
Member Avatar for WarriorsFan510

Hey guys. I seem to be having a problem with my code. import java.util.Scanner; public class fishingGames { public static void main(String[] args) { int totalPoints = 0; String items; int Sides = 6; boolean playAgain = true; Scanner keyboard = new Scanner(System.in); Dice = new Dice(Sides); while (playAgain) { …

Member Avatar for stultuske
0
538
Member Avatar for Angelito_1

how to comute the total value I input in textbox then after that I will going to add another value and the total of both sum will display in textbox for example num1 = Val(btn.Price) * num2 = Val(btn.Quantity) then total amount display the value of num1 is 60 then …

Programming vb.net
Member Avatar for Santanu.Das
0
224
Member Avatar for sashiksu

I use this code to replace word file's some words with vb.net windows application text boxes values. 'use early binding Dim objWordApp As Word.Application = Nothing Try objWordApp = New Word.Application 'Open an existing document. objWordApp.Documents.Open("C/temp/word.docx") 'copy data to clipboard txtFirstName.SelectAll() txtFirstName.Copy() 'find <address> objWordApp.Selection.Find.Execute("<address>") 'copy richtext from clipboard objWordApp.Selection.PasteSpecial(DataType:=Word.WdPasteDataType.wdPasteText) …

Member Avatar for tinstaafl
0
429
Member Avatar for Podu

<form action="checkbox.php" method="post"> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="s">S</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="m">M</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="l">L</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="xl">Xl</label> </div> </form> here is my html code i want to selelct more then one checkbox, and it will fetch data …

Member Avatar for AndrisP
0
609
Member Avatar for Ts91

Im making a website that works around a very basic MVC structure. I have three folders, the Model, View and Controller. I want to display the content of the database in the dropdown once the page has loaded. My view has: <div id="appCalc"> <form id="applianceCalc" method="POST" > <?php if(isset($error)) { …

Member Avatar for TexWiller
0
2K
Member Avatar for Ts91

Hi guys! i have a dropdown list that is filled with data that is pulled from my database. Im stuck with populating the textbox based on the value thats selected from the dropdown box. My model currently looks like this: <?php require_once('../Config/config.php'); class AppCalc { public $dbconn; public function __construct() …

Member Avatar for TexWiller
0
1K
Member Avatar for Mohsin01

I've an abstract class Area, which is subclassed as Province, Division, District and City. Now, I need to specify in the City class in which district this city exists. So, I will have an instance of District class inside City class (Composition), so that I could pass id of a …

Member Avatar for JamesCherrill
0
181
Member Avatar for kxjakkk

Just started learning MPI and all, need a little help with it though. int main( int argc, char *argv[] ) { int rank, n; MPI_Init( &argc, &argv ); MPI_Comm_size( MPI_COMM_WORLD, &n ); MPI_Comm_rank( MPI_COMM_WORLD, &rank ); int a = rank; int b = 0; int C[n], D[n]; for ( int …

Programming c
Member Avatar for rproffitt
0
535
Member Avatar for Simple man

Vb.net I have hooked the keyboard. When i press "s" key it sends "d"char(thats what i wanted) but the problem is when i press ctrl+s notepad does not save the doc and sends "d". How to solve this.

Member Avatar for Teme64
0
257
Member Avatar for Hamis_2

Hi guys,, I developed a Sales Management System its is a stand alone system, i installed in the Pc at first when it had few data it was working finely. Then when data increased it started to be slow in its excution taking some seconds to complete the excution, eventually …

Member Avatar for Hamis_2
0
204
Member Avatar for jamzcee

https://www.daniweb.com/community/contribute# #include <stdio.h> #include <iostream> int main(int argc, char*argv[]) { int my2d[5][4] ={ { 36, 14, 41, 24}, { 47, 47, 49, 15}, { 40, 23, 29, 49}, { 17, 23, 7, 7}, { 48, 43, 35, 12} }; int result = 0; // avg int avg() float sum=5.4; for(i …

Programming c
Member Avatar for rproffitt
0
389
Member Avatar for Bradley_1

Hi guys, i have an assignment where i have to create a oop text based java game and have no clue where to start or what i need to include. any tips? thanks

Member Avatar for Bradley_1
0
1K
Member Avatar for Kurumi_1

/*Hi guys ^^ can you help me ?? i keep getting these "error C2447: missing function header (old-style formal list?)" i just want to do 2 converters and somehow i end up in doingthis, pls guys help me ^^*/ # include <iostream> # include <cstdlib> using namespace std; int choice; …

Member Avatar for Reverend Jim
0
176
Member Avatar for Ammar_7

i am trying to save file data to int array their are three files and every file contain more than 1 million records and i don't know how to save this data to array.............. file look like 12000 135680 69857 5986 . . . . . anyone please help me …

Programming c++
Member Avatar for rubberman
0
361
Member Avatar for Latrell_vie

Dear folks , I've already created some website from scratch with html and javascript , php etc. On the other hand i also created websites with wordpress. I find the freedom in creating from scratch grandiose to say at least but wordpress to me has the benefits of professionally looking …

Member Avatar for jkon
0
392
Member Avatar for swilliamrobert

Hi, How can we destroy session after closed window or tab? If user close window, still session is alive after login the systems. Please give me good solutions. thanks for your time. William

Member Avatar for jkon
0
8K
Member Avatar for Kennedy_3

I have to create a program that accepts the number of tile as input from the keyboard, and returns the number of tiles to the main method. It has to accept the number of tiles and calculates the cost of each tiles. The method has to return the cost to …

Programming c#
Member Avatar for Kennedy_3
0
318
Member Avatar for devccompiler

Hello everybody, I need your help to solve my problem. I've just upgraded my Windows from 7 Ultimate to 8, and my Dev-C++ (latest version - 5.7.1) it's compiler is becoming slower than when I use it in Windows 7 environment. It takes more than 20 seconds to compile a …

Member Avatar for Eren_1
0
1K
Member Avatar for rpv_sen

Hi I am trying to create a service in c#, if i click start in service it has to execute the run.bat file. if i click stop in service it has to execute the stop.bat file can any one please help me to fix the code. using System; using System.Collections.Generic; …

Member Avatar for tobyITguy
0
331
Member Avatar for Bashy345

The code checks if the file exists I am struggling to complete this and save my database (gen0values) and make it open to a file in a table. def exportdata(): print("\nYou chose option 4") import os filename = input("Please type in the filename") if os.path.isfile(filename): print("File exists") else: print("File does …

Programming file-system python
Member Avatar for Gribouillis
0
390
Member Avatar for AkshatGupta

MAke a quiz in gui which shows the player the time left for a particular question and automatically proceeds to the next question when time limit exceeds. time left to be shown in a jlabel

Member Avatar for Ammar_7
0
5K
Member Avatar for Natsu123

Hi guys, I am programming an Android App and I am trying to do a multiple SQL insert but it doesn't work. Can someone help me? And I also want to have the ID from the new created student. How do I get that ? <?PHP if($_SERVER['REQUEST_METHOD']=='POST'){ $Name = $_POST['Name']; …

Member Avatar for Za3mi
0
270
Member Avatar for Rajiv_2
Member Avatar for Ammar_7
0
161
Member Avatar for James_43

Hi all, In all my time with PHP I have only ever seen one way of adding a variable onto the end of the string: $string = "hello" . $variable; However, recently I came across another method, which was used in the context of constructing a mySQL query. Can someone …

Member Avatar for diafol
0
433
Member Avatar for basit_3

hey guy iam working with ajax slide show extender , it work perfect with one album , but i have two separte albums , i wrote the code for first album as [System.Web.Services.WebMethod] [System.Web.Script.Services.ScriptMethod] public static AjaxControlToolkit.Slide[] GetSlides() { AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[6]; slides[0] = new AjaxControlToolkit.Slide("slideshow/basit.jpg", "First image …

Member Avatar for AleMonteiro
0
131
Member Avatar for mario90

hello great community, i hope my question is clear .... i use banner rotator for my site but i want to see which banner get better ctr (click through rate) . also to not confuse the vistor with the other links i would need to hide the <a href target> …

Member Avatar for mario90
0
430
Member Avatar for Reo_1

hello guys I created an app in visual basic abd i want it to be requsting for a password when installing it or transfering it from one computer to the other. I want to put security to it. Any help will be appreciated

Member Avatar for rproffitt
0
321
Member Avatar for Khan2014

Hi All, I have a nest list and i need to get the indivdual columns i can do a foreach and the sublist has the 4 arrays but i cant access each columns e.g. the first column is 1 2 the second column is 5 8 Thanks for the help. …

Member Avatar for Khan2014
0
653
Member Avatar for rafia t

=client reads line from standard input (inFromUser stream) , sends to server via socket (outToServer stream) =server reads line from socket =server converts line to uppercase, sends back to client =client reads, prints modified line from socket (inFromServer stream) i just want to know how the code for server and …

Member Avatar for Reverend Jim
0
256
Member Avatar for Hari_11

i want to search with name,email,id based on that suppose if they enter id then i need to serch with name or if they enter email i need to serch with mail or i want to serch with these 3 fields. so pls give a suggesion for best search query …

Member Avatar for stultuske
0
174
Member Avatar for davy_yg

Hello, I am trying to reset mysql myphpmyadmin password: Cannot log in to the MySQL server Username: root Password: 12345 And have not been successful yet reseting it. This is my config.inc.php <?php /* * This is needed for cookie based authentication to encrypt password in * cookie */ $cfg['blowfish_secret'] …

Member Avatar for davy_yg
0
331
Member Avatar for Papa_Don

Group, I'm using VB.net 2010 and would like to convert a text file into a PDF file. In reading through the internet, it appears that I need to download a 3rd party .dll file. But is that needed? I see multiple PDF library references by right clicking the project name, …

Member Avatar for Sblogger
0
2K

The End.