199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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> … | |
[CODE] [I]Server.aspx[/I] <%@ Page Language="C#" CodeBehind="Server.aspx.cs" AutoEventWireup="false" Inherits="AMChat.Server" %> <p> </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 … | |
[CODE] [I]Server.aspx[/I] <%@ Page Language="C#" CodeBehind="Server.aspx.cs" AutoEventWireup="false" Inherits="AMChat.Server" %> <p> </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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 | |
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) … | |
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 … | |
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: … | |
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 … | |
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 … | |
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 … | |
[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 … ![]() | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ' … | |
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 … | |
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 … | |
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] | |
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 … | |
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. … | |
It's a different number of milliseconds on my desktop than it is on my laptop :S | |
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. … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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. | |
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 … | |
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] | |
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 | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.