See also: Conditional (ternary) Operator, MDN web docs
A recipe for responding to a button click with an RxJS Observable.
The observable is created by the operator,
fromEvent, which takes an “element” and an event name as parameters. It will listens for events of that name (i.e. 'click') taking place on that element. It returns an Observable that emits those events. An “element” may be a simple DOM element, or a NodeList, jQuery element, Zepto Element, Angular element, Ember.js element, or EventEmitter.
This operator also takes an optional third parameter: a function that accepts the arguments from the event handler as parameters and returns an item to be emitted by the resulting Observable in place of the event.
<script> element for importing as shown above.
Creating your own observer
Alternatively, you could create your on observer to listen to the click event. Since RxJS provides the
fromEvent operator, this is unnecessary. However, showing how this could be done provides a good example of how to create your own observers without use of the RxJS operators.
There are several kinds of operators that can be used to create new Observables.
Create— create an Observable from scratch by calling observer methods programmatically
Defer— do not create the Observable until the observer subscribes, and create a fresh Observable for each observer
Throw— create Observables that have very precise and limited behavior
From— convert some other object or data structure into an Observable
Interval— create an Observable that emits a sequence of integers spaced by a particular time interval
Just— convert an object or a set of objects into an Observable that emits that or those objects
Range— create an Observable that emits a range of sequential integers
Repeat— create an Observable that emits a particular item or sequence of items repeatedly
Start— create an Observable that emits the return value of a function
Timer— create an Observable that emits a single item after a given delay
A twisted little tale for Halloween.
Prompt by Cameron Graham, Oct 25 2017, Writing Prompts Group, Facebook
The loneliness was crushing. For six weeks, since the fever had taken her, there had been no one to talk to. The walls would not reply; the looming trees around the cabin had nothing to say; the winds only whipped his words away.
Why did she have to be gone?
He realized she did not have to be gone. Taking up his pick and shovel, he returned to the clearing where he had made her grave.
He dug madly into the earth. The moon watched over him throughout the night and then finally retired. As the sun rose, he carried her frail and withered body back to rest in her favorite chair beside the hearth where she had sat for all the years of his life. It was from that chair she'd taught him all the most important things to know.
"You can't keep that sweet young girl here, Jimmy," Mama would say. And then she would wait patiently as he pinched his ears and shook his head and moaned and groaned in a fit of anger. She was always so patient. Always so gentle and wise.
Jimmy picked maggots from her flesh and tossed them into the fire. He fetched her crochet needles and placed them gently in her hands. Laid the roll of yarn in her lap and arranged the blanket snug upon her shoulders.
"I know, Mama," he said. "Someone might a come lookin' for that girl."
He waited for her to answer as she had done so many times before. He waited for her to say what she always said, and what he always hated to hear. That's right, Jimmy. And you ought not have her in your bed when they come a knockin'.
"But Mama," he would whine.
And "Now, Jimmy," she would say, "you know better. You get that girl on outta here now."
He peeked through the door in his bedroom at the child. In the soft glow of the firelight, he could see that she was still there. Still sleeping. So, he sat on the floor by his mama and waited for her to tell him when it was time.
As the day went on, she said many things, but never a sharp word. She never told him to take the girl on out. She had changed. The fever had softened her heart.
And Jimmy's heart grew full. His loneliness was gone. He had someone to talk to. Like wise old friends, even the trees around the cabin had much to say. The winds sang like a jubilent chorus in their leaves.
If she can stay, why do the others have to be gone too?
He realized they did not have to be gone. Taking up his pick and shovel, he returned to the clearing where he had buried them.
Prompt by Evan Austin, Oct 25 2017, Writing Prompts Group, Facebook
While cutting a diamond at the individual atomic level, you discover a language created by quantum physics. Then you discover it opens a portal to another dimension.
You want to shit a brick? Trust me, you don't.
Imagine you're up late in the lab and you catch a glimpse of yourself in the bathroom mirror. Not unusual, when there's only one of you in the reflection. But when you see yourself standing behind yourself? Now, that's some shit, man. The brick. That's the brick you shit, that is.
"Listen to me very carefully, I have only time to say this once," I said.
Not me, or my reflection, said it. It was the me standing behind my reflection - the one that was in the mirror, but not behind me in the room. If you're confused, I understand. Remember, this is my brick your reading about. My sphincter. Figuratively speaking, of course. And I'm here to tell you, or at least I'm pretty sure I'm here to tell you, that ain't nothing. Let me just say it this way for starters. There's not even a word for where this rabbit hole goes. It just goes. And if it ever opens up for you, don't...Jesus, Mary, mother of God, holy moly, holy smokes, do NOT take the bait.
How would you know? Well, it goes like this.
"The spin calibration is the thirty-two nanos," I said to myself. The weird phantom me, that is. He was dead serious and rushed. "And the medium is wrong! It must be diamonds. Not just any diamonds either. Use Kelly's earrings. She'll forgive you later if she finds out why. If she doesn't, then it doesn't matter 'cause you failed and she'll be dead within the hour."
The weird me flashed in the mirror a few times and disappeared. It was just the two of us left - me and my normal reflection.
"Ha ha," I said aloud. "Pretty fuckin' good guys."
I always thought the nerds at MIT were good at pranks, but at CERN - the shit's at a whole new level, I'm telling you. But to be truthful, I was a little tripped out. Totally sober too. No micro-dose - cross my heart, swear to God - all of them.
I opened each stall looking for the prankster. When I turned back around my phantom was in the mirror again.
"What is the calibration?"
"See! I know you," he said. "It's thirty-two. Remember. Thirty-two. Diamonds. Kelly's earrings!"
"Kelly's ears aren't even pierced," I said smugly - proof the pranksters didn't have all their I's dotted and T's crossed.
"Your Kelly is with me now," he said. "My Kelly is at your house. She has the diamonds on. Get them, get back here, run them with the calibration and then give the stats to MEL. This is not a joke. Go now!"
And then, poof...he was gone.
Just then, a twirp on my smartphone. Selfie from Kelly posing with the earrings.
“WTF? They’re beautiful,” the text said. “Luv u!!! XOXO nano nano.”
How to install Oracle Java 8 on Ubuntu (in may case, Ubuntu 16.04 LTS)
Procedure to install Oracle Java 8 on Ubuntu
You probably want to confirm first that a version of Java is not already installed. If so, you can do that with the java -version command as shown below...
command as shown below.
Change to root...
Check if Java is successfully installed
Procedure to uninstall Oracle Java 8 on Ubuntu
If, for some reason, you want to undo this operation and uninstall Oracle Java 8 from Ubuntu, you can then execute the following:
Here are the two Docker commands you can run in sequence to completely remove (delete) all of your containers and images.
Executing the commands shown above will destroy all your containers and images; it will not be possible to restore them.
As a regular or former PC user, you may find yourself confused by how to add environment variables or add items to the PATH on a Mac. Here's how.
You can edit path and other environment variables through either the user profile or the bash profile.
- Create a file called
.profilein your home directory (i.e.
- Tip: While in a Terminal session, you can always change to your home directory by typing "
cd ~". Type "
pwd" to print out and confirm the directory you are currently in.
- Tip: While in a Terminal session, you can always change to your home directory by typing "
- Add environment and path variables in the
.profilefile as appropriate.
- After modifying
.profile, you'll need to start a new terminal session for the changes to pick up. To make sure everything works properly, you can throw a little echo greeting atop the file. When you start a new terminal, you should see the greeting echoed to you if the file has been recognized by the terminal session.
- After modifying
- Here is a sample from my own
You can also do the same by editing the bash profile...
If you want to add or edit other environment variables, you can modify the bash profile...
For example, you could add lines similar to the following to setup HOME variables for important applications...
Adding paths only
You can modify the path by simply adding paths in the
/etc/paths file. You might find this simpler than building up an
export PATH line in one of the profile methods described above.
Use the following command to open the file in the nano editor...
For example, here's a look at the contents of my
paths file after adding Apache Ant...
After you've added the path and saved the change, you will need to open a new terminal to validate that the changes have taken effect.
Vanessa Foster's account of a misguided youth, fleeing the FBI from Texas all the way to Alaska, is everything a great memoir should be. It's a love-crazed and drug-twisted adventure where one mishap after another unravels her world until little remains, but a helpless wish for grace and a humbled reliance on the aid of culinary angels. It's also a poetic search through the colorful, but frayed and fading pieces of a once hopeful reality. She gropes desperately for a thread of meaning while fumbling with her exhilarating lover in his schizophrenic downward spiral. With all hopes, dreams, family, and innocence seemingly lost, she is finally relented with a gift of grace, illuminated with spiritual truth, and crowned a woman. In losing almost everything, she gains something that is more.
Vanessa Foster delivers all the things we seek from a good story - escape, adventure, entertainment, spiritual retreat and self-discovery. And it's all true.
As a wanna-be writer, I have to envy her. The book reminded me of The Road by Cormac McCarthy. It's not a similar story, but she's similar in her ability to break all the rules of writing in eloquent service of honesty and poetic truth. Like McCarthy, she dismisses quotation marks from dialog in a way that makes the words of others somehow also her own - a technically challenging feat that paints every external scene with vivid emotions from her own mind - her own experience of each moment. In this, she enables us to feel what she felt and to see things as she saw them. We become her. We become who she was, and then we become with her as she changes into something new. Ultimately, we are left with the memory of an experience that might as well have been our own - complete with its hard-earned rewards, and yet all under the safety of our bedside reading lamp.
Today, finding a good book, much less a great one, is a difficult task; they are few and far between. But if you're anything like me, I think you'll find that Vanessa Foster's More Than Everything is at least more than many.
Here's how to use query parameters from the HTPP request (or from the URL) in a personalization component. This page came from my raw notes and hasn't yet been rewritten for the broader audience; sorry. Posting it anyway for those who won't mind a little sloppiness.
The personalization component must be rendered by the WCM servlet (the URL of which you can get from Previewing the component - DONT FORGET TO REMOVE NO CACHE PARAMS IN PROD). If you access it as rendered within the Web Content Viewer, the rule will not have access to the Request and won't be able to get the request parameters.
Assuming the following taxonomy and categories...
And assuming the following content...
We're going to create the following PZN rule...
We created 3 request parameters so that we can enforce a rule that insists that all 3 must be on the content (AND). With this, we can add the following to the URL:
We could alternatively have only 1 request param and do something like this:
The problem with that is that it will only enforce an OR evaluation. If any content is tagged with any one of the given categories, it will show up.
Because we need to ensure that only content tagged with all 3 categories shows up, we create 3 separate request params. This allows us to use the PZN rule to enforce the AND condition.
Here's how you make establish the request parameters and make them available in the pzn rule.
Step one: Click the value slot...
Step two: Navigate to Manage Properties... under the Request item...
When you're just starting, you list may be empty (mine has some examples in it already).
Step Three: Click Add Dynamic Property...
Step four: Fill out as follows...for example...
Your new item should show in the list under Request...
Preview the PZN Component. Remove the unecessary params (like no chache) from the URL for PROD. Add your parameters and category names to the URL. For example:
The IBM Digital Experience suite includes IBM WebSphere Portal, IBM Web Content Manager, IBM Forms Experience Builder, and IBM Web Experience Factory. Following is my curated list of various reference resources related to these products.
Click on headers to sort columns in the table below.
|Resource||Abstract||Topic||Sub-topic||Resource Type||Source||Published or Last Mod|
|Adding Bootstrap to a Portal Theme||This article explains the steps needed to add Bootstrap to a modularized Portal theme:||Theme Development||Bootstrap||IBM developerWorks, IBM Digital Experience Developer Center||2016-01-29|
|Bootstrap meets Portal||How to integrate Twitter Bootstrap with WebSphere Portal and provide the different artifacts that are required.||Theme Development||Bootstrap|
|Simple Theme Custom EAR File Creation|
This sample allows you to quickly make a copy of the Simple Theme ear files and install your own custom version. This will allow you to change the jsps and dynamic content spots in the theme.
|Theme Development||Simple Theme||GitHub, Digital Experience||2016-01-26|
|Simple Theme Bootstrap Layouts||This sample contains four sample layouts which use the Bootstrap framework grid system, which is included in the Simple Theme's static files.||Theme Development||Bootstrap||2016-01-26|
|Theme PAA for IBM WebSphere Portal||Provides access to the Portal 8.5 Theme as a PAA deliverable||Theme Development|
|Developing themes and skins||Theme Development||Product Documentation|
|Getting started with Themes||Theme Development||Product Documentation|
|Theme Development||Product Documentation|
|DX Performance Testing Substitution Patterns for Reusable Test Suites||This article will give you an overview over common portal specific substitution parts when writing reusable & dynamic performance tests. This article will not give you any concrete examples based on a specific tool like JMeter or Rational Performance Tester. Instead all examples consist of a little snippet and a potential regular expression to find the areas for substitution.||Performance Testing and Tuning|
|Portal V8.5 Performance Tuning Guide||Performance Testing and Tuning|
|Resolver Samples for WebSphere Portal||Illustration of late binding to an application using the resolver framework in WebSphere Portal||2015-09-20|
|How to create a custom HTML editor integration||You can use custom HTML editors in all HTML fields of the authoring interface or specific HTML elements that are defined in an authoring template. Custom HTML fields are used to integrate third-party editors into the authoring interface.|
|IBM Digital Experience Developer Center||For developers who use IBM Digital Experience products and tools|
|IBM Digital Experience V8.5 API and Developer Reference Documentation|
API, SPI, and other reference documentation for developers is provided here for convenience. The most current documentation is installed with the respective products.
|SDK and API||Site|
|Sample Node.js Build Tools for Script Portlet||Sample Node.js Build Tools for Script Portlet||2015-07-08|
|WCM Sample Custom Workflow Actions||Sample custom workflow actions for IBM Web Content Manager||2014-07-19|
|WCM Syndication Healthcheck||Periodically update a content item on the authoring server and verify that the update appears on the rendering server.||2014-06-06|
|RSS Sample for IBM Digital Data Connector in WebSphere Portal||RSS Sample for IBM Digital Data Connector in WebSphere Portal - integrate remote RSS data without writing code and style it with Web Content Manager||2014-07-04|
|IBM Digital Experience Wiki|
|IBM Digital Experience YouTube Channel|
|IBM ADL4WCM YouTube Channel|
|Previously, the strings used by the text provider plug-in had to be stored in a custom plug-in. Now they can be stored in content items and site areas, allowing users to create and maintain text provider strings from within Web Content Manager.||Multilingual||2015-07-28|
|IBM Forms Experience Builder 8.6.4||This documentation set contains information for both administrators who install and configure the product, and users who design and build IBM® Forms Experience Builder applications.||Product Documentation|
|What's new with Combined Cumulative Fix 08.|
|What's new with Combined Cumulative Fix 07.|
|Web Developer Toolkit for IBM Digital Experience|
|A Step-By-Step Guide to performing a standalone WebSphere Portal 9.0 installation||This guide is meant to provide a step-by-step for the setup and installation of a standalone IBM WebSphere Portal 9.0. We will also cover prerequisites||2017-01|
Keyboard shortcuts and various tips for IntelliJ IDEA. This document assumes IntelliJ on a Mac, using the Keymap setting for
Mac OS X 10.5+ (in Preferences > Keymap). I know you can get all these through Help > Keymap Reference in IntelliJ, but I like to maintain my own list so that I can organize and search it the way I prefer, plus have a place to add my own additional notes.
|Comment / uncomment selected text||Select block of text and then press Command + /|
|Spread selection from cursor (to word, then line, etc.)||ALT + up arrow or down arrow|
|Format selected code||CTRL + ALT + I|
|Format all code||ALT + CMD + L|
|Autocomplete method parameter info||CMD + P (when cursor is in method signature)|
|Invoke a Surround Template (ex: surround a line with try/catch)||OPTION + CMD + T|
|Complete a statement||SHIFT + CMD + ENTER|
|Import Java Package||Hover over the red text of the class missing a package and press:|
ALT + ENTER
Live templates can be found in Preferences > Editor > Live Templates. Learn them!
To use a live template, enter its short text in the editor and then press tab to replace the short text with its template.
Tool Windows and Dialogs
|Project||CMD + 1|
|Version Control||CMD + 9|
|Preferences||CMD + ,|
|Breakpoints||SHIFT + COMMAND + F8|
|Recent Files||CMD + E|
|Search Everywhere||SHIFT + SHIFT|
|Search Classes||CMD + O|
|Search Symbols||OPTION + CMD + O|
|Navigate back and forth through recent files||CMD + [ and CMD + ]|
|New file (where selection is in Project window)|
CMD + N
Note: you can use slashes to create entire trees abc/def/ghi/jkl...
|Hide all other windows||SHIFT + CMD + F12|
|Stretch pane right or left||SHIFT + CMD + left or right arrow|
|Clipboard History||SHIFT + CMD + V|
|Method List (of the active editor file)||CMD + F12|
CMD + up arrow
Note: This is particularly useful if you turn off the normal navigation bar in preferences to save UI space.
|Action Search||SHIFT + CMD + A (try, for example, "RESTful Web Service")|
|Version Control Quick List||CTRL + V|
|Quick Switch Settings||CTRL + ~|
|Quick Documentation||CTRL + J (and then again to pin it open at larger size).|
TO DO items
Create a TO DO item
- CMD + / to create a new comment line
- Type TODO then whatever comment you want
View all TO DO items
- View > Tool Windows > TODO or
- CMD + 6
Increase IntelliJ IDE memory on a Mac
- Help > Edit Custom VM Options...
- Answer Yes to create the idea.vmoptions file. This will automatically create a copy of the .vmoptions file in the config folder and open a dialog to edit it.
- I change -Xmx750m to -Xmx2048m
Recently I completed a little study incorporating Spring for Stardog into a Spring Boot web app, with successful results. Here's how.
Stardog is a Java based RDF repository server (a.k.a. triple-store and more), which supports the RDF graph data model; SPARQL query language; property graph model and Gremlin graph traversal language; HTTP and SNARL protocols for remote access and control; OWL 2 and user-defined rules for inference and data analytics; virtual graphs; geospatial query answering; and programmatic interaction via several languages and network interfaces. At this point, I don't have a lot of experience with Stardog, but I've been experimenting with it to see what I can learn. As part of my study, I recently incorporated Stardog Spring into a Spring Boot web app - taking notes along the way. Here's my notes on how I got it setup and working successfully.
Download and Install Stardog
For my local development environment on Mac OS, I installed Stardog 5 BETA (Community Edition).
You can download Stardog at www.stardog.com. Once you've downloaded it, unzip the archive to a destination directory. I'm put mine in /Users/cburleson/stardog
Next you need to set the STARDOG_HOME environment variable. You can do this by adding an export line to your .bash_profile.
Add the following line:
Save changes made to .bash_profile by hitting Control+o (that’s an o as in otter), ENTER, then exit out of nano by hitting Control+X.
Note that changes made .bash_profile will require the shell to be restarted or a new shell to spawn.
stardog-license-key.bin into the STARDOG_HOME location. Then you can start the Stardog server to test your installation.
If everything is working properly, you should get the following response.
Note that there is an ERROR in this response, but I think it just has to do with the fact that I'm using the Community edition and not an enterprise edition (see: this support issue).
Still, the server is running and can be accessed in a web browser at
You can also check the server status with the following command:
Now, that you've tested the installation, you can stop the server with the following command.
Add the Stardog Maven Repo to pom.xml
In order to get the required dependencies, you need to add the Stardog public maven repository to your repositories defined in the Maven POM (pom.xml). Here's how that section looks in my file:
Add Stardog Dependencies to pom.xml
Now, we can add the required dependencies. Notice that even though I installed Stardog 5 BETA, I'm using a different version number for various dependencies (still, it works).
Notice that I've got stardog-spring-batch commented in the file, but commented out. I put it in the file incase I decide to use it in the future, but for now, I don't need it.
Create or Edit Spring Application Context File
I prefer using pure Java only configuration for Spring, but I had trouble with this one, so opted to use the XML configuration. I created the following file inside of
Notice that the data importer bean is going to look for an RDF file in the classpath, which should exist in
I got that file from the source project for stardog-spring, which you can find on GitHub at: https://github.com/stardog-union/stardog-spring
You could use any RDF file that you want to have auto-loaded into the Stardog repository.
Make the applicationContext.xml Available to Your Spring Boot App
In order for your Spring Boot app to recognize and load the applicationContext.xml, you'll need to add an annotation to the main application class (the one with a Java main() method)...
The annotation you'll need to add is:
My main application class looks like this:
Create an EmbeddedProvider Java Class
The applicationContext.xml file references an EmbeddedProvider class. There is no EmbeddedProvider exposed by the stardog-spring library, but I found one in the stardog-spring source code at
You'll need to create this class in your project and make sure that you reference the package and class properly for the embeddedProvider bean in your applicationContext.xml file.
Use the Spring for Stardog SnarlTemplate in a Controller
For a quick acid test, I created a simple Spring Controller that gets executed when you hit the path
/test in a web browser.
Here's the simple test controller I created, which logs output from a SPARQL query to the console.
How to Use the SnarlTemplate
The Spring Programming section of the documentation on the Stardog website provides some good information. However, if you want to see some actual code examples, you might want to refer to the TestDataSourceFactory.java class on GitHub. That's where I learned how to execute the query shown in my TestController using a SimpleRowMapper.
Test the App
Now you should be able to run your Spring Boot application and hit the TestController (/test in your browser). When you hit the URL, you should see the following output logged to the console, which shows that you've successfully configured and used Spring for Stardog. As you can see, five triples were returned from the given LIMIT 5 SPARQL query...
In this post, I showed how I used Spring for Stardog in a Spring Boot web app. With some minor variation, these instructions could probably be useful for any Spring app and not just a Spring Boot web app.
There is also some useful information in the QUICKSTART.txt file on GitHub that you might find useful, so be sure to check it out.
Some very rough notes I took while learning to create an Atlassian Confluence plugin. Perhaps, I'm in the process of cleaning these notes up now, while building another plugin. Please consider this a somewhat sloppy WORK-IN-PROGRESS for now.
Install the Atlassian SDK
Create the Plugin Skeleton
Navigate to the directory on your system where you'd like to create your plugin. The command we are about to run will create a folder with the plugin directories inside.
Change into the directory...
Execute the following command to generate the plugin skeleton...
The first time, Maven will download a bunch of packages.
Now you need to define some things:
You will then be prompted to confirm
Maven will do its thing. If everything goes well, you should then get a BUILD SUCCESS message...
Now, we should have the basic plugin skeleton within the initial directory as follows:
I'm using IntelliJ IDEA as my IDE, so, at this point, I can choose to import the project in IntelliJ (selecting the pom.xml file within the codemojo/ directory.)
It's a good idea to establish this starting point as a baseline from which to build a source code history. I'll track with Git, so cd into the confluence-code-mojo folder and execute the following command to initialize the containing directory as a Git repository.
Now, you can open the local repository in Atlassian SourceTree (Git client) or use the command line; whatever you prefer to manage and track your source code changes. Personally, I prefer to use SourceTree. In SourceTree, I select New... > Add Existing Local Repository and then choose the confluence-code-mojo folder. I select all files in the File status view, enter the Commit message, "Initial commit" and then press Commit and OK.
Now we're ready to start customizing the plugin, but before we do that, let's just do a little acid test.
Install and test the plugin skeleton
Change into the plugin directory (in my case,
codemojo) and enter the following command:
The Atlas CLI and Maven will do their thing - bringing down required dependencies and then firing up developer instance of Confluence with your plugin installed for testing purposes.
Wait patiently, this process takes quite a while to complete.
When it's ready, you should see something like the following in the terminal:
Login with admin | admin
Go find your plugin in the manage page...
After executing the
atlas-run command, use CTRL + D in the console to shut down gracefully! But, let's not shut it down just yet. We need to make changes to the plugin and redeploy.
Customize the plugin
Open the src/main/resources/atlassian-plugin.xml file in your editor. It should look something like this:
After the <web-resource>...</web-resource> section in the file, enter the following to setup macro plugin type.
Open the file /src/main/resources/codemojo.properties and add edit similar to the following:
Also, change the <description> item in the pom.xml; this is what will display as a description in the Add-ons management area of Confluence. For example:
Create the com.codyburleson.confluence.codemojo.macro java package.
Next, create the Java class file, Plugin.java, in that package...
This is the minimum skeleton your Macro will require to implement the confluence Macro class and display a Macro object in Confluence.
In your terminal window, change directory back to the top directory for your plugin (eg
Run the command:
You should see a confirmation message
I, on the other hand, got an error message on the attempt to redeploy in the atlas-run session:
I created a codemojo_en_GB.properties file right next to the codemojo.properties file. But since the file wasn't there initially, I need to stop the atlas-run session and restart it. From then on, redeploying with the atlas-mvn package command should work.
That is, press CTRL + D to shut down the former atlas-run session.
Run atlas-mvn package to build the plugin.
Typically, when you run the atlas-mvn package command, you can monitor the terminal where confluence was run originally using atlas-run and confirm that QuickReload finished loading. You should see a confirmation message. That's what we'll do to keep deploying changes to our plugin (once passing the above little quirk).
I should consult with Atlassian about this little quirk.
Now you can try adding the Macro to a test page in Confluence (you'll need to make a new Confluence Space and Page before you can test it out so go ahead and do that first).
Now, we will continue to customize the plugin. We'll add a macro parameter to learn about how parameters can be set, and used.
Note to Self (and potential readers)
In my second plugin development, through which I am editing this page to try to make it more accurate and useful, I left off here. Going forward from this point, it could get confusing; sorry. I'll be back to finish up soon!
Open the atlassian-plugin.xml file in your editor.
<parameters/> element within the
<xhtml-macro> element you created.
<parameters/> element with the following:
This specifies that the parameter is called 'Title' and is of type 'string'. You can find the full list of types under the Parameters heading in the macro module documentation
Now modify the execute method in the Java class so it looks like this:
Execute atlas-mvn package.
To automatically serve static resources with Spring Boot (e.g. when using spring-boot-starter-web), you can simply place the static resources in one of several paths that Spring Boot automatically recognizes as a static file paths.
Following are paths that will are recognized as static file paths:
You can then access the resources at:
So, for example, given the following resource at the following location...
You could fetch the file with the following URL: