199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for krazykat1010

program I feed in interactively as below [url]http://pastebin.com/qGHMiHjp[/url] child.before contains the expected data (output of expect command) I run the code as python progname.py: (code shown below example run on pastebin) [url]http://pastebin.com/AWY0vM88[/url] import pexpect import sys child = pexpect.spawn('gdb',logfile=sys.stdout) try: child.expect(pexpect.EOF,timeout=0) except Exception, e: print child.before import code;code.interact(local=locals()) and child.before …

Member Avatar for krazykat1010
0
252
Member Avatar for sagive

Hey guys.. going crazy over this :'( This is my form [CODE] echo "<form action='addwebsitekeywordsscript.php' method='post'>"; echo "<input type='hidden' value='" . $currentwebsite . "' name='id' /><br />"; echo "<div class='kywrdformcontnr'><div class='kywrdform'>מילת מפתח:</div> <input type='text' name='keyword[]' class='kywrd1' /></div>"; echo "<div class='kywrdformcontnr'><div class='kywrdform'>חיפושים:</div> <input type='text' name='keywordSearch[]' class='kywrdsrc1' /></div>"; echo "<div class='kywrdformcontnr'><div class='kywrdform'>שפה:</div> …

Member Avatar for smantscheff
0
266
Member Avatar for apanimesh061

[CODE] [I]Server.aspx[/I] <%@ Page Language="C#" CodeBehind="Server.aspx.cs" AutoEventWireup="false" Inherits="AMChat.Server" %> <p> &nbsp;</p> [/CODE] [CODE] [I]Server.aspx.cs(excerpt)[/I] namespace AMChat { /// <summary> /// Summary description for Server. /// </summary> public class [B][U]Server[/U][/B] : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { . . . [/CODE] When I build this application, I get …

Member Avatar for apanimesh061
0
90
Member Avatar for apanimesh061

[CODE] [I]Server.aspx[/I] <%@ Page Language="C#" CodeBehind="Server.aspx.cs" AutoEventWireup="false" Inherits="AMChat.Server" %> <p> &nbsp;</p> [/CODE] [CODE] [I]Server.aspx.cs(excerpt)[/I] namespace AMChat { /// <summary> /// Summary description for Server. /// </summary> public class Server : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { . . . [/CODE] When I build this application, I get …

Member Avatar for apanimesh061
0
116
Member Avatar for nocloud

I have a number of functions I would like to reuse in multiple pieces of code. I have put these into a single header file that looks something like the following: [CODE] #ifndef FUNCTIONS_H #define FUNCTIONS_H //function prototypes extern float sum(vector<float> &v); //calculate sum of a vector float sum(vector<float> &v) …

Member Avatar for Schol-R-LEA
0
419
Member Avatar for Nitin Daphale

In my project there is an editable grid having three fields 'Quantity-Price-Amount', where a user can change 'Quantity/Price' depending on that 'Amount' field value should change at clientside, so that user can see Final amount for that row before saving. And there is a TextBox which showing Total Amount of …

0
110
Member Avatar for veledrom

Hi, I have a problem related to BACK button in browsers. In [U]very first page[/U] my basket shows "0 item". I go to [U]next page[/U] to add one item to basket and it shows "1 item" in [U]current page[/U]. If I hit BACK button in browser to go back to …

Member Avatar for veledrom
0
2K
Member Avatar for SakuraPink

Hi all, I am working on a data file that looks like the following: [CODE]value1: 0.7586 +/- 0.00473 value2: 0.664901 +/- 0.0357 value3: 0.662784 +/- 0.00447 ------------------------------------------------------------------------------------------------------------------------- value1: 0.765217 +/- 0.00425 value2: 0.694663 +/- 0.0277 value3: 0.66438 +/- 0.00393 ------------------------------------------------------------------------------------------------------------------------- value1: 0.758317 +/- 0.00332 value2: 0.648057 +/- 0.0201 value3: 0.660746 …

Member Avatar for SakuraPink
0
160
Member Avatar for Bob Jacobs

I wish to call a form with the form name contained in a variable using a declaration such as [CODE]public myform as form[/CODE] will work if the formname is used. but myform will not accept a variable containing the form name

Member Avatar for Bob Jacobs
0
97
Member Avatar for jacob21

Hi,I want to retain value of checkbox,when some validation error occours. In this i am calling a function checkCheckBoxes() & want to call this function when validation error occours. [CODE]<input type="checkbox" name="chk1" onclick='checkCheckBoxes() <?php if (isset($_POST['chk1'])) echo ' checked="checked"'; ?>'/>check for Birth year only [/CODE] function [CODE]function checkCheckBoxes() { if(document.myform.chk1.checked) …

Member Avatar for urtrivedi
0
88
Member Avatar for vishalrane

I am having one web application... On which i have one combobox whose autopostback propert is set to true.... its showing d same result that i want... the only problem is that the page gets refreshed automatically when i select a data from combobox.... How to overcome this problem pls …

Member Avatar for vishalrane
0
128
Member Avatar for RazorRamon

I'm having trouble with this php mail code. I'm not sure if I altered it on accident with I copied and pasted it from other sites i've worked on. It send the email however its blank, it only shows: Name: Phone: Email: Description: HTML code [CODE] <DIV style=" background-image: url(background.png);position: …

Member Avatar for sharathg.satya
0
236
Member Avatar for lynnajoe

Hi, I need a method that takes an array of Printer type and returns this array sorted by product name. What I have sorts the string names but the thing is it outputs only one product canon. I have been looking at the tutorials and have done much research but …

Member Avatar for stultuske
0
153
Member Avatar for himmat.m4

I am getting data by view but there is too large data. so I want to select data in particular slab (i.e. 25 rec) but in my resulting data there is no any unique record in column for fetching. so please give me solution. selection records like rows 1 to …

Member Avatar for urtrivedi
0
151
Member Avatar for chris007

hello guys. i got a method that someone showed here BUT it doesnt work 100%... i mean..i put this folder C:\Users\chris\Documents .. if i search for *.docx, it finds only the docx files that are in SUBFOLDERS inside the Documents.. it does NOT find docx files that are in C:\Users\chris\Documents …

Member Avatar for chris007
0
1K
Member Avatar for manu555

[CODE]<form action="" method="get" name="form"> </form><select name="list1"> <option value="MUM">MUM</option> <option value="DEL">DEL</option> <option value="BAN">KOL</option> <option value="HYD">HYD</option> </select> <select name="list2"> <option value="MUM">MUM</option> <option value="DEL">DEL</option> <option value="BAN">KOL</option> <option value="HYD">HYD</option> </select> <input name="code" type="text" />[/CODE] In above code there two list boxes . I want to show ,if I select MUM from 1st list box …

Member Avatar for diafol
0
154
Member Avatar for solvesak

Please look in the attachment. The first chart shows the score vs contestant images(score wise ordered) graph generated simply using php. BUT i need the second chart (bottom 1) where chart does not proceed down but only those images of contestants are brought to next line which are relatively very …

Member Avatar for diafol
0
269
Member Avatar for larrymtl

Hello, somehow my program passes directly to else statement after [QUOTE]System.out.println("Would you like to draw another triangle? (Yes/No): ");[/QUOTE] something is wrong with if statement at the end...please help [CODE] import java.util.*; public class Triangle { public static void main (String [] args) { System.out.println("Welcome to the Triangle Program"); int …

Member Avatar for larrymtl
0
213
Member Avatar for henrimontreal

Hi guys, Actually I have a problem to use two classes at the same time. For example when I increment the number of winnings at the function of the 2nd class and want to show the result at one of the functions at the first class. the variable I used …

Member Avatar for VernonDozier
0
832
Member Avatar for RisTar

Hi Guys, I have a question about PHP and Ajax/Javascript SetInterval. Im working on an application that users will be able to subscribe to and I want an email sent to them after !exactly 24 hrs. The only way that I could think of doing something like this is by …

Member Avatar for vibhaJ
0
526
Member Avatar for anjoz

how do you compare comandline arguments in bash example i have 5 or more arguments and 2 of the arguments are the same how can do it any suggestions? my problem is that i need to compare 2 or more arguments if any of the arguments are the same sleep …

Member Avatar for thekashyap
0
137
Member Avatar for smoothe19

Okay I am trying to get my program to read the users input as username and password and match it with my database if it is valid then i want it to move them on to the next page. Problem is i dont know how to validate and once validated …

Member Avatar for peter_budo
0
254
Member Avatar for moone009

I'm working on an app to parse Excel files. I need to remove invalid characters in column 2 and then in column 3 I need to trim and upper that column. Any ideas? [CODE]Dim sql As String Dim xlApp As Excel.Application Dim xlWorkBook As Excel.Workbook Dim xlWorkSheet As Excel.Worksheet ' …

Member Avatar for sandeepparekh9
0
388
Member Avatar for jonsan32

I've searched a while, can't find this... I'm looking for a way to present two choices for values, then to have a result immediately appear based on those choice. IE... The first choice is an option between 1, 2, 3, 4, or 5 players... and the second choice is an …

Member Avatar for jonsan32
0
228
Member Avatar for karthik_ppts

Hi Frendz, In my vehicle tracking system, I have got the latitude and longitude points of the vehicle for every 30 secs while the vehicle moving. Now i need to get the report of the vehicles when it crosses from one state to another state and one district to another …

Member Avatar for karthik_ppts
0
179
Member Avatar for jacob21

Hi,I want to retain the selected value of dropdown list during validation check. Need suggestion. [CODE]<select name="year_nam" id="year_nam"> <?php for($yr_nam=1950; $yr_nam<=2020; $yr_nam++) echo "<option value=\"$yr_nam\">$yr_nam</option>"; ?> </select> [/CODE]

Member Avatar for karthik_ppts
0
2K
Member Avatar for avocado_juice

Hello, I wanna ask about scan card. Is there any way to disallow keyboard input and only allow scan card input to key in a field? FYI, I am using vbscript, html and javascript for this program. So, may be doing something with the javascript? How about limit the time …

Member Avatar for avocado_juice
0
3K
Member Avatar for klikeras

Hello, I need help with an assignment, been trying to figure it out for couple of hours with no luck, hope someone here can help me, i would be extremely grateful. I need to create a 2D array 5x4, each row represent a student and each column respresents a subject. …

Member Avatar for prvnkmr194
0
149
Member Avatar for clbembry
Member Avatar for clbembry
0
86
Member Avatar for winecoding

For the following segment of java code, the method of “run” occurs four times. I am quite confusing about the relationships of these four occurrences of “run”. Can you explain this to me? The original code is pretty long, I just keep the part that is related to my question. …

Member Avatar for NormR1
0
193
Member Avatar for paperstars

Hi, I'm new to C++, I'm trying to write a program to compute the sine series for taylor expansion. I've written two codes, but both do not work after a certain point. (The sine series is: sin x = x - (x^3/3!) + (x^5/5)...etc.) With the code below, when x=1.5, …

Member Avatar for paperstars
0
2K
Member Avatar for billgateswannab

being new to assembly... My head is really spinning trying to understand all the concepts. It is quit different from the php i've been programming the last 8 years. So here is my question...could someone please help me to understand the purpose and uses of a STACK. I know it …

Member Avatar for moegi
0
113
Member Avatar for Tyster

Hello Everyone, I have what I hope will be a simple VB question: I am building an app with multiple forms. It has a MainForm, which is the main interface, and several sub-forms that are started using buttons on the MainForm. The MainForm Load method has some code that runs …

Member Avatar for Tyster
0
728
Member Avatar for Sorcher

Alright so whatever i do i cant get this to work. Now...im not a wizzard or anything but why does it have to be so damn hard to find out if its more than 2 minutes or more in difference by the time in database to now. The "timed" in …

Member Avatar for Sorcher
0
185
Member Avatar for kristo5747

After running the command [CODE] find . -name "R*VER" -mtime +1 -exec sh -c 'grep -H ^err "{}" || echo "{}:No error"' \;[/CODE] my files look like this [CODE] RRR1~COS~COSMETICS~40048~jgmdtv113~1~P~R22-200~029053662549~20110607~102151.VER No error RRR1~COS~COSMETICS~ETT03~jgm14652.~3~F~R16-500~000907009757~20110607~085109.VER err 3922 [/CODE] Using the tilde (~) symbol as delimiter in the file name, can I extract …

Member Avatar for kristo5747
0
222
Member Avatar for goody11

Hello, I'm trying to write a vector that has a list of installed program names to a text file. When I go to do this, the program shows the names of the installed applications, but in the text file it just repeats the number 52428. Any ideas? Here's the code: …

Member Avatar for goody11
0
282
Member Avatar for UltimateKnight

Hey all. When you have the whole program running, and is executed it's running at the black console window. How are the programs made so that they run with GUI interface and stuff like that? Are they exported differently and where are the images and things put together ? Thanks.

Member Avatar for ichigo_cool
0
326
Member Avatar for mavox

So my game is in the early stages of development, its a mix of castlevania SOTN and diablo, basically overhead, low polys, and coop. The overall visual fidelity is not my biggest concern, gameplay is. Now what engine would render me the smoothest development and cost efficent from what I …

Member Avatar for mavox
0
215
Member Avatar for stkarnivor

What does it mean for a hash function to be 32 and 64 bit? [URL="http://www.isthe.com/chongo/tech/comp/fnv/index.html"]http://www.isthe.com/chongo/tech/comp/fnv/index.html[/URL]

Member Avatar for stkarnivor
0
163
Member Avatar for public-image

Hello Guys! :) I am just wondering how I would be able to echo a random [B]hour[/B] timestamp. Any help would be appreciated! Yours, Public-Image

Member Avatar for edwinhermann
0
8K
Member Avatar for PeteA

I'm trying to find out the best methods for Deserializing XML. The main problem I've come across is if I have the following example. [CODE] DateTime _SomeTime; [XmlElement("some-time")] public DateTime CancelledAt { get { return _SomeTime; } set { _SomeTime = value; } }[/CODE] Usually this is fine and serializes …

Member Avatar for zachattack05
0
312
Member Avatar for horserider

[code] ListBox2.Items.Clear() Dim myCoolFolder As String = "F:\" Try For Each myCoolFile As String In My.Computer.FileSystem.GetDirectories _ (myCoolFolder, FileIO.SearchOption.SearchAllSubDirectories, "*.*") ListBox2.Items.Add(myCoolFile) Next Catch ex As UnauthorizedAccessException MsgBox(ex.Message) End Try MsgBox("Total Files: " & CInt(ListBox2.Items.Count).ToString("#,###,###")) [/code] This code is for listing all folders including subfolders. but when i run this code …

Member Avatar for chris007
0
1K
Member Avatar for dschuett

I have implemented a tooltip on my navigational links (after clicking on the 2006 Volvo 780). Found here: http://www.lonemountaintruck.com/partners/index2.php I am pulling the "detailed" view of the truck into the div from a php file(loadtrucks.php). The "Next Rig" link is the link that is causing the tooltip to stay open …

Member Avatar for dschuett
0
207
Member Avatar for Buffalo101

Hi, What's the best way of integrating a Paypal button in a WinForms application? I can make a tiny WebBrowser and render the form html in it, but when clicking it, processing should be done by the default browser, not the WebBrowser in my application. LEdit: Or I could just …

Member Avatar for Buffalo101
0
228
Member Avatar for SasseMan

Hello all! I'm having problems with running c++ on iOS. I have a iOS openGL project in Xcode 4 and an external library written in c++ that has to be a dependency to the iOS target so it can run on an Ipad. right now I'm testing with the iPad …

Member Avatar for SasseMan
0
105
Member Avatar for dyingatmidnight

Not sure if I should out this here or in the php forum, I have a question that's probably gonna include both SQL and php... I'd like to add an image field to a table I have but I've never stored images in an SQL database before and I'm not …

Member Avatar for mwasif
0
118
Member Avatar for MARKAND911

I have a table named "Table1" Its schema with data is like this [CODE=text] Id col2 col3 col4 col5 isUnique dbUnique 1 red 3M 1995 UK 1 null 2 red 3M 1995 UK 0 null 2 red 3M 1995 UK 0 null 3 red 3M 1995 UK 0 null 4 …

Member Avatar for BitBlt
0
2K
Member Avatar for akhal

Hi I am working on fast fourier transform where I have to use std::complex<> template class types. I have a situation where I want to calculate nth roots of unity as follows w = pow(e, 2*pi*j/n) Where e is eulers constant, and j=sqrt(-1.0); But this doesnt work for me as …

Member Avatar for akhal
0
325
Member Avatar for Nicco

Hi there, I'm working on a map for a class assignment and running into trouble. I've tried looking around the web but couldn't find anything that helped. I know how insertion works on a basic level when returning a node pointer but think i'm missing some key ideas when using …

Member Avatar for Nicco
0
2K
Member Avatar for Huakalero

Hi, I'm working on a unofficial app to get the movie listings from a webpage [url]http://cinepolis.com.mx[/url]. In order to get the correct movie listings, the user must select his city. Now, using HTMLParser I was able to get the list of cities, but because some of these have non english …

Member Avatar for Huakalero
0
351

The End.