4,671 questions
Best practices
1
vote
6
replies
60
views
Is there any standard way to handle the aliases or abbreviation in python when importing the module to the python file?
Here is how I import the python modules in to the another file. Anyone knows is there any standard way of importing?
import lib.utils.datetime_util as dt
import lib.utils.type_check_util as tc
Advice
0
votes
2
replies
52
views
Set-Alias: A positional parameter cannot be found that accepts argument 'pull'
I was trying to create an alias in PowerShell.
I am using PowerShell version 7.5.4 and used the command:
SET-ALIAS -NAME gips -VALUE git pull origin \<branch_name\>
When I ran the GET-ALIAS -...
Advice
0
votes
1
replies
38
views
Why search "vsc" in windows start menu can find out Visual Studio Code?
Windows 10 22H2.
Ask this question because at the same time, type ame can't find out Adobe Media Encoder.
and I don't see vsc.exe defined in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\...
0
votes
1
answer
275
views
Can I create an *alias* member function in C++?
I am refactoring a project, and I have to unify a set of derived classes under the same base class.
These are two derived classes:
class D1 : public virtual B {
virtual int F(int i) { ...
4
votes
3
answers
103
views
Insert with (CTE and) select ... as of scn (flashback) and table alias(es) does not work in PL/SQL - ORA-00984: column not allowed here
In a legacy system we want to copy a lot of productive data/tables in other tables in a stored procedure.
That all copied data is consistent with each other, we want to use the <tableName> as of ...
1
vote
1
answer
69
views
Aliasing the same table multiple times in a query with subqueries
An exercise I am working on presents this query written in BigQuery to teach how to use subqueries, CASE, and HAVING statements. I've learned about aliasing tables to simplify the query, but I don't ...
0
votes
0
answers
69
views
Android Kotlin App Icon Changing Activity Alias issue
I’ve followed afew tutorials that walkthrough using activity-alias to enable changing the icon of the app.
However I have found some issues while playing around with it, and cannot find any info about ...
2
votes
1
answer
120
views
powershell user defined function not working with an alias - odd error message
working in Windows 11 with PowerShell 7.5.1 (NOT Windows PowerShell)
i have some functions and aliases defined in
C:\Users\Jeff\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
here are the ...
1
vote
1
answer
160
views
Do I need a .bash_profile to keep aliases in .bash_aliases persistent between ssh sessions?
I am ssh-ing into a linux environment with bash cli, and started looking into .bashrc stuff to add my own aliases for convenience, on the linux side. I ended up with my home directory looking ...
0
votes
0
answers
126
views
How to pass command line arguments from a tcsh alias to a bash script
At the bottom of my bash script, after all of my needed bash aliases and functions have been defined, I've got just a single line to be executed when the script is run:
echo "$# args: $@ passed ...
3
votes
1
answer
233
views
How to write a member function alias?
In modern C++ is it possible to write a member function alias with a syntax different from this:
class C {
int f(int a) { return ++a; }
inline int g(int a) { return f(a); }
};
I tried in a few ...
1
vote
1
answer
67
views
Problems with "qualified-id in declaration before '(' token" and "expected type-specifier" errors [duplicate]
I need to build some template classes in C++17 but I'm getting the following error message:
When I do not define the macro __ALIAS__ I got an error on these lines:
using PF = one<_Return>::...
0
votes
1
answer
42
views
Specific new alias failing while existing works (even after restart)
During some cleanup on macOS Monterey, uninstalled and reinstalled gshuf. Aliased shuf to gshuf.
The line from zshrc:
alias shuf='gshuf'
I have a tool for my music with these three lines as the total ...
1
vote
1
answer
86
views
Are there circumstances in which bash seems to violate the order of precedence for aliases?
I found the order of precedence described here but if and only if bash is instructed to source a script after the alias is given in .bashrc does the alias-function get used by the sourced script.
E.g.:...
0
votes
1
answer
79
views
How to create pydantic model with different names of filed?
I have pydantic model of table and another one for create like:
class Users(SQLModel, table=True):
id: UUID = Field(default_factory=uuid4, primary_key=True)
user: str = Field(index=True)
...