Walking Trip …

Walking Trip

Walking Trip

Offenbach's Suite ... Warts 'n All

Offenbach's Suite ... Warts 'n All

If this was interesting you may be interested in this too.

Posted in Photography, Trips | Tagged , , | 34 Comments

Local GIS Primer Tutorial

GIS Primer Tutorial

Local GIS Primer Tutorial

Another implication of a change of street address, for us recently, being so interested in …

  • the “where of life”
  • maps
  • land use (and/or town planning)

… even as an amateur, is that that may bring new opportunities regarding Geographic information system (GIS) information systems maintained by government. Here in Australia, it is usually the local government level handling this interesting, and often totally public, source of information, as an alternative way into GIS from the software use we started talking about with GIS Primer Tutorial.

Our local Blue Mountains City Council‘s property map search webpages here in New South Wales, Australia, did not let us down for interest, linking our …

  • street address … search basis towards information such as …
  • topographic maps
  • land use maps
  • land title information
  • slope, bushfire, road, public amenity, vegetation overlay information
  • co-ordinate geodata (careful thinking this should override any land title dimensions)
  • landmark (names)

… as you can see a bit of with today’s animated GIF presentation. If you’re like me you’ll be there for (free) happy hours “in amongst the maps”!


Previous relevant GIS Primer Tutorial is shown below.

GIS Primer Tutorial

GIS Primer Tutorial

To study file extensions is to study Information Technology. A curiosity is all it takes, in this day and age of looking things up in search engines, to have something as innocuous as a file extension you’ve never heard of, to potentially open up a “Pandora’s Box” of discoveries.

So it was for us recently scouring that wonderful source of data that data.gov is when we came across a downloadable button with a title of “shp” in the context of a “data subject” related to the “where” of life. This in turn led us onto Spatially harmonized first-level geography

Minnesota Population Center. Integrated Public Use Microdata Series, International: Version 7.0 [dataset]. Minneapolis, MN: IPUMS, 2018. https://doi.org/10.18128/D020.V7.0.

… and another, link this time, to “shp” downloadable data. Have you ever heard of the “shp” file extension? We hadn’t, so started out on our quest for knowledge feeding into Google …


shp file extension

… and got rewarded for all Google efforts, thanks, finding out that the shapefile format is a geospatial vector data format for geographic information, and with this great lead called “13 Free GIS Software Options: Map the World in Open Source” where we roadtested a few of the suggested GeoData or GIS (Geographic information system) applications, looking for one suitable for an entry level participant like myself. And that’s how we lobbed onto the wonderful GeoDa desktop application we installed to this MacBook Pro’s applications and want to show you a stream of consciousness PDF slideshow regarding, specifically, using and access that previous downloadable link’s data. Maybe you are like me, and love maps? Well, this could be the entry level GeoData desktop application for you too.

It’s fine to be “entry level” but where could you start a further study of the GeoData subject matter? Why not start with How to Learn GIS? Then there’s “Why would you learn GIS”? Well, GIS is used extensively in Town Planning and for other purposes by Local Councils in particular, and in scientific research as well.

We go on about “entry level” a lot above because yours truly came from a time of university learning when GIS was a huge deal, and not anything you just download as an “entry level” piece of software in any form. This was also a time when CAD (Computer Aided Design) was like this as well. More than thirty years has made huge difference in these fields, my personal theory being that the “where” of life is the most approachable “question field” for software developers to make some pretty nifty and eye-catching and immediately useful software.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

Posted in eLearning, Tutorials | Tagged , , , , , , , , , , , , , , , | Leave a comment

Rotation Game Tutorial

Rotation Game Tutorial

Rotation Game Tutorial

Can you guess what today’s tutorial is about if we say …
















Okay, Tad Low, you’ve had your hand up for ten minutes now!
















Oh. Well, it’s around the corner, and remember to wash your hands after. You may be excused. Anyone else, anyone?
















?

Yes, Kyungjin Lee, am after “Spin the BottleMobile Device Game” … yayyyyyyy!

Yes, be careful how you set it up so that your mobile device will not fall and/or hit anything bad … carpet (with lots of room) is good … but …

  1. Tap Device Orientation live run link …
  2. Tap any “Start” and/or “Allow” button(s) presented at the top left (and answer any permissions questions, pending) …
  3. Tap the new “Spin the Device” button …
  4. Select number of players … from 1 to 6 …
  5. Players take it in turns, starting with a score of 36000 each, to be given a nominated clockwise angle in degrees to spin, that player …
    • Taps their yellow “Not Ready” button … to effectively say, “am braced, ready to spin my device” …
    • Player then “spins that device” so as to closely match that nominated number of clockwise degrees … then taps their (now) green button for the web application’s verdict …
    • And the score reduces by any difference between the nominal number of (clockwise) degrees and the player’s spin number of (clockwise) degrees rotation detected (by good ol’ window.DeviceOrientationEvent event logic)
  6. Next player’s turnspin!

The new static HTML table element for the “Spin the Device” game, positioned just below any permissions related buttons up the top of the webpage, initialized to …


<table id=mytable>
</table>

… supported by the new relevant Javascript “Spin the Device” game functions and global variables


var nump=0;
var spinscores=[];
var spingoes=[];
var spinnext=0;
var degtospin=0;

function amready(whoin) {
var who=eval(eval(whoin) + 0);
//alert('Who=' + who);
if (document.getElementById('b' + who).innerHTML == 'Not Ready') {
document.getElementById('b' + who).style.backgroundColor='green';
document.getElementById('b' + who).innerHTML='Spin close to <font size=4 color=red>' + degtospin + '&#176; clockwise &#8753;</font>, then tap me again';
initial_yaw=eval('0' + document.getElementById("doBearing").innerHTML);
if (document.getElementById('th0').innerHTML.indexOf('tap your ') != -1) {
document.getElementById('th0').innerHTML=document.getElementById('th0').innerHTML.split('tap your ')[0] + 'spin now. Good luck!';
}
} else if (document.getElementById('b' + who).innerHTML != 'Ready') {
//alert('WHO=' + who);
spingoes[eval(-1 + eval(who))]++;
//alert('' + Math.abs(eval(degtospin - eval(eval(360 + eval('0' + document.getElementById('doBearing').innerHTML) - initial_yaw) % 360))) + ' via initial_yaw=' + initial_yaw + ' and curbrg=' + document.getElementById('doBearing').innerHTML);
spinscores[eval(-1 + eval(who))]-=Math.abs(eval(degtospin - eval(eval(360 + eval('0' + document.getElementById('doBearing').innerHTML) - initial_yaw) % 360)));
document.getElementById('goes' + who).innerHTML='' + spingoes[eval(-1 + eval(who))];
document.getElementById('score' + who).innerHTML='' + spinscores[eval(-1 + eval(who))];
document.getElementById('b' + who).style.backgroundColor='white';
document.getElementById('b' + who).innerHTML='Not Ready';
spinnext++;
if (spinnext == nump) { spinnext=0; }
gospin(spinnext);
}
}

function playspin(cnump) {
var mytih='<thead><tr></tr></thead><tfoot><tr></tr></tfoot>';
if (cnump.trim() != '') {
nump=eval(cnump);
mytih=mytih.replace('<thead>', '<thead><tr><th style="cursor:pointer;" onclick="alert(this.title);" title="Careful how you play so as not to drop your device nor have it hit something. On carpet with lots of room is ideal here." id=th0 colspan=' + nump + '>Welcome to the <font title="Careful how you play so as not to drop your device nor have it hit something. On carpet with lots of room is ideal here." color=purple size=5>Spin the Device</font> game for ' + nump + '<span id=s0></span></th></tr>');
for (var ii=1; ii<=nump; ii++) {
spinscores.push(36000);
spingoes.push(0);
mytih=mytih.replace('</tr></thead>', '<th id=th' + ii + '><div id=div' + ii + ' contenteditable=true>Player ' + ii + '</div></th></tr></thead>');
mytih=mytih.replace('</tr></tfoot>', '<td id=td' + ii + '><span id=score' + ii + '>' + spinscores[eval(-1 + ii)] + '</span><span> / </span><span id=goes' + ii + '>0</span><br><br><button title="Click when ready" id=b' + ii + ' onclick=amready(' + ii + ');>Not Ready</button></th></tr></tfoot>');
}
document.getElementById('mytable').innerHTML=mytih;
document.getElementById('mytable').border='20';
}
gospin(spinnext);
}

function gospin(whoin) {
var who=eval(eval(whoin) + 1);
//alert('who=' + who);
document.getElementById('b' + who).style.backgroundColor='yellow';
degtospin=eval(Math.floor(Math.random() * 358) + 1);
document.getElementById('s0').innerHTML=' ... <font color=blue size=4>' + document.getElementById('div' + who).innerHTML + '</font> ... try to spin close to <font color=red size=4>' + degtospin + '&#176; clockwise &#8753;</font> & tap your yellow Not Ready button to start';
}

function spingame() {
document.getElementById('dspin').innerHTML="<select onchange='playspin(this.value);'><option value=''>Spin Game number of players below ...</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option></select>";
}


Previous relevant HTML5 Device Orientation Events Game Tutorial is shown below.

HTML5 Device Orientation Events Game Tutorial

HTML5 Device Orientation Events Game Tutorial

Today we’ve written a web application suiting mobile devices, but probably not many laptops. That is because we are harnessing the power of the Device Orientation (today) and Device Motion (at a later date) events new to HTML5, and very well explained at this tremendous link, thanks.

If you use a mobile device regularly, you’ll probably have seen mobile and web applications making use of the fact that the mobile device being used is moving itself, and has its screen orientation an option, rather than an awkwardly controlled hardware setting. These dynamisms of what we are talking about harnessing today, and we closely follow the leads of the code supplied in the link above, and build a “Device Orientation” game based on these HTML5 and Javascript based smarts.

The bottom line of this is that with this functionality we can glean the 3 rotations of the mobile device relative to the world around it, termed as …

  • “Alpha” … or Direction, or Bearing, or in shipping “motion” terms, “yaw”
  • “Beta” … or Tilt Front/Back, or in shipping “motion” terms, “pitch”
  • “Gamma” … or Tilt Left/Right, or in shipping “motion” terms, “roll”

Defining those, our game can take you into the cockpit of a plane, perhaps, to set you tasks you try to achieve as accurately as possible, in a “seconds survived” game of skill and perseverance.

The HTML and Javascript programming source code you could call yaw_etc.html does not have to be played as a game in its live run form, and in that “non-game” mode of use, just gets you used to the way the three rotations above happen for mobile devices where the Javascript …


<script type='text/javascript'>
if (window.DeviceOrientationEvent) {
// You're in business with HTML5 Device Orientation Events
}
</script>

… which, happily, is the case for the iPad screenshot of today’s tutorial picture.

Image helping websites we’d like to thank are …

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

Posted in eLearning, Event-Driven Programming, Tutorials | Tagged , , , , , , , , , , , , , | Leave a comment

Web Browser on iOS Address Bar URL Appending Tutorial

Web Browser on iOS Address Bar URL Appending Tutorial

Web Browser on iOS Address Bar URL Appending Tutorial

Perhaps it’s the week for …

Know the blurb below sounds idiotic.

… in all things iOS, because we need to confess to more sheepishness with today’s “you had to be there I guess” tutorial. But perhaps this annoyance (and believe me, it is annoying) applies to you, and your iOS work, too?!

We’ll leave it up to the “Speech Bubble” transcript for today’s animated GIF presentation to explain …


  1. Here is a typical fairly long RJM Programming domain URL in a web browser under iOS. You’d think you could tap vigorously after the “/“ character in “HTMLCSS/missing_” to be able to set the cursor and type in another URL of interest to us. But no, we find it rare to be able to do this, and suspect you need to have space characters so that it doesn’t just hang on to the highlighting.

    But, today, we discovered the way forward on this.

  2. Here is us not succeeding … until …

  3. We drag the left hand limiter into that right of “/“ within “HTMLCSS/missing_” position … then …

  4. We type in “yaw_etc.html#” to establish a new URL of interest. The “#” cuts off irrelevant URL parts to the right.

    Then tap "go" ...

  5. We get to our new RJM Programming domain webpage of interest a lot easier than involving text editors and complete re-typing of address bar URL.


Previous relevant Phone iPhone App On Hold Speaker Phone Tutorial is shown below.

Phone iPhone App On Hold Speaker Phone Tutorial

Phone iPhone App On Hold Speaker Phone Tutorial

Know the blurb below sounds idiotic. But in our defence Smart Phones are so much more than the Phone (app) … wouldn’t you say?

Okay, so yesterday we used an Apple iPhone Phone app to call someone. Gasp! We were put on hold. It was then that it occurred to us that both of us wanted to hear, so that we could wander around doing things while the iPhone Phone was “on hold”.

But all we saw was the iPhone’s “number dialer screen” (apparently).

Thankfully we got to this excellent link

Q:
Accessing the “speaker phone” during a call.
Once I am in a call, how do I activate the speaker phone? While on the call, the “keypad” shows, but there seems to be no way to turn on the speaker phone. The only time I can put my call on the speaker is before I connect with the party I am calling. Many a time in the past few days, especially while “on hold” it would have been easier to lay the phone down and turn the speaker on. I can’t do that once in the call.

iPhone 6

Posted on Jan 20, 2015 10:30 AM

Jan 20, 2015 10:37 AM in response to samoting

If when on a call you can only see the number dialer screen, Tap the “Hide” text at the bottom right corner of the screen to return to the phone options. Then Tap the Speaker icon to turn on the Speakerphone.

… via this Google search “phone do not see speaker icon while on call” first off, and then used Google search “iphone phone number dial screen hide text bottom right” to clarify.

The great advice had us tapping the “Hide” text on that “number dialer screen” (apparently), a counterintuitive step delivering great joy, with a “Speaker” icon tap to follow up, and make our day! Yayyyyyyy!

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

Posted in eLearning, iOS, Tutorials | Tagged , , , , , , , , , | Leave a comment

Google Chrome on iOS Web Browser Debug Tutorial

Google Chrome on iOS Web Browser Debug Tutorial

Google Chrome on iOS Web Browser Debug Tutorial

Debugging (Javascript issues that cannot be simulated on non-mobile and cannot be resolved via alert popups with) mobile iOS web applications is possible …

  • for Safari web browser via a MacBook Pro’s Safari Developer menu (Apple white lead) connection to iOS iPhone or iPad (Safari web browser session) as talked about with HTML5 Web Audio Piano Mobile Safari Web Inspector Debug Tutorial … but what about if the issue is only happening …
  • for Google Chrome web browser, (we’re showing) today, we are trying out, via the great advice here, thanks …
    1. start up Google Chrome … and in address bar enter …
    2. chrome://inspect
    3. tap its “Start logging” button … then …
    4. in other tabs, or new tab(s), whatever activity you start up “chrome://inspect” (tab) will log any errors and console.log statement results from, to help with debugging Google Chrome on iOS web applications

    … a technique not needing any Apple white leads

… and our verdict? Brilliant, but be careful of versions here, as we lacked success with versions not as below. We have here, working

  • iPhone 7 iOS version 14.6
  • Google Chrome version 93.0.4577.78


Previous relevant HTML5 Web Audio Piano Mobile Safari Web Inspector Debug Tutorial is shown below.

HTML5 Web Audio Piano Mobile Safari Web Inspector Debug Tutorial

HTML5 Web Audio Piano Mobile Safari Web Inspector Debug Tutorial

There were problems peculiar to mobile platforms involved in the work of yesterday’s HTML5 Web Audio Piano Mobile Tutorial. But just how did we arrive at a solution? We can tell you now a placement of Javascript “alert” popup windows is inadequate for such an involved issue that cannot be simulated on our usual MacBook Pro laptop “home base” computer. So what to do?

There’s a big clue in the difference reports of yesterday …

Did you notice the use of … anyone, anyone? … yes, Augusta Ada Kingconsole.log([message]) calls all over the place. Could it be that “alert” calls would be too disruptive? That’s right. Do you remember, perhaps, in science at school, how we learnt that looking at a photon was difficult because we would be interfering in how that photon would be in nature, and so we can not conclude anything categorically because of our interference. Well, “timing issues” are a bit the same, but console.log([message]) calls will not interfere and yet pass on information to … anyone, anyone? … yes, Grace Brewster Murray Hopper … a web inspector. Like Safari’s we think, given we’re working with …

  • an iPhone to test on
  • a MacBook Pro to facilitate the testing … connected via …
  • (the ubiquitous Apple white) lead … hardware wise … and …
  • the Safari web browser (on both devices, running our “piano web application” on the iPhone Safari web browser) … software wise … and within that browser’s …
  • Developer menu can get us to (the iPhone incarnation of the) Web Inspector … within which the …
  • Console tab can show us errors and warnings and information (which we can augment ourselves via our console.log([message]) Javascript DOM calls in the HTML/Javascript/CSS code of our “piano web application” and its “web audio interfacing” friend)

… but if you’ve not done this in the past, there is a fair bit to do to get up and running doing this. In setting this up, we were stuck for a while with connections but blank console tab screens. Why? Well, you need both iPhone and MacBook Pro to have any outstanding operating system updates attended to. Then, given that, we’d recommend following the excellent advice of How to Activate the iPhone Debug Console, thanks …

On the iPhone (setting up wise) …

  1. Tap the Settings icon on the iPhone Home screen.
  2. Scroll down until you reach Safari and tap on it to open the screen that contains everything related to the Safari web browser on your iPhone, iPad, or iPod touch.
  3. Scroll to the bottom of the screen and tap Advanced menu.
  4. Toggle the slider next to Web Inspector to the On position.

On the MacBook Pro (setting up wise) …

  1. Click Safari in the menu bar and choose Preferences.
  2. Click the Advanced tab
  3. Select the box next to Show Develop menu in menu bar.
  4. Exit the settings window.
  5. Click Develop in the Safari menu bar and select Show Web Inspector.

… and we’ve got for you some screenshots of our “goings on” sorting out our “piano web application” problems on mobile (at least iOS) platforms with today’s PDF “stream of consciousness” presentation regarding this piano play web application. We hope it helps you out, or gets you down the road of digging into an issue you have with an HTML web application on an iOS device.


Previous relevant HTML5 Web Audio Piano Mobile Tutorial is shown below.

HTML5 Web Audio Piano Mobile Tutorial

HTML5 Web Audio Piano Mobile Tutorial

You guessed it! The software integrations of yesterday’s HTML5 Web Audio Piano Tutorial had issues with the mobile platforms. Do fish swim? Do axolotl have two L’s and two O’s? Yes, yes and yes.

With our iPad and iPhone testing (and we’ll go more into that tomorrow) we found timing issues as to when exactly to call that window onload init function. Which beggars the question, being that window and document are two different objects of a webpage “is window onload the same as document body onload?” We’d always assumed so, and trying “not to be in that bubble of our own existence”, did read at least the first link of that previous Google search to feel appeased. It seems so … but we digress.

Why is this timing important? As we’ve said many times, Apple‘s iOS (mobile operating system) and audio are super sensitive to trying to eradicate “sounds on (webpage) load”, we take it, and want to only allow for audio easily via a “touch” event off a button (made by a human … and, we hope, all axolotls), that’s why. Get the timing wrong, and we weren’t, on mobile platforms, creating the buttons needed to touch in order to make the 87 different notes on our piano.

This work is accessible via the changed piano.htm‘s piano web application calling on the changed web_audio.htm (Web Audio API interfacer) in an iframe.


Previous relevant HTML5 Web Audio Piano Tutorial is shown below.

HTML5 Web Audio Piano Tutorial

HTML5 Web Audio Piano Tutorial

We find software integration interesting yet challenging, and the integration of …

… in these early days, before we give up on the mobile platform issue compromises we have so far, is no exception.

In broad brush terms we …

  • call from the changed piano.htm‘s piano web application the changed web_audio.htm (Web Audio API interfacer) in an iframe as per (the HTML) …

    <iframe class=ask title='versus Audio Web' frameborder=0 scrolling='no' style='overflow:hidden;background-color:orange;display:inline-block;width:500px;height:28px;max-height:28px;' width=500 height=28 src='web_audio.htm?vscaseyrule=y'></iframe>

    … and so in …
  • web_audio.htm (it) creates up above all else in the top left corner of its webpage, on detecting this call above …

    <script type='text/javascript'>
    if ((location.search.split('vscaseyrule=')[1] ? (' ' + decodeURIComponent(location.search.split('vscaseyrule=')[1]).split('&')[0]) : '') != '') { //navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
    var hish='<div class=parent id=dchoose style="font-size:26px;position:absolute;top:0px;left:0px;z-index:2001;display:inline-block;background-color:transparent;"><input class=child placeholder="CaseyRule" title="versus Audio Web" style="position:absolute;top:0px;left:0px;z-index:2001;display:inline-block;background-color:transparent;" name=dlhuhb id=dlhuhb onchange="' + "actedupon=true; this.visibility='visible'; parent.document.getElementById('conduit').value=' '; parent.document.getElementById('cmdconduit').value=' '; document.getElementById('dchoose').innerHTML='Web Audio'; " + '" onclick="actedupon=true; parent.document.getElementById("' + "conduit" + '").value=String.fromCharCode(32); parent.document.getElementById("' + "cmdconduit" + '").value=String.fromCharCode(32); setTimeout(init,1500);" onblur="actedupon=true; parent.document.getElementById("' + "conduit" + '").value=String.fromCharCode(32); parent.document.getElementById("' + "cmdconduit" + '").value=String.fromCharCode(32); this.value=' + "'Web Audio';" + ' setTimeout(init,1800);" ontouchstart=" parent.document.getElementById("' + "conduit" + '").value=String.fromCharCode(32); parent.document.getElementById("' + "cmdconduit" + '").value=String.fromCharCode(32); setTimeout(init,500);" list="modes" name="modes"><datalist id="modes"><option value="CaseyRule"><option value="Audio Web"></datalist></div>';
    if (1 == 1 || navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
    hish='<div class=parent id=dchoose style="font-size:26px;position:absolute;top:0px;left:0px;z-index:2001;display:inline-block;background-color:transparent;">CaseyRule versus <button style=display:inline-block;background-color:red; id=dlhuhb onmousedown="' + "actedupon=true; parent.document.getElementById('conduit').value=' '; parent.document.getElementById('cmdconduit').value=' '; this.innerHTML=''; setTimeout(init,500);" + '" ontouchstart="' + "actedupon=true; parent.document.getElementById('conduit').value=' '; parent.document.getElementById('cmdconduit').value=' '; setTimeout(init,200);" + '">Web Audio</button></div>';
    }
    document.write(hish);
    }
    </script>

    … a default piano “CaseyRule” mode of use piece of text, followed by a HTML button element “Web Audio” to switch to that … and back at …
  • piano.htm detects a “Web Audio” mode of use when that …

    if (document.getElementById('conduit').value != '') {
    document.getElementById('cmdconduit').value+="parent.document.getElementById('iaudio" + caboffrank + "').src='" + what + "'; ";
    document.getElementById('conduit').value+=what.replace('/','').replace('.','') + ' ';
    } else {
    document.getElementById('iaudio' + caboffrank).src=what;
    }

    … document.getElementById(‘conduit’).value is not ” because it is storing button press information for …
  • web_audio.htm to play the audio off that button press via …

    function pianonoteplay(bo) {
    var ioth='' + eval('' + bo.title);
    var prefix="";
    if (!nostop) { stopit(); } else { lastbo=null; }
    if (whichs == "") { whichs="" + ioth; }
    whichs="" + eval(ioffs[eval(-1 + eval('' + ioth))] + eval(ioth));
    if (sourcep_valid()) { //if (typeof sourcep !== 'undefined') {
    sourcep[eval(-1 + eval(whichs))]=true;
    } else {
    eval("source" + whichs + "p=true;");
    }
    var sendb=("(" + document.getElementById('startingin').value + "," + document.getElementById('startingat').value + ");").replace("(,)", "(0)").replace("(,", "(0,").replace(",)", ",0)");
    var suffix=("(" + document.getElementById('startingin').value + "," + document.getElementById('startingat').value + ")").replace("(,)", "").replace("(0,0)", "").replace("(0,)", "").replace("(,0)", "").replace("(,", ",").replace(",)", "").trim();
    if (source_valid()) { //if (typeof source !== 'undefined') {
    if (fors.replace('0','') != '' && fors.indexOf('-') == -1) {
    source[eval(-1 + eval(whichs))].start(eval('0' + document.getElementById('startingin').value), eval('0' + document.getElementById('startingat').value), eval('' + dura(document.getElementById('duration').value,lastbo).split(';')[0].split(':')[eval(-1 + dura(document.getElementById('duration').value,lastbo).split(';')[0].split(':').length)].split('.')[0].split(' ')[0]));
    } else if (document.getElementById('duration').value.replace('0','') != '') {
    source[eval(-1 + eval(whichs))].start(eval('0' + document.getElementById('startingin').value), eval('0' + document.getElementById('startingat').value), eval('' + dura(document.getElementById('duration').value,lastbo).split(';')[0].split(':')[eval(-1 + dura(document.getElementById('duration').value,lastbo).split(';')[0].split(':').length)].split('.')[0].split(' ')[0]));
    } else {
    source[eval(-1 + eval(whichs))].start(eval('0' + document.getElementById('startingin').value), eval('0' + document.getElementById('startingat').value));
    }
    } else {
    eval("source" + whichs + ".start" + dura(sendb,lastbo));
    }
    nostop=false;
    document.getElementById('startingat').value='';
    document.getElementById('startingin').value='';
    document.getElementById('loop1').checked=false;
    document.getElementById('loop2').checked=false;
    checknext();
    ioffs[eval(-1 + eval(ioth))]+=four;
    ioffset=ioffs[eval(-1 + eval(ioth))];
    if (sourcep_valid()) { //if (typeof sourcep !== 'undefined') {
    sourcep[eval(-1 + eval(ioffset + eval(ioth)))]=false;
    } else {
    eval("source" + eval(ioffset + eval(ioth)) + "p=false;");
    }
    if (source_valid()) { //if (typeof source !== 'undefined') {
    source[eval(-1 + eval(ioffset + eval(ioth)))] = context.createBufferSource();
    source[eval(-1 + eval(ioffset + eval(ioth)))].buffer = sb[eval(-1 + eval(ioth))];
    source[eval(-1 + eval(ioffset + eval(ioth)))].connect(context.destination);
    } else {
    eval("source" + eval(ioffset + eval(ioth)) + " = context.createBufferSource(); source" + eval(ioffset + eval(ioth)) + ".buffer = sb[" + eval(-1 + eval(ioth)) + "]; source" + eval(ioffset + eval(ioth)) + ".connect(context.destination); ");
    }
    }

… for starters.

Expecting a sound tonality difference between the methods? No, a computer creates the sound the same way via the same sound frequency, and if the response time is reasonable we couldn’t hear big rhythm changes that you might expect with the parent/child “chatter” required for all this.

Feel free to try your piano playing scales and arpeggios and chords with today’s more integrated live run link.


Previous relevant HTML5 Web Audio Mobile Tutorial is shown below.

HTML5 Web Audio Mobile Tutorial

HTML5 Web Audio Mobile Tutorial

There is another two pronged improvement approach again today building on HTML5 Web Audio Overlay Tutorial‘s two pronged approach to the previous two pronged approach … which makes for a great fork for spaghetti but we digress … the prongs today being …

  • first, and like yesterday, allow for clientside HTML to do what serverside PHP usually does for us … handle large amounts of data as PHP can do using its $_POST[] approach … we’re still calling “Overlay Iframe Remembering” … and add to …
    1. child iframe src= mode of use … but also with, new to today …
    2. child iframe srcdoc= mode of use

    … because (am not absolutely sure why as yet but) it solves the problem with …
    … non-mobile/Safari/fill in “Audio Content” form/including a Duration/click “Web Audio Run” button …
    … didn’t automatically start any audio, though other non-mobile web browsers do …
    … and as you may imagine this needs some delimitation explanations that show below

    function takealook(fo) {
    var noneed=true;
    var htmlis='';
    var nsuffix='';
    if (document.getElementById('url1').value.length > 500) { noneed=false; }
    if (document.getElementById('url2').value.length > 500) { noneed=false; }
    if (document.getElementById('url3').value.length > 500) { noneed=false; }
    if (document.getElementById('url4').value.length > 500) { noneed=false; }
    if (document.getElementById('durationget').value.length > 0) { nsuffix='&notoka=secret'; noneed=false; } else { isrc=' src='; }
    if (source_valid()) {
    if (noneed) { return true; }
    if (isrc == ' srcdoc=') {
    if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
    document.getElementById('huhb').style.display='inline-block';
    document.getElementById('diframe').innerHTML="<iframe id=myi style='opacity:1.0;position:absolute;top:0px;left:0px;z-index:-" + eval(1 + eval('0' + zi)) + ";width:100%;height:100vh;' srcdoc=></iframe>";
    } else {
    document.getElementById('diframe').innerHTML="<iframe id=myi style='opacity:1.0;position:absolute;top:0px;left:0px;z-index:-" + eval(1 + eval('0' + zi)) + ";width:100%;height:100vh;' srcdoc=></iframe>";
    }
    if (documentURL.indexOf('#') == -1) { document.getElementById('divbody').style.opacity='1.0'; }
    document.getElementById('myi').srcdoc='<!doctype html><html><head>' + document.head.innerHTML.replace(/document\.URL/g,"'" + documentURL.split('#')[0].split('?')[0] + "?zi=" + eval(1 + eval('0' + zi)) + nsuffix + "&notoka=" + encodeURIComponent(notoka.trim()) + "'").replace(/\'0\.2\'/g,"'1.0'") + '</head><body>' + document.body.innerHTML.replace(/document\.URL/g,"'" + documentURL.split('#')[0].split('?')[0] + "?zi=" + eval(1 + eval('0' + zi)) + nsuffix + "&notoka=" + encodeURIComponent(notoka.trim()) + "'").replace(/\'0\.2\'/g,"'1.0'") + '</body></html>';
    } else {
    if (documentURL.indexOf('#') == -1) { document.getElementById('divbody').style.opacity='0.2'; }
    document.getElementById('diframe').innerHTML="<iframe style='position:absolute;top:0px;left:0px;z-index:" + eval(1 + eval('0' + zi)) + ";width:100%;height:100vh;' src='" + documentURL.split('#')[0].split('?')[0] + "?zi=" + eval(1 + eval('0' + zi)) + nsuffix + "'></iframe>";
    }
    } else {
    if (notoka.trim().toLowerCase() == 'secret') { noneed=false; }
    if (noneed) { return true; }
    if (isrc == ' srcdoc=') {
    if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
    document.getElementById('huhb').style.display='inline-block';
    document.getElementById('diframe').innerHTML="<iframe id=myi style='opacity:1.0;position:absolute;top:0px;left:0px;z-index:-" + eval(1 + eval('0' + zi)) + ";width:100%;height:100vh;' srcdoc=></iframe>";
    } else {
    document.getElementById('diframe').innerHTML="<iframe id=myi style='opacity:1.0;position:absolute;top:0px;left:0px;z-index:-" + eval(1 + eval('0' + zi)) + ";width:100%;height:100vh;' srcdoc=></iframe>";
    }
    if (documentURL.indexOf('#') == -1) { document.getElementById('divbody').style.opacity='1.0'; }
    document.getElementById('myi').srcdoc='<!doctype html><html><head>' + document.head.innerHTML.replace(/document\.URL/g,"'" + documentURL.split('#')[0].split('?')[0] + "?zi=" + eval(1 + eval('0' + zi)) + "&notoka=" + encodeURIComponent(notoka.trim()) + "'").replace(/\'0\.2\'/g,"'1.0'") + '</head><body>' + document.body.innerHTML.replace(/document\.URL/g,"'" + documentURL.split('#')[0].split('?')[0] + "?zi=" + eval(1 + eval('0' + zi)) + "&notoka=" + encodeURIComponent(notoka.trim()) + "'").replace(/\'0\.2\'/g,"'1.0'") + '</body></html>';
    } else {
    if (documentURL.indexOf('#') == -1) { document.getElementById('divbody').style.opacity='0.2'; }
    document.getElementById('diframe').innerHTML="<iframe style='position:absolute;top:0px;left:0px;z-index:" + eval(1 + eval('0' + zi)) + ";width:100%;height:100vh;' src='" + documentURL.split('#')[0].split('?')[0] + "?zi=" + eval(1 + eval('0' + zi)) + "&notoka=" + encodeURIComponent(notoka.trim()) + "'></iframe>";
    }
    }
    return false;
    }

    … adding another option to “Overlay Iframe Remembering” types of solutions, we figure … cute in the sense that all this is clientside HTML/Javascript/CSS

  • … as per these interim changes

  • mobile platform considerations (in our tests of iOS iPad and iPhone) …
    1. allowing for a button press “touch” event (“touchstart” for us, but read somewhere that they liked “touchend”) to trigger the AudioContext setup
    2. taking away the “capture” property of our browser buttons so that the mobile platform user can browse for an existant media file or capture that media
    3. we try to allow video media to be played in that video element should the user choose a video media file as their audio media choice which tends to be the way for the “capture” property of a mobile user input type=file browser button

    … as per these changes

Did you get from the code snippets how this “Overlay Iframe Remembering” works by storing the large amounts of data in an overlayed “layer” of webpage, both webpage layers “clientside” by nature and available datawise to each other in a parent/child (layer1WebpageParent/layer2OverlayedIframeWebpageChild) arrangement, that iframe being populated via a src= scenario getting the “overlay” to populate itself or help that “overlay” along (perhaps it’s that period after lunch digesting the caviar?!) by supplying its content via srcdoc= usage? Again, perhaps it is easier to see it in action at this live run link.


Previous relevant HTML5 Web Audio Overlay Tutorial is shown below.

HTML5 Web Audio Overlay Tutorial

HTML5 Web Audio Overlay Tutorial

Again, in building on yesterday’s HTML5 Web Audio Duration Tutorial two pronged approach, we have another one today, those approaches involving …

  • first allow for clientside HTML to do what serverside PHP usually does for us … handle large amounts of data as PHP can do using its $_POST[] approach … we’re going to call “Overlay Iframe Remembering” … whereby the
    1. navigational form gets a new id=waform onsubmit=’return takealook(this);’

      function takealook(fo) {
      var noneed=true;
      var nsuffix='';
      if (document.getElementById('url1').value.length > 500) { noneed=false; }
      if (document.getElementById('url2').value.length > 500) { noneed=false; }
      if (document.getElementById('url3').value.length > 500) { noneed=false; }
      if (document.getElementById('url4').value.length > 500) { noneed=false; }
      if (document.getElementById('durationget').value.length > 0) { nsuffix='&notoka=secret'; noneed=false; }
      if (source_valid()) {
      if (noneed) { return true; }
      document.getElementById('divbody').style.opacity='0.2';
      document.getElementById('diframe').innerHTML="<iframe style='position:absolute;top:0px;left:0px;z-index:" + eval(1 + eval('0' + zi)) + ";width:100%;height:100vh;' src='" + document.URL.split('#')[0].split('?')[0] + "?zi=" + eval(1 + eval('0' + zi)) + nsuffix + "'></iframe>";
      } else {
      if (notoka.trim().toLowerCase() == 'secret') { noneed=false; }
      if (noneed) { return true; }
      document.getElementById('divbody').style.opacity='0.2';
      document.getElementById('diframe').innerHTML="<iframe style='position:absolute;top:0px;left:0px;z-index:" + eval(1 + eval('0' + zi)) + ";width:100%;height:100vh;' src='" + document.URL.split('#')[0].split('?')[0] + "?zi=" + eval(1 + eval('0' + zi)) + "&notoka=" + encodeURIComponent(notoka.trim()) + "'></iframe>";
      }
      return false;
      }

      … where if noneed ends up as false we perform some overlay favourites … building on …
    2. textbox HTML design changes from …

      <input style='display:inline-block;background-color:#f0f0f0;' type=text name=url2 title='Audio URL 2' value='./one_to_fiftynine.m4a'></input>

      … to …

      <input data-id=url2 onblur="document.getElementById(this.getAttribute('data-id')).value=this.value;" style='display:inline-block;background-color:#f0f0f0;' type=text name=url2 title='Audio URL 2' value='./one_to_fiftynine.m4a'></input>
      <div id=dform style='display:none;'></div>
      <div id=diframe></div>

      … that makes the document.body onload logic below be useful for the context of that onsubmit form logic above …

    3. document.getElementById('dform').innerHTML=document.getElementById('waform').innerHTML.replace(/\ data\-id=/g, ' id=').replace(/\ onblur=/g, ' data-onblur=');

    … as per these interim changes … then in the context of those large amounts of data possibly coming from …

  • like with the recent Video via Canvas File API Tutorial

    … we see for web applications, two primary source “partitions”, those being …

    • around the “net” (in the server wooooooorrrrrlllllld, in the public areas of the Internet, which are not in “the dark web”, that is) via an absolute URL (to the same domain or beyond) and/or relative URL (in relation to the URL “home” place on the web server of the same domain as where you launched it … which we catered for yesterday, though quietly we’d have allowed absolute URLs too, it’s just that cross-domain restrictions make us shy about publicizing that) … versus …
    • on the client computer (or device)

    … and, yes, for all those who guessed we’d try to cater for image and/or video data coming from this client source, you are correct …

    … media file browsing, via the wonderful File API, additional functionality as per these changes to web_audio.htm

Did you get from the code snippets how this “Overlay Iframe Remembering” works by storing the large amounts of data in an overlayed “layer” of webpage, both webpage layers “clientside” by nature and available datawise to each other in a parent/child (layer1WebpageParent/layer2OverlayedIframeWebpageChild) arrangement? Perhaps it is easier to see it in action at this live run link.


Previous relevant HTML5 Web Audio Duration Tutorial is shown below.

HTML5 Web Audio Duration Tutorial

HTML5 Web Audio Duration Tutorial

In building on yesterday’s HTML5 Web Audio Primer Tutorial we adopted a two pronged approach, that being …

  • first allow for the reduction of use of Javascript eval involving statements that assign values (ie. eval statement contains an “=” sign) (but will continue on with it helping out with some mathematics) … in favour of using arrays instead …

    var source=[];
    var sourcep=[];
    var notoka=location.search.split('notoka=')[1] ? (" " + decodeURIComponent(location.search.split('notoka=')[1]).split('&')[0]) : "";
    if (notoka == "") {
    for (var iii=1; iii<=4; iii++) {
    source.push(null);
    sourcep.push(false);
    }
    }

    for (var ii=5; ii<500; ii++) {
    if (source_valid()) { //if (typeof source !== 'undefined') {
    source.push(null);
    if (sourcep_valid()) { //if (typeof sourcep !== 'undefined') {
    sourcep.push(false);
    }
    } else {
    eval("var source" + ii + " = null;"); //context.createBufferSource();
    }
    }

    function source_valid() {
    if (typeof source !== 'undefined') {
    if (source.length >= 4) { return true; }
    }
    return false;
    }

    function sourcep_valid() {
    if (typeof sourcep !== 'undefined') {
    if (sourcep.length >= 4) { return true; }
    }
    return false;
    }

    … as per these interim changes … then go on to …
  • other changes as per …
    1. add duration as a very useful third parameter …

      Seconds … optionally follow by ; sets of ButtonNumber1to4:StartingAt=[0]:StartingIn=[0]:Loop=[false]:Duration=[0]

      … to Web Audio class “start” method … the use of which is the final piece in a puzzle that allows us to …

    2. schedule an execution run of button presses to play Audio ahead of time … because with a duration we can piggy back the audios (so be able to synchronize our efforts better) … and we also …
    3. open the Audio content up to the “server” woooorrrrlllld (via the “reveal” friendly HTML details/summary element combination) by allowing the user to specify their own 4 audio URLs (and one synchronized video one) along with 4 button labels presented in an HTML form method=GET to renavigate with this user supplied content back to the body onload scenario

    … to arrive at this finally changed web_audio.html

… that we welcome you to try at this live run link.


Previous relevant HTML5 Web Audio Primer Tutorial is shown below.

HTML5 Web Audio Primer Tutorial

HTML5 Web Audio Primer Tutorial

As an audio/video synchronization alternative to the techniques used in Mac OS X Text to English Speech Primer Tutorial, today, we involve the great Web Audio API functionality introduced with HTML5 and “starring” in HTML5 Rocks’s Getting Started with Web Audio API great advice on this subject.

We start down this long road, we suspect, being able to …

  • set up the audio playing of four separate audio sources (some featuring in Spliced Audio Number Genericization Tutorial) … where …
  • one, with its default configuration, synchronizes with an apt video media play
  • allow looping
  • allow for “start at” seconds
  • allow for “start in” seconds

… on a first draft HTML and Javascript and CSS web_audio.html live run link.

We hope you hang around on our road trip with this topic.


Previous relevant Spliced Audio Number Genericization Tutorial is shown below.

Spliced Audio Number Genericization Tutorial

Spliced Audio Number Genericization Tutorial

If you’ve completed a successful “proof of concept” stage to a project, it can be tempting at this early stage, even before applying it to the specific intended software integration target, to consider ways to “genericize” that application, and so it is for us, here, with yesterday’s Spliced Audio Number Announcements Tutorial, as shown below, that we feel this could come along to be applied for other purposes. We have no doubt the exercise of doing this serves at least three good purposes …

  1. slow it down a bit before rushing to “software integrate”, as patience can be good here
  2. learn more about what’s possible, and what isn’t, to do with the scope of your planning and thinking
  3. other application may, too, benefit from this “early days” “genericization” of a potential plugin component piece of HTML and Javascript code

In this early stage of “genericization” thoughts, we think that with our project we want to keep intact these ideas …

  • there’ll be up to 3 “columns” of ideas to piece together an audio message from its constituent parts, like with those Sydney train platform announcements we’ve talked about before
  • there’ll be 3 soundfiles mapped to most of the usage regarding these 3 “columns”
  • there’ll be the possibility for silence to be an option in each “column”
  • there’ll be the mechanism by which the user can define their own “Title” and “Subtitle” and 3 “column” headings themselves
  • there’ll be 2 leftmost “columns” that define counting numbers whose ranges can be defined by the user, where, for now, the timing of sounds goes that sounds start at [number].4 seconds and plays for 1.5 seconds
  • there’ll be minimum and maximum special case entries available for user definition in the leftmost “column” that calls on the fourth soundfile, where, for now, the timing of sounds goes that sounds start at 0 seconds and 2 seconds respectively and plays for 2 seconds
  • there’ll be a minimum special case entry available for user definition in the middle “column” that calls on a sound from the third soundfile, where, for now, the timing of sounds goes that sounds start at 3.1 seconds and plays for 1.8 seconds
  • there’ll be 1 rightmost “column” that can have three entries defined

And that is as far as we go with “genericizations”, at this stage, with our project.

In our experience, what Javascript function is a big friend of “genericization”? We’d say Javascript eval function is our favourite here.

It’s funny to think that our HTML and Javascript and CSS audio_1_59.htm, vastly changed from yesterday as per this link, functions exactly the same in its default form, and you can continue to enjoy its accompanying default live run link, but it can, through the use of complex URLs (only, just at this early stage) be made to look quite different, with the same code, as you can see with this complex live run.

So, in summary, this leaves us with many more “live run” options, those being …


Previous relevant Spliced Audio Number Announcements Tutorial is shown below.

Spliced Audio Number Announcements Tutorial

Spliced Audio Number Announcements Tutorial

We’ve got a “proof of concept” tutorial for you today, because we’ve got an idea for something, as we said some time back at Splicing Audio Primer Tutorial

The first was a simulation of those Sydney train public announcements where the timbre of the voice differs a bit between when they say “Platform” and the “6” (or whatever platform it is) that follows. This is pretty obviously computer audio “bits” strung together … and wanted to get somewhere towards that capability.

… that will probably be blimmin’ obvious to you should you be a regular recent reader at this blog.

Do you remember what we, here, see as a characteristic of “proof of concept” at WordPress Is Mentioned By Navigation Primer Tutorial

To us, a “proof of concept” is not much use if it is as involved as what it is trying to prove

… and do you remember how we observed at Windows 10 Cortana Primer Tutorial

… because you can work Cortana without the voice recognition part, if you like, or if you have the urge to run for the nearest cupboard before being caught talking into a computer (microphone)

? Well, today, we’d like you to be patient about the lack of audio quality with our home made audio (see excuse 2 above) bit we are mainly interested in “proof of concept” issues (see excuse 1 above).

So what “ingredients” went into this “Audio Numbers” web application? As we did in Apple iOS Siri Audio Commentary Tutorial

HTML audio elements that allow for an audio commentary of the 9 “subimages” … the content for which is derived on a Mac OS X by QuickTime Player‘s Audio Recording functionality, which we last talked about at this blog with QuickTime Player Video Flickr Share Primer Tutorial

… we do again today. On doing this we realized the recordings were not loud enough, so started down the road of R&D on this and got to the very useful Increase Audio Volume website tool that helped a little, and this manifests itself if/when you run our live run today, that if you pick “minute” numbers less than or equal to “30” they are a better better in volume than others, with the “Trial Version” of this software helping you out with “half file” enhancements. “Proof of concept”, remember? And so the aspects you’d change for your own purposes, are …

  1. the content (and more than likely, names) of audio files mentioned below …
  2. arrays of audio files …

    var audiomedia=["one_to_fiftynine.m4a","past_quarterto.m4a","am_pm.m4a"];
    var midmedia=["midnight_midday.m4a"];

    … and it should be noted here, that a separate file for each unique sound, could be a good alternative design, and would stop failures to do with the slow loading speed of the home web server causing audio misfiring … and would mean, below, that “astart” is always “0” and “delay” should be set to the audio object’s duration parameter
  3. variables “astart” and “delay” as per example …

    } else if (thingis.toLowerCase().indexOf('clock') != -1) {
    oaudio.src=audiomedia[i];
    astart=eval("3.1");
    delay=1.8;


    … where “astart” reflects a start of play value and “delay” represents a length of play scenario in seconds, as we got going in the past when we presented Spliced Audio/Video Overlay Position Tutorial as shown below, where you can read more about the HTML5 Audio objects we used with this “proof of concept” project

Please note with the recording of “one_to_fiftynine.m4a”, that records numbers from 1 to 59, via QuickTime Player, we relied on the recording timer, to time our number recording with a second of duration to make the HTML and Javascript coding a lot easier!

So, as you can see, this is “proof of concept” preparation, and of you want to try it yourself, perhaps you’d like to start with a skeleton of today’s HTML and Javascript audio_1_59.html as a starting point?!


Previous relevant Spliced Audio/Video Overlay Position Tutorial is shown below.

Spliced Audio/Video Overlay Position Tutorial

Spliced Audio/Video Overlay Position Tutorial

Today we’ve written a third draft of an HTML and Javascript web application that splices up to nine bits of audio or video or image input together, building on the previous Spliced Audio/Video/Image Overlay Tutorial as shown below, here, and that can take any of the forms …

  • audio file … and less user friendly is …
  • text that gets turned into speech via Google Translate (and user induced Text to Speech functionality), but needs your button presses
  • video
  • image … and background image for webpage

… for either of the modes of use, that being …

  • discrete … or “Optional”
  • synchronized … or “Overlay”

… all like yesterday, but this time we allow you to “seek” or position yourself within the audio and/or video media. We still all “fit” this into GET parameter usage. Are you thinking we are a tad lazy with this approach? Well, perhaps a little, but it also means you can do this job just using clientside HTML and Javascript, without having to involve any serverside code like PHP, and in this day and age, people are much keener on this “just clientside” or “just client looking, plus, perhaps, Javascript serverside code” (ala Node.js) or perhaps “Javascript clientside client code, plus Ajax methodologies”. In any case, it does simplify design to not have to involve a serverside language like PHP … but please don’t think we do not encourage you to learn a serverside language like PHP.

While we are at it here, we continue to think about the mobile device unfriendliness with our current web application, it being, these days, that the setting of the autoplay property for a media object is frowned upon regarding these mobile devices … for reasons of “runaway” unknown charge issues as you can read at this useful link … thanks … and where they quote from Apple …

“Apple has made the decision to disable the automatic playing of video on iOS devices, through both script and attribute implementations.

In Safari, on iOS (for all devices, including iPad), where the user may be on a cellular network and be charged per data unit, preload and auto-play are disabled. No data is loaded until the user initiates it.” – Apple documentation.

A link we’d like to thank regarding the new “seek” or media positioning functionality is this one … thanks.

Also, today, for that sense of symmetry, we start to create the Audio objects from now on using …


document.createElement("AUDIO");

… as this acts the same as new Audio() to the best of our testing.

For your own testing purposes, if you know of some media URLs to try, please feel free to try the “overlay” of media ideas inherent in today’s splice_audio.htm live run. For today’s cake “prepared before the program” we’ve again channelled the GoToMeeting Primer Tutorial which had separate audio (albeit very short … sorry … but you get the gist) and video … well, below, you can click on the image to hear the presentation with audio and video synchronized, but only seconds 23 through to 47 of the video should play, and the presentation ending with the image below …

We think, though, that we will be back regarding this interesting topic, and hope we can improve mobile device functionality.


Previous relevant Spliced Audio/Video/Image Overlay Tutorial is shown below.

Spliced Audio/Video/Image Overlay Tutorial

Spliced Audio/Video/Image Overlay Tutorial

Today we’ve written a second draft of an HTML and Javascript web application that splices up to nine bits of audio or video or image input together, building on the previous Splicing Audio Primer Tutorial as shown below, here, and that can take any of the forms …

  • audio file … and less user friendly is …
  • text that gets turned into speech via Google Translate (and user induced Text to Speech functionality), but needs your button presses
  • video
  • image … and background image for webpage

… for either of the modes of use, that being …

  • discrete … or “Optional”
  • synchronized … or “Overlay”

The major new change here, apart from the ability to play two media files at once in our synchronized (or “overlayed”) way, is the additional functionality for Video, and we proceeded thinking there’d be an Javascript DOM OOPy method like … var xv = new Video(); … to allow for this, but found out from this useful link … thanks … that an alternative approach for Video object creation, on the fly, is …


var xv = document.createElement("VIDEO");

… curiously. And it took us a while to tweak to the idea that to have a “display home” for the video on the webpage we needed to …


document.body.appendChild(xv);

… which means you need to take care of any HTML form data already filled in, that isn’t that form’s default, when you effectively “refresh” the webpage like this. Essentially though, media on the fly is a modern approach possible fairly easily with just clientside code. Cute, huh?!

Of course, what we still miss here, is the upload from a local place onto the web server, here at RJM Programming, capability, which we may consider in future, and that some of those other synchronization of media themed blog postings of the past, which you may want to read more, for this type of approach.

In the meantime, if you know of some media URLs to try, please feel free to try the “overlay” of media ideas inherent in today’s splice_audio.htm live run. We’ve thought of this one. Do you remember how the GoToMeeting Primer Tutorial had separate audio (albeit very short … sorry … but you get the gist) and video … well, below, you can click on the image to hear the presentation with audio and video synchronized, and the presentation ending with the image below …

We think, though, that we will be back regarding this interesting topic.


Previous relevant Splicing Audio Primer Tutorial is shown below.

Spliced Audio Primer Tutorial

Splicing Audio Primer Tutorial

Today we’ve written a first draft of an HTML and Javascript web application that splices up to nine bits of audio input together that can take either of the forms …

  • audio file … and less user friendly is …
  • text that gets turned into speech via Google Translate (and user induced Text to Speech functionality), but needs your button presses

Do you remember, perhaps, when we did a series of blog posts regarding the YouTube API, that finished, so far, with YouTube API Iframe Synchronicity Resizing Tutorial? Well, a lot of what we do today is doing similar sorts of functionalities but just for Audio objects in HTML5. For help on this we’d like to thank this great link. So rather than have HTML audio elements in our HTML, as we first shaped to do, we’ve taken the great advice from this link, and gone all Javascript DOM OOPy on the task, to splice audio media together.

There were three thought patterns going on here for me.

  • The first was a simulation of those Sydney train public announcements where the timbre of the voice differs a bit between when they say “Platform” and the “6” (or whatever platform it is) that follows. This is pretty obviously computer audio “bits” strung together … and wanted to get somewhere towards that capability.
  • The second one relates to presentation ideas following up on that “onmouseover” Siri audio enhanced presentation we did at Apple iOS Siri Audio Commentary Tutorial. Well, we think we can do something related to that here, and we’ve prepared this cake audio presentation here, for us, in advance … really, there’s no need for thanks.
  • The third concerns our eternal media file synchronization quests here at this blog that you may find of interest we hope, here.

Also of interest over time has been the Google Translate Text to Speech functionality that used to be very open, and we now only use around here in an interactive “user clicks” way … but we still use it, because it is very useful, so, thanks. But trying to get this method working for “Platform” and “6” without a yawning gap in between ruins the spontaneity and fun somehow, but there’s nothing stopping you making your own audio files yourself as we did in that Siri tutorial called Apple iOS Siri Audio Commentary Tutorial and take the HTML and Javascript code you could call splice_audio.html from today, and go and make your own web application? Now, is there? Huh?

Try a live run or perhaps some more Siri cakes?!

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

Posted in eLearning, iOS, Tutorials | Tagged , , , , , , , , , , , , , , | Leave a comment

Google My Business Street Address Changes Tutorial

Google My Business Street Address Changes Tutorial

Google My Business Street Address Changes Tutorial

Further to the recent RJM Programming website changes a street address change might affect, as talked about in Landing Page Compass iOS App Tutorial, today we turn our attention to how this might affect …


RJM Programming as seen on Google My Business

… that neat way provided by Google (thanks) to link a business profile with a Google Maps reference and with business photographs and other marketing material.

We tried lots of approaches to change the Google Street View, and hope that will get fixed over time, but otherwise, everything is there for you to …

  • get to your Google My Business profile …
  • modify the profile and maps and photos …
  • receive a letter from Google to your new street address containing verification instructions related to a unique verification code …
  • complete any more changes back at your Google My Business profile

… as you can see a bit of with today’s animated GIF preserntation.


Previous relevant Landing Page Compass iOS App Tutorial is shown below.

Landing Page Compass iOS App Tutorial

Landing Page Compass iOS App Tutorial

Here at RJM Programming we’ve moved! This affects …

  • street address
  • phone number
  • latitude and longitude

… that last one the weirdest one to contemplate, but these days, linkages to Google Maps are an important part of the “Contact” parts of running a website, we figure.

How best to glean that new “latitude and longitude” data set? And then the recent Compass iOS App Primer Tutorial sprung to mind (again).

That gave us latitude and longitude in degrees, minutes and seconds, but Google Maps interfacing works best with latitude and longitude in decimal degrees. And so, though it works less and less across platforms these days, we tend to think of any “Calculator” app or good ol’ “Bookmarklet” functionality such as …


javascript:alert('-' + eval(33 + 43/60 + 29/3600) + ',' + eval(150 + 25/60 + 37/3600));

… written to a Google Chrome web browser address bar, getting us to …

-33.724722222222226,150.42694444444444

… helping us complete this triad of modes of change we needed to apply to the RJM Programming Landing Page.


Previous relevant Compass iOS App Primer Tutorial is shown below.

Compass iOS App Primer Tutorial

Compass iOS App Primer Tutorial

Regular readers will know about our penchant for “the where of life” concerns, especially where that intersects with software … a very big intersection!

And so, it’s been very remiss not discussing an iOS app, in Utilities (at least on an iPhone) called …


Compass

… because, in a revisit today it is not only …

  • geographical position in terms of latitude and longitude … does this great app provide you … it is …
  • elevation (surprisingly) … and not so surprisingly (given name of app) …
  • bearing of (not up, but horizontal) direction you point the device (for us, an iPhone)

… all in the one very useful display (you can see us using in today’s animated GIF presentation) for … at the very least …

  • orienteering enthusiasts
  • land surveyors
  • solar panel planners
  • real estate enthusiasts
  • astronomy enthusiasts (perhaps also using the Torch app not to trip on any tree roots!)

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

Posted in eLearning, Tutorials | Tagged , , , , , , , , , , , | Leave a comment