Latest comments:

2023-12-12 20:14
>>You can also have the certbot application itself delete those 0001 certificates, including >>all relevant directories, like this:

>>certbot delete --cert-name example.com-0001

>>This is faster and feels safer to me than manually deleting directories managed by certbot.

T H I S. Thanks alot kind sir.
2023-11-18 17:49
@Anonymous I can confirm that it works. I use it on my own Postfix server, and have successfully blocked numerous of spammers by using this method. However, you may need to enable the pcre extension and use regular expressions to block certain things. The article is now updated to better reflect this.
2023-09-20 08:09
I have this in my .htaccess to block countries

MaxMindDBEnable On
MaxMindDBFile DB /usr/local/share/GeoIP/GeoIP2-Country.mmdb
MaxMindDBEnv MM_COUNTRY_CODE DB/country/iso_code

SetEnvIf MM_COUNTRY_CODE ^(RU|DE|FR) BlockCountry
Deny from env=BlockCountry

That works well......

But how to allow only one country ?

Tried
Allow from eny=BlockCountry
but nogo yet....

Chrs..
Michael Petrovich: Nested Functions in PHP
2023-06-02 02:57
Within a function, you can define a variable to be a function. Variables are local.

function MyFunction($y)
{
$mysubfunction = function($x)
{
return $x + 10;
};

$y = $mysubfunction($y);
echo $y;
}

MyFunction(12);
2023-04-15 17:23
I have a GUI application that needs to handle more advanced events from the keyboard, so using <linux/input.h> is best, but this requires root access, on cases like this what is the recommended approach? the GUI app is continuously listening to the keyboard events, so it's not a one-time operation like a file edit, how can this be approached?
2023-03-03 17:58
Thanks a lot! But one question - how to compile administration-js on production? When I make changes on production in this file - this error message appears again.
For developer-version it works after ./psh.phar administration:build but production-version doesn't have psh.phar.
2023-02-20 13:50
I tried ccd2iso on a bin/cue set and it created a 49MB iso file and 22 .cdr files which I am assuming are supposed to be tracks?

I must be missing data somewhere...
2022-12-27 12:32
Thanks Jacob. I bought a Rapoo mouse MT750s and noticed the scroll is unreliable. First I messed a lot with the mouse settings. No change.
I noticed it does the same on an Android tablet (I bought this model because it offers USB + BT connectivity) so clearly not software related.
I wanted to return it as it's in warranty but 1. somehow I managed to lose the box and the warranty papers 2. knowing the store policies, their answer after 2 weeks would have been "look, it works, what do you want" in a polite matter.
I used your method. It worked! trial and error though and it's not 100% perfect but I don't want to try today anymore. For the moment sometimes the middle click is not registered and the wheel gets stuck. Need to find the correct size for the paper. It has 6 screws, 4 of them under the mouse feet - that do not glue back properly after removing/reattaching.
Bad product for it's price (45 dollars). I wanted another mouse with an internal battery and the BT + USB connection plus the horizontal wheel were tempting. I will avoid this manufacturer for the future.
2022-11-24 01:50
Well, it's kinda make sense. As far as I know on a hardware level there is no balance, but separate volumes for left and right channels. So to change volume you need appropriately change volume of both channels.

This is speculation (I have no experience in sound drivers whatsoever), but maybe some interrupts are missed or intentionally skipped from one channel if CPU is under load or something like that.

Back in the day there were similar reports describing problem with Windows 7 (https://www.sevenforums.com/sound-audio/356773-windows-system-volume-only-controls-left-channel.html). Only left channel was changing when changing volume with volume up/down buttons.
2022-11-05 19:22
Thank you for writing this and thank you to Martin for commenting where the change needed to be if using Lets Encrypt (which I am). I have been working relentlessly on this for hours, and, once I came across this post, problem solved!
Thanks again!
  1. Drop in traffic doing recent helpful content updates; time will tell what will happen this time.
    Released: 2024-03-18 11:55
  2. Let us investigate what is up with those mass spammed *-k.html backlinks that many of us are seeing in our link reports.
    Released: 2024-03-17 16:40
  3. How to obtain the currently selected API language from Shopware vue components.
    Released: 2024-03-16 12:53
  4. Warriorplus affiliate links seem to be recklessly spammed to personal websites and blogs.
    Released: 2024-03-16 10:09
  5. How to access file system paths from storefront twig files in Shopware.
    Released: 2024-03-12 11:58
  6. How to get or change the currently selected sales channel in an Shopware sw-sales-channel-switch component.
    Released: 2024-02-28 17:51
  7. In this tutorial you will learn how to work with Shopware entities in a generic way from PHP, without having to specifically inject the repository in your services.xml file.
    Released: 2024-02-16 15:21
  8. About that truevaule.xyz spam posted to HTML forms on various websites.
    Released: 2024-02-11 17:49
  9. The could not reset changes error might indicate a problem with file permissions, and you may have to fix the permissions and re-install the package via composer to fix it.
    Released: 2023-12-30 16:36
  10. How to access standard php $_GET parameters from the Shopware storefront .twig files. E.g. The URL query string parameters.
    Released: 2023-11-20 23:03
  11. The advance of AI is probably not going to end Blogging, but it will present challenges and force bloggers to rethink their online strategy, moving away from existing spammy SEO practices.
    Released: 2023-11-18 11:25
  12. Sometimes we may to manually clear cached Shopware files to fix namespace issues.
    Released: 2023-11-15 00:40

Currently Popular

Stand With Ukraine, banner

Russia's murderous attacks in Ukraine has shocked and outraged the world.

We know millions are now refugees, while thousands has been killed as a result of Russia's evil actions.

For ways to support ukraine, see here:

About Beamtic

Beamtic is a website dedicated to technical tutorials and articles on web development. The site is currently hosting articles on a variety of subjects, with a particular focus on technologies such as PHP, HTML, CSS, and JavaScript.

Every tutorial is actively maintained, so feel free to leave a comment if you find something that can be improved.