64,152 Solved Topics
Remove Filter ![]() | |
hi, since I just learned Python, I start using Python 3.1 (i know people said the best version would be 2.5 or 2.6, but i think that at sometime in the future, it will become obselete since python 3.x is not backward compatible). but when i look in forums or … | |
Hi all, I was wondering why the following code compiles, with or without extra komma? My feeling is it should not be there, but apparently it does not matter. Any comments would be more then welcome. [CODE=c#]namespace ConsoleApplication1 { class Program { public enum months { jan = 1, feb … | |
I've come across EOF (something called "end of file " right? ) on numerous occasions when I was browsing though the python documentation. What is it and what is it's significance? Also what is a buffer? eg: "incomplete data is buffered until more data is fed or close() is called." | |
![]() | Simple program opens a text file and counts all the lines. Then it returns the pointer to the beginning of the file and starts pulling in the lines for data manipulation. The Problem: If the file "triangle.txt" ends with a newline everything works fine until the last [i]while[/i] loop which … |
Is it possible to open windows files with python? Like notepad, and stuff.. Thanks Dan08. | |
I'm making a PHP forum script But, when ever i try to add a new topic it gives me this error: [QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc) VALUES (Test, General … | |
Hello all, I want to create a custom login form for SQL Server 2005, which will have 2 textboxes(Username,Password). When the users clicks the submit button then i want to check the SQL Server users with that username and password,if exist. I need this to be answered asap! Thanks in … | |
Hi, im a student taking information tech. and im a newbie in this forum... i need help on the machine problem that my prof gave me... please help me i cant figure out what codes do i use..:confused: the number 5 is user's input... the output is this... [QUOTE] [B]Input … | |
[CODE]include"../../pages/config.php"; $selectrow = mysql_query("SELECT * FROM members"); $query = mysql_fetch_array($selectrow, MYSQL_ASSOC); //Run business removal if ($query['Enable'] == "true"){ if ($query['autoRemove'] <= "0"){ $removeSQL = "DELETE FROM AccLink WHERE autoRemove <= 0"; mysql_query($removeSQL); echo "Business Removed. {$query['username']}<br>"; } $remove1 = "Update AccLink SET autoRemove = autoRemove -1"; mysql_query($remove1); echo "Run Sucessfull … | |
Hello, I'm using easyPHP to locally test some scripts I'm building, but I came across a problem that I can't seem to resolve. Within one of my PHP scripts, there's a segment where I end the PHP ([icode]?>[/icode]) and output a form in HTML, then resume the PHP section ([icode]<?php[/icode]). … | |
First post for me, hope this is right place rather than c# I have a form. When it is completed, it redirects the user to a thank you page. <%@ Page Language="C#" masterpagefile="../../../msrtpage/hra2.master" title="Sign Up Here" %> <asp:Content id="Content1" runat="Server" contentplaceholderid="hra1"> <script runat="server"> protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { … | |
I want to read an amount of string from the file Given inputfile.txt Micheal Tammy Alex [code] #include<stdio.h> #include<stdlib.h> int main(void) { FILE* input; char name[100]; char temp[100]; input = fopen("inputfile.txt", "r"); while((fscanf(input,"%c ", &name[i]))==1) { printf("%c ", name[i]); temp[i] = name[i]; i++; } } [/code] | |
Hello All, I am still pretty new to C++ and am just trying to create simple codes to strengthen my skills. I have written the code below that is supposed to allow the user to pick a shape (either circle, square, or rectangle) and then input either the radius or … | |
hi, i'm trying to edit something on a site i didn't code myself so i downloaded the files and set them up on a virtual host on my local machine. i am using wamp server with php v 5.2.9-2. the problem is when i go the page on my local … | |
Hi, I have never worked with threads before so I am wondering how to go about it. I have a windows application that runs just fine. It is just that when the user trigger a command that takes several minutes to complete, the window get the hour glass and the … | |
Hello, I'm beginning in Assembly development. When i try to print a word using the variable type DB with the name message, but when i try to execute this program, emu8086 only show me a dialog, not the message, here is an screenshot: [url]http://xs142.xs.to/xs142/09345/imagem568.png[/url] [code=asm]#make_COM# ORG 100h ; COM file … | |
Hello, I'm learning Assembly. I'm using DEBUG as my Assembler, but now i want to convert a simple code to really Assembly(For emu8086), here is the code as i put in DEBUG: [code=asm]-E 0200 "0123456789" 24 -A 0100 0D0B:0100 MOV AH,09 0D0B:0102 MOV DX,0200 0D0B:0105 INT 21 0D0B:0107 INT 20[/code] … | |
I am new to asp.net though not to asp. I want to display two gridboxes, the first with master records and the second with child records linked to the master table id. The idea is to change the child records when the parent record is selected, or ideally, when the … | |
Hey everyone, first to start im using python 2.6, and what basically i am makin' is a program that we put some text in a Text Box, and then we can save it to the computer. My problem is that i cant get the text and save it using tkFileDialog. … | |
Count Lines Of Text In Txt File hi i have text file ex. (sample.text) and i need to count lines in file and disply in memo . I have small examp but this not work any sugestion. [code] function linecount(filename: string): integer; var f: textfile; begin assignfile(f,filename); reset(f); result:= 0; … | |
Hi all, I know I can do basic text searches to see if the text is there but I have no idea how to actually pull some select data out of a text file into a variable. I can search with something like this function: [CODE] Private Function CheckFile(ByVal FileName … | |
Hi all, I'm writing this piece of code out in unix. What I want to do is pass an integer argument through the command line and then manipulate it from there. I've done char strings before but cannot seem to get it to work with int's. Once I have this … | |
i'm trying to parse a string of digits that can be 1 to 3 chars long, but how to do this is eluding me. would an isDigit method work? like this: [CODE="c"] if(isdigit(vararray[v])){ if(isdigit(vararray[v+1]) || vararray[v+1]==NULL){ if(isdigit(vararray[v+2]) || vararray[v+2]==NULL){ if(isdigit(vararray[v+3]) || vararray[v+3]==NULL){ return; } return; } return; } return; } … | |
Dear Sir, Could you tell me how can I do the following question? A positive integer is entered from the keyboard. If it's even, all even integers from 2 up to and including the entered integer are displayed. If odd, all odd integers from 1 up to and including the … | |
Hi All, I was asking if it is possible to hide the wx.MediaCtrl window so that Only controls (play, stop, pause etc) can be shown? I plan to play audio only and never video for this project. Thanks alot :D | |
Ok, this one is a little tough for me to explain. I have a runnable jar file that contains a .exe that I'm trying to exec in my program like a command line function. Usually to execute a .exe in a command line I would do: C:\"path to .exe" -option … | |
i tried to open another form from the solution when i clicked a button, but i cannot make it work, the errors are; [ICODE]Error 3 error C2061: syntax error : identifier 'ayarlar' c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h 211 Error 2 error C2065: 'ayar' : undeclared identifier c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h 211 Error 4 … | |
Hi, I'm playing with javaScript and AJAX and using the source code used in this page: [url]http://www.codeproject.com/KB/webforms/MultiSelectDropDown.aspx[/url] (Actually I copied the code on the Default.aspx to the page I was working on, which has a MasterPage and translated Default.aspx.cs from C# to VB.NET) However, I'm having an "Object Required Error" … | |
Dear everybody hope someone can help me!! Im trying to SUM data from 2 different tabels without any ID connection between and I what to subtract the results from eachother afterwards.. how do i do that. lets say i have tabel1.costs and tabel2.profit I would like to SUM the data … | |
Hello, Anybody can give me idea, How can i check COM port? I want to check, is it already open or not? if it is already open, just avoid to open the port. Thanks. | |
I know you can use the if/elseif to make php compare values [code=php] if ( $Quantity != 0){ $a = ( $b * $c ); } elseif ( $Quantity == 0){ $a = ( $b + $c ); } [/code] but what if you want it to do something only … | |
I have made a login form in C#.net windows application i am facing a problem during connecting it to the database SQL Server 2005 it is sending [B]error 25[/B] it will be helpful for me if somebody solve this problem if will be better if somebody send me coding also | |
Hi there, I have a simple problem. I have a namespace with a couple of classes declared in a header file. The classes have functions but no body. When I include the header file and try to call a function, i get the error unresolved external symbol referenced in function … | |
Hey guys, I'm programming a tool for creating PowerPoint slideshows from an images directory. I get the error "Error HRESULT E_FAIL has been returned from a call to a COM component" on the second line of this code: [code=csharp] ApplicationClass powerpoint = new ApplicationClass(); Presentation ppt = powerpoint.Presentations.Add(MsoTriState.msoFalse); [/code] I … | |
Hi, I have a table which I want to update thus: If d_date is has a value and b_date is 30 or more then set d_date as the min value already in d_date. I know that the WHERE EXISTS clause is wrong but I don't know how to make this … | |
Hey guys need your help here. I will go ahead and describe my problem and what i intend and what i am getting. Platform for SQL Queries : MS Access There are 2 identical table in terms of table structure, they contain information ( RAW Data) about month, money i … | |
Hello Guys.. I am working in VB.NET I have to textbox : txtStartTime and txtEndTime After filling in values i need to validate that Start time must be less then Endtime. Values are entered in 12 hour format like 08:32 AM I can go for sub string logic and split … | |
Hi, I have the following jsp file which receives an audio file from the form. I am receiving the form data as Multipart and saving the uploaded file as temp.wav. The uploaded file is in uLaw audio format. I want to convert it to PCM format and save it as … | |
Hi everyone! Is there a way to find where an exception was caught in a c# app? I've been trying putting breakpoints, but I cannot find where the exception was caught. Is there any other way? Thanks very much | |
Language : C# (Visual studio 2005) Hi , i have problem I use File.Copy to copy from Local HDD to network HDD . THe app on my side works , but on client's side , that operation hangs. So , when program should start copying , the client just gets … | |
Hi All, I have used eval function before this. But I am not sure why this one is not working for me. I do have one function which returns me some filter string. It returns string something like this. [CODE]AND TM_ID=$row_tMain[TM_ID] AND TM_DATE=$row_tMain[TM_DATE][/CODE] I want to use this string in … | |
Good day to everyone. I am a student who is a new to .Net. I am about to have a project which would probably involve flash and c#. I just want to learn the basic passing of variable from flash to c#. This project would involve a test or assessment … | |
Hi, I haven't been able to find much info on this with C#, so I thought I'd ask here. I want to know how to create a simple app that hooks into another portable C# app and injects code into it. Basically I want it to hook onto my program … | |
Hi here is another question: I searched the internet for information about the radio tag, and this is all I found so I put it in my code [CODE] <s:radio name="..." list="myArray" /> [/CODE] The above displays all the elements of the array with radio buttons. My problem is that … | |
I recently got into Python and I'm having trouble finding a good IDE for it. I'm on Windows. IDLE works but I'd rather use a different editor with more features. I tried Wing IDE and I can't even find a Run command. Using the command line and typing in the … | |
[CODE=JAVA] String line = "Extracting from E:\\Junk\\morejunk\\file.txt"; System.out.println(line); //prints: Extracting from E:\Junk\morejunk\file.txt String[] splitPath = line.split("\\"); //exception thrown here String folder = splitPath[splitPath.length-2]; System.out.println(folder); [/CODE] [QUOTE]Exception in thread "AWT-EventQueue-0" java.util.regex.PatternSyntaxException: Unexpected internal error near index 1[/QUOTE] My objective is to always print the folder containing the file being extracted (morejunk … | |
I did some JSP development a few jobs ago (7 years ago) and remember having the toughest time with jsp debugging especially. I used JBuilder back then. I'm getting some jsp stuff going again in this job and was wondering if you could give me opinions on the best tools … | |
I'm new to xpath.. probably very simple, but I haven't been able to figure it out. I'm working with the following xml structure: [ICODE]<item dateExpires="0" doNotPublish="0" manufacturer="" productDetailURL="" id="BKIT1009" type="2"> <pricing price="29.99" retailMarkup="0" retailPrice="0" saleMarkDown="0" salePrice="0" saleType="0" stockPrice="29.99" taxableNational="1" taxableRegional="1"/> </availability> <accessoryGroup>misc</accessoryGroup> <name>2 Piece Kit</name> <briefDescription>2 Piece Kit</briefDescription> <description>2 Piece … | |
I have to hit <Enter> twice after inputting my dollar amount and store selection I think I am just missing something simple somewhere, but am going stupid looking for it. Went to the internet to try and find a good debugger, but have no idea how or where to even … | |
Hi all I am attaching a Text area to my gui program. For some reason, whenever i try to write/put a string that has a length greater than the width of the text area, It changes line automatically, (seems like it's not adding new line chracter to existing string, but … |
The End.