Category: Random

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…

HAProxy ACL based on percentage

We use F5 in production environments, but to test a functional setup of A/B testing, we used HAProxy 1.5-dev21. We have a single domain, and would like to forward requests to one of two backends based on a cookie value.…

Apologies for site slowness

All, I am aware the site has been slow for the better part of a month. This morning, I finally took the time to look at the host on which my hosting partner (1and1.com) stores the site. User CPU utilization…

Akamai GTM

Akamai’s Global Traffic Manager, or GTM for short, is technology that allows a user to configure traffic to be sent to more than one data center, or at least more than one origin URL. For an Akamai primer, go here.…

Purging Akamai cache

To purge content from the cache on the Akamai edge servers, you can use the main LUNA control center, which will push the request out to the edge servers affected. As such, keep in mind the cache is not immediately…