– How to fix Photos error while trying to open iPhoto library from external hard drive “Photos was unable to open the library” error 4302

Running Catalina 10.15.7 (19H524)

The iPhoto Library has been stored on an external hard drive. Tried opening it various times. Restarted the computer. Remounted the hard drive.

Any idea how to get it to open?

Found this thread googling – – but don’t understand the proposed solution.

enter image description here

grub2 – Unable to boot into Windows after installing Ubuntu, how to fix?

GRUB menu does not appear

If the computer boots into Ubuntu automatically without showing the GRUB menu at all, sometimes you can press the manufacturer’s BIOS/UEFI key at boot time and while in UEFI or BIOS mode from the firmware menus select the operating system you need. Common keys used are Esc, Delete, F1, F2, F10, F11, or F12. On tablets, common buttons are Volume up or Volume down. During startup, there’s often a screen that mentions the key. If there’s not one, or if the screen goes by too fast to see it, check your manufacturer’s website.*

If this doesn’t work when the GRUB menu does not appear at boot time, immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up a GNU GRUB menu screen. With UEFI press (perhaps several times) the Esc key to get to the GNU GRUB menu screen. Sometimes the manufacturer’s splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GNU GRUB menu screen, and then pressing Shift is unnecessary.

If this doesn’t work when the GRUB menu does not appear at boot time, then try the answers to:

Boot Repair

From Ubuntu open the terminal and type:

sudo add-apt-repository ppa:yannubuntu/boot-repair  
sudo apt update  
sudo apt install -y boot-repair
sudo boot-repair  

Open the Boot Repair application and select Advanced Options -> Other Options tab -> Repair Windows boot files. The boot flag should be placed on the same partition on which Ubuntu is installed. The partition on which Ubuntu is installed can be identified from the Disks application which is built-in in Ubuntu.

enter image description here

If you’re unable to select the Repair Windows boot files option because it’s grayed out, refer to this answer.


Rescatux is a free bootable live CD/USB that can repair GRUB and the Windows bootloader. Rescatux has a graphical interface with a menu of operating system rescue tasks. If your hard disk has the MBR partitioning format, you can select the Restore Windows MBR (BETA) option to repair the Windows bootloader. If your computer has UEFI firmware, you can select among the UEFI boot options.

Boot options:

  • (>=0.41 beta 1) Update UEFI order
  • (>=0.41 beta 1) Create a new UEFI Boot entry
  • (>=0.41 beta 1) UEFI Partition Status
  • (>=0.41 beta 1) Fake Microsoft Windows UEFI
  • (>=0.41 beta 1) Hide Microsoft Windows UEFI
  • (>=0.41 beta 1) Reinstall Microsoft Windows EFI
  • (>=0.41 beta 1) Check UEFI Boot

GRUB options:

  • (>=0.40 beta 11) Easy GNU/Linux Boot Fix
  • Restore GRUB and GRUB2
  • (>=0.31 beta 4) Update any GRUB2 menu
  • Update Debian/Ubuntu GRUB menus

Windows options:

  • Restore Windows MBR (BETA)
  • Clear Windows passwords
  • (>=0.31 beta 4) Promote a Windows user to Administrator role
  • (>=0.41 beta 1) Reinstall Microsoft Windows EFI
  • (>=0.31 beta 4) Unlock Windows user

Password options:

  • Change GNU/Linux Password
  • Regenerate sudoers file
  • Clear Windows passwords

Expert tools:

  • Boot-Repair
  • GParted
  • OS-Uninstaller
  • Clean-Ubiquity
  • PhotoRec
  • TestDisk

enter image description here
Rescapp is a nice wizard that will guide you through your rescue tasks.

How to make a Rescatux live USB from Ubuntu

  1. Insert a USB flash drive and check if the boot flag has been enabled on the flash drive using the GParted application. Unmount the USB flash drive. Open GParted and select the USB flash drive from the menu list of drives. From the GParted menu select: Partition -> Manage Flags -> check boot.

  2. It is very important to verify that the device that you are installing the Rescatux live USB to is indeed your flash drive, so that you don’t overwrite any of your system or personal files which may make your operating system unbootable. In Ubuntu you can find the device name of the flash drive using the Disks application.

  3. Unmount the USB partition device. Let’s say the USB partition device is /dev/sdc1

     sudo umount /dev/sdc1 # replace sdc1 with the partition name of your USB drive
  4. Change directories using cd to the path of the directory where the Rescatux iso file that you downloaded is located.

  5. Write the Rescatux iso file to the USB flash drive. In the following command replace rescatux_0.xxxx.iso with the name of the Rescatux iso file you downloaded.

     sudo dd if=rescatux_0.xxxx.iso of=/dev/sdc # this command also works in Windows Subsystem for Linux 2 
     sudo sync  

I have also been able to make a Rescatux live USB using the built-in Startup Disk Creator app.

Windows 10 factory reset repair of Windows bootloader


Open Settings

Click the Start Menu and select the gear icon in the lower left to open up the Settings window. You can also select the Settings app from the app list. Under Settings, click Update & Security to continue.

Choose Recovery Options

Click the Recovery tab and select Get started under Reset this PC.

Save or Remove Files

At this point, you have two options. You can either choose to keep your personal files and only remove downloaded apps and settings, or you can wipe everything and start from scratch. Each choice will also give you an additional setting to change.

If you choose Keep my files, apps and settings will default to what they were when the PC was brand new. This setting can be turned off by clicking the Change settings link and switching it off. If you choose Remove everything, there’s also a way to remove your personal files while saving apps and settings. Click the Change settings link and toggle the Data erasure option to on.

Reset Your Computer

Once you decide what should be removed from the computer, hit Next and Windows will tell you what will be deleted before you make a final decision. If you selected Keep my files, you can look at a list of apps that will be removed with the reset.

Finally, click Reset to actually commit. Your computer will restart, and after several minutes, it will boot back up again. When you return to Windows 10, you’ll see that whatever you selected to be removed has been wiped from the machine. If you backed up your files, they can now be restored to the machine.

magento2 – How to fix “Failed to execute ‘getRangeAt’ on ‘Selection’: 0 is not a valid index” error of Viewer PDF in magento 2

I want to add in magento a pdf viewer link but when i edit it in viewer.js file line 4023

pdfjsLib = require("../build/pdf.js");
let pdfjsLib;

if (typeof window !== "undefined" && window("pdfjs-dist/build/pdf")) {
  pdfjsLib = window("pdfjs-dist/build/pdf");
} else {
  pdfjsLib = require(("pdfjs-dist/build/pdf"));

line 3895

value: "../build/pdf.worker.js",
value: "pdfjs-dist/build/pdf.worker",

line 252

debuggerScriptPath: "./debugger.js"
 debuggerScriptPath: "pdfjs-dist/web/debugger"

Then I reloaded the page and clicked on openfile, the error appeared

error when reloading the existing page

app.js:183 Uncaught TypeError: (0 , _pdfjsLib.createPromiseCapability) is not a function
    at Object.<anonymous> (app.js:183)
    at __webpack_require__ (bootstrap:19)
    at Object.<anonymous> (viewer.js:40)
    at __webpack_require__ (bootstrap:19)
    at bootstrap:83
    at bootstrap:83

This error when clicking openfile

Uncaught DOMException: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index.
    at Content.isSelection (chrome-extension://hiidjliailpkjeigakikbfedlfijngih/js/content.js:464:53)
    at Content.handleSelection (chrome-extension://hiidjliailpkjeigakikbfedlfijngih/js/content.js:446:19)

enter image description here

link github my full is doing

Someone please help me. thank you

windows – SATA to USB adapter disconnects, reconnects, disconnects, reconnects, etc. when plugged in… how do I fix it?

I’ve got a Weme SATA/PATA to USB adapter and it works fine on every computer (tried 3 or 4) except my laptop. On my laptop it just connects, disconnects (USB bing-bong, bing-bong) ad infinitum. I actually have two identical adapters, and both behave the same way in this computer. Also tried various drives and they all behave the same way. Also, I recently (two days ago) migrated to a new laptop using the same disk image, and discovered the problem was there on the original — so it’s happening on two different laptops which run the same Windows install. I’ve plugged in external USB devices (MyBook and Passport) and those work fine. I even plugged a PATA drive into this same adapter and that also works on my laptop (I noticed in device manager different drivers get loaded depending on what drive you connect through the same adapter). All of the above seems to narrow it down, the adapter hardware didn’t become defective, it’s not the hard drive, it’s not the laptop’s hardware, which seems to pretty much leave something about the Windows 10 install. But what?

I looked at the filter drivers, didn’t see anything amiss there. I re-installed any third-party software I could think of that might get triggered by a USB disk being added. I did the trick where you uninstall each USB device / hub / root device / etc. listed in device manager, and nothing resolved the issue. I did sfc /verifyonly and no problems. And I just upgraded to 20H2 hoping that a major update might fix it. No change.

I looked through the Windows event logs and the only entries that relate seem to be in the System log, which has Unexpected failure. Error code: 1B1@01010013 from the VDS Basic Provider and C000000E020A0007 from Virtual Disk Service, but find little about those errors, and they could just be errors in response to the sudden disconnects rather than the cause of the disconnects.

Anyone have any other ideas? Everything otherwise with this laptop works fine. I’m out of ideas of things to try. Thanks for any help.

diagnostic – Dell T3500 light 2 ON all the time meaning & how to fix it?

Looking at the manual for light diagnosis (…), it says “PCI device configuration activity is in progress or PCI device failure was detected.” I opened and check (volt meter) the PCI cables one by one and it seems all of the give the right amount of voltage.

If I keep the PC unplugged and plug back, then the 2nd light stays ON. I am able to turn ON the Windows. But, after shutting down once, the Windows won’t start (light 1 & 3 blinking a few times) until kept unplugged for sometime. I ran the system diagnostic (BIOS) and it didn’t find any issues! I have also checked the battery, drained the power by holding the power button.

Once, it gave me the message that the “previous processor thermal failure” & “system battery voltage is low”. This message only appears once.

Strange, if the processor is failed why it turns ON sometimes. The battery is replaced, so why low.

terminal – My wireguard install has broken and I’m unable to fix it

Since I’ve installed Wireguard on my MacBook Air running MacOS Sierra it hasn’t given me any major problems until now. I’ve been using wgcf to generate the wireguard config file, but I don’t think that has been the cause of my issues with wireguard. So, in the last day or two when I run `wg-quick up wireguard-profile.conf it prints three lines and then hangs.

[#] wireguard-go utun
[+] Interface for wgcf-profile is utun1
[#] wg setconf utun1 /dev/fd/63

I’ve been trying to fix this in all different kinds of ways from using brew to uninstall and reinstall wireguard-tools and wireguard-go. I manually downloaded the latest version of go and wireguard-go and it still hangs like it did before. At this point I don’t know what to do.

printing – How can I fix ‘”HPDM.framework” will damage your computer’ on macOS Big Sur?

Since updating to macOS Big Sur, I can no longer print to my HP DeskJet 1010 printer. Each time that I start a print job, I get a dialog with error message that says ‘”HPDM.framework” will damage your computer’. There is no way to bypass the warning in ‘System Preferences’ -> ‘Security & Privacy’ as there might be with applications that have expired or invalid developer certificates.

N.B. I did find a workaround that involved removing the printer from ‘System Preferences’ -> ‘Printers & Scanners’ then adding it again with generic print drivers, but this blocked me from using some of the features I typically use, such as printing with just the black cartridge.

Is there any way to fix a butchered move?

Hey guys I’m a thrown into the deep end SharePoint Admin for a small School. Principal wanted to reorganize the data and wanted to move a folder (7GB) from a SharePoint site to a Teams (which I guess is just another SharePoint site in the end but whatever). For this he used the “move to” option you get when displaying the folder int he webbrowser. Well as you might have expected the move was butchered. Some folder moved completely others are still in the old location. I can’t just move them again as you would be able to do in the Windows Explorer where you could just say merge the folders with the same name. It just offers me to rename the folder and keep both wich is not very helpful. A different option for windows would be X-copy in the comandline but that’s not an option either.

So I called up MS support and the soltion they came up with was to restore the old directory to before the move and then just start the move all over again.

Is this really the only way? Is there really no other way to fix such a seemingly simple problem? (Except for syncing everything and then using the windows tools bc I can just see that fucking up in many different ways)

graphics3d – Can’t fix the arrowhead in a BezierCurve

We can use Arrowheads[{{.02, 1}}] to set the size .02 and the relatively position 1.

t2 = Table[
  RotationMatrix[π/2, {1, 0, 0}].{x, 0.2 + Sin[32 x]/15, 
    0.6}, {x, -0.47, 0.07, 1/200}]; t2r = 
 Table[RotationMatrix[π/2.5, {0, 0, 1}].t2[[i]], {i, 1, 
   Length[t2]}]; Graphics3D[{Thickness[0.0035], Orange, 
  Arrowheads[{{.02, 1}}], Arrow[BezierCurve[t2r]]}, ImageSize -> 600, 
 ViewPoint -> {2.8, 1.1, 1.3}]

enter image description here