Using Catapult spell with alchemist fire bottle can you deliver both 3d8 bludgeoning damage as well as the alchemical fire damage?

Using Catapult spell with alchemist fire bottle can you deliver both 3d8 bludgeoning damage as well as the alchemical fire damage?

Likewise can you use the full extent of the Catapult spell and say throw a bag of 5 alchemist fire weighing 5 pounds (the spells minimum limit) deal the 3d8 bludgeoning damage and 5d4 fire damage and would the the same 5d4 fire happen again the next round?

fragmentation in ipv4 is done at source or routers or at both

fragmentation in ipv4 is done at source or routers? according to what i read, fragmentation can be avoided at source, by doing segmentation at transport layer wisely to match MTU of source network… we can also avoid fragmentation at routers by using PMTUD(path MTU discovery), where we use ICMP packets with dummy port to determine smallest MTU size required in path from source to destination. Then segmentation done at source to match smallest MTU in the path… so, fragmentation is done at both source or routers as per requirements if we don’t use above methods.. is it correct?

Use a template argument both parsed and unparsed

Suppose I have a simple template Foo

The wikitext   {{{1}}}  renders as  <blockquote>{{{2}}}</blockquote> 

So including {{Foo|<nowiki>'''bold''' and ''italics''</nowiki>|'''bold''' and ''italics''}} in a page renders as

The wikitext

'''bold''' and ''italics'' 

renders as

bold and italics

Is there any way to reduce the duplication required to use template Foo? That is, either modify Foo or call it via another template in such a way that the user only needs to specify the desired wikitext once, instead of two times?

I don’t really care if it would be as

{{DRYFoo|<nowiki>'''bold''' and ''italics''</nowiki>}} 

or

{{FooDRY|'''bold''' and ''italics''}} 

and I’d be satisfied by something that used subst: to expand something else into a normal call to Foo.

The rules for order of evaluation would seem to rule out FooDRY, and I’ve been unable to find a template/parser function that would re-expand wikitext to make DRYFoo work.

How do I deal with someone who is controlling, both as a player and a DM?

My question revolves around dealing with what I regard as an overly controlling player/DM in D&D 5e.

For privacy purposes, we will call my friend Boris. We play at Boris’ house. We play once a week for about 4 hours a session.

For most of us, 4 of the 6 of us, this is our first time playing D&D. Boris and I are among the new players.

We agreed that anyone who wanted to DM would get a chance as we would switch off, Boris creating the universe and running the first storyline in what would be a series of stories in his custom universe. Boris emphasized that he was telling a story and that the narrative of the story was paramount in D&D, that restricting players and saying no to them is ok because it forces them to be more creative. I disagree with him on this and believe that players enjoying themselves is more important.

Before his game he told us he would be railroading us and throughout the game he did but it was his first time DMing so I don’t hold it against him. He, however, was very controlling of player choices during the game and told me I couldn’t take a specific Oath for my character because it didn’t make any narrative sense and actively punished characters for trying to do cool or unorthodox things.

My turn to DM comes around, and I make a few mistakes but I kept trying for two sessions.

The whole time Boris is berating and lecturing me repeatedly between sessions about how the narrative is weak and is full of plot holes, and he gives ways to fix all of them, which I find to be rather insulting. At the same time, his character is extremely energetic and stupid and constantly misunderstands PCs and NPCs because he’s so stupid and naive. One of my players has approached me and said that he felt Boris’ character was actively derailing the campaign.

Boris also tried to argue that, because it was his setting, he would have final say in anything in the universe and told the future DMs what they could and couldn’t use or do, because he’s planning something or it goes against what he wants. I told him that because I’m the DM, I have final say and he can deal with it.

After two sessions, I tell everyone that I’m not having fun and say that whoever is next will do their campaign next time. I knew my campaign wasn’t going to be perfect, and I acknowledge that I made mistakes but not the ones that Boris claims I did. Everyone but Boris said they’re having a great time. Boris said he was almost enjoying the game.

My question is how should I deal with Boris, as he is trying to control every aspect of the game and is already acting like he has final say for all of the setup for the next campaign, to the point where it is making it not fun and stifling my own creativity for my character? Should I just leave the group, or confront him, or is he right about D&D?

Efficient algorithm for finding optimal sum from both arrays

I have two arrays(A,B) and a sum M. I need to find one number from each array that makes the sum M. If there is no two elements that form sum M, then nearest and less than M sum is the solution. See examples below. What is the efficient way to find the solution for this?

eg1:  A =[200,300,600,900] B =[1000,200,300,500] M = 900 Output : A(2), B(2) 600 from A and 300 from B sums 900.  eg1:  A =[200,300,600,1000] B =[1000,400,600] M = 1500 Output : A(3), B(1) 1000 from A and 400 from B sums 1400 which is near to the sum 1500. 

Not able to connect to internet when both ethernet and wifi is connected in Ubuntu 16.04

I have Ubuntu 16.04 (machine 1) and Windows 10 (machine2). I have connected the ubuntu to the wifi with IP 192.168.0.110 and I can browse internet easily.

I have to do remote C++ development on ubuntu from windows using Visual studio. I have connected the Ethernet cable between ubuntu and windows. On both the side I have set the static IP i.e. ubuntu has 192.168.0.150 and windows has 192.168.0.149. I can ping windows from ubuntu and vice versa. But when I try to browse internet on Ubuntu, its not working. If I disconnect wired connection from ubuntu, I can browse the internet fine. I don’t know what I have done wrong here due to which I am not able to connect to internet on Ubuntu.

Can anyone please suggest any idea. Thanks

Is concept of virtual memory about memory isolation or about ability to swap? Or both?

Most reading I found about virtual memory, such as http://www.linux-tutorial.info/modules.php?name=MContent&pageid=89 or https://en.wikipedia.org/wiki/Virtual_memory always state that virtual memory is a concept that allows operating system to make it “appear as though you have more memory than you really do”.

But isn’t that what overcommit is about? Isn’t whole virtual memory concept primarily about the fact that each process has an isolated virtual memory pool, thus being unable to read or modify other process memory?

If not, what is this technology of memory isolation within own virtual memory pools called?

Is the 5-foot range of the Help action my range to the ally, the enemy, or both?

A player in our group that knows much more than me explained the Help action during game, but then after the game I read the PHB and not sure if he’s using it correctly.

I thought I needed to be within 5 feet of the enemy. He said I need to be within 5 feet of the ally.

The Help action says:

You can lend your aid to another creature in the completion of a task. When you take the Help action, the creature you aid gains advantage on the next ability check it makes to perform the task you are helping with, provided that it makes the check before the start of your next turn.

Alternatively, you can aid a friendly creature in attacking a creature within 5 feet of you. You feint, distract the target, or in some other way team up to make your ally’s attack more effective. If your ally attacks the target before your next turn, the first attack roll is made with advantage.

Does the ally, the enemy, or both need to be within 5 feet of me when I take the Help action?