64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for chris5126

Anyone know of a good shell script beautifier that works in either unix or windows or a way of properly indenting/tidying up code???

Member Avatar for chris5126
0
153
Member Avatar for marcelomdsc

Hi, this is my first time posting to this forum so please let me know if I'm doing anything wrong. I would like to know how to do the following... a. Write the internal representation of “17” in ASCII using two binary numbers b. Write 17 and -17 in two’s …

Member Avatar for marcelomdsc
0
100
Member Avatar for Altarium

I've got a small bit of code I need to convert to C#. However my experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to …

Member Avatar for Typhon
0
545
Member Avatar for architact

Please help me in doing this problem in C++ without filing ______________________________________________________________________ [code=cplusplus] #include<iostream.h> #include<conio.h> #include<stdio.h> #define min(a,b)((a)<(b)?(a):(b)) int a[6000]; main() { file*input=fopen("number.in","r"); int n,p2,p3,p5,p7; a[1]=n=p2=p3=p5=p7=1; while (a[n]<2000000000) { a[1+n]=min4(2*a[p2],3*a[p3],5*a[p5],7*a[p7]); if (a[n]==2*a[p2]) p++; if (a[n]==3*a[p3]) p++; if (a[n]==5*a[p5]) p++; if (a[n]==7*a[p7]) p++; } { fscanf(input,"%d",&n); if (n==0) break; printf("the%d",n); if …

Member Avatar for DigitalPackrat
0
157
Member Avatar for RFBourquin

How can I link to another URL when my web page opens without clicking on "link"? I'm just learning html and understand how to link using the anchor and href. Example: [code=html]<html> <body> <p> <a href="http://msm/com"> Click Here </a> </p> </body> </html>[/code] How can I get my webpage to open …

Member Avatar for RFBourquin
0
306
Member Avatar for lolo1313

Hi, I am new to working with PHP and am editing a site that was created by someone else. I need to have a link open a new tab instead of redirecting away from the original site. What PHP code is needed to do this? Below is what is already …

Member Avatar for Fungus1487
0
151
Member Avatar for Karkalash

Hi: I have to write a program that uses methods and arrays. I have to create a method that creates an array and populates it with 10 random numbers between 1 and 10 inclusive. Then I have to write another method that sorts the number from lowest to highest and …

Member Avatar for Karkalash
0
141
Member Avatar for kevin wood

i am using php to upload images onto the server and then they are being displayed on other pages around the site. the problem i am having is if the user changes the images that they have uploaded the old ones are displaying from the cache. i would like to …

Member Avatar for kevin wood
0
108
Member Avatar for joshmo

am trying to figure out how to insert a new number in a linked list after a specified number...i am failing to figure out how to fix in the number in the list...here is the partial code..any help is appreciated [code=cpp] void insert(detailsPtr& head) { detailsPtr prev, current,tmp; int num,curr_num; …

Member Avatar for joshmo
0
83
Member Avatar for dinilkarun
Member Avatar for Jx_Man
0
67
Member Avatar for sagz

Hi all, I am a newbie to programming and have almost complete my assignment 'Frequency of words and phrases' to a satisfactory standard. My program reads a text file and counts the number of phrases within the file (A phrase is defined as a sequence of one or more words), …

Member Avatar for sagz
0
157
Member Avatar for sudhakary_rao

In my aspx page.background image should be static whereas my remaining functionality(i mean controls or anything) should be scrolling.How to apply this.

Member Avatar for sudhakary_rao
0
77
Member Avatar for abdulraqeeb33

hello, i have written a program which selects each record in the database-table(having ip,status and other fields) pings to that ip and if a reply is obtained then the program establishes a socket conn b/w another comp and exchanges information,if info is exhanged then nothing is to be done to …

Member Avatar for mukulbhave
0
139
Member Avatar for mythi

Hi I am new to the dot net field i need to do my login page in which i need to give specific home pages for admin and other users i dont know how to do it kindly help me with some code for authentication for different users

Member Avatar for mythi
0
72
Member Avatar for painthu

Hi, I am trying to create a custom web control that inherits from System.Web.UI.WebControls.Gridview I would like to add a custom template field which has label control showing serial numbers, i am able to add a serial number column during run time in a normal grid view, but i could'nt …

Member Avatar for painthu
0
70
Member Avatar for ceyesuma

I have the tutorial running with a entire database displayed. I am working with the tutorial at: [url]http://www.netbeans.org/kb/articles/mysql.html[/url] The above tutorial creates a jDesktopAPP. with components bound to the table. I am trying to add a button (basically). I am in the process of understanding binding. the program loads with …

Member Avatar for ceyesuma
0
176
Member Avatar for abdulraqeeb33

i have a program running with lot of system.out.println statements.. i want to display this in a javaframe...can anyone tel me the steps to go abt it

Member Avatar for alpe gulay
0
131
Member Avatar for Roofus

I have a feeling this question might be a no brainer to all you. But is it possible to convert a string object to an istream obj. Because what I need to do is read the string expression and then calculate it using the "read_and_evaluate(istream&)" method in my if else …

Member Avatar for Roofus
0
2K
Member Avatar for Jennifer84

I have this code that opens a Form. This code does work but if I just close the Form that did open with this code and press the button5 again, I will have an Errormessage: [B]"Cannot access a disposed object. Object name: ´Form2´."[/B] But if I change: this->form2instance.Show(); to: this->form2instance.ShowDialog(); …

Member Avatar for Jennifer84
0
137
Member Avatar for Jennifer84

I have a Form witch scrollbars that is called Form2. Is there any way to programatically go to the top of the Form without having to scrollup with the mouse ? So if you have scrolled down to the end of the form. Is it possible to press a button …

Member Avatar for Jennifer84
0
181
Member Avatar for NycNessyness

Hello everyone. I had a quick question. How can I go about setting constraitnts for a JTextField. I'm trying to not allow users to enter any non numeric numbers, except for dollar signs, commas and periods. Also how can I restrict a JTextField to only allowing two numbers to be …

Member Avatar for NycNessyness
0
387
Member Avatar for saurabh.verma

hi, i have a problem with my form so i have a form with windowstate = maximized now there is a button in that form that if i click on, a new form will be opened. so the problem is that if the new form has been opened and i …

Member Avatar for saurabh.verma
0
78
Member Avatar for recursiveNugget

Hello all, I'm having some problems with joins in SQL. I hope someone here can help me out a little bit. I'm using MS SQL 2000 Server. I have the following tables & data: [CODE] [B]Table: tUsers[/B] id location contact_id ----------------------------------------- 1 1 2 2 2 4 3 1 5 …

Member Avatar for recursiveNugget
0
892
Member Avatar for ViRiPuFF

Hi I am using Visual Basic Developer 2005 I have this simple code that will delete all files created before today in the specified folders. The code works fine but I get an exception problem when the fso object deletes the files ie at fso.DeleteFile(file) inside the second For loop. …

Member Avatar for ViRiPuFF
0
344
Member Avatar for Jennifer84

I am running this loop where I am substr a vector like below and then ´creating´ a new string "NewData" that I will pushback in a new vector. The thing is that I got an Error message when running this code but if I instead change these 3 lines to …

Member Avatar for Jennifer84
0
119
Member Avatar for FreezeBlink

There's a function that repeatedly shows up in languages, usually with more or less the following form (Python syntax): [code=Python]var1 = raw_input("Input a number between one and three.") choose var1: case "1": print "You inputted one." case "2": print "You inputted two." case "3": print "You inputted three."[/code] Or something …

Member Avatar for kdoiron
0
1K
Member Avatar for harakiri1976

Hi Guys! I am trying to make a simple and very basic Database in Python. Something, like a small agenda with contacts. I make a dictionary within the script and I was trying to update that info with new Input data. The problem is that I am not sure I …

Member Avatar for woooee
0
118
Member Avatar for Snaku919

Euhmm Ok i got some error that tells me that i can't open the program because there some error in my syntax but I really don't know where is the problem it self. #include <iostream> #include <iomanip> #include <cmath> #include <fstream> using namespace std; void voircatalogue(fstream&); void ajoutitem(fstream&); void ajoutclients(fstream&); …

Member Avatar for Snaku919
0
250
Member Avatar for timdog345

[code] void firstClass(int f); void businessClass(int b); void coachClass(char typeTicket); int main() { char type; cout<<"Please enter your which class you want to fly. (f=firstClass, b=businessClass, c=coach)"; cin>>type; cout<<endl; //bad data check while (type != 'f' && type != 'F' && type != 'b' && type != 'B'&& type != …

0
290
Member Avatar for kitsune

Hi, I want to show a login pop up window that has the username and password, I want it to be like the prompt. Can anyone help....

Member Avatar for Traicey
0
100
Member Avatar for sudhakary_rao

Hi i am having listbox,i want to open a new window after doubleclick of particular item in listbox in asp.net

Member Avatar for majestic0110
0
312
Member Avatar for StrawberryChips

First off I'd like to say I'm a beginner in C++ (VB was my stronger point I think), so be gentle about how gigantic my code is. I've been working on a project for a class for a couple days now, it's not due for a couple days, but for …

Member Avatar for Agni
0
335
Member Avatar for Visualogic

this is what i am trying to do. Write a simple program that do the following: 1. Accept user input for date in format of (YYYY-MM-DD). 2. Validate YYYY, MM, DD are number. 3. Validate whether this input is a valid date. 4. Print a monthly calendar for the month …

Member Avatar for Visualogic
0
95
Member Avatar for jascase901

i am trying to teach myself python using this book called, core python programing by wesley chung. one of the exersises in this book says make a text based menu application that uses more than one of the programs you made already.When i made the application one of my code …

Member Avatar for tondeuse34
0
91
Member Avatar for TheWhite

[code=java] import java.awt.Color; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.SwingUtilities; public class Testing extends JFrame { public static void main(String[] args){ SwingUtilities.invokeLater(new Runnable() { public void run(){ new Testing(); } }); } private Testing(){ super("tester"); launch(); } private void launch(){ setBounds(200, 200, 300, 300); setDefaultCloseOperation(EXIT_ON_CLOSE); JPanel topPanel = new …

Member Avatar for TheWhite
0
3K
Member Avatar for Jennifer84

How is it possible to delete all Rows from it´s contents in a dataGridView1 ? For example I have 10 Rows and 15 Columns with Information. Thanks...

Member Avatar for Jennifer84
0
115
Member Avatar for Jennifer84

How is it possible to programatically select Row 2 in a dataGridView. I know how to do it for a checkListBox like below but can´t find a member simular to this in the dataGridView. [code] checkListBox1->SelectedIndex = 2; [/code]

Member Avatar for Jennifer84
0
127
Member Avatar for ceyesuma

I am working with the tutorial at: [url]http://www.netbeans.org/kb/articles/mysql.html[/url] Is there someone able to assist me in learning how to add a search functionality to the above tutorial? right now I am deciding if I need to transform th code (below) to the @Action,actionPerformed(),and class extending (@Action) Task. [code] public void …

Member Avatar for ceyesuma
0
153
Member Avatar for brow51

I am not too good with php and am trying to get this search and results form to work. I am trying to get the user to be able to search by shape, color, price range, etc. I was only able to let them search for one color and one …

Member Avatar for brow51
0
88
Member Avatar for ryy705

Hello, I am collecting data from users on one form, altering the data, and then depending on which option the users (user will choose a submit button out of many) selects I will be passing the data to a different form where the data will be altered further. I plan …

Member Avatar for amigura
0
153
Member Avatar for sonia sardana

In Vb.net, I do it in the foll. way-- Dim value as string [U]Button_Click[/U] For each value in combobox1.items combobox2.items.add(value) Next But it is not working in ASP.net. Plz de reply back.

Member Avatar for majestic0110
0
109
Member Avatar for harsh2327

I want to read files and folder names from directories. I have used the following code. But the problem is that in the output the file name gets truncated.[I](See the output below)[/I] [code=C++] #include <dirent.h> #include <stdio.h> #include<conio.h> void main(void) { clrscr(); DIR *d; struct dirent *dir; d = opendir("."); …

Member Avatar for harsh2327
2
297
Member Avatar for daniel88

Hi guys, I am currently working on a practical for a first year computing subject. I am determined to work it out because I think it will really unlock pointers and dynamic memory allocation for me. Essentially, the task requires that I produce a program which, when prompted, will store …

Member Avatar for Radical Edward
0
137
Member Avatar for ceyesuma

I am working with the tutorial at: http://www.netbeans.org/kb/articles/mysql.html can any one help me figure out why I can not set a query with this method? entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory ("splashbookdbPU").createEntityManager(); org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance (splashtemplateda.SplashTemplateDAApp.class).getContext().getResourceMap (SplashTemplateDAView.class); query = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery (resourceMap.getString("query.query")); // NOI18N list …

0
86
Member Avatar for Black Magic

Hey, I was just wondering what was the simplest way to "real" world type, like open wordpad and you could watch it actually typing, thanks in advance. (Hopefully the answer is not writing to file etc)

Member Avatar for William Hemsworth
0
136
Member Avatar for tharris7

Hi, I'm quite new to C++ so all help is appreciated. I have a program that makes a string of at least three characters. I want to be able to compare the string to a list of words (i.e. dictionary) in a separate file, and then output the string if …

Member Avatar for Nick Evan
0
195
Member Avatar for Jennifer84

I wonder how it is possible to create a "Folder". I know how to create files like this. How could this be possible with ofstream. I am not sure if I find any members to ofstream that could be associated with "Folders" ? [code] ofstream OutFile1; OutFile1.open("C:\\File1.txt"); OutFile1; [/code]

Member Avatar for Jennifer84
0
105
Member Avatar for Clockowl

Hai guys, I have quite a large program here that I don't seem to understand. The program, Bow Vice Jet (an anagram for object view) is meant to display WaveFront .obj files. However, it quits when it loads a specific file while on my computer, while on another it does …

Member Avatar for jephthah
0
148
Member Avatar for tiney83

Hi, My assignment is to read in data from a file(first name, last name, and grade) and then output it. i have my code and i beleive the problem lies within the function readData, but i cant figure out what it is. I run the program and i get an …

Member Avatar for tiney83
0
140
Member Avatar for unpolloloco

I am quite the beginner at python (and programming altogether), but I'm attempting to learn (slowly but surely). Anyway, I am attempting to make a standalone python program that will interact with firefox (opening links, etc.). I've figured out how to open FF and open links. However, for the life …

Member Avatar for unpolloloco
0
107

The End.