Creating a barcode in java

Nice little library to do this is located at http://www.barcodelib.com/java_barcode/main.html… import com.barcodelib.barcode.*; public class MyBarCode { public static void main (String args[]) throws Exception { Linear barcode = new Linear(); barcode.setType(Linear.UPCA); java.util.Random r = new java.util.Random(); String str = new…

Managing F5 load balancers with the python bigsuds library

Connecting to a GTM from bigsuds import * b = BIGIP(hostname = ‘GTM_Name_orIP’, username = ‘your_username’, password = ‘your_password’) for pool in b.GlobalLB.Pool.get_list(): for member in b.GlobalLB.Pool.get_member([pool]): for i in range(len(member[0])): print “Pool =”, pool, \ “, IP”,member[i][‘member’][‘address’], \ “listens…

Birthday paradox in python

I love things like this. Earlier, we produced a working example of the Monte Hall problem. In this post, we show something similar for the birthday paradox… c:\Python27>type c:\Users\showard\bday.py from random import randint cnt = 0 for k in range(2000):…