1,336 Topics

Member Avatar for
Member Avatar for jay.zyzz

**Tic-Tac-Toe without a class** Write a modular program that allows two players to play a game of tic–tac-toe. Use a two-dimensional char array with 3 rows and 3 columns as the game board. Each element of the array should be initialized with an asterisk(*). The program should display the intial …

Member Avatar for jay.zyzz
0
9K
Member Avatar for adil.mahmud.choudhury

I am very new to python. I have developed a program using the GUI of python. My development is almost done but i am stuck with a point. I have designed my gui using Listbox to read data from a file and show it. All i need to add a …

Member Avatar for woooee
0
180
Member Avatar for chuyauchi

I'm making an Android maze game. Currently, I'm using the UP/DOWN/LEFT/RIGHT button from the emulator. I would like to add the motion sensor to move the ball. How do I use the motion sensors? Is there any open source to control the ball? http://images.plurk.com/4OmXYw7VZ76FYg2eufH4Bz.jpg package com.chrischu.inclassassignment_3; //import com.chrischu.mazegame.R; import android.annotation.SuppressLint; …

Member Avatar for peter_budo
0
156
Member Avatar for dilansankalpa

Hi i have an active x application and i need to add it to a windows form application. First i installed the active x control set up and in the installed location in shows a .exe. Then i tried to add it to Visual Studio Tool Box. (right click on …

0
77
Member Avatar for Amy_3

I am new to python. How to instantiate object from parsing a file? I got a error. File "/home/Bunny.py", line 23, in main mapgrid[i].append(Spot(myLine[j] == 'B')) TypeError: 'module' object is not callable The first line of input is the number of simulations. The next line isthe number of minutes for …

Member Avatar for Xantipius
0
280
Member Avatar for dboxall1234

hi i've recently been learning about python on cssciencecircles.com. After a while i decided to download it so i can save some of my programmes. When i make a programme in the IDLE shell and save it, even the most simple instructions, eg. print('hello world') , when i try to …

Member Avatar for dboxall1234
0
750
Member Avatar for jayl935

Here is my propblem. It's going get to get confusing or at least I'm confused. This is connected via ethernet to my router (e.g. name: RogerRabbit). Guest OS: I have an Openfire Server running on a Linx Mint 8 Virtual Machine. The address is XXX.XXX.X.107 Host OS: Windows Vista XXX.XXX.X.106 …

Member Avatar for jayl935
0
402
Member Avatar for ninad.chandoskar

Hi guys, I'm a student and need to practice Oracle SQL queries since we have Advance SQL in our syllabus. I have Intel-based MacBook Pro running Mac OS X Snow Leopard 10.6.8. I just downloaded the SQLDeveloper for Mac and unzipped it. The application executed and started well. But I'm …

Member Avatar for debasisdas
0
535
Member Avatar for Thomasmcdaniel

This script is suppost to autorun from the flash drive once it is inserted into the pc it needs to auto download files to a paticular folder called (MEDIA) And it is supposed to over write whatever is in the (MEDIA) folder and add the new content from the flash …

-1
66
Member Avatar for alakaboom1

Hi, I'm really new to both Pygame and Python. To get started, I just want to create a basic program of a sprite called "Player" in a background that responds to keyboard input. I pretty much just want to program it to move left and right in response to the …

Member Avatar for jmorris1324
0
423
Member Avatar for dingjhzt

Why convert <a href="http://www.league-soft.com/how-to/convert-avi-to-mp4-mac.html"> AVI to MP4</a> on Mac?"I want to edit AVI in iMovie, but I found that iMovie dosen't work well with the AVI video, what should I do?" "I imported some AVI videos to my iPod and found that iPod dosen't support AVI video, which program can …

Member Avatar for rubberman
0
659
Member Avatar for kristo5747

Hello, I have a script that "validates" a ZIP file that look like this > AAA_20120801.zip => > x~back end~20120801.TXT > y~time in~20120801.TXT > z~heat_chamber~20120801.TXT > AAA_20120801.ctl My task is to compare its contents (i.e the list of files contained inside) with the control file that is provided inside the …

Member Avatar for kristo5747
0
132
Member Avatar for CharleneM

Installing a PowerPC G3 with OS 9.2.2 (6GB hardrive) for someone less-advantaged, but realize that the browser, in particular, presents a problem just in rendering. I've installed iCab 3, but not sure she can keep up with the updates. Question: Can this hardware run OS X (Tiger) smoothly? anybody have …

Member Avatar for sheikhali449
0
202
Member Avatar for ChristianOncken

from socket import * from time import time, ctime import thread import Queue import os class ThreadSafeConsole(Text): def __init__(self, master, **options): Text.__init__(self, master, **options) self.queue = Queue.Queue() self.update_me() def write(self, line): self.queue.put(line) def clear(self): self.queue.put(None) def update_me(self): try: while 1: line = self.queue.get_nowait() if line is None: self.delete(1.0, END) else: …

Member Avatar for ChristianOncken
0
2K
Member Avatar for HTMLperson5

Hi, everyone. I am making a tic - tac - toe game and I am having some trouble. As you can see I have made good progress: from os import system a = "1"; b = "2"; c = "3"; d = "4"; e = "5"; f = "6"; g …

Member Avatar for TrustyTony
0
283
Member Avatar for Flowerlady

I know zilch about electronics, that is why I am on this site, because I have a problem. I do R & D in the world of Metaphysics, and my specialised subject is Subtle Energies. Normally in this field we have to use things like Pendulums, stick pads, muscle testing …

Member Avatar for mike_2000_17
0
141
Member Avatar for TrustyTony

I am trying to write safyfied evaluator class, and get unexpected `__builtins__` added to dictionary after evaluation. Can somebody explain why/how it happens? import math def echo(n): print n return n def nothing(n): return n debug = nothing class MathParser(object): ''' Mathematical Expression Evaluator class. call evaluate() function that will …

Member Avatar for HiHe
0
308
Member Avatar for syrose

I hope this is the right place to request help with the error message: "Verify volume failed with error Could not unmount disk" I use a Mac OS X/10.4.11/Dual 2 GHz PowerPC G5/ 7 GB DDR2 2SDRAM. Software is fully updated. The computer has two internal disks and an external …

Member Avatar for smeagol999
0
252
Member Avatar for BruceSmith

Have you ever given a thought about installing three different type of Operating System on a single computer? Not Yet! Hmm... This sounds scary and too complex right? But You're Totally wrong! Its as simple as Install two Windows Based OS on one computer... Believe Me! Still Don't Believe Me? …

Member Avatar for Tannus
0
448
Member Avatar for gedas

Hey, i was wondering whether anyone ever came accross developing something that would allow to have a software installed on the vm. What i mean by that is that i would want to install ie (internet explorer)/or any other windows application whithin my java app. so it could be opened …

Member Avatar for NormR1
0
96
Member Avatar for happyhd

A console chess program that features normal chess rules including Castling, En Passant and promotion by choice. Detects draw if only kings are left, no moves possible and not in check or 50 consecutive moves without movement of a Pawn or a capture. Detects check/mate (obviously). Would be glad if …

Member Avatar for s.v.pavani
0
10K
Member Avatar for jsepeta

I would like to run older versions of OSX on my Mac Mini. Apple dropped support for Classic Mode and for PowerPC code, which broke SoundDiver, an important tool in my home music studio. All I've been able to dig up so far about OSX virtualization is that it used …

Member Avatar for MichaelLAX
0
364
Member Avatar for hanintalal

how we can write a program ,whech prints its oun source using NASM oder GCC on Linux und mac os x

Member Avatar for sDJh
0
183
Member Avatar for John Linux

Hi, I am trying to write a Bash Script to sort some images but I am new to Bash and not having any luck. I have a folder of images. Example: P100.jpg P172.jpg P342.jpg P400.png I need to change these filenames to <filename>_DEFAULT<extension>. ie. P100_DEFAULT.jpg and then move the file …

Member Avatar for KenJackson
0
238
Member Avatar for dannyniu

As you can see from the title, I'm suffering the problem. developer.apple.com didn't provide much information about this, I have to ask for solution somewhere else. I already know how to up/down-load files and create directories, but the official reference doesn't say how to undo it. I hope some one …

Member Avatar for dioioib
0
1K
Member Avatar for happygeek

The Flashback Trojan has infected at least 600,000 Apple computers running Mac OS X according to the Russian AV company [Dr Web](http://www.drweb.com/?lng=en) which researched the spread of the malware which was originally discovered at the end of last year and for which Apple issued a security patch just this week. …

Member Avatar for Danarchy
1
494
Member Avatar for nitinmbhanu

#include<dos.h> #include<iostream.h> #include<stdlib.h> #include<conio.h> #include<stdio.h> #include<string.h> #include<graphics.h> int y; int i; struct element{ char name[20]; int at_no; double at_wt,at_r,en,ion,density,mp,bp; char ato_wt[20],ato_r[20],eno[20]; char iono[20],densityo[20],mpo[20],bpo[20]; char crs[20]; char sym[4]; char earr[100]; }E[118]; void numberfind(int); void numrfind(int,int); void massfind(double); void namfind(char*); void namlfind(char); void massrfind(double,double); void ionifind(double); void ionirfind(double,double); void enegfind(double); void enegrfind(double,double); …

Member Avatar for DeanMSands3
1
251
Member Avatar for Bungie

I need help creating a pause screen for my pong game. Also if you could make a way to make the game fullscreen that would be great. Here is the code: import pygame, sys, random, os from pygame.locals import * import screen import screem os.environ['SDL_VIDEO_CENTERED'] = '1' # Pygame init …

Member Avatar for TrustyTony
0
274
Member Avatar for gowans07

Looking to buy a new desktop for video editing/production along with using after effects and bunch of other stuff at Uni. The new Ivy Bridge proccesors have just reached the market, whats your verdict should i get one or not. If not what would you recommend Sandy i5 or i7. …

Member Avatar for gowans07
0
206
Member Avatar for DAS-03590

I have a strange issue that has been bothering me for quite some time now. I have a Macbook that will not connect correctly to my home network via wireless. The issue becomes noticeable when the Mac leaves and then comes back, but won't connect automatically back onto the network …

Member Avatar for dfxgrid12
0
243
Member Avatar for deckfourtyfour

Hi I currently use Safari browser on my OS X Powerbook. When I do a search on Google, once I have typed the first letter a huge list appears with every search I have ever done starting with that letter. I want to know how to delete or turn off …

Member Avatar for dfxgrid12
0
318
Member Avatar for Lightninghawk

Unit: 2007 iMac with OS X Problem: Will not boot. Upon pressing power button it attempts to go through startup procedure then grey-screen and error message (You Need to restart your computer. Hold down the power button until it turns off, then press the power button again.) I have come …

Member Avatar for dfxgrid12
0
219
Member Avatar for V_W

Has anyone been successful in getting a SanDisk Sansa model MP3 player to work with a Mac? I changed the player's USB mode to Mass Storage Class, but Mac does not recognize it. Am using OS X, 10.3.9.

Member Avatar for dfxgrid12
0
2K
Member Avatar for imperialguy

Platforms: Windows 7/Mac OS X ActiveState Python 2.7.2 Installed docx on Windows 7 at D:\Program Files (x86)\Python27\Lib\site-packages. Installed docx on OS X at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Following is the sample script (named as docx_example.py), which runs absolutely fine on the python interpreter: #!/usr/bin/env python ''' This file makes an docx (Office 2007) …

Member Avatar for memomk
0
631
Member Avatar for John Linux

Hi, I am trying to write a Bash Script to sort some images but I am new to Bash and not having any luck. I have a folder of images. Example: P100.jpg P172.jpg P342.jpg P400.png I need to change these filenames to <filename>_DEFAULT<extension>. ie. P100_DEFAULT.jpg and then move the file …

Member Avatar for histrungalot
0
253
Member Avatar for VengefulToast

Will someone please tell me why I keep getting my custom file not found exception? The file is spelled correctly and is in the same directory of my java file. I am programming on Eclipse on Mac OS X. Here is my source: // Dillon Sheffield // Lab 10a // …

Member Avatar for VengefulToast
0
284
Member Avatar for C0ding

Hello everyone, I've been working with some python scripts for few days now, what editor i've been using? the answer is Notepad, but then i move to Notepad++ which is the one i use to edit batch files php files, and many other programming files formats, but just now i'ma …

Member Avatar for C0ding
0
417
Member Avatar for davebrown2242

Man, my *rookie* status os showing on this one... For the life of me, I cannot determine why my graphics panel section is not working to correctly display my Pie Chart.... I have the output broken down, and the variables exist... It runs looking for Annuities.csv in the C:\temp folder... …

Member Avatar for davebrown2242
0
258
Member Avatar for heryirawan1

Hi, I want to create motion detection application on android device. Could you help me? Here my code: package com.iseng; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import android.app.Activity; import android.content.ContentValues; import android.content.pm.ActivityInfo; import android.content.res.Configuration; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.provider.MediaStore.Images.Media; import android.util.Log; import android.view.SurfaceHolder; …

0
71
Member Avatar for arunpawar

Hi, I am trying my hands on lambda function and here is my code. [CODE]>>> a = [1,2,3,4] >>> b = [17,12,11,10] >>> map(lambda x,y:x+y, a,b)[/CODE] And the output is : [CODE] < map object at 0xb7540eec >[/CODE] So my question is why this map object output? Why not actual …

Member Avatar for Gribouillis
0
96
Member Avatar for dmv091

Hello I am new to Dani web but here it goes. I am trying to create a game that called Three button monte i am using graphics from zelle but and i will upload the proper code to go alone with mine. My problem is when it comes to checking …

Member Avatar for woooee
0
468
Member Avatar for ozzyx123

hi everyone i have made a program which extracts information from an email account, it extracts the date, the sender, number of copies written in the body, and it extracts the pdf file from the email and puts it into a directory, it also counts the number of pages in …

Member Avatar for ozzyx123
0
1K
Member Avatar for ozzyx123

hi everyone i am very close to finishing my first program in python, but there are two things in the way. first of all the code highlighted in red reads the number of pages of pdf files in a directory. my problem is that it is in a for loop …

Member Avatar for britanicus
0
197
Member Avatar for fussballer

Hi, I have a mac (Lion OS X) at work and was wondering if there is software available to connect to it remotely from my windows 7 Laptop at home? I would like to use XCode from my home PC. Is this possible? What software do you recommend? Thanks, Sam

Member Avatar for dioioib
0
349
Member Avatar for AccurateAG

Hi all: I have a slight problem, and I need s little advice. I need to know which image format loads fastest - jpg - gif - png Basically, I have all my images as .PNGs. Half of them are 40 X 40 pixels. The other half vary in size. …

Member Avatar for idk3danica
0
115
Member Avatar for CreativeCoding

So I am sorta interested in viruses. No, I do not plan to make the next conficker or even something that will trash my brothers PC. But I want to learn about how they work. What they do that makes PC's let them into their system... So for a first, …

Member Avatar for Pestilence
-2
183
Member Avatar for Fitchie

I have never used Python before, and unfortunately, this makes me completely ignorant. For this I apologise. I have a Dell Dell Latitude D430 laptop running Mint Katya I am attempting to start up a python script which is used to program 4 servos. I have python 2.7.1-0 as supplied …

Member Avatar for Fitchie
0
295
Member Avatar for Lucaci Andrew

I keep getting this error and i don't understand why. [code]Traceback (most recent call last): File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 105, in <module> fr_runt() File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 95, in fr_runt run.run() File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 58, in run self.data.write(file, key, value) File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 23, in write fh = …

Member Avatar for Lucaci Andrew
0
311
Member Avatar for rotten69

Hi, I have a mac book pro. I'd like to know how to burn dmg files onto DVD-R as bootable on Windows 7? Do I also need to convert the files to ISO type in order to make them run smoothly when I start up the machine? Thanks...

Member Avatar for AlexandraM
0
189
Member Avatar for zEuSsE

Hi all! I'm using mac os X (intel core duo 2) and I'm quite new in assembly coding. I've got this problem: I'd like to read a file in USB memory using assembly. Does anybody know how is it possible? And more in general can you give me some links …

Member Avatar for zEuSsE
0
334

The End.