My org structure is
* main heading [0%]
** TODO heading 2 [0%]
*** TODO heading 3 [0%]
**** TODO heading 4 [0%]
***** TODO heading 5 [66%]
****** DONE heading 6
some content here
****** DONE heading 6 (sibling 2) :not:export:
some other content here
****** TODO heading 6 (sibling 3)
*** TODO heading 3 (sibling 2)
*** TODO heading 3 (sibling 3)
*** TODO heading 3 (sibling 5)
I need to export DONE state headings to ‘filename.txt’ file with
heading and content only. Not TODO, DONE, ‘*’s and [0%] of
completion of task.
If I add :not-export: to heading example ‘heading 6 (sibling 2)’,
‘filename.txt’ needs to have heading only not it’s content.
‘heading 6’ and ‘heading 6 (sibling 2)‘ are sharing same parents so
should not duplicate in exported file.
Headings may be 6 levels deeper, but not necessary
‘filename.txt’ needs to open in one of the ‘windows’ OS programs (ex:
Balabolka)
Ex: Values or data-types
Primitive
String
char At
char Code At
from Char Code
concat
index Of
Boolean
Undefined
Null
Object or Reference type
Reg Ex
test
match
exec
Array
What I am doing here?
I am trying to lean programming languages, I need to
read, understand, /record/, listen and recollect, it’s vocabulary and
grammar.
Org-mode helps me to lean and take a notes, but the /record/ part I
want, I have another program called ‘Balabolka’ to do that.
I just need ‘.txt’ file version of my org-mode file with my own
formating specified above.
Your different MVP can always be welcome.
Thanks for your help in advance.
Related
I am trying to run a very simple script in automator for a the apple program numbers. I have tried a couple of different scripts with no success.
With the following code:
on run {input, parameters}
tell application "Numbers"
activate
tell document 1 to tell sheet 1 to set the value of cell "B3" to 0
tell document 1 to tell sheet 1 to set the value of cell "C4" to 42
end tell
return input
end run
I get the following error message:
"Numbers got an error: Can’t set cell "B3" of sheet 1 of document 1 to 0."
There was a nearly identical posted question with the following solution:
on run {input, parameters}
tell application "Numbers"
tell table 1 of sheet 3 of document 1
set the value of cell 1 of column "E" to 1000
end tell
end tell
return input
end run
but this gives me the following error message:
"Numbers got an error: Can’t set table 1 of document 1 to 1000."
This other post did mention it may have something to do with privileges but did not elaborate and I have been unable to find any more information regarding this.
Can anyone help me please?
Thank you.
With a Numbers document already opened, the following example AppleScript code works for me:
tell application "Numbers"
activate
tell first table of first sheet of front document
set value of cell "B3" to 0
set value of cell "C4" to 42
end tell
end tell
Here is a different way of saying the same thing as the example AppleScript code above:
tell application "Numbers"
activate
set value of cell "B3" of table 1 of sheet 1 of document 1 to 0
set value of cell "C4" of table 1 of sheet 1 of document 1 to 42
end tell
Note: The example AppleScript code is just that and does not contain any error handling as may be appropriate. The onus is upon the user to add any error handling as may be appropriate, needed or wanted. Have a look at the try statement and error statement in the AppleScript Language Guide. See also, Working with Errors. Additionally, the use of the delay command may be necessary between events where appropriate, e.g. delay 0.5, with the value of the delay set appropriately.
I'm trying to test the model (model.bin) i've made with fastText on a test file (test.txt). In this test file, i have 135 labelised data. I'm expecting from fastText to test my model on this number of example, but instead, it only test it over 1 example. Where does come from this problem ?
I've already tried to do such a thing with another model and another testing file and all worked nicely.
this is how I test my model. model_baby.bin is the model, and test.data.txt is my testing file.
./fasttext test model_baby.bin test.data.txt
N 1
P#1 1
R#1 0.0164
Number of examples: 1
And here is an extract from my testing file
__label__4.0 I love the fact you can hide your stuff. Only down is that the straps to hold it at midpoint and bottom could be better designed for your car. It's got plenty of room which is great. __label__5.0 This hid our ipad wonderfully. Especially for those quick stops where we all had jump out and use the restroom. It zipped, folded and held all our stuff for the kids in the back seat. __label__3.0
As i have more than 1 labelised example in my testing file, I expect the output "Number of examples: " to be at least more than 1 but the actual one is "1"
From the official documentation (https://fasttext.cc/docs/en/supervised-tutorial.html): Each line of the text file contains a list of labels, followed by the corresponding document. All the labels start by the __label__ prefix, which is how fastText recognize what is a label or what is a word.
I don't understand very much your extract. I think it should be like this:
__label__4.0 I love the fact you can hide your stuff. Only down is that the straps to hold it at midpoint and bottom could be better designed for your car. It's got plenty of room which is great.
__label__5.0 This hid our ipad wonderfully. Especially for those quick stops where we all had jump out and use the restroom. It zipped, folded and held all our stuff for the kids in the back seat.
__label__3.0 ...
I have a pdf document where I have a heading with bold and size 12 and there are paragraphs under the heading of size 10.
I have custom configuration for Level 1 and Level 2 for size 12 Bold and 10 respectively.
But when I call the api I get all the paragraphs in one answer unit only. Is there any way by which I can get each paragraph as a separate answer unit ?
String configAsString = "{" + "\"pdf\":{" + "\"heading\":{" + "\"fonts\":[" + "{\"level\":1,\"min_size\":12,\"bold\": true,\"name\":\"Calibri\"},"
+ "{\"level\":2,\"max_size\":10}" + "]}}}";
I'm not sure if I understood correctly your use case, but in general you can send multiple answers instead of one by chaining several dialog nodes with "Jump to (and respond)".
Is it possible in asciidoc to choose your own list symbols. In my case I would like to use check marks, but question applies to any symbol in general.
For example, I would like the output to look like:
✓ Apples
✓ Bananas
✓ Cherries
etc
The asciidoctor User Manual mentions custom markers as a feature (squares, circles and discs seems to be the only possibilities).
[square]
* one
* two
* three
In your case you can maybe use the checklist as a replacement.
- [ ] not checked
- [X] checked
I'm creating a new view for a customized PoS module for my restaurant. It's a specific view for kitchen, already filtered to show just kitchen's related items of a PoS order.
Now I would like to show a particular series of product with the name starting with "#" in a field populated by a function side by side with the "standard" products. In fact I'm speaking of a set of instructions coded as products to be available on PoS and to suit my needs I decided to create kitchen instructions as a product (service). In my PoS there are 3 categories that are not products but instructions (ADD, SUBTRACT, ADDITIONAL NOTE).
A typical order will show as:
Product Quantity
[1007] Pom. Secchi 1
# + Búfala 1
# - Mussarela 1
[2002] Nutella banana 1
# + Mussarela 1
What I would like to archive is a view like:
Product Note Quantity
[1007] Pom. Secchi # + Búfala # - Mussarela 1
[2002] Nutella banana # + Mussarela 1
I need to select just the strings starting with the "#" between two internal code starting with "[code]" and this is the hard thing to do. I don't need to delete the values I "move" because I need the stock view when I print the receipt.
I will call this function using python (and psycopg2 on postgresql 9.4) with on_change or extending the workflow when an order is marked as "paid". I don't think if doing it directly in Python is viable.
I've tried with string_agg(,) but with bad results.
Any tips about what should be the correct path to start coding? Thanks.