url rewriting – How can I make rewrite rules for a custom post type?

I’m trying to create rewrite rule which will work this way: when user enters URL site.com/projects/projectname/cityname it should work as site.com/?projects=projectname&city=cityname, where: cityname – GET-parameter “city”, projectname – name of the page, projects – custom post type.
For example: site.com/projects/testproject/london should be the same as site.com/?projects=testproject&city=london.
I found a few examples on WordPress Codex and stackoverflow, but these examples is not working. Probably, I’m doing something wrong.
One of the examples which I’ve tried and it’s not working:

add_action('init', 'do_rewrite');
function do_rewrite(){
    add_rewrite_rule( '^(projects)/((^/)*)/((^/)*)/?', 'index.php?projects=$matches(1)&city=$matches(2)', 'top' );
    add_filter( 'query_vars', function( $vars ){
        $vars() = 'city';
        return $vars;
    } );

❕NEWS – A leaked document show EU rules regarding crypto | Proxies-free

Earnings Disclaimer:  All the posts published herein are merely based on individual views, and they do not expressly or by implications represent those of Proxies-free or its owner. It is hereby made clear that Proxies-free does not endorse, support, adopt or vouch any views, programs and/or business opportunities posted herein. Proxies-free also does not give and/or offer any investment advice to any members and/or it’s readers. All members and readers are advised to independently consult their own consultants, lawyers and/or families before making any investment and/or business decisions. This forum is merely a place for general discussions. It is hereby agreed by all members and/or readers that Proxies-free is in no way responsible and/or liable for any damages and/or losses suffered by anyone of you.

Are there any provisions within the immigration rules for exonerating one for overstaying due to extreme extenuating circumstances?

Typically an overstayer would be subjected to a ban of various lengths. Supposing it was not one’s own fault that one overstayed, are there any provisions within the rules for making an argument along these lines with respect to an overstay of significantly more than 28 days?

YouTube rules?

Good afternoon, dear, tell the veteran, if you have any questions on YouTube, you have any questions.

The first question is, I bought the channel before there was children’s Russian content and there are 3000 subscribers, but the hours are written off, I want to do reviews on Trump in my bad English, to be honest, I just want to make money because they pay more on views for the United States.

The second question is I want to increase my views using the bot.

The third moment, I really like the Trump theme, I really like it, I’m not kidding, I want to upload three videos a day on the Trump theme to the channel, but my face will not be visible, I will be wearing a mask.


From here I have a question and will they connect me $$$ ???


5E rules regarding armor and being prone

In 5E, the rules seem pretty straightforward, but clear, regarding armor and the associated AC. However, it seems a little out of balance for characters who fall prone.

Does, or should, the AC for a character change if they are prone? For example, the Paladin in my group I am DM’ing was wearing plate armor and was knocked unconscious, falling prone. As far as I can tell, this means he still retains his 18 AC, regardless of the fact he is no longer moving.

Should the AC stay at 18 or get reduced? Am I missing where this might be covered?

dnd 5e – What explicit player-side rules exist for reflavoring races/classes?

The whole principle behind “reskinning/flavoring” is to allow individuality to a character. You can call your darts “throwing stars” but they still only do 1d4 damage and have the same range and restrictions of darts. You can say your long sword was forged from crystal, but it still does the same damage and it is still somehow affected by a rust monster.

A public example is a wizard that doesn’t cast spells, but uses potions, perfumes, and tinctures that have the same result as spells. So you can’t throw a potion that is a touch spell.

But with all that said, it all boils down to the DM as to what is allowed. While appreciate the potion/perfume reskin is, I would not allow it in my game as there would be too many questions about “where does he keep them safe?”, “how does he refill?”, and “how can you switch the spells you have prepared mid-adventure?”

There are no “rules”, just soft suggestions.

And that also means, especially with Adventure League, that what can be allowed can change from table to table.

Consider, there is not even a “rule” stating that all races are required to be allowed. Per the PHB

Every character belongs to a race, one of the many intelligent humanoid species in the D&D world. The most common player character races are dwarves, elves, halflings, and humans. Some races also have subraces, such as mountain dwarf or wood elf, as well as the less widespread races of dragonborn, gnomes, half-elves, half-orcs, and tieflings.

It does not say that it must be one of races listed in the PHB (or any other WotC book). Only that they are one of the intelligent humanoid species in the D&D world. So if my world doesn’t have dwarves, you can’t be a dwarf in my world.

So there are no rules for what reskinning/reflavoring is allowed, because once you leave the core mechanics of d20, it’s all flavor.

Replace Condition in Replacement Rules

In finding an answer to my other question, I’m finding myself needing to manipulate the conditions imposed on replacement rules, but this is proving to be a little difficult. In particular, how should I go about removing instances of Condition and PatternTest?

Using the code from my other answer (slightly adjusted):

f(x_?InexactNumberQ) := x^2;
g(x_) /; FooQ(x) := x^3;

Attributes(ExpandValues) = {HoldAll};
ExpandValues(symbol_) := Join @@ Through(
  {OwnValues, DownValues, UpValues, SubValues, DefaultValues, NValues}(symbol)
ExpandValues(symbol_, symbols__) := Join(ExpandValues(symbol), ExpandValues(symbols));

then the replacement rules that need to be modified are:

  HoldPattern(f((x_)?InexactNumberQ)) :> x^2,
  HoldPattern(g(x_) /; FooQ(x)) :> x^3

I would like these to be modified to not have any conditions on the arguments, but trying to replace the condition and pattern test is proving difficult. This for example does not work:

  HoldPattern(Condition(p_, q_)) :> p,
  HoldPattern(PatternTest(p_, q_)) :> p

I’ve also tried using Verbatim which the documentation suggests is useful to transform other transformation rules, but I have not gotten them to work. I’m also thinking that the use of Verbatim won’t work generally because it is too literal.

I’ve had partial success with

  Condition -> (#1 &),
  Patterntest -> (#1 &)

but when the replacement appears within a HoldPattern, the resulting rule after replacement does not work.

style guide – Design System rules

I think the days of strict spacing rules in style guides worked well when the screen sizes and resolutions on devices were not as diverse as it is today. But with responsive web design the main motivations of setting up design systems, it is more advantageous to have design system rules based on proportions and ratios rather than absolute values, because you can’t scale or adapt to different displays and devices very well that way.

But it is also worth taking into consideration whether you are looking at spacing as an isolated instance of design system/style guide rules or if there are other aspects that are also set in stone. I think you’ll find that strict spacing rules will have an impact on other parts of the design system as well, so I would expect that if you set very specific rules for spacing then you will also need specific rules for UI component dimensions so that the spacing rules will work well.

When you say that your “company has multiple in house applications in development”, I assume that these are internal facing applications that are probably deployed within a standard operating environment (e.g. company desktop machines and laptops that are similar enough), so it could make sense to use more strict rules when there are less variables to consider and deal with.

As usual, it is also important to consider a design system/style guide as a product or service, so it is good practice to ensure that the product or service is fit for purpose for the users (i.e. the designers and developers).

discrete mathematics – RULES OF INFERENCE PROVING

Thanks for contributing an answer to Mathematics Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, see our tips on writing great answers.

dnd 3.5e – Gestalt rules clarification

I am playing in a D&D 3.5 game. We are level 5 gestalt with 2 free LA (as in if you have a race or template with LA, you can get up to 2 total of them for free. Any Racial HD are paid as normal).

I chose a water orc (0 LA) with the natural lycanthrope template, Weretiger version (3LA normally, 1 with the rules. and with 3RHD).
On one side of my Gestalt, I put 4 levels of Warblade and 1 level of Warshaper. On the other I put the LA of the weretiger, and 4 levels of the Weretiger class.

We had down how our characters were going to progress and for the next 2 levels, I put 2 more levels of Warshaper and 2 more levels of weretiger and the other side had 2 more levels of Weretiger.

This is where I need help because at this point, I started to progress Warblade and Warshaper at the same time, which I was told I could not do, as you can not move the side a gestalt class is on. I cannot find any such restriction on the d20SRD page, and I can also not find the source book for gestalt rules. I looked in PHB1&2 as well as the DMG1&2.

Is this a rule in the gestalt ruleset, or is it a houserule? Also, what specific book or books were gestalt rules introduced in?

If my explanation didn’t make sense, I put down a visual aid below this:

lvl 1: WeretigerLA |||| Warblade 1

lvl 2: Weretiger 1 |||| Warblade 2

lvl 3: Weretiger 2 |||| Warblade 3

lvl 4: Weretiger 3 |||| Warblade 4

lvl 5: Weretiger 4 |||| Warshaper 1

lvl 6: Weretiger 5 |||| Warshaper 2

lvl 7: Weretiger 6 |||| Warshaper 3

lvl 8: Warshaper 4 |||| Warblade 6

lvl 9: Warshaper 5 |||| Warblade 7