64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Kanem

••••i am trying to build a clock using python where the clock is about 1/2 an earth second, it would have 11 seconds in a minute, it would have 5 minutes in an hour, and it would have 3 hours in a day. it would also have 3 months per …

Member Avatar for TrustyTony
0
146
Member Avatar for Member 784833

hey could you please help me :( (((write a function called acronym which read a file which contains words, and create an acronym by taking the first letters of the words in a phrase and making a word from t hem. Then save all acronyms to a file called myacronym.txt.)))

Member Avatar for Member 784833
0
114
Member Avatar for bbman

Hey, How would I go about finding the amount of values, say "DaniWeb" in a List<string>? I just need a number, not their index. Cheers

Member Avatar for bbman
0
134
Member Avatar for Dehatim

I am taking my first class in Java and am having problems with converting lowercase letters to uppercase and am not having success. The program compiles and executes. However, the lowercase letters input by the user are not converted to uppercase. I think the problem is very simple, but I …

Member Avatar for Member 784908
0
703
Member Avatar for Bob Arctor

Hi all, Been some time since my last post. I'll get straight to it - I have actual Id's being passed from the checkbox array to a page where I dump the post variables. I'm using this to query the db. [CODE]$result = mysql_query("SELECT * FROM test WHERE Id='$checkbox[0]';"); while($row …

Member Avatar for Bob Arctor
0
110
Member Avatar for cwigginton

Hello, I'm trying to stream an HTML file into a Literal control, and have found that the first time it loads, it works just fine. Any framesets defined resolve just fine, and the page works as it should. When I exit the page, then go into it right afterwards, the …

Member Avatar for mehtainfosys01
0
80
Member Avatar for Kanoisa

Hi guys, As some of you may know im working on learning more c++ and trying to become a good programmer, iv got things like classes, function pointers and template classes under the belt as far as i can see (although to be honest i have never found a place …

Member Avatar for Ketsuekiame
0
198
Member Avatar for prashanth s j

Hi, I get a the following as output after executing a command remotely: for example; No of records Date Status 1 7/7/2010 Progress Total Number of records Processed so far: 1012 Currently active records: 1 Now evidently Python treats this out put as a string. Now my problem is how …

Member Avatar for Beat_Slayer
0
104
Member Avatar for johndoe444

problem with this code: [CODE]parseIcmPage url, '<ul id="topListFilter"', '<div id="footer">' def parseIcmPage(url, start_point, end_point) data = getHtmlPage url s = data.index(start_point) e = data.index(end_point, s) len = e-s list_str = data.index[s, len] puts list_str, '\n' end[/CODE] [CODE]icm.rb:42: warning: don't put space before argument parentheses ./util.rb:121:in `index': wrong number of arguments …

Member Avatar for craiggles
0
232
Member Avatar for yap_1991

Hi All I really need help in this. Im supposed to "extract" information from text files . the text files looks somethings like this: MODEL 1 ATOM 1 N SER A 253 -19.559 -25.512 -41.130 1.00 0.00 N ATOM 2 CA SER A 253 -18.749 -26.500 -41.895 1.00 0.00 C …

Member Avatar for NormR1
0
644
Member Avatar for saksaz

hi i have create a database in sql , it is opened in my system, and i shared the database into another system,i was updating my datas from another system, form and database everything is working fine , but the problem is when i try to open the report it …

Member Avatar for vb5prgrmr
0
2K
Member Avatar for an00p

Hello friends, I have a php page that displays data from a mysql DB. Fields are 1. Username 2. Designation etc... I want to list usernames in a listbox. I know thats not a tough job but I want to give different colors (or background color) to usernames with different …

Member Avatar for an00p
0
181
Member Avatar for Stefano Mtangoo

Hi, I'm beginning JDBC and I'm conversant in SQL. But I need to Connect to database and that where the problem lies. All I have done is adding mysql/j connector Jar to Netbeans project and wrote code below to test. It cannot connect to database. Also IDE throws error: [CODE=JAVA] …

Member Avatar for Stefano Mtangoo
0
490
Member Avatar for phoenix911

Hi i have a program that transforms my xml files with the stylesheets i applied and saves them as html file. i also used cooktop to create my stylesheet as well as to see the result... my problem is, that when i transform it, i have a <hr />tag, the …

Member Avatar for phoenix911
0
104
Member Avatar for xaop

Please let me know where i have done the mistake [CODE]#include <stdio.h> #include <conio.h> #include <math.h> void main() { int f=0,s=1,n; n=f+s; if(n<=18); { printf("%d" ,n); f=s; s=n; n=f+s; } getch(); }[/CODE]

Member Avatar for xaop
0
195
Member Avatar for Naruse
Member Avatar for daudiam

When a variable goes out of scope in Java, is it immediately removed from stack and one strong reference to the object it pointed to removed ?

Member Avatar for daudiam
0
4K
Member Avatar for leiger

I have imported the Apache XML-RPC jar files, and got them working (has taken me all day to figure out how to get it working - so I'm kind of frustrated at the moment ;D) ... but that used the execute(..) method which requires two parameters ... there was no …

Member Avatar for leiger
0
2K
Member Avatar for phaedrusGhost

Hi all, I have a loop that I want to show all users and info from a DB. After each user is displayed I need a divider line placed between them. The divider line is simply "div class="divider"></div>" with a 2X2 pixel, repeat X background image. I have tried inserting …

Member Avatar for phaedrusGhost
0
142
Member Avatar for modalgvr

Hello, I need help to write a Python code in order to from this input (a string, len (data) = 5, len (data[0])=63): ["['1426', '1095', '1094', '1093', '1092', '974', '869', '1572']\n", "['1495', '1305', '1264', '1227', '1215', '1142', '1141', '1115']\n", "['1001', '997', '927', '904', '871', '776', '712', '612']\n", "['567', '538', '429', …

Member Avatar for TrustyTony
0
178
Member Avatar for faizabest

Im new in web developer and using WAMP server to develop my system. I have run my system succ on winxp, but not in Win7. Can u guys help me to solve this matter? My Apache doesn't work.. I have try to start n restart but still same.... Cannot open …

Member Avatar for faizabest
0
119
Member Avatar for hirenpatel53

hello all i have one master page containing menu strip and one content page of same master page what i want while i click on the menu strip the value clicked is shown to to text box on form for that i am using following code master page's code [CODE] …

Member Avatar for hirenpatel53
0
127
Member Avatar for leiger

I am attempting to access an XML-RPC API method using a Java client. I'm fairly certain that the server is written in Python. The API is part of the wiki farm Wikidot.com API info: [url]http://www.wikidot.com/doc:api[/url] API method info: [url]http://www.wikidot.com/doc:api-methods[/url] Does anyone here know what the equivalent of this statement is …

Member Avatar for leiger
0
549
Member Avatar for codewalkz

I currently have this function [CODE] processfn('sponsor = 1', 1, '', 0, 'buyer = 0'); function processfn($sponsor, $level, $sad, $sadista, $bumili) { $result = mysql_query("SELECT id FROM ahentes WHERE $sponsor") or die(mysql_error()); if (mysql_num_rows($result) > 0) { $sad = mysql_num_rows($result); while ($row = mysql_fetch_array($result)){ $sila[] = "buyer = '".$row['id']."' "; …

Member Avatar for codewalkz
0
82
Member Avatar for dreamy_ananya

Hi, I have a project that has 11 classes. Now each class refers to the tasklayer ( another set of multiple classes) and instantiates them everytime. For ex: TaskLayer: contains 3 classes under same namespace. A.cs ------ [CODE]public class A{}[/CODE] B.cs --------- [CODE]public class B{}[/CODE] C.cs -------- [CODE]public class C{}[/CODE] …

Member Avatar for vdeych
0
353
Member Avatar for bibiki

hey there, I have two pieces of code that I expected would behave the same. However, what I noticed is that one of them works fine, the other does not at all. I need help from someone experienced to explain what's going on under the hood. the code that does …

Member Avatar for NormR1
0
138
Member Avatar for Mikey12345

Hi im new to c#.. just wondering how to convert this vba code:- [code] Sub AddUP() x = 1 For i = 2 To 100 x = x + i Next i ActiveCell.Value = x End Sub [/code] Best Regards

Member Avatar for Zinderin
0
171
Member Avatar for cotrac

Hello! This is my very first post, anywhere, asking for advice. I have a mysql table named "children". It has 5 columns. "username" "child1" "child2" "child3" "child4" Based on my register form, A user creates a username and list the names of children he/she has (up to 4) on submit, …

Member Avatar for cotrac
0
143
Member Avatar for Cort3z

Hi. I got a noobish question: Is it possible to return an array "directly", so, something like this. [CODE] public int[] getArray(){ return int[]{this.intA, this.intB}; } [/CODE] I know I can just make the array first. But does this not use unnecessary cpu time and memory? This is going to …

Member Avatar for Cort3z
0
110
Member Avatar for reza.adinata

Hi all, I am trying to make a simple application, where when a user press a button, there will be 2 consecutive images shown inside the window with delay. Below is the source code [CODE] private void btnAddMore_Click(object sender, RoutedEventArgs e) { //first show image1 in window FunctImage(); //put a …

Member Avatar for reza.adinata
0
147
Member Avatar for Zinderin

So, a single user application, all data is local, no remote access .... If a go with an Access file (DB), from the user's perspective, they simply install the app and they are good to go. Is it the same if I go with a SQL DB, or do they …

Member Avatar for Zinderin
0
167
Member Avatar for Dan08

Hey everyone, I decided I didn't want to use Tkinter, so now I'm using wxPython, and I'm having some problems, such as getting values from a function to another. I know, it's a bit hard to understand, and I don't even know if this is possible. [CODE=python]import wx class Example(wx.Frame): …

Member Avatar for Dan08
0
96
Member Avatar for cmsc

I was wondering if it is possible to subtract 30 from 4ah? i thought so i can convert the ascii character 'C' to hexadecimal '43', i will just subtract 30h from 43h, then add 30 so it will become 43 again and i will be able to perfrom arithmetic on …

Member Avatar for cmsc
0
192
Member Avatar for TrustyTony

From python.org official website: [URL="http://python.org/download/releases/2.7/"]Python 2.7[/URL] [B][I]Python 2.7 was released on July 3rd, 2010[/I].[/B] Python 2.7 is scheduled to be the last major version in the 2.x series before it moves into an extended maintenance period. This release contains many of the features that were first released in Python 3.1. …

Member Avatar for TrustyTony
2
442
Member Avatar for siggivara

I'm actually trying to do this in objective c, but I belive the theory probarbly are the same for C++. Heres an example of what I want to do with a simple, working, example using an integer: [CODE=c]void func2(int *i) { *i = 2; } void func1() { int i …

Member Avatar for siggivara
0
190
Member Avatar for turnerca902

Hi everyone, I have a fairly simple problem, but having not used python in awhile, I just can't seem to get things working. Basically, I have a text file with a number of comma separated fields (attached). What I want to do is split the string, and extract the "File" …

Member Avatar for turnerca902
0
455
Member Avatar for ptemedia

Hi, first of all sorry if this has come up before, but I couldn't find it anywhere. I have a working php form which submits data on submit. I need to verify the input fields to ensure they are not empty. I know i need a javascript function to run …

Member Avatar for ptemedia
0
244
Member Avatar for bchaney

Is there a problem with my code? i'm trying to refresh a few form checkboxes based on text typed into machinetxt.text with what is currently stored in the database. i put this into the refresh button click event. here is my code: [CODE]Private Sub machinerefreshbutton_click(ByVal sender As System.Object, ByVal e …

Member Avatar for bchaney
0
170
Member Avatar for Viruthagiri

Hello friends, I have a table which contains file names. For example i have stored a file "java.pdf" in a directory called "course". The file is located here. [url]http://www.something.com/course/java.pdf[/url] Now i stored the file name in a column named "document_filename". I stored it as "java.pdf" Now if a user click …

Member Avatar for Viruthagiri
0
111
Member Avatar for benhowdle89

Hi, What i have is a variable that is getting updated periodically and i've set the php script to refresh itself every 30 seconds to run a mysql query updating a db, this is good but if this value isnt changing from the source i get duplicate records in the …

Member Avatar for rajarajan2017
0
4K
Member Avatar for peter_budo

I have this long winded query [code=sql]select i.id,i.name, i.item_type_id, (select it.name from items it, relations rel, relation_types relType where it.id=rel.to_id and rel.from_id=i.id and rel.relation_type_id=relType.id and relType.name='CityCtountry') as cityCountry from items i where i.item_type_id=2;[/code] Cut the long story short, we inherited database from customer that hasn't been happy with other company, …

Member Avatar for tesuji
0
215
Member Avatar for rapids79

I'm working on a code that enables the user to input a string , compare it to some text in a file then send the approriate data ( from another file) using serial communication or TCP/IP. I ahve implemented the serial communication part but the TCP/IP..I've looked around but have …

Member Avatar for technology
0
157
Member Avatar for kiranbvsn

hi there, i've one requirement i am using a button in three different rows [CODE] for example ( <tr id="tr1"> <td/> <tr id ="tr2"> <td/> <tr id="tr3> <td/>) [/CODE] here i am using one button control (instead of 3 buttons) in 3 different rows now in button onclick event, how …

Member Avatar for kiranbvsn
0
93
Member Avatar for finito

Sorry I can't think of a better Title, I have an Invoice Table, Where The Structure is: [B]InvoiceID, ProductID, Qty, Sum, Location, etc[/B] Primary Key is InvoiceID + ProductID A single Invoice can have more than one Row so a single invoice will look like this: [CODE=Table]InvoiceID | ProductID | …

Member Avatar for finito
0
974
Member Avatar for QWaz

Hi, I am getting this error: Warning: implode() [function.implode]: Invalid arguments passed in ... on line 28 I am not sure if what I am doing is possible or if I have shanked the code somehow.. if(!isset($_GET['b'])) { ///// DISPLAY THE NORMAL PROMOTIONAL HOME PAGE } elseif($_GET['b'] == 't') { …

Member Avatar for rajarajan2017
0
2K
Member Avatar for Ankit_Parmar

I am using ldap_connect function in phpmaker tool,but it is giving error like Fatal error: Call to [B]undefined function[/B] ldap_connect() in C:\xampp\htdocs\register\1v6\phpfn7.php on line 4127

Member Avatar for Ankit_Parmar
0
100
Member Avatar for powerbox

Hi guys, I created a Library 3 years ago and it is built around interfaces and generics. Now I needed to extend one of my application to support WCF. On my test scenario I can load it up on my application as part of different application domain. My problem now …

Member Avatar for powerbox
0
310
Member Avatar for Sunshineserene

Hi there, I am currently doing a bioinformatics project on dynamic programming. I need to read a text file, and extract the information in it and use the information in it for my dynamic programming java codes(both java codes must be together). May I know how to extract the information? …

Member Avatar for Sunshineserene
0
424
Member Avatar for Krstevski

Hello friends, I never ever use a class destructor, and now I want to try to using destructor, but I have a small problem. My code is: [CODE] using System; using System.Text; namespace ConstTest { class test { public test() { Console.WriteLine("Start..."); } ~test() { Console.WriteLine("End..."); } } class Program …

Member Avatar for Krstevski
0
114
Member Avatar for BobbieJean

Hi everyone, I think I nearly have this program running right except for printing the adjacency matrix. Here's the code I have: [CODE]#include <iostream> #include <string> #include <memory.h> using namespace std; class Graph { public: static const int MAX_ROWS = 6; static const int MAX_COLS = 6; Graph(); ~Graph() { …

Member Avatar for jonsca
0
264

The End.