199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for imperialguy

Platform and Python installation info: [b]Platforms: Windows, OS X Python: Active State Python 2.7 wxPython: Version 2.9[/b] Here is a sample code in which I use a wxMessageBox: [code]import wx,os class Frame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(100, 100),style=wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | …

Member Avatar for vegaseat
0
1K
Member Avatar for Whilliam

Hello guys, tried googling or searching in this forum but it will still not work. This code works perfectly fine in IE but not in firefox. Here's the AJAX code: [code] function search() { var xmlhttp; if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if …

Member Avatar for almostbob
0
135
Member Avatar for Toikkala

Hi! On school we got exercise to calculate how much the length of substance grow when we know original length and temperature change. So,the case goes that i have value temperature coefficient of different substances and i have to multiply them. I'd like to it without doing several condition statements. …

Member Avatar for woooee
0
255
Member Avatar for [V]

For some reason, I can create temp files but I cannot write to them. Nothing is saved, and the file is always empty. What am I doing wrong? I've tried making it in /tmp, Ive specified mode=w+b, they all do the same. (nothing) [CODE] import tempfile def main(): test = …

Member Avatar for woooee
0
238
Member Avatar for sheennave

I seem to have a problem refreshing the data within my JTable. I know the code is being run through. I have a JTable which is populated from a selection in a combo box, on first click within the combo box the table displays the correct data. So basically the …

Member Avatar for sheennave
0
2K
Member Avatar for Feriscool

So far, it's all working great, but all I need left is to get the method WORD1() to go to WORD2() when the person types in the correct letters. The first word is "Java". How would I make it so that when they type in "Java", it will go to …

Member Avatar for NormR1
0
500
Member Avatar for jgat2011

Hi everyone! I am currently developing a website and I would like some areas to be refreshed when one click on a button. Can anyone help?

Member Avatar for jgat2011
0
83
Member Avatar for lexusdominus

Hey, ive got a problem. i cant seem to get Playsound() to work. Ive searched google, and alot of people say to go to properties - all configurations - linker - and add winmm.lib to the additional dependencies to link it. ok, so i did that, have included mmsystem.h, but …

Member Avatar for lexusdominus
0
98
Member Avatar for realoneomer

Hi Perl, I am looking for code where i can calculate a first saturday for all even months and first saturday for all odd Months. Moreover i need a code to find a second saturady for all months of the year. Can you please help me out that how i …

Member Avatar for d5e5
0
188
Member Avatar for Schol-R-LEA

I am making a last-ditch effort to get Django 1.3 configured to talk to SQL Server (both running on the same Windows 7 system), before I have to make a final decision whether to move on to ASP.NET instead. I am using PyODBC (I had tried PyMSSQL but was recommended …

Member Avatar for Schol-R-LEA
0
861
Member Avatar for gynmd

hello, can someone explain me how this printf inside the function works? [CODE] #include<stdio.h> #define SIZE 10 void function(int [],int); int main() { int a[SIZE]={32,27,64,18,95,14,90,70,60,37}; function(a,SIZE); return 0; } void function(int b[],int size) { if(size>0){ function(&b[1],size-1); printf("%d ",b[0]); } } [/CODE]

Member Avatar for gynmd
0
173
Member Avatar for ujjval dave

hey guys, i need your help to develop thumshot of page of website's internal pages. pls if you know how to develop this code or if u have any suggestions for it then pls tell me. Thanks

Member Avatar for ujjval dave
0
135
Member Avatar for gcardonav

Hi guys: I created this code to read two file get their input and post certain output. My problem is that C++ is sorting out my output from smaller to greater. Is there a way that I can get c++ not to sort out the output. Thanks: Gus Here is …

Member Avatar for Sky Diploma
0
268
Member Avatar for SMITA6076

I have a 3x3 array of text fields whose values get transferred to an int array. I need to make sure that integers 1-9 each occur once within the int array. Any ideas on how to go about that? I could do it by verifying that every int is between …

Member Avatar for Ezzaral
0
115
Member Avatar for VIeditorlover

I have a problem with this construction, can not find how to rewrite it properly. [CODE] private SqlParameter op <T> (T? t, string name) { SqlParameter sp = new SqlParameter(); sp.IsNullable = true; sp.ParameterName = name; sp.Value = t.HasValue ? t.Value : Convert.DBNull; return sp; } [/CODE]

Member Avatar for gusano79
0
221
Member Avatar for Ephexeve

I am reading a Python book for Pyton 2.5 (But I am doing Python 3). I am at the chapter classes and I got this part; "You can check whenever the function attribute was callable." [CODE]callable(tc,'talk',None)[/CODE] In Python3 we do not have callable anymore, so I checked on the internet, …

Member Avatar for TrustyTony
0
278
Member Avatar for tim8889

Hello everyone, tim here. I am trying to use/modify a program to model a material in a 2D space. The shape is not too complicated. Now my thought is, instead of drawing it using the functions(which give me a headache, considering the shape has to be split to many piece …

Member Avatar for tim8889
0
194
Member Avatar for Trepach

Environment: MS Visual Studio 2008. (Please transfer this thread to where it belongs.) Project type: Windows Forms Control Library. Goal: Get the pixel color from a given process' main window. Already achieved: I got the desired process's pointer by using [code]cli::array<Process ^>^ Proc = System::Diagnostics::Process::GetProcessesByName("Notepad");[/code] I believe I got the …

Member Avatar for Trepach
0
424
Member Avatar for Gsx

Hi, this program is working atm but i suck at loops and such and im just wondering if there is any better way to do it, and if i do not enter a number in 1 of the 3 boxes when showing the results of the networks it just says …

Member Avatar for TrustyTony
0
156
Member Avatar for Acegikmo

I'm trying to make a class called "Sprite", which is supposed to handle spritecards and such. However, I can't seem to be able to get the image height without having an image observer object. Do I have to pass the image observer from the main class to every sprite class …

Member Avatar for Ezzaral
0
197
Member Avatar for BleepyE

Hey Guys, Ive made a settings form for my latest StopWatch project. The stopwatch also includes a countdown timer. To set the time to countdown from, ive made a settings form in which you can enter a value into a textbox and when you start the countdown, it reads the …

Member Avatar for BleepyE
0
100
Member Avatar for kashif inayat
Member Avatar for skatamatic

I have been working on a library to interface with a USB-4704 data aquisition module for work. I have it working great, but the last thing that I need to do is add functionality to support updating a status variable when the device is plugged in or unplugged. I thought …

Member Avatar for skatamatic
0
306
Member Avatar for extemer
Member Avatar for roswell1329
0
138
Member Avatar for rssk

hi all i have list like list1=[2,3,4] m = 'ma' [B]m = list1 * m[/B] wen i run the script i'm getting output like [B]TypeError: can't multiply sequence by non-int[/B] i need a output like [B][ma2,ma3,ma4][/B] so plzzzzz help me:(

Member Avatar for TrustyTony
0
222
Member Avatar for Nurder

Hello. I need to help becuase I'm really desperate :( :) ..... I'm trying to program the program just same like the drawing software in the window 7, but not completely same xD xD. Unfortunately I have a problem with drawlines....I can't do that. I want to draw line by …

Member Avatar for Nurder
0
183
Member Avatar for skuip

Hi, I'm trying to extract an inner node and place it at the level as the element <para>. However I'm unable to figure it out. Source XML: [CODE] <para> Lorem ipsum dolor sit amet, <i>consectetur</i> adipiscing elit. Aenean vestibulum pharetra metus. <formula altimg="fig1">E = mc^2</formula> Curabitur ac nibh purus, eget …

Member Avatar for skuip
0
173
Member Avatar for Majestics

I want to embed microsft notepad in my java application.... is there any way... i dont want to use java own made notepad....

Member Avatar for JamesCherrill
0
101
Member Avatar for amithlaxman

Hi, I have a string like this: [CODE] $string ="datafiles/source/main_data_files/content.csv"; if($string=~/main_data_files\/(.*)\.csv/ig) { print "\n matched-- $1\n"; } [/CODE] I want to retrieve the csv file name i.e [CODE] content.csv [/CODE] I tried with the above code i am getting the result but i want some other better performance matching part. …

Member Avatar for d5e5
0
90
Member Avatar for catcit

I have a table that contains approximately 22000 rows and I used a Boolean Full-Text Search in order to find what I`m interested in. My problem is that I created a 'dynamic search feeling' that consists of a DataGridView that it is refreshed after every TextChanged event. As you might …

Member Avatar for C#Jaap
0
190
Member Avatar for Troy

Does your organization use Microsoft Exchange? Do you have a need to incorporate your Exchange data with your PHP web applications? You can use the WebDAV methods to query your Microsoft Exchange Server using the PHP scripting language. Once you wrap your brain around these techniques, the sky is the …

Member Avatar for dskanth
0
2K
Member Avatar for WolfShield

Hey all, I am working on a calculator program and am using a StringVar() for the Entry widget. What I need is to delete the last char from the StringVar() when the user hits the 'Backspace' button. I have everything bound and all, I just don't know what the code …

Member Avatar for WolfShield
0
1K
Member Avatar for lexusdominus

[CODE]if ( initialize == "off" && Iminor > 20 || Imedium > 10 || Isevere > 5 || Ifatal > 0 )[/CODE] the string type 'initialize' is cout'ing "on" and all of the values right of the AND operator are TRUE. Why is the subsequent code block for the if …

Member Avatar for lexusdominus
0
130
Member Avatar for zack_falcon

I have a finished program that I want to deploy to another computer. My professors told me an installer is required, so I tried my best to research, and came up with this: [URL="http://www.youtube.com/watch?v=Lcue0jo41AM"]http://www.youtube.com/watch?v=Lcue0jo41AM[/URL] That was a tutorial video, (he used Visual Studio 2008) and I tried to follow it …

Member Avatar for zack_falcon
0
257
Member Avatar for divyakrishnan

[B]Hi... I want to add a text field inside a div(div with id "my_div") tag dynamically(By clicking "Add" button). The code below shown is adding the new textfield after the submit button not inside the "my_div" div . [CODE] <html> <head> <script language="javascript"> function add() { var divTag = document.createElement("div"); …

Member Avatar for manu555
0
4K
Member Avatar for aodpreacher

I currently have a Bellman Ford algorithm set up and I am trying to print the path to that node. My current algorithm is like this: [CODE] path = new int[totaledges]; path[source] = source; distance[source] = 0; String st = ""; for (int i = 0; i < totaledges; i++) …

Member Avatar for bibiki
0
420
Member Avatar for manu555

hi, I have problem while developing web application in php. I have one text box in which enter total nos.and in one div there are other text box and dropdownlist. i want to show div repeatately until match the value of first text box to text box in that div …

Member Avatar for manu555
0
94
Member Avatar for jwenting

The question how to create HTML output to the browser from a Servlet based on XML data often comes up. Here's a fully functional example on how to achieve this using Jakarta Xalan 2 and Xerces 2. The system is quite simple, most of the code is concerned with housekeeping …

Member Avatar for lemomo12345
0
933
Member Avatar for s.w.a

that code that i have problem with it is only accept 2 input from me y and how to solve it please Scanner keyboard = new Scanner(System.in); String IP = keyboard.nextLine(); String TTL = keyboard.nextLine(); Scanner kb = new Scanner(System.in); String conntype = kb.nextLine(); thanks in advance

Member Avatar for s.w.a
0
100
Member Avatar for b1izzard

Hi everyone, I had designed an application with Java as front end and mysql as back end. The client application uses both local database as well as Remote mysql server's database for login and other retrievals. I don't know how to generalize the database connectivity code?, I need to access …

Member Avatar for b1izzard
0
233
Member Avatar for mithesh

Hi All, I have a query now i need to integrate my outlook calendar with external web portal to add events so that the outlook calendar can remind me , Could anyone suggest open source libraries to do this . Thnx in advance Thnx & Regards, mithesh.

Member Avatar for dskanth
0
167
Member Avatar for happymadman

Where are the connections stored, are they in a list, how to I access them? I have a (-messy-) program that will allow the users to set there name and when they send input to the server it will come up with "Received: Blah from username" but I would like …

Member Avatar for happymadman
0
112
Member Avatar for hawx

I am trying to create a basic a accordian style menu. Im guessing i have done 90% of the code, but a little stuck now. I have three widget and what I am attempting to do is hide all the widgets apart from the one actually clicked. My code so …

Member Avatar for vibhaJ
0
78
Member Avatar for lexusdominus

[CODE]int thetime = time(NULL); string in; stringstream out; out << thetime; in = out.str();[/CODE] that's my code for casting an integer into a string, but im having a little trouble reversing it to change a string into an int. :/ can anybody help me out? you have to include the …

Member Avatar for lexusdominus
0
70
Member Avatar for OldDeveloper01

Hello. I have been following a tutorial, but want to adapt it. Currently the code below echoes out all of the any occasion cards into a list. I would like them to be echoed into a 2 by 3 formation. 2 down, 3 along. Struggling to get it to do …

Member Avatar for OldDeveloper01
0
172
Member Avatar for EEETQ

Hi guys, I'm working on an assignment for my programming class and was wondering if I could get some help. The problem I'm having is that when I try to access the value of the map, I get a weird debug error. The program compiles fine but when I run …

Member Avatar for NicAx64
0
230
Member Avatar for rabeeshm

Hi All, I am trying to add special characters into database using javascript encodeURIComponent.Its working at localhost But in server when adding ' an extra / coming in front of ' how can i remove this problem ,some one help me please Thanks in advance.

Member Avatar for vibhaJ
0
103
Member Avatar for umair.sabri
Member Avatar for Nybuler

Hi all, is there any prblem with my array? why i can get the first element of the array [CODE] function GetNameByEmail($get_staffemail) { print_r($get_staffemail); for($i=0;$i<count($get_staffemail);$i++){ echo "<br />"; echo $qryGetName = "SELECT username FROM user_info WHERE email ='".$get_staffemail[$i]."'"; $rsGetName = mysql_query($qryGetName); $arrGetName[$i] = mysql_fetch_array($rsGetName, MYSQL_ASSOC); } echo "<br />"; print_r($arrGetName); …

Member Avatar for vibhaJ
0
118
Member Avatar for xanawa
Member Avatar for KenPeterson
0
109

The End.