Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Python (http://www.programmingforums.org/forum43.html)
-   -   Other people want to see my programs, how to send them? (http://www.programmingforums.org/showthread.php?t=15139)

Connahhh Feb 7th, 2008 9:39 PM

Other people want to see my programs, how to send them?
 
How exactly do I send programs to a friend via the internet? Is there a way to "upload" them? Or what?

I did a search, but was confused by what you guys were saying. Sorry.

Thanks everyone.

Sane Feb 7th, 2008 10:34 PM

Re: Other people want to see my programs, how to send them?
 
I assume you know how to e-mail an attachment, or send someone a file via MSN. But if the person you're sending your program to does not have Python installed on their machine, you've probably figured out that the .py file is useless to them. If they open that .py file, their computer does not know what to do with it unless they have Python installed. Therefore, they do not see the same thing you see.

There are ways to byte-compile your .py file, and package it with the Python dependencies, into a single .exe file. This executable file can be run from any other Windows Machine, with or without Python being installed. Check out PyInstaller for more information.

Follow the documentation closely. It can be a painful process, but it's easy once you learn how to do it. Then you end up with a nice .exe file you can send to your friends through e-mail, MSN, or however you please.

~The~ICE~Man~ Feb 8th, 2008 1:13 AM

Re: Other people want to see my programs, how to send them?
 
I have to say, Sending a file via the internet, is like turning on a PC, zip the file with winrar, winzip, or 7zip and attach it to a email, If it to big to email try a file share site or a FTP site, alot of email sites such as MSN and Yahoo will not let a .exe go through it has to be zipped, Note long ago I sent a 70 MB file through http://www.sendfile.com or http://www.filesend.com not sure what one. I have reformated since then and can't recall the exact name, Sorry but I hope this helps

How exactly do I send programs to a friend via the internet? Is there a way to "upload" them? Or what?

ptmcg Feb 8th, 2008 9:30 AM

Re: Other people want to see my programs, how to send them?
 
If you don't care that the whole world can see your program, you can use a pastebin. There are many to choose from, an easy one is http://pastebin.com/. You can even create your own personal pastebin url, just go to http://connahhh.pastebin.com.

Point your browser to the pastebin, paste your program into the text window, enter your name and click Send. Now note the URL in your browser address bar, which points to your newly pasted code, and send that URL to your friend - I just pasted you a snippet at http://pastebin.com/mcd1093b. (It will disappear in a month - you can also set the lifespan on this web site to 1 day or forever).

-- Paul

Jack Walters Feb 8th, 2008 3:09 PM

Re: Other people want to see my programs, how to send them?
 
I'd love to send my programs through email. Unfortunately, gmail doesn't allow me to send .exe files in an attachment. Or atleast it didn't the last time I checked.

Sane Feb 8th, 2008 3:27 PM

Re: Other people want to see my programs, how to send them?
 
Quote:

Originally Posted by Jack Walters (Post 140844)
I'd love to send my programs through email. Unfortunately, gmail doesn't allow me to send .exe files in an attachment. Or atleast it didn't the last time I checked.

There are some ways around that. Compressing the file as either .zip or .rar may work. Renaming the file to end with an arbitrary file extention, such as .jpg, might also work.

I remember one of these methods has worked for me in the past.

Jack Walters Feb 8th, 2008 3:34 PM

Re: Other people want to see my programs, how to send them?
 
Quote:

Originally Posted by Sane (Post 140846)
There are some ways around that. Compressing the file as either .zip or .rar may work. Renaming the file to end with an arbitrary file extention, such as .jpg, might also work.

I remember one of these methods has worked for me in the past.

I know putting it in a zip file doesn't work or alteast it didn't... I tried it. Rar archiving it probably will work. Not everybody is willing to get a rar archiver (like WinRar) to use my programs though. I know changing the extension works, too. But then you have to tell the receiver to change it back, and nine times out of ten, my receiver doesn't even know what file extension is, and/or known file extensions are hidden on their computer (usually they use Windows).

I'd just say screw it and upload it to wikiuploads or a similar site.

colin mac Feb 8th, 2008 3:56 PM

Re: Other people want to see my programs, how to send them?
 
Yahoo mail allows you attach exe's. They don't need to be zipped either.


All times are GMT -5. The time now is 9:07 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC