Profile cover photo
Profile photo
deepti vaidyula
92 followers
92 followers
About
deepti's posts

Post has attachment
Print files recursively in python
import os """ Print files recursively in a tree""" path_dir = raw_input("Enter the directory path: ") for root, subdirs, files in os.walk(path_dir):     level=" "*len(root.split("\\"))     print "%s|_ %s" %(level,root)     if subdirs:         pass     if fi...

Post has attachment
View from my office today #HyderabadRains
Photo

Post has attachment

Post has attachment
Java options for taking heap dump on Out of memory
Java options for taking heap dump on Out of memory javaoptions="-XX:MaxPermSize=4096m -Xms1024m -Xmx4096mm -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger -Dmail.mime.applefilenames=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/op...

Post has attachment
Python any version installation with wget
Python any version installation without yum: # Python 2.7.6: wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz tar xf Python-2.7.6.tar.xz cd Python-2.7.6 ./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /us...

Post has attachment
How to wake up early?
How to wake up early? Waking up early is a challenge to most of us. We all know the benefits of waking up early but very few people actually do it. If I have to put it bluntly, sleep early to wake up early. It is as simple as that. But, is it really as simp...

Post has attachment
Cannot remove virtual disk because it is used by "TransferVM for VDI <vdi-number> "
You run in to this issue when you are trying to copy/migrate a VM and that operation is interrupted due to what ever reason. You are now stuck with two disks for a VM and the TransferVM has the same VDI as your actual disk. As a result, when you try to star...

Post has attachment
**
What does this script do? Creates a tcp server which listens on a port. Implements signals to ensure it automatically shutsdown after a pre-configured duration which is given through command line Python version: 2.6 [root@host-172-17-95-7 module2]# cat sign...

Post has attachment
Why are there never any technical viral videos/posts?
Can I ever make a viral python video?

http://learnpythontoday.blogspot.in/

Post has attachment
Threading and Queues
from scapy.all import * import threading import Queue import time class WorkerThread(threading.Thread):     def _init_(self,queue):         threading.Thread.__init__(self)         self.queue = queue     def run(self):         print "In worker thread"     ...
Wait while more posts are being loaded