8 – Automatically add meta tags to create content pieces

Hello Drupal Community!

I currently manage many different websites with the same information pages (example: profile pages with the same content but with different website / base URLs) and want to group them into a single URL containing all the profile pages. However, the first phase of this request was to find a way Automate a rel = canonical metadata tag when creating a piece of content (no matter where the piece is created). What would be the best way to meet this requirement? Is there a catch I can use?

Unity – Automatically creates C # from manually created game objects

I created 2 game objects along with their properties in the Unity Inspector.
I have attached a screenshot below.

I like the Inspector very much for prototyping, but at runtime I prefer to do everything with scripts. Nothing can go wrong this way: I do not have to carry so many files with me and find it easier to understand everything.

I would like to change this now so that these 2 components are created at runtime by script.

Is there a way to automatically create the script that creates these game objects?

I'd appreciate it if I could save some time with such automated scripting.

Thank you for every input.

Linux – In Centos 7 there is no NTPD. How do I synchronize the time automatically and manually with chrony?

Unless you have changed the configuration of chrony, all you have to do is start the service.

systemctl enable --now chronyd.service

The default configuration automatically sets the time at startup (with the key make step Directive) if it deviates more than one second from the standard NTP servers.


If you explicitly removed make step In the configuration you can set the clock step by step with the command

Chronological Makestep

You should NOT Do this if you have used the non-default setting rtcfile Option, as it incorrectly records RTC drift.


For more details, see the RHEL 7 Chrony documentation.

bash – How to combine or automatically compile different programs like python3, R (3.5.6) and sageMath 8.3

I have written three files on different programs

  1. file1.py
  2. file2.sage
  3. file3.r

I will give input, then I would like to perform the following steps automatically

  • file1.py is read and after progress there is output1.txt
  • file2.sage reads output1.txt and outputs output2.txt after the progress
  • file3.r reads the file output2.txt and outputs the file output3.txt after the progress

I tried bashing programming as fpllowing

! # / usr / bash /

python3 file1.py

Sage file2.sage

r file3.r

and then I ran the bash program as a program over

  • chmod + x bashprogram
  • ./bashprogramm

It does not work. I did not use it do Feature on Ubuntu. Maybe it will help, but I do not know how to do it.

Tagset – Is it possible to create temporary icon lookups that can still automatically remove the icons?

Is there a way to create lookups that the key is set to? temporary Symbols that somehow referencing the temporary Symbols so that the symbols are still collected automatically garbage?

(*$ HistoryLength must be zero, so In / Out does not create references to our symbols: *)
$HistoryLength = 0;
names["Global`$myTemp*"]

Delete everything[CreateTemporarySymbol]

CreateTemporarySymbol[] : = With[{p = Module[{pp = Unique["$myTemp", Temporary]}, pp]}, p]

Let's create two lists of these temporary symbols. Of course we can see the symbols in it Global Context:

list[1] = Table[CreateTemporarySymbol[CreateTemporarySymbol[CreateTemporarySymbol[CreateTemporarySymbol[], 5]list[2] = Table[CreateTemporarySymbol[CreateTemporarySymbol[CreateTemporarySymbol[CreateTemporarySymbol[], 5]names["Global`$myTemp*"]

(* -> {$ myTemp3, $myTemp4,$ myTemp5, $myTemp6,$ myTemp7} *)
(* -> {$ myTemp8, $ myTemp9, $ myTemp10, $ myTemp11, $ myTemp12} *)
(* -> {"$ myTemp10", "$ myTemp11", "$ myTemp12", "$ myTemp3", "$ myTemp4", "$ myTemp5", "$ myTemp6", "$ myTemp7", "$ myTemp8", "$myTemp9 "} *)

Because the symbols were created as temporaryDelete list[2] causes the variables to be released and automatically purged. Now only the symbols that are in the list[1] remain:

list[2] =.
names["Global"["Global`["Global"["Global`$ myTemp * "](* -> {"$ myTemp3", "$ myTemp4", "$ myTemp5", "$ myTemp6", "$myTemp7 "} *)

That's all the standard behavior.

Suppose I want to add some values ​​to these symbols. I do not want to store the values ​​in the symbols themselves because I intend to use the symbols in many places and do not want to consume memory (the values ​​can be large numeric matrices). Is there any way that the automatic cleanup preserves when removing the list?[1] that contains them?

I had assumed that all DownValues ​​/ UpValues ​​/ OwnValues ​​would not work, but I hoped so maybe TagSet could.

Unfortunately it does not:

Delete everything[TryToHideSomeValues]

TryToHideSomeValues[myTemp_, value_] : = With[{p = myTemp}, p /: HiddenValue[p] = Value]MapThread[TryToHideSomeValues[#1, #2] &, {List[1], RandomReal[{1, 11}, {5, 5}]}]map[HiddenValueList[HiddenValueList[HiddenValueListe[HiddenValuelist[1]](* -> {{8.971, 5.41, 10.13, 8.482, 1.743}, {9.795, 7.289, 10.06, 1.640, 8.272}, {4.788, 5.803, 7.973, 6.589, 2.513}, {9.007, 2.325, 8.298, 7.071, 6,16}, {9,037, 3,004, 2,911, 8,603, 8,603}} *)

That's because of course TagSet It does not differ from others in this respect and also registers symbols in its LHS: Delete List[1] does not allow its icons to be automatically released, as was the case for the list[2]:

list[1] =.
names["Global`$myTemp*"]

(* -> {"$ myTemp3 "," $myTemp4 ","$ myTemp5 "," $myTemp6 "," $ myTemp7 "} *)

Is there a magic point where you could hide such values ​​so the icons are still purged while listing[1] is deleted?

I have looked around in Southeast Asia and z. & # 39; Weak Hash Maps & # 39; and language`NewExpressionStore That could somehow be a solution, but nothing obvious seemed to emerge.

Darktable darkens images automatically and can not be reset

Normally, I export 100% quality JPEG files from Photoshop, import the JPEG files into Darktable, and then execute watermarks, etc., before exporting them back to JPEG files with about 70% quality.

When I import a file in Darktable 2.6.2, it automatically darkens. Example below

Enter image description here

Darktable preview on the left, original JPEG image in 100% quality right.

In darktable, I have not assigned a module to the image. I just open the picture and have darkened the picture.

I checked the history stack. There was nothing applied. But something was applied with force that I can not turn off.

What's happening? Is it a bug or something?

I reset Darktable (deleted rm ~ / .config / darktable / * After reloading and importing a file, the image automatically darkens.

iphone – Podcasts do not play automatically

On iTunes, I download podcasts and paste them into a podcast playlist. This list consists of episodes of many different podcasts. I upload my podcast playlist to my iPhone. How can I get my iPhone to play this list automatically? At the moment I have to tap on each episode and then "play later". Why can not I just say that I should play my entire podcast playlist?

Automatically generated type notes in Python with static program analysis

There are some tools, such as MonkeyType and PyAnnotate, that let you create type notes in Python through runtime tracing. Is there a way to do this without actually executing the Python programs, d. H. Static way? I would like to do this on a large scale for many different Python files, and I do not think it is feasible for me to do anything (security and time issues).