How do I use the batch ultility of Graphics Magick? - batch-processing

I'm sure that my mistake is plain simple. I'm fair new to this application and after seeing the online help for batch I copy and paste the code for jpg conversion (to tiff) and it didn't work. The error it gives is: "gm: unrecognized command 'for'. Use help ... " and I don't get it, isn't batch utily this for (the use of shell script)? If someone can copy a simple script for this porpouse it will help me a lot. Thanks
PD: Sorry for my english

This blog post gives a deeper explanation of how GM batch mode works. Try out the examples there should help you to understand the examples used in the online help.

Related

How can I fix a 'Undefined control sequence' error in order to convert a JupyterNotebook to PDF?

Hello everyone,
since this is my first post here (even though not my first time, because I've spent hours reading some of your brilliant answers over time), I hope you guys will forgive me initial mistakes, when it comes to writing a proper post.
I have a problem when trying to convert a JupyterNotebook, that runs on AWS SageMaker to PDF using nbconvert.
I am using the following command via the terminal:
jupyter nbconvert --to pdf MyNotebook.ipynb
And instead of the notebook converting into a PDF, I'll end up with the following error:
! Undefined control sequence.
\AfterEndPreamble ->\AddToHook
{begindocument/end}
l.158 \AfterEndPreamble
{%
?
! Emergency stop.
\AfterEndPreamble ->\AddToHook
{begindocument/end}
l.158 \AfterEndPreamble
{%
No pages of output.
Converting it to a .tex file, however, works without any problems.
Now I've spend the last hour, trying to solve this issue by searching the web and looking at similar problems, but for the first time I couldn't find any solution to my specific issue yet.
So I hope, some of you will be able to help me with it.
Appreciate it!

ExecuteMso error

This question may have been asked before.
I have tried using ExecuteMso in VBA but returns Method or data member not found.
Not sure what I am doing wrong or if there is an issue using this code as using excel on a Mac. I have also tried this on a windows version of Excel however it is a very old version (if that makes a difference?)
Any help or tips regarding this would be great.
Thanks in advance
The following sample executes the Copy button.
Application.CommandBars.ExecuteMso(“Copy”)
Otherwise, post what you have tried and what is giving you the problem.

Using Command Prompt in Visual Basic

I am trying to create an application in visual basic to open up a command prompt. I then want to type the word "Message" into the command prompt and have my application recognize the word "Message" and then run my application.
Any help leading me into the right direction would be greatly appreciated. Do I need to create a batch file or something else for this to work? Any advice, articles, or sample code is greatly appreciated. This is all new to me. I don't have much code, but this is what I have in visual basic:
Process.Start("cmd")
If (cmd.CommandText = "Message") Then
'calls another class to actually run the program
End If
It's the classic, good news and bad news.
The bad news is VBA can't do what you want natively. What you need to do is to call the "shell and wait" function, then capture it's output on the standard in.
This will require you to go beyond just VBA, and link into some windows guts (kernel32). The good news is that VBA makes that easy.
While I don't have source for you, a rather extensive article, with code here was referenced in this Stackoverflow Question
Hope this helps!

API for Dictionary and Translator

Again. I've been searching for the best API for my Application. Dictionary and Translator. Can someone Recommend One. Please. i need it. I downloaded "microsoft-translator-jar" and I'm having an error in my line of code.
'com.memetix.mst.translate.Translate.execute(text, Language.ENGLISH, Language.ITALIAN);'
The error is at the (execute). the method execute(String,Language,Language)in the type Translate is not applicable for the arguments (String, Language, Language).
i've tried all the execute methods but No luck. Can someone help me how to solve it or refer a new API. Thanks.
You may be lost json-simple-1.x.jar.
Please go website http://code.google.com/p/json-simple/ to download that package.
I think your problem may be resolved.
Good-luck!

Bulkloader syntax Error

Having been struggling trying to bulkload data to the datastore, I have reached the point where expert help is needed.
I don't think what is am doing is tricky, I have the following configuration file:
and when I use the appcfg.py command, the error messages end with:
File "config.txt", line 1
python_preamble:
^
Syntax error: invalid syntax.
I have used a .txt file as it is faster to edit in notepad initially - I don't know if that is a problem and the remote_api for the appspot all seems to be okay.
I am thinking it is a fairly fundemental problem as it has stopped working at the top line. I removed the comment lines at the top of the original file - maybe that caused it.
I have tried to find working examples to set me right but they all seem to follow the syntax above, or where they are slightly different, I have tried both variants.
Help on bulkloading for my first cloud app would be much appreciated.
Thanks in advance for anyone taking time to read my post whether they solve it or not.
Be sure the configuration file extension is .yaml