Wiki/Lua: Where do I place modules? - lua

I'm building a Wiki on my computer and I would like to use Template:Infobox person.
I have uploaded the template and also all dependencies it wants. Now it says the module "Check for unknown parameters" does not exist. I found the module on www.wikipedia.org and tried to export/import it but I still get the same error. Where should I place the module and how?

A Scribunto module named "Check for unknown parameters" would go to Module:Check_for_unknown_parameters

Related

VS code error: Cannot read properties of undefined (reading 'file')

I downloaded VS code and was trying to run a particular julia code. I ran into this error that says "Cannot read properties of undefined (reading 'file')". Now I have looked at a bunch of similar questions on here, but most of them pertains to remote accessing VS code (SSH) and that is not what I'm dealing with here. What have I done wrong here?
I saw from a link that it probably has to do with accessing Julia itself. I included the path directory to Julia under Settings. Under settings, it says that "Could not start the Julia language server. Make sure the julia.executablePath setting points to the Julia binary.". I have the same path included in the User, Workspace, and src Folder
When I go back to my main code and run it, it says that the "Path to shell executable" does not exist. What is going on here?
The "Cannot read properties of undefined" error occurs with the JavaScript of VC Code when you try to access a property or a method on a variable that stores an undefined value. In this case, it is likely that a pathname associated with Julia is not defined or points to a file which does not exist.
The error is likely related to the message you quote as "Make sure the julia.executablePath setting points to the Julia binary." Check the pathname for Julia's binary. In particular, look at the path for improperly set slashes, drive names, or backslashes, since sometimes the path separator '/' or '\\' is not being used properly in your executablePath setting even if the Julia binary is where it should be.

How to specify credentials for http_archive *within* the workspace?

I would like to specify credentials for a single URL in http_archive, using a netrc file contained in my workspace. I have tried the following without success:
I have tried to specify the "userinfo" part of my URL like http://<user>:<password>#host/path just to get an authentication error.
I have tinkered with the netrc attribute of http_archive, but I can only see, how to use absolute pathnames there; I would prefer to include the netrc in my workspace.
Do I have to write my own repository rule or is there another way?
In the meantime, I have created my own repository rule because I could not find a simple alternative. That went well, but comprehensive documentation for repository_ctx.download_and_extract is lacking, so it turned out to be trial and error ;-).
Take a look at this PR named "Readd support for authentication and .netrc". It seems to contain a improved version of the http_archive that supports .netrc files.
def _http_archive_impl(ctx):
...
"netrc": attr.string(
doc = "Location of the .netrc file to use for authentication",
),
...
I do not know the current status of this feature - maybe its already part of the newest Bazel version (at the time of writing this post 3.4.1)

how to use php thumb in zend framework 2

I am using webino/WebinoImageThumb module to generate thumbnail in my zend 2 application but it shows an error
"Fatal error: Class 'GD' not found ..."
Is there is any other module or library available to do this like php thumb etc.
Please help.
The error message obviously says the problem. You need the GD extension enabled on your system to use image processing capabilities of WebionoImageThumb module.
You should read installation documentation and follow the steps described there.

launchimage module 2.1: Validation failed for module 'launchimage' with error: ipad

trigger.io;
after upgrading to launchimage module 2.1 I just get error 'Validation failed for module 'launchimage' with error: ipad'
any ideas what this error is about?
the old docs were really good, providing a very clear spec:
http://legacy-docs.trigger.io/en/v1.4/modules/launchimage.html
the new docs for version 2.1 are totally opaque:
https://trigger.io/modules/launchimage/current/docs/index.html
n.b. apologies for posting this to SO - its basically a trigger.io support request
I believe this error indicates that you haven't filled out the public lauchimage module in its entirety like this.
If you are packaging the app as universal I think you'll need to have all the fields filled out as Trigger then prepares your ipa for all platforms(iPad and iPhone).
I found its easiest to just ignore the docs, create a demo project and use the trigger.io toolkit app to generate example config - prevents toolkit app from overwriting existing app config.
have to say I'd way prefer to work from the documentation and edit json config files directly rather than spend my time going through tedious point-and-click config..

Custom message for "Could not found main class"

I am using Advanced installer and its working very good for me till now, some times because of any issue my exe don't find the main class and it gives an alert message i-e "Could not find the main class abc/test/MyClass" i like to make this message custom for user as some users are not use to "with programmatic terms" or "this type of messages" so we like to add a custom message for that, kindly tell how can we...
Thanks
Googled it but found that Advanced installer does not have any option for this till now

Resources