Since/Until modifier time formats - facebook-graph-api

I'm trying to get posts for a given date/time range. If I use yyyy-mm-dd it works fine, but I can't make ISO8601 work. Should it? I see documentation saying that 8601 works for event times, but can't find anything definitive on formats of since/until modifiers.

Related

Disabling figure numbering in bookdown

Is it possible to use figure captions (i.e., fig.cap) but without numbering, that is, with neither "Figure", nor the number shown in bookdown?
The best solution would be one that works for all output formats (say, gitbook, pdf_book and epub_book).

Searching for content in the original language returns no results, English works fine

When I search for a keyword in the original language of an uploaded video, I get no results, whereas if I use the translated keyword in English, results are returned correctly. Here are the steps I used:
Logged into Azure Video Indexer.
Uploaded a video whose audio is in Arabic. Made sure the correct language, Arabic, is selected.
Waited until indexer completed the indexing.
Searched for a keyword in Arabic like 'حديث', but got no results.
Changed the filter by selecting a language from the dropdown (I chose Arabic, which then added a tag Language: ar-EG to the filter.
Yet again, the search returned no results.
When searched for the translated text: Talk, which is in English, the results were returned as expected.
I haven't tried to use the API instead of the Web UI, but I think I may have made a mistake somewhere.
Did anyone face a similar issue? Or is there anything I'm doing incorrectly?
Thanks
Video indexer team fix this issue.
You should see now the expected video when search Arabic keyword.

solr PatternReplaceCharFilterFactory working unexpectedly

I am relatively new to Solr so please forgive me if I'm missing something obvious. I have an application that allows users to search for musical artists. The indexing comes from a read-only database with correct spellings so on the index side I have it figured out.
On the query side however I need to anticipate various spelling errors/differences and want to help solr find those instances. From our old home-grown search solution, I have a list of regex's and the artists they apply to. When I was trying to translate those to solr using the PatternReplaceCharFilterFactory, I noticed that some worked perfectly, while others didn't work at all ... with seeming no rhyme nor reason between them.
For example:
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="em[ei]n[ei]m" replacement="Eminem"/>
accurately captures the common misspellings of Eminem. But for the band 311:
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="[Tt]hree [Ee]leven" replacement="311"/>
Does not work. Another example is Nine Inch Nails:
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="((nine|9).*inch.*nails\b)|(n\.? ?i\.? ?n\.?\b)" replacement="Nine Inch Nails"/>
works perfectly for finding the most common patterns for the band's name. But for Eve 6:
<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="[Ee]ve.{0,4}([Ss]ix|6)" replacement="Eve 6"/>
Is there something fundamental I'm missing on the usage of this filter? I've tried a number of variations on the regex's I've mentioned above (even going so far as using literals like 'three eleven'), but still with no success. I've tried making the filter in question the only PatternReplaceCharFilterFactory in the analyzer. I also know for sure that these items are in the index correctly because when I search for the correct spelling it returns the proper results.
Any suggestions?
Snowdall
I suspect the problem is not with your Char Factory, but with what comes after all, specifically the tokenizer. If you use standard tokenizer, it will get rid of the numbers you have just put into your stream. If you don't need the text to be split into tokens, you could look at KeywordTokenizerFactory instead.
In general, the best way to troubleshoot this in Solr 4+ is the Analysis screen in the Admin WebUI. It allows you to enter your text against particular field type and see what happens with it after each component in the analysis chain.
I would recommend using the SynonymFilter for the kind of application you describe. It allows you to provide an external file where you list words and their synonyms, like:
eminem <=> emenem
nine <=> 9
If you precede this with a LowerCaseFilter, you won't have to fuss about case normalization in your synonyms. You should be able to handle the 311 case too as long as you don't tokenize (ie use a KeywordTokenizer as Alexander Rafalovitch suggested).

How to extract information from command prompt, working with c++?

i wanna make a program on c++ that tells you how many days, years and months need to pass to get to a certain date. Also i wanna include how many hours and minutes need to pass.
So my problem is that i do not know how to get the current date and time to a variable from the command "time" on cmd or anyway to get the current date date and time so it will work.
I accespt the program done already so i can see it and end my doubts.
http://www.cplusplus.com/reference/clibrary/ctime/
Get input with getline()
Parse string to date format
Use some time/data library to find the difference
Output to console
While this is almost certainly homework, you might find this post useful (points to the Boost library): C++ DateTime class

Parsing date/time strings problem

I'm having some problems finding an algorithm which successfully parses a wide range of date/time strings. I need something which not only handles the common formats such as yyyy-MM-dd etc, but also something a little more exotic such as the Swedish long date format which is 'den 'd MMMM yyyy which allows something like "den 1 december 2010". It only needs to handle formats which Windows has been set to, i.e. if you set it to Swedish then I wouldn't expect it to handle French etc.
I was hoping that the MFC COleDateTime's ParseDateTime would handle it, but it doesn't appear to.
Does anyone know of anything which is versatile enough to handle these various date formats?
Boost.DateTime has a flexible range of parsing options. See here for an initial example. You can specify your own input/output format using the flags here.
You could use this to build a factory class that generates a parser/streamer based on the locale of your system.