199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Duker

The page: [url]http://tldp.org/HOWTO/Bash-Prompt-HOWTO/setps.html[/url] shows the best place to change the shell prompt (which is .bashrc). However, the previous page of that document has a lot of escape sequences offered by the Bash shell for insertion in the prompt (From the Bash 2.04 man page) I found that \w (the current …

Member Avatar for Salem
0
211
Member Avatar for sportsguy90

Hey all. I'm having trouble developing an order program. Basically I have to compare two files, and validate that one equals the other. I have figured out how to determine whether the order data is valid or not, but i'm unsure how to go about writing out which pieces of …

Member Avatar for WaltP
0
133
Member Avatar for tomkaczocha

Hey guys, I've got a struct array in a header file and at least two pieces of code that access that array. How do I schedule access for read and write events to that array. Where do I place my mutex_lock & unlock code? Thanks for your help, Tom header …

Member Avatar for tomkaczocha
0
107
Member Avatar for mommie

Trying to come up with a code that will give you your circumference value by taking the measurements of your waist and hips and subtracting the measurement of your neck but I'm getting several very weird errors. Most of them in regards to !=. Can someone please take a look …

Member Avatar for WaltP
0
95
Member Avatar for tomkaczocha

Hi everyone, I'm trying to get the current time with this function and it's working fine, but, I'm getting the following warning when I compile with gcc 4.4.3 on Linux: [B]warning: incompatible implicit declaration of built-in function ‘strftime’[/B] I've tried using literals for maxsize and format, but that didn't help. …

Member Avatar for tomkaczocha
0
573
Member Avatar for Phil++

Right this is stressing me out! I'm trying to connect to my gmail account through my website and I'm using this: [code] <?php $server = "imap.gmail.com"; $user = "user@gmail.com"; $pass = "pass"; $conn = @imap_open("\{$server:993/imap/ssl}INBOX", $user, $pass) or die("Connection to server failed: ". imap_last_error()); ?> [/code] (obviously with my own …

Member Avatar for cwarn23
0
109
Member Avatar for crodriguez08

Hey, I'm having trouble of making my program work. So far I managed it to read the file and display the numbers (just to verify that it is being read right), but I'm not sure if the storing is functioning well, as when I pick another option, well, it doesn't …

Member Avatar for crodriguez08
0
352
Member Avatar for kurakar

While i am installing joomla on my domain, showing the error Warning: in_array() [function.in-array]: Wrong datatype for second argument in D:\sites\frontpage1\parsuae\webroot\cominfo\installation\installer\models\model.php on line 453 What is this[code]Warning: in_array() [function.in-array]: Wrong datatype for second argument in D:\sites\frontpage1\parsuae\webroot\cominfo\installation\installer\models\model.php on line 453 Code Below, Please help me <?php /** * @version $Id: model.php …

Member Avatar for Encrypted
0
239
Member Avatar for tonymuilenburg

Hi, I'm trying to loop through multiple textboxes in a C++ form using visual studio.net 2008 to set the selection start for each. The code for a single textbox is easy: [CODE] textBox1->SelectionStart = 4; [/CODE] When I try to assign textBox1 to a Control variable, and assign selection start, …

Member Avatar for tonymuilenburg
0
177
Member Avatar for PDB1982

First off, I'm not looking for any code or code suggestions, I just want to pass this by some people before I have to submit the idea to my professor. I want to know if this sounds like a good beginner's project for .NET: title: Music Identification Tool Actions: Users …

Member Avatar for CSherman
0
96
Member Avatar for shubhamshah

Hey guys , im creating a messenger via VB.NET Using eBuddy, I need to have a status and in the status i need it to update every second. The status is in label3 and i tried to put this code on form load but it doesnt change constantly only once. …

Member Avatar for shubhamshah
0
136
Member Avatar for wyett

Alright, I'm trying to generate an ODD random number between 1 and 8. [CODE] Do While (i < 4) box(i) = randomObject.Next(1, 8) Do While (flag = 0) If (box(i) Mod 2 = 0) Then k = 0 box(i) = randomObject.Next(1, 8) If (box(i) = box(k + 1)) Then box(i) …

Member Avatar for wyett
0
126
Member Avatar for Atomika3000

i'm trying to make an app that lets the user add two items from a text box go into a 2d array and be able to repeat this as many times as they desire, each time adding it onto the end of the array. Then when the user presses a …

Member Avatar for Airshow
0
250
Member Avatar for stryker4526

Alright I'm having a heck of a time figuring out what's wrong with this code. It throws an error of [quote]Error 1 'System.Collections.Generic.Dictionary<Assignment7.Station,int>' does not contain a definition for 'ElementAt' and the best extension method overload 'System.Linq.Enumerable.ElementAt<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' has some invalid arguments7[/quote] However, when I was writing the code I …

Member Avatar for stryker4526
0
678
Member Avatar for jprogram

I have writen some code for a HugeInteger class, but my input funtions will not work. It is suppose to check the array for negative numbers or 2 digit numbers. Since I randomize the numbers between 0 and 9 and checked them by not using the input funtion I know …

Member Avatar for Ancient Dragon
0
94
Member Avatar for jpob

Hey, i am new to python. I am making a translator in python 2.6 using basic commands. The translator is english to german. I need to use a i need to use a text file like this... at an brown braun cat raze etc. so far i have created lists …

Member Avatar for jpob
0
263
Member Avatar for fugnut

My first attempt at 2-dimensional arrays is not working out so well. We are to simply initialize an array and print out the results. My problem is that the data contains text and numbers.....column header is car color, row header is car make. I am getting error for lines 19 …

Member Avatar for u8sand
0
182
Member Avatar for sadsack

Hello, I am new to this forum and would like to say hi to every one. My name is renny. Now I hope someone can tell me what I am doing wrong. I dave devC++ and when i compile my code then run it, a window comes up and goes …

Member Avatar for Ancient Dragon
0
215
Member Avatar for boomop

ok, So Im very new to this whole AJAX kind of thinking, and I might be trying to do something that's either harder than it needs to be, or theres an easier way that I havent fount yet... I'm trying to make a generic javascript function to call php functions.... …

Member Avatar for boomop
0
132
Member Avatar for jephthah

gcc supports an extended precison "long double" type typically 10 or 12 bytes but Windows XP always maps the "long double" to the standard double (typically 8 bytes) MinGW on windows XP thinks it has a 12-byte "long double" but in fact it only has the 8 byte support on …

Member Avatar for Ancient Dragon
0
215
Member Avatar for DawnDenise

I would like the output of this string to display each word in a column and ignore all punctuation. I have tried including an if statement that tells the string to start on a new line when a space is encountered but I haven't had any luck. Any hints are …

Member Avatar for DawnDenise
0
164
Member Avatar for seularts

Ok, in this code here I want to include a getimagesize in respect to the resolution. So for example if I have a 728x90 image I want it to go to abc folder that corresponds to this dimensions. Can anyone give me an idea on how to make this work!? …

Member Avatar for seularts
0
193
Member Avatar for makybe

Conversion Problem Formatting QBASIC to VB6 I am having real problems converting PRINT Using statements in Quickbasic to Printer.print statements in VB6. Is there a good book which outlines the method of formatting numbers and/or text in VB6 as I am on a merry goround trying to decipher M/S explanations …

Member Avatar for makybe
0
353
Member Avatar for dilbert_here00

Hi All, Is there any python module which provides the capability to connect & configure WiFi on Microsoft Windows? Thanks

Member Avatar for jcao219
0
91
Member Avatar for cloud09

I wasn't sure where to post this...sorry if its in the wrong topic I was wondering if anyone could determine for me what language is integrated with this html and possibly some resources - like tutorials or basic examples so I know what I'm looking at. [CODE]<ss:set name="border" value="border:1px solid …

Member Avatar for cloud09
0
117
Member Avatar for Gage84

Hi, I'm new to this forum I'm trying to allow my menu items to work by allowing a user to press it and then display a message such as 'door locks' etc and keep a progress that the door is locked or unlocked... pic below highlighted in red however with …

Member Avatar for Ezzaral
0
108
Member Avatar for deanus

Does anyone know how to set the character background color? I tried using system("color ") etc. but this sets the background color of the whole screen... What I need is the c++ equivalent of the 'textbackground()' function used in pascal.... thanks

Member Avatar for deanus
0
68
Member Avatar for RossThels

Hello, I have the current problem. As it stands im working on an ImageViewer project. I'm having trouble determining the mouse location for what I think are the following reasons. I currently have the frame, and within that frame is a JTabbedPane. Each tab is a new object, which creates …

Member Avatar for Ezzaral
0
121
Member Avatar for Xufyan

the program is showing the output perfectly but the value of [iCODE]a[/iCODE] is printing more than once. for example, if i enter range from 10 to 20 , the output should be 11,13,17,19 but the output is 11,13,13,13,17,17,17,17,17,17,17,19,19,19,19,19,19,19,19,19 how can i fix this ? [CODE]int main(void) { int a,b,c,d,f; clrscr …

Member Avatar for jephthah
0
148
Member Avatar for jeffcruz

I have an assignment a C++ assignment and here is my code so far; [CODE] #include <iostream.h> #include <stdlib.h> #include <cstring> #include <cctype> class Student { private: char Name[80]; long SSN ; public: Student (char, long); void setSSN (int SSN); void setName (int Name); int getSSN (long); int getName (char); …

Member Avatar for jeffcruz
0
149
Member Avatar for aodpreacher

I am trying to make a program that finds the max and min of more than 2 inputs and i am trying to use the Math.Min and Math.Max method but i cant seem to get them too work since they only accept 2 parameters. this is what i tried to …

Member Avatar for DeeZi
0
10K
Member Avatar for lewashby

In the code below, I'M having trouble with one line of code [COLOR="Red"]MenuMaker menu = new MenuMaker() { Randomizer = new Random() };[/COLOR] The program is a simple windows Form with two main files, Form1.cs & MenuMaker.cs, the second one is a class. What I'M trying to understand is why …

Member Avatar for apegram
0
185
Member Avatar for manutd4life

here's my question: write a program that asks the user to type the value of N and writes this picture : N=1 * N=2 ** * N=3 *** ** * any help? tips how can i start?? thanks

Member Avatar for deanus
0
89
Member Avatar for zoner7

So I'm currently using Lazy Foo's tutorials. Here's the link: [url]http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet05e/index.php[/url] I followed all the instructions, but I'm having a couple issues. So when I choose an empty project, like the tutorials recommends, as opposed to one with a precompiled header, the C/C++ tab does not appear, and I am …

Member Avatar for thriek
0
270
Member Avatar for pepperleaf

I use this method to check the values from the scanner. My do-while loop prints an error message and then resets to the beginning of the scanner after an invalid value is detected. But it also resets when I've used good values, without the error message. I've been googling up …

Member Avatar for pepperleaf
0
152
Member Avatar for thriek

hey i'm really not sure how to solve this, im making a simple "press enter to continue" function called wait(), defined it in a header file with extern keyword, and then in the main file prototyped it and from then on used it as wait(); But it still states that …

Member Avatar for thriek
0
208
Member Avatar for thriek

Hey everyone, needing a little hand... i'm using the SDL on windows and all the right libraries are installed correctly, I know this because all my other functions that need these libraries worked and still do, but my SDL_Surface* pFontSurface; variable my print text method creates a compile error. ~The …

Member Avatar for thriek
0
254
Member Avatar for Encrypted

This should be a rather simple question to answer. I want to include a field of data using $_POST that is not inputted by the user in an <input name=" "> text box. Is there anyway to manually add a field to $_POST without using input? Example: [CODE]<form action="<? echo …

Member Avatar for Encrypted
0
256
Member Avatar for shrutinr

Hi ... I m having question on vc++ floating value slider in CLR windows from... I want to have a slider which should have 0 to 1000 value and the values should be float values.. can anyone please help me how to resolve this problem.. here i included the code …

Member Avatar for shrutinr
0
104
Member Avatar for ramindya

THIS IS A ASP.NET Web APPLICATION NOT WINDOWS FORMS Problem/ Question: To search a child node anywhere in the treeview. I need to type a Node name in the textbox and search the node name in the Treeview and highlight the node name on finding. I don’t how to do …

Member Avatar for nil
0
483
Member Avatar for fenixZ

Hi, I have a class and i have unset() within a function in it which throws Parse error unexpected T_UNSET. Some code : [code] class foo { function abc() { unset($this->err['main']['sub']['TOBEDELETED']); } } [/code] Where I want to unset only key TOBEDELETED . What may cause this?

Member Avatar for fenixZ
0
128
Member Avatar for nats01282

Hello all im trying to work out whats wrong with this code, [CODE]#include <iostream> using namespace std; int player1score = 0; // global variable int add10 (int &score) // function that adds 10 to player1score variable by reference { return(score + 10); } int main () { cout << "Please …

Member Avatar for nats01282
0
94
Member Avatar for moonis.ahmed

Hi, how can I call another JSP without transferring control to that. The response.sendRedirect is transferring control to the next jsp page. I still have some code after the response line which needs to be executed but it doesnt gets executed. Any suggestions? Thanks

Member Avatar for filestofiles
0
99
Member Avatar for evilsithgirl

hello. I am writing a program that will solve a type of min. spanning tree problem. i have 2 different algorithms that I've gotten working in two separate .cpp files i've named kruskels.cpp and prims.cpp. my question is this: each file takes the following command line to run it . …

Member Avatar for Salem
0
96
Member Avatar for MiamiPPCPro

I apologize if I didn't post this in the right forum, but I did a search on this site and couldn't find anything on this topic... So, here is the deal...I am not at all a programmer, and have no knowledge of it whatsoever...As such, I am working on a …

Member Avatar for music_est_vie
0
178
Member Avatar for pirateninja1111

I'm wondering how to start a Boolean array at 1 instead of 0. so far the only thing i can think of is: [CODE] Boolean [] x = new Boolean[12]+ 1; or Boolean [] x= new Boolean[12 + 1]; [/CODE] and the top one does not compile while the bottom …

Member Avatar for masijade
0
137
Member Avatar for dolorous86

hello guys, i have several problem with exception such as IOException , NullPointerException,and ArrayIndexOutOfBoundsException. i do BLUETOOTH PUBLIC AND PRIVATE CHATROOM. so, while im running the emulator in netbeans, the problem with exception appear in output pane: i already choose PUBLIC chat and do chatting without any problem, let say …

Member Avatar for peter_budo
0
131
Member Avatar for wafie

[CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> #include <stdio.h> using namespace std; int main () { // Declared Variables. int choice; ifstream inputFile; inputFile.open("C:\\temp\\RowPrices.txt"); if (!inputFile) { cout << "Error opening file.\n"; } inputFile.close(); // These are my details. cout << "******************************************************* \n" << endl; cout << "Name: Bhupendra …

Member Avatar for Salem
0
186
Member Avatar for albertkao

My controller.java encounter an input string: "undefined". Please help. [CODE]public ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { int rowsPerPage = 20; String rowsPerPageStr = request.getParameter("rowsPerPage"); logger.info("rowsPerPageStr " + rowsPerPageStr); if (rowsPerPageStr != null) { rowsPerPage = Integer.parseInt(rowsPerPageStr); }[/CODE] My jsp page use javascript as follows: [CODE]window.location = "hwdisplay?rowsPerPage=" + …

Member Avatar for javaAddict
0
425
Member Avatar for Toysh

I am a beginner trying to write a program for my intro C class. I am trying to write a program that calculates the combination of numbers given a specific output by the user. The number has to be between 1-10 to be valid. I am not allowed to use …

Member Avatar for peter_budo
0
498

The End.