Questions tagged [global]

12 questions
7
votes
1 answer

How or where to define global functions to be used in bash, zsh, sh scripts?

Say I have these three script files: (all 3 are executable) bash-test.sh: #!/bin/bash HelloFromBash RocketNuts zsh-test.sh: #!/bin/zsh HelloFromZsh RocketNuts sh-test.sh: #!/bin/sh HelloFromSh RocketNuts As you can tell from the shebangs, these…
RocketNuts
  • 1,342
3
votes
2 answers

In Excel 2007 where do you store macros that you want to use on all sheets that you open?

It looks like you can store it in a file called PERSONAL.XLSB and that will create "Global" (for all worksheets) macros. This file is of course stored in your user profile (%USERPROFILE%\AppData\Roaming\Microsoft\Excel\XLSTART). My file appears to…
leeand00
  • 23,552
3
votes
1 answer

Entering Unicode character using 'Alt' + numeric keypad keys, in decimal

On a PC keyboard (Windows), is there a method, without having to install additional software, to enter any Unicode character using its code point in decimal? Alt + ABCD does it in hexadecimal, but I am looking for a method for decimal numbers.…
u936293
  • 1,337
2
votes
0 answers

Where do i find maps of internet access around the world?

I work for a group of large NGOs (Non Government Organizations) engaged in humanitarian work through out the world. Often internet access is an issue and having access to reliable data on availability, capacity and quality data on internet access in…
2
votes
1 answer

How to create custom Global System-wide variables like $Home in Powershell and assign persistent value to it?

I am just starting to learn Powershell and already one thing started bugging me. The undesirably & unfairly confusing discrimination between $env:Home and $HOME. Where $HOME can be autocompleted by just typing $hom > Tab, but for it's counterpart we…
1
vote
0 answers

Is possible to assign DHCP global address to a bridging device?

I have a bridging device(Eg:linux Machine as bridge) that will link two networks. for example my device wlan0 have connection established to one access point and eth0 connected to bridging client.. Now my clients will get connected to that access…
1
vote
0 answers

How to `zcompile` global (system-wide) zsh scripts?

For my local dotfiles I have this snippet at the end of my .zshrc: for f in ~/.zshrc ~/.zshenv ; do [ "${f}"(:A) -ot "$f".zwc ] || zcompile "$f" done This ensures that these scripts are always precompiled if modified. But global scripts that I…
Petr
  • 3,273
1
vote
2 answers

Excel VBA - Scoping Const Variable to be Accessed only by Current Project

I have an Excel Add-in for storage of UDF's as well as a personal workbook for storage of subroutines. Inside of the Add-in, I have a module for constants, where I have an entry for ideal gas constant: Global Const r = 8.314 'Same result using…
1
vote
1 answer

Establishing a unit converter which can be called globally through terminal

I would like to have a function (or may be some kind of executable) that can be called via Terminal from wherever I am (from any directory) and this function does a simple job of converting between units, e.g. from meter to feet. Is such task…
nougako
  • 113
0
votes
1 answer

VBA to prevent the global shortcut from running the wrong code

The article at the following site provides a tip for preventing a global keyboard shortcut from executing the wrong VBA code when two different macros in two different worksheets are assigned the same keyboard shortcut (Ctrl +…
Matt
  • 158
0
votes
0 answers

Keep Global Variable value over Modules

Good Day I did create a Global variable in my Script. It does keep the variable itself over Module correctly, but it doesn't keep the contain of the variable. Is there a way to keep its contain? I've tried with Set ProcessFileName =…
0
votes
2 answers

Windows global shortcut CTRL+SHIFT+n hijacked by Microsoft Outlook

Running Windows 10: Similar to Windows global shortcut hijacked by Opera but the CTRL+SHIFT+N keybinding is globally bound to open up, or activate and then raise, the Microsoft Outlook window. This conflicts with the Google Chrome keybinding for…
bgoodr
  • 717