I have been running a crypto-currency mining rig on the Linux based ethOS distro for quite some time now. While I realize that ethOS is problematic license-wise, it’s still a great distro to get a mining rig up and running in almost no time. The Nvidia GPUs in my rig are well tuned to operate at their optimum cost/hashrate ratio. However, due to bugs in the miner and/or the GPU drivers, every few days one of the GPUs stops mining. Sometimes ethOS is able to recover the GPU and gets it back to mining but sometimes it doesn’t seem to detect the crashed/hanging mining process at all. This is why I added a cron job that runs every 15 minutes and checks if all GPUs are still mining. If not, the miners will be re started using the
minestart commands provided by ethOS.
The cron job starts the Bash script below. If it detects a problem, it writes to the console and additionally to
/tmp/rigcheck.log. It’s been running smoothly on my ethOS v1.2.7 mining rig. I recommend putting it in
/home/ethos/rigcheck.sh and don’t forget to add execute permissions using
chmod +x /home/ethos/rigcheck.sh
The cron job can be created like this:
cat << EOF | sudo tee /etc/cron.d/rigcheck
*/15 * * * * root /home/ethos/rigcheck.sh
Thanks to this script, crashed or hanging miners will be restarted fairly quickly and my rig’s pool-reported hashrate stopped dropping in such situations.
If Java 7 is the only Java environment on a Mac, quite a few applications demand the installation of a Java 6 environment:
To open “Eclipse”, you need a Java SE 6 runtime. Would you like to install one now?
To open “Adobe Device Central CS5”, you need a Java 6 SE runtime. Would you like to install one now?
To open “Cyberduck”, you need a Java 6 SE runtime. Would you like to install one now?
I didn’t want to pollute my Mac with an outdated Java version. Here’s a tip that works well with Eclipse and CS5 and may work with other Java software which ignores the presence of a Java 7 SDK as well. So far I’ve only tested it with OS X 10.8.3. It may or may not work with earlier or later versions of OS X.
At first you need to determine which Java 7 version is currently installed. Open Terminal and enter
You should get something like
I’m using this version as a sample below. Replace the name of the Java 7 SDK directory in the first line below and execute the commands:
export JDK=jdk1.7.0_21.jdk # needs to be replaced!
sudo mkdir /System/Library/Java/JavaVirtualMachines
sudo ln -s /Library/Java/JavaVirtualMachines/$JDK \
And you’re all set!
“wget” is a very handy Unix command line utility to download files over http. It not only shows details about the connection but also tracks current and overall download speed in KB/s or MB/s. Unfortunately, it’s not part of Mac OS X. If you already own Apple’s Xcode development environment you could easily compile your own wget binary or just download it from this site’s download area.
Resolving cachefly.cachefly.net... 188.8.131.52
Connecting to cachefly.cachefly.net[184.108.40.206]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10,485,760 [application/octet-stream]
100%[================================================================================================>] 10,485,760 1.86M/s ETA 00:00
19:59:17 (1.63 MB/s) - `10mb.test' saved [10485760/10485760]
You could do something similar with curl (which is included in OS X by default) but I prefer wget’s output over curl’s.
curl -o test.bin cachefly.cachefly.net/10mb.test
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.0M 100 10.0M 0 0 1739k 0 0:00:05 0:00:05 --:--:-- 2119k
When analyzing distributed XA transaction problems it can prove useful to have a look at Oracle WebLogic’s internal transaction backup log file (TLOG). Since that file is all binary, it needs to be converted into a more human readable format first. In WebLogic 10.3, the TLOG file can be converted to text using this class:
The class needs the transaction library from the modules directory and weblogic.jar in the classpath. Continue reading
Just in case you’re one of the few users of MMITunes: I added a new feature to auto-create genre-based playlists in MMITunes v3.0. If you select create playlists for genres MMITunes will generate .m3u playlists for every genre it finds in the tracks on the selected volume (which ideally is an SD-card or similar).
If you find playlists with weird names like (79).m3u you will have to convert the ID3-tags of that particular track to a newer version. You’ll find the names of the tracks which may require attention in the MMITunes output window. To convert the ID3-tags simply open iTunes, right-click the track, select Convert ID3 tags and apply ID3 v2.4. An easier way is to convert all your tracks at once instead of selecting single tracks. Don’t forget to re-export the tracks you modified to your destination volume.
The names of the three default playlists MMITunes creates have changed slightly as well. MMITunes v3.0 is available in the downloads area.
I just got word from a commenter that RTMPDump 2.4 is out (thanks!). Since the release of Xcode 4 I have been unable to compile the RTMPDump binaries using the supplied Makefile. Actually, the binaries are all there but I always get a signal fault when the rtmpdump binary tries to establish a connection to a target server. I had to resort to plan B which was to import the RTMPDump sources into Xcode and to create a proper console application project. Continue reading
Since Apple announces their keynote addresses in their respective time zone (Pacific Standard Time or PST), I always thought it would be nice to have some sort of automatic time zone aware converter that shows the start of a keynote address for everyone’s local time zone. Since no one else is providing this kind of service (at least not that I know of) I took matters into my own hands.
Once Apple announces a keynote address, wheniskeynote.com will show the start time of the keynote depending on the time zone setting it finds on your computer. By the way, did you know they have a :45 minute time zone offset on Chatham Island?
Check out wheniskeynote.com.
A few weeks ago I started working with WSO2‘s Enterprise Service Bus software, which is a lightweight and extremely high performance, open source enterprise service bus (ESB). One reason it’s so lightweight and fast is that it doesn’t have to be run in a bloated application server environment (although it can, but where’s the point). Instead, it’s running in an OSGi container. While the ESB itself still needs some polishing, especially in the area of deployment in large company environments, it looks extremely promising. We even flew in a few guys from HQ in Sri Lanka to help us with the initial setup of the product. Judging from the guys I’ve met, there must be a lot of talent in that company! Support is top notch and fairly priced.
One thing I was working on over the last few days is a command line remote control utility for the WSO2 ESB. It supports deployment and undeployment of the Eclipse Carbon Studio .car files and many other features, which at the time are only available through the web based user interface. The utility comes with an awesome name too: Carbonara :) We need this command line functionality for our fully automated change and configuration management processes. There’s no point in releasing the whole thing to the public because it’s tailor-made for the staging processes in my company.
Here’s a small Carbonara excerpt that shows how to send administrative commands like shutdown or entering/exiting maintenance mode to any WSO2 product using JMX. You can also use JConsole to remotely control any WSO2 product by the way. You will have to activate the JMX registry in the carbon.xml file in order to be able to use JMX. The supplied username and password will have to match a user with administrative privileges in the user store. Continue reading
Installing the new (finally!!) iOS 4.2 beta on my iPad didn’t pose any problems. As usual, I just restored it using iTunes. Then I tried the same on my iPhone 4 but there always occurred an installation error right at the end of the update process. Continue reading
I have an iPod Classic connected to the Audi Music Interface (AMI) in my car to listen to music over the Audi multimedia system MMI 3G. The iPod is able to store a vast collection of music but sometimes I just want to listen to the tracks I recently downloaded in the iTunes music store without having to walk down to the garage, disconnecting the iPod, sync it on my Mac and so on. Continue reading
I love the tag cloud widget that comes with WordPress. There’s just one thing that bugs me: it floods every post or page with lots of internal links that a search engine crawler will follow. The SEO community says that this could be seen as some sort of artificial link generation by a search engine and eventually lead to a disadvantage in a site’s SERP ranking. Having fewer internal links on a post should also pass a higher page rank to linked posts as well. See this post from Matt Cutts detailing how it makes sense to nofollow non-essential internal links:
There’s no stigma to using nofollow, even on your own internal links; for Google, nofollow’ed links are dropped out of our link graph; we don’t even use such links for discovery. By the way, the nofollow meta tag does that same thing, but at a page level.
Unfortunately, it’s not possible to instruct the built-in WordPress tag cloud sidebar widget to use nofollow tags for the generated links. Continue reading
After quite a long time with no updates I just released a new version of my WordPress plugin “Must-Read Posts”. The new version adds several configurable sorting options which was the most requested missing feature. With the exception of the custom sort order they’re pretty self explanatory and include:
- Post date descending (latest posts/pages first)
- Post date ascending (oldest posts/pages first)
- Random (randomizes the sort order)
The custom sort order allows pre-defined ordering of posts or pages and was the default and only sort option in the earlier versions of the plugin. If you update from an earlier version of the plugin this still is the default sort order. The sort ordering option can be found on the widget’s configuration area.
In case you’re using the non-widget PHP function, the sort order parameters are:
If you don’t specify a sort order, the default is “custom”. If you’re using a plugin like WP Super Cache don’t expect the random sort order to show a different order every time you load the page.
The plugin can be installed/updated from the plugins admin page within your WordPress site or downloaded here.
Due to popular demand there’s a MMI 2G/3G VIM login-code generator application available in the download area. Windows-only. And you need .NET Framework 3.5 in order to run it. You will be asked to download it from Microsoft during the installation if it can’t be found on your system.
Today, I was looking for a simple WordPress widget that allows me to statically display links to certain posts in the sidebar. I could have used the links widget but it wasn’t flexible enough for me. My idea was to use a certain custom field of a post or page as a trigger to display it in a widget. I searched for almost an hour but I just couldn’t find any simple, widget-capable WordPress plugins that could do this?!
In the end, I ended up writing my own widget-capable plugin. I decided to publish it so anyone else can use it on her/his blog too. The plugin’s name is “Must Read Posts”. It shows your most recommended posts and pages in a sidebar widget or in a page. As the widget’s title is editable in the WordPress Dashboard you could change it to something like “Recommended Posts”, “Important information”, “Tips & Tricks” or whatever you like. Continue reading
You’re looking for a way to consume Web services in SAP NetWeaver 2004s (and SAP Composition Environment aka NetWeaver 7.1) from BEA WebLogic Server 8.1 (and newer versions) using Single Sign On (SSO)?
You may have figured out already that SAML is not an option here because the SAP side is just a SAML consumer and not a provider (as of today). The only way left is to use the proprietary SAP Logon Tickets. Proprietary authentication mechanisms always require some extra work. In this blog article I’ll fill you in on what you need to SSO-connect those two J2EE platforms. Continue reading