199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for unigrad101

I am trying to create a function which would take a list and be able to count the number of ints floats and str in that list. output should be: list = ['v', 3.0,1, 'etc'] freq = countDataTypes(list) print(freq) [2,1,1] any help would be greatly appreciated so far: [CODE] >>> …

Member Avatar for bumsfeld
0
137
Member Avatar for carmamir

I tried to find on Internet as there is big problem with their API. Lack of documentation = can't implement it without super dooper experience in VB.NET (and I'm pretty new)... Any one used it ? All codes found all around internet are not working (VB2008/VB2010), their support also do …

Member Avatar for carmamir
0
2K
Member Avatar for shibu2all

Hello, Can anyone pls help me out with this code, its the server portion of the client server program..i have downloaded it from net [code=java] Socket s,s1,s2; ArrayList al=new ArrayList(); ArrayList al1=new ArrayList(); ArrayList al2=new ArrayList(); ArrayList alname=new ArrayList(); MyServer()throws IOException{ ServerSocket ss=new ServerSocket(10004); while(true){ s=ss.accept(); s1=ss.accept(); s2=ss.accept(); al.add(s); al1.add(s1); …

Member Avatar for dantinkakkar
0
186
Member Avatar for danielbala

Hi.. I want to implement a program for identifying spam emails using an algorithm naive bayes in php.. How to implement this..can anyone help me.. Thx in Advance

Member Avatar for danielbala
0
82
Member Avatar for thefifthhjohn

in line 7 I have three errors. TextFieldOutputDemo.java:7 '.class' expected (where it points to 't' in "throws") FileOutputStream(String, boolean)throws FileNotFoundException; TextFieldOutputDemo.java:7 ';' expected (where it points to 't' in "throws") FileOutputStream(String, boolean)throws FileNotFoundException; TextFieldOutputDemo.java:7 not a statement (where it points to 'F' in "FileNotFoundException") FileOutputStream(String, boolean)throws FileNotFoundException; [CODE]import java.io.*; public …

Member Avatar for dantinkakkar
0
402
Member Avatar for ruval002

i have a problem with my following code, note: this is just part of my code when i run it, lets say i enter hello world it will output: hello segmentation fault is there a way i can fix this? [CODE] void input::read_line() { string command; while(command != "exit") { …

Member Avatar for Ancient Dragon
0
192
Member Avatar for ilearnz001

Currently looking for a guide on socket.h more specificly Linux Version > sys/socket.h Can't Find any start up tutorials on the net if someone has a link(s) that helped them understand sockets please post//pm me them. --Thanks, ilearnz

Member Avatar for deceptikon
0
113
Member Avatar for RLS0812

I need to keep a string from resetting each time the class is called, but haven't found any good way of doing it ... Every time [B]if (block != LastC){}[/B] evaluates to true. ( which shouldn't happen very often ) [CODE] --- code snip --- public class Player_Move implements Listener …

Member Avatar for stultuske
0
143
Member Avatar for himanshu.1691

i type the following code.... it runs properly....data gets fetch but i am not able to display it in a textbox.... it simply remains blank....whereas i am able to fetch the data outside the form tags here is my code: here i can see name =himanshu outside the form but …

Member Avatar for emclondon
0
191
Member Avatar for donatas

Hi guys! I've been searching all day about this and can't find a solution.. I'm fairly new to VB and SQL Queries, so I apologize if I sound a little daft. Basically I'm working on a project in VB 2010 where a user can add new teams, players, also create …

Member Avatar for donatas
0
693
Member Avatar for DEAD TERMINATOR

An assignment I'm working on requires me to write a method for the sole purpose of calling that method in a later method. As such I am required to write the first method to not display anything on screen and then I need to comment the calculation within the method. …

Member Avatar for stultuske
0
356
Member Avatar for torrm

Hello all, I have been learning C++ on and off for some time and it hasn't yet sunk in, mainly due to time constraints. I purchased "Sams teach yourself C++ in 24 hours" which whilst seems okay I find myself reading it to finish the book opposed to taking in …

Member Avatar for thines01
0
232
Member Avatar for prasenjit_das
Member Avatar for Ali_2101
0
155
Member Avatar for Onlineshade

Hello everyone. I am very new in Android Application. I have installed JDK 7,Eclipes also. I have read the installation tutorials form the common site <URL SNIPPED>.I have installed AVD from Eclipes. But when I run the simple "Hello world" an initial program, It shows that no AVD is available. …

Member Avatar for peter_budo
0
215
Member Avatar for matrix388

I need to develop a mailing system in the intranet web-based application that I am working on it for my company. I am developing it with ASP.NET and C#. The purpose of this system is to let the admin to be able to send emails to the users. I developed …

Member Avatar for thines01
0
5K
Member Avatar for DNHK

Hi I need some help over here... how do i change the display member of a ComboBox after i have entered a code in a textbox that it represent the combobox value?? example Code: 02-001 Combobox: Provider X if i change the code the provider combobox must change and if …

Member Avatar for M.Waqas Aslam
0
318
Member Avatar for oberlin1988

I'm writing a program that checks a txt file with a list of words (one word per line). I'm just this side of done, I think. [CODE]def StripPunctuation(s): answer="" for c in s: if c.islower() or c.isupper(): answer=answer+c.lower() return answer def Reverse(s): answer="" for c in s: answer=c+answer return answer …

Member Avatar for Lucaci Andrew
0
3K
Member Avatar for saadahkh

i am developing a simple tic tac toe game for Windows mobile using VB all the components are working fine except i am having this error on this line of code Error: Error 1 Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectEqual' is not defined. C:\Users\...\MainPage.xaml.vb 18 …

Member Avatar for tungnk1993
0
102
Member Avatar for prixxershackit
Member Avatar for M.Waqas Aslam
0
81
Member Avatar for zachattack05

I have a method that has 3 overrides, but calling the method outside of a "parent" override (one that accepts no parameters) is useless. Other than a xml comment indicating this, is there an attribute that I can use to mark the method as such? Some additional information if needed: …

Member Avatar for zachattack05
0
158
Member Avatar for wallet123

i was watching a tutorial about bubblesort, and i followed all the instructions the difference is that the tutor is using System.out while im using JOPtionPane, please help me thank you help me find my error and help me run it correctly! [CODE]public static void main(String[] args) { // TODO …

Member Avatar for rushikesh jadha
0
186
Member Avatar for aharrisii

I am having trouble correcting the syntax on this problem so far and I can't seem to find my mistake any ideas on what I am doing wrong ? The object of the program is to ask user for amount of money to put in the pot, and play until …

Member Avatar for rny5
0
2K
Member Avatar for shielaolid

Hello there, anyone can help me about my problem, i want to display an error message when the user inputs invalid username and incorrect password. and i want to display it in the same form. im new in php. These are my codes: [CODE] <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $db=mysql_connect('localhost','root','') …

Member Avatar for shielaolid
0
7K
Member Avatar for super-duper

[CODE]<?php include('dbconnect.php'); Print "Database was found and connection was successfull!" $fname = $_POST['fname']; $lname = $_POST['lname']; $address = $_POST['address']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zipcode']; $sql = "INSERT INTO `demoform` VALUES ('$fname', '$lname', '$address', '$city', '$state', '$zip')"; if(!mysql_query($sql)){ die('Error: ' . mysql_error()); } Print "Your information has …

Member Avatar for baig772
0
183
Member Avatar for dilse4sk

hi every one i am trying to save data from vb.net form in sql server 2008 below is the code which i am using but the only problem is . i am not getting any error instead the data which is being saved in sql server in my First Name …

Member Avatar for toomutch
0
758
Member Avatar for zachattack05

I have 7 different bindingsources on a form right now and I have a "cancel" button to allow a user to reject the changes they made and revert back to the original data in the dataset. Instead of having my cancel button click event call something like: [CODE=C#] private void …

Member Avatar for zachattack05
0
642
Member Avatar for toomutch

Hi all, my current project shows a single page tabcontrol with a datagridview. I read names from a mysql table, and create an additional tab page for each person (there's only ever going to be half a dozen or so, so it should be manageable). I want to duplicate the …

Member Avatar for toomutch
0
147
Member Avatar for newbie1234

[B]I want to use 128 Bit pseudo random function generator in my acadmic project. But i did not found. Can any one please tell where i can get it in c++ or c language. Thanks in advance[/B]

Member Avatar for newbie1234
0
1K
Member Avatar for Alfy

I am kinda new to world of c programming, and i have been assigned a problem that is written as follows: Write a procedure that counts the number or words in a string. Write a program to test your new procedure. I am kinda lost on this completely. Any help …

Member Avatar for zeroliken
0
2K
Member Avatar for hyperstars

After an hour of browsing the web, I decided to ask for help for my IB project (can't paste my whole code or I'll be cheating off myself). I don't have much experience, so please explain whatever syntax your solution may have (please don't say rewrite the whole thing). Anyway, …

Member Avatar for JamesCherrill
0
201
Member Avatar for long89

this my code import java.awt.*; import javax.swing.*; import java.awt.event.*; public class Panel extends JPanel implements ActionListener{ private JTextField weight,height, answer; private JButton calc, clear, exit; public Panel(){ this.setLayout(new GridLayout(2,1)); JPanel topPanel = new JPanel(); topPanel.add(new JLabel("WEIGHT(KG)")); topPanel.add(weight = new JTextField(5)); topPanel.add(new JLabel("HEIGHT(M)")); topPanel.add(height = new JTextField(5)); topPanel.add(new JLabel("BMI")); topPanel.add(answer =new …

Member Avatar for mKorbel
0
224
Member Avatar for gabriellogan

Can you help me find the errors with this code: [CODE]class MyClass { private: char * pcMyString; MyClass( MyOldClass oOld ) { pcMyString = new char[strlen(oOld.pcMyOldString)]; }; MyClass( MyClass * oObj ) { pcMyString = oObj->pcMyString; poMyOld = oObj->poMyOld; }; void calcOffset_Helper() const; public: MyOldClass * poMyOld; bool isStringEmpty() const; …

Member Avatar for gabriellogan
0
140
Member Avatar for inspire_all

i recently read that quick sort is most popular algorithm.it has a good efficiency but its not stable.can anyone plz explain me quicksort algorithm in short.i am not able to get it:?:

Member Avatar for inspire_all
0
159
Member Avatar for Mxlfa

i have no idea what this means... and i really need help starting my new python web app project... [CODE]root@ubuntu:~# python solif/manage.py syncdb Traceback (most recent call last): File "solif/manage.py", line 14, in <module> execute_manager(settings) File "/usr/lib/pymodules/python2.7/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/lib/pymodules/python2.7/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File …

Member Avatar for Lucaci Andrew
0
259
Member Avatar for turpentyne

working from this little form validation script, does anyone know how to check to make sure at least one of several looped in dropdowns have been selected as well. The dropdowns have a php generated name: <select name="participantqty[<?= $c_row['workshop_id'] ?>]" id="" class=""> [CODE]<script type="text/javascript"> function required(){ var first = document.forms["register1"].elements["fname"].value; …

Member Avatar for javaAddict
0
823
Member Avatar for prasenjit_das

hi all, I do not uderstand how to implement the selection sort algorithim in c++ Thanks in advance

Member Avatar for WaltP
0
79
Member Avatar for mohamed moamen

How i can do a server that can be handle a very large number of clients (in same time) between 250,00 to 1,000,000 clients or more ? , Because when large number of clients connect to the normal server that failed.

Member Avatar for mohamed moamen
0
249
Member Avatar for dwiniers

hello guys! anybody can help me this type of error in Login form. Im using combo box for multiple users thank you very much. Run-time error'-2147217865(80040e37)': The Microsoft Jet database engine cannot fined the input table or query 'login'. Make sure it exists and that its name is spelled correctly. …

Member Avatar for dwiniers
0
119
Member Avatar for AODfan

Issue I am coming across is that my calculation is not coming out correctly, it will display "0s" if nothing is entered, also it shows the previous entered data and then the newly entered info, but multiple times. It should only be showing the gravity multiplied by the weight entered. …

Member Avatar for veedeoo
0
109
Member Avatar for belle_tenor

I am fairly new to C++ programming and have been working on an assignment for my C++ class that involves writing a dice rolling program (rolls 2 dice). The program is to get a random seed number and a desired number of rolls from the user, keep track of the …

Member Avatar for WaltP
0
699
Member Avatar for pritesh2010

can any one tell me how to create a html help file in detail. Actually i already tried for that even i have created but the problem is i don't no how to create tree in content file. and when i passing the image url to my local machine and …

Member Avatar for pritesh2010
0
282
Member Avatar for MochiAnjali
Member Avatar for subith86
0
229
Member Avatar for Gaiety

Hi All, I have read that the system call "execlp" will take the first arguement as the file name(or path), second arguement as the command and all others are arguements to the command terminated by NULL. i have written below program. [CODE] #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> …

Member Avatar for Gaiety
0
167
Member Avatar for showman13

Hi All, I'm having difficulty in getting the data that I need from the DB.. and it is probably my lack of understanding in the query that I created... data looks like this in the table called RandPtrack rec_id type group_id open_date close_date orders shares order_date order_num 1 R 96 …

Member Avatar for showman13
0
240
Member Avatar for davy_yg

Firefox HTML Validator [CODE] Firefox HTML Validator: front-page.php Result: 75 errors / 23 warnings Info: W3c Online Validation line 43 column 20 - Error: document type does not allow element "div" here; assuming missing "body" start-tag line 56 column 15 - Error: ID "body" already defined line 47 column 14 …

Member Avatar for davy_yg
0
400
Member Avatar for broodwich

I am getting syntax errors and stuff with this and i am trying to make a program where its rock, paper, scissors where the computer plays the user. any help would be awesome [code] #include <iostream> #include <ctime> using namespace std; enum Choice { Rock, Paper , Scissors }; // …

Member Avatar for crunchie
0
164
Member Avatar for a-lago

Hi I've been playing for a while with WxRuby and I just acn make the TreeCtrl event evt_tree_expanded or evt_tree_expanding please help me here is the code mi problem its at line 46: [CODE]require 'wx' include Wx class MyFrame < Frame def initialize super(nil, :title => "prueba" ) @my_panel = …

Member Avatar for a-lago
0
122
Member Avatar for Panathinaikos22

Hi, im new in Window Programming... i use this book -> (Programming Windows - Charles Petzold) This is my code [CODE]#include <Windows.h> #include <tchar.h> #include <stdio.h> LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE previnstance, LPSTR szCmdLine, int iCmdShow) { static TCHAR …

Member Avatar for Panathinaikos22
0
147
Member Avatar for hitholdir

Hello everybody, I am trying to write a program consisting of two parts: 1. It lists of letters before and after a certain letter (if the user requested 2 letters regarding 'e', it would be cd and fg) 2. count the number of letters in each word of a sentence …

Member Avatar for hitholdir
0
412
Member Avatar for Thropian

I'm trying to use the exec command in python to try to get a function to call on different dictionaries and functions as needs change without making my program bigger than it needs to be. Unfortunately I keep getting this error: File "Game Files\Intro.py", line 214, in Anim exec compile('%slegs …

Member Avatar for Gribouillis
0
161

The End.