64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Mitja Bonca

1. How to retrieve stored file our of the database? have stored (for example) a pdf file into database, as a data type of varbinary(MAX) - binary data. How can I get this file back, like it was before? Important things I have stored for the particular file are: - …

Member Avatar for Mitja Bonca
0
2K
Member Avatar for Stefano Mtangoo

Hi all, I'm just starting Java and have read some tutorials and reading also thinking in Java and I see it is a good language. I have a question though, what are MINIMUM requirement of ANY Java program for it to run?

Member Avatar for Stefano Mtangoo
0
122
Member Avatar for rohanvijay

1. Write a C program to convert a given infix expression to postfix form using stacks 2. Write a C program to evaluate the postfix expression using stacks

Member Avatar for Chilton
0
175
Member Avatar for Pankaj18
Member Avatar for kvprajapati
0
100
Member Avatar for AutoPython

Okay, the encryption algorithm idea was stupid. But I still made an encryption program. I got the absolute most possible frustrating situation. The program doesn't work in the console window. It spits out a giant error (probably recursion judging how many errors it got), but it DOES work in IDLE. …

Member Avatar for jlm699
0
175
Member Avatar for Bluesilver

I am trying to write a method that accepts two integer parameters and returns their average as a float, but for some reason it is only returning a double. I am quite sure that there needs to be "f" after the resulting value, but it's not showing up. Can someone …

Member Avatar for Bluesilver
0
144
Member Avatar for RgCz

In Visual Basic 2008 Express edition: Create a new string replacing the order of the words, from last one to the first one and show it in a text box Example: Input: “This is an example” Output: “example an is This” I know theres a function to reverse the letters …

Member Avatar for RgCz
0
158
Member Avatar for songweaver

Hey guys, I am having trouble building this class, my teacher is not very helpful. Here is the code I have been working on, I am still confused on methods, constuctors, properties, etc. He gave me a wierd example to try to follow. Here are the requirements my teacher wants …

Member Avatar for kplcjl
-1
163
Member Avatar for VibhorG

Hi all, Can anyone tell me how can we play the video(.wmv) in C# window application .................? Let i have some links on window form, As the user click on that link, related video should start playing..... And i am using VS2008....... Kindly help me regarding this............

Member Avatar for Diamonddrake
0
540
Member Avatar for jjf3rd77

I have to print a triangle in C++ where the length is double the height and base of the triangle it is to be isosceles this is my Isosceles code. how do I change the length base and width so that the length is double. We are only allowed to …

Member Avatar for jjf3rd77
0
144
Member Avatar for bk_bhupendra

how can i control the close button in a form.... (the three bottons minimize,maxi,close for all windows form) i hav attached a fig... jst check it... n pls reply

Member Avatar for Diamonddrake
0
3K
Member Avatar for yodito

Hello, I'm a newbie on C# and I have a question in two parts. Say I have a class Team that defines name and location. I need to write a method that returns an array of Teams. My first question is... by best pracitce, should I define this method within …

Member Avatar for yodito
0
124
Member Avatar for nevets04

[code] #Credits: #Nevets04 #Fallen #Uber1337 #Farout import os List = [] z = int(raw_input("How many words in your list?: ")) os.system("clear") for x in xrange(z): List.append(raw_input("")) List.sort(),os.system("clear") print "\n".join(List) [/code]

Member Avatar for vegaseat
0
112
Member Avatar for shroomiin

Hello everyone. I am required to write a simple code that reads 10 numbers and displays the largest and last number entered. I thought i would be able to do this easily but for some reason the numbers wont get assigned to the variables like i thought. [code] import java.util.Scanner; …

Member Avatar for shroomiin
0
165
Member Avatar for jaison2

hi, i want to be able to draw two eyes with are exactly the same in radius and colour etc next to eachother. So when i open the window the pair of eyes are there in the centre. I have managed to get one eye but i dnt have a …

Member Avatar for jaison2
0
130
Member Avatar for the great

Hello I have given a program in which i have to declare structure to store account ID, amount, user name and address. It inputs the number of account holders from the user and creat a dynamic array of structures to store the records of accounts. The program should declare two …

Member Avatar for jonsca
0
87
Member Avatar for Rahul002

Hello, I want to create database on SQL Server using Javascript and HTML. User will input following data. Server Name, Database name, File Sizes. When I will click "Submit" button database should be created on Selected server with entered name. I am using Client side HTML and Javascript. we need …

Member Avatar for kplcjl
0
479
Member Avatar for sfurlow

For the final part of our project, we're supposed to: Add the following constant (the file name must match exactly): const string MASTER_FILE_NAME = "master.txt"; 2. Create the file master.txt and add it to your project. The master file must contain account records (one record per line). Each account record …

Member Avatar for Fbody
0
103
Member Avatar for Potty391

Hi all, I've been working on a Java guessing game, similar to hangman which rewards you with a picture using the Gogga class (developed by the people who wrote my IT textbook for Grade 10, also I removed gogga for this website, since I doubt you'd be able to find …

0
210
Member Avatar for laxter17

I am totally new to programming and could use some help. I am trying to write a while loop in python that could execute this equation but in a while loop type function. the equation is n * (n + 1) / 2 any ideas?

Member Avatar for ShadyTyrant
0
168
Member Avatar for DdoubleD

A few days ago I decided to install MySql v1.2.17 and I downloaded a client class library: MySql.Data.dll v5.0.9.0 (by MySQL AB). I included the client classes inside my wrapper class and had it creating, dropping, inserting, and deleting tables..., or so I thought. I guess I never actually looked …

Member Avatar for sknake
0
237
Member Avatar for tdeck

Ideally I'd like to do it with a list comprehension. Something like this [CODE]result = [(key, value)for key in dict.keys(), value in dict.values()][/CODE] but clearly that isn't the right format. Any suggestions? EDIT: This seems like what I want to do, but it doesn't work: [CODE]result = [(dict.keys[i], dict.values[i]) for …

Member Avatar for jlm699
0
328
Member Avatar for chavanak

Hi, I am comparing 2000 files with one other file. I want the program to go through each line in both files and compare. If the line is present, then it has to write to another file. What I tried was to open both the files and use readlines() to …

Member Avatar for chavanak
0
433
Member Avatar for newportking

I am interested in learning python and picked up a friends textbook to try and work through it. I have no cs experience so am pretty clueless. I am having difficulty with one of the problems in the first chapter lol. i am trying to make the program spit out …

Member Avatar for newportking
0
118
Member Avatar for vksingh24

Hi, I want to write a small desktop application which will fetch Live stock price from NSE/BSE or Yahoo finance website. In order to create such application I need the guidance that how shoudl I proceed with? The major problem I am facing is connecting a desktop application with intenet …

Member Avatar for sknake
0
120
Member Avatar for BratNZ

The reason is that : 1. I wish to run multiple databases on a single server. To do this securely each login must be granted db_owner on the database so we can use "deny view any database" to hide the other databases from view. (login can see all databases they …

Member Avatar for forjo
0
250
Member Avatar for P00dle

Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these …

Member Avatar for jlm699
0
321
Member Avatar for ez123

When I run my fie and open this one folder, I get this error message Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ezbiz/public_html/ar/templates/a_settings.html on line 61 Any help will be greatly appreciated.

Member Avatar for ez123
0
141
Member Avatar for honos1

Hello all.. Very new to php and am working on an online strategy game as a precursor to my business websites. I am having a problem coming up with something I thought would be simple. My intention was to have a list of units display on the screen using checkboxes …

Member Avatar for honos1
0
848
Member Avatar for Grn Xtrm

Hello friends, I am having a problem writing a function to search for a string in an input file. I have successfully output the file with line numbers, which was the first step in the program, but now I am stuck on searching for a given string. After searching for …

Member Avatar for Tajon Wong
0
3K
Member Avatar for P00dle

Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these …

Member Avatar for P00dle
0
144
Member Avatar for Alxandr

I get an error trying to parse som XML. The error is [icode]System.Xml.XmlException: Root element is missing..[/icode], and I can't understand why. Here is the code I run: [code=C#] MemoryStream xmlStream = new MemoryStream(); StreamWriter xmlStreamWriter = new StreamWriter(xmlStream); String xml = "<html>\n<body>\n\n<h1>My First Heading</h1>\n\n<p>My first paragraph.</p>\n\n</body>\n</html>"; xmlStreamWriter.Write(xml); xmlStreamWriter.Flush(); XmlReader …

Member Avatar for Alxandr
0
3K
Member Avatar for lifeworks

hi i have two tables, one is products, the other is for 'discounts' on those products... when adding a new 'discount' i want to avoid adding two discounts to a single product... so i was looking for some sort of Right Join which would exclude all products which have a …

Member Avatar for lifeworks
0
110
Member Avatar for Alba Ra

Hello, I am a training developer in .NET and web 2.0 technologies and this one is an exercise from one of our first lessons in PHP: accessing a MySQL database from a PHP script. The problem I've encountered is that while database is thought to be in Unicode (i.e. the …

Member Avatar for Alba Ra
0
1K
Member Avatar for elanorejoseph

[CODE]hi can any one tell me how validation can be done in PHP WITH OUT USINGjavascript[/CODE]

Member Avatar for venkat0904
0
346
Member Avatar for vinnijain

Hi!!!!!!! I have made a window application in which i am entering mathematical equations and side by side the corresponding math format is generated like we see in books. In this, I am using LATEX/MimeTEX for generating math format and it uses special symbols for generating math format. Like for …

Member Avatar for Geekitygeek
2
555
Member Avatar for JRabbit2307

[CODE=vb.net]'Radio Choice Selection Console.WriteLine("Please enter the Radio Choice for your vehicle: ") Console.WriteLine("Enter 1 for AM/FM Radio") Console.WriteLine("Enter 2 for AM/FM/CD/DVD") strRadioChoice = Console.ReadLine() Select Case strRadioChoice Case "1" Console.WriteLine("Price : $100") Case "2" Console.WriteLine("Price : $400") Case Else Console.WriteLine("Invalid selection") End Select SellingPrice = BasePrice + strEngineChoice + strInteriorChoice …

Member Avatar for jbennet
0
155
Member Avatar for AirGear

i'm a newbie in php, and i know this question maybe silly :( i tried to create a php file that will redirect to yahoo.com. i have searched in google, and i found that the code should be [CODE] <?php header('Location:http://www.yahoo.com ?> [/CODE] but i found that it didn't work. …

Member Avatar for AirGear
0
372
Member Avatar for Dum_

Hi, i need to block input if first char 2 and second char must not be more 5. And first char input must be 1 or 2. Specifically I need the input of only 1-25 and nothing else. I tried and only allow entry of numbers, but fail to limit …

Member Avatar for Geekitygeek
0
242
Member Avatar for AirGear

i'm a newbie in php and maybe my question is so silly. i tried to create a session in a file named login.php [CODE]<?php include "koneksi.inc.php"; $name=$_POST['name']; $password=$_POST['password']; $hasil=mysql_query("SELECT * FROM TabelPegawai WHERE nama='$name' AND password='$password'"); $row=mysql_fetch_array($hasil); if ($row[nama]==$name AND $row[password]==$password) { session_start(); $_SESSION['namauser']=$row[nama]; $_SESSION['passuser']=$row[password]; $_SESSION['level']=$row[jabatan]; if($_SESSION['level']=="Manager") {header("location: manager.php");} else …

Member Avatar for AirGear
0
186
Member Avatar for JohnDove

I've written an app in VB2008 using a Windows Vista laptop. My problem is that when I run the app on my XP desktop, the fonts look a little blurry/blocky. I've attached 2 screenshots (which don't really capture the issue too well unfortunately). The 'Vista' screenshot is the one I …

Member Avatar for jbennet
0
180
Member Avatar for AdRock

I have a 2D vector of different values. It could be text or numbers. I need to be able to see what is in the vector and to do something depending on what is in there. How do i access each element of the vector and add to a temp …

Member Avatar for AdRock
0
229
Member Avatar for don0369

Hello all, I'm currently using Windows Vista and Visual Studio 2008 to develop my code. I'm working and a very big project and I'm looking for a good profiler for performance analysis. Any recommendations? It would also be nice to keep the solution as low cost as possible (free is …

Member Avatar for potatosoftware
0
130
Member Avatar for omotoyosi

please, I want a sql query that will return the no of fields in a database as an integer example i have table student columns are regno surname othername I want my result to be 3 what do i do??

Member Avatar for kvprajapati
0
85
Member Avatar for meko22

Hi, I'm sure this is very simple but am unable to find out how. How do I display an email address as a mailto link like in HTML? I have records displayed from a mysql db but would like to display a member email address that acts as a mailto …

Member Avatar for meko22
0
4K
Member Avatar for pandeyprashant

Hello every one, i m trying to use session in jsp application for remembering username from one page to another. it is working fine but when i use hyperlink to come back to home page the username becomes null. please help me how to remember username when user is using …

Member Avatar for javaAddict
0
3K
Member Avatar for songweaver

Hey guys need help with this problem that is suppose to read an unspecified number of scores and determines how many scores are above or equal to the average and how many scores are below the average. Enter a negative number to signify the end of the input. Assume that …

Member Avatar for kvprajapati
0
170
Member Avatar for jlouang

so i'm stuck in creating a do/while menu doing this. menu option 1 - use the for loop menu option 2 - use the while loop menu option 3 - use the do/while loop in each option, print the numbers from 1 to 10 I made my functions like this. …

Member Avatar for IT seeker
0
173
Member Avatar for jen140

Hello all, i would like to know how it is possible to remove for example last 20 characters, or by specifing the string to remove. For example i have 2 rows (in reality there are more than 100, thats why im not working it out by hand) with the next …

Member Avatar for nav33n
0
174
Member Avatar for SMIFMD

Greetings! I am in need of some techincal assistance. My problem is as follows: In my Programming class, we are starting to use the graphics package in Python. We are using a module called graphics.py In order to use this module, we have to save it to the desktop and …

Member Avatar for Gribouillis
0
2K

The End.