I bought this new device in order to have network printing and scanning and it works just fine. It was a pain to get it working tho.
Downloaded brscan4 and brscan-skey RPM packages from Brother site and fed the DNF tool with them.
Then I visited printers built-in web interface and configured it for static IP. You can do the same on your DHCP server if you prefer to.
And then - aaarghhh - the hidden trick which caused me headache:
$ brsaneconfig4 -a name=PRACOVNA model=MFC-L2700DW ip=192.168.1.105
And done! Switch over to “Brother *PRACOVNA” scanner and you can scan over IP. I use “simple-scan” which is quick and nice tool that aims for easy scanning into PDF with multiple pages support. Highly recommended.
To all incoming documents, payslips and letters - you will be all archived!
Actually I haven’t configured printing because I use Google Cloud Print which is build in the device, but it should not be that hard. Frankly, I tried but it did not work. Drop me a line in comments if you know how to do that.
Fedora 22+ now provides new tool called git-xcleaner which helps deleting unused topic branches using TUI (text user interface). It also offers mechanisms for pre-selecting branches that can be safely removed.
Command git branch –merged is used to find a list of branches that are marked for deletion.
For each branch, tip commit message is compared against base history and if found, the branch is marked for deletion. Whole commit message is compared and it must fully match.
User enters base branch name (defaults to “master”).
Delete all remote branches in remote repo which are not present locally.
User enters remote name (defaults to current username).
All branches which no longer exist in origin or specific remote repository are marked for deletion.
User enters specific remote name (defaults to current username).
User manually marks branches for deletion.
Go ahead and try it:
# dnf -y install git-xcleaner # git xcleaner
If you mis-deleted a branch and ignored all the warnings in documentation and on the screen, check out the homepage for instructions how to checkout your branch back.
And one more thing. File bugs at https://github.com/lzap/git-xcleaner/issues
Out of ideas for incoming bare-metal host names in your cluster? I wrote a little generator which contains frequently occurring given names and surnames from the 1990 US Census (public domain data):
Given names were filtered to be 3-5 characters long, surnames 5-8 characters, therefore generated names are never longer than 14 characters (5+1+8).
This gives 33,554,432 (25 bits) total of male and female name combinations. The generator can either generate randomized succession, or generate combinations based on MAC adresses.
The random name generator makes use of Fibonacci linear feedback shift register which gives deterministic sequence of pseudo-random numbers. Additionally, algorithm makes sure names with same first name (or gender) and last name are not returned in succession. Since there are about 1% of such cases, there are about 33 million unique total names. Example sequence:
The polynomial used in linear feedback shift register is
x^25 + x^24 + x^23 + x^22 + 1.
The key thing is to store register (a number) and use it for each generation in order to get non-repeating sequence of name combinations. See example below.
Examples of MAC-based names:
MAC addresses with same OID part (24:a4:3c in this case) generates the same middle name (“Louie Sancher” in the example above), therefore it is possible to guess server (or NIC) vendor from it, or it should be possible to shorten middle names (e.g. bobby-ls-weeler.my.lan) in homogeneous environments.
Deacon is a ministry in the Christian Church that is generally associated with service of some kind, but which varies among theological and denominational traditions. In many traditions the “diaconate” (or deaconate), the term for a deacon’s office, is a clerical office; in others it is for laity. – Wikipedia
Github Pages now supports Jekyll 3.0 which has some backward incompatible features, so I have decided to upgrade. I was quite surprised when I realized I am still using Jekyll 1.0 and everything was working great so far!
What’s great about static pages is you decide when you upgrade your site. There are no security updates, it’s just bunch HTML and CSS. Upgrade was smooth, I only had to do two configuration changes and one layout change. Looks like Github and CloudFlare is a great combo, thanks folks!
I would like to thank Adam Přibyl for his missing dates report. All posts now contain date and list of relevant tags in the bottom-right corner. If you miss anything, let me know via e-mail or Google Plus comments (do they even work? :-)
News? We are wrapping up Foreman 1.11 release and I bought small little Intel NUC box to do me network management (DHCP/DNS/Foreman) in the house. Well, it will likely provide also Kodi and Steam streaming if I decide to put it under my telly. So far, I am impressed (6 W idle).
Starting today, my blog is being served through CloudFlare caching CDN. This means faster loading speeds, but what’s more important is valid SSL certificate through their SSL Free Termination service. I will switch all links to https by default and after few weeks if there are no issues reported, I will force HTTPS via redirect.
And yeah, my blog now supports HTTP/2 and SPDY and other fancy things.
Please report issues via discussion or IRC or Google+. Take care!