artificial intelligence – A* search tree version – Can a node be in the frontier multiple times

I took an exam today and it had a question on A* tree search version, we only briefly skimmed over this on the material, focusing more on the graph search version.

In the example in the question text it showed a node being expanded and then a node already in the frontier being added again, due to the expansion, so it was listed twice in the frontier.

I did know about this, and so in my answers, when I needed to show the state of the frontier, and expanding a node meant a node already in the frontier was shown I added it again.

This meant in my answer I had a node in the frontier twice, but I am not sure if this was correct, as the question was long and involved showing the frontier multiple times, and I had the node in there twice, if it is wrong I likely got most of the question wrong.

Could someone tell me if this is something that happens with the tree search version, where there is no explored set, I am wondering if it was just a typo in the question text now.

9.0 pie – Does Samsung Galaxy S10 run Android version 12?

I’m reading about the Samsung Galaxy S10 here. It says The S10 range ships with Android 9.0 "Pie". I made an app and a user is reporting a bug on it with the S10.

What I Want To Know: If the S10 ships with Android 9.0, does that mean that these phones will always have 9.0 only, or would they get updated to later versions of Android? If so, what’s the highest version they run?

Theme, WordPress Version, MySQL Version, PHP Version Update affected files and folders

How do I keep my Files during WordPress and Theme Updates?

Don’t edit core WordPress files or the files of themes or plugins you didn’t develop yourself. If those are updated they are replaced entirely and you will lose any changes you make.

If you want to customise the theme, create a Child Theme. If you want other functionality, or to customise a plugin, create your own plugin.

During WordPress Update does the custom tables I made will also be gone?

No.

Does MySQL Version Update remove my custom Tables in wordpress?

No. MySQL doesn’t know or care which tables are yours and which are from WordPress.

sql server – Bypassing version store for changing column datatype

Database is Always On High Availability synchronised database on SQL Server 2019 with READ_COMMITTED_SNAPSHOT on and we are updating datatype from varchar to nvarchar (with “alter table” command) on a column on a large (1 TB) table.
It blew up our tempdb due to version store.
I understand why this happened, but really just looking at (maybe creative) ways to stop this happening (ideally to bypass the version store for this command).
I’m considering recommending ADR to at least mean that at least issue is isolated to this particular database, but would love to hear any other ideas.

Ubuntu: comando YUM en la versión 20.04

Me gustaría consultar sobre el comando YUM para instalar un programa en la terminal de Ubuntu. En una máquina virtual instalé el SO y traté de instalar Oracle XE, siguiendo el tutorial de la misma página de Oracle me encontré con el error
“Command yum not found”

En varios portales encontré que se solucionaba instalando directamente son “sudo apt-get install yum”, pero me encontraba con el error “Unable to locate package yum”.

Soy demasiado principiante en Ubuntu y me preguntaba si podría ser por la versión del SO que tengo descargada o puede ser otro problema.

dnd 5e – Is this homebrew shortbow unique item balanced? (second version)

Thanks everyone for the insightful advice you offered for the first iteration of this unique artifact for one of my players. If you’d like to read the background and initial considerations on this item, please refer to the previous question: Is this homebrew shortbow unique item balanced?

Changes and considerations

  • Reduced the amount of active abilities in favor of passive ones;
  • Reduced the flat +1/+2/+3 bonus to hit and damage for a lower +0/+1/+2;
  • Reworded and clarified the teleport ability, and made it a bit more “dangerous” to use;
  • Clarified the Freedom of Movement aura ability, and made it shorter-ranged as well so that there’s more risk in jumping in the fray to help out a restrained ally;
  • Changed damage type from force to radiant to stay closer to the theme;
  • The line attack changed from a creature within 120 feet to a point within 80 feet, to match the range of the weapon and to make it a bit more versatile to use. Not sure if it’s really relevant or recommended;
  • spread the damage increase across the levels and capped it to 1d10;
  • Fly became passive and permanent instead of limited to 1h;
  • Added a passive ability that would protect the user from conditions that could reduce their agency against manipulative monsters.

Item levels reference points

  • The item is going to be awarded somewhere around character level 6, and it’ll start from Dormant
  • The item is going to be Awakened around level 10 or 11, depending on the roleplay of the user
  • The item is going to be Exalted around level 15, with the same caveat as before.

Simple weapon, ranged weapon, artifact (requires attunement)
1d6 radiant (80/320 ft.), two-handed

The shortbow is made of an extremely light wood with colors that vary between walnut and cherry. When exposed to dawn or dusk light, it shines with golden reflections. The grip is wrapped in soft, white leather that seems impervious to dust and grime. All along the upper and lower limbs of the bow, there’s a number of empty, unusually shaped grooves and slots.

Sentience: Eleutheria is a sentient Chaotic Good weapon with an Intelligence of 15, a Wisdom of 19 and a Charisma of 16. It has hearing and blindsight out to a range of 80 feet. The weapon communicates telepathically with its wielder and can speak, read, and understand Celestial and Sylvan.

Personality: A Curious, incautious and excitable Fey spirit lives within Eleutheria. It has an insatiable appetite for adventure, bold actions, and a very personal sense of justice and hatred for tyrants and bullies. The spirit wishes to learn more about the world and its inhabitants.

Dormant: The shortbow grants the following benefits in its dormant state:

  • You can speak, read, and write Celestial and Sylvan.
  • The attacks of this weapon are considered magical.
  • The shortbow doesn’t need physical arrows when attacking. Translucent arrows of pure energy magically appear as soon as you draw the bow’s string.
  • When you make an attack against an hostile creature using Eleutheria, you can use a bonus action to magically teleport to a space you can see within 15 feet of the target of that attack. You can’t use this property again until you take a short or long rest.
  • While Eleutheria is on your person, you have Advantage on Intelligence (Investigation) checks made for detecting traps and Dexterity checks for attempting to pick locks on cages, manacles, or other restraints in order to free a trapped creature. If you aren’t proficient with Thieves’ Tools, you become proficient when picking locks on cages, manacles, or other restraints.

Awakened: When the shortbow reaches an awakened state, it gains the following properties:

  • You gain a +1 bonus to attack and damage rolls made with this magic weapon.
  • Your walking speed increases by 10 feet.
  • The base damage die of this weapon becomes 1d8.
  • While holding the shortbow, you can use a bonus action to evoke a gentle, warm (or cool, your choice) breeze to flow around you for the duration. For 1 hour, you and any creature of your choice will benefit from the effects of Freedom of Movement while they’re within 5 feet of you. You can’t use this property again until the next dawn.
  • When you speak its command word, your arrow transforms into a beam of pure radiant energy, forming a line 5 feet wide that extends out from you to a point you can see within 80 feet of you. Each creature in the line, excluding you, must make a DC 16 Dexterity saving throw, taking 5d12 radiant damage on a failed save, or half as much damage on a successful one. This property can’t be used again until the next dawn.

Exalted: When the shortbow reaches an exalted state, it gains the following properties:

  • The weapon’s bonus to attack and damage rolls increases to +2.
  • Your walking speed increases by an additional 10 feet.
  • The base damage die of this weapon becomes 1d10.
  • You can channel the winds around you to support you in your movement. You gain a flying speed equal to your walking speed.
  • While attuned to the shortbow, you can’t be charmed, frightened, petrified, or forced to be prone.

functions – wp_register_script() and wp_register_style() 4th parameter (version) not working for logged out users

I’m enqueuing scripts and styles from functions.php in my custom theme. The 4th parameter is the version number. It’s working only for logged in users.

wp_register_script( 'my-handle', get_stylesheet_directory_uri( __FILE__ ) . '/js/my-script.js', array( '' ), filemtime( get_stylesheet_directory( __FILE__ ) . '/js/my-script.js' ), true );
wp_enqueue_script( 'my-handle' );

Logged in:

<script src="https://mysite.com.local/path/to/my-script.js?ver=1614637944" type="text/javascript"></script>

Logged out:

<script src="https://mercury.photo/wp-content/plugins/instagram-feed/js/sbi-scripts.min.js" id="sb_instagram_scripts-js" type="text/javascript"></script>

Caching plugin on the live site is LiteSpeed Cache. The local dev site uses no caching. Same output on both sites.

8 – What does the ‘version’ keyword mean in .libraries.yml?

Why should I use it?

It is used as an identifier for your libraries. Just like any project/package is tagged in different versions. For eg: jQuery 3.5.1 is slightly different from 3.0.0. The difference could be anything, from API change, new features, bug fixes, etc. Thus we need a way to identify the changes that happened to our library we created. So that we can make some conscious decisions. Another example. Suppose there is a 3rd party js that is having issues with another library of a specific version. So during the install, we can check if the other library has library greater than required.

When should I change its value?

Ideally after every deployment if any change to the library has occurred.
So what Drupal does is, it happens the version number to each file in that library when attaching that library to any page. For example: if my library has a css file called custom.css and the version number is say 1.0.0. So, the way it will get attached to the page will be like /path/to/theme/css/custom.css?v=1.0.0.
This is so far ok. But ideally on prod environments there are reverse proxies which caches these files. Suppose if we make any new changes to these files and even if we clear the cache, the files will still be served from CDN, thus we also need to make sure if any change has happened on these files, it makes sense to also increase the library version number. Just as you would do with creating a new tag for a new release for any project.

If we give the version as VERSION. Then drupal sets its version = Drupal::VERSION the current drupal core version.

upgrade – How to change password version by myself in oracle?

Oracle documentation (18c) says:

….

You must expire the users who have only the 10G password version, and
do not have one or both of the 11G or 12C password versions.

For example:

ALTER USER username PASSWORD EXPIRE;

Ask the users whose passwords you expired to log in. When the users
log in, they are prompted to change their passwords. The database
generates the missing 11G and 12C password versions for their account,
in addition to the 10G password version. The 10G password version
continues to be present, because the database is running in the
permissive mode.

But, there is some way to do it by myself? (and to use the same old password)