Can't write query in markdown page after setup variable? - slamdata

I tried to write a variable query in markdown page after setting up the variable but I can't able to run the query in markdown page. I am working 4.0 version.

Related

Get Title of html file which is downloaded on my machine in automation anywhere

I'm a newbie and this is my first try at Automation anywhere bot building.
I need to get the title of a html file downloaded on my machine.
So, basically I need to traverse the html and get title.
I found questions like Use Xpath to get all the rows of a table after a specific row in Automation Anywhere which speak of xpath and html traversal.
But, I cant seem to find any article which says how to get source code of a html file in my computer. Nor, where to put these xpath codes.
Maybe everyone knows and as I'm a new, I can't figure it out.
This is what I tried...
I renamed the file to xml and tried to start a xml session and get the node //html/title
But it throws the below error at start session.
All help is sincerely appreciated.
Thanks
Another workaround would be: rename the file to text and read the title from it.
Rename HTML file to TXT file.
Using Read From CSV/Text command read the text file.
Within the loop, use if condition on variable, FileDataColumn(1) if includes <title>
Using string operation before and after command, Before: <title> After: </title> and assign the output to a variable, and that would be the HTML title.

FitNesse: HSAC table template scenario + Freemarker template

Can we use both table template and Freemarker template from hsac-fitnesse-fixtures in the same FitNesse wiki table?
A scenario is not the same as a table template even tho they behave similar.
A Freemarker template is a file template that can be used with variables to create json or XML or other files you need in your test. This is in no way similar to table templates.
To start a different fixture from the one you started the script table, use the start command instead of script.
Example:
|script|fixture|
|do|stuff|
|start|otherfixture|
|do|more|stuff|
So to answer your question, you can use all this in one table.
How to use a scenario vs how to use a table template is another question I am afraid.

Could anyone explain how to use Jsonball with JClouds

I am trying to do something like following
BootstrapConfig config = BootstrapConfig.builder().runList(runlist).attributes(new JsonBall("{ \"cassandra\" : { \"cluster_name\" : \"testing Baby\"}}")).build();
but it's not working...
I am not sure how to use Jsonball..
thnx
The code looks good. As Chef attributes have an arbitrary structure, we can't have the corresponding Java one, so we use the JsonBall object as a placeholder for any JSON string.
After generating the bootstrap configuration, however, you need to do the following to generate the bootstrap script:
chefService.updateBootstrapConfigForGroup("groupname", config);
Statement bootstrap = chefService.createBootstrapScriptForGroup("groupname");
That will generate the bootstrap script you can pass to the ComputeService methods.
The first call will persist the bootstrap configuration in a data bag, so it can be reused later to bootstrap more nodes with the same configuration.
The second line will read the contents of that data bag and generate the corresponding bootstrap script.

View formatted sqlite results

So I code using ruby on rails and the default database is sqlite, which is amazing for development. there is no setup time, no need for connection etc. What really sucks is the output on the command line. when i do a query to list all the contents of a table for example. I just get a dump of text, unlike when you use MySql, the CLI formats the results of the queries nicely (with headers in a table). I am also aware of "headers on" and the commands you can type to format the results of sqlite but those are temporary and I am looking for a more permanent way to format the results so i do not have to do it every-time.
It appears that you can specify SQL statements and metadata statements in an init file and pass this file as the -init parameter.

Easily create a Ruby on Rails partial from an existing block of markup using vim

Is there currently a plugin that you ruby on rails developers that are also using macvim/gvim/vim that allows you to take a quick block of code and create a partial from it? I know that TextMate does this, figured someone has ported it by now to vim also.
You want Tim Pope's rails.vim plugin:
http://rails.vim.tpope.net/
It provides an :Rextract command that pulls a range of lines into a partial. Here's a very short demo of it in action:
http://rails.vim.tpope.net/images/rpartial.gif
(The :Rpartial command in the demo is an alias for :Rextract.)
The plugin provides dozens of other features, too, and many people consider it a must-have for Rails development in Vim.
It works in vim with vim-rails plugin.
Select in visual mode code which you need to send to partial
Press key : and you will see :'<,'>
Complete command to :'<,'>Rextract partial_name where partial_name will your partial's file name. You can set folder for partial, for example :'<,'>Rextract shared/menu
Press Enter and enjoy.
rails.vim can do this. From the features summary:
:Rextract file replaces the desired
range (ideally selected in visual line
mode) with render :partial => 'file',
which is automatically created with
your content. The #file instance
variable is replaced with the file
local variable.

Resources