Removing macOS boot-args without booting when firmware password enabled

After setting a bad combination of gzalloc boot-args fields, the booting of every kernel i’ve tried fails (usb bootable, recovery, internet recovery, safe, etc…). The firmware password protection disables the boot keys usually used to reset PRAM so there is no trivial way to remove these boot preventing boot-args. How could i reset the firmware pw or the PRAM without going on a trip to the apple store?

I have a 2020 16 inch MBP with latest Big Sur

jquery – Removing Woocommerce product qty select default value

I’m trying to remove the 1 from value placeholder in woocommerce product qty select.
Empty value was working fine just a few hours ago and now it just stopped, title and placeholder work fine, but now value just wont be empty.
How could I fix this? Is there any other way to remove it?

jQuery(function ($){
        if ($("body").hasClass("product-template-default")) {
            $("input.qty").attr('title', 'Kiekis');
            $('input.qty').attr('value','');
            $('input.qty').attr('placeholder','Kiekis');
          }
})

magento2 – Duplicate url issue when removing products from category in magento 2.3.3

When i try to remove products from category https://prnt.sc/vl7rt3, i get duplicate url error.
https://prnt.sc/vkscz9.

I know how to resolve it. but need to understand when a product is removed from a subcategory – how is it generating a duplicate url?

Can any one please explain me this?

Removing duplicated headers in panda (Python)

Based on below code , I am merging Science and Math based on subtract.

for f in Science('Name'):
     Math=(df(df('Name').str.startswith(f)))
     Math('Sub') = Math('Name').str.extract(r'(w*)', expand=False)
     Field1= pd.merge(Science, Math, left_on='Sub', right_on='Sub')
     
     print(Field1)

the result of above code is as below , however I want to remove repeated headers which are Name-x , Name-y , Sub and Name. I share my expected result as below, also I want to store it in a csv file.

    Name_x      Name_y    Sub            Name
0  Numbers  Math-Numbers  Math         Math-01
1  Numbers  Math-Numbers  Math         Math-01
2  Numbers  Math-Numbers  Math         Math-01

    Name_x      Name_y    Sub           Name
0  Numbers  Math-Numbers  Math         Math-02
1  Numbers  Math-Numbers  Math         Math-02
2  Numbers  Math-Numbers  Math         Math-02

    Name_x      Name_y    Sub           Name
0  Numbers  Math-Numbers  Math         Math-03
1  Numbers  Math-Numbers  Math         Math-03
2  Numbers  Math-Numbers  Math         Math-03

Expected CSV file:

    Name_x      Name_y    Sub           Name
0  Numbers  Math-Numbers  Math         Math-01
1  Numbers  Math-Numbers  Math         Math-01
2  Numbers  Math-Numbers  Math         Math-01
0  Numbers  Math-Numbers  Math         Math-02
1  Numbers  Math-Numbers  Math         Math-02
2  Numbers  Math-Numbers  Math         Math-02
0  Numbers  Math-Numbers  Math         Math-03
1  Numbers  Math-Numbers  Math         Math-03
2  Numbers  Math-Numbers  Math         Math-03

How to stop WooCommerce from removing link functionality in uploaded PDF products

my site uses WooCommerce to sell downloadable PDFs which should have clickable links, but when these PDFs are downloaded after purchase, the links are no longer clickable.
I’ve searched everywhere I can think to try to find a resolution to the problem. Has anyone encountered this before?

I’ve tried downloading with multiple browsers and opening the files in Acrobat and Preview, to no avail, so I think it looks like the links are being removed on upload to the site. I use an image optimiser (Smush) to process images on upload to the site, but this doesn’t affect PDFs.

I’m a little perplexed, any insight would be much appreciated.

iphone – Removing the “unread messages” indicator when messages were deleted by bug

So, I recently experienced what seems to be quite an old bug in the default Messages app for the iPhone: while I was typing a text message, my phone’s battery died, and when the phone was powered back on, my text message history seemed to have been entirely deleted. However, there’s still the little number in a red bubble on the app’s icon indicating unread messages, which I don’t seem to be able to remove since I can’t read the deleted messages.

Is there any way to recover the messages so that I can read them (other than using a cloud backup I haven’t made), or a way to reset the unread messages indicator to display the correct value for the messages it has access to?

functions – How to change behavior of Echo or turn it off without removing it from code?

I wish to use Echo for output of intermediate results if an OptionValue I call verbose->True and neutralize it if verbose->False. I think this is useful when you need to know if some resources (packages. etc) were successfully loaded. I am thinking that it might work one of two ways…

  1. Spot lines of code with Echo but if verbose->False turn off Echo inside function then turn Echo back on when leaving function.
  2. Spot lines of code with a generic fn variable. When verbose->True activate it with fn=Echo but in its off state it should do something completely inert fn=do-something-that-does-not-effect-expression.

Please help me figure this out. Here is where I would first use it. Notice the If statements that really do nothing more than repeat an Echo wrapped expression. I wish to eliminate the If statements.

$resources=windows-path-to-alternate-directory-for-packages
packs={"package1`","package2`",...}
Options(loadPacks) = {path -> $resources, verbose -> True};
loadPacks(packs_, OptionsPattern()) := Block({pathslist},
   addpath() := Once(PrependTo($Path, OptionValue(path)));
   If(OptionValue(verbose) === True, Echo(addpath()), addpath());
   Map(Needs(#) &, packs);
   If(OptionValue(verbose) === True, 
    Echo(Column(contextSymbols(packs))), Return());
   );
contextSymbols(names__) := 
  Block({list}, list = If(ListQ(names), names, {names}); 
   Map(Names(# <> "*") &, list));

wireless – ‘Removing’ telecom provider from my phone

Baseband Processors have very weak overall security(closed-source firmware, no audits etc.)

It also gives the telecom operator very high privileges on a mobile device.

So, now I use 2 phones. First one being a ‘relay’ which has a SIM card, and connects to the internet normally. I turn this phone into a Wi-Fi hotspot and then connect the second phone to the Wi-Fi network of the first phone.

And this second phone is actually the personal device which I will use for open-source E2E encrypted communications, web-surfing and other normal mobile phone usage.

This second phone is not going to have a SIM card, have a custom ROM, and all other radio-communications(except for Wi-Fi) switched off always.

Will this method strip the telecom provider of the first phone(which was my main SIM card) off of any ‘super-powers’ they have on my phone(the second phone) through the baseband processor?

Note:

  1. I know the risk of an unlocked bootloader, so please do not mention that.
  2. I cannot trust my telecom provider at all.
  3. I change the first phone’s hotspot’s SSID and Password every 24 hours.