## Apache: How to prevent access to folders via double slash on request uri

I have a website which is in git, so it has a .git folder. While I’ve configured Apache to not serve files/folders that start with a dot, Someone has been able to access files within the .git directory by using a double backslash at beginning of the request URI.

In other words, the following URL returns a forbidden 403 as it should:

`http://www.example.com/.git/objects/02/xxxxxxxxxxxxxxxxxxx`

But, if you use the following URL, it serves the file:

`http://www.example.com//.git/objects/02/xxxxxxxxxxxxxxxxxxx`

I’ve been unable to figure out a solution that prevents this without using the rewrite engine. I can do a rewrite if necessary, but is there a simpler configuration that would prevent this access? More importantly, I’d like to know why this happens. What causes Apache to bypass all the restrictions just by putting an extra slash in there?

## Olá!!! Como faço o casting desse exercício em C# de double para int? SEGUE O QUE CONSEGUI EXECUTAR ATÉ AGORA

using System;
using System.Globalization;

namespace _1021_2
{
class Program
{
static void Main(string() args)

``````    {
double N;
int quociente, resto, nota, moeda;

resto = (int)(N * 100, 0 + 0, 5);

Console.WriteLine(" NOTAS: ");

nota = 100;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

nota = 50;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

nota = 20;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

nota = 10;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

nota = 5;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

nota = 2;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

nota = 1;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

Console.WriteLine(" MOEDAS ");

moeda = 100;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

moeda = 50;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

moeda = 20;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

moeda = 10;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

moeda = 5;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

moeda = 2;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

moeda = 1;
quociente = resto / (nota * 100);
Console.WriteLine(quociente + " nota (s) de R \$ " + nota + " .00 ");
resto = resto % (nota * 100);

Console.WriteLine(resto + " moeda (s) de R \$ 0,01 ");

}
}
``````

}

• Secret formula
• Unique domains will be used
• I provide some bonus links also (for better performance)
• Unique article that will be Seo optimized
• I have also a personal article writer, for optimized articles
• ALL NICHES Accepted
• For higher sales
• Exel sheet will be provided (if you need)

Also Must see my satisfied customers in my profile’s review section ThanksThankYOU!

## mysql – Using double write buffer is 8x slower in SSD (compared with 2x~3x in HDD)

I understand the double-write-buffer enhances the reliability of data, so it makes transactions slower. But it is amazing that the slow down is such severe in the newest Samsung 980 pro (M.2 PCIe 4.0, which is about 400\$ for 1TB).

Configurations: other parameters are defaults.
CPU: AMD Ryzen 3900XT
MEM: 64GB, 3200MHz
OS: Ubuntu 20.10, all disks are `ext4`
MySQL: 8.0.22

Why does this happen? Did I hit a performance bug?

Thanks!

## cryptography – Is double sha256 the best choice for Bitcoin?

The typical reason one uses double hashing is to deal with length-extension attacks. That’s because any Merkle-Dåmgard algorithm that outputs its entire state (e.g., SHA-1, SHA-256, and SHA-512) is vulnerable to a length extension attack, where users who know a hash can append additional data and also produce a valid hash.

There are other algorithms, such as SHA-3 and BLAKE2, which don’t have this problem because they use a different construction. SHA-3 uses a large state and outputs only a portion, while BLAKE2 modifies the input data of the last block processed to distinguish it. A design lacking this problem is preferable these days.

However, those algorithms didn’t exist at the time Bitcoin was created (2008), and SHA-256 was the standard hash algorithm to use for secure contexts, even though it has this weakness.

Whether an algorithm is “better” in a context depends on one’s needs. Presently, if one needs security against length extension attacks, one chooses SHA-3 or BLAKE2. If one needs performance, one uses BLAKE2 or SHA-256 (if accelerated on the relevant hardware). If one needs compliance, one uses SHA-2 or SHA-3. There are many criteria to consider.

In the context of when the design was made, the choice was probably responsible and defensible and was the best that could be done under the circumstances, even if we would prefer a different algorithms today (because we have better ones available). Since SHA-256 is presently considered secure and robust, there’s little reason to change right now. If in the future that changes, then using a different algorithm may be warranted.

## sharepoint on prem – Crawlers raises an error when crawling these URLs that end with a double Guid, what are they?

What are the URLs that have this format in SharePoint 2016 on-premise? They seem to be automatically generated and the search crawler is raising an “Error while crawling LOB contents” when trying to crawl them.

## unity – TMPro Double Outline

Hi, This is what I am trying to achieve: TextMeshPro with double outline.

So far I have tried these combinations:

1. TextMeshPro + Outline[int the mid] + Underlay [external]. It is close, but not the one I am trying to make. The problem in here: The outer shadow `Underlay`‘s `Y` offset is limited and can’t go down below -1.

2. Then I tried to add built-in `Shadow` component but it did nothing.

Is there any way I can achieve this? I don’t want to use 2 TextMeshPros. I haven’t tried to achieve this in code because I am a super beginner in unity and open to any guidance on that.

Thanks

## gamma function – Simplifying to a expression with a double factorial

I’m currently studying Beta and Gamma functions and there is problem I’m struggling with: I have to write the solution of the following integral in form of a double factorial:
$$int_{0}^{pi/2}cos^n(theta) dtheta$$
After doing a substituion and integrating I got:
$$int_{0}^{pi/2}cos^n(theta) dtheta=frac{1}{2}B(frac{n+1}{2},frac{1}{2})=frac{1}{2}frac{Gamma(frac{n+1}{2})Gamma(frac{1}{2})}{Gamma(frac{n}{2}+1)}=$$
$$frac{sqrt{pi}}{2}frac{(n+2)}{(n+1)}frac{(frac{n+1}{2})!}{(frac{n}{2}+1)!}$$

We never dealt with a double factorial in our class and I don’t know why the solution has to be in this form but I would be really glad if someone could help me out symplifying the solution.

Also any hints on how to transform this to a double factorial would be appreciated, thanks!

## Replace Double loop in C++

I have written a code in C++. Main time consuming part of my code is the following loop. I want to optimize it. Is there any way to do that?

``````for (j3=0;j3<100;j3++){
for (j4=0;j4<100;j4++){
k=k+1;
z=0;
for (i=0;i<200;i++){
c(k)(i)=some function(i,j3,j4);
if(c(k)(i)>90){
u=(c(k)(i)-90);
z=z+u*u;
continue;
}
else if(c(k)(i)<80){
u=(80-c(k)(i));
z=z+u*u;
}
}
``````

## focus – Would a screw in 2x converter double the minimum focusing distance?

I want to shoot some very zoomed in shots, my current lens has a 28cm minimum focusing distance. I want to shoot from 35-40cm away but more zoomed in. Sort of macro, but from a distance.

If I bought a screw in adapter that screws in the end of the lens where a filter would go, does the minimum focusing distance change? Essentially, if I get a 2x adapter, will I need to be twice as far away to get a focussed image?

And then I need a spacer ring at the lens end to get closer to my original minimum focusing distance?

But then lose the auto-focus and image stabilisation.