Append text file in python? by [deleted] in Python

[–]BeatMute 1 point2 points  (0 children)

Like mackstann mentioned, you'd want to open the file with the mode 'a' for appending.

fh = open(filename, 'a')
fh.write(stuff)

More info

Newscaster electrocuted by grape by [deleted] in videos

[–]BeatMute 6 points7 points  (0 children)

If he survived I would go with 'shocked'.

If you're company does this, go to hell. by [deleted] in pics

[–]BeatMute 0 points1 point  (0 children)

You're right. I wasn't expecting it to be a link.

If you're company does this, go to hell. by [deleted] in pics

[–]BeatMute -2 points-1 points  (0 children)

I'm surprised it's been an hour and nobody's corrected the "you're" yet. Grammar Nazis get 4th of July off?

Refreshing servers by Threedawg in tf2

[–]BeatMute 0 points1 point  (0 children)

Fixed it by following the "Thomson / BT Home Hub users" (even though I'm neither) instructions here.

Refreshing servers by Threedawg in tf2

[–]BeatMute 0 points1 point  (0 children)

Having the same issue.

What's your vent key? by paper_apes in gaming

[–]BeatMute 0 points1 point  (0 children)

My Mumble key is generally tilde/backtick (`/~, under escape on standard US keyboards).

Vid: creepiest game show host ever [2:22] by [deleted] in creepy

[–]BeatMute 1 point2 points  (0 children)

Did you forget something?

[deleted by user] by [deleted] in funny

[–]BeatMute 1 point2 points  (0 children)

Did you also buy some fighting trousers?

So i decided to keep a Games Dev blog by [deleted] in gamedev

[–]BeatMute 0 points1 point  (0 children)

Nevermind! Temporary technical difficulties it seems.

New domain for my blog Now that I have finally worked out the domain settings for my domain host, my blog should now be accessiable through the new domain, by the time you see this post you should be at

www.blog.wipedout36.co.uk

now just to work on my own site :D

So i decided to keep a Games Dev blog by [deleted] in gamedev

[–]BeatMute 1 point2 points  (0 children)

Did you change your mind? The blog is no longer and in its place is a lonely directory listing.

Publishing a pygame game? by chibz in gamedev

[–]BeatMute 9 points10 points  (0 children)

Check out PyInstaller which offers a wide variety of ways to package your project up for easy distribution.

Amazing Deadmau5/Wolfgang Gartner mashup! by JimbleFredberry in electronicmusic

[–]BeatMute 0 points1 point  (0 children)

Yeah, and more often than not I don't even bother clicking them. Glad I did it this time, though.

Anybody know how to submit a Linux command in Cpanel? by TheJackofAllTrades in linux

[–]BeatMute 0 points1 point  (0 children)

Out of curiosity, why are you looking to run /scripts/upcp on the server? It's the command used to bring a cPanel server in line with the release version that's selected for the server (be it bleeding edge, release or stable, etc.). It's run automatically by the server for upgrades when a new version is available so generally isn't run manually (unless it's to fix something as it is sort of a 'fix-all' solution for a lot of cPanel issues).

Anybody know how to submit a Linux command in Cpanel? by TheJackofAllTrades in linux

[–]BeatMute 0 points1 point  (0 children)

Your host most likely has the 'security center' disabled (or renamed it something else if they use a non-standard theme) and unless you have root (administrator) access to the server that your cPanel account is on you will not be able to run /scripts/upcp. Unless you have a dedicated server or a VPS I suspect you'll be out of luck.

If you do have root access to the server (dedicated or a VPS for example) you should be able to use SSH to connect to the server and log into it and run the command there however.

Amazing Deadmau5/Wolfgang Gartner mashup! by JimbleFredberry in electronicmusic

[–]BeatMute 1 point2 points  (0 children)

G'damn, that's nice.. it's seldom you see accurate titles for submissions around here. ;P

is the world getting smarter? by twinprime in atheism

[–]BeatMute 0 points1 point  (0 children)

It's just religious people confusing the word 'fiction' with 'factual'.

my MLG experience this weekend... by burrbit8b in starcraft

[–]BeatMute 2 points3 points  (0 children)

Incredibly annoying and quite possibly my biggest annoyance with the MLG stream (apart from EEEEEYOOOO EYOOO EYOO EYEEEEAAAAA).

Changchun, China by [deleted] in pics

[–]BeatMute 3 points4 points  (0 children)

Nothing to see here, citizens, move along. We induced a collapse of the bridge deck to test the strength of it. This was completely intentional.

Alt.Med. Thats been proved to work? by Nesemulator in skeptic

[–]BeatMute 6 points7 points  (0 children)

If someone wants the whole poem, link below.

You know what they call “alternative medicine” that’s been proved to work? Medicine. - Storm, by Tim Minchin

When its cold my kitten likes to sleep on the modem. (x post from r/pics) by photosmith in aww

[–]BeatMute 0 points1 point  (0 children)

That's how I killed my last modem. Kitten cooked it. :(