1,336 Topics

Member Avatar for
Member Avatar for hsc852

Hello everybody. I am seeking help on how to save 3 output images into a specific path after filter by 3 different mask size e.g. 3x3, 5x5 and 7x7 mask. My program is in C:\Cpp\Project\, I wish to save those output images inside "filter" folder with path in C:\Cpp\Project\filter. Thus, …

Member Avatar for deceptikon
0
398
Member Avatar for PerpetuumMobile

Hi, My Mackook is connected to the internet okay, but neither Safari, nor Firefox are working. The message shows "Firefox can't find the server at ...." It was working fine till last night, when I remember seeing a software update message. I am currently running a Mac OS X Lion …

Member Avatar for tompatrick
0
164
Member Avatar for kevinyu

This is my code. I don't know exactly why the program doesn't work. If I press the button, it should display the corresponding quote and its author. But nothing is displayed. After experimenting, I found out that the try clause of the exception DIDN'T REALLY work. I need help on …

Member Avatar for kevinyu
0
235
Member Avatar for manel1989

hi every one ! i'm sorry to be so bothering but i really don't know how to solve my problem here: Mathematically, the placement problem of testers into the right nodes) can be modeled by merging the two introduced knapsack variants: multidimensional and multiple knapsack problems. The obtained model is …

0
217
Member Avatar for philcm

Hi ; I'm trying to add a simple menubar to my lister window : ------------------------------------ #!/usr/bin/env python import subprocess import os, stat, time import pygtk pygtk.require('2.0') import gtk folderxpm = [ "17 16 7 1", " c #000000", ". c #808000", "X c yellow", "o c #808080", "O c #c0c0c0", …

0
138
Member Avatar for Ismatus3

hello , I use Tkinter , at the line : `print modelidvar ` in Interface3() function , it prints "" , nothing , without any error message , can i know why plz , here is all the code : # -*- coding: cp1252 -*- # -*- coding: cp1252 -*- …

Member Avatar for vegaseat
0
202
Member Avatar for Liam_1

I'm making a simple text based game in python, which works fine until I activate "debug" mode (in game, with /debug), which is supposed to change this: # # # # # # # # # # # # # . . . . . . . . . . …

Member Avatar for TrustyTony
0
707
Member Avatar for brenzy

#include <iostream> #include <string> using namespace std; class Point { int x; int y; public: Point(int seed = 0) : x(seed), y(seed) { cout << "Overloaded constructor called.\n"; } ~Point() { cout << "Destructor called.\n"; } int getX() { return x; } int getY() { return y; } }; ostream& …

Member Avatar for Ancient Dragon
-1
150
Member Avatar for clouds_n_things

So I wrote a cool little python script for terminal commands that I get sick of entering. Most of the script is explained in docstrings and comments. Looking for useful terminal commands or things I missed or could have done better. I'm actually quite proud of it. :) #!/usr/bin/env python …

Member Avatar for clouds_n_things
1
314
Member Avatar for Eagle.Avik

hi i am new to php and mysql, i am experimenting with a script for saving data to mysql database. and fetch the data on other page, i managed to get both of them without any trouble. But Here is the one problem. I added a additional input function to …

Member Avatar for Eagle.Avik
0
437
Member Avatar for ihatehippies

I stumbled on upon this anomaly in one of my programs and can't figure out why this is happening. I made a small test function that exhibits the same behavoir. It's like the local variables of my function are being saved after the function exits. The exclude_ids variable keeps growing. …

Member Avatar for james.lu.75491856
0
809
Member Avatar for LincyDaniel

I have included the entire source. I am getting the traceback error. import os import sys import fileinput import datetime from time import localtime name = sys.argv[1] # log specifies the file that is supposed to be parsed by the script log = fileinput.input('/var/log/secure.log') L = localtime() CalendarMonth = L[1] …

Member Avatar for james.lu.75491856
0
165
Member Avatar for bobrown101

Hey guys. I'm making this android app called GPS Buddy. What I want it to do is to send my gps coordinates to a phone number via a text at a set interval. The problem that I am running into is fairly simple. I have all the barebones stuff done, …

Member Avatar for peter_budo
0
168
Member Avatar for bobrown101

Hey guys. I have a simple question about my android app. I know what you are thinking " this dumbass just posted this in the wrong thread". But I did it for a reason. The error that I have is related to java...not android. (I will star every line of …

Member Avatar for stultuske
1
885
Member Avatar for Arroway

I have to make a program that calculates the integral of a function using the simpsons method and the trapezoid method. It works just fine on my computer using MinGW, but when I try to compile it in my uni's computer (GNU OS) I get: It = 0 (should be …

Member Avatar for rubberman
0
183
Member Avatar for stefanienikole

I am having trouble with the last three methods of my program in the **Board.java**. I'm not sure how to go get it to read gameBoard. It keeps giving me errors. I really cant figure out what I'm doing wrong. All the methods were given to me and cannot be …

Member Avatar for jwenting
0
817
Member Avatar for wolf29

I have 2 functions, one of which works and one of which doesn't. I do not understand this, because the only difference is that the second function puts in just the name of the variable, where the 1st function puts in the value. There is only one line to build …

Member Avatar for wolf29
0
327
Member Avatar for krystosan

I recently got a new macbook pro, can anyone suggest me a really good free python IDE i can use on OS x ?

Member Avatar for krystosan
0
356
Member Avatar for G_S

Hello everybody. Lately, I'm having a problem with PyDev which is driving me crazy: It is failing to connect to the Python console, therefore, many built-ins appear as errors (None, __name__, the os modules, etc.). I have tried downgrading PyDev, I have tried disabling IPv6, I have tried disabling my …

Member Avatar for G_S
0
307
Member Avatar for nathan.pavlovsky

Hello programmers! I am creating a player vs. computer connect four game. It has full interactivity along with error checking for invalid inputs by the player. However, when the main() function is run, the program "stops"/or freezes up after there are five pieces in the connect four board. The game …

Member Avatar for nathan.pavlovsky
0
174
Member Avatar for nathan.pavlovsky

Hello, as a project I am working on a player vs. computer game of Connect Four- where the computer has a lot of attitude. My code is below; the comments explain everything. ` // A Player vs. Computer Connect 4 game` #include <iostream> #include <vector> #include <string> #include <cstdlib> #include …

Member Avatar for nathan.pavlovsky
0
1K
Member Avatar for manuel.a.gonzalez.5494

I was wondering how could I solve this problem, I have a php project in which I have tables, but I didn't use `<thead>` and `<tbody>`, but now I am using DataTable jquery plugin, and it needs that the tables have them, so I need to modify all of my …

0
101
Member Avatar for prakash2813

Hi everyone... Before a week my pc worked fine...but after some days when i started, it didn't work..so i repaired from shop... The problem is that it shows 800 x 600 disabled resolution..so i can't change it... My PC confg is : Win 7 32bit 1 gb ram Intel Pentium …

Member Avatar for Rik_
0
187
Member Avatar for lancevo3

I am working on an application that will keep an eye on specific folders on a computer and monitor whether a modification will occur, I am wanting the capability to monitor Windows OS, OS X, Linux. I am planning on developing this in python, from what I have been able …

Member Avatar for rubberman
0
128
Member Avatar for MRehanQadri

#include <iostream> #include <fstream> using namespace std; class a{ public: void set(int x){num = x;} int get(){return num;} private: int num; }; int main(){ ofstream o_("test.txt"); o_.close(); ofstream os("test.txt", ios::binary | **ios::app**); a o; o.set(1); os.write(reinterpret_cast<char*>(&o), sizeof(a) ); // a o2; // o.set(2); // os.write(reinterpret_cast<char*>(&o), sizeof(a) ); os.close(); a o3,o4; …

Member Avatar for MRehanQadri
0
2K
Member Avatar for Chris450

Hi I just started playing around with Visual Basics today and thought it would be cool if I could make a program to work out the weight and the price of a square peice of steel. I have tried to solve the problem and fixed many errors but now I'm …

Member Avatar for Chris450
0
236
Member Avatar for kgizo

Hi I am using Mac OS X and I just installed eclipse but it just cant seem to read my headers. I saw a coulple of manuals on the internet but none of them seems to work, I need to know what directory should I enter in the GNU C++ …

0
78
Member Avatar for varadha_sd

#hai.i am using libavcodec to write video file from buffer which is capture from usb camera.i am getting video output file with larger in size.i have to compress my video file size.plz suggest me needful thing..my code is here... OS:linux IDE:Qt # void videoctl(uint8_t *destination) { //destination -->buffer from video …

Member Avatar for varadha_sd
0
202
Member Avatar for ajit.nayak3

how can i plot the graph for the below code.I am having matplot library.plot graph for time vs v1 and time vs v2 and in Time1.csv file for tS import csv def test1(): inputCSV = open(r'test.csv', 'rb') outputCSV = open(r'test1.csv', 'wb+') appendCSV = open(r'test1.csv', 'ab+') cr = csv.reader(inputCSV, dialect = …

Member Avatar for TrustyTony
0
257
Member Avatar for heartly.regis

I'm developing a web application. In this application we want to load the following data in a web page: 10,000 records. 3 fields in every record Each record 35 byte in size For all 10,000 records 350 KB total. Sample record: 10102018abcdefghijkl0123456789012345 First field: 10102018 Second field: abcdefghijkl Third field: …

Member Avatar for IIM
0
165
Member Avatar for rev_ollie

Hi, I'm doing some more work on my sensor program - and it now has a GUI and graph which I'm happy with. I'm having a look at a WX python tree - which looks like a good control for what I'm looking for. The question I have is this …

Member Avatar for rrashkin
0
221
Member Avatar for tristanhall

We are making the switch to iMacs later this year but to improve employee productivity and enforce access policies we need to find a "business class" internet filter for our new iMacs. I can always configure our network to block the sites but this is primitive as it doesn't filter …

Member Avatar for JorgeM
0
332
Member Avatar for JaceLightning

I am trying to figure out what it would take to create software like [MaxiVista](http://www.maxivista.com/) or [ScreenRecycler](http://screenrecycler.com/ScreenRecycler.html). I have good experience with Java and C++, but these two programs are just awesome and over my head. Basically, they take a window from one computer and transfer it to another. Does …

Member Avatar for ktsangop
0
253
Member Avatar for darylglenng

package wow; import java.io.PrintStream; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Wow { String question; String answer; int correct=0, number=15; Wow[] quizBank = new Wow[15]; List<Wow> quizList = Arrays.asList(quizBank); public static void main(String[] args) { Wow bank = new Wow(); bank.bankList(); bank.askQuestion(); } //end main public void …

Member Avatar for M4trixSh4d0w
0
342
Member Avatar for rohit.kaira

i m using macbook pro osx crashed i m stuck in disk utility 320gb hd ( 1 partition name Mac osx install esd ) wich is below hitachi) showing capacity 319.21, available ,used 4.43 gb if i m erasing 320 hd it showing me disk erase failed with error : …

0
146
Member Avatar for fyra

Hi. The function msgget from sys/msg.h is not being recognized by Netbeans 7.2.1. Have I missed anything? OS: OpenSUSE 12.2 "Mantis" #include <stdio.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> extern void exit(); extern void perror(); int main(void) { key_t key; int msgflg, msqid; fprintf(stdout, "All numeric input is expected to …

Member Avatar for Moschops
0
255
Member Avatar for amit.jirange

Hello Friends, I am sending 5 sms from my asp.net application in c# at a time using HttpWebRequest. Its running fine but sometimes sms sending fails becoz of this error: Error : The underlying connection was closed: An unexpected error occurred on a receive. Code for sending sms: I tried …

Member Avatar for tinstaafl
0
342
Member Avatar for ret801

I am have been tring to get my app to just display a string from another class forever! Here is part of the main class I have that has a sensor manager, I want to be able to shake it and display the string from my Jconnect class. From my …

Member Avatar for ret801
0
298
Member Avatar for Goldfinch

So I just updated to Mac OS X 10.8 and I'm having a serious IT problem that is preventing me from compiling any code. It looks like I've installed Java 7, but its trying to access a nonfunctioning version of OpenJDK8

Member Avatar for tux4life
0
70
Member Avatar for vizz

I need to create chart for log Database fields are, *** host * pageurl * VisitPage * VisitorIP * VisitDate * VisitorTimeZone * VisitTime * browser * operatingsystem * referer** I need chart for **Toatl Visits, Uniquie Visits, Impressions, Online Users, Pageviews, %New Visits, % Uniquie Visits, %New Visitor, %Returning …

Member Avatar for broj1
0
169
Member Avatar for vizz

I have created **log.php** to get **visitors information**. It is included on **index.php**. But it is adding records to database **without single visit** to **index.php**. After few seconds it adds records continuously. Help me please. **index.php** <?php include_once('log.php');?> **log.php** <?php $page_name = $_SERVER['PHP_SELF']; // PAGE NAME $parse_page_name = basename ($page_name); …

Member Avatar for vizz
0
406
Member Avatar for ehpratah

hi fellas out thiere im having a headache right now in sending email with attachment..im using ftp in storing the file in my dirctory and sending it to my email...i can upload the file and send it but the prolem is when i try to dowload the file from the …

Member Avatar for ehpratah
0
218
Member Avatar for wwielen

Hi, I'm trying to make a slider, but for some reason all the numbers of the slider get in left corner of the frame, all at the same position(instead of the 1;left,the position of the slider;middle and 100; right). Also see added File Here is my code: import wx class …

Member Avatar for wwielen
0
141
Member Avatar for rch1231

Why is it people who have never used Linux are so sure it is not any good? The impression I get from most of the people I run into running Windows Server is that they are experts on how Linux does not have the same capabilities as Windows. They seem …

Member Avatar for david.phillips.902
0
406
Member Avatar for padton

There must be a better way of writing the following code, I would really appreciate your suggestions and coding. I am new with python. Thanks. A1 = os.path.join(pathname, "x") A2 = os.path.join(pathname, "x", "y") A3 = os.path.join(pathname, "x", "y", "z1") A4 = os.path.join(pathname, "x", "y", "z2") createPath(A1) createPath(A2) createPath(A3) createPath(A4)

Member Avatar for TrustyTony
0
231
Member Avatar for tactfulsaint

I dont know if it happens to other people's mac but mine whenever i delete file or data from my flash drive with me mac it leaves exactly the same size of the same files i deleted in a .Trash, _DStore folder. plus how can i enable show/hidden files on …

Member Avatar for epicSHOOTER236
0
181
Member Avatar for myadav

Hi All I am new to java. I am facing a problem I want to compare a string to a set of strings, For example there is variable string x, If the value String X matches to String A , String B, String C then run the particular code otherwise …

Member Avatar for myadav
0
6K
Member Avatar for squeak24

I am trying to get Open Office Impress so I can do some flash creation. But I can't seem to find the link to download. Anyone know where it is. I am runnig OS X 10.8.2 Any help would be appreciated.

Member Avatar for squeak24
0
94
Member Avatar for hemalatha.nambisan

# # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs/2.0/> for detailed information about # the directives. # # Do NOT simply …

Member Avatar for hemalatha.nambisan
0
371
Member Avatar for caswimmer2011

Hi, I am making a program to open the application TextEdit on a mac (not a specific file, just open the program). I have been researching it, but have not come across much help. I have seen that I should use Runtime or Desktop classes, but i'm not sure which …

Member Avatar for caswimmer2011
0
331

The End.