Testing Hilit.me
We are resuming blogging, and this time we intend to be consistent. Less than half a dozen blog entries on the company web site is pathetic, if I have to put it mildly.
We have build a blog engine in Django, which is actually pretty decent. What sucks in that it's still rich text formatting. One of the needs is a good way to integrate source code inside the article.
CSS is not my personal strong suite, and neither is design. Hence trying with Summer Note and http://hilite.me.
Check the end result as given below, and let's know whether it;s worth it.
import os, signal, time def process(x): # Ask user for the name of process name = x try: # iterating through each instance of the process for line in os.popen("ps ax | grep " + name + " | grep -v grep"): fields = line.split() # extracting Process ID from the output pid = fields[0] print(pid) # terminating process os.kill(int(pid), signal.SIGKILL) print("Process Successfully terminated") except Exception as e: print(e) print("Error Encountered while running script") while 1: process("javae")
Edit
This sucked! There are some CSS clashes! So now trying to embed with Github Gist.
Leave a comments