Stay between Dubai Terminal 3 and Terminal 2

My flight into Dubai lands at Terminal 3 and my flight out departs from Terminal 2. My waiting time between them is 14 hours. Can I stay at Terminal 3 and go to a lounge there? Or will I be immediately directed to Terminal 2?

terminal – How to disable mDNS correctly?

I’m trying to disable mDNS but I’m facing some issues.

I’ve tried:

Command: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSresponder.plist

Result:
Unload failed: 150: Operation not permitted while System Integrity Protection is engaged

Command: sudo killall -HUP mDNSResponder

Result:
Nothing at all

Command: sudo killall -HUP mDNSResponderHelper

Result: I can disable this one.

I have also read that is not possible to disable mDNS is that correct?

Thanks.

homebrew – ‘brew’ command is not recognized by Terminal

I have recently bought a MacBook and as a Windows user I am unfamiliar with macOS.

I have installed brew on my system using the command

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Now, it seems that it was successfully installed. But when I type brew in Terminal, I get:

zsh: command not found: brew

Honestly, I do not know what zsh means. Some people say to just add some line to a certain file (I assume it is a configuration file for zsh). I think the file is ~/.zshrc, however, there is no such file on my system. How do I access it? Should I type vim ~/.zshrc in Terminal? How do I make my system recognize brew and all the other programs I would like to install?

I typed vim ~/ .zshrc in Terminal which opened vim. I then typed “i” in order to edit the file but I get please type the directory name:. I wonder what should I type here?

`open folder`from terminal and `reveal file in finder` not working

If you search for a file in Spotlight and command-click the file you expect the finder to activate and show that file. Instead, the Finder activates but only shows my home folder.

Same thing in Terminal:

open /Users/myHome/Documents/aa/ab

will activate the Finder but with a window on /Users/myHome/. Same thing with any open file: if you command-click on the file name on top of the file window you can select any folder on its path to have it open in Finder. Instead, the finder opens /Users/myHome/.

Same thing with several applications that tell the Finder to reveal a file (not all apps: Music will correctly reveal track in Finder).

I have tried rebuilding the Spotlight index, checking the disk with Disk Utility, reinstalling Big Sur 11.4 but that does not fix the issue.

Any suggestion is welcome.

printing – How to print receipt/order on POS Terminal in Android Studio

I am developing a restaurant POS in Android studio using java. When the user confirms the order, am able to insert the order and its details in the db. Now i want to also print the receipt of the order. so when the user presses the confirm order button, the order should be inserted in the db (this is being done) and the receipt printed.

Please help with how to print the order receipt on a handheld thermal POS terminal

see screenshot of POS terminal.Handheld POS Terminal

terminal – Terminator layout failing to launch rails server

I use Terminator as my terminal in ubuntu and have it set up to automatically start up the windows and application I need for developement on launch. One of these is the rails web server. Recently I’ve had an issue where when I start terminator, the windows open and the server begins to start up, however it fails with the following error:

========================================
  Your Yarn packages are out of date!
  Please run `yarn install` to update.
========================================


To disable this check, please add `config.webpacker.check_yarn_integrity = false`
to your Rails development config file (config/environments/development.rb).


yarn check v1.22.4
warning package.json: No license field
warning No license field
warning Integrity check: System parameters don't match
error Integrity check failed
error Found 1 errors.
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.

If I then run rails s myself in the same window, the server runs as expected. So there doesn’t seem to actually be an issue with my yarn installation. My Terminator config is as follows:

(global_config)
(keybindings)
(profiles)
  ((default))
    cursor_color = "#aaaaaa"
    scrollback_infinite = True
    login_shell = True
(layouts)
  ((default))
    (((child0)))
      type = Window
      parent = ""
      order = 0
      position = 1826:27
      maximised = False
      fullscreen = False
      size = 684, 1271
      title = chris@chris-PC: ~/workspace/rails_app
      last_active_term = cdc0a424-418e-49d5-a97d-1c0800bd5169
      last_active_window = True
    (((child1)))
      type = VPaned
      parent = child0
      order = 0
      position = 864
      ratio = 0.6824644549763034
    (((child2)))
      type = VPaned
      parent = child1
      order = 0
      position = 418
      ratio = 0.48661233993015135
    (((terminal3)))
      type = Terminal
      parent = child2
      order = 0
      profile = default
      uuid = cdc0a424-418e-49d5-a97d-1c0800bd5169
      directory = /home/chris/workspace/rails_app
      command = rails c; bash
    (((terminal4)))
      type = Terminal
      parent = child2
      order = 1
      profile = default
      uuid = c6483dfb-16c1-43f4-89bd-08e2e6fa6e55
      directory = /home/chris/workspace/rails_app
      command = rails s; bash
    (((terminal5)))
      type = Terminal
      parent = child1
      order = 1
      profile = default
      uuid = 8593b2b7-5411-46d3-835c-8cc893862fe1
      directory = /home/chris/workspace/rails_app

How can I make it so that my rails server starts up as expected?

macos – How can I restart Bluetooth using terminal in Big Sur?

I have tried this, and it doesn’t seem to work

sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport

I get the following error message:

Error Domain=KMErrorDomain Code=71 "Kernel request failed: (libkern/kext) kext is in use or retained (cannot unload) (-603946984)" UserInfo={NSLocalizedDescription=Kernel request failed: (libkern/kext) kext is in use or retained (cannot unload) (-603946984)}

I also tried restarting using blueutil but it doesn’t seem to work either.

I have an issue with Bluetooth that only resolves by restarting the computer. I’d like to restart only the Bluetooth module, if possible.

terminal – Send ScrollLock (or a passive keystroke) to macbook via command line?

My query is very similar to: Can a Mac be programmed to simulate pressing a key at a certain rate via software? whereby need to have script, so the Macbook won’t lock automatically (caffienate -t is not working due to policy). The keystroke also needs to be a safe key (like SCROLL LOCK2 or very passive key) which doesn’t do any harm.

Do you know how to replace the keystroke of SCROLL LOCK2 or “fn” key via command

# below one just inserts "fn" characters, which  is dangerous 
echo "set i to 0
repeat while i < 15
set i to i + 1
delay 5
# Trying out fn key, but not sure what is the keystroke value of it?
tell application "System Events" to keystroke "fn"
end repeat" | osascript

VSCode Integrated Terminal After Debugging

After I finish debugging my Julia scripts in VSCode the integrated terminal disappears. I have to do View: Toggle Terminal every time I finish debugging a script. Is there a way to make it persist/stay open, so that it is as I left it after I finish debugging?

windows – text file created on all terminal servers (unable to find where to disable)

I have strange problem in Windows Server 2019 environment with 2 domain controllers and 2 terminal servers. On every logon of new user, a text file is created on the user’s desktop on both of TS’s. I’m really desperate to find by which settings is this file created. I have unlinked all of the DC’s group policies, applied new settings by gpupdate /force and it didn’t help. I also check local policies on the servers, but there is nothing. I have reviewed all the scripts on the terminal servers, task scheduler, but there is no similar settings.

I have checked the user policies applied on TS with gpresult, but there is no unknown policy which may create the file.

Is there some other possibility how to find out why the file is created? Thanks