132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rmsagar

This is the contents of the file, of which I want to insert multiple lines after </module-data> if the process-type=Remote. Could you please help !! [CODE] --------------------------FILE------------------------------------------ <process-type="Local"> <module-data> </module-data> <process-type="Remote"> <module-data> </module-data> --------------------------FILE------------------------------------------ [/CODE]

Software Development perl
Member Avatar for rmsagar
0
106
Member Avatar for frogboy77

[CODE]bool is_prime(int a) { if(a==1){return false;} if(a<4){return true;} if(a%2==0){return false;} if(a<9){return true;} if(a%3==0){return false;} int i; for(i=5;(i*i)<=a;i+=6) { if(a%i==0){return false;} if(a%(i+2)==0){return false;} } return true; } [/CODE] critique welcome.

Software Development c++
Member Avatar for frogboy77
0
120
Member Avatar for basma.lm

hi, i'm using visual csharp 2008 express edition which doesn't contain the Report viewer control. i downloaded Microsoft Report Viewer Redistributable 2008, i install it and i try to add it to the toolbar by clicking on( Tools/ choose toolbox items) but i can't find it in the list of …

Software Development
Member Avatar for kickingbird
0
126
Member Avatar for neosonic

Hi all, Please give me some inputs about my situation, because I know that you have more experience than me. I have a program that is written in vb6, which is near to the completion. I would like to start selling the program at the beginning of next year. My …

Software Development encryption visual-basic
Member Avatar for AndreRet
0
229
Member Avatar for gingank

Ho guys i got question need to ask about the if else statement: Can i write like this IF CUST= "A" OR CUST = "B" OR CUST = "C" THEN CUST = "A , B ,C " Then statement i pal is if i key either A , B or …

Software Development visual-basic
Member Avatar for AndreRet
0
206
Member Avatar for kruxena

Hi guys, can you pls help me what is the vb code in retrieving my data in the database? my code is this. [CODE] Dim SandLine As String SandLine = txt1S.Text & "," & txt2S.Text & "," & txt3S.Text _ & "," & txt4S.Text & "," & txt5S.Text & "," …

Software Development dataset vb.net
Member Avatar for kruxena
0
134
Member Avatar for wailoon88

[CODE]import java.awt.BorderLayout; import java.awt.Cursor; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.BufferedReader; import java.io.FileWriter; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.FileReader; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.io.FileReader; import java.util.*; …

Software Development gui java java-swing regex
Member Avatar for peter_budo
0
245
Member Avatar for macaela

Hi i have a while loop which displaying data from the database but i am trying to style but it doesnt seem to be workin help please. xml script [CODE]<?php // PHP file that renders perfect Dynamic XML for MySQL Database result sets // Script written by Adam Khoury @ …

Software Development flash xml
Member Avatar for hielo
0
130
Member Avatar for Mr_PoP

main.cpp [CODE] #include "includes.h" #include "LOGMSGs.h" int main() { LOGMSG("TEST"); getch(); return 0; } [/CODE] MYSQLcon.cpp [CODE] #include "LOGMSGs.h" int Mysql() { MYSQL *con, mysql; mysql_init(&mysql); const char * host="localhost"; const char * user="test"; const char * pass="test"; const char * db="NewServer"; con = mysql_real_connect(&mysql,host,user,pass,db,NULL,NULL,NULL); if (con == NULL) { …

Software Development c++
Member Avatar for Mr_PoP
0
113
Member Avatar for EddyLLC

Using the following code I have a questions. .Fields(intFldCntr) = 2.66666666666667 yet after loading it into arrWhite(intIndex), arrWhite(intIndex) = 3. I'm working to get some weighted averages so I want the actual number. How can I prevent it from being rounded when I load it into the array? Thanks. Dim …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
106
Member Avatar for Aequitas1

Good evening. I've recently had an assignment to create a doubly linked list that is self contained. This means that the entire list is contained in a single class - the class acts as both the list and the node. I've completed everything and have gotten to my final task …

Software Development c++ linked-list
Member Avatar for Aequitas1
0
4K
Member Avatar for iwanttolearnc

hello there guys. im quite confused regarding the use of pyserial classes. ive been reading up on the pyserial documentation. i followed an example and used the code below [CODE]import serial ser = serial.Serial (0 , baudrate = 57600 , timeout = 1) #open serial port (1) - 1 line …

Software Development api python
Member Avatar for iwanttolearnc
0
173
Member Avatar for Mr_PoP

logmsg.h [CODE] void LOGMSG(string logmsg,...)//... { stringstream name; name<<"test "<<TM.years()<<"-"<<TM.month()<<"-"<<TM.day()<<".log"; ofstream log; log.open(name.str(), ios::out | ios::app); log <<TM.hour()<<":"<<TM.mint()<<":"<<TM.sec()<<" Message: "<< logmsg<<endl; } [/CODE] main.cpp [CODE] int main() { int a = 100; LOGMSG("type test!!",a,"times"); }[/CODE] but it's only wtite into the file "type test!!" while i want it to type …

Software Development c++ ios
Member Avatar for Mr_PoP
0
111
Member Avatar for xtianenikkian

i have a student maintenance form in my program im using this code to update the database Adodc1.Recordset.Update Adodc1.Recordset!StudName = txtStudName.Text Adodc1.Recordset!StudId = txtStudId.Text Adodc1.Recordset!Course = cboCourse.Text Adodc1.Recordset!Section = cboSection.Text Adodc1.Recordset!first_day = cbo1day.Text Adodc1.Recordset!FDlogin = cbo1.Text Adodc1.Recordset!FDlogout = cbo11.Text Adodc1.Recordset!second_day = cbo2day.Text Adodc1.Recordset!SDlogin = cbo2.Text Adodc1.Recordset!SDlogout = cbo22.Text Adodc1.Recordset!third_day = …

Software Development visual-basic
Member Avatar for xtianenikkian
0
221
Member Avatar for tim8w

I have the folloing code using OleDB to manipulate an Access database: [CODE] Dim adpMasterRecipe As OleDb.OleDbDataAdapter Dim dsMasterRecipe As New System.Data.DataSet adpMasterRecipe = New OleDb.OleDbDataAdapter("SELECT * FROM tblMasterRecipe WHERE MasterID = @MasterID", My.Settings.RecipesConnectionString) adpMasterRecipe.SelectCommand.Parameters.AddWithValue("@MasterID", iRecipeNumber) adpMasterRecipe.Fill(dsMasterRecipe) If dsMasterRecipe.Tables(0).Rows.Count > 0 Then dsMasterRecipe.Tables(0).Rows(0).Delete() dsMasterRecipe.AcceptChanges() adpMasterRecipe.Update(dsMasterRecipe) End If [/CODE] The problem …

Software Development dataset vb.net
Member Avatar for Unhnd_Exception
0
398
Member Avatar for tripleD

I'm working on a file organizer of sorts. The user can drag icons from the desktop into a list view, and drag items out of the list view to remove them. Dragging icons from the desktop to the list was straightforward, it's the other part that's giving me trouble. What …

Software Development api listview
Member Avatar for tripleD
0
807
Member Avatar for rcmango

I'm quite new to the standard template library, I'm trying to understand how to use them with my code. There may still be some logic errors in my code. However I am trying to sort out my syntax errors. One big one is this: type/value mismatch at argument 1 in …

Software Development c++ queue
Member Avatar for rcmango
0
531
Member Avatar for felix001

Im pretty new to python so im still finding my feet.. Ive written a small ftp program that downloads a file but its quite basic in that it gets the last element from the list and then downloads it. What is the easiest way to add some logic so it …

Software Development python
Member Avatar for felix001
0
162
Member Avatar for Smed

Hi, I'd like to find the maximum value in a list but be able to state certain exceptions. For example: if list A=[1,5,3,4] I want to say [CODE]max(A) except index 1[/CODE] which would return '4' as the maximum value. Is there a way of doing this? Thanks.

Software Development python
Member Avatar for TrustyTony
0
126
Member Avatar for mangopearapples

How can I get a single line of text of a textarea? So like if I had "Hello Mellow Yellow" Then line 1 would be Hello and line 2 would be Mellow ect. How can I get that? Something like: [CODE] JTextArea area = new JTextArea(); System.out.print(area.getLineOfText());[/CODE] Thanks.

Software Development java
Member Avatar for mangopearapples
0
2K
Member Avatar for Neversleepin

Hi, I’m trying to code a small program which allows us to select multiple files from a folder and save the content of all files previously selected in one file. The code is very well without GUI (in console). But now I want to do the same with a GUI. …

Software Development gui java java-netbeans java-swing
Member Avatar for Neversleepin
0
2K
Member Avatar for hazyvisions

I can't get images to load.. I always get an error here's my code so far: #pong import os, sys import pygame from pygame.locals import * if not pygame.font: print "Warning, fonts disabled" #-------------------------------------------------------- def load_image(name, colorkey=None): fullname = os.path.join('data', name) try: image = pygame.image.load(fullname) except pygame.error, message: print 'Cannot …

Software Development os-x python
Member Avatar for wanna_develop
0
170
Member Avatar for vasuv

Hi all, We have many number of Procedures/Packages/Functions/Package bodys.In these objects some coulmns contains Hardcoded values.we need to find out the hardcoded values for that particular column.Right now we are doing manually by analyzing the code and find out the hardcoded values. Is it possible to write any shell script …

Software Development shell-scripting
Member Avatar for griswolf
0
346
Member Avatar for HDRG

What do these errors mean? im new to java.. Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl<Container.java:1041> at java.awt.Container.add<Container.java:365> at OptionWindow.<init><OptionWindow.java:63> at OptionWindow.main<OptionWindow.java:182> please help

Software Development java
Member Avatar for HDRG
0
195
Member Avatar for DarkLightning7

I am building a text only hangman game and I have gotten it to the final stages as far as I know I only have one problem I can't figure out why my char comparison values are always returning false even though I know that the characters are the same. …

Software Development java
Member Avatar for JamesCherrill
0
260
Member Avatar for Commando123

hi guys. i want to give a button a text but i dont want to write button1.text = 'blabla' becuase i dont know the button name. is there anyway to to call the button by a string for example "button"&I.text = 'blabla'

Software Development vb.net
Member Avatar for Commando123
0
110
Member Avatar for Josef01

does anyone has a sample code or it it possible to fix error in this code I appreciate any advice the error i get : There was an error parsing the query. [ Token line number = 1,Token line offset = 13,Token in error = user ] cmd.ExecuteNonQuery() [code] Imports …

Software Development dataset sql vb.net visual-studio
Member Avatar for Josef01
0
705
Member Avatar for Violet_82

Hi there, it's been awhile :$ I have just completed a small easy exercise which was to create an Account class, providing a constructor to receive the initial account balance, add some money to the initial balance and withdraw some money (providing that the amount of money to withdraw is …

Software Development c++
Member Avatar for Violet_82
0
173
Member Avatar for ShadyTyrant

How can I get my editor to expand both horizontal and vertical? I have a simple test application that uses a subclass of a StyledTextCtrl. I create my editor object in a subclass of wx.Frame. [CODE=python] def CreateEditor(self): myEditor = editor.SyntaxControl(self) # subclass of StyledTextCtrl sizer = wx.BoxSizer(wx.VERTICAL) sizer.Add(myEditor, 0, …

Software Development python
Member Avatar for ShadyTyrant
0
473
Member Avatar for sinisterduke

So i made a small game using pygame, and I want to be able to give it out to some friends who don't have python, so I want to make it into an EXE. i've been trying for several hours using several different methods, but nothings seems to be working. …

Software Development python
Member Avatar for tendragons
0
597
Member Avatar for marooh

hi, i wrote an assembly code in my c code but i don't know how to use c declared var in my assembly,if someone could help me :) thx

Software Development assembly c
Member Avatar for marooh
0
110
Member Avatar for Frederick2

Hello Vivayan! Its taken me this long to understand your sophisticated program you gave me using STL (Standard Template Library) iterators, container classes, algorithms, and the works! I’m truly grateful for the time you took to develop this program for me, and it inspired me so much I’ve decided to …

Software Development algorithm c++
Member Avatar for Frederick2
0
181
Member Avatar for stevanity

Please help me debug this. Ive used a permutation generator class as a dll file. Its not loading. Please help me. Main Project: [code]http://www.mediafire.com/?7glk636ncm49spx[/code] DLL: [code]http://www.mediafire.com/?l41b3l2uaugqmwz[/code] Thanks. I had some problems with strings and stringbuilders. It would be nice if someone could suggest a better solution after seeing my code. …

Software Development c c# c++
Member Avatar for stevanity
0
139
Member Avatar for walerhola

The bit of code below is giving me the error: Cannot read from a closed TextReader. [CODE]public static int maxUsers(int logMinute) { StreamReader maxNum = new StreamReader(@"C:\Users\jplishka\Desktop\LoginSorted.csv"); string sortedstrline = ""; string sortedUser = null; string sortedComputer = null; string sortedDate = null; string sortedInTimeSec = null; string sortedOutTimeSec = …

Software Development c c# c++
Member Avatar for Mitja Bonca
0
5K
Member Avatar for CobRalf

Hello everybody!! I know that the topic "compiling python script" is a very popular topic, and there are informations about it everywhere on the net. I use windows and want to make a .exe-executable My problem: Everything I found... * is to old * does not work (exe has an …

Software Development python
Member Avatar for tendragons
0
383
Member Avatar for ilikepaste

import urllib.request page = urllib.request.urlopen("http://www.randompickupline.com/") text = page.read().decode("utf8") where = text.find('<p id="pickupline">') start_of_line = where + 18 end_of_line = start_of_line + 150 line = (text[start_of_line:end_of_line]) print (line) This is a basic html import for a text based game I'm writing for fun, and I'm making a dynamic string. However, the …

Software Development html-css python
Member Avatar for ilikepaste
0
203
Member Avatar for rssk

hi all.......... 1)~ # free cat /proc/meminfo total used free shared buffers Mem: 62192 32080 30112 0 0 Swap: 0 0 0 Total: 62192 32080 30112 2)~ # free cat /proc/meminfo total used free shared buffers Mem: 62192 32440 29752 0 0 Swap: 0 0 0 Total: 62192 32440 29752 …

Software Development python
Member Avatar for rssk
0
120
Member Avatar for fab2

[ICODE]Hi, I have written the program below and the compiler is not giving any error message and when I run it, the first request for an enter is almost always followed by strange numbers,which I don't know where they come from[/ICODE] [CODE] #include<stdio.h> int main() { int value; int inputs; …

Software Development c
Member Avatar for anirudh33
0
111
Member Avatar for Snader

This code from C++ to Turbo C [ICODE]#include<stdio.h> #include<conio.h> public class Stack { private: int size; int top; int *values; public: Stack(int size) { this->size =size; values = new int [size]; top = -1; } void main() { Stack *myStack = new Stack(10); } }; [/ICODE] what will be its …

Software Development c
Member Avatar for stevanity
0
88
Member Avatar for HeartBalloon

[QUOTE]You said the function returns just a single character yet you are trying to return a character array. You can't have it both ways. What you should have done is [icode]char* getEmpName()const[/icode] -- notice there is a * after char to indicate it will return an array of characters.[/QUOTE] Hi, …

Software Development c++
Member Avatar for HeartBalloon
0
382
Member Avatar for Boubakr

Hi... Let's say that we have this: [CODE]somme = raw_input('1 + 1 = ') if somme == 2: print 'Good - Time For Answer: ' else: print 'False - The Right Answer is: 2 -Time For Answer:'[/CODE] So... how can we get the time for writing any things on raw_input()

Software Development python
Member Avatar for richieking
0
167
Member Avatar for MasterGberry

I am having a mental block with this LINQ expression and cannot seem to figure out how I need to convert it to C++. [CODE](var item in inTables.SelectMany(table => table.Items))[/CODE] This code applies to the following piece of code [CODE] foreach (var item in inTables.SelectMany(table => table.Items)) { Trace.Assert(oldDrs.Position == …

Software Development c++
Member Avatar for MasterGberry
0
416
Member Avatar for bensewards

Hey guys, This is only my second thread on DaniWeb and I am a beginner programmer. My code looks like this: (really easy to understand and shouldn't need any further explanation besides the fact that I need help understanding why when i give an answer related to the 'else' loop, …

Software Development c++
Member Avatar for Fbody
0
605
Member Avatar for Boubakr

Hi... I want to start with PyQt and I don't from where should I beggin !! I'm using Fedora Linux 14 !

Software Development python
Member Avatar for Boubakr
0
77
Member Avatar for Neversleepin

Hi, i'm trying to create a "Save as" frame with my small program. It must open a Save As windows where i could choose the name of the file (txt) that i want to save. Is there any method to do this? i didn't find with google. Thanx

Software Development java
Member Avatar for Neversleepin
0
846
Member Avatar for saransh60

plz see this code [icode] x=raw_input('enter any number :') def adder(d): d=d+1 adder(x) [/icode] in this function when x is passed to function adder ,,is 'x' and 'd' are copy of each other or d is reference of x..

Software Development python
Member Avatar for vegaseat
0
142
Member Avatar for Frederick2

I don’t know why my operator += and operator + string class member functions are taking so long to do their job and are so inefficient compared to the Standard C++ Library String Class. Its not that they don’t work; its just that they are slower by a factor of …

Software Development algorithm c++ unix
Member Avatar for Frederick2
0
586
Member Avatar for pritaeas

SetAutoSubClass() has been deprecated in newer versions of Delphi. Can anyone tell me what to replace it with ? I cannot find it in the Delphi 2009 OLH, nor in the VCL source (Forms).

Software Development delphi pascal
Member Avatar for pritaeas
0
142
Member Avatar for sudhirs18

Hi, The program below takes input from user the marks of 10 students in 6 subjects and gives output as: [output] Maths Phy Chem Bio C.Sc Eng Tot Stud_Avg studentname1 10 20 30 40 50 60 210 35 studentname2 20 30 40 50 60 70 270 45 -- -- studentname10 …

Software Development c++ file-system
Member Avatar for sudhirs18
0
164
Member Avatar for tendaimare

this code works well but somehow it is giving me a warning saying: "Variable 'str1' is used before it has been assigned a value. A null reference exception could result at runtime."How can i remove the warning. [CODE] Public Shared Function getAllColumnNames(ByVal tblname As String) As String() Dim com As …

Software Development vb.net
Member Avatar for Luc001
0
341

The End.