64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for fizzle

As I posted before I'm totally new to C. In bash i can use [CODE]IP = "`wget -O - -q icanhazip.com`" echo $IP[/CODE]= and it returns my ip. However I'm trying hard to get this via curl although I don't quite understand how it works yet. I determined it is …

Member Avatar for mitrmkar
0
184
Member Avatar for KadajXII

Hi all, I wish to construct an text editor with linear link list. Now I am writing a function to add a sentence into it and display all. My problem is I can only input a string as it will not take whitespace as input. And I don't understand what …

Member Avatar for KadajXII
0
104
Member Avatar for lewashby

file = hfmix2.py error is on line 3 [CODE]# imports from Tkinter import * from sound_panel2 import * import pygame.mixer # create gui app = Tk() app.title("Head First Mix") # create mixder mixer = pygame.mixer mixer.init() # call functions panel1 = SoundPanel(app, mixer, "50459_M_RED_Nephlimizer.wav") panel1.pack() panel1 = SoundPanel(app, mixer, "49119_M_RED_HardBouncer.wav") …

Member Avatar for vegaseat
0
190
Member Avatar for Zinderin

So I have this program that involves the user using FolderBrowserDialog. And it works fine ... but the rub is, when the user comes back around and uses the dialog again, the directory is highlighted, but not expanded, and he's asking that it be expanded. LOL! For the life of …

Member Avatar for ghimangi
0
6K
Member Avatar for ceyesuma
Member Avatar for mansurimn@gmail
0
70
Member Avatar for herrel17

Our teacher have asked us to make a program in C language to read the difference between two cities in km, m, cm, inches and feets... I have tried every hell to make this work... I am not able to combine it all together... please help!!! I am so confused. …

Member Avatar for vijay143
0
218
Member Avatar for ssmg

Hello everyone, I don't know if I'm confused with itoa,excuse me for this if so, but what I'm trying to do is: I have an array of characters, say [CODE]char example[7][/CODE] I assigned the first 4 characters by [CODE]strcpy(example,"Fill");[/CODE] Then I'm trying to fill the next char with an integer …

Member Avatar for ssmg
0
163
Member Avatar for Naveed_786

How can i generarte crstal report bwtween two dates by passing two perameters in vb.net Thnaks in advance.

Member Avatar for finito
0
93
Member Avatar for ultimatebuster

This is the folder structure: [CODE]root common.py module1 somescript.py module2 someotherscript.py[/CODE] i need to import common.py from somescript.py and someotherscript.py I also need to import somescript.py from someotherscript.py

Member Avatar for lrh9
0
159
Member Avatar for walter307

how to put a command using only 2 letters the Y and N? and then prints out a text saying please input y and n only ex: [CODE]System.out.print("DO YOU WANT TO TRY AGAIN [Y/N]? ");[/CODE]

Member Avatar for new_programmer
0
142
Member Avatar for potato4610

C Program - Write main and two other functions named ComputeMaximum and ComputeMinimum that return the larger and smaller, respectively, of two type double arguments: 1. Each function must be in a separate file. 2. The files containing ComputeMaximum and ComputeMinimum may not contain #defines, #includes, if statements, switch statements, …

Member Avatar for kings_mitra
0
191
Member Avatar for lloydsbackyard

i have this program...the color program..but i have a problem on converting a string to character. anybody can help me..thanks.. below is the java code import javax.swing.JOptionPane; public class ab{ public static void main(String[]args){ String a; a=JOptionPane.showInputDialog("Enter color: "); // I need to convert the variable a from string to …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for comSysStudent

Hi all, I'm working through the java tutorials on sun.com and trying to create a card class and a deck class which populates with card objects. Having trouble getting things running and I'm not sure where the problem is, pasted below are the card class and deck class, I'd appreciate …

Member Avatar for comSysStudent
0
530
Member Avatar for adams161

I am writing a little android chess application, and found some chess pieces under LGPL. To use them people need to be able to modify the pieces or relink to them or a modified copy. Android lets you have a web page link and i thought i'd state the copyright …

Member Avatar for adams161
0
96
Member Avatar for SelArom

hello, I'm in the process of upgrading a site's pages from htm static content to a dynamix aspx page. the problem is that I want to redirect users visiting the old pages to the new pages and I want to use the proper 301 "moved permanently" redirect to be search …

Member Avatar for GamersX
0
444
Member Avatar for mark2326l

Im listing files in a directory on a web page with links to the files. I'm trying to change the link color to something other than my typical. Below is the php link... [CODE]<?php echo("<a href= '$dirname/$file'>$file </a> ");echo "<br />"; ?>[/CODE] I want to change the class. Below is …

Member Avatar for mark2326l
0
85
Member Avatar for Ubermatik

Hello, first off, I'm new to the forum and, more importantly, writing C++ and working with the iPhone SDK. I was wondering if anybody could help me - I'm really eager to keep learning, and everything has been okay until now. I'm getting an error that I can't resolve, no …

Member Avatar for Ubermatik
0
101
Member Avatar for keeda

Hi, I have written a script that sends daily emails. I want a certain part of the mail text to be in bold. Please advice me on how to achieve this? Thanks.

Member Avatar for keeda
0
2K
Member Avatar for nizuya

My goal is to preload these images for an image swap on the page. It runs on body load but I'm not quite sure why it doesn't work... [CODE] function preload() { imageObj = new Image(); images = new Array(); images[0] = "images/globe2.jpg"; images[1] = "images/stickme2.jpg"; images[2] = "images/monitor2.jpg"; images[3] …

Member Avatar for fxm
0
230
Member Avatar for c++learner

Hello, I have a 2D array of 10x10 and I want to search the surrounding cells of only a 3x3 portion of it at a time. How can I go about totaling up the values of the following nested loop? There should be a 1 or a 0 and if …

Member Avatar for c++learner
0
142
Member Avatar for pietpiraat

Hi everyone, i have a piece of javascript that calculates 2 input fields (price * qty) whenever i type in the input field (qty) that uses this : [CODE]onkeyup="update(this);"[/CODE] Now what i want is to execute this handling when the page loads, because sometimes there are already values (php & …

Member Avatar for hielo
0
226
Member Avatar for Schoorsteen

Hey there, I've been attempting some Win32 programming for a while now, but I just can't seem to find a function where I can get the HWND by the resource ID. Just an example: [CODE] CreateWindowEx(NULL, L"BUTTON", text, WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON, x, y, width, height, parent, (HMENU)IDC_BUTTON_OK, GetModuleHandle(NULL), NULL); HWND btn = …

Member Avatar for Schoorsteen
0
4K
Member Avatar for SeanC

I'm currently learning java, and im having a problem understanding what's going on when we use a constructor when inheriting from a class that already has a constructor. The best would be to just throw in my example. I have 2 classes, "Person" and "Employee". "Employee" is inheriting from "Person", …

Member Avatar for jon.kiparsky
0
139
Member Avatar for garyengle

I can't seem to pass a struct address to a function. My program "stops working" when it gets to the scanf statement of the getReady function. [CODE]/**************************************************** Author: ---------------------------------------------------------------------- Purpose: This code will explore passing a data structure address to a function. ****************************************************/ #include <stdio> #include <stdlib> //prototypes: struct things{ …

Member Avatar for garyengle
0
144
Member Avatar for jugosoft

I have some text with Cyrillic and Latin (š, đ, č, ć, ž). How can I store that data in MS SQL 2008. I tried to store word 'Palačinka' but instead of 'č' i get 'c'.

Member Avatar for jugosoft
0
70
Member Avatar for madkat3

I'm using an image as my submit button. I want it to check to ensure all boxes have a value before submitting (I will make the verification more stringent later), and if there is none, to cancel the form submission. I created a readonly input box that changes from white …

Member Avatar for madkat3
0
11K
Member Avatar for kametolearn

I am trying to find a way to search a filename.rc file for a particular string. For now lets just say I am searching for the string PARTYHOST. After finding PARTYHOST in the file I would like to replace anything after it(so 192.168.0.1) with a new string which I have …

Member Avatar for Beat_Slayer
0
360
Member Avatar for dogwood705

Hi, I am new to C++ and am getting stuck with just reading in data from a text file into an array. I have looked at lots of examples online, but can't find one that matches what I am trying to do. The data consists of two variables, date and …

Member Avatar for dogwood705
0
364
Member Avatar for PixelExchange

Hello everyone. I have recently finished a Winsock Server, and a Winsock Client. The problem is, I do not know what type of a domain/and or server I would have to buy to be able to connect my Winsock Server, to it. I already know that Winsock uses the inet_addr() …

Member Avatar for Aranarth
0
131
Member Avatar for judithSampathwa

Hi there, Am calling a form from a button in another form. And then I am calling the form as frmSubCDetails subDetails = new frmSubCDetails(); subDetails.Show(); in a button which is in the View Submit form.What I want is how can I make the items in the from frmSubCDetails disable …

Member Avatar for judithSampathwa
0
201
Member Avatar for walter307

I just got my java project (beginner). . and its like this Output: What is my grade in Java? ([I]part where you input a grade[/I]) My grade in Math? ([I]input math grade[/I]) ([I]the next screen shows the grades i input, gets the average, then the shout out of my grade[/I]) …

Member Avatar for walter307
0
176
Member Avatar for nizuya

I set the min-height of an object on my page based on the size of the window. It works perfectly in all browsers but IE (of course). How can I fix it? [CODE] function resize() { document.getElementById('container').style.minHeight = window.innerHeight + "px"; } [/CODE] The function runs on body load and …

Member Avatar for nizuya
0
154
Member Avatar for hasrule

Hi, I was working on thread pool, which I used std::vector to implement the pool. [CODE] private: std::vector <handlerthread*> _pool; handlerthread* temp; void threadpool::addWorker() { handlerthread *temp; temp = new handlerthread(this); int x=_pool.size(); temp->start(&x); _pool.push_back(temp); } handlerthread* threadpool::getIdleWorker(){ int idx=-1; for (int i=0;i<_pool.size();i++){ temp=(handlerthread*)_pool[i]; //SIGSEGV HERE if(temp->isIdle()){ idx=i; break; } …

Member Avatar for mike_2000_17
0
693
Member Avatar for jjiceman

Hi, I'm developing an application, with a main GUI and another GUI that gathers some information. Upon clicking a button in the main GUI, it initializes a second GUI object that has fields for input and then an "OK" button. I need to be able to return the information in …

Member Avatar for JamesCherrill
0
225
Member Avatar for Jesi523

Alright after working on a login page and completing it, the requirements for my project have changed. I am no longer using FormsAuthentication to see if someone is logged in. Instead I am putting a passcode as the query. If the passcode exists then I let them continue to the …

Member Avatar for Jesi523
0
190
Member Avatar for selflearning

I am self learning c#. and want to display predefined image/text on screen. Please this is not within any frame or window this messages dislays some where on desktop / screen. Like screen saver we see only images and text flashing Similar way I want to display it on screen. …

Member Avatar for selflearning
0
108
Member Avatar for rje7

I want to arrange the number 1 - 12 like shown below. like the numbers on the clock. [code] 12 11 1 10 2 9 3 8 4 7 5 6 [/code] arrived with the following code: [code=c] #include<stdio.h> int main(){ int e = 11; int count = 10; int …

Member Avatar for Adak
0
104
Member Avatar for AngelicOne

[CODE] SqlCommand cmd = new SqlCommand("SELECT MAX(Register_ID) AS Register_ID FROM EnrollTbl", con); SqlDataReader reader; con.Open(); reader = cmd.ExecuteReader(); if (reader.HasRows) { while (reader.Read()) { RegisterID.Text = (Convert.ToInt32(reader["Register_ID"]) + 1).ToString(); } } else { RegisterID.Text = "10000"; } reader.Close();[/CODE] It says [B]Object cannot be cast from DBNull to other types.[/B] I …

Member Avatar for Geekitygeek
0
983
Member Avatar for lionaneesh

[CODE]/* A simple server in the internet domain using TCP The port number is passed as an argument */ #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include<arpa/inet.h> #include<netdb.h> #include<string.h> int main(int argc, char *argv[]) { struct addrinfo hints,*serv,*p; int sockfd,newfd,status; struct sockaddr_storage their_addr; socklen_t addr_size; char *msg; int len; …

Member Avatar for malathi renin
-1
140
Member Avatar for PixelExchange

Hello all. I've completed both a Winsock server, AND a Winsock client using C++. The problem comes in when I attempt to bind a socket to a remote IP address. I get the message "Unable to bind to "IP address" port 80. I know for a fact that both the …

Member Avatar for Ketsuekiame
0
709
Member Avatar for Varinor

I have an "input" page that allows someone to check a box which activates a datetime function, the page then returns to a display. My problem is that the input page can be relaoded and the box reticked, overwriting the displayed datetime. As the page reloads with the box showing …

Member Avatar for madkat3
0
216
Member Avatar for Tenaciousmug

Alright, the register/login system is fully working with sql injection, BUUUT now I want to store their IP Address. WHOLE new function that I've never dealt with before. So I need some help. Am I doing something wrong? I have the IPadd in the database as INT(10) and then I …

Member Avatar for manzarr
0
584
Member Avatar for raul8

In the code below, the updates are performing successfully, but the page is not redirecting Please Check: [CODE] out.println("<html>"); out.println("<head>"); out.println("<script>"); out.println("function redirect()"); out.println("{"); out.println("window.location='EmpForm.jsp'"); out.println("}"); out.println("</script>"); out.println("</head>"); Class.forName("org.gjt.mm.mysql.Driver"); con = DriverManager.getConnection("jdbc:mysql://192.168.101.98:5501/TestNJ", "testnj","testnj"); st=con.createStatement(); query="UPDATE emp1 SET E_Name='"+EName+"',E_Address='"+Add+"',E_Dept='"+Dept+"' WHERE E_ID='"+EID+"'"; st.executeUpdate(query); out.println("<body onload='redirect()'>"); out.println("</body></html>");[/CODE]

0
72
Member Avatar for geoNeo_

hey guys! I'm new at ASP, and I hope that could please ask for some advice. Basically I got a little test website that i am experimenting with, what I would like to to if the main page of the web site loads that in one of the tables that …

Member Avatar for geoNeo_
0
92
Member Avatar for solahere

I want to assign a whole chunk of html content to a php variable. I was wondering if anybody knows of a way other than catenating manually. It's a huge chunk of html full with escape characters so don't want to do '' or "" thing. Any help is appreciated.

Member Avatar for solahere
0
268
Member Avatar for andy_aphale

Hello i am developing a encryption/decryption Application in which i am first converting string into its ascii values then reversing this ascii values and then generating the hex values of this reversed ascii values... I have completed the encryption part as i am able to convert the string into hex …

Member Avatar for vb5prgrmr
0
221
Member Avatar for Guest51

I have a DVD inventory record program that creates a DAT file if none exists and then stores the user input. As long as the program is running the user may then advance one record at a time (forward or back) through the files, skip at anytime to the first …

Member Avatar for Guest51
0
4K
Member Avatar for Danny_501

Hi all, Is there any way to get the location of the CLASSPATH environment variable within a pragram. I need to get the location of rt.jar so that I can dynamically load the classes within that jar file using URLClassLoader. thanks in advance.

Member Avatar for Danny_501
0
101
Member Avatar for atechnikality

I'm a student and taking an intro to C class and would appreciate some help! I've got a file with 10 words that I've loaded into a 2D array. I've written code that will generate a random number between 0 and 9 to select a string from the array. I'm …

Member Avatar for atechnikality
0
1K
Member Avatar for jonniebl

I am trying to write code to send a mail message with an attached file. my code works fine if I don't try to attach a file but crashes when I do. I have not been able to figure this out. My code looks like this. [ Dim mail As …

Member Avatar for jonniebl
0
180

The End.