64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for python_noobie

Hello: I've been attempting to create a treemap (binary search tree) insertion and display function for a bit and am puzzled by the recursive calls. I've tried quite a few things, but the problem seems to be in my mapInsert function. Here's all the code I've written so far in …

Member Avatar for python_noobie
0
367
Member Avatar for MoreBloodWine

Test Page: [url]http://www.eojmarket.com/index.php?pag=26[/url] Code below: <script language="JavaScript"> function function1(){ window.scrollTo(0,265); } </script> <input type="button" value="Go" onClick="function1();"> Question: Is it possible to get rid of the button and have it scroll to 0,265 on page load ? Comment: <body onload="function1();"> doesn't appear to work.

Member Avatar for MoreBloodWine
0
105
Member Avatar for flyingcurry

The below is the main method, the wrapper method, and the array search method for a step recursive method used for finding the index position of the searched string. I am encoutering this problem when whatever search I put in, I get the return value of -1. Why and how …

Member Avatar for flyingcurry
0
166
Member Avatar for ceyesuma

Hello. I created a JTabbedPane on a panel and put it on a JInternalFrame of a JDesktop in SetObjects.java. Why can't I get a tabbcount for it after running an AbstractAction? [b]reference JTabbedPane[/b] [code] [/code] [b]reference JTabbedPane[/b] [code] M =(" --> in controlJMenuItems("+e.getActionCommand()+") var: e.getActionCommand() : xxxxxxxx<-- \n"); System.out.println(M); jtp=SetObjects.getCurrentJTabbedPane(); …

Member Avatar for ceyesuma
0
157
Member Avatar for P0lT10n

Hello people. I was reading severals scripts, and I saw, all the time, that they used %s... What is the application of that ??? Becuase I'm searching about that and I don't find anything about it ! I know that it's about injection codes... Can anyone give me a web …

Member Avatar for mschroeder
0
139
Member Avatar for Suzie999

Can anyone tell me where to get started to get an md5 or sha1 checksum of a given file. I've searced around and all I can find are utilities, I also looked at wincrypt but It seems to me that it just does passwords and strings and suchlike. Any help …

Member Avatar for Suzie999
0
668
Member Avatar for zachattack05

I'm lost on this one. I'm creating a "Preferences" type form. On this form I have a tree view and a panel. I have created multiple user controls, each to be displayed in the panel when a certain tree node is selected. The problem I am having is finding the …

Member Avatar for zachattack05
0
899
Member Avatar for destruct0

Hi!!! I create my own custom control and everything is perfect except this event. I don't understand it. When i add my custom control to Window Form i add MouseDoubleClick event to this control. And when i start Application and try to double click on it is nothing happen. I'm …

Member Avatar for acheo
0
3K
Member Avatar for patto78

The following is a recursive function designed to return the factorial of a number. [CODE] def factorial(number, target): if number == 1: return target else: target = target*number factorial((number-1), target) print factorial(7, 1) [/CODE] As you'll see if you run it however it doesn't return my 'target' variable (the factorial …

Member Avatar for patto78
0
205
Member Avatar for knan

I have dictionary with single element lists. [CODE]dictionary={'a':['A'], 'b':['B'], 'c':['C']} [/CODE] How can i change it to [CODE]{'a':'A', 'b':'B','c':'C'}[/CODE]

Member Avatar for TrustyTony
0
150
Member Avatar for ryan-t

Hi, I've been trying to get my head around timezones and how to allow users to set their zone and update the times accordingly. Basically, I have a unix timestamp in the database and i want to be able to update it to a users timezone which is also set …

Member Avatar for ryan-t
0
132
Member Avatar for Enders_Game

I have a class with a button, it runs the command automatically when the gui is constructed (which i dont want it to do) but then doesnt work again after. What am I doing wrong? Builtin commands such as endcommand work as they should. relevant excerpts (ignore the indent problem …

0
106
Member Avatar for ricardo.crudo

I have this: [B]foo(cons char *p);[/B] foo not is my function, and I don't have access to your source code. I'm trying use foo so: [B]char val[32]; foo(val);[/B] The result of foo is zero and not the desired string. Other tries: This work: [B]foo("something here");[/B] This don't work: [B]foo((cons char …

Member Avatar for Ancient Dragon
0
175
Member Avatar for Shlaa

Okay, I started learning Python last weekend on Saturday with some tutorials and a book. With this being my first programming language my program won't amaze you :P The program I made is a calculator for working out how much turf a person would need given the length and the …

Member Avatar for Shlaa
0
138
Member Avatar for khushhappy

Hi, im a new user to php,problem is : i want to edit/modify the data from the form to the database.kindly make certain changes to it so that the record can be modified.Attached php code is paste below:- <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . …

Member Avatar for khushhappy
0
135
Member Avatar for myk45

Hello, Well, this is not a question directly related to programming, so kindly excuse me for that. i have a small doubt regarding endianess and dereferencing of elements This is what i tried: [CODE]#include <stdio.h> int main(void) { int s = 0xFFFFFAFF - 1; int *p = &s; unsigned char …

Member Avatar for Ancient Dragon
0
100
Member Avatar for Roses89

Hey guys, Im not very good at programming but ive a huge project and i needed help on something. The basic thing is that im making a project for a doctors hospital Now im working on the prescrption and i wanted the doctor to be able to select the patient …

Member Avatar for Roses89
0
112
Member Avatar for chris evans

Hi guys! I created a simple code to add records into an SQL database as shown below. It seemed to be working but then the next time i tried running it, i got no output. actually on clicking the button nothing happens at all. no warnings or error messages at …

Member Avatar for AndreRet
0
150
Member Avatar for chris evans

Hi, could someone please show me how or direct me to a source where i can learn how to connect and manipulate SQL Server 2008 database with VB.NET. I have created a database in SQL Server 2008 and i've created forms for viewing data on VB.NET but i dont know …

Member Avatar for AndreRet
0
214
Member Avatar for Sunshineserene

Hi. I have a 2D array in a particular class file. Now, I want to equate a 2D array from another class to it. May I know how to do it? So far, this is what I've done: Example: [CODE]private double[][] residuescores = MatchApplet.mydouble;[/CODE] residuescores is from a class itself, …

Member Avatar for JamesCherrill
0
160
Member Avatar for ryan400

Here is my code, for some reason it goes to an infinite loop when i try and adjust the highest and lowest values for the Math.Random() method. The code works fine if i do not try to change those values based on if the guess was higher or lower than …

Member Avatar for ryan400
0
1K
Member Avatar for umamahesh2020
Member Avatar for pranav.falcon
0
106
Member Avatar for stonest123

Hi, I'm trying to post through a value of a button from a form on a previous page, and depending on the button that was pressed, an SQL statement will be executed and then a table will be created based on the result. However, when i try to do this …

Member Avatar for stonest123
0
154
Member Avatar for kasim.badami

Hi, Please help me if anybody has found PHP code for implementing Reddit.com API. I want API that can post on reddit.com through php code. Thanks in advance :)

Member Avatar for kasim.badami
0
273
Member Avatar for jakizak

Hey everyone, new guy here, having an issue with a section of code... decided one day to just stop working, nothing was changed. the code is [code] $query = mysql_query("SELECT * FROM products"); while ($row = mysql_fetch_array($query)){ $productname = $row['name']; $productinci = $row['inci']; $productdescription = $row['description']; $functions = $row['functions']; $pid …

Member Avatar for jakizak
0
240
Member Avatar for wolfcode

Hi, I have to write a simple Java code real quick and was wondering how to write the following macro in Java: [CODE]#define BUF 256[/CODE]

Member Avatar for alwinnjavaroor
0
391
Member Avatar for CompSci_Guy

Here is my assignment: [url]https://docs.google.com/document/edit?id=1lf2t8LOqKmXK8tu8lW7ghDOd1IJw9BXBRi_PDXFtPQo&authkey=CLnyu7UE&hl=en#[/url] Here are the other classes I am using: [url]https://docs.google.com/leaf?id=0B_UHOsQPEyMBNDBhMWExNTgtMTJmNy00MTQxLWI1ZGItMDZiZjM3YTZiZjRi&authkey=CP2ujcoM&hl=en[/url] I am receiving a NullPointer on line 53: regularNumbers.enqueue(i); But, I am not sure why. Additionally, I need to display my results 12 primes per line, and a space between each. Suggestions? Thanks all for taking …

Member Avatar for haranaboy
0
160
Member Avatar for pharoah85

Im new to c++, Ive been plowing through books,web,etc. Many of the things im learning seems redundant but being new as I am I figure that it stems from lack of knowledge. Now finally my questions...Whats the significance of using pointers to reference variables when i could just flat out …

Member Avatar for pharoah85
0
186
Member Avatar for jackparsana

Hi, Please me to do this. I have one Webapplication. its build on vs 2010 and back-end is MsSql server 2008 and create setup for installing in another Standalone PC. The Problem is I can't run Application without installing Vs? is there any solution? can I run setup without install …

Member Avatar for jackparsana
0
213
Member Avatar for nsam

Hi, I want to update one of my tables in a database, when the user checks the checkbox. I am running update query for the same.When I echo that query, I came to know that it is not taking the checkbox name .. Can someone please help me out with …

Member Avatar for vibhaJ
0
2K
Member Avatar for arun_l

We are getting these constraint errors wherver OSAF calls like m_NCS_SEL_OBJ_ZERO(&nSelObjSet) is called in our code. This is while cross compiling using tilera compiler - tile-g++. With g++ it always compiles fine. Any pointers would be helpful. Sample Code: 102 // initialise and set selection object set 103 m_NCS_SEL_OBJ_ZERO(&nSelObjSet); 104 …

Member Avatar for arun_l
0
156
Member Avatar for benhowdle89

[CODE] $datef = (date("Y-m-d",mktime(0, 0, 0, $_GET['year'], $_GET['month'], $_GET['day']))); $datel = (date("Y-m-d",mktime(0, 0, 0, $_GET['year1'], $_GET['month1'], $_GET['day1']))); echo $datef.$datel; $result = mysql_query("SELECT f8_0, n7_91, t_stamp FROM westdrayton WHERE t_stamp BETWEEN '".$datef."' AND '".$datel."' limit 20"); [/CODE] I have this PHP code to try and grab records from between the two …

Member Avatar for monica singh
0
107
Member Avatar for sahil1991

hi to all, i was looking for some objective type questions on c++ on the internet............ i got few but some with wrong answers and some with no answers at all....... i would love to hav some e-book on it or a larger question bank with answers........suggest me some links …

Member Avatar for Ancient Dragon
0
173
Member Avatar for Nathaniel10

OK. I thought I understood pointers and such but this exercise is revealing that I do not. The task is to read characters into an array created on free store memory (heap), then print them out using the reference and dereference operators. My code (below) compiles and runs but does …

Member Avatar for Nathaniel10
0
126
Member Avatar for Maxprotect

Hey guys. Before I describe my problem, I'd just like to say that I'm completely new to programming, and I'm currently in the first year of my program. I have an assignment to create a "Lottery winning program". The program generates a random seven digit number, and matches it to …

Member Avatar for Maxprotect
0
2K
Member Avatar for glfnute

This is the usual "I'm new to XSLT and need help" plea ... I am trying to parse an XML document and create a "like" structure as output while performing some mapping functions. In trying to produce the output structure, I cannot seem to figure out how to get at …

Member Avatar for fpmurphy
0
126
Member Avatar for matt4682

What I am trying to do is test the values of two variables, and if one is lower than the other then it will display an error message. When the user clicks okay it should return from the error pop-up back to the previous form... When I enter System.exit(0); or …

Member Avatar for matt4682
0
132
Member Avatar for soccer13

Hey, What I need to do is read a file- it will have a name and several numbers after, with -1 as a sentinel number to signal the end of line, ex: Rogers 15 22 6 12 -1 Myers 23 10 4 22 34 -1 ... .... ..... What I …

Member Avatar for soccer13
0
120
Member Avatar for serkan sendur

i searched google to do this and mostly i found this solution: [CODE]mydiv = document.getElementById('FirstDiv');while ( mydiv.firstChild ) mydiv.removeChild( mydiv.firstChild );[/CODE] instead of doing such iterations, i basically did this and it worked successfully: [CODE]document.getElementById('FirstDiv').innerHTML ="";[/CODE]

Member Avatar for asdasdasdasdfsd
0
121
Member Avatar for j855

In python it will give a decimal like 52.2 and I was wondering if there was a way to make it round all decimals up to the next number like 53.

Member Avatar for Shlaa
0
91
Member Avatar for eswar.aspire

hello, Please any one send me sample code,... 1)How to embed the flash movie in iframe using swfobject in javascript? 2)How to send parameters from Iframe loaded with flash to that flash movie? With regards, Eswaran Saravanan, University west, sweden.

Member Avatar for eswar.aspire
0
191
Member Avatar for myk45

Hello, i have a small doubt regarding the FILE structure. i looked it up in the header file (i have VC++ 2008). In this implementation, it was declared as: [CODE]struct _iobuf { char *_ptr; int _cnt; char *_base; int _flag; int _file; int _charbuf; int _bufsiz; char *_tmpfname; }; typedef …

Member Avatar for myk45
0
212
Member Avatar for Avner .H.

Hello fellows... Is there something like static function variables in python? I know there are static attributes of a class, but what if i want to use a static variable inside a function? somthing like this (stupid) code in c++ for example: [code]int static_num() { static int x = 0; …

Member Avatar for zaghaghi
0
9K
Member Avatar for achava

Have I got a problem. I am quite new to xslt, and I have the following situation. I am presented with an xml file. I only want to extract the text in four of the tags present in the document. My first approach was to create a template for each …

Member Avatar for iceandrews
0
153
Member Avatar for ahaykal

I have this homework in which I have been working on it: but I dont know what im doing wrong :( Could anyone help me: [code]#include <iostream> #include <cstring> using namespace std; class Account { private: char number[8]; char type; char owner[31]; double balance; double interestRate; public: Account() { number[0] …

Member Avatar for ahaykal
0
246
Member Avatar for Jesi523

I need help and I am not sure if this is even the right forum. I am new to n-tier programming. So I have developed a DAL using datasets, a BLL that is probably not very robust because I really do not know 100% what I am doing, and I …

Member Avatar for Jesi523
0
233
Member Avatar for Jesi523

I need help. I have a gridview that updates certain fields. Once those fields are updated a button is clicked and an email needs to be sent to different areas depending on certain conditions but only if there is an email address for that row. There could be only 2 …

Member Avatar for Jesi523
0
120
Member Avatar for Jesi523

I have a SQL query where I need to pull email addresses if there is one associated with that row in my table. Depending on how many email addresses are returned could be 1 all the way up to 5 I need to send an email to each of those …

Member Avatar for Jesi523
0
6K
Member Avatar for titan_550

Is it possible to be unable to put two "physical addresses" with a distance of less than 256k in a segment? My assembly professor asked me this. Is this the right answer:"it depends on how you set the align type(BYTE,WORD,PARA,PAGE), if you set it to BYTE the answer is NO …

Member Avatar for titan_550
0
124
Member Avatar for angel6969

Write a program that will read in a sentence of up to 100 characters and output the sentence with spacing corrected and with letters corrected for capitalization. In other words, int the output sentence all strings of two or more blanks should be compressed to a single blank. The sentence …

Member Avatar for cbsinc
0
2K

The End.