1,336 Topics
![]() | |
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, … | |
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 … | |
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 … | |
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 … | |
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", … | |
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 -*- … | |
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: # # # # # # # # # # # # # . . . . . . . . . . … | |
#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& … | |
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 … | |
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 … | |
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. … | |
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] … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
#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; … | |
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 … | |
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++ … | |
#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 … | |
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 = … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 : … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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); … | |
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 … | |
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 … | |
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 … | |
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) | |
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 … | |
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 … | |
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. | |
# # 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 … | |
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 … |
The End.