199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blazahjazz

Hello, I'm a high school student and I just started learning Python. I'd really appreciate some help on some problems I've been assigned, and some tips that could help me out in the future with problems like these. >>> getLeaves ( jenny ) [5,3,0,9] >>> >>> getLeaves ( joshua ) …

Member Avatar for griswolf
0
157
Member Avatar for madonline

can somebody explain the mechanism of the keyword "malloc"(allocating memory) in C++ by using a simple program code.........?

Member Avatar for madonline
0
125
Member Avatar for MrDiaz

I have an array codes[26] which contains numbers inside {25,4646,23,12,.....29} Each position in the array corresponds to a letter of the alphabet. code[0] is a, code[1] is b, etc... I'd like to print the occurrences of each letter, something like this. If there are 12 A's, 5 B's AAAAAAAAAAAAA BBBBB …

Member Avatar for MrDiaz
0
123
Member Avatar for cmsc

I'm trying to run this code in cygwin 1.7 but i get segmentation fault when I choose to search. I tried this in cygwin 1.5 before but it works. does anybody know the reason why it won't work in cygwin 1.7? here's the code [CODE] /**************** Rachel Perono running BST …

Member Avatar for Tellalca
0
118
Member Avatar for Dyed Purple

I'm currently trying to create a program which factorises a number entered by the user, as reccomended by the sticky. When I run the program, I get "error C2061: syntax error : identifier 'cin'". Here is my code: [code] #include <iostream> using namespace std; int main() { int iFigure; int …

Member Avatar for thelamb
0
230
Member Avatar for Confu

hi.....um reading killer game book.and when loading external models it imports ncsa portfolio package.....i dont know where i could find this package and whether this package is included in java3d api??thanks in advance for any help.......

Member Avatar for quuba
0
75
Member Avatar for MrDiaz

Hey everyone, I have a series of loops that read through a text file and then output the occurrences for each letter on the file. This seems to be fine when using small text only. When providing a lot of text it just takes too many CPU resources and that's …

Member Avatar for Tellalca
0
117
Member Avatar for madonline

CAN SOMEONE TELL ME HOW THE console eraser work in the below PROGRAM PART...............describe the LOGIC??????????? [code] //Creating and hiding password. ConsoleEraser consoleEraser = new ConsoleEraser(); System.out.println(); System.out.println("(Please enter the common Password)"); System.out.print("PASSWORD : "); BufferedReader passin = new BufferedReader(new InputStreamReader(System.in)); consoleEraser.start(); String passWord = passin.readLine(); consoleEraser.halt(); System.out.print("\b"); //Password matching. …

Member Avatar for madonline
0
525
Member Avatar for reidar

I'm just starting with PHP and I was given a rather difficult task. I need to search through multiple XML files in different directories, then return the name of the files that contain a given search input. Will it be easier to write a script that reads all XML files …

Member Avatar for SikoSoft
0
242
Member Avatar for lionaneesh

[CODE]/* This function accepts a socket FD and a ptr to a destination * buffer. It will receive from the socket until the EOL byte * sequence in seen. The EOL bytes are read from the socket, but * the destination buffer is terminated before these bytes. * Returns the …

Member Avatar for abhimanipal
0
195
Member Avatar for Abdel_eid

i have created a system for a library using java using input and output jframes but i need to access that project using a .exe file by just a double click...how can i do that

Member Avatar for DeadSoul
0
317
Member Avatar for scaiferw

I wrote this code because I wanted the members of my volunteer organization go have a place they could easily get the most current list of email addresses to send a message. This code reads the names and addresses from the database, and creates a comma delimited list of addresses …

0
143
Member Avatar for kouroshnik

hi I have a TextBox that I want it's default language sets to farsi I mean when somebody whants write on it ,by default language sets to Farsi-IR

Member Avatar for webnhosting
0
104
Member Avatar for sharathk60

my i have wrote my code is like this but m not to get get proper out put here is my code [CODE] System.out.println("Enter Date of Birth dd/mm/yyyy"); DataInputStream in=new DataInputStream(System.in); String dob= in.readLine(); String[] dob1=dob.split("/"); int year=Integer.parseInt(dob1[2]); int month=Integer.parseInt(dob1[1]); int date=Integer.parseInt(dob1[0]); System.out.println("Date : "+date+ "Month : "+month+" year :"+year); …

Member Avatar for JamesCherrill
0
118
Member Avatar for Roses89

Hey guys, Back again, I needed to ask two very quick questions: Number 1: In a login form,how do you make sure that the user doesnt type their username or password in Caps? Number 2: How do you display error messages after the user has tried to login with the …

Member Avatar for scaiferw
0
98
Member Avatar for ktsangop

Hello everyone! I am using python 2.6 on cygwin environment and wondering how could i prevent two python processes from writing to a file at the same time. The file that is shared between the python processes is an ini file and is accessed through ConfigObj module. The first python …

Member Avatar for ktsangop
0
378
Member Avatar for Prota

Hi! I am doing a project that's about inheritance and I've solved the most of it. I have some problems with removing a vehicle (car or motorcycle) because they have different characteristics. A car has these characteristics: brand, age, regNr, price, fuel, size A motorcycle has these characteristics: brand, age, …

Member Avatar for Prota
0
110
Member Avatar for ferenczi

Hello, (this is not a homework). So, I've created a graph as adjacency lists: [CODE] class Edge; class Vertex { public: Vertex* vNext; Edge* adjList; char FirstElement; bool marked; Vertex(char a) : FirstElement(a), vNext(NULL), adjList(NULL), marked(false) { } }; class Edge { public: Edge* eNext; int weight; char SecondElement; bool …

Member Avatar for daviddoria
0
376
Member Avatar for runjel

hello .. there is a weird problem in a website that im developing.. the problem is i cant a call external javascript if its located in a folder.. but if i put that in the directory where the index.php is located also i am able to call the javascript.. sample …

Member Avatar for scaiferw
0
115
Member Avatar for Rated X

I am working on a web browser for fun and to get a little more acquainted with VB. I felt lost during school this past year and wanted to do something that sounded like fun. Ok, enough of that. When I put in my code to just press enter after …

Member Avatar for Rated X
0
169
Member Avatar for VirendraThakre

Hi I am using two linked server Both have same tables by using sp_tables_ex 'linkedserver name' this I can see list of tables.One Emp table is available in that list but when I try select * from Openquery(linkedserver,'select * from public.Emp') then it show me error like Error message: ----------------------------------------------------------------------------------------- …

Member Avatar for drorharari
0
134
Member Avatar for Kshitija R Naik

hi! i am a final year student could you tell me which topics i can make a project on

Member Avatar for meffe
0
128
Member Avatar for Keidi

Hi all I'm trying to learn php by myself I got as far as creating my first data base and table using the following code: [code=php]$con = mysql_connect("localhost","root",""); if (!$con) { die('Could not conect: '.mysql_error()); } //Create database if (mysql_query("CREATE DATABASE FATBYTES",$con)) { echo "Database created"; } else { echo …

Member Avatar for scaiferw
0
200
Member Avatar for SweetDeath

Hello there, so i have this current project for school and i`m kinda stuck the program i`m suppose to write is this : __________________________________________________ ____ Each year many tourist visit our country please write a program that collect the following information: Name(first,middle,last) sex country age profession Also the program shoud …

Member Avatar for SweetDeath
0
115
Member Avatar for roxanna_

Hi all, I want to create a function in c# which receives a paramater (name of a field from a table in oracle) The function will have to return the distinct values of the specific field.I don't know how to insert the parameter into the [I]select distinct(parameter) from table [/I] …

Member Avatar for roxanna_
0
126
Member Avatar for Daffodil_Thursday

Hi, New to Java & hoping you can help me with an error message I am getting. The compiler says "Cannot find symbol - variable evt" for the first line of the below code. [CODE]if (evt.target==calc) { clickedCalc(); return true; } else return super.action(evt,obj); for(int i=0;i<12;i++) result[i].setText(" "); // clear …

Member Avatar for Daffodil_Thursday
0
483
Member Avatar for chaituu

I have written code for adding and removing dynamic rows.i am using same file for both ADD and MODIFY operations.this page is working for ADD operation. lets say for MODIFY operation one employee has added 3 rows and i need to display those rows and user can edit thoese rows …

Member Avatar for fxm
0
79
Member Avatar for offsense

Hi Guys, I got a problem with updating images in mysql database wih php form. It succesfully inserted the images into the database, but it can't do any updates/changse on the existing image record. Thanks [CODE] <? session_start(); include("database.php"); include("login.php"); $pro_id = $_POST['pro_id']; $pro_name = $_POST['pro_name']; $pro_cat = $_POST['pro_cat']; $pro_desc …

Member Avatar for offsense
0
135
Member Avatar for Veli Atci

Hi, I am having "Out Of Memory" problem with my program.I am using Borland C++ 5.0. I have an MySQL type database and trying to access one of its tables.The table which I am trying to access (activate) is around 450 Mbyte.Here is my sample code which gives error: [code] …

Member Avatar for Gandharv04
0
226
Member Avatar for viscorus2004

Hy sorry for my bad english I have transaksi_pembayaran table and have a tgl_tran field, tgl_tran is a date but has type varchar, how can I get date range in mysql? date range like this : 14/2/2005 to 27/2/2005 (d/m/y)

Member Avatar for tyson.crouch
0
118
Member Avatar for Aldius

Hello all, I'm somewhat new to programming but I had a quick question. I have created a program to take a text file and convert it into a datatable. Unfortunately, however, I seem unable to attach this file to a database. I am getting an invalid object error stating that …

Member Avatar for detoxx
0
123
Member Avatar for AJIMX

i have been having this error massage tying to do certain registration on Nigeria army website [url]www.nigeriaarmyms.org[/url], and i keep on getting this massage: "you have an error in your SQL syntax; check the manual that corresponds to your mySQL server version for the syntax to use near 'AZEEZ', surname= …

Member Avatar for SikoSoft
0
66
Member Avatar for ErlendHL
Member Avatar for Pari13

Hello Developer, I am having problem to passing parameter from one user control to another user control. I am developing an application that have reusable functionality , so I converted each aspx page into .ascx page(i.e. User control) of my application which is perfactly run in aspx page. But here …

Member Avatar for Pari13
0
165
Member Avatar for sjeggels

Can anyone please assist how to retrieve data for dropdown menu from database. I have dropdown menu in mysettings.php of login script v2. The array i am using retrieves the all contents from the database for selected dropdown menu but it does not retrieve the specific saved data selection (dropdown …

Member Avatar for SikoSoft
0
167
Member Avatar for tenix

Hi, Is it possible to read a file only to get the first 100 bytes from the begining and the last 100 bytes at the end? I have to get info from files that are in the first 100 bytes and in the last 100 bytes of the file and …

Member Avatar for tenix
0
8K
Member Avatar for Medalgod

I am relitively new to C#. On thursday I started out writing a Tic-tac-toe game. Just a basic gridbuilder, ask the user where they want to go, alternate the users, as player2 where he wabts to go (checking if the move is 'legal'). I've just kept adding to it... This …

Member Avatar for amir pr
0
1K
Member Avatar for liamfriel

Hello I was helping a fellow daniwebber and I noticed that I have no idea if it is possible and how the syntax works for it. Any help appreciated. example of how I think it works. [CODE] function retTrue(){ return true; } //code in if if(retTrue()){ //do some php } …

Member Avatar for SikoSoft
0
6K
Member Avatar for ypdev

Hi, I would like to pass data to dialog box where the page in background is faded out. A good example is when I click 'LOG IN' on DANIWEB, I get a dialog box with username and password fields and the rest of the screen is in gray. Can someone …

Member Avatar for ypdev
0
879
Member Avatar for tskellyfla

Hi, I'm a student learning to code in C. This is what I have only when I compile it, gcc, I get two error messages and I don't understnd why. The messages are '67: error: expected declaration or statement at end of input' and '67: error: control reaaches end of …

Member Avatar for Aia
0
266
Member Avatar for reanopp

Hi guys, We have a custom-written online invoicing system, written in PHP. Right now, it generates an HTML invoice (with CSS etc) and sends that to the clients as an HTML mail, but since a lot of mail clients regard it as spam, disable functionality and images, or just completely …

Member Avatar for abeltenny0210
0
938
Member Avatar for jemz

hello can you please help me how do i put checkbox in my ms access..or how to code this in my program hoping for your positive responds...thank you in advance

Member Avatar for jemz
0
130
Member Avatar for dipsite.nitk

<HTML> <HEAD> <TITLE> MEA </TITLE> <link rel="stylesheet" type="text/css" href="test2.css" /> <style> .suckerdiv ul{ margin: 0; padding: 0; list-style-type: none; width: 160px; /* Width of Menu Items */ border-bottom: 1px solid #ccc; } .suckerdiv ul li{ position: relative; } /*Sub level menu items */ .suckerdiv ul li ul{ position: absolute; width: …

Member Avatar for fxm
0
104
Member Avatar for TheUbuntu

Hello, Can i make one picture for all my website, please ? like Google: [url]http://www.google.com/images/srpr/nav_logo13.png[/url] Thanks.

Member Avatar for abeltenny0210
0
94
Member Avatar for vsagarmb

<code=python> >>>f = file("sendBuffer.dat","rb") >>> f.read() '\x81x\x00>\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00A .\x00\x10aG\xce\x00 \x00\x00\x00\x00\x00\x00\x00\x01\xcd\xccL@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x 00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' >>> text = f.read() >>> print text </code> In the above code f.read() prints the data, but when i say print text or print length of text it returns NULL and zero respectively. Any Ideas?

Member Avatar for vsagarmb
0
89
Member Avatar for jisnack

i need to upload images in imagegallery throuhg plugin in '/wp-content/images' folder. for that i need to set this path in 'Miscellaneous Settings' given in wordpress. if i give '/wp-content/images' there, all the images i upload in wordpress will be going tho this folder.. otherwise if i give the option …

Member Avatar for jisnack
0
143
Member Avatar for lisles

Hi.i want to use a ajax updatepanel.on postnack i only want the datalist "dlEvnt" to get refreshed.but thats not happening.can anybody tell me what to do. Here's my code [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="news_evnts.aspx.cs" Inherits="news_evnts" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for lisles
0
160
Member Avatar for joewinsock

I'm having trouble with this code its part of a birthday profile for class everything else works but this date.cpp file....looked all throughout forms but can't find this particular one..Please help [code] #include "stdafx.h" #include "date.h" #include <string> using std::string; class TestBirthday { public: static void main() { int num; …

Member Avatar for joewinsock
0
110
Member Avatar for Kingcoder210

Hi everyone! I am a junior database programmer. I need to know how can I save image in SQL SERVER 2000 by VB.NET? I made a table in SQL SERVER with two fields. One is Id[nvarchar] & another pic[nvarchar]. I got two forms there in VB.NET project. In the first …

Member Avatar for Teme64
0
3K
Member Avatar for thepussy

[code] import java.util.Random; import java.util.Scanner; public class AssignmentMenu { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int loop = 0; String randomLetters[] = { "a", "b" , "c", "e" , "d" ,"f" , "g" , "h ", "i", "j" , "k" , "l" , "m" , …

Member Avatar for thepussy
0
149

The End.