Numbers Guessing Game
Your Numbers Game
Get
clueYour
answerYour
ScoreClue? Score 0/0
-
Recent Posts
- PHP Exif Quiz Geographicals Tutorial
- PHP Exif Quiz Tutorial
- PHP Exif Retention off iPhone Images Tutorial
- List to Grid Layout CSS Media Query Tutorial
- List to Grid Layout Primer Tutorial
- Out and About WordPress Blog Content Tweaks Just with iPhone Tutorial
- Command Line History By Date Tutorial
- Overseas Travel Global Roaming Mobile Primer Tutorial
Categories
- Ajax
- Android
- Animation
- Anything You Like
- Code::Blocks
- Coding
- Colour Matching
- Data Integration
- Database
- Delphi
- Eclipse
- eLearning
- ESL
- Event-Driven Programming
- Games
- GIMP
- GUI
- Hardware
- Installers
- iOS
- Land Surveying
- Moodle
- Music Poll
- NetBeans
- Networking
- News
- Not Categorised
- OOP
- Operating System
- Photography
- Projects
- Signage Poll
- Software
- SpectroPhotometer
- Tiki Wiki
- Trips
- Tutorials
- Uncategorized
- Visual Studio
- Xcode
Meta
Tags
Ajax animation background button canvas command line CSS Did you know DOM dropdown email emoji event form game Google Google chart hashtag HTML IFRAME image iOS Javascript MAMP media mobile navigation onclick overlay PHP popup programming select share sharing SMS SVG table text textarea tutorial url video web browser webpageYour Background Image
OnTopList
Tag Archives: DOS
YouTube API Caller Radio Play Doctype Meta Tutorial
It took a session on this MacBook Air’s macOS Firefox web browser trying the Tabular Single Row Media Gallery web application to emphasise the importance of more consistency checking on … doctype HTML tagdeclaration … <!DOCTYPE html> … and … meta HTML display tagcharset attribute … <meta charset=”UTF-8″> … existence in web applications we create, to the point that not having the second one defined was stopping proper webpage display on Firefox. Was this a portent of what is to come soon on more web browsers?! Let’s look at the purpose of these two HTML tagthingos … doctype HTML tagdeclaration … All HTML documents must start with a declaration. The declaration is not an HTML tag. It is an “information” to the browser about what document type to expect. … and … meta HTML display tagcharset attribute … The charset attribute specifies the character encoding for the HTML document. The HTML5 specification encourages web developers to use the UTF-8 character set, which covers almost all of the characters and symbols in the world! Regarding the same web application as yesterday’s YouTube API Caller Radio Play Playlist Windows Local System Tutorial talked about, why not revisit the tweaked swipe_media.html Tabular Single Row Media Gallery web application? Previous relevant YouTube API Caller Radio Play Playlist Windows Local System Tutorial is shown below. Further to the recent YouTube API Caller Radio Play Playlist Local System Tutorial macOS local system discussion, today, we code for … play … to mean something on the … Windows … “cmd” command accessible … command line What’s the scripting here? They are called batch files with extension *.bat we’re calling play.bat (going back to the DOS days of the ’70’s again). With *.bat you just need to plonk your play.bat anywhere within the Windows local system path, and the word (now command) “play” will do the rest anywhere in that user’s command line environment. And the batch file has … @echo off rem play.bat rem RJM Programming rem November, 2025 set passed= set rest= if trick==trick%1 ( set /p ans=Radio Play via comma separate YouTube 11 character IDs or search ideas for a playlist … egs. Tragedy,Boogie Wonderland,Down Among the Dead Men … random … Tragedy ,Imagine*3,Breezin … ordered 5 … Tragedy ,Pina Colada Son,Fast Car … audio … Tragedy ,Galveston,Fix You … audio ordered, and go. ) else ( set ans=”%1″ set passed=yes if trick==trick%2 goto :loop … Continue reading →
Posted in eLearning, Event-Driven Programming, Operating System, Tutorials
|
Tagged absolute URL, address bar, after, album, alias, alphabetic, alphabetical, animated gif, animation, API, argument, array, attribute, audio, authority, Bash, bash shell, bat, batch, blocker, breadcrumbs, cache, call, cell, class, cmd, comma separated values, commad, command line, compilation, completion, condition, conditional, connection, console, console.warn, content, contenteditable, CSS, CSV, cursor, data uri, debug, debugging, declaration, decodeURIComponent, delay, details, Did you know, display, doctype, document.title, DOM, DOS, double click, dropdown, duration, element, email, emoji, encodeURIComponent, encrypt, encryption, environment, error 414, event, Firefox, genre, global, global variable, Google, Google Chrome, hands free, hashtag, hashtagging, hierarchy, HTML, IFRAME, image, img, instance, integration, interactive, interfacing, internationalization, itinerary, Javascript, jump, keyboard, language, link, links, list, lleyton, local system, localStorage, loop, looping, macOS, media, meta, mimetype, moderation, modularization, module, navigation, Object Oriented Programming, oncontextmenu, onkeypress, onmousedown, ontouchdown, ontouchmove, OOP, open, Opera, option, order, overlay, persistence, PHP, plan, platform, play, play button, playlist, popup, popup blocker, profile, programming, progress, recall, recalling, remember, remembering, repeat, reveal, right click, schedule, scheduling, scope, script, select, sessionStorage, setInterval, setTimeout, share, shell, shell script, software integration, sort, sppech to text, standing order, stop press, summary, tab, table, table cell, Terminal, text, text cursor, textbox, textual cursor, timer, title, toggle, top, tutorial, url, user, user input, variable, video, visibility, web browser, web inspector, webpage, whitespace, window, Windows, word, words, wrap, wrapper, wrapping, YouTube, YouTube API
|
Leave a comment
YouTube API Caller Radio Play Playlist Windows Local System Tutorial
Further to the recent YouTube API Caller Radio Play Playlist Local System Tutorial macOS local system discussion, today, we code for … play … to mean something on the … Windows … “cmd” command accessible … command line What’s the scripting here? They are called batch files with extension *.bat we’re calling play.bat (going back to the DOS days of the ’70’s again). With *.bat you just need to plonk your play.bat anywhere within the Windows local system path, and the word (now command) “play” will do the rest anywhere in that user’s command line environment. And the batch file has … @echo off rem play.bat rem RJM Programming rem November, 2025 set passed= set rest= if trick==trick%1 ( set /p ans=Radio Play via comma separate YouTube 11 character IDs or search ideas for a playlist … egs. Tragedy,Boogie Wonderland,Down Among the Dead Men … random … Tragedy ,Imagine*3,Breezin … ordered 5 … Tragedy ,Pina Colada Son,Fast Car … audio … Tragedy ,Galveston,Fix You … audio ordered, and go. ) else ( set ans=”%1″ set passed=yes if trick==trick%2 goto :loop set ans=”%ans%,%2″ if trick==trick%3 goto :loop set ans=”%ans%,%3″ if trick==trick%4 goto :loop set ans=”%ans%,%4″ if trick==trick%5 goto :loop set ans=”%ans%,%5″ if trick==trick%6 goto :loop set ans=”%ans%,%6″ if trick==trick%7 goto :loop set ans=”%ans%,%7″ if trick==trick%8 goto :loop set ans=”%ans%,%8″ if trick==trick%9 goto :loop set ans=”%ans%,%9″ explorer.exe “https://www.rjmprogramming.com.au/HTMLCSS/swipe_media.html %ans:”=%” :loop if “%9″==”” ( @echo off ) else ( shift set rest=”%rest%,%9″ goto :loop ) set ans=”%ans%%rest%” set ans=%ans:”=% explorer.exe “https://www.rjmprogramming.com.au/HTMLCSS/swipe_media.html %ans%” ) if trick==trick%passed% ( set ans=%ans:”=% if “%ans:,=%”==”%ans%” ( echo “Nothing to do.” ) else ( explorer.exe “https://www.rjmprogramming.com.au/HTMLCSS/swipe_media.html %ans%” ) ) rem exit :end … as your starting gambit, here, where the equivalent of macOS’s “open” is “explorer.exe” on Windows (ie. the File Explorer) … almost as cute! Previous relevant YouTube API Caller Radio Play Playlist Local System Tutorial is shown below. The .. command line … of a laptop or notebook or personal computer can be an environment to relax from the GUI aspects of your modern operating systems and think about … processes batch driven tasks task simplifications … and in the category of that last one, on our local macOS operating system we envisaged a day we could slip back to the “quiet world” of the “command line” and type a command like … play Tragedy,Imagine,Down Among the Dead Men PAN – … and get somewhere playing those … Continue reading →
Posted in eLearning, Event-Driven Programming, Operating System, Tutorials
|
Tagged absolute URL, address bar, after, album, alias, alphabetic, alphabetical, animated gif, animation, API, argument, array, audio, authority, Bash, bash shell, bat, batch, blocker, breadcrumbs, cache, call, cell, class, cmd, comma separated values, commad, command line, compilation, completion, condition, conditional, connection, console, console.warn, content, contenteditable, CSS, CSV, cursor, data uri, debug, debugging, decodeURIComponent, delay, details, Did you know, display, document.title, DOM, DOS, double click, dropdown, duration, element, email, emoji, encodeURIComponent, encrypt, encryption, environment, error 414, event, genre, global, global variable, Google, Google Chrome, hands free, hashtag, hashtagging, hierarchy, HTML, IFRAME, image, img, instance, integration, interactive, interfacing, internationalization, itinerary, Javascript, jump, keyboard, language, link, links, list, lleyton, local system, localStorage, loop, looping, macOS, media, mimetype, moderation, modularization, module, navigation, Object Oriented Programming, oncontextmenu, onkeypress, onmousedown, ontouchdown, ontouchmove, OOP, open, Opera, option, order, overlay, persistence, PHP, plan, platform, play, play button, playlist, popup, popup blocker, profile, programming, progress, recall, recalling, remember, remembering, repeat, reveal, right click, schedule, scheduling, scope, script, select, sessionStorage, setInterval, setTimeout, share, shell, shell script, software integration, sort, sppech to text, standing order, stop press, summary, tab, table, table cell, Terminal, text, text cursor, textbox, textual cursor, timer, title, toggle, top, tutorial, url, user, user input, variable, video, visibility, web browser, web inspector, webpage, whitespace, window, Windows, word, words, wrap, wrapper, wrapping, YouTube, YouTube API
|
Leave a comment
Denial of Service Attack Survival Defence Tutorial
When there is a rush for online ticket sales you will often see the symptoms of a Denial of Service attack … In computing, a denial-of-service attack (DoS attack) is a cyberattack in which the perpetrator seeks to make a machine or network resource unavailable to its intended users by temporarily or indefinitely disrupting services of a host connected to a network. Denial of service is typically accomplished by flooding the targeted machine or resource with superfluous requests in an attempt to overload systems and prevent some or all legitimate requests from being fulfilled.[1] The range of attacks varies widely, spanning from inundating a server with millions of requests to slow its performance, overwhelming a server with a substantial amount of invalid data, to submitting requests with an illegitimate IP address. … of a website. That is an example of … business as usual attack … but there are also … malicious organized attacks … that can happen too. We have, quite forlornly, in the past, tried to block access to our website of IP addresses an Apache Status report can advise you regarding who is sending a flood of suspicious calls. But these days you get “banks of such IP addresses” where the first three numbers are the same and different fourth number IP addresses collude to flood the website targeted … it is like the guacamole … and even better Whac-a-mole game trying to contend with the issue this way. Even so, perhaps later, we will resort to an IP address deny approach?! Okay, so what else can we try? Maybe you noticed it in amongst the slides of WordPress Recent Posts Korn Shell Tutorial‘s animated GIF … anyone, anyone? Yes, Alecx, did you notice anything? The police have kidnapped my children! Okay, now, we’ve talked about that before, Alecx, yes?! Anybody else? Yes, Aleck, did you see something? The yellow shading up above, quite patently, is designed to be … an annotated version of a slide from WordPress Recent Posts Korn Shell Tutorial‘s animated GIF tarted up in some puerile attempt to make us think jealousy, deceit, cowardice, and even illness are contributing to the police having kidnapped her children! Well … oh, is that the bell?! We’ll take this up again tomorrow! But meanwhile, back at some ranch somewhere … over to you, admin … We’re currently trying a Korn Shell script Watchdog (ie. automated) approach … Continue reading →
Posted in eLearning, Operating System, Tutorials
|
Tagged Apache, apache httpd, configuration, connection, crontab, denial of service, denial of service attack, DOS, flood, httpd service, IP address, korn shell, Linux, operating system, ps, report, restart, security, service, start, tutorial, watchdog, wc
|
Leave a comment
Google Chart Geo and or Map Chart Windows Batch File Tutorial
The “least bother” desktop command line application means are (via the use of) … macOS Windows Shell Scripts (eg. Korn, C, Bourne, Bash) Batch Files … in the Windows case, going back to “the days of DOS” (and whatever happened to that “DOS is on its way out” talk way back when Windows 95 came out?) No compilers, just desktop operating system “out of the box” interpretive ideas which still work, not for every software idea, but for lots, including those that need to use interactive entry methods to glean information from the user, in the changed geo_chart.bat we’d like you to download to your Windows system (and just run via typing its geo_chart.bat name (at the cmd command line) within the directory where it exists, and you have “cd“ed to) … @echo off setlocal EnableDelayedExpansion echo Interface to Google Chart Geo or Map Chart interfacer created by RJM Programming … echo. set text = “” set equl = “=” set underscore = “__” set centralplace = “” set /p verb=Verb for command line eg. firefox eg. curl eg. map if not defined verb set verb = “map” if defined verb goto goonverb set verb = “map” :goonverb if “!verb!” == “” set verb = “map” echo. set /p commastring=Enter comma separated list of placenames, or list of countries eg. Sydney,London,Beijing,Paris,Rome,Boston,Santiago,Cairo,Istanbul,New_Delhi if not defined commastring goto veryend if “!verb!” == “map” goto gopastc echo. set /p centralplace=Enter optional central country eg. Italy :gopastc echo. set /p width=Enter width eg. 1112 if defined verb goto goonwidth set width = “556” :goonwidth echo. set /p height=Enter height eg. 694 if defined verb goto goonheight set height = “347” :goonheight echo. set /p text=Enter the word text for text display echo. echo ‘Starting the call …’ if “!verb!” == “map” goto gopastxc echo %verb% “https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?%text%_%width%_%height%_%centralplace%_listis=%commastring%” %verb% “https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?%text%_%width%_%height%_%centralplace%_listis=%commastring%” exit :gopastxc echo C:\Progra~1\INTERN~1\iexplore.exe “https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?%text%_%width%_%height%_%centralplace%___listis=%commastring%#mapit=y” C:\Progra~1\INTERN~1\iexplore.exe “https://www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?%text%_%width%_%height%_%centralplace%___listis=%commastring%#mapit=y” exit :veryend exit … to have a Windows Geo and or Map Google Chart hosting solution which is not reliant on any MAMP local web servers, perhaps?! But do please read about the “Intranet feeling” alternative ideas from yesterday’s Google Chart Geo and or Map Chart Modes of Use Tutorial should you want to start learning the great PHP serverside (and command line, and curl friendly) language. Previous relevant Google Chart Geo and or Map Chart Modes of Use Tutorial is shown below. We get a bit of a … Continue reading →
Posted in eLearning, Operating System, Software, Tutorials
|
Tagged Apache, application, batch, batch file, CD, chart, cmd, command, command line, curl, Desktop Application, Document Root, DOS, executable, file, filename, geo chart, geographicals, Google, Google chart, interactive, interactive entry, interface, interpretive, intranet, korn shell, local web server, macOS, MAMP, map, map chart, modes of use, MS-DOS, name, PATH, PHP, program, programming, shell, surfing the net, surfing the web, Terminal, tutorial, web browser, Windows
|
Leave a comment
PHP Calls Windows and macOS URL Recaller Local Storage Tutorial
It occurred to us, with the progress up to yesterday’s PHP Calls Windows and macOS Nimh Game Integration Tutorial, with our “PHP Calls Windows (DOS Batch) and macOS (Apple Script) URL Recall” tool, that if there could be a way, on the non-mobile platforms allowed, for not so many popup window attempts be made, that would be an improvement. And then we remembered good ol’ … window.localStorage … that might work, in this first draft of approach … if PHP found in a localhost type of URL no longer do “looking for” popup windows at the start until the next failure … and … if PHP not found in a localhost type of URL no longer do “looking for” popup windows at the start until a whole day passes perhaps (but offer the user the chance to change the interval here) and make the emoji button have 0.1 opacity, us allowing user interaction overrides in that bottom right SMS clicking area’s Javascript prompt window functionality via … recipt=prompt(‘Enter SMS or email address to send to. Enter – to remove any localStorage local web storage entry (‘ + window.localStorage.getItem(‘apple_script_url_port’) + ‘). Prefix with + any localStorage local web storage number of seconds between scrutiny entry (just + for 86400 one day).’, ”); … or a non-publicized way that by adding &locportstr=[localWebServerPortNumber] to the address bar URL, a localStorage reset can happen … var portstr=location.search.split(‘locportstr=’)[1] ? (‘:’ + decodeURIComponent(location.search.split(‘locportstr=’)[1].split(‘&’)[0])).replace(‘::’,’:’).replace(/^\:$/g,”) : ‘:8888′; … in the changed “external Javascript” apple_script_url.js (which is only needed up at the RJM Programming domain (when using RJM Programming domain web applications that is)). We hope it suits the way more users roll! Previous relevant PHP Calls Windows and macOS Nimh Game Integration Tutorial is shown below. On top of yesterday’s PHP Calls Windows and macOS Gimp Guillotine Follow Up Tutorial‘s progress with our “PHP Calls Windows (DOS Batch) and macOS (Apple Script) URL Recall” tool integrations, today … improving a filename length issue integrating with our Nimh game … and also … add some sharing “double click” logic for … email via the default email client application, where body content is the same URL link we are interested in with Apple Script or DOS Batch interfacing … or … SMS via the default SMS client application, if clicking the bottom right part of the “emoji button” in an “a” element, as per … function postplayme() { var aois=document.getElementById(‘asue’); … Continue reading →
Posted in eLearning, Event-Driven Programming, Games, Tutorials
|
Tagged action, aesthetics, Ajax, Apache, apple script, argument, arguments, batch, blog, call, called, caller, client application, command, command line, CSS, curl, data, desktop, display, DOS, download, email, emoji, emoji button, exec, execute, external Javascript, form, gam, games, genericization, genericize, get, Google Charts, HTTP Error, induction, integration, intranet, Javascript, length, local web server, localStorage, look, macOS, MAMP, method, MS-DOS, navigation, open, passthru, PHP, PHP_OS, pie chart, post, programming, script, SMS, software integration, style, styling, terminla, tutorial, Web Application, web server, Windows, Wordpress
|
Leave a comment
PHP Calls Windows and macOS Nimh Game Integration Tutorial
On top of yesterday’s PHP Calls Windows and macOS Gimp Guillotine Follow Up Tutorial‘s progress with our “PHP Calls Windows (DOS Batch) and macOS (Apple Script) URL Recall” tool integrations, today … improving a filename length issue integrating with our Nimh game … and also … add some sharing “double click” logic for … email via the default email client application, where body content is the same URL link we are interested in with Apple Script or DOS Batch interfacing … or … SMS via the default SMS client application, if clicking the bottom right part of the “emoji button” in an “a” element, as per … function postplayme() { var aois=document.getElementById(‘asue’); aois.title=’Now email off this URL link. ‘ + ” + aois.title; aois.href=’mailto:?subject=Email%20URL%20Snapshot%20%2e%2e%2e&body=’ + encodeURIComponent(document.URL.split(‘#’)[0]); aois.target=’_top’; } function justplayme(aoisev) { var aax=0, aay=0, aarect=null, vsx=0, vsy=0, recipt=”; if (locfound) { var aois=aoisev.target; if ((” + document.URL).indexOf(mustcontainc) != -1 && aois.title.indexOf(‘ … ‘) == -1) { if ((” + aois.href).replace(/^null/g,”) == ”) { if (aoisev.clientX) { aax = aoisev.clientX; aay = aoisev.clientY; } else { aax = aoisev.pageX; aay = aoisev.pageY; } aarect=aois.getBoundingClientRect(); vsx=eval(eval(” + aarect.left) + eval(eval(” + aarect.width) * 0.70)); vsy=eval(eval(” + aarect.top) + eval(eval(” + aarect.height) * 0.70)); //if (eval(” + aax) >= vsx) { alert(‘X is SMS aay=’ + aay + ‘ should be greater than vsy=’ + vsy + ‘ aarect.bottom=’ + aarect.bottom + ‘ aarect.top=’ + aarect.top + ‘ aarect.height=’ + aarect.height); } //if (eval(” + aay) >= vsy) { alert(‘Y is SMS’); } if (eval(” + aax) >= vsx && eval(” + aay) >= vsy) { recipt=prompt(‘Enter SMS or email address to send to.’, ”); if (recipt == null) { recipt=”; } if (recipt.trim() != ”) { if (recipt.trim().indexOf(‘@’) > 0) { aois.title=’Now email off this URL link … ‘ + ” + aois.title; aois.href=’mailto:’ + recipt.trim() + ‘?subject=Email%20URL%20Snapshot%20%2e%2e%2e&body=’ + encodeURIComponent(document.URL.split(‘#’)[0]); aois.target=’_top’; aois.click(); } else if (recipt.trim().replace(/0/g,”).replace(/1/g,”).replace(/2/g,”).replace(/3/g,”).replace(/4/g,”).replace(/5/g,”).replace(/6/g,”).replace(/7/g,”).replace(/8/g,”).replace(/9/g,”) == ”) { aois.title=’Now SMS off this URL link … ‘ + ” + aois.title; aois.href=’sms:’ + recipt.trim() + ‘&body=’ + encodeURIComponent(document.URL.split(‘#’)[0]); aois.target=’_top’; aois.click(); } } } else { setTimeout(postplayme, 2000); //aois.title=’Now email off this URL link. ‘ + ” + aois.title; //aois.href=’mailto:?subject=Email%20URL%20Snapshot%20%2e%2e%2e&body=’ + encodeURIComponent(document.URL.split(‘#’)[0]); //aois.target=’_top’; } //if (document.URL.indexOf(‘why=’) != -1) { // asuwo=window.open(firstloc + ‘apple_script_url.php?justplay=y&showothers=y&tsplus=’ + encodeURIComponent(document.URL.split(‘#’)[0].split(‘&blurb=Sorry’)[0].replace(‘HTTP’,’http’).replace(/\./g,’_’).replace(/\?/g,’_’).replace(/\&/g,’_’).replace(/\=/g,’_’).replace(/\:/g,’_’).replace(/\//g,’_’).replace(/\,/g,’_’).replace(/\[/g,’_’).replace(/\]/g,’_’).replace(/\~/g,’_’).replace(/\`/g,’_’)).replace(/\%20/g,’_’).replace(/\+/g,’_’) + ‘&url=’ + encodeURIComponent(document.URL.split(‘#’)[0].split(‘&blurb=Sorry’)[0]),’_blank’,’top=50,left=50,width=500,height=500′); // setTimeout(checkasu, 35000); //} else { if (nothingis != ”) { documentURL=document.URL; while (documentURL.indexOf(nothingis) != -1) { documentURL=documentURL.replace(nothingis,”); } asuwo=window.open(firstloc + ‘apple_script_url.php?justplay=y¬hing=’ + encodeURIComponent(nothingis) … Continue reading →
Posted in eLearning, Event-Driven Programming, Games, Operating System, Tutorials
|
Tagged action, aesthetics, Ajax, Apache, apple script, argument, arguments, batch, blog, call, called, caller, client application, command, command line, CSS, curl, data, desktop, display, DOS, download, email, emoji, emoji button, exec, execute, external Javascript, form, gam, games, genericization, genericize, get, Google Charts, HTTP Error, induction, integration, intranet, Javascript, length, local web server, look, macOS, MAMP, method, MS-DOS, navigation, open, passthru, PHP, PHP_OS, pie chart, post, programming, script, SMS, software integration, style, styling, terminla, tutorial, Web Application, Windows, Wordpress
|
Leave a comment
PHP Calls Windows and macOS Gimp Guillotine Follow Up Tutorial
It’s amazing with integration how data springs up surprises. Just as you think your tool is bulletproof, data issues can come and spoil the Barty party. On the same theme as yesterday’s PHP Calls Windows and macOS Google Charts and Blog Tutorial we wanted to integrate the recent “PHP Calls Windows (DOS Batch) and macOS (Apple Script) URL Recall” tool with the “Gimp Guillotine Follow Up” web application featuring lots of ways to represent a set of related images. Another overcomable issue arose thinking about this. We think it is wise quite often when using navigation via … PHP (or other serverside code) … using … HTML element form … with … action=[the same URL as the form belongs to] … or … (the “here’s looking at you, kid”, clause”) … to also use method=POST because the data sizes (involved with the form navigation) might make “method=GET” alternative approach unviable (and you get HTTP error 414). But here’s an occasion, integrating this recent “PHP Calls Windows (DOS Batch) and macOS (Apple Script) URL Recall” tool, where “method=GET” comes back into our thinking. Why? Well, with “method=GET” being used with the HTML form, we can end up with some useful and meaningful macOS or Windows Desktop folder files describing a situation that you might want to retain and recover (the same scenario of) at a later date. And now that we are happy we can discover whether the “PHP Calls Windows (DOS Batch) and macOS (Apple Script) URL Recall” tool exists or not, we can switch from … form method=POST to … method=GET … if we amend the document.body onload event function “selopts” as per … <?php echo ” function selopts() { if (document.getElementById(‘asue’) && eval(” + document.getElementsByTagName(‘form’).length) > 0) { document.getElementsByTagName(‘form’)[0].method=’GET’; } ” . $selopts . ” } “; ?> … dynamically (and only as potentially needed), and teamed with the new “within head element” … <?php echo ” <script type=’text/javascript’ src=’apple_script_url.js?mustconXtain=&&lefXt=calc(50% – 85px)&toXp=calc(50% + 80px)&emojXi=128220&csXs=font-size:30px;opacity:0.8;></script> “; ?> … in the changed gimp_guillotine_followup.php that you can try out at this live run link … all “good to go” where the data length won’t exceed method=GET URL length limits around 800-900 characters we seem to have up at the RJM Programming domain webpages. Happily, in the case of “Gimp Guillotine Follow Up” work, this should not be a problem. Sadly, in many other method=POST PHP scenarios, this will not be the … Continue reading →
Posted in Ajax, eLearning, Event-Driven Programming, Tutorials
|
Tagged action, aesthetics, Ajax, Apache, apple script, argument, arguments, batch, blog, call, called, caller, command, command line, CSS, curl, data, desktop, display, DOS, download, emoji, emoji button, exec, execute, external Javascript, form, genericization, genericize, get, Google Charts, HTTP Error, induction, integration, intranet, Javascript, local web server, look, macOS, MAMP, method, MS-DOS, navigation, open, passthru, PHP, PHP_OS, pie chart, post, programming, script, software integration, style, styling, terminla, tutorial, Web Application, Windows, Wordpress
|
Leave a comment
PHP Calls Windows and macOS Google Charts and Blog Tutorial
We tackle two more integrations of our current “PHP Calls Windows (DOS Batch) and macOS (Apple Script) URL Recall” tool (made up of external Javascript and local web server downloaded PHP), those being … the blog you are reading … a one line change into our TwentyTen themed header.php’s … <?php echo ” <script type=’text/javascript’ src=’/apple_script_url.js?mustconXtain=&&left=calc(65% + 5px)&top=calc(0% + 58px)&emojXi=128220&css=font-size:22px;opacity:0.8;’></script> “; ?> … for non-mobile users that is … our inhouse Google Chart interfacers such as Pie Chart … for non-mobile users that is … onto yesterday’s PHP Calls Windows Batch Genericization Tutorial “end of our genericizations drive” (for the forseeable future). Hang on! There are quite a few Google Chart interfacers (eg. Line Chart, TimeLine Chart, Histogram Chart, Map Chart, Geo Chart etcetera etcetera etcetera), so that must have been a lot of work?! Well, no, it wasn’t, because we intervened into another external Javascript’s workings which is called by all these interfacers, and so only needed to … change this way … function ggmuchlater() { var scriptz = document.createElement(“script”); // create a script DOM node scriptz.src = ‘/apple_script_url.js?left=calc(100% – 60px)&top=2px&emojXi=128220&css=font-size:30px;opacity:0.8;&mustcontain=&’; // set its src to the provided URL document.head.appendChild(scriptz); // add it to the end of the head section of the page (could change ‘head’ to ‘body’ to add it to the end of the body section instead) … thanks to https://dev-answers.com/solutions/3287e028/how-do-i-include-a-javascript-file-in-another-javascript-file } setTimeout(ggmuchlater, 7000); … the gchartgen.js Google Chart interfacing helper external Javascript (only needed up at the RJM Programming domain) … thanks to https://dev-answers.com/solutions/3287e028/how-do-i-include-a-javascript-file-in-another-javascript-file … but this change required, also … a strategically changed “external Javascript” apple_script_url.js, featuring Ajax … var gczhr=null; var plusscr=”; var retgcval=”; function gcshowStuff() { if (gczhr != null) { if (gczhr.readyState == 4) { if (gczhr.status == 200) { plusscr+=gczhr.responseText; } } } } function gcajaxit(gcurlis) { gczhr = new XMLHttpRequest(); gczhr.open(‘get’, gcurlis, true); gczhr.onreadystatechange = gcshowStuff; gczhr.send(null); } function changethedefaultsmaybe() { var defpallette=”, thisonepal=”, calcpal=”, calcper=”, icalcper=-1, proposedport=”; if (document.head.innerHTML.indexOf(‘apple_s’ + ‘cript_url.js?’) == -1 && document.head.innerHTML.indexOf(‘/gchart’ + ‘gen.js’) != -1 && plusscr == ”) { var efforts=document.head.innerHTML.split(‘/gchart’ + ‘gen.js’); var slicerz=-1; var gcslicerz=”; while (slicerz < 0) { if (efforts[0].slice(slicerz).substring(0,1) == “‘” || efforts[0].slice(slicerz).substring(0,1) == ‘”‘ || efforts[0].slice(slicerz).substring(0,1) == ‘=’) { slicerz=0; } else { gcslicerz=efforts[0].slice(slicerz).substring(0,1) + gcslicerz; slicerz–; } } gcajaxit(gcslicerz + ‘/gchart’ + ‘gen.js’); return ‘1’; } if ((document.head.innerHTML + plusscr).indexOf(‘apple_s’ + ‘cript_url.js?’) != -1) { defpallette=(document.head.innerHTML + plusscr).split(‘apple_s’ + ‘cript_url.js?’)[1].split(‘>’)[0].split(‘”‘)[0].split(“‘”)[0].replace(/\&\;/g,’&’).replace(/mustcontain\=\&$/g, ‘mustcontain=’ + encodeURIComponent(‘&’)).replace(‘mustcontain=&&’, ‘mustcontain=’ + encodeURIComponent(‘&’) + … Continue reading →
Posted in Ajax, eLearning, Event-Driven Programming, Operating System, Tutorials
|
Tagged aesthetics, Ajax, Apache, apple script, argument, arguments, batch, blog, call, called, caller, command, command line, CSS, curl, desktop, display, DOS, download, emoji, emoji button, exec, execute, external Javascript, genericization, genericize, Google Charts, induction, integration, intranet, Javascript, local web server, look, macOS, MAMP, MS-DOS, open, passthru, PHP, PHP_OS, pie chart, programming, script, software integration, style, styling, terminla, tutorial, Web Application, Windows, Wordpress
|
Leave a comment


Thanks. Since then, a Shower Songs project at https://www.rjmprogramming.com.au/HTMLCSS/shower_songs.html is an improvement regarding "Radio Play" on mobile platforms.