132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zizuno

I have this IRC bot that I am hard coding from scratch just for kicks. In it I pasted all of my functions to a separate file so that it saves spaces on my eyes when I code the mainframe. So on my imports I have: [code] import socket, re, …

Software Development python
Member Avatar for zizuno
0
175
Member Avatar for sbutt

I am trying to get xsl comments on my XMLSpy XSLT output console, but the comment is not appearing. My xslt script is: [CODE] <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:ota="http://www.opentravel.org/OTA/2003/05" exclude-result-prefixes="ota xsl"> <xsl:output encoding="UTF-8" version="2.0" method="xml"/> <xsl:strip-space elements="*"/> <xsl:variable name="no_of_adult_persons" select="count(//ota:PassengerListItems/ota:PassengerListItem[@Code = '10'])"/> <xsl:variable name="adult_persons_prices"> <xsl:call-template name="adult"> <xsl:with-param …

Software Development xml
Member Avatar for alfieclinton
0
219
Member Avatar for swapnil15

I am using Fedora 14 since last month , i tried to use do C coding on it but unfortunately compilation command is not working in it although GCC is installed on it. Need some help!

Software Development c
Member Avatar for anirudh33
0
180
Member Avatar for ankit,joy

I have to [B]sort around 12GB of integer data[/B] which is kept in a file. I have a [B]1 GB RAM[/B]. How should I do it? The problem is I cant read whole of data together and store it in a vector because it goes out of memory bound. Which …

Software Development algorithm c++ data-structure
Member Avatar for arkoenig
0
520
Member Avatar for AngelicOne

I've found some tutorials but they all need to browse the file first. I need to play the file automatically without the need of finding it by a browse button.

Software Development
Member Avatar for ashishkumar008
0
151
Member Avatar for cppgangster

Hi, I am trying to write function overloaded function template, but I get some kind of an instantiation problem and here is my code: [CODE] /* * File: main.cpp * Author: cppguy * * Created on 20 January 2011, 19:10 */ #include <cstdlib> #include <iostream> #include <cctype> #include <cwctype> #include …

Software Development c++
Member Avatar for vijayan121
0
191
Member Avatar for vin24

Hello guys! I just want to ask if how can I use java file reader? I badly need this for my program... Thank you in advance! :)

Software Development java
Member Avatar for JamesCherrill
0
150
Member Avatar for moroccanplaya

i just want to kno if the default gw part is correct should it be with or without the brackets ? [CODE] #!/bin/bash ifconfig eth0 146.192.188.106 netmask 255.255.255.0 broadcast 146.192.188.255 up sudo route add default [gw] 146.192.188.254 dev eth0 ifconfig eth1 10.10.160.188 netmask 255.255.255.0 broadcast 10.10.160.255 up sudo route add …

Software Development shell-scripting
Member Avatar for failer
0
106
Member Avatar for HENRYSUGAR

Hi, I am trying to write a simple c++ script to learn more about file manipulation. First script is adding some info a file as a structure and second one is reading from the file. However when i try to read from my file it always shows the found values …

Software Development c++ file-system ios
Member Avatar for HENRYSUGAR
0
164
Member Avatar for CharlieNewey

Hi, I'm a relative newb to Python and I'm starting my first major project - a logarithmic graphing system. I'm using tkinter for the GUI part of the design, but I've run into a problem. Basically, I want my graph (a tk canvas) to appear in the same (root) window …

Software Development gui html-css python tkinter
Member Avatar for CharlieNewey
0
5K
Member Avatar for Dharni.Gurnani

I am currently working on a project in which I need to check the similarity between images... I have started of trying the cosine similarity.. the formula available online needed to be modified since it was only for text and in images the 1st pixel of one image will have …

Software Development image java
Member Avatar for JamesCherrill
0
299
Member Avatar for Ieako

[code=cpp] #include<stdio.h> #include<math.h> #include<stdlib.h> int minimal(int seed); int main (void)//random=countpassenger; { int check=0, tempEarnings, ctr4, info[17][31],ctr3,capacity=0, ctr, ctr2,denomination[6]={1,5,10,20,50,100}, x[6],seed, random=0, loose=0,y[17]={0}, a, change, money, passenger=0, destination, station, pay, payment, n ,km, earnings, out[17]={0}; int passengerlimit[17]={0,30,15,10,10,15,20,10,10,20,5,20,15,10,10,5,0}; printf("Hello, Good day!\nWelcome to our bus! Just seat back and relax.\n\n"); printf("Please enter the seed: …

Software Development c++
Member Avatar for al john
0
165
Member Avatar for drake10k

Hello, I have a WPF/C# ListBox with one column with several items loaded from an SQL Sever Compact Edition database. I'm trying to delete a selected item from the database, but I'm having difficulties getting the value of the selected item, and because of this it is always returned null …

Software Development dataset
Member Avatar for drake10k
0
477
Member Avatar for gunnerone

Hi, I am trying to make a program which formats the date for the user and verifies leapyears and checks for invalid dates. Below i have worked out the code to calculate leap years. But how would i go about formating the date so for example: If the user entered …

Software Development
Member Avatar for gunnerone
0
125
Member Avatar for lanzslumber

Hello, I'm a beginner in these to programming language. Here I want to know how to display the actual value of variable of enum holds. Like this in C++: [code] #include <iostream> #include <conio.h> using namespace std; int main(void) { enum Difficulty { Low = 1, Medium, High }; Difficulty …

Software Development c# c++
Member Avatar for ddanbe
0
248
Member Avatar for funfullson

Hello dears. I am using python 2.6 in Ubuntu 10.10. I need an interface that make me able to trace my project. for example portable python ver 1.1 has this ability. please intruduse me an interface that be compatible with my os. Thanks.

Software Development python ubuntu
Member Avatar for funfullson
0
169
Member Avatar for paulablanca

Hi! Can someone tell me on how could I display the data from my SQL to a ListView? I only have one column to display. Thank you very much and God Bless! :)

Software Development listview sql vb.net
Member Avatar for paulablanca
0
2K
Member Avatar for aimbo

Hello, I'm having some troubles working with strtok. I'm having a string of numbers I want to put in an array, and say from the list I want to get an array with 1,3,5,6,7,8,9,10,12,13,14. First I just wanted to see the single numbers in one place and split that 5-9 …

Software Development c
Member Avatar for Adak
0
145
Member Avatar for MaddTechwf

I'm wanting to compile my project to a single exe so that I can add it to a flash drive and be able to run the program without having to install anything. Does anyone know how to do this?

Software Development flash vb.net
Member Avatar for sandeepparekh9
0
137
Member Avatar for MaddTechwf

I have been googling all day today and I've been trying to find some small, i know it won't be small, amount of code that will allow me to skin my VB.NET project. I don't want to do much to it as far as skinning. If you google GeekSquad MRI, …

Software Development vb.net
Member Avatar for sling blade
0
825
Member Avatar for GatorAlli

I'm using Python, PyQt4, and QtWebKit to load a web page into a bare-bones browser to examine the data. However, there is a small issue. I'm trying to get the contents and src of every iframe on the loaded page. I'm using [B][I]webView.page().mainFrame().childFrames()[/I][/B] to get the frames. To problem is, …

Software Development python web-browser
0
171
Member Avatar for user543820

hi! i want to print a colored 'A' using putchar, let's say green. i am able to print * by doing just putchar('A'); but i don't know that how to print a colored 'A'. i have also tried to write: putchar('A',255); and also putchar('A',3); but no success.

Software Development c++
Member Avatar for embooglement
0
274
Member Avatar for Spartan_MSU12

I am compiling my two .cpp files that are linked with header file. i am getting the error ~/...>g++ -o test.exe diamondtest.o main.o Undefined first referenced symbol in file Diamond::Diamond(int) main.o Diamond::Diamond(int, char) main.o ld: fatal: Symbol referencing errors. No output written to test.exe collect2: ld returned 1 exit status …

Software Development c++ ios
Member Avatar for daviddoria
0
129
Member Avatar for TailsTheFox

Hello, I'm trying to make a program, and can't figure out the correct way to use [ICODE]Form::Diologue[/ICODE] I allready know you have to do someting like this: [CODE] #include "Form2.h" Form::ShowDiologue(Form2()); [/CODE]

Software Development c++
Member Avatar for TailsTheFox
0
93
Member Avatar for Coyboss

Hey all, I have been working with this for about 4 days and pulling my hair out. I can't figure out why I am getting the error messages in my code, when I compile. Here is my code. [CODE]// Week3 Dwight Welsh import java.text.DecimalFormat; public class Mortgage { public static …

Software Development java programming-construct
Member Avatar for Coyboss
0
251
Member Avatar for Darren76

/**This program is a simple number guessing game using the random class */ import java.util.Scanner; import java.util.Random; public class numGuessing { public static void main(String[] args) { Scanner input = new Scanner(System.in); Random rndm = new Random(); int num = rndm.nextInt(50); int numGuess; System.out.println("Please try to guess a number 1 …

Software Development java
Member Avatar for Darren76
0
240
Member Avatar for TheWolverine

Hi all, I've scoured the internet for examples that would allow me to figure out how to apply functors in my specific case, but I just can't seem to make the shift from the examples I find to figuring out how to use it for my own code. Here is …

Software Development c++
Member Avatar for TheWolverine
0
95
Member Avatar for k4it0xtr3me

hi, I am new here... I am currently facing some trouble in pulling out the Attribute as in its types and names. My program purpose is to read the Java file and display all the String into tokens. Then, it must be able to pull out the class name, attribute …

Software Development java
Member Avatar for k4it0xtr3me
0
149
Member Avatar for Unhnd_Exception

Having an issue switching a listview from Tile to Details View with groups. When the list view has groups and the Default View is Tile, when changing the view to Details the first Group is not shown. Its under the column header. I jerry rigged it with creating a global …

Software Development listview vb.net
Member Avatar for Unhnd_Exception
0
193
Member Avatar for iokon

Hi to all! In the following code I am trying to implement a non-directed graph using adjacency lists. Even though there are no compilation errors, I don't get any results. When I am debugging the code it seems that there is a problem when I try to insert a second …

Software Development c++ queue
Member Avatar for iokon
0
2K
Member Avatar for RenanLazarotto

Hey guys! Its me again. I'm working with a SQLite database, and I want to list every entry inside a listbox (only the "Name" row). I know that I can list everything inside a DataGrid, but I don't want to list everything (: Also... sometimes, when you open a window …

Software Development sqlite vb.net
Member Avatar for RenanLazarotto
0
124
Member Avatar for Neversleepin

Hello every one, is it possible to get files from a file list display with System.out.println. I mean for example if you code something like: System.out.println("file.getName"); Then you get a file list. After how could we use this file list to for example copy or move or anything else with …

Software Development file-system java
Member Avatar for Neversleepin
0
121
Member Avatar for plasticfood

ok so the program gets a list of numbers, and it counts how many times a number is entered. [CODE]for(int i = 0; i < numList.size(); i++){ for(int j = numList.size() - 1; j > i; j--){ if(numList.get(i) == numList.get(j)){ count++; numList.remove(j); } } System.out.println(numList.get(i) +" " + count); count …

Software Development java
Member Avatar for plasticfood
0
107
Member Avatar for rhuffman8

I don't know if anyone here is familiar with the Scala digital signage programs but hopefully this question can be answered without any knowledge of it, just in case... I am working with a Python script that checks a csv file and shares some of the info with a scala …

Software Development python
Member Avatar for griswolf
0
961
Member Avatar for iwanttolearnc

im trying my hand at calling c functions from python. im reading up the tutorial [URL="http://csl.sublevel3.org/C-functions-from-Python/"]http://csl.sublevel3.org/C-functions-from-Python/[/URL]. however part of the tutorial says that i should [QUOTE]Compiling dynamic libraries on Mac OS X is different from the usual gcc -shared you might be used to: gcc -dynamiclib -I/usr/include/python2.3/ -lpython2.3 -o myModule.dylib …

Software Development c c# c++ os-x python
Member Avatar for gerard4143
0
229
Member Avatar for trebor-pl

Hi, i'm not very good at OOP, basically just started it. My program basically its like a system for a game shop, the main isn't fully done yet, however main isn't a problem. The other files must contain some kind of problem in them. Well enough of the talk, I'll …

Software Development c++ oop
Member Avatar for trebor-pl
0
338
Member Avatar for katiep23

Relatively new to VB.NET coding. Am creating a pretty simple console application that needs to insert over 50,000 records into an Oracle table (OleDB connection). I tried 3 different methods so far: Individual INSERT, insert using a dataset, & using INSERT ALL (commit every 25 records due to # of …

Software Development dataset oracle vb.net
Member Avatar for katiep23
0
1K
Member Avatar for Zvjezdan23

[CODE]#include <iostream> #include <string> using namespace std; int main() { // A switch program that shows the user his input choice string word1 = "Achieve"; cout << "Welcome to Your AccuWeather Report Screen." << endl; cout << "Your choices are listed at the bottom." << endl; cout << "Number 1 …

Software Development c++ visual-studio
Member Avatar for WaltP
0
136
Member Avatar for Ashena

Hi. I have an external file where I have the results of a dictionary: [CODE]google.com {'facebook.com': 230, 'yahoo.com': 9, 'fifa.org': 67, 'msn.com': 3} yahoo.com {'apps.facebook.com': 13, 'msn.com': 9, 'myp2p.eu': 2} [/CODE] The results show the search engines, the links have been clicked from the search engine and the number of …

Software Development python
Member Avatar for Ashena
0
413
Member Avatar for Rimojenkins

Sorry about the title, but I thought it would be interesting. Here is my problem. I am supposed to convert a certain input into a desired output. The input is 2 201101190930 F76.4 201101191330 C16.3 The first number is the number of strings in the file. It then goes YYYYMMDDHHMM …

Software Development c++
Member Avatar for Rimojenkins
0
116
Member Avatar for vbx_wx

Is there any difference between polymorphism implemented in c++ and the one implemented in python ?

Software Development python
Member Avatar for bumsfeld
0
74
Member Avatar for ana_1234

I'm working on a program that reads a line of code and stores each word into an index or a array of string and I'm stuck. Its a small part of a larger project I must used cin.getline: [CODE]#include <iostream> #include <string> #include <cstring> #include <cctype> #include <iomanip> using namespace …

Software Development c++
Member Avatar for griswolf
0
91
Member Avatar for kardsen

I have a routine that is supposed to grab all email addresses within a certain group. The email address list can be well over 1000 emails. When emailing it out though I can only send around 150 emails at a time. So what I i've done is executed a query …

Software Development vb.net
Member Avatar for kardsen
0
136
Member Avatar for hellotata

I am currently working on this graph "thingy" were I am told to produce 4 types of graphs. [LIST] [*]y=x2 [*]y=x3 [*]y=x*sin(x) [*]y=x*cos(10*x) [/LIST] Now basically, I have the GUI/Interface ready. I seem to have a problem linking the [B]y=x*sin(x)[/B] button in the PlottingWindow class to the PlottingPanel where it …

Software Development gui java java-swing
Member Avatar for hellotata
0
777
Member Avatar for BanKuZ

hi all, I have a class A that has a char* var, operator and methods. In addition I have a global func(char*s). I would like to run this code from the main function by adding operators to my class, I need help writing them. [CODE]A* pA; ... A** ppA = …

Software Development c c# c++ oop
Member Avatar for BanKuZ
0
258
Member Avatar for emko

Hi I need to create an application that converts an image to an icon. This is for a school project, and I know there are libraries in VB that do image conversion, however I have to make the conversion process myself. My first task is to convert an JPEG into …

Software Development gui image vb.net
Member Avatar for emko
0
4K
Member Avatar for MaddTechwf

If I wanted to call the RUN prompt and the Command prompt in my application, what exe's would I need to reference?

Software Development vb.net
Member Avatar for zinnqu
0
116
Member Avatar for ajst

Hi guys and girls(?), I have created a 2d turn based board game game like chess, in java but my problem is that I wanna add some kind of walk through or tutorial system to explain the controls and features of the game. I was wondering if anyone had any …

Software Development java
Member Avatar for jon.kiparsky
0
129
Member Avatar for atticusr5

Hello, I have a program with the following variable: [CODE]char dateCode[13];[/CODE] and the this type of data is held by the variable -> 2011006+0000 Now if i want to print only 2011006, and ignore the + and everything after, is there a way to do that in c++? Would i …

Software Development c++
Member Avatar for atticusr5
0
101
Member Avatar for onlinessp

hi, i have wrote the following code.... [CODE] private void button_MouseEnter(object sender, EventArgs e) { if ( button.Enabled== false) label1.Text = "Please Select the area to scan"; else label1.Text = "It will scan the specified area"; } [/CODE] and used mouse enter handler.The problem i am getting is it give …

Software Development
Member Avatar for ddanbe
0
104

The End.