Running Selenium server as a CentOS systemd service

… is very easy to do. You need two things.  1) Xvfb for the virtual screen, 2) systemd.  (And the Selenium Server binary, of course) First Xvfb 1 2 3 4 5 6 7 8 9 10 11 [Unit] Description=X Virtual Frame Buffer Service After=network.target   [Service] Type=simple User=magiumlib ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24   [Install] WantedBy=selenium.target This will start up the virtual framebuffer so Selenium has a virtual screen to run the browser on.  Next up is the Selenium service itself. 1 2 3 4 5 6 7 8 9 10

He put this in a blog and was amazed at what happened.

Sorry.  I saw about 50 of those linkbait posts and it bugged me so I did one of my own.  I didn’t click on them but those just really, really bug me.  Call this link bait, call it a protest piece or call it performance art.  I just really, really hate those posts. I don’t know why I’m writing this post.  Maybe it’s because the fire alarm went of for a few seconds at 3:00am.  Geez, fire alarm, if you’re going to startle me awake like that have the common decency to

JMeter Error in NonGUIDriver java.lang.NullPointerException

Was doing some JMeter testing today when I got this error. ./jmeter -n -t ~/test.jmx Error in NonGUIDriver java.lang.NullPointerException I had a JMX file that I copied to a remote server where JMeter was installed, and running before.  But this time when I ran it I got the exception.  Seeing that it was a GUi (or non-GUI) issue with no context I figured it was a GUI issue. Turns out it was not.  The JMX file referenced a class kg.apc.jmeter.threads.SteppingThreadGroup which is part of the Extras Set at JMeter Plugins.  So despite the

Hash value sizes

For giggles, here are examples of hashes for the SHA1, SHA256 and SHA512 hashing mechanisms. Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 echo hash_hmac( ‘sha1’, openssl_random_pseudo_bytes(32), openssl_random_pseudo_bytes(32) ) . "\n";   echo hash_hmac( ‘sha256’, openssl_random_pseudo_bytes(32), openssl_random_pseudo_bytes(32) ) . "\n";   echo hash_hmac( ‘sha512’, openssl_random_pseudo_bytes(32), openssl_random_pseudo_bytes(32) ) . "\n"; Output 1 2 3 00666100c04543601c9de450b061b4bbc5538c50 5762b94cd40d3e62c7b343df1ca3511343dc00fd99a4f1ee64988bf523c13b8a 49cae01474cfd4adfa21e94d35dd93a1f808dff4538042d5140fc661773bc8d0019311ee3dcb7ed8e2a27b021ae47c006f9a477fb768f60256276cc99e8c4bd0 Have a good weekend.

indeyets/appserver-in-php · GitHub

indeyets/appserver-in-php · GitHub. Lukas Smith responded on Twitter to a posting of mine I made on this blog about the possibility of having a precompiled bootstrap in PHP that would allow large sections of bootstrapping code to be bypassed, including autoloading, class definitions and certain objects. His tweet linked to the link above which solves the problem, but in a different way.  It requires a middle layer that needs to be running to process these requests.  I believe that I have thought about doing something similar using ESI locally  which did

How to use @funtil

*update* I built a website to help with this. @Funtil is a little tool I wrote that will tweet the number of days until a given event, once a day (give or take).  It tells you the amount of time until an event and it’s fun.  And it’s really easy to use and free.  Simply tweet something like this 1 @funtil, My Conference starts on Feb 24th, 2013 #newconference @funtil makes sure that you notify the tool.  “starts on” or “is on” is a keyword.  Anything before that will be

Potty Training Baby Powder

I would like to announce the immediate availability of Tobasco for Toddlers.  It is the diaper powder for stubborn children.  The way it works is that your child wears their diaper just as they normally would.  But prior to them putting it on you put a small amount of our special patented powder that is completely neutral until it comes into contact with any liquid-y substance.  Once the powder is activated it generates the same sensation as shooting a whole bottle of Tobasco sauce.  Your child is guaranteed ** to

Weyland Industries powered by PHP

It would seem that it is PHP that will be the dominant programming language in the latter half of the 21st century. [[email protected] controllers]# HEAD www.weylandindustries.com 200 OK Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection: Close Date: Wed, 07 Mar 2012 01:03:48 GMT Pragma: no-cache Server: Unknown Content-Type: text/html Expires: Thu, 19 Nov 1981 08:52:00 GMT Client-Date: Wed, 07 Mar 2012 01:03:48 GMT Client-Peer: 107.21.200.195:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is incorporated by reference/OU=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority – L1C Client-SSL-Cert-Subject: /C=US/ST=California/L=Los Angeles/O=Fox Entertainment Group/CN=www.weylandindustries.com Client-SSL-Cipher: AES256-SHA Client-SSL-Warning: Peer

Why are you part of a software community?

I’m thinking about posting a poll in a couple of days about software communities and I’m looking for some input on some of the responses.  I have my set of possible responses, but I’d like some input before posting the poll.  So, if you have some ideas, please post them in the comments. The question is Why are you part of a software community?  or How do you participate in a software community? Notice that I didn’t necessarily limit this to “open source”.  Clearly that’s a big part of it.