WebLogic package-name element classpath generator script I wrote a post a few days ago about using Jersey 2.x as a shared library with WebLogic 12.1.2. In that post I suggested the following: In weblogic.xml the prefer-application-packages element needs to have entries added for ALL OF THE PACKAGES in the Jersey 2.x shared library JAR files. That means you need to go through every jar file in WEB-INF/lib for the shared library that was created with Maven and make sure the packages it defines are included in this element.
Workaround for Mobile Safari scrollTop() not updating during scroll I've recently discovered that on Mobile Safari the $(window).scrollTop() would not update during the scroll event animation. It appeared to only update after the scroll (the elastic scroll) had finished its animation. This was a rather annoying 'feature' for me because I needed to update my UI during the animation, so I went looking for a workaround and here's what I've come up with.
Show transfer percentage and speed when copying files in Linux and Bash As great as Linux/Bash is, sometimes I wish some of the built-in commands did a little bit more than the bare minimum. Of these the 'cp' command is something that I always thought should have had a way to show progress when copying files. There are many questions about this very thing on StackExchange like this one and this one. My preferred solution is to use 'rsync' but I'm also a big fan of simplifying things and can never remember all the various command line options required. So this post shows my little trick to enabling file copy speed and percentage display when copying files.
Prevent errors during ffmpeg execution in a loop I was using my Odroid XU4 based media server to transcode some videos using ffmpeg when I came across some strange errors appearing on the console. When I would run ffmpeg as a single command, it would work, however running it in a loop presented errors (or rather strange behaviour).
Continuous frame updates added to Trafficr and ExpressWayCam.com About a month ago I made my Trafficr set of scripts available on GitHub and wrote a short intro about setting them up. The first version of those scripts worked pretty well but they were missing continuous frame updates. That meant that the web page would have to be manually refreshed to get updated cam frames. This version addresses that gap.
Set up a time lapse webcam with Trafficr I've written previously about setting up a traffic webcam on OS X, well now I decided to move away from my old OS X Lion Server so couldn't use those scripts any more. This past weekend I took some time to rewrite my cam scripts to work on Linux and this is what I ended up with...
Display OdroidXU4 system status on Odroid-Show2 Since the DietPi-CloudShell doesn't work properly on the Odroid-Show2, I decided to make my own script to display the system status on the Odroid-Show2. I reused some of the the code from DietPi-CloudShell for this purpose.
Compiling unrar on DietPi for ARM I've recently had to build the 'unrar' utility on my Odroid XU4 after installing DietPi on it. I know it is available on the non-free repository and can be installed using apt-get, but that didn't seem to have the latest version so I decided to build it from source instead. Turns out it's quite easy.
Adding HTTP Authentication to SoapUI testrunner.sh test cases I've written recently about some peculiar behaviour in SoapUI when using Setup Scripts and also about using testrunner.sh and project properties to to run SoapUI tests via the command line. Those articles were informative in their own right but they didn't cover one important part that many web services usually (and should!) have - authentication. So I'm going to tackle that here, or specifically how to make your SoapUI test cases authenticate to a web service.
Running test case in SoapUI fails to run test suite Groovy Setup Script I've been doing testing with SoapUI testrunner.sh script recently and have come across a very peculiar behaviour. If you run a specific test case, testrunner.sh will not execute the Groovy Setup Script for the test suite that the test case belongs to. However at the same time if you enable response capture and don't specify the test suite, the test suite name will appear as a part of the request/response file name. It seems that SoapUI is still processing the test suite, just not running any of its setup code.
Testing using SoapUI property values, SOAP response capture and no GUI I recently had to analyse the performance of a web service that can be used to upload documents into a database, SoapUI was the natural choice for this but I didn't want to run it from my laptop so I could avoid network transfer times interfering with my results. This meant I had to run SoapUI directly on the server where the web service was running.
RasPlex and the iPazzPort KP-810-56 Bluetooth Keyboard I've had my RasPlex box running for a while now. This whole time I've been using a 2.4Ghz full size wireless keyboard with it and it worked great but for the living room it's just an overkill in terms of size. After much contemplation I decided to switch to a small bluetooth keyboard and he's my experience so far.
jPhotoFrame version 0.3 released with a bunch of cool updates I've released jPhotoFrame version 0.3 today. It has more customisation options for weather forecast positioning, adds pause functionality and fixes a bunch of small bugs like out of memory error and spiky text. In this release I've migrated over to the 2.5 version of the OpenWeatherMap API too.
OpenWeatherMap 2.1 version API is now officially dead Not long ago I've written that OpenWeatherMap crippled its 2.1 version API by returning data for the same city no matter what the request was. Now it looks that OWM has completely killed off the 2.1 API endpoints in favour of its (paid) 2.5 version of the API.
Lync (Skype for Business) users showing offline on standard Skype Yes it is possible to Use normal Skype to connect to Skype for Business (Lync) contacts and it's been a feature I've heavily relied on. However, I noticed that some contacts always showed 'Offline' to me. I wasn't able to send messages to them and they weren't able to send messages to me. After lots of head scratching I found this article on Microsoft Support pages and decided to give it a shot, and it worked, though with some catches.
Introducing the jQuery UI Photoboxr Plugin After going away on a trip to the mountains and testing out my Travel µBlog software for the first time it was clear that some improvements were needed in terms of how photos are displayed. The main issue I noticed was that photos taken on a Galaxy S6 were 1080p and hence wide screen. This didn't play well with the 4:3 aspect ratio sized photo boxes used on the blog.
Caveats of inserting a new Image into the DOM with jQuery While I was working on a jQuery UI plugin I'm writing, in my haste to get it going I made a simple mistake, which was forgetting the fundamental principle of how jQuery works with it's selectors. My aim was to create a new Image instance, apply my jQuery UI plugin to it, which wraps that image in a DIV and then add the DIV to the DOM.
Getting jQuery and iOS playing nicely to programatically select input field contents Something as simple as the jQuery .select() should just work across all browsers and platforms but it doesn't. I know jQuery Mobile attempts to solve the deficiencies that the multi-platform/device ecosystem creates, however not everyone wants to use jQM and sometimes it's easier to create a small workaround. This is exactly what I did to get input field text selection working for my Travel Microblog project.
A good way of passing around latitude/longitude when using Google Places Autocomplete API Google Places Autocomplete is an excellent addition to a web application that needs to have its users enter a location. I've been using this API quite a bit on my travelblog.ws project and have written about ways of implementing it with jQuery. This article shows how I am passing around the latitude/longitude coordinates that Autocomplete returns so that I can make use of them in other parts of my code.
A better way to handle fixed position DIV elements with form input fields Not long ago I wrote about Mobile Safari scrolling problem with an input field inside a fixed DIV and provided a solution that used a small amount of CSS to make the scrolling issue go away. This worked really well until I discovered that by setting overflow to auto caused the 'scroll' event to never fire. I rely on the scroll event firing so that I can dynamically load more data into a page, so this forced me into finding a better solution and here it is.
Mobile Safari scrolling problem with an input field inside a fixed DIV I've come across an issue in Mobile Safari while working on my travelblog.ws where 'fixed DIV' popup forms would cause the page behind the popup to scroll up as soon as the form was displayed. I narrowed this down to the jQuery .focus() method, but that wasn't the cause of the problem. Once I disabled auto-focusing of the first input field in my forms and manually selected an input field, the same behaviour manifested. I did manage to fix the issue eventually though.
Use FontAwesome icons in place of Bootstrap Glyphs for form input validation Bootstrap has a fair amount of form customisation and it's form control validation classes are amazing, you can even use them with the glyphicons bundled with Bootstrap to display a visual indicator inside the form control itself. Did you know however, that you can also use any Font Awesome icon in the place of these glyphs? I've been doing just that recently and it looks great!
Use normal Skype to connect to Skype for Business (Lync) contacts As Microsoft acquired Skype, it was a natural step to connect it's Lync (now called Skype for Business) service to the regular Skype service. I tried this out recently and it works like a charm. If you have a need to connect with a colleague who uses Skype for Business but you are not able to get the corporate app (or have no desire to) just follow this guide and use your regular Skype client instead.
How to remove images from Skype's 'Recents' profile pictures list in OSX Skype allows you to change the picture that's displayed as your avatar, the (sometimes) unfortunate side effect is it keeps all of the previous pictures you used in its 'Recents' tab. I never really liked this kind of functionality, but do admit it can come in useful sometimes. In the case of Facebook you can delete the recent profile photos, but in Skype, at least on OS X there is no way to remove these recent pictures within the app itself. However, there is a more complicated way to remove them if you're willing to put a few minutes of your time into it.
XtraFinder not working on OSX 10.11 El Capitan I was super excited when XtraFinder was released. It really transformed how Finder in OS X worked. I loved the folders on top sorting and many of its other features. Unfortunately it ceased to function in OS X 10.11 El Capitan.
RasPlex stuck in a crash loop and how to fix it I really love my Rasperry Pi 2 running RasPlex at home, in fact this is our primary streaming method and it works great, well most of the time. Recently I've experienced an issue where RasPlex would go into a crash loop, submitting crash reports over and over. Restarting didn't fix the issue but I did find a means to fix it, after a fashion anyway.
How to resume/unpause paused apps in OS X My OS X Hackintosh that I use as a home server has started behaving strangely recently, iTunes would stop responding, Plex would not work and sometimes I couldn't even log into the server itself. What I noticed was that Apps were being 'Paused'. This is how I resolved it.
Creating a bootable SD card for RaspberryPi on OSX is so easy now It's been some time since I've had to create a fresh Raspberry Pi SD card and I'm really pleased how easy it is to do now. There is no need to get your hands dirty with command line tools like diskutil or dd, just download a graphical app and let it do the work for you. In my case I used the ApplePi Baker. The app is super easy to use and it shows you progress so you don't have to be guessing how much time is left before your SD card is ready to go.
Truly 1.38 inch TFT1P2477-E Round LCD Modules (R61505V) arrived I've posted an Eagle Library for the 1.38 inch round LCD modules that I've ordered. These have finally arrived in the mail today. I can now verify that the Eagle device I've created matches the pin dimensions so I can go ahead with making my breakout board!
Java StringWriter vs CharArrayWriter which one to choose for performance I've been writing some code recently that manipulates lots of strings, specifically it does appends on them via a Writer. In Java there are two choices when it comes to a Writer that's oriented around Strings - CharArrayWriter and StringWriter. I got curious about which one would be best in terms of performance, these are my findings.
How to change AfterLogic WebMail Lite PHP login logo to a custom image I've used the AfterLogic WebMail Lite PHP script on a number of sites now and find it quite easy to install and use. It has some limitations but if you are after just basic webmail capability it does a great job. One of the things I wish was easier to change is the logo you see on the login screen. After a bit of work I managed to change it, here's how.
Eagle Library for 1.38 inch 30PIN TFT Round Colour LCD R61505V I've found an interesting project, The Pi Watch (also here) that used a relatively cheap round LCD display. There didn't seem to be too much information about this display, but I did manage to find its data sheet online. Tim, the creator of The Pi Watch has also been quite helpful regarding pin outs of this LCD, however one thing that I was missing in order to start my own project was the Eagle device library. Since I couldn't find one online, I just created my own. The download link is further down.
Don't like Windows 10? You have a month to uninstall it, here's how Now that I finally was able to install Windows 10 by jumping the queue, I thought that I'd upgrade a desktop running Windows 7 to Windows 10. Big mistake. I had issues starting Edge, the all new web browser - it would open and immediately close. Control Panel would also crash in a similar manner, but worst of all, Windows 10 decided that one of the accounts on the computer would automatically login even time, even though auto-login was not enabled.
How I upgraded to Windows 10 without waiting in queue Windows 10 has been officially released for two days, so I thought that was enough time for everyone to have finished downloading it already and that I'll have no issues getting it quickly. However, I was surprised to find out that the upgrade is being rolled out in waves and I couldn't just click and upgrade. I didn't want to give up so easily and a quick search gave me this article that described how to force your windows to upgrade immediately. With no hesitation I went ahead and tried out the steps, there needed to be some correction in the paths that the article described, but I did get there eventually, read on for how.
Scroll Bootstrap 3 Accordion with dynamically loaded content to top of page I've recently discovered a problem in a website I've built where clicking a Bootstrap 3 accordion panel to expand it and show the content would erroneously scroll that panel off screen. This was happening because the content was being loaded dynamically via the show.bs.collapse event. After a bit of playing around with the implementation I found a way to scroll the panel, including its heading correctly to the top of the screen.
Cornerstone is the best SVN client for Mac I've been using Cornerstone 2 on my Mac for about 6 months now and cannot imagine using anything else. Prior to this, I preferred to use svn commands on the Terminal, but then realised I was wasting time doing this - some tasks are much easier to do with a UI. When I finally decided to switch to a graphical client, I went through a lot of different apps before settling on Cornerstone 2. Of the apps I tried out, many didn't feel right or had the necessary feature sets for me (svnX, Versions) or had too high of a licence fee (SmartSVN). I went through many more SVN apps than that, including some Java clients.
Create an e-Commerce web site in one day with Bootstrap, PayPal and PHP I had an idea for a website a couple of weeks ago. It was a very simple concept - you write a text note up to 140 characters in length, pay for it and it gets sent anonymously on an A6 sized postcard anywhere around the world. The product was simple, the implementation of the site even simpler. Using modern technologies, implementing an e-Commerce web site is almost trivial. This article will show how I managed to take my idea from a concept to a fully functional e-Commerce web site in one day.
Visualising Oracle database partition data distribution with gnuplot We use partitioning in at least one of the databases at work, changing to partitioned tables has allowed us to keep the system running within our imposed SLAs. Recently I've started to wonder however, what happens when we start hammering individual partitions more than others. The data distribution would be skewed and the benefits of partitioning lost. I decided to put together a bit of SQL and then use gnuplot to show me how well our data is distributed.
Use a Sony Bravia TV to power a RaspberryPi 2 running Plex I've had an ageing Apple TV 2 for quite some time now, it's been running the aTV Flash (Black) software to stream from my local file server, although that setup was mostly working fine, I was noticing a lack of features, so I've decided to replace the ATV2 with a Raspberry Pi 2 and Plex and to make it all run by drawing power from the TV itself.
Creating a Twitter App and integrating it into your PHP project with TwitterOAuth Twitter is a great way to share content and with the use of the TwitterOAuth, a Twitter OAuth REST API PHP library, adding twitter functionality to your PHP project is easy as pie. I've recently added Twitter auto-post functionality to my blog software and wanted to share my notes. My goal was to be able to tweet directly from my blog admin pages, so this entry shows how to set up your own Twitter App, how to establish a connection with Twitter and to sent message and photo tweets using your own Twitter account.
Simple JMeter counter example This is a simple example on how to create and use a counter inside JMeter. The counter can be set up so that it increments independently for each user i.e. thread, or it can be a global counter. The process to define either type of counter is almost identical.
Change the JRE used for SoapUI on OSX I use SoapUI on a regular basis and today I wanted to change the JDK that it uses. I've noticed that by default the OS X installation of SoapUI 5.1.2 is using JRE 1.7. On my system, I've had the 1.8 JDK set as the default for quite some time, my ~/.profile file pointed to the 1.8 JDK bin directory for the PATH and the JAVA_HOME was set correctly, so it was puzzling to me why 1.7 was being picked up by SoapUI. I dug a little deeper and found the answer.
SoapUI not respecting authorisation settings for web service requests We've been moving our web services over from Oracle Application Server 10g to WebLogic 12c. This meant that the authorisation settings for these services have changed. We were no longer using the same users/passwords to authenticate to a web service with each request. While testing this out I've noticed that SoapUI had some really odd behaviour and was not respecting some of the authorisation settings that I used.
Lenovo LT1421 USB DisplayLink monitor on a RaspberryPi I started a project to build a photo frame out of a Raspberry Pi (Model A) and an old Lenovo LT1421 USB monitor that I've had laying around. There were lots of confusing posts on whether DisplayLink USB monitors work with a Raspberry Pi and to what lengths you have to go to make them work. The only option I had was to just try it for myself, so I did and these are the results. It's a lot easier than you'd think!
Remove unwanted accounts from the Skype login window on OSX If you have old skype accounts you don't use or had someone login on your computer with their Skype account, the chances are that the Skype login window remembered this account and has it in its drop-down list. This can be irritating, but there is an easy solution to get rid of these offending accounts as well as their data from your Skype login window.
Workaround for JDeveloper 12c Refactor Rename bug I use JDeveloper on an almost daily basis and when something as basic and fundamental to the product as the rename functionality breaks, it makes you want to tear your hair out. I'm talking about the Refactor Rename feature that has been broken since the 12c release. Luckily there is a workaround.
Get notifications from your Android device on your Mac I use a Mac for work, I also have an Android for work. I have the tendency to leave my phone in my bag a lot of the time so this makes me miss phone calls and messages that could be important. At first I thought the only solution is to simply check my phone, but after searching around I found an App called Pushbullet that pushes notifications from your Android to your Mac. You'll (or rather I) won't miss a work related call or txt again even if my phone is in my bag!
FireCore fixes AppleTV restart loop issue in its 2.5 software update FireCore has updated its aTV Black software for Apple TV to version 2.5. This version fixes the crash-restart loop that started occurring after Trakt.tv updated their API. This looks like a maintenance release, mostly fixing the issues with Trakt.tv. I'm still waiting for useful new features to be added by FireCore, which seem to be bent on disappointing their members who bought lifetime subscription.
OS X Yosemite 10.10.2 update fixes previously terrible graphics performance The OS X Yosemite 10.10.2 update resolves a number of OS and Security features as well as adding some visual perks like nice new toolbar icons in Mail.app. However, the most enticing reason to get this update is because it hugely improved graphics performance, something that Apple left off the official update notes.
Deluge not starting on OS X - how to fix it Every now and then my Deluge app fails to start on the home server. This was a little frustrating at first, but then I figured out what was going wrong. This is how to fix Deluge and make it start again.
iOS 8.1.3 update released with less space needed to upgrade The iOS 8.1.3 release has been made public. It weighs in at 136Mb (on both my iPad and iPhone). Apple faced a massive backlash over space requirements for iOS updates, this update fixes that, you no longer need gigabytes of free space, however it does take some time to complete the upgrade. On my devices, it took around 11 minutes to prepare and install the upgrade, and another 7 or so minutes to download it in the first place.
Thousands of free classic DOS games for your Mac with Archive.org and Boxer Archive.org has made available thousands of DOS games for free that can be played directly in your browser. The list of games consists of classics like Commander Keen, Wolfenstein 3D, Leisure Suite Larry, Sim City and Prince of Persia. This is all well and good, but the in-browser games do not appear to work in Safari; they do work in Chrome. Not all games are downloadable directly either, but with a bit of URL manipulation and the Boxer app, you can get these running directly on your Mac. Here's how.
Hands on with DuetDisplay - bugs, terrible performance, not worth it I was really excited when I heard that about the Duet app that promised to make your iPad into a second screen with good refresh rates and even retina resolution (if available). I downloaded the app and installed it as soon as it was available, only to be severely disappointed by how buggy and slow it is.
XtraFinder updated to 0.25, fixes annoying refresh bug If you are using OS X Yosemite and don't have XtraFinder, you need to get it. It adds functionality to Finder that should have been there all along, like sorting all folders on top, a feature that's so useful I can't believe Apple didn't include it in the first place.
SoapUI taking a long time to establish a connection Some of the recent work I've been doing required the use of SoapUI to do some basic load testing. When I first started this, every request I tried sending to the server was taking 30+ seconds to complete. This really stumped me because another, pretty much identical environment would respond immediately. I've finally tracked down the issue to DNS.