Wednesday, February 23, 2022

Recent Questions - Ask Different

Recent Questions - Ask Different


How can I find out when a file had been moved to trash?

Posted: 23 Feb 2022 09:35 AM PST

I have my Mac configured to automatically delete objects 30 days after they have been moved to Trash (at Finder > Preferences > Advanced > Remove items from the Trash after 30 days).

However, I have files in Trash of which I think that they have been moved there more than 30 days ago. Now I'm wondering how macOS keeps track of when an item has been moved to Trash, and how I can check that?

Is there a way to force preview to open files in the center of the screen

Posted: 23 Feb 2022 09:15 AM PST

Whenever I open a pdf file with preview the window goes automatically to the most left side of the screen, is there a way to make it open files in the center? In case it's relevant I use an external monitor.

Is not possible create directories and files at /Volumes with permissions granted as Linux

Posted: 23 Feb 2022 07:30 AM PST

In Linux Ubuntu for example within the /mnt directory I created two directories - for example: alpha and beta - it to be used to mount some remote directories later. For the same machine exists two users - for example: manuel and leonardo - where both have in common a new secondary group created and assigned to them named developer - it through the gpasswd command

To these directories were applied:

sudo chown -R root      <directory> # redundant  sudo chgrp -R developer <directory>   sudo chmod -R 770       <directory>  

If in the /mnt directory is executed ls -ls appears something like:

/mnt    drwxrwx--- root developer alpha   drwxrwx--- root developer beta  

Therefore because both users have the same developer secondary group and it is applied how the primary group for the two directories and the g has rwx they are able to use them in peace to accomplish any task as create either a directory or file.

With practically applying the same commands mentioned for Linux to MacOS - El Capitan - but with two differences:

  • The users and group settings (creation and secondary group assignation) were done through System Preferences. About the secondary group assignation the gpasswd command does not exist on MacOS
  • is used the /Volumes directory (it because/mnt does not exist on MacOS)

Through the ls -ls command appears:

/Volumes    drwxrwx--- root developer alpha   drwxrwx--- root developer beta  

The problem is when I try to execute either mkdir zulu or touch delta.txt through any user always appears:

mkdir: zulu: Permission denied  touch: delta.txt: Permission denied  

If I execute for each one id manuel id leonardo I can see both have the developer secondary group assigned (same as Ubuntu)

Note/Observation: I know that the purpose to either /mnt and /volumes is to mount a directory. I am creating and deleting either a directory or file, mostly for the former just to test the users permissions for the following goal to accomplish.

Goal: I need that permission access because though Bash Shell within the /mnt (now for /Volumes) is created a nested directories structure - custom hierarchy - to then apply the mount process later. So in Ubuntu is possible but in mac not

Use iCloud Drive as a backup of finished work

Posted: 23 Feb 2022 09:14 AM PST

I have hundreds, if not thousands of completed projects on my Mac. I backup to an external hard-drive, using Time Machine. And once a month to a different external hard-drive, again using Time Machine, which I store off-site.

I would also like to use iCloud Drive to backup my completed projects to.

I presume all I would need to do is copy over the complete projects to the iCloud Drive folder? The projects will then be on my Macs hard drive AND a copy on iCloud?

Is this correct or am I missing something?

I don't need to synch the files with another computer or device. I don't need to backup documents I'm working on. All I want is to backup finished work to the cloud.

MacBook Pro (2016) black screen but still working

Posted: 23 Feb 2022 06:59 AM PST

I've a late 2016 MacBook Pro (4 Thunderbolt ports and Touch Bar), with Monterey 12.2 installed on it. The MacBook was perfectly working when the other day the screen suddenly went black while browsing on internet. In the last months I noticed that the brightness was loosing power, but now I can't see anything, although the Mac is working (for example once turned on the caps lock works).

I tried all the tests about Safe Boot and NVRAM reset, but nothing. The issue is similar to the one in this question:

Black screen on MacBook Pro login

At the support they told me it can be the GPU and they asked for 600 $ to repair it!

Did it happen to someone else who found a cheaper way to solve this? For example, I've seen some videos that show how to open the Mac and try to fix this issue:

https://www.youtube.com/watch?v=SKejJwQ3MGU

Thank you very much in advance for your help! It's really appreciated.

Automatically start screen recording on iPhone 13

Posted: 23 Feb 2022 06:48 AM PST

The native iPhone 13 screen record function always counts down 3,2,1 before it starts, and requires manual activation.

Is there a way to auto start the screen record whenever the phone is unlocked and in use? Perhaps, upon phone unlock, the user can be given dialog box that can ask the user if he wants to start the screen record, and if he chooses yes, the screen record starts immediately and not after counting 3,2,1.

Daemon Starting as Root

Posted: 23 Feb 2022 06:42 AM PST

I created a plist for a service I'm trying to run. In it, I put:

<key>UserName</key>  <string>_mydaemon</string>  

For some reason, the daemon starts as root rather than as _mydaemon. Any ideas where to look to figure out what's going on?

@ Char is on the Wrong Position in German Layout

Posted: 23 Feb 2022 09:25 AM PST

I've a strange Problem with my new Mac. During the Install i've used a Windows Keyboard, after the Install Process was completed i've switched my Keyboard to Apple Magic Keyboard.

But now i can't use the original Keymap for the Keyboard. At Example if i press alt+q it will draw an @ char. How can i change it back, so that the @ Char will be printed if alt+l is pressed?

The Keyboard Layout in Settings is set to German, i've also tried to change it from German to German (Default) back. But this take no effect.

Thanks for your help!

Tried to install Kali Linux and now I can't access macOS anymore

Posted: 23 Feb 2022 08:22 AM PST

It has been 3 days, I was trying to recover it but now I am out of options.

I've tried installing Kali Linux on my Mac as a dual boot with a Linux partition of 20.5 GB inside my 500GB SSD and 1GB of swap Linux but after the first boot everything vanished and a black screen with a question mark came. So I searched websites and found @klanomath's answers about fixing the partition table and I messed it up, please help.

diskutil list

terminal booted through external usb

  1. Maybe I fixed GPT row maybe as shown in pictures through @klanomath's answers.
  2. Fdisk isn't fixing up, nothing is showing up there.
  3. No core storage volume found within diskutil cs list
  4. Not able to repair disk via command, unrecognised file system.

Please help, it's the only last data I have of my life. Sorry for my English.

Missing Downloads folder icon in macOS Dock

Posted: 23 Feb 2022 06:43 AM PST

I have changed my account and Home folder name. Now the Downloads folder in the macOS Dock is not showing the folder icon, if I select display as stack. A question mark image is shown instead:

enter image description here

How to make the downloads icon re-appear?

By the way, if I change from display as stack to display as folder the folder icon appears back:

enter image description here

Use fn key as globe �� key on first-generation Magic Keyboard

Posted: 23 Feb 2022 04:47 AM PST

macOS lets you assign an action to the 🌐 (globe) key:

This setting works on a modern keyboard with combined 🌐 fn key:

globe/fn key

But my first-generation Magic Keyboard doesn't have the globe symbol on its fn key:

old fn key

This seems to be more than just a visual difference. On my Magic Keyboard, it only works as a plain fn key, and the action assigned to the 🌐 key ("Show Emoji & Symbols") doesn't work.

Is there a way to have the first-generation Magic Keyboard's fn key act like a modern 🌐 fn key?

Disable certificate pinning on MacOS

Posted: 23 Feb 2022 04:23 AM PST

I'm behind a proxy and some websites don't work, in particular ones related to MacOS update, app store etc. I imported the proxy certificate to the MacOS keychain. When I go to https://apps.apple.com with Safari I can't proceed to the website even if I add the certificate manually to the trust store. The error during visiting the site is:

"certificates do not meet pinning requirements".

The same site works when using Chrome which also uses KeyChain. So Safari and other native MacOS apps still seem to do something different and sometimes ignore certificates for proxies. Is there some way to disable this pinning?

Instagram desktop app for mac? [closed]

Posted: 23 Feb 2022 04:09 AM PST

Are there any Mac apps out there that will give me all the functionality of using IG on a smartphone?

I know there are different ways of using IG through a desktop browser but it still doesn't give the same functionality as using the mobile app (e.g. editing posts, posting stories etc).

I've looked on the Mac app store but there appears to be nothing

Some icons changed after changing username and home folder name

Posted: 23 Feb 2022 03:35 AM PST

I have changed my username and home folder name in macOS Monterey and now the sidebar icons were just generic.

I unchecked and checked back all of them in Finder's preferences and all changed back except Desktop icon. I tried to remove it from the sidebar and then drag it there from my home folder but it still shows like this:

enter image description here

If I select get info I see the correct icon though:

enter image description here

Any idea how can I get the correct icon back in sidebar?

Did the Apple Newton employ machine learning for handwriting recognition?

Posted: 23 Feb 2022 02:55 AM PST

We know that the Apple Newton and the Messagepad would recognize handwriting on the digital screen with the stylus based on the user training it to their style.

My question is: Did the Apple Newton employ machine learning for handwriting recognition?

In iTerm how can I close a shell session when the running command finishes?

Posted: 23 Feb 2022 06:04 AM PST

I open some iTerm2 sessions via ttab. I start these session for textual UI commands like top or commands which might run for a long time like cp -r large-dir backup-location.

After the command has finshed the iTerm session stays open with the (bash) shell prompt. I have to close it manually via Ctrl-D.

How can I tell iTerm to close the session automatically when the shell is back at its prompt?


I tried using a special profile for this (because ttab can open the session in a specified iTerm profile), but I couldn't find a setting which closes the session when the shell is waiting at its prompt.

How can I restore my Finder Sidebar Icons?

Posted: 23 Feb 2022 03:36 AM PST

I had to rename my user and home folder recently, but did it according to the official guide from Apple. Initially, all icons in the sidebar of Finder appeared as a generic folder. Removing and re-adding them fixed the issue for all icons, except the Desktop icon.

enter image description here enter image description here

What I've tried/checked

  • The account name and home folder name are the same (also in cAsE)
  • The home folder is set correctly for the account
  • I've rebooted
  • I've rebooted in safe mode
  • I've cleared the PRAM

Did anyone run into the same issue yet and was able to fix it? Running macOS 12.2.1 on a 16-inch 2021 MacBook Pro.

Grub Boot Loader error when installing Kali Linux on MacBook Pro

Posted: 23 Feb 2022 09:32 AM PST

  • I am trying to install Kali Linux on an external hard drive. I downloaded the kali-linux-2022.1-live-amd64.iso file and checked with shasum -a 256 kali-linux-2022.1-live-amd64.iso. I am using a 13" 2019 MacBook Pro running on Catalina. Everything works smoothly during the installation process until I get to the Grub Boot loader Installation part.

  • I received the following errors during the installation:

"Executing 'grub-install dummy' failed. This is a fatal error."

I press continue…

"No boot loader has been installed, either because you chose not to or because your specific architecture doesn't support a boot loader yet. You will need to boot manually with the /vmlinuz kernel on partition /dev/sdd3 and root-/dev/sdd3 quiet passed as a kernel argument."

  • The installation then finishes and boots to Mac OS.

  • Does anyone have a clue what this actually means and what can I do to make it work?

  • Here is the output of diskutil list

enter image description here

For you reference:

EDIT:

  • I have tried installing rEFInd. Here is the output of ./refind-install

enter image description here

Sort 80,412 files into folders based on name begins with

Posted: 23 Feb 2022 06:26 AM PST

Situation:

  • a folder with 80,412 files
  • all files named with CamelCase, some have a dash (-) separating the first word
  • files can be grouped by beginning with the same word or letters(i.e. "ClientslistRebecca..." and "Clientslist-Adam...")
  • no file name begins with a number
  • very few files begin with a unique word

I need to take the first word, find all files that begin with that word, and create a folder named with that word. Repeat for all files.

The main complication is that sometimes a name begins with multiple capitals, followed by a word that also begins with a capital (i.e. "AWDRebecca..."). Not sure how to resolve that, but I'm fine with doing some manual cleanup afterwards if I get folders with "AWDRebecca", "AWDReports", "AWDNovember", but having a folder "A" will make it harder.

MacPorts: warning and failure of port installation

Posted: 23 Feb 2022 07:35 AM PST

Trying to install via MacPorts the recent Inkscape port update to @1.1.2 failed on High Sierra. Tracing the installation with sudo port -t install inkscape results in warnings

--->  Building inkscape  Warning: The following existing file was hidden from the build system by trace mode:    /opt/local/include/boost  Warning: The following files inside the MacPorts prefix not installed by a port were accessed:    /opt/local/include/boost/algorithm/string.hpp    ...    /opt/local/include/libxml2/unicode/uversion.h  Error: Failed to build inkscape: command execution failed  

What is the meaning of these warnings and how can I get rid of?

VPN connection terminates: L2TP failed to set port-mapping for en0, errorCode: -65564

Posted: 23 Feb 2022 05:05 AM PST

The following issue surfaced last week and I am not sure anymore if this happened before or after I upgraded to Monterey.

I am using a VPN connection for work but since last week this connection only lasts for 60 to 90 seconds. In the first 60 seconds everything is working. The machine is connected and has internet. After these 60 seconds the internet connection stops working and around 30 seconds later the VPN client tells me that the VPN connection has been terminated.

Now, after some trying around it was suggested to me to try to access the internet from another connection so I switched from my home router to a mobile hot spot.

And there you go. With the mobile hot spot everything is working fine for hours.

Clearly, this makes the router the main suspect but I have been working with it for months now and since I didn't touch it, I find it hard to believe that it is the cause.

I've searched the internet for this issue but I couldn't find anything useful. Is there anything I can do? At least to get more information about where this issue truly originates from?

Logging output

I took a look at the /var/log/ppp.log file and compared both cases. The main difference, and what catches the eye, are those lines here:

Thu Jan 20 09:47:09 2022 : L2TP failed to set port-mapping for en0, errorCode: -65564  Thu Jan 20 09:47:09 2022 : L2TP port-mapping for en0 became invalid. is Connected: 1, Protocol: None, Private Port: 0, Previous publicAddress: (0), Previous publicPort: (0)  Thu Jan 20 09:47:09 2022 : L2TP clearing port-mapping for en0  

Below you can look at both entire sessions.

Working (mobile hot spot)

Thu Jan 20 14:51:30 2022 : publish_entry SCDSet() failed: Success!  Thu Jan 20 14:51:30 2022 : publish_entry SCDSet() failed: Success!  Thu Jan 20 14:51:30 2022 : l2tp_get_router_address  Thu Jan 20 14:51:30 2022 : l2tp_get_router_address 192.168.43.1 from dict 1  Thu Jan 20 14:51:30 2022 : L2TP connecting to server '85.237.31.244' (85.237.31.244)...  Thu Jan 20 14:51:30 2022 : IPSec connection started  Thu Jan 20 14:51:30 2022 : IPSec phase 1 client started  Thu Jan 20 14:51:30 2022 : IPSec phase 1 server replied  Thu Jan 20 14:51:31 2022 : IPSec phase 2 started  Thu Jan 20 14:51:31 2022 : IPSec phase 2 established  Thu Jan 20 14:51:31 2022 : IPSec connection established  Thu Jan 20 14:51:31 2022 : L2TP sent SCCRQ  Thu Jan 20 14:51:32 2022 : L2TP received SCCRP  Thu Jan 20 14:51:32 2022 : L2TP sent SCCCN  Thu Jan 20 14:51:32 2022 : L2TP sent ICRQ  Thu Jan 20 14:51:32 2022 : L2TP received ICRP  Thu Jan 20 14:51:32 2022 : L2TP sent ICCN  Thu Jan 20 14:51:32 2022 : L2TP connection established.  Thu Jan 20 14:51:32 2022 : L2TP set port-mapping for en0, interface: 6, protocol: 0, privatePort: 0  Thu Jan 20 14:51:32 2022 : using link 0  Thu Jan 20 14:51:32 2022 : Using interface ppp0  Thu Jan 20 14:51:32 2022 : Connect: ppp0 <--> socket[34:18]  Thu Jan 20 14:51:32 2022 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x57c42b33> <pcomp> <accomp>]  Thu Jan 20 14:51:32 2022 : rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth eap> <magic 0x5e3d2499>]  Thu Jan 20 14:51:32 2022 : lcp_reqci: returning CONFNAK.  Thu Jan 20 14:51:32 2022 : sent [LCP ConfNak id=0x1 <auth chap MS-v2>]  Thu Jan 20 14:51:32 2022 : rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth chap MS-v2> <magic 0x5e3d2499>]  Thu Jan 20 14:51:32 2022 : lcp_reqci: returning CONFACK.  Thu Jan 20 14:51:32 2022 : sent [LCP ConfAck id=0x2 <asyncmap 0x0> <auth chap MS-v2> <magic 0x5e3d2499>]  Thu Jan 20 14:51:35 2022 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x57c42b33> <pcomp> <accomp>]  Thu Jan 20 14:51:35 2022 : rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x57c42b33> <pcomp> <accomp>]  Thu Jan 20 14:51:35 2022 : sent [LCP EchoReq id=0x0 magic=0x57c42b33]  Thu Jan 20 14:51:35 2022 : rcvd [CHAP Challenge id=0xc2 <b59776d4e95ffd9c447b70655c5808b6>, name = "xl2tpd"]  Thu Jan 20 14:51:35 2022 : sent [CHAP Response id=0xc2 <6399983a35e92f14499ef668e18b2898000000000000000047db3fdec44452683582e60fd1d8ef17cb0308c7c24d6bff00>, name = "sfalk"]  Thu Jan 20 14:51:35 2022 : rcvd [LCP EchoRep id=0x0 magic=0x5e3d2499]  Thu Jan 20 14:51:35 2022 : rcvd [CHAP Success id=0xc2 "S=E25C4E6D7589D22C958A063AE5018D4349014605"]  Thu Jan 20 14:51:35 2022 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]  Thu Jan 20 14:51:35 2022 : sent [IPV6CP ConfReq id=0x1 <addr fe80::f218:98ff:fe5f:11f2>]  Thu Jan 20 14:51:35 2022 : rcvd [IPCP ConfReq id=0x1 <addr 10.255.255.0>]  Thu Jan 20 14:51:35 2022 : ipcp: returning Configure-ACK  Thu Jan 20 14:51:35 2022 : sent [IPCP ConfAck id=0x1 <addr 10.255.255.0>]  Thu Jan 20 14:51:36 2022 : rcvd [IPCP ConfNak id=0x1 <addr 10.10.20.8> <ms-dns1 10.10.10.1> <ms-dns3 10.10.10.1>]  Thu Jan 20 14:51:36 2022 : sent [IPCP ConfReq id=0x2 <addr 10.10.20.8> <ms-dns1 10.10.10.1> <ms-dns3 10.10.10.1>]  Thu Jan 20 14:51:36 2022 : rcvd [LCP ProtRej id=0x3 80 57 01 01 00 0e 01 0a f2 18 98 ff fe 5f 11 f2]  Thu Jan 20 14:51:36 2022 : rcvd [IPCP ConfAck id=0x2 <addr 10.10.20.8> <ms-dns1 10.10.10.1> <ms-dns3 10.10.10.1>]  Thu Jan 20 14:51:36 2022 : ipcp: up  Thu Jan 20 14:51:36 2022 : local  IP address 10.10.20.8  Thu Jan 20 14:51:36 2022 : remote IP address 10.255.255.0  Thu Jan 20 14:51:36 2022 : primary   DNS address 10.10.10.1  Thu Jan 20 14:51:36 2022 : secondary DNS address 10.10.10.1  Thu Jan 20 14:51:36 2022 : Received protocol dictionaries  Thu Jan 20 14:51:36 2022 : l2tp_wait_input: Address added. previous interface setting (name: en0, address: 192.168.43.145), current interface setting (name: ppp0, family: PPP, address: 10.10.20.8, subnet: 255.0.0.0, destination: 10.255.255.0).  Thu Jan 20 14:51:36 2022 : Committed PPP store on install command  Thu Jan 20 14:51:36 2022 : rcvd [IPV6 data]     60 00 00 00 00 24 00 01   00 00 00 00 00 00 00 00   '`....$..........'     00 00 00 00 00 00 00 00   ff 02 00 00 00 00 00 00   '................'     00 00 00 00 00 00 00 16   3a 00 05 02 00 00 01 00   '........:.......'     8f 00 6e 8a 00 00 00 01   04 00 00 00 ff 02 00 00   '..n.............'     00 00 00 00 00 00 00 00   00 00 00 02               '............'  Thu Jan 20 14:51:36 2022 : Unsupported protocol 0x57 received  Thu Jan 20 14:51:36 2022 : sent [LCP ProtRej id=0x2 00 57 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 ...]  Thu Jan 20 14:51:37 2022 : rcvd [IPV6 data]     60 00 00 00 00 24 00 01   00 00 00 00 00 00 00 00   '`....$..........'     00 00 00 00 00 00 00 00   ff 02 00 00 00 00 00 00   '................'     00 00 00 00 00 00 00 16   3a 00 05 02 00 00 01 00   '........:.......'     8f 00 6e 8a 00 00 00 01   04 00 00 00 ff 02 00 00   '..n.............'     00 00 00 00 00 00 00 00   00 00 00 02               '............'  Thu Jan 20 14:51:37 2022 : Unsupported protocol 0x57 received  Thu Jan 20 14:51:37 2022 : sent [LCP ProtRej id=0x3 00 57 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 ...]  Thu Jan 20 14:51:39 2022 : L2TP port-mapping update for en0 ignored: VPN is the Primary interface. Public Address: 0, Protocol: None, Private Port: 0, Public Port: 0  Thu Jan 20 14:51:39 2022 : L2TP clearing port-mapping for en0  

Not working (router)

Router event log

Establishing the VPN connection, I can see these log entries in my router's event log:

24.01.22  10:19:24  Wireless LAN transmission quality increased by reduced channel bandwidth (2,4 GHz). [3 messages since 24.01.22 10:19:04]  24.01.22  10:19:01  Forwarding to 192.168.178.69 (sfalk) added for port 1701.  24.01.22  10:19:01  Forwarding to 192.168.178.69 (sfalk) added for port 4500.  24.01.22  10:18:58  Forwarding to 192.168.178.69 (sfalk) added for port 500.  24.01.22  10:18:04  Event Log was deleted. This change was made in the home network from IP address 192.168.178.69 [sfalk].  

/var/log/ppp.log

Thu Jan 20 09:47:07 2022 : publish_entry SCDSet() failed: Success!  Thu Jan 20 09:47:07 2022 : publish_entry SCDSet() failed: Success!  Thu Jan 20 09:47:07 2022 : l2tp_get_router_address  Thu Jan 20 09:47:07 2022 : l2tp_get_router_address 192.168.178.1 from dict 1  Thu Jan 20 09:47:07 2022 : L2TP connecting to server '85.237.31.244' (85.237.31.244)...  Thu Jan 20 09:47:07 2022 : IPSec connection started  Thu Jan 20 09:47:07 2022 : IPSec phase 1 client started  Thu Jan 20 09:47:07 2022 : IPSec phase 1 server replied  Thu Jan 20 09:47:08 2022 : IPSec phase 2 started  Thu Jan 20 09:47:08 2022 : IPSec phase 2 established  Thu Jan 20 09:47:08 2022 : IPSec connection established  Thu Jan 20 09:47:08 2022 : L2TP sent SCCRQ  Thu Jan 20 09:47:08 2022 : L2TP received SCCRP  Thu Jan 20 09:47:08 2022 : L2TP sent SCCCN  Thu Jan 20 09:47:08 2022 : L2TP sent ICRQ  Thu Jan 20 09:47:08 2022 : L2TP received ICRP  Thu Jan 20 09:47:08 2022 : L2TP sent ICCN  Thu Jan 20 09:47:08 2022 : L2TP connection established.  Thu Jan 20 09:47:08 2022 : L2TP set port-mapping for en0, interface: 6, protocol: 0, privatePort: 0  Thu Jan 20 09:47:08 2022 : using link 0  Thu Jan 20 09:47:08 2022 : Using interface ppp0  Thu Jan 20 09:47:08 2022 : Connect: ppp0 <--> socket[34:18]  Thu Jan 20 09:47:08 2022 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x62b2ff57> <pcomp> <accomp>]  Thu Jan 20 09:47:08 2022 : rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth eap> <magic 0xfb54e2f3>]  Thu Jan 20 09:47:08 2022 : lcp_reqci: returning CONFNAK.  Thu Jan 20 09:47:08 2022 : sent [LCP ConfNak id=0x1 <auth chap MS-v2>]  Thu Jan 20 09:47:08 2022 : rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth chap MS-v2> <magic 0xfb54e2f3>]  Thu Jan 20 09:47:08 2022 : lcp_reqci: returning CONFACK.  Thu Jan 20 09:47:08 2022 : sent [LCP ConfAck id=0x2 <asyncmap 0x0> <auth chap MS-v2> <magic 0xfb54e2f3>]  Thu Jan 20 09:47:09 2022 : L2TP failed to set port-mapping for en0, errorCode: -65564  Thu Jan 20 09:47:09 2022 : L2TP port-mapping for en0 became invalid. is Connected: 1, Protocol: None, Private Port: 0, Previous publicAddress: (0), Previous publicPort: (0)  Thu Jan 20 09:47:09 2022 : L2TP clearing port-mapping for en0  Thu Jan 20 09:47:11 2022 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x62b2ff57> <pcomp> <accomp>]  Thu Jan 20 09:47:11 2022 : rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x62b2ff57> <pcomp> <accomp>]  Thu Jan 20 09:47:11 2022 : sent [LCP EchoReq id=0x0 magic=0x62b2ff57]  Thu Jan 20 09:47:11 2022 : rcvd [CHAP Challenge id=0x82 <bbb842cfd05b65391f0820f7ec1c1b72>, name = "xl2tpd"]  Thu Jan 20 09:47:11 2022 : sent [CHAP Response id=0x82 <a2927010ebf97d96742c7d737dfc48970000000000000000fc5ecb5fbcf32db7dae3b920fe97b4d44028989d613ddb3b00>, name = "sfalk"]  Thu Jan 20 09:47:11 2022 : rcvd [LCP EchoRep id=0x0 magic=0xfb54e2f3]  Thu Jan 20 09:47:11 2022 : rcvd [CHAP Success id=0x82 "S=AF62F9AD454798E796FDA8AF4F151B7204E6C838"]  Thu Jan 20 09:47:11 2022 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]  Thu Jan 20 09:47:11 2022 : sent [IPV6CP ConfReq id=0x1 <addr fe80::f218:98ff:fe5f:11f2>]  Thu Jan 20 09:47:11 2022 : rcvd [IPCP ConfReq id=0x1 <addr 10.255.255.0>]  Thu Jan 20 09:47:11 2022 : ipcp: returning Configure-ACK  Thu Jan 20 09:47:11 2022 : sent [IPCP ConfAck id=0x1 <addr 10.255.255.0>]  Thu Jan 20 09:47:11 2022 : rcvd [IPCP ConfNak id=0x1 <addr 10.10.20.12> <ms-dns1 10.10.10.1> <ms-dns3 10.10.10.1>]  Thu Jan 20 09:47:11 2022 : sent [IPCP ConfReq id=0x2 <addr 10.10.20.12> <ms-dns1 10.10.10.1> <ms-dns3 10.10.10.1>]  Thu Jan 20 09:47:11 2022 : rcvd [LCP ProtRej id=0x3 80 57 01 01 00 0e 01 0a f2 18 98 ff fe 5f 11 f2]  Thu Jan 20 09:47:11 2022 : rcvd [IPCP ConfAck id=0x2 <addr 10.10.20.12> <ms-dns1 10.10.10.1> <ms-dns3 10.10.10.1>]  Thu Jan 20 09:47:11 2022 : ipcp: up  Thu Jan 20 09:47:11 2022 : local  IP address 10.10.20.12  Thu Jan 20 09:47:11 2022 : remote IP address 10.255.255.0  Thu Jan 20 09:47:11 2022 : primary   DNS address 10.10.10.1  Thu Jan 20 09:47:11 2022 : secondary DNS address 10.10.10.1  Thu Jan 20 09:47:11 2022 : Received protocol dictionaries  Thu Jan 20 09:47:11 2022 : l2tp_wait_input: Address added. previous interface setting (name: en0, address: 192.168.178.22), current interface setting (name: ppp0, family: PPP, address: 10.10.20.12, subnet: 255.0.0.0, destination: 10.255.255.0).  Thu Jan 20 09:47:11 2022 : Committed PPP store on install command  Thu Jan 20 09:47:11 2022 : rcvd [IPV6 data]     60 00 00 00 00 24 00 01   00 00 00 00 00 00 00 00   '`....$..........'     00 00 00 00 00 00 00 00   ff 02 00 00 00 00 00 00   '................'     00 00 00 00 00 00 00 16   3a 00 05 02 00 00 01 00   '........:.......'     8f 00 6e 8a 00 00 00 01   04 00 00 00 ff 02 00 00   '..n.............'     00 00 00 00 00 00 00 00   00 00 00 02               '............'  Thu Jan 20 09:47:11 2022 : Unsupported protocol 0x57 received  Thu Jan 20 09:47:11 2022 : sent [LCP ProtRej id=0x2 00 57 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 ...]  Thu Jan 20 09:47:12 2022 : rcvd [IPV6 data]     60 00 00 00 00 24 00 01   00 00 00 00 00 00 00 00   '`....$..........'     00 00 00 00 00 00 00 00   ff 02 00 00 00 00 00 00   '................'     00 00 00 00 00 00 00 16   3a 00 05 02 00 00 01 00   '........:.......'     8f 00 6e 8a 00 00 00 01   04 00 00 00 ff 02 00 00   '..n.............'     00 00 00 00 00 00 00 00   00 00 00 02               '............'  Thu Jan 20 09:47:12 2022 : Unsupported protocol 0x57 received  Thu Jan 20 09:47:12 2022 : sent [LCP ProtRej id=0x3 00 57 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 ...]  Thu Jan 20 09:48:39 2022 : L2TP received StopCCN  Thu Jan 20 09:48:39 2022 : L2TP hangup  Thu Jan 20 09:48:39 2022 : ipcp: down  Thu Jan 20 09:48:39 2022 : Connection terminated.  Thu Jan 20 09:48:39 2022 : L2TP clearing port-mapping for en0  Thu Jan 20 09:48:39 2022 : Connect time 1.6 minutes.  Thu Jan 20 09:48:39 2022 : Sent 87703 bytes, received 50878 bytes.  Thu Jan 20 09:48:39 2022 : L2TP disconnecting...  Thu Jan 20 09:48:39 2022 : L2TP sent CDN  Thu Jan 20 09:48:39 2022 : L2TP sent StopCCN  Thu Jan 20 09:48:39 2022 : L2TP disconnected  

Loss of numerical keypad to enter alarm times

Posted: 23 Feb 2022 08:07 AM PST

For a while within the past year, I was delighted to find that my iPhone allowed me to enter an alarm time using a numerical keypad instead of the simulated dials. Now, it has reverted to the dials. I wonder whether it is because I recently upgraded from iOS 14.4 to 15.2.1.

Was this in fact determined by the iOS version?

I'm a fan of installing as few apps as possible, and relying on native functionality. Is there any way to get the numerical keypad back without installing an app?

Default PHP included with Mac - enable imagecreatefromjpg

Posted: 23 Feb 2022 09:18 AM PST

I've uncommented gd in php.ini - but I still can't get imagecreatefromjpg() to work... How does one enable php with jpg support? (the default php that comes with mac - not xampp or homebrew. trying to avoid multiple installations, low disk space etc)

Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpg()

PhpMyAdmin gives lots of deprecation notices

Posted: 23 Feb 2022 09:27 AM PST

I've just installed httpd, php & phpmyadmin with homebrew.

Versions are :

~ % brew info httpd                                        httpd: stable 2.4.51 (bottled)  ...  ~ % brew info php    php: stable 8.1.0 (bottled), HEAD  ...  ~ % brew info phpmyadmin  phpmyadmin: stable 5.1.1 (bottled)  

Now, when I try to use phpmyadmin, just at the login page, I already get:

Deprecation Notice in ./vendor/twig/twig/src/Loader/FilesystemLoader.php#40 realpath(): Passing null to parameter #1 ($path) of type string is deprecated

Deprecation Notice in ./vendor/twig/twig/src/Markup.php#35 Return type of Twig\Markup::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Deprecation Notice in ./vendor/twig/twig/src/Markup.php#40 Return type of Twig\Markup::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Deprecation Notice in ./vendor/twig/twig/src/Node/Node.php#161 Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Deprecation Notice in ./vendor/twig/twig/src/Node/Node.php#166 Return type of Twig\Node\Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

In my understanding, phpmyadmin uses deprecated php features. There is no newer phpmyadmin version.

Should I just hide these notices (how?) or is there something cleaner I can do? Should I use a older php version?

Swift Playgrounds on MacOS performs badly, spinning up the fans and working the CPU

Posted: 23 Feb 2022 04:04 AM PST

Using the basic "Learn to Code 1" playground results in the MacBooks that I've tested on, including a 2020 MacBook Air, working far harder than I'd expect. The fans spin up and the CPU usage increases more than I'd expect.

The performance settles down if I leave the application running, I see the high load whenever I type and change the program.

The app is compiling some Swift code and displaying a fairly simple game interface to show the results. What can account for this poor performance on a capable machine?

Can't scroll using the touch screen on iOS devices within vim

Posted: 23 Feb 2022 02:51 AM PST

Over the past days I've started to do my day-to-day (development) work on my iPad instead of the MacBook. I have the MacBook Pro always online and available to connect to over ssh but have a problem with vim over ssh (and screen, but without screen the behavior is the same). Whichever Terminal App I've tried, I couldn't get mouse scrolling to work with the touch screen. If I use another computer to connect to the MacBook, I can scroll through my code with the mouse or the touchpad (with set mouse=a). No luck on the iOS devices though. I think it's not a problem with the app as I've tried about each and every major terminal app for iOS that I can think of. Termius, Prompt 2, Blink each didn't provide me with a way to scroll through files using my finger.

For me, the primary question is: Is this even possible or am I wasting time here?

How to get a dock on multiple monitors

Posted: 23 Feb 2022 07:19 AM PST

I have two monitors, but only one dock, which is somewhat annoying, so my question is, how do I get multiple docks? (One on each screen)

No comments:

Post a Comment