Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Endorsements
Ranked #496
Ranked #490
~43.2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for shanenin

I am trying to get in the habit of practicing coding on daily basis. I decided to try do do tic tac toe in powershell. This took my a rediculous amount of hours to finsh. I am glad to be done. Nest projec will be something more useful like automating …

Member Avatar for Nutster
0
1K
Member Avatar for shanenin

I don't understand why my function is not giving similar output as the first example of powershell code PS C:\Users\shane> $x = 3 PS C:\Users\shane> $y = 6 PS C:\Users\shane> $a = $x + $y PS C:\Users\shane> Write-Host "The answer is $a" The answer is 9 My function using similar …

Member Avatar for shanenin
0
334
Member Avatar for shanenin
Member Avatar for shanenin

These would seem to be equivalent but according to the interperter they are not. I have been banging my head with this for along time >>> a = '123456789' >>> a[0:9] '123456789' >>> a[0:9:1] '123456789' >>> a[::1] '123456789' >>> a[::-1] '987654321' >>> a[0:9:-1] #why is this not equivilent to a[::-1] …

Member Avatar for snippsat
0
120
Member Avatar for shanenin

I am not sure if this is an appopropiate place to post this, but..... I am working on a site using squarespace.com. The problem I am haivng are jagged fonts. I have enclosed the link to my site. it is still in progress, The Home pages shows a good example. …

Member Avatar for LastMitch
0
124
Member Avatar for shanenin

I can't seem to see how this slice works test = (1,2,3) >>> test[::2] (1, 3) any insite would be helpful

Member Avatar for shanenin
0
1K
Member Avatar for shanenin

I am just back messing around a bit with programming. I am trying to clear out the mental cobwebs. I thought any non empty string evaluates to True. but according to my code, it does not apear so word = 'abc' if word is True: print 'yes' else: print 'no' …

Member Avatar for Gribouillis
0
106
Member Avatar for Micko

Hello, I'm learning Python. It is my first interpreted language. I have some experience with C and C++. I must admit that it's very hard for me to accept a concept of interpreted language. For example I write code in C++, compile it, link it and I have .exe file …

Member Avatar for darkside2205
0
319
Member Avatar for shanenin

I had a website that was made for me a while back. I am trying to update the info. I am doing my best to make changes to the code. It renders fine in all the major browsers except IE. This page in particular does not work, [url]http://brighteyedcomputer.com/test/site/contact[/url] . The …

Member Avatar for drjohn
0
166
Member Avatar for Fallen05

Hi.. Ive been doing python for about 2 days now (my 1st programming language) and im wondering, after ive made the .py file, and all the codes in it, how do i run it? To be honest im not even sure if the term compiling is right... I am doing …

Member Avatar for Fredo699
0
276
Member Avatar for Gargen

im just curious im currently learning all major programming languages that are usefull to me and i am wondering what is python useful for in a realistic sense

Member Avatar for Orion2k
0
525
Member Avatar for Avner .H.

Hello everyone! I want to use bash from python, however the os.system([I]command[/I]) seems to act only on one command at a time. I want to use complete commands, also containing control flow statements, like If and While, and to call them from python. something like this code in bash: T1="foo" …

Member Avatar for sneekula
0
784
Member Avatar for rinque

As mentioned in the title. I wrote a script that has pretty long execution time. Some user just close the window half way and in the end cause some file corrupted. Is there any way to prevent the user closing the window? (Like turn the 'x' button of the window …

Member Avatar for rashshell
0
124
Member Avatar for a1eio

i've made a little animation using python and the pygame module, I'm just wondering if it's possible to turn that into a screensaver? is there a format i have to save it to? If anyone knows i would be grateful for the solution thanks, a1eio

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for leoman

have written a shell script in which I use fastmail to send emails from the shell script. It sends email to my company account with no problem. But I wan to send the same email to a pager number so that the pager goes off when the particular condition occurs. …

Member Avatar for KlementHonza
0
2K
Member Avatar for leb

Do any of you know a function to play a playlist in PyGame? The music files on the playlist should be played one after the other in the order they occur. Any type of help would be appreciate it.

Member Avatar for hupa_nguyendinh
0
185
Member Avatar for joey101

I'm working on making a server control panel in python (like cpanel, plesk, etc) and wanted to know if any one knew of some tutorials on using bash and python together for creating users and stuff on a *nix system. Also if any one knows of a tutorial on using …

Member Avatar for ovoid
0
733
Member Avatar for xav.vijay

Hi friends I am trying to connect to a Linux machine from a Windows PC. I used to do it thru TELNET, but now I want to use SSH for better security. I tried with PYSSH, but I am going nowhere with it... Parmaiko is not working in Windows... Is …

Member Avatar for xav.vijay
0
563
Member Avatar for chrchcol

I am trying to write a command line bash script that will allow you to send mail to an email address using some variables. The email is a signup form with username and passwords. The subject line and most of the body will be hard coded. The script should ask …

Member Avatar for riotxix
0
204
Member Avatar for shanenin

I am trying to position my logo at the very top and center of my web site. I am able to get it centered from left to right. The problem is I have about a several pixel space between the top of the image and the top of the web …

Member Avatar for DangerDev
0
97
Member Avatar for shanenin

I feel like kind of dumb. I have been reading python docs all day, and feel like I have not absorbed anything. I would like to parse info out of an xml document. here is a url to a sample doc [url]http://freetalklive.com/netcast.xml[/url] lets say I want to parse out the …

Member Avatar for vegaseat
0
172
Member Avatar for justsomerat

How to compare a number stored as string to an integer value in shell scripting? Here is what I have, if [$temp -ge 2.5] then; when I run the above code, it gives the error as "Integer Expression expected". Here the temp variable contains the number "3.0" as a string, …

Member Avatar for mittelgeek
0
220
Member Avatar for pallavimahjan

Hi i am facing this problem, please help me in my korn script ------------------------------------------------------------- export $job_ids echo "#Message creation" >message-typing.typ chmod 777 message-typing.typ echo "orderParser:1:999:210:T" >>message-typing.typ echo "*REQUEST=FLOWTHRU;[B]JOBID=${job_ids}[/B];OLD_DD=20050629000000;%" >>message-typing.typ cat message-typing.typ ------------------------------------------------------------- Now the job_ids is a variable consisting of job id, and if u see i have exported this …

Member Avatar for pzwcsx
0
94
Member Avatar for shanenin

I am trying to make a navigation bar using a list. Since a list is indented by default, I can't seem to get my list all the way to the left. I have looked at examples of this, but am not sure how they are doing it. Below is what …

Member Avatar for FC Jamison
0
185
Member Avatar for shanenin

I have been messing around trying to figure out some basics of html/css. I have a tan background with a white table. I want the background only to show up on the left and right sides(table is centered). The problem is the background is showing up on the top and …

Member Avatar for shanenin
0
113
Member Avatar for a1eio

hi, i'd like to create something that basically grabbes information from websites, however i havn't any experience in urllib (apart from very basic page reading) and the issue is that the page i want to grab data from checks to see if another page is connected to it or perhaps …

Member Avatar for metabo_man
0
336
Member Avatar for chrchcol

I have an index.html file that I need to be able to modify depending on if its secure or unsecure, can I use cat and or grep in a script to modify text in it? Chris

Member Avatar for chrchcol
0
298
Member Avatar for shanenin

I was seeing if I could use python to delete a file upon reboot. I am only able to rename it at reboot, I can't figure out the syntax to set the destination to null. Below is what works to rename the file [code] import win32file import win32api win32file.MoveFileEx("test.txt", "test2.txt" …

Member Avatar for vegaseat
0
430
Member Avatar for shanenin

I have a very simple plugin I wrote for freevo. below is the plugin. it will shutdown your computer after your avi file has finished playing, kind of like a sleep timer. [code] #!/usr/bin/env python import os import time import commands import thread import plugin from gui.PopupBox import PopupBox from …

Member Avatar for shanenin
0
3K
Member Avatar for shanenin

I am not sure if any of you use a pvr. Linux offers some good choices. One of the choices is freevo, it is fully implemented in python. Of cource it uses tools like mplayer(video player) and others that are written in c/c++ . I wrote python script that makes …

Member Avatar for vegaseat
0
219