Formal grammars – What is the relationship between language analysis and language verification?

There is a simple relationship between the two problems, but it only goes to one side: if you can analyze, you can see. If you run the parser and an error occurs, the input is not in the language. When the parser creates an analysis tree, the input is in the language.

Note, however, that a parser and a recognizer not only solve different problems, but also get different specifications. A recognizer is given a language in an abstract form. In contrast, a parser receives a grammar that not only implicitly defines a language, but also instructs the parser how to convert a valid input into an analysis tree. Since the same language can have many equivalent grammars, it is not clear what it means to convert a recognizer into a parser – what grammar should the parser use?

Then why are recognizers interesting? Precisely because of the one-sided connection, which says that a parser can be converted into a recognizer. This relationship implies that you cannot analyze your language if your language is difficult to recognize (using a certain class of algorithms).

i18n l10n – Message (from the message stack) not translated into the preferred language of the recipient

Here is a code that can be inserted into devel / php (run php code) when the message template new_user_register exists with a user reference field called field_user_reference

This message should be sent when a new user registers (but this has nothing to do with my problem because the code can be run outside … I only give this information to provide context).

$id=127;
$account=DrupaluserEntityUser::load($id);
$message=DrupalmessageEntityMessage::create((
    'template' => 'new_user_register',
    'uid' => $id
));
$message->set('field_user_reference', $account);
$message->save();

$subscribers = Drupal::service('message_subscribe.subscribers');
$notify_options = ();
$subscribe_options = (
    'notify message owner' => TRUE,
    'notify blocked users'=>TRUE, //new user is blocked
    'entity access'=>FALSE, //new user don't have access (blocked)
    'uids' => (new Drupalmessage_subscribeSubscribersDeliveryCandidate(('subscribe_user'), ('email'), $id)),
);

$subscribers->sendMessage($account, $message,$notify_options,$subscribe_options);

Even if the template is translated, user 127 receives the message in the site's default language, rather than in the preferred language.

Is it a mistake or am I missing something?

C programming language | Proxies-free

If you are not yet familiar with a programming language and need to learn one, I recommend that you start your programming journey by learning the C programming language.

The C programming language is a great general-purpose programming language. The good thing about the programming language C is that it is easy to grasp, portable and also available on almost all platforms. C programming can be used with various applications ranging from software for creating 3D films to operating systems for Windows and IOS

Show attachment 45430

CHARACTERISTICS OF THE C PROGRAMMING LANGUAGE
C programming is a procedural language, ie the list of instructions already set is carried out systematically.
C programming offers plenty of space for programs that can be edited using computer hardware.
The programming language C is very efficient
This is an old, but still popular programming language.
-Standard C programs are mostly portable, ie programs written in one system can be used in other systems.
– With C programming you will understand how programming works and at the same time have a living idea of ​​how a computer works.
-The source code used in one system definitely works in other operating systems without making changes to it.
– The C programming language is a general purpose language because it can be used with different applications, including editing software that can be used for different applications.

Using the programming language C.

· It can be used for databases. Examples are Oracle, MySQL and Ms SQL Server.
· It can be used with the following operating systems such as Andriod and LINUX
· It can be used in embedded systems
· Other uses are as a print spooler, network, driver and compiler.

REASONS TO LEARN C PROGRAMMING LANGUAGE
-C programming helps to get an idea of ​​how a computer works and how programming works.
– You will get to know the freedom that C programming offers in contrast to Java and Python
-C programming allows you to write programs that usually seem difficult.
-That's like the communication language of programming. Learning C programming will help you to understandably transfer your idea to other programs.
– The knowledge gained with this programming enables good employment opportunities
-You can write better programs using the C programming language

How to learn the C programming language
-Read good programming books on the programming language C.
-Watch tutorials online
– Take some courses online and some training too
– Follow mostly good programming practices

graph – Domain-specific language to describe the ensemble model

I am looking for a tool / library / widely used approach to describe the hierarchical model structure like the ensemble:
Example hierarchical model

It is absolutely simple how to do it with a simple ensemble like
simple ensemble

It can even be explained in yml format as follows:

code: "cats"
models:
  - code: "siamese"
  - code: "persian"
  - code: "sphynx"

Code that runs a simple ensemble model shows that exit should be done first and the parent model aggregates its results.

However, it is difficult to describe a hierarchical model in the same way because it runs in the opposite direction. Probably can someone suggest how to do it?

Guest post on an Indian website / blog in any language

Hello,

I am looking for a guest post on a blog / website in any language.
(Note: Must come from India for SEO purposes)
SEMrush

If you have a blog or website and allow guest posts, please provide pricing details.

1. How much do you charge for guest contributions? (If item is provided by us)
2. How much do you charge when you write the article?

DA / PA requirement:
– DA or PA> 6
(DA or even PA must be equal to or higher than 6)

– Permanent.
– Niche: technology related to computers or the Internet such as web development or web design, SEO.
– Must not be a P-B-N site.

Send your offer in a conversation / PM or post it here. I will contact you, but I will not publicly publish your website address, etc.

Thanks a lot.

8 – Language code and country code on the URL

I tried to do this:

I have a multilingual site with 8 languages ​​(en, fr, es, de etc.) and I want to make all these languages ​​available for all countries.

I want Drupal to understand this:

  • / en CO alias of / en
  • / en-FR alias of / en
  • / es-US alias of / es
  • / es-AR alias of / es
  • / fr-CO alias of / fr
  • / de-US alias of / de

And so on … (you share exactly the same content)

Adding all of these custom languages ​​is easy, but I don't want to because more than 1600 combinations are possible.

Do you know if there is a way to do this programmatically or with a module?

I am currently looking for PathProcessor, but for now no result.

Any help would be appreciated.

Visual Studio Code – Can topics in VSCode be language aware?

Newcomer to VSCode question: Can the code coloring in VSCode be fashion dependent? – Often files have HTML, PHP, JS and sometimes CSS code in the style tag … Can topics be created that are fashion-conscious and can color different languages ​​accordingly in a single file? Brackets (CodeMirror) have these functions, but I'm not sure how to do the same with the VSCode theme.

Website design – language of language names in the language selection?

Although what others have replied is good, the overall picture does not come about. I will give you what I think is the IDEAL answer.

Basically, this answer provides MULTIPLE notices (instead of just a single note) for language selection.

First is the name of the language (according to the answers above) as it provides a basic interface for anyone with English skills.

Second is the name of the language in its own mother tongue for a person with basic knowledge of the mother tongue. e.g.
Enter the image description here

third is a flag for the country. For languages ​​spoken in dialects and common countries, the country of origin or the language country can be used. E.g. ENGLISH (should have UK flag), ENGLISH UK, ENGLISH US (should have their respective country flag). A visual cue that bypasses the thinking part of the brain.

Below is a bad screenshot of such an example from the website http://blog.myheritage.com/2009/06/small-changes-big-differences-new-header-and-footer/.
Enter the image description here

Many of the applications I've seen have implemented this correctly, and I urge the rest to do so.

Some other features that are required are quick filtering of the displayed languages ​​by keyboard, e.g. For example, what Listary does for lists to narrow the results. For example, if you are specifically looking for English (Singapore).

In addition, the placement of the language switch is very important. It should be ideally located above the crease (i.e. on the first page itself) somewhere. The general practice is in the upper right corner under the profile information you may have. IT IS A MUST for first time visitors, it can be hidden from returning visitors (i.e. the site is already in their preferred language) and accessible through the second location.
The second common position is at the bottom of the page, either centered or left-justified. Although I think it should always be available at first glance. The same applies to applications.


Ahhh this is a pet of mine !!
For example, see Chrome! (I know it's an application, but take it with you) It has the most terrible UX to change the language from an unknown language to English for the user. It requires an excessive click and complete confusion !!

  1. Menu icon
  2. Settings menu item (no symbol !! for clear / simple identification when using an unknown language)
  3. Click Text Show Advanced Settings.
  4. Click Language (absolutely no way to find it in an unknown language)
  5. Click on Add
  6. Choose your language
  7. Move it to the top of the screen.
  8. Click the button on the right to set the default Chrome language. (Some languages ​​also cannot be run in this way and can only be used for spelling! You should only separate these dialogs and not combine the dialog for spelling and language selection! Since the most common case is probably the language selection and a very distant one is the selection of the spell check).
  9. Restart Chrome!

Some interesting links that I found with opposite views and other useful resources.

Best practice for presenting languages


http://commons.wikimedia.org/wiki/Linguistic_flags
http://commons.wikimedia.org/wiki/Category:Flags_of_languages

Hooks – Drupal 8 language code and country code on the URL

I tried to do this:

I have a multilingual site with 8 languages ​​(en, fr, es, de etc.) and I want to make all these languages ​​available for all countries.

I want Drupal to understand this:

  • / en CO alias of / en
  • / en-FR alias of / en
  • / es-US alias of / es
  • / es-AR alias of / es
  • / fr-CO alias of / fr
  • / de-US alias of / de

And so on … (you share exactly the same content)

Adding all of these custom languages ​​is easy, but I don't want to because more than 1600 combinations are possible.

Do you know if there is a way to do this programmatically or with a module?

I am currently looking for PathProcessor, but for now no result.

Any help would be appreciated.