Given an array arr[] consisting of N integers, the task is to find the maximum element with the minimum frequency. Examples: Input: arr[] = {2,… Read More The post Find maximum element among the elements with minimum frequency in given Array appeared first on GeeksforGeeks.
Monthly Archives: August 2021
Given a positive integer N, the task is to check whether all the digits of the given integer N are the same or not. If… Read More The post Check if all the digits of the given number are same appeared first on GeeksforGeeks.
I have a problem with dnsmasq on Arch Linux. I’ve started a DHCP server using dnsmasq using this configuration: listen-address=::1,127.0.0.1,10.30.0.1 dhcp-range=10.30.0.2,10.30.0.255,12h The DHCP server works. It assigns IP addresses in the specified range to hosts, but for some reason it assigns the same IP address for all hosts. I also […]
It’s like putting a needle through a hole inside another needle. 2 Wireguard tunnels, pc’s tunnel goes inside the router’s, so I would think it should have a smaller MTU set? However, I don’t understand how I can ping with up to 1472 MTU without errors. They say 1420 is […]
It seems kinda like bug, let me explain. I occasionally use search feature and don’t like search bar, so I got used to Win+S hotkey combination. Normally, it would open Search box like small window on top of the taskbar, much like if you press Win button (opens Start menu) […]
I have a NGINX listening on port 441 and SSLH listening to ports: 441(https), 442(ssh) and finally STUNNEL listening on port 443 forwarding to SSLH(port 2243). SSLH config: DAEMON_OPTS="--user sslh --listen 127.0.0.1:2243 --ssh 127.0.0.1:442 --ssl 127.0.0.1:441 --pidfile /var/run/sslh/sslh.pid" STUNNEL config: pid = /var/run/stunnel.pid cert = /etc/letsencrypt/live/f1.example.com/fullchain.pem key = /etc/letsencrypt/live/f1.example.com/privkey.pem [sslh] […]
When I lose internet connectivity at home, and the Windows 10 NCSI probe fails, local connections are being interrupted as well. It’s not DHCP-related, as all machines involved on the LAN have static IP addresses, and I don’t recall having this problem with earlier versions of Windows. Short of disabling […]
SEO is an essential piece of the puzzle that makes up every website. But like many pieces, it can be difficult to keep track of and manage. Luckily, there are some tools that can make this process a breeze. Let’s take a look at ten free extensions that will make […]
I’m trying to set the height and width of the gallery thumbnails based on whether or not a CSS class is present on the body. My current implementation looks like this: require(['jquery', 'mage/gallery/gallery'], function($, gallery) { if ($("body").hasClass("puma")) { $('[data-gallery-role=gallery-placeholder]').on('gallery:loaded', function () { jQuery('[data-gallery-role=gallery-placeholder').data('gallery').fotorama.setOptions({thumbheight: 88, thumbwidth: 110}); }); } }); […]