How to Return Ajax Response From Asynchronous JavaScript Call: Methods and Code Examples

When JavaScript is used in conjunction with XML or REST APIs, you can create some useful behaviors with a set of web-development techniques collectively known as Ajax. Let’s take a look at a specific Ajax functionality: returning an Ajax response from an asynchronous JavaScript call. First, What Is Ajax? Asynchronous JavaScript and XML, or Ajax,…

An excellent article on the what, why and how of AJAX.  It’s not just for XML.

via How to Return Ajax Response From Asynchronous JavaScript Call: Methods and Code Examples — DZone Web Dev Zone

A Totally Reto Mode makes a comeback

NV_0317_Thompson_Large.jpg

Since the inception of ham radio until the early 2000s, the licensing of an individual to become a ham radio operator has required an examination in sending and receiving international Morse code, CW, or “continuous wave” (as opposed to spark transmissions, which were intermittent). The reason for this was that the on/off nature of Morse code was reliable, needing the minimum of technology to implement, and that frequency stability and selectivity of early radios did not facilitate voice transmission and reception. There are many quant videos of military training films for Morse code instruction. To put it simply (which I try to do, sometimes too simply), almost any individual — especially one with musical ability — can learn Morse code in about two weeks to the five words per minute level (WPM), and about six weeks to the 13 WPM level.

I am KD8VON.  I have struggled to learn Morse Code for a few years now.  Nice to see that the effort wasn’t wasted.

Recently I did a DIY project on my YouTube channel changing the standard “Hello World” blink script for Arduino to be just a little different for those amateur radio operators who know the Morse.

GMH 053 DIY a better Arduino blink sketch, Hello World, Ham style

Please visit my channel and Subscribe if you like this video or you are a Ham.

Via: Nuts & Volts Match 2017 Issue

 

 

Understanding JSON Schema

2017-08-22_8-53-30

JSON Schema is a powerful tool for validating the structure of JSON data. However, learning to use it by reading its specification is like learning to drive a car by looking at its blueprints. You don’t need to know how an internal combustion engine fits together if all you want to do is pick up the groceries. This book, therefore, aims to be the friendly driving instructor for JSON Schema. It’s for those that want to write it and understand it but maybe aren’t interested in building their own car—er, writing their own JSON Schema validator—just yet.

This is a web based book on JSON and the practical usage of the JSON Schema.  It starts out with the trike and training wheels and moves all the way up to a racing bike.  I learned something in each chapter I read.  I also see the connection between the JSON schema and the Swagger/OAS definitions.  If you have used WSDL for the schema definition in an XML web service you will appreciate how much simpler and easier it is to read a JSON schema.

I did a post a little while ago about a JSON editor that can take advantage of a JSON schema if it’s available.

There is a print version of this book at the following link.

via: Understanding JSON Schema

These Tiny Drawbots Put Unique Doodles on Coasters — Make: DIY Projects and Ideas for Makers

In order to produce something interesting to bring to a monthly hardware meetup, Barton Dring created custom laser coaster engraver/cutters. Read more on MAKE The post These Tiny Drawbots Put Unique Doodles on Coasters appeared first on Make: DIY Projects and Ideas for Makers.

This design is the 3rd evolution of marking up a coaster.  Watch the video of the machine in action, it’s mesmerizing.

via These Tiny Drawbots Put Unique Doodles on Coasters — Make: DIY Projects and Ideas for Makers

Data Driven Documents (D3), API Server (Cdata) Generate REST Server 80+ Data Sources.

2017-08-22_8-45-24

2017-08-22_8-45-52

D3.js is a JavaScript library for producing dynamic, interactive data visualizations in Web browsers, using the widely implemented SVG, HTML5, and CSS standards. The CData API Server enables you to generate REST APIs for 80+ data sources, including both on-premises and cloud-based databases. This article walks through setting up the CData API Server to create a REST…

I have used D3 in concert with C3 to create a data visualization front end to a data warehouse.  D3 has a ton of features but is difficult to use out of the box for the novice user.  The C3 library puts a layer of smarts on top of D3 making it much easier to get started in graphic visualizations.  I’ve also used CData product to get an ODBC connection to Google sheets in order to analyze and transfer results from a Google form survey to a data warehouse.  CData products are very good just be willing to pay for that excellence.

This article is a good read because it combines the two to assemble a REST service and use it to provide the data feed to D3.

via Building Dynamic D3.js Web Apps With Database Data — DZone Web Dev Zone

Boxes -Spice up boring Bash or Powershell scripts

boxes.pngBoxes is a text filter which can draw any kind of box around its input text. Box design choices range from simple boxes to complex ASCII art.  Boxes come with a good collection of ASCII art to start with.  I’m a sucker for boxes, they spice up what would be boring script files.  Boxes were always available on Linux, and now it’s available under Windows.  That’s if you can find them.

This little ditty is a reminder for myself of how to install this on a Windows machine so it is available from everywhere.

Boxes are from Thomas Jensen, download them from this link and save yourself a headache using google to find either boxes, Linux or combinations.  Version 1.2 has been released and has a few extra little goodies.

Getting it installed so you can use it any Powershell script on your system is a little difficult but worth the effort.

Part of my setup for every Windows system I use is to create a directory under the C:\ root to store the commands that are mine.  These are mostly portable applications but include little utilities like Boxes.  I call this directory C:\myCommands.   When I add this directory to the PATH statement it makes all those commands I added to the directory, available from any directory on the computer.

2017-08-21_15-32-07.png

Adding the path is done by editing the environment variable for your account, not the system account.  Look for the Path variable and Edit it.

2017-08-21_16-40-27.png

Then add the special place you created for your stuff.  In my case (C:\myCommands).

2017-08-21_16-40-31.png

When you unzip the BOXES.ZIP program from this link, it is just 2 files.  The EXE which does the work and the CFG which has the ASCII artwork in it.  I unzip them both into the (c:\myCommands) directory.

2017-08-21_15-33-58.png

The last step to getting boxes everywhere is to add a new environment variable to your account.  Start with looking for environment variables.

2017-08-21_16-47-19.png

The name of the new environment variable is BOXES.  The value is your special place (C:\myCommands).

2017-08-21_16-47-36

Verify that the new environment variable has been created.

2017-08-21_16-47-42.png

To have all of this stuff to start working you will need to reboot.  

Now open up the PowerShell window and type:

write-output "GeekMustHave rocks!" | boxes -a hc -d ian_jones

The (ian_jones) is one my favorite ASCII art frames.  There are plenty more art frames in the CFG file.

2017-08-21_16-54-56.png

I also have a YouTube Channel (GeekMustHave) no spaces or your get the makeup ladies.

If you stop by to visit please subscribe to let me know this post helped you.

https://www.youtube.com/channel/UChNSlqKgG8_l0h0C8vRLvbA

 

 

Business Intelligence comparisons done dirt cheap

The proliferation of business intelligence platforms, tools, and software stacks is dizzying. It seems that not a week goes by in which a new product isn’t introduced to the market, which grows ever more fragmented and confusing. Specialized business intelligence tools for cloud-based data visualization, Hadoop, text analytics, and other specific solutions for certain analyses…

It’s official I’m doing any more BI comparison posts.  I just can’t keep up.  I swear there is either new BI tool every week or a “New Features” post on an existing one.  Recently I did a comparison of a specific set of BI Tools requested by a State Agency.  The problem was the selected set of tools to review didn’t provide the best solution.  Now there are 19 websites with comparisons out the Yazoo and you don’t have to pay a consultant, or do you?   This week I have 2 favorites Tableau and Microsofts Power-BI.  I’m fickle so next week it may be something different.

via 19 Websites for Business Intelligence Tools Comparison — DZone Big Data Zone

FreeCommander XE and Powershell

FreeCommanderPortable.png

FreeCommandwe XE is a great replacement for the standard Windows Explorer.  It comes in standard installations and a portable version.  This can be configured to replace the Windows Explorer when you press (Windows)+E keys.   There is a DOS function under tools or keyboard shortcut (CtrL)-D that opens up a DOS Command Line.  There is also an option to have a small text box at the bottom to run DOSCMDS on the fly. Nice!  I have forced myself to use Powershell for the Windows command line.  How do I get FreeCommander to open Powershell instead of the DOS CMD line?

To start the DOS CMD in FreeCommander.

aa.png

The command line is the standard DOS command line with the title changed to FreeCommander

2017-08-18_19-52-06.png

Let’s change it to open Powershell instead.  Start by opening up the settings.

2017-08-18_19-54-25.png

Then open the settings to change the DOS configuration.

2017-08-18_19-55-47.png

Now it’s as simple as entering in the path to your Powershell command.  Yea, that’s not necessarily that simple.  The path name can vary from machine to machine and how PowerShell was installed.

On my Windows 10 system press the (Windows) key and start typing “powershell”.

2017-08-18_19-59-19.png

Now right-click on the Windows Powershell (Desktop app) to open up some options.  We want to know the path where Powershell is located.  I’m thinking the “Open file location” will work.

2017-08-18_20-01-43.png

This opens up a Windows Explorer window to where your Powershell is located.  To get the full path name you have to manually combine the File Name, then click on the directory to expand the path name, then paste them all together.  Still pretty much a pain in the ass.

2017-08-18_20-06-39.png

Let’s try a trick here.  Right-click on the “Windows PowerShell” command, then select the properties for this command.

2017-08-18_20-10-30.png

The “Target” is the path to the Powershell command.  Look, Windows even highlighted it for you.  If it didn’t, then highlight it manually.  Press (Ctrl)-C to copy it.

2017-08-18_20-16-06.png

Then paste (ctrl)-v the path it into the “DOS box command specifications” and press OK.

2017-08-18_20-20-28

Now when you click on (Tools)->(Dos) or press (Ctrl)-d, the wonderful, glorious PowerShell command line window opens up and you can CmdLet your way to heaven.

2017-08-18_20-26-07.png

Welcome to the New-Order.

Visit my YouTube channel to fill up on your technoGeek desires.  Subscribe if this blog post helped you.

2017-08-18_20-28-39.png

 

 

 

 

 

 

Powershell + JavaScript + ConvertToHTML = Web Reports

powershell-hero-16-9-ratio.jpg

Some tips and tricks on how to use a combination of Powershell, JavaScript, and the ConvertToHTML Powerlet to get some nicely formatted web reports.  This article is in multiple parts and start with the first one or you will get totally lost.

I’m getting better at PowerShell and never thought to combine these things together.  The solution is pretty simple stuff but very creative.  This is a Maker project in my mind.

Via: Database Weekly