## Two Generals Problems – What’s wrong with my idea?

Some time ago, I’ve come across the Two Generals Problem and that it cannot be resolved. Now, recently, I’ve had an idea how to resolve it (to a certain degree). IMHO, it is a very obvious way to handle it, but I haven’t found this way to handle it anywhere and therefore assume my idea is flawed but I can’t stop thinking about what’s wrong.

General A sends a message to General B when to attack. The message contains the following information:

• Attack at time $$T$$.
• Send confirmation of receival.
• I will not confirm your confirmation.
• I will resend the time of attack after time $$t$$ if I did not get a confirmation.

That way, General A can be sure General B got the message when he gets the confirmation. General B can be $$(1 – p)^{m \cdot c}$$ sure that it passed after not getting the time of attack again, where

• $$p$$ := probability the confirmation passed
• $$m$$ := multiple of time $$t$$ that has passed.
• $$c$$ := count of messages sent per time unit (one of the solutions I’ve come across is to send a lot of messages at the same time).

It does not solve the problem that General B can’t be 100% sure that General A received the confirmation but after some time, he can be very sure.

Now, if we were to change the scenario slightly, we can reach a 100% certainty for both:

Assume both Generals do not only communicate in order to synchronize the attack but also for other purposes. In that case, General A can send the message:

• Attack at time $$T$$.
• Send confirmation of receival.
• I will not confirm your confirmation.
• I will resend the time of attack after time $$t$$ if I did not get a confirmation.
• I will not send any other communication until I’ve received your confirmation.

That way, General A can be sure that General B received the plan, when he gets the confirmation and General B can be sure General A received the confirmation when General A sending messages about something else.

So, what is wrong with my idea?

## What’s the best empty basket page/message for e-commerce?

I’m looking for e-commerce experience and I really think that just show a message saying your cart is empty is so boring. I feel that we must show something more interactive for the users.

What’s the better empty shopping cart message/page that you’ve seen? Do you have some data/statistics about empty shopping cart conversion?

Look what I designed and give me your opinion which one should works better, please.

PS.: My user has between 25-55 years, most part male and are buying roofing materials. The sales process is not so short, not so impulsive and sometimes the user can add products to the cart, leave and back in the further, and not always they cart still there (if they don’t save).

Option 1) All empty and none value with some opacity but looks like the real shopping cart. Simulate where will be the products and show button to go to the homepage.

Option 2) All empty and none value with some opacity but looks like the real shopping cart. Funny image to be not so boring.

Option 3) All empty and none value with some opacity but looks like the real shopping cart. Show last seen products.

Considering all discussed and the template options. Which one do you consider better?

## Whats the difference between 0> and > redirections?

I cant redirect the output of a particular program using > , but it works if i use 0> , e.g

./foo >  ouput.txt ./foo 0> output.txt 

this program writes to the standard using the C function

write(0,other_args ... ) 

I thought the two were equivalent, since the standard output descriptor is 0 ?

## When a mystic theurge uses combined spells, whats the spell level?

I asked a related question but different here.

In the following scenario, how does a mystic theurge combine spells ability work. Cleric 3 / wizard 3 / MT 3. They use a second level wizard slot to cast a first level cleric spell. Lets assume that the character has wisdom 18 for +4 and int 20 for +5.

• Which attribute is used in calculating the save DC, the clerics +4 due to cleric spell, or wizards +5 due to wizard spell slot?
• What is the DC per the level of spell? Since its Cleric 1 is it +1 or slot 2 for +2?

The end DC can be 15, 15, 16, or 17 depending on how the abilities work.

## What’s the best way to extract data from Sharepoint to SQL server database?

The source data are from MS Project on SharePoint. The business would like to see the updates of MS project near real time. We have the reports pulling the MS project data off SQL server database. Right now, we are using SSIS package to get the MS project data from SharePoint to the database, but it’s slow or get disconnected.

## What’s the expected benefit of the second pistol?

Blades in the Dark lets you take a pistol for 1 load, or a pair of pistols for 2.

The Blades-based sci-fi game Scum and Villainy lets you do the same with blasters, or the Scoundrel’s fine sidearms.

We understand the basics of how equipment works in the game — creating an opportunity to act where you couldn’t otherwise, influencing outcomes due to potency or quality, serving as inspiration for devil’s bargain — and how this plays into creative and unexpected uses of gear. When we play, we look to the fiction to guide us, as intended. But most of the gear also has very straightforward applications mapped out in the book, too.

In light of that, what’s the “typical”/”bread-and-butter” benefit of checking 2 load boxes to bring two handguns on a job over just bringing a single one?

## What’s the correct way to determine turn order in this situation?

The situation:

Four orcs are spotted by the party, sitting around a campfire. Two more orcs are in a tent a couple meters away. The orcs do not notice them.

A Wizard casts invisibility on himself and goes very close to them them while the rest of the party waits close by, hidden behind a bush.

The wizard casts Thunderwave and as soon as he appears the rest of the party charge in.

Wich is the correct way to determine turn order in this situation?