In certain situations particularly when dealing with networks and distributed systems you’d want your program to retry certain a particular operation certain number of times in case it fails before giving up. For instance your program is trying to connect to a mail server which is due to network connectivity temporarily giving socket error.
The simple [...]
Sometimes you want your File Transfer tool to map certain folders on your dev machine to remote folders on your different remote machines. Wouldn’t it be great if you could choose a particular file in your project, click it and it automatically uploads in appropriate folder on desired server?
For instance I have an XP dev [...]
I use this small utility function for debugging certain Python scripts, especially those for processing data, e.g. moving some bits of information to Excel.
The idea is pretty simple. Just pass it some information and it’ll be available in your clipboard.
import sys
import win32clipboard as wc
import win32con
def copy_to_clipboard(msg):
if sys.platform == ‘win32′:
[...]
Many great hackers and programmers do not consider Java programming language a good choice. The safety features of Java such as pure OO, strong typing etc. force its users to laboriously write lots of classes, declare and typecast variables, call extraneous methods to fetch simple data and puts under a lot of restrictions. Such techniques [...]