How to show 2do Lists in Alfred? - alfred

I used Alfred and 2Do a lot. And what I want is to list all the 2do tasks in Alfred, I've searched a way to solve it.
Is there a way to fetch all the 2Do tasks and shown it in Alfred?

No. 2Do does not provide AppleScript support nor a proper API.

Related

Changing mailman list keywords for joining/leaving a mailing list

I am using mailman 3. Is it possible to change the keyword extensions for the purpose of mailing list management? For instance, is it be possible to change list-join#DOMAIN for list-inscription#DOMAIN, or list-unsubscribe#DOMAIN for list-leave#DOMAIN? Such flexibility would be useful for localization/language requirements.
Any suggestions?
Thanks.

pyhf: POI application using formula

I am trying to write a likelihood model in which the POI affects two samples, but while one I have the regular POI*yield, the other I have f(POI)*yield where f is an arbitrary function.
Is there a simple way to implement that in pyhf?
Thanks in advance.
pyhf currently does not support it, but it's something that is on our mind. Can you open an issue on our github with this as a feature request and we can work out how to do it.

How to use SuperGLUE with huggingface-transformers

I would like to use SuperGLUE tasks with huggingface-transformers. Looking at this page:
https://github.com/huggingface/transformers/blob/master/examples/README.md
The only useful script is "run_glue.py". But I'm searching for "run_superglue.py", that I suppose it doesn't exist.
Did anyone try to use SuperGLUE tasks with huggingface-transformers? Maybe modifying "run_glue.py" adapting it to SuperGLUE tasks? Thanks

Using wildcards in Selenium IDE

I'm somewhat new to automation, and am learning everything auto-didactically, so forgive me if my terminology is a bit off. I've searched hi and low for an answer to this question, and I can't seem to find anything. I presume it's my small vocabulary when it comes to this stuff... anyway...
I'm attempting to write a test that performs all the actions necessary to complete a tutorial by using the recorder. However, for one particular step, the element ID changes. For example, the ID I'm trying to click is this:
//li[#id='message_661119']/div[2]/div[2]/a/img
However, for each new user that is performing the tutorial "quest", the number of the id changes.
Is there anyway to get Selenium to recognize, or use, wildcards? Example:
//li[#id='message_******']/div[2]/div[2]/a/img
Of course, the example above does not work.
Any advice would be immensely helpful. Thank you!!
You can use starts-with() for this:
//li[starts-with(#id, 'message_')]/div[2]/div[2]/a/img
It's one of the examples mentioned in Locating Techniques in Selenium's docs for starts-with().
In Target field of the command in Selenium IDE where you can see message_123123 click on a dropdownlist and choose an option which is related to xpath:idRelative or if this one doesn't work then try another options which do not include that annoying message_123123 so this way you'll identify webpage element by it's location but not id. I solved my issue this way

How can I detect a user's input language using Ruby without using an online service?

I'm looking for a library or technique to detect the input language of blocks of text provided by users. Online lookups (like Google translate) won't work for this task as I'm writing an app which must run offline.
Thanks.
Here are two more n-gram-based gems you might want to try. They work offline.
https://github.com/echen/unsupervised-language-identification, optimized for separating english and other languages (has a live demo)
https://github.com/feedbackmine/language_detector, less specialized, will detect more languages. Some languages may need some extra training — I found it to be not precise enough for German text.
For anyone interested, I've found http://rubygems.org/gems/kenwaln-whatlanguage, which is performing excellently.
I'm using CLD which I really like, succinct and easy to use. Give it a try.
A quick demo of WhatLanguage in Ruby:
http://www.youtube.com/watch?v=lNqZ2cqOReo&list=UUJ_3fstMOH-g4yBxtvgAWkw&index=0&feature=plcp

Resources