This looks promising. Thank you, I will be looking into it.
lasher511 commented: Cheers man appreciate it. +3
This looks promising. Thank you, I will be looking into it.
Not exactly. I want something where the users of the site can upload files to a publicly accessible directory, for sharing purposes.
Hello everyone. I have a webserver that I would like to implement a file upload program on. I have been looking all over the internet for something that visually uploads files. I tried Megaupload 1.35 (SourceForge page), and it gave me error messages. The server has the latest versions of Apache, MySQL, and PHP. The errors I get go something like "The requested URL /cgi-bin/process.cgi was not found on this server." I followed the directions, everything is in the proper place. Please help me fix the error, or direct me to another program that can visually upload files. Thank you.
I got it. I changed the read mode from 'U' to 'rb'. Odd, but it works. Thanks for your help everyone.
I am using python 2.5.4, and I don't think that I can specify encoding. When I try to, it gives me the following error: " 'encoding' is an invalid keyword arguement for this function". I will look through the documentation to see if I can change the encoding. Thanks for the help.
Edit: I don't think 2.5.4 allows the encoding to be specified.
I appologize for the length of this post, but I have no clue what is wrong with my program. As an experiment, I wrote a XOR encryption program. It isnt very fast, but it works. Apparently, only for strings. I implemented a file encryption function, and it seems that some characters come out slightly different (As in the ord() function returns numbers that are only slightly different). I have tested the same string as contained in the file using the string encoder, and it works fine. Any help is greatly apppriciated. My code is attached below, Along with a couple text files. The unmodified text is in unmodified.txt, the encrypted text is in encrypted.txt, and the decrypted text is in decrypted.txt. There is also errors.txt, which shows which characters are off and by how much. Again, All help is greately appriciated.
from __future__ import division
from math import ceil
def xor_tuple(message, password, type): #XOR a few characters
len_mess, len_pass = len(message), len(password)
if len_mess != len_pass: raise message + ' and ' + password + ' are not same lengths!' #Not same length strings
result = [] #Empty list for result
for x in range(0, len_mess, 1): #Cycle through characters and XOR them, then append them to the list
if type == 'chr': #Outputs characters
result.append(chr(ord(message[x]) ^ ord(password[x])))
if type == 'int': #Outputs a list of numbers, the result of ord(char)
result.append(ord(message[x]) ^ ord(password[x]))
return result
def crypt(message='message', password='password', type='chr', input=''): #Encrypt/Decrypt function
#Type - chr returns characters, int …
Thanks. I didn't end up doing that exactly, but I greatly appreciate your help nonetheless.
I found it http://docs.activestate.com/activepython/2.5/pywin32/win32api__InitiateSystemShutdown_meth.html.
Thanks for your help. Now all I need is to run the program in the background. I read somewhere this can be accomplished by running it as a service? How would I go about doing that?
Thanks for your help... it seems that command would work.. except it give me a type error.
import win32api
win32api.InitiateSystemShutdown()
TypeError: InitiateSystemShutdown() takes exactly 5 arguments (0 given)
I will look for the documentation in the meantime.
Hello. I have come across many scripts for rebooting remote computers using python, but what about the computer the script is running on? If possible, I would also like my script to run in the background so the little cmd box is not visible. Thanks in advance for your help.
Thanks man. Sounds like a good weekend project to try.
Oh shoot. Forgot to mention. When you find the Flash Ready Switch, solder it in the "On" Posistion. And you should probably turn on the microphone boost on your computer. I really reccommend that, because, mine didnt work until I did that.
People, I strongly urge you to only attempt this if you know what you are doing. There are high voltages involved in this (200-1000 Volts) And you can get shocked. I strongly advise the utmost caution while attempting this. While the shock will not really harm you, it is extremely painful. BE CAREFUL.
First, The Materials.
A Disposable Camera (2-5 Dollars)
An Older 3.5 mm Stereo Jack (Free - 1 Dollar, Electronic Goldmine - 6 Ft. Cable )
A SCR (Silicon Controlled Rectifier, Like A Transistor) (Digi-Key,Digi-Key #EC103D-ND, 39 Cents)
Electret microphone (Just a normal microphone, WITH A STEREO 3.5 MM JACK) (Free)
A Camera Capable of Prolonged Exposures or a bulb "B" Exposure Setting (AKA A newer SLR camera)
A Multimeter with a high-voltage DC option.
The Steps
Take apart the disposable camera (CAREFULLY) So that the only parts remaining are the circuit board and the battery. Remove the battery. Short the capacitor. ( The capacitor is the cylindrical thing. It has two leads. Put a piece of wire or metal pliers across the two leads to short it. It might make a loud sound. And smoke. This is normal. )You need to solder wires to two places. These wires trip the flash. Sometimes the places you need to solder this are obscure in location, but are sometimes obvious. I recommend going to your local CVS and grabbing one of their CVS brand cameras (AKA the …
I don't suppose you would be able to post instructions on here about how you build it. I would be interested in putting my own version together and possibly adding in a second picture of to be taken 1 second after the initial one.
Yes, I will think about that. Anyone wishing to build one should be willing to accept failure, and needs to know how to solder.
I will post instructions as soon as I write them.
That is a steel bearing dropping into Jello brand gelatin... If you are talking about the red one.
>> Can't say i have a wall though.
Damn. Can you throw high?
Also, can you set off a sequence of snapshots? You know once the sound triggers could you take (say), five photos as fast as possible after that?
Unfortunately, No. The disposeable camera (Which supplies the 1/1000th second long flash to light the scene) does not charge fast enough to make even one flash every second, let alone several hundred a second. A strobe might suffice. The other problem. If I did get a strobe, the camera would be exposed several times (Hence ruining the shot). Sorry, gotta leave the Image Sequences to the pros (Who have much more money).
Edit:
The sound dosen't trigger the camera. Insted I enter a dark room, and open the shutter for about 10 seconds. I have the ISO set to 100,and the f/Stop set to 4.5. Since the flash would go off several times, it would make for a very bright picture.
The ballon one is hot.
Just a suggestion, get some better lens or sensors. The image quality could better show what is happening (especially the one with the jello)
It only cost me 20 Dollars to make with existing supplies (eg. jello and camera).
Just a thought.
I have just finished a sound-activated high-speed flash photography rig... and the pictures are pretty cool. I have pictures of pencils snapping, balloons popping, lightbulbs shattering, and *ahem* a steel ball bearing dropping into *cough* jello and chocolate pudding. Pretty funny.
Where can I find some really good tutorials for starting to learn java?
Thanks
Dan
Honestly, I am an atheist... but here is a question to answer your question. If you beleive that we can communicate with other universes, than there must be a way to communicate with heaven. Hypothetically speaking.