64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Ronen444

Hi all! I'm learning Assembly by my own with FASM, but i'm having trouble running and compiling some codes... like this, for example: [CODE] CODE SEGMENT ASSUME CS:CODE, DS:CODE START: MOV AX, CODE MOV DS, AX CODE ENDS END START [/CODE] i get an error about the "CODE SEGMENT" one. …

Member Avatar for rahul8590
0
152
Member Avatar for srilakshmitr7

Can any one give me some idea regarding how to calculate second and fourth saturdays i did based on time whenever i change system time it results in tuesdays insetad of saturdays.

Member Avatar for srilakshmitr7
0
136
Member Avatar for neutralfox

Hello everyone, I got a question on synchronization, hope someone will be able to give me a clear explanation. [code] public void sendToAll( String message ) { ..... synchronized( outputStreams ) { ... ""statement block"" } } [/code] outputStreams is an object here. I made some research and I found …

Member Avatar for neutralfox
0
102
Member Avatar for sivak

i have 2 tables but key is not common ..want to join 2 tables... i want all the coloums in first table and only one coloums in second table..how can i join...i cont use join query without key is common rite ..can anyone tell me plz

Member Avatar for Upsilon
0
79
Member Avatar for andresasongko

Hi all, In a table column, I have this address value: "Muehlgasse 1 86637 Wertingen GERMANY" I want to get only the GERMANY part on my SELECT code. I've tested this code: [code=sql]SELECT right('Muehlgasse 1 86637 Wertingen GERMANY',7)[/code] It works, but the '7' has to be calculated, because we have …

Member Avatar for andresasongko
0
93
Member Avatar for srk619

hey im finding this question quite hard to do can anyone help out. Implement an iterative Python function to generate numbers in the Fibonacci sequence: fib(0) = 1 fib(1) = 1 fib(n) = fib(n − 1) + fib(n − 2)

Member Avatar for srk619
0
146
Member Avatar for gabec94

I am trying to write a program that calculates the value of pi from the infinite series of pi = 4 - 4/3 + 4/5 - 4/7 + 4/9...etc. As you can tell, the numerator stays at 4, while the denominator goes up incrementally in odd numbers, if the program …

Member Avatar for gabec94
0
1K
Member Avatar for peter_budo

[B]This is not a question just small challenge[/B] if you interest in improving provided solution and feedback for me. I just went back to some assignment I did at university and one of these been design phone book for mobile device with use of Java Microedition (JME). At the time …

Member Avatar for peter_budo
0
335
Member Avatar for Martin310

Hi guys, got another question. I have a dialog with a series of dropdowns, textboxes and checkboxes for entering and saving data into an access database. There is a load data button on that dialog which loads a second dialog box. This one has a datagridview which is linked to …

Member Avatar for Martin310
0
90
Member Avatar for Miyuki Suzuki

Good Morning all, I need some help with loading a file into a sybase IQ table with the "LOAD INTO" statement. I have never used it before and I cant seem to get myhead around how I am supposed to implement it in my java app. I have a stateless …

Member Avatar for Miyuki Suzuki
0
114
Member Avatar for Miyuki Suzuki

Good Morning all, I need some help with loading a file into a sybase IQ table with the "LOAD INTO" statement. I have never used it before and I cant seem to get myhead around how I am supposed to implement it in my java app. I have a stateless …

Member Avatar for Miyuki Suzuki
0
250
Member Avatar for harish92

I don't understand why my linear search program in pascal is not working... Some help will be appreciated. [code]program Project2; {$APPTYPE CONSOLE} uses SysUtils; Type TStudent = Record Name : String[15]; End; Var Name : array [0..3] of string=('Fred','Jack','Chris','Ali'); inputname : string; n : integer; begin Name[0] := 'Fred'; Name[1] …

Member Avatar for FlamingClaw
0
1K
Member Avatar for JLopeman

I cannot get this program to compile. It is bombing at the Outfit::Outfit constructor. I am getting an error stating that it is missing argument list and also illegal left operand type. Can someone point me in the right direction? Cheers - Jason [code=c++] // Outfit class contains Dress and …

Member Avatar for JLopeman
0
125
Member Avatar for jam7cacci

Hi! I was wondering if someone could help me figure out what may be wrong in my installing process or in my compiler... I was installing Visual Studio 6.0 C++ and everything went well until I started compiling and this is what it shows: --------------------Configuration: try - Win32 Debug-------------------- Linking... …

Member Avatar for jam7cacci
0
149
Member Avatar for MaQleod

I'm fairly new to python and object oriented programming in general, so I'm having a little trouble figuring out why this doesn't work this is the error I'm getting for the code below: Error: 'str' object has no attribute 'insert' [CODE]filetolist = FileReadToList("test.txt") print filetolist[0] def FileCountLines(s_filename): f = open(s_filename) …

Member Avatar for MaQleod
0
7K
Member Avatar for punitdam

I am trying to connect Mysql5.1 from Perl 5.8.8 on RHEL5 as follows: [code] $dsn="DBI:mysql:database=mysql"; $dbh=DBI->connect($dsn, 'root', 'root', 'mysql',{RaiseError => 1}); [/code] When I try to run perl containing above connection, it gets connected to Mysql and fetches data but displays following warning. [QUOTE]DBI->connect using 'old-style' syntax is deprecated and …

Member Avatar for punitdam
0
531
Member Avatar for rm_daniweb

Hi All, Some website said the we cannot run php function in javascript because php is on server side and javascript is on client side. My code will help us to run a php function when you type something on the textbox given below. [icode] <?php function myfunction(){ $x="I love …

Member Avatar for Ezzaral
0
13K
Member Avatar for MoOou

I have a question I did not understand if anyone of you understood it please explain to me [B]suppose that m and n are integers and m is nonzero. Recall that m is called a divisor of n if n=mt for some integer t; that is, when m divides n, …

Member Avatar for Lerner
0
292
Member Avatar for daviddoria

I have used boost's progress bar (it outputs ***** from 0 to 100% complete) to track the progress of long loops. It would also be nice to be able to see a counter along with that, like if I run 1000 tests, the *'s will go from 0 to 100%, …

Member Avatar for daviddoria
0
115
Member Avatar for rEhSi_123

Hello everybody, Ran into a bit of trouble! During compilation I get the following error: [code] fatal error C1083: Cannot open include file: 'login.h': No such file or directory [/code] The login.h does exist in my directory folder. Please let me know where I have gone wrong. I am attaching …

Member Avatar for rEhSi_123
0
151
Member Avatar for FallenGenesis77

I was wondering how I would go about saving data within an executable, I'm not exactly sure If I happen to be wording this right so I will elaborate. For example lets say I had an application that would ftp upload specified files, but I did not want to use …

Member Avatar for MosaicFuneral
0
243
Member Avatar for brechtjah

I can handle errors just fine on MySQL, but what about warnings? If I use the following code I still get to see the warning, while that is not what I want: [code=php] if(mysql_connect($host, $user, $pass)) { $conn_server = true; } else { $msg = "Fout bij verbinden naar de …

Member Avatar for brechtjah
0
153
Member Avatar for jacline

a GUI application that presents a game based on a 4 by 4 matrix of buttons.One of the buttons (selected at random) "hides" the prize. A status bar at the top of the window shows the number of guesses. When the prize button is pressed, the status bar shows "You …

Member Avatar for jacline
0
807
Member Avatar for ivatanako

[code]import java.io.*; public class getLowestValue { public static void main(String[]args) throws Exception { DataInputStream input=new DataInputStream(System.in); System.out.println("Get lowest value "); int a[]=new int[10]; int x =0, i=0, j=0, tmp=0; // display and get inputs [5] for (x=0;x<5;x++){ System.out.print(x+" Enter a number: "); a[x] = Integer.parseInt(input.readLine()); } // sorting for (x=0;x<5;x++){ …

Member Avatar for jasimp
0
213
Member Avatar for aashishn86

i have a file uploaded to my server the path is shown as E:\abc\def\upload\contents.doc to download it the path should be [url]http://3.212/232/abc/def/upload/contents.doc[/url] how do i go about it ? i am saving the file by using[code] o.FileFullPath = Server.MapPath(".") & "\upload\" & sFile [/code] from a script i downloaded

Member Avatar for punitdam
0
74
Member Avatar for Zcool31

I'm trying to implement a linked list class in a manner similar to STL. Everyithing seems to work fine, but when I try to implement an output operator to let me see what is inside the collection quickly, it starts acting wierd. Note that I use the iterator inside the …

Member Avatar for Zcool31
0
247
Member Avatar for tomtetlaw

my inheritence isnt working, it says saveAttributes isnt defined: [code=python]#!/usr/bin/env python #==========================================# # Copyright Tom Tetlaw & Shadwick (c) 2009 # #==========================================# import pickle as pk from formatting import * from locations import * from gclasses import * from gfuncs import * from items import * from objs import * …

Member Avatar for tomtetlaw
0
81
Member Avatar for tomtetlaw

i made a file reader but it always returns corrupted: [code=python] def load(charactor): fout = open(charactor + '.actor', 'r') fout.seek(0) actor_type = None attrs = [] for index, line in enumerate(fout.readlines()): if index == 0: actor_type = line.replace('{', "").strip() if index == 1: if line == 'attributes': if not line …

Member Avatar for tomtetlaw
0
86
Member Avatar for jacline

Design and implement a simple GUI application (or applet) that displays the graph of a quadratic function, Ax2 + Bx. Below the plot should be two sliders which allow the user to interactively set the values of A & B, the display being updated continuously in response to any changes …

Member Avatar for jacline
0
130
Member Avatar for timb89

[code] int log2(int n) { int count = 1; while(!n >= 1) { if (n%2 == 0) { count++; n=n/2; } else { count++; n=n/2; floor(n); } } return count; } [/code] not sure why it isnt working?

Member Avatar for timb89
0
123
Member Avatar for doha786

i am very new in java. in GUI class i have code like this : [CODE] public void actionPerformed(ActionEvent e) { if(e.getSource()==listButton){ ArrayList<String> list = new ArrayList<String>(); list.add("Orange"); list.add("Apple"); list.add("Pineapple"); list.add("Lemon"); list.add("Pear"); for(int i=0; i < list.size(); i++) { String s = list.get(i); { textArea.setText(s+"\n"); } }[/CODE] but its showing …

Member Avatar for javaAddict
0
110
Member Avatar for happyns

Hello everyone Im doing a dummy project in asp.net. I have a table named trains with following fields: 1. Sno(Primary key, Identity Increment, integer) 2. Train_no(varchar(100)) 3. Train_name(varchar(200)) 4. Route(varchar(1000)) 5. Start(varchar(100)) 6. End(varchar(100)) For this i have created a stored Procedure in this way: [code]Create Proc [dbo].[sptrainselect] @select int, …

Member Avatar for vizy
0
121
Member Avatar for ddanbe

I want to make a square with a [B]0[/B] in it and when I click on it would change into a [B]1[/B]. (e.g. For use in a memory register in which I can set the bits manually.) Piece of cake I thought, derive from the Checkbox class and override the …

Member Avatar for ddanbe
0
124
Member Avatar for sid78669

Following is a perl script. It is running on shell when I go perl followed by the filename and works perfectly. But when I try to open it from browser, it gives back a 500. The permissions are fine because if i make some syntax error, it gives me the …

Member Avatar for sid78669
0
225
Member Avatar for tortoiseman

Hi, I've never used PHP before so I don't even know if I'm posting in the right place, but I'm wondering if it's possible to scrape information from a dictionary-like Web page. I want to take a list of words and retrieve piece of information about each word, but the …

Member Avatar for tortoiseman
0
139
Member Avatar for saltysnack

Right now im making a converting program for myself. I got it to convert correctly but it only converts one character so here is my code [CODE]map<string,string>datamap; datamap["A#"]="b"; datamap["C"]="DD"; string change; getline(cin,change); for(int i=0; i<change.size(); i++) { //output based on what character gets passed to the map cout << datamap[string(change.begin() …

Member Avatar for GDICommander
0
103
Member Avatar for archangelzero6

I am writing a program and want to have a a file loaded to be written to a specific location on the drive when an option is selected in a combobox. Here is the code that I have: [code] Private Sub ComboBox5_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Member Avatar for martonx
0
180
Member Avatar for vidaj

Hello I'm building my own html parser in python, and have ran into some problems. First off, I'm using python 3, so I can't use the old bundled sgmlparser, or beautiful soup and could not find windows binaries for lxml, so I'm rolling my own. It is for my master …

Member Avatar for vidaj
0
1K
Member Avatar for krm08

Hello friends, I want to get the row position a table with respect to the primary key.How can I do that?.Please help me!

Member Avatar for freshfitz
0
69
Member Avatar for seao111

Hi, i am trying to make a general compression algorithm in c++ but i haven't really gotten the i/o part of this right yet. What i want to do somewhere along the line is to have my program parse say 10 or so characters at a time from a binary …

Member Avatar for seao111
0
163
Member Avatar for phouse512

Hello, I'm learning to start to program in C++, and I have a problem with the prompt closing before the program ends. I know there's a lot of info about it, and I've googled it and searched here, but all the solutions to system("pause") don't work for me. I'm using …

Member Avatar for phouse512
0
105
Member Avatar for turbomen

Dear Sir / Madam, The following is the game of Rock, Paper, Scissors. But I don't know why computer is always choose Rock. My Answer:- program RPS5; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var Computer : integer; Choice, Move : char; begin repeat writeln('Rock(R), Paper(P), Scissors(S)'); readln(Choice); until (Choice = 'R') …

Member Avatar for FlamingClaw
0
88
Member Avatar for chaney44145

I am having some problems with python. If I use IE to POST data to a page using a simple form, I get the following [code] POST /automa/auth.php HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */* Referer: http://maroon5/automa/login.php Accept-Language: en-us Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, …

Member Avatar for chaney44145
0
183
Member Avatar for punitdam

Hi, I am new to PHP and Mysql development . I had installed RHEL5 Server, Apache, PHP5 and MYSQL5.1. I got below script which actually give status of the Apache, PHP and MYSQL. [code] <?php session_start(); ?> <!-- INSTRUCTIONS: 1. Please copy this file anywhere in the DocumentRoot of your …

Member Avatar for nav33n
0
202
Member Avatar for senaddor

Hello. I am having hard time understanding recussion in binary search tree. Assuming we have 6,4,7 in our tree the following inorder function should print 4,6,7 and I don't understand how it's done. Can somebody help explaining in more detail. Thank You. [code=cplusplus] void BinarySearchTree::print_inorder() { inorder(root); } void BinarySearchTree::inorder(tree_node* …

Member Avatar for Narue
0
178
Member Avatar for ChintuChowdary

HI TO ALL... how to find and get mac address using php. THANKS IN ADVANCE..........

Member Avatar for ChintuChowdary
0
109
Member Avatar for joshmo

I have two .java files and I want to access a variable of a method in one of the files and use it in another. However, I dont want to call the whole method and I dont want the method to return a value...I'll try to illustrate below [code=java] [COLOR="Red"]//file_A.java[/COLOR] …

Member Avatar for javaAddict
0
3K
Member Avatar for shahzadhard

Hi I worte this code can any body tell me why its not working Error can be seen in the attached file whis…. Value cannot be null. Parameter name : data source Private Sub btnTotal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTotal.Click Dim ConnectionString As String = "Integrated …

Member Avatar for maczoon
0
93
Member Avatar for turbomen

Dear Sir / Madam, Please help me again on Delphi. Please help me to write a program that uses a function to caoculate the commission payable to the sales person, when passed the commission rate for the item, the total items sold and the price per item. For example, if …

Member Avatar for FlamingClaw
0
97
Member Avatar for JooClops

Hi! We have a project,to make a website in school, so one of the mandatory things is the registration form. so i can just copy from the example the teacher gave us and add some stuff, but i wanted to practice checking the form, and one of my "missions"(huh i …

Member Avatar for JooClops
0
156

The End.