Back Reference
The third argument to regex is a powerful replacement generator.
The third argument to regex is a powerful replacement generator.
The aphorism "If at first you don't succeed, try, try again" is formalized in pattern matching in a process called backtracking. Backtracking is how the matcher checks out all the possible combinations that might match. This post uses some secret features in JMP's pattern matcher to expose the backtracking process. The single statement below is a moderately complicated pattern match. But even si...
A pattern cut with a laser JMP's pattern matching functions can do almost everything regex can do and a little bit more. Internally, regex is built from the pattern matching functions and sports an easy-to-use interface. You'll probably never need the little bit more, so if you have experience with regex, it might be a good place to stay. Or, you might find the pattern matching language more attra...
( reminds me of Cover the Earth Sherwin Williams Paint (XXH0284) - R.C. Maxwell Company Outdoor Advertising - Duke Libraries ) The attached JSL file (below) does not use the time zone from the previous post. (But it will, in a post soon.) For now, just capture a set of images to make the animation. There are a lot of web sites describing how to do this. They all seemed complicated, so I trie...
Mapping available colors onto a response: you can use a color theme built in to JMP, or you can build a custom mapping with tools in JMP. You'll have to write JSL to use a custom mapping; it won't be a theme.
Using a built in theme: the HeatColor function maps a number between zero and one into a color. This example uses two themes, "jet" and "spectral", and makes the following picture.
New Wind...
HeatColor function maps numbers from zero to one to a custom color range Small demo program showing a custom color theme used with HeatColor.
Around 1960, before ZIP codes, before shopping malls, Grandmother shared a telephone connection with several other people on a party line.The Telephone Company supplied a distinctive ring for each customer, and please don't listen in, it isn't polite. This was in the capital city of North Carolina, 90,000 people. Within a few years she was the last one on the party line, but The Phone Company was ...
The blue GPU line rises to 70C watching a videoJSL runs commands on a Linux machine to make a graph of video card temperature.
An introduction to JSL matrices and a bit of code for an animated gif.
ASCII is the name of one of the original character encodings. A character encoding maps numbers into character shapes; the number 65 is a capital letter A in the ASCII scheme. ASCII only allows for about 95 printable characters and is very US-centric. But at the dawn of computing, before pictures were invented, there was ASCII Art. Often printed on a Teletype on yellow paper, JMP is going to use ...
I've made several projects using audio in different ways: midi files, speech api, calling a windows DLL, and reading/writing WAV files. This time I'll be working with WAV files again. JMP's BlobToMatrix and MatrixToBlob functions to operate on blobs (Binary Large OBjects). LoadTextFile and SaveTextFile know how to read and write blobs. A WAV file is a binary object (you won't get much joy opening ...
4K video! 4K means 2160p 3840x2160, which is really just twice as big (in X and Y) as 1080p 1920x1080. (You'll need a 4K display to see the high res version; YouTube will present a lower resolution for most of us. Still looks great.) This video was made from a series of 2D images of a 3D model saved from JSL. The attached JSL files build a branching structure out of spheres and send the camer...
Spray Paint was a poor attempt at flocking behavior. I think the part I was missing was alignment, which http://gamedevelopment.tutsplus.com/tutorials/the-three-simple-rules-of-flocking-behaviors-alignment-cohesion-and-separa… steered me toward. Here's a new video.ChanceOfDragons - YouTubeAnd here's the JSL for creating the bitmaps (again, no apologies...you'll need to remove the neighborhood a...
Question from @billkopp. Using cURL to supply basic authentication credentials. Replace "user" and "pass" appropriately. Remove the -k if you don't need it; it bypasses the checking for a valid signing authority on an https site's certificate (you probably know if you are using a self-signed certificate...then you'll need it). DO use https if available; it will keep others from seeing the pass...
The JSL below creates two bitmaps: a rainbow-colored background and a Mandelbrot shaped mask. The two bitmaps are added to a graph and the rainbow is moved around under the mask. It's very fast because the bitmaps are only created once and the OS provides support for the mask's transparent hole.The transparent hole in the mask is created with the alpha layer, which is similar to the red, green, ...
I just discovered the 20-year-old Wireworld computer, which appears to be just a picture. It's much more than a picture. Its a functional piece of art that calculates prime numbers. It's a description and implementation of a computer. It must have been a labor of love for the folks that created it.From the picture I learned about one choice for the only instruction in a One-Instruction compute...
I wasn't sure where this project would go. The attached JSL script (below) generates images to a desktop folder (create it first) that can be combined into a video using other video creation software. I used Blender's NLE; there are packages with shorter learning curves.Making no apologies for the script, it was a work in progress, and then it was done.There is something happening in the first 7...
Data Table Blue Birds is an example data table with a script that uses a column of images. Video to go with the stills...