This uses the telize site to get a geolocation of an IP address. It's not 100% accurate but fine for country-level location, which is all I wanted. <script type="application/javascript"> function getgeoip(json){ //document.write("Geolocation information for IP address : ", json.ip); //document.write("Country : ", json.country); //document.write("Latitude : ", json.latitude); //document.write("Longitude : ", json.longitude); //document.write("Country: " + json.country);... Continue Reading →
Locked self out of course in Totara
I was setting up a course page, and wanted to see how it looked for learners. I went 'Switch my role to...' and selected Learner - then couldn't view the course since I'd made it invisible to learners. The problem here is that I was no longer able to get in to the course editing... Continue Reading →
Totara – ILX module not tracking from IE11 on Totara 2.6 / Moodle 2.6
Had some problems with a module provided by ILX (v1.0.1r26) not tracking from IE in Totara 2.6.14 (Moodle 2.6.6). After some clowning around: suspend_data worked fine in Firefox 34.05 and Chrome 39.02 suspend_data worked fine in IE11 provided: the learning opened in a new(simple) window Compatibility view was turned on. Not a seamless fix but it'll... Continue Reading →
Storyline: Simulation recording size to maximise screen space at 1024×768 resolution
After testing, the maximum size to record a simulation in Storyline that will be scaled 100% (so not fuzzy etc) and fit on a monitor with 1024x768 resolution is... DRUMROLL 988x642. This fits maximised from 1024x768 in Chrome, Firefox and IE. A popup window works well with Javascript here - pops up at 1004x658. Code... Continue Reading →
USB power cable loose in Samsung Galaxy Nexus
Over time my power cable started to not click in properly in my Samsung Galaxy Nexus. I'd have to precariously balance the cord in and NOT TOUCH IT lest it fall out. The fix? A pin. I used the point of a clothespin to scrape around the USB port and removed three years worth of... Continue Reading →
Adding custom taxonomy title to archive/search pages in WordPress
Needed this for my custom taxonomy for code snippets, when navigating via the tags of my non-regular taxonomy/category terms. <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?> I stuck this in to my 'archive.php' file in my theme (after line 30) <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {... Continue Reading →
Set a SCORM completion in Storyline using javascript
Run this as a 'run JavaScript' in Storyline and you're done-burgers. Storyline 360 (20.03.2018) function findLMSAPI(win) { if (win.hasOwnProperty("GetStudentID")) return win; else if (win.parent == win) return null; else return findLMSAPI(win.parent); } var lmsAPI = findLMSAPI(this); //set score; the first number is the score lmsAPI.SetScore(100, 100, 0); //set status; possible values: "completed","incomplete", "failed", "passed" lmsAPI.SetReachedEnd();... Continue Reading →
Bind smartlook vocalisation in L4D2
Bind "Key" "Vocalize smartlook"
SUMPRODUCT – filtering and totaling data from columns
Pretty handy. I used this for calculating remaining capacity for more work with forecasting project plans. I remember thinking Excel was sooo boring when I was little, and now I'm all, Exhell yea! Each of these spans (arrays) with an '=' or >= etc. is just another filter - so you can cram as many... Continue Reading →
Find duplicates across columns in Excel
=ISNUMBER(MATCH(A1,B$1:B$20,FALSE)) will return TRUE if the name in A1 is in the range B1:B20. Enter it in say C1 and copy down as far as necessary. If you AutoFilter the data for column C = TRUE you will see which rows to delete. src: http://www.mrexcel.com/forum/excel-questions/55208-identify-duplicates-between-2-columns.html
Refer to an object on the Captivate stage
using widgetfactory, you can access captivate items on the stage - and if you can do that, you can do ANYTHING with ANYTHING - very exciting! override protected function enterRuntime():void { var mc:MovieClip = getSlideObjectByName("item"); mc.addEventListener(Event.ENTER_FRAME, function() {mc.rotation++}); } src:http://www.infosemantics.com.au/widgetking/2010/10/slip-sliding-away/
Captivate 6/7 recording size for 1024×768
For a popup window, with resizing enabled but no scrolling etc., popping up in a windows XP resolution of 1024x768, maximum recording size is: 1012x636. ------------ NEWSFLASH! 28.11.2014 with updated browsers forcing an address bar and the rest, new size: 1009x632 you can pop up the simulations with this js: window.open('try it.htm','simulation','scrollbars=0,width=1005,height=658,toolbar=0,menubar=0,location=0,status=0,resizeable=1'); The size is... Continue Reading →