## SharePoint Designer Workflow 2013 execute “call http request” action and is doing 4 times a retry

I have a SharePoint Designer 2013 workflow. In this workflow I have a “call http request” action. In this action I try to execute a PowerAutomate like in this tutorial. It looks like this “call http request” action has some timeout/retry mechanism. We see that if the Power Automate take allot of time to response (for example 10 minutes), SharePoint Designer 2013 will do a retry on the “call http request” action. So the Power Automate will run again. And we see that SharePoint Designer 2013 is executed this action the first time, and then 4 retry’s. Who knows about this behaviour? Is there some blog or documentation about this?

## security – Mining Bitcoin 1,000 Times More Efficiently than Anyone Else

Bitcoin secures its network by forcing miners to solve a cryptographic puzzle who’s difficulty increases based on the total hashing power of the network. If someone were to develop an algorithm that enables them to solve this puzzle say 1,000 times more efficiently (faster) than anyone else on the network they would be able to mine most (or a good portion) of new Bitcoin for pennies on the dollar. Assuming the person only uses his knowledge to mine Bitcoin at a much greater speed/efficiency compared to other miners (and does not hack anything or attempt to double spend etc) would the network be able to detect that something like this is happening?

I suppose not, because the hashing power of the network is not something that is known explicitly. It is something that is implicitly calculated based on the assumption that there is no possible way for a single individual to solve the cryptographic puzzle more efficiently than anyone else.

Is my assessment accurate?

Thanks

## virtualhost – New virtual host on apache returns the default vhost, other times returns the normal content

I’m having some really strange behaviour on one of my Debian servers. When requesting stuff.com ( example ) or stuff.com/image.jpg, let’s say 50% of the times I have the correct response, the other 50% of times I have an 404, in case of the image, if I’m requesting a normal HTML file I get the default page of apache.

It all started when I created a new virtual host this morning, configured the DocumentRoot as usual and everything else, and suddenly I start to get some 404 on the images in between refreshes, and sometimes I would get the default page of apache.

Virtual Host Config:

``````<VirtualHost *:80>
ServerName stuff.com
DocumentRoot /var/www/html/stuff/stuff-test
<Directory /var/www/html/stuff/stuff-test >

AllowOverride All
Require all granted

</Directory>
ErrorLog /var/log/apache2/stuff/stuff/error.log
CustomLog /var/log/apache2/stuff/stuff/access.log combined

</VirtualHost>
``````

Default config:

``````<VirtualHost *:80>
DocumentRoot /var/www/html

ErrorLog \${APACHE_LOG_DIR}/error.log
CustomLog \${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
``````

This was a complex site made with Symfony, so I thought it could be related to that, so installed on another server and everything worked. Then we started to cut down even more our possibilites, and now we only have an index.html and an image.jpg on the folder and it still happens the same thing.

We tried everything except restarting Apache with service apache2 restart, we usually use reload.

Things to note, we have 97 virtual hosts configured on this server, we increased the level of all logs, apache ( to trace8 ), on the virtual host in question and on the default virtual host.

We also checked dmesg, /var/log/messages, /var/log/kern.log, /var/log/syslog.

And nothing interesting appears on any of those logs when the requests fail to hit the virtual host and go to the default virtual host.

Another interesting fact or not, is that this only happens to new virtual hosts, we tried to create a bunch of them all with the same result, but on the old ones ( created before today ), everything is working perfectly without a problem.

Nothing was changed on the server ( last change was 3 of December ), no update to any software, no restart, nothing.

We are going to restart apache tonight, don’t want to risk restarting apache during the day and suddenly all sites go down. And see what happens.

Anyone has any idea?

Things we checked, not by any special order:

• Restarted php-fpm, but it happens while requesting an single file or an *.html file, so it’s not from there.
• Checked ulimit to make sure that everything was ok and we were not reaching any limit.
– Scoured every single log file that we could find, that could points anywhere and couldn’t find anything.

Versions of software:
Debian: 10.2

Apache: Apache/2.4.38 (Debian)

PHP: 7.2.34 ( not that it matters )

## plotting – Plot defined function several times

``````f(x_) := x;
T = 2;
a0 = 2/T*Integrate(f(x), {x, -1, 1});
a(k_) := 2/T*Integrate(f(x)*Cos(2*Pi*k/T*x), {x, -1, 1});
b(k_) := 2/T*Integrate(f(x)*Sin(2*Pi*k/T*x), {x, -1, 1});
g(x_, n_) :=
a0/2 + Sum(a(k)*Cos(2*Pi*k/T*x), {k, 1, n}) +
Sum(b(k)*Sin(2*Pi*k/T*x), {k, 1, n});
``````

To look at all plots at once

``````ParametricPlot3D(
Evaluate({x, #, g(x, #)} & /@ Range(10)),
{x, -1, 1},
BoxRatios -> {1, 1, 1/2},
AxesLabel -> (Style(#, 14, Bold) & /@
{"x", "n", "g "}))
``````

To selectively look at each individual plot

``````Manipulate(
Plot(Evaluate@g(x, n), {x, -1, 1},
AxesLabel -> (Style(#, 14, Bold) & /@
{"x", "g"}),
PlotStyle -> ColorData(97)(n)),
{{n, 3}, Range(10), ControlType -> SetterBar})
``````

## boot – Not booting up at times

When i start my laptop running ubuntu 20.10 [updated form 20.04 LTS], it takes 5 minutes or more to to run through some texts like “[ok] started daemon” and more texts like that. At times the computer wont boot up it just repeats those texts infinitely. This existed since when i installed ubuntu 20.04 LTS for the first time.

## How many times a single transaction can be included into different blocks?

I would like to know is there a limit after which a miner cannot include a transaction into his block.

## datetime – View based on months or days – display certain items during specified times of the year

I am trying to create a calendar-type view that will display links to specific nodes during certain months of the year. For example, this would show ‘Taxes’ in Feb and April, ‘Travel’ from May to September, etc.

So far I have added a boolean field to my node to appear in the view, but I am stuck on how to implement the date selector. Theoretically I would like to have people select the months that this node should appear in the view, and the view will contextually display the nodes depending on the current month.

The problems I’m running into are:

• The date field seems to require a year, but I want this to be year agnostic
• The date field doesn’t allow selection of multiple months

I am thinking that I will have to use a date field so that I can use contextual filters to display based on month of the year. I don’t have access to the codebase so I need to do all of this within the UI using modules, if possible.

Any tips on how I can achieve this?

## Why can´t this boolean stop the sound from playing 60 times a second?

``````local dontPlayMoreThanOnceDammit = false

function Behavior:Awake()
local sound = CraftStudio.FindAsset( "motorbuson1" )
self.mySoundInstance = sound:CreateInstance()
self.mySoundVolume = 1.0
self.mySoundInstance:SetLoop( true )
self.mySoundInstance:SetVolume( 1.0 )

end

function Behavior:Update()

if dontPlayMoreThanOnceDammit == false and CraftStudio.Input.WasButtonJustPressed( "on" ) then self.mySoundVolume = 1.0 self.mySoundInstance:Play()
dontPlayMoreThanOnceDammit = true
end
if CraftStudio.Input.IsButtonDown( "off" ) then self.mySoundInstance:Stop()
dontPlayMoreThanOnceDammit = false
end end
``````

## python – Redistributing times – Code Review Stack Exchange

Original problem:
Given x number of tests that should run in y number of seconds shift the time per test so that each test takes a little longer than the next.

Example: If running 10 tests over 10 seconds, the equal time per test would be 1 second each.
Instead, have the first test take .5 seconds and the last test take 1.5 seconds while each subsequent test take a progressively longer duration. We shift the time per test around while still maintaining the original duration of 10 seconds for the 10 tests.

I am slightly ignorant of what math principles are occuring. I knew how I wanted to solve the problem but I can’t describe the problem. I’ve made it possible to adjust how much shifting can be done. Since the array of times is linear (and we can’t really have negative times) I put a limit on that ‘shifting’ value.

1. How do you describe this function / math problem? (which would hopefully result in a better name for it).
2. What should the `pct` variable be called? I originally thought it to be a percentage of each second, but as I developed the function I realized this was inaccurate; since after the first value, the percentage of shifting per time slice goes down then back up again.
``````def duration_spread(tests: float, seconds: float, pct: float = .75):
assert -1 <= pct <= 1, "pct must be within +/-100% otherwise it will push times into negative"
pct *= 2
original_velocity = seconds/tests
seconds_per_tests = original_velocity  # couldn't decide on naming convention
average_velocity = original_velocity
diff_average_velocity = pct * average_velocity
acceleration = diff_average_velocity/tests

multiplier_list = get_multipliers(tests)
results = ()
for i, multiplier in enumerate(multiplier_list):
results.append(newtime)

return results

def get_multipliers(tests: float):
odd = int(tests % 2)
half_tests = int(tests // 2)
result = list(range(-half_tests, half_tests+1))
if not odd:
result.pop(half_tests)
return result

$$```$$
``````

## Topological stable rank of \$C_0(mathbb{Z} times K)\$

I was trying to calculate the topological stable rank of $$C_0(mathbb{Z} times K)$$ where $$K$$ is Cantor set. My idea: Since $$C_0(mathbb{Z} times K)$$ is not unital if we some how make it unital then $$spec (C_0(mathbb{Z} times K))$$ is homeomorphic to Cantor set and $$C_0(mathbb{Z} times K)$$ became AF-algebra. but I can’t make the algebra unital. Does anybody have any idea to make $$C_0(mathbb{Z} times K)$$ unital?