How do I specify the ordering of pages on readthedocs.org? - read-the-docs

I've got a bunch of md files in a folder, but I want to specify an order in which they show up in the index on the left. Is there a way to do this?

Apparently this uses Mkdocs, and you can specify a yml file to specify the order
http://www.mkdocs.org/user-guide/configuration/

Related

Metadata map for importing CSV data into IPTC XMP images using Bridge

Let's say I have 100 scanned Tif files. I also have a CSV of the metadata for those 100 Tif files. Each file is named with its unique identifier, which is also column 1 of the csv.
First: How do I find a map that tells me what columns should be named what, in order to stay within the IPTC standard using XMP? (I've googled for most of the day and have found nothing)
Second: How can I merge the metadata in the CSV to each corresponding image?
I'm basically creating a spreadsheet with all 50,000 images in an archival collection, and plan to use the CSV to create the metadata for the images once they're scanned.
Thanks!
To know where to put your metadata, I'd suggest looking at the IPTC Photo Metadata Standard page. Without knowing more about your data, it's hard for someone else to say what data should go where.
As for embedding your data into your files from a CSV file, I'd suggest exiftool. Change the header of each column to the name of the TAG to write to and make the first column the path/filename of each file, your command would be as simple as
exiftool -csv=file.csv /path/to/files
See exiftool FAQ #26 for more details.

Gulp: load order from a file to concat

Our application concats a list of ~100 HTML files in some specific order into one single file. The order information should be extracted from a special html file order.html. So the process should be:
Use cheerio (or other plugin) to extract order information from order.html
For each file on the extracted order list, process it using cheerio (or other plugin)
Concat all processed files according to the order list, save to output.html.
I have tried gulp-order, which simply orders by a hardcoded list. But we need a dynamic order list. How to make it?
Well, finally I just solved this problem by storing the order information in some temp file, and then read from this file to load the dependencies. This solution works. But it is not so nice, as it introduces some temp storage.

Pentaho / crossing files

Im trying to cross 2 different .csv files in order to have an output files indicating the new,changed,deleted and identical entries on the output file.
Im trying to do as explained here
http://wiki.pentaho.com/display/EAI/Merge+rows
Im using merge rows(diff) in order to try and achieve this but no matter what i try its not working, as key fields im only using the value of the row that doesnt update i.e an ID.
What i tried to do is using the same file for for both inputs,when i dont change anything the flagfield value is "identical" for all rows,but then if i try and modifify ONE single value in ONE row in ONE of the files,i get all changed? and maybe 3 or 4 identical? any ideas why this is happening? I just can't figure it out,thanks in advanced.
Merge rows diff is the correct answer here.
If you're using a target database after the diff then you can pair it with "synchronise after merge" but in this case a text file output will do it.

How do you get a list of files with Google Drive SDK

I have a list of file ids that I want to refresh with up-to-date metadata. I know there is a file/get method that I could call for each file, but it's obviously not the right way to deal with it if we have many files.
So I've looked for the file/list and its "q" parameter to make a search query. Unfortunately, it looks like it doesn't accept the "id IN (?, ?)" format.
So is there a clever way to do this?
You could wrap all of the file/get/put calls into a single batch.
https://developers.google.com/google-apps/documents-list/#batching_resource_operations_into_a_single_request
You can add all those files to a specific folder and then search for them using the parents field of a search query, as in:
'1234567' in parents
that returns all files that are contained in the folder with ID 1234567.
Is there a reason you need to download the items before you update them?
Given you have the file ID, you can simply PUT your changes.

What should be the appropriate name of a log file

I want to log my exceptions in a file. What will be the name of the file?
Error-ddmmyyyy.log
Log-ddmmyyyy.err
Log-ddmmyyyy.txt
or anything else?
If date is important, I would use yyyymmdd format: this is easier to get a sorted list. I would add hhmmss if relevant.
.log suffix is nice for me.
I would add the name of the command issuing exceptions as a prefix of the logfile.
Something like: myCommand-20100315-114235.log
There are many ways you can name your log files, you have to consider several factors:
Is your file generated by a special server or application in a group? Then you should add the name of the server to know where it does come from.
Example:
Server1.log
In the log file there could be many levels of logging, if you want you can configure different files for different levels.
Example
Server1.info.log
Server1.err.log
You should add a date if your application runs for many days or if you want to keep track of errors for future reference, add it at the start of the name in yyyyMMdd format on windows or linux so they will be sorted by date automatically in command line commands or add it at the end if you want them more organized:
Server1.info.log.20100315 (Linux)
Server1.info.20100315.log (Win)
You can try with different combinations, it all depends on what sorting style and archiving style you want to achieve.