Accessing layout template through layout_id - boto

I use boto to create mturk HITs with a layout I defined in the project editor.
Now I noticed that every time I edit a project's layout template the Layout ID changes. Is there are any way to access the old/overwritten layout using the website, boto or a command line interface?
The reason why I want to do this is, that I noticed errors in my HITs and I want to check if the reason is a error in the template or wrongly inputed data. But I edited the project in the mean time so I am not 100% sure how the layout template looked.

Related

Mediawiki dumpBackup parameters

I fail to understand some options in the dumpBackup.php maintenance script of Mediawiki.
What is the effect of --include-files? In my test wiki, dumpBackup.php --current --include-files and dumpBackup.php --current both contain the pages of the File: namespace and I see no difference.
What is the effect of --uploads? In my test wiki I see that the xml file contains a tiny bit more of xml but, to me, it looks like this is all information which is there already as part of the File: page. What is the use of this flag?
When I add both --include-files and --uploads I get the next surprise. I actually expected the combined effect of both options, but what I get is the file content of the uploaded files and the upload record. Why did I not get the file contents when I used --include-files alone?
When I use only --include-files and --uploads but no --current I would have expected to get the content of the uploaded files and the upload record (and none of the other pages). However ,I get the warning no valid action specified and no further information at all
I am completely confused since I do not understand the logic behind all of this.

MediaWiki: an imported template returns many errors

I've installed a mediawiki and imported an example page from Wikipedia. But the template is not shown properly. https://wordpress-251650-782015.cloudwaysapps.com/wiki/Cheeta
Any hint on what could be the cause?
You're most likely missing one or more required templates/Lua modules this template relies on. If you want to get all the required templates/modules you can get them via https://en.wikipedia.org/wiki/Special:Export by inserting the template name and ticking the box saying Include templates, and then importing the file generated from that via http://wordpress-251650-782015.cloudwaysapps.com/wiki/Speciale:Importa. However in most cases, except if you desperately want the exact look and feel its easier to write your one template, because Wikipedia templates get enormously complex

Is it possible to import an external data source

I would like to import an external data source into another file.
The way the work flow is distributed right now makes no sense and having the layout open in another window is not really needed.
What I'd like to do is import the whole external file(databases, records, layouts, and scripts) into the first file. Is it possible to automate this process or do I have to import everything manually step-by-step?
There is no automatic way to import code from one FileMaker file to another.
External file references, custom functions, tables, fields, value lists, themes, layouts, scripts, layout objects, menus, ... have to be painstakingly moved by hand, bit by bit!
Order!
Most important is the order in which you do things!
Do it in the wrong order, and references break because the referenced thing has not yet been created in the target file.
The chicken / egg conundrum
Even then you still get "what comes first? chicken/egg" conundrums - due to cyclic references.
For example a layout-button might reference a script, and the script might reference the layout the button is in.
=> That means, if you create the layout first (layout, layout-settings, layout-parts, contents and all) the [Button] breaks (because the script is missing) and if you create the script first the Go to Layout breaks (because the layout is missing). :-/
For this reason you often have to create the object "shells" before you create the contents.
In the given example you would do this:
First create the empty layout (and layout parts with the correct heights)
Then import (or copy/paste) the script
Finally copy & paste the layout contents
Like this, the script can reference the layout ok and the button can reference the script ok.
Useful resources
Geist Interactive have a good post Checklist moving FileMaker code explaining which order to use.
My toolbox fmWorkMate (from www.fmworkmate.com
) and particularly the fmLogAnalyser tool is very useful for catching and tracking breakages when copying and pasting code

Exception Breakpoint fires when copying View Controller between projects

I've customized a tutorial and am trying to import it into my project. After copying one View Controller Scene from Document Outline into my main project, it's throwing an exception without any description of the issue. The View Controller is subclassed, so I've made sure to import the associated Swift file and set it in Document Attributes.
I don't know how to troubleshoot this one.
===EDIT===
I'm at a total loss here. I created a new project and was able to import, build, and run the project. The only difference between my main project and the new one is the VC is not the initial View Controller.
The tuturial was written in XCode 11 and Swift 4. I haven't upgraded yet, but again I was able to import into a new project w/o issue.
Check the Connections inspector (the last option on the right sidebar) and make sure there are no connections with exclamation marks (!) after them.
If there are errors, check in the Identity inspector (the third option from the left on the right sidebar) if the class of the view controller is correct.
If the connections are not needed anymore (you gave the outlet a new name etc.), remove them by clicking on the X next to them.

Multiple Shiny apps using the ui to populate the second app

I currently have a app that manages projects. The user sees a list of projects and can select one. They can should (it would be nice) be able to click a run button and have another app open. The parameters stored in the project they selected are populated into the second application. The issue I am having is firing the second application. runApp generates the following.
ui code line:
actionButton("RunProj", "Run"),
Warning in run(timeoutMs) :
Unhandled error in observer: Key / already in use
observeEvent(input$RunProj)
I would like to trigger the second app and pass in the location of the project directory I have looked at parseQueryString and still trying to figure out a way to include that. Maybe via a redirect?
Any suggests would be much appreciated.
Regards,
Rich
I'm not 100% sure if I understand your intention correctly but here is a few things I think you may want to think about.
In one project, if you want to run a few kinds of analyses, you may want to try navbarPage
If there are many different types of analyses, you may want to try shinydashboard
If you know the link to each app and you really want to add those "run" buttons, you can add a button manually in ui.R. I think you can write some codes in server.r to generate the link based on your database.
tags$a(href="the link to your apps", class= "btn btn-default", "Run App")