Questions tagged [alias]

An alias is an alternative name. In computer science, the most common contexts are command aliases in shells, column aliases in databases, or variable references in languages like C++.

For bash aliases use the tag.

4406 questions
2
votes
2 answers

aliased templates in nested classes

I am trying to get a template alias for T2 starting from an instance of C. template struct T1 { template struct T2{}; }; template class C { T1 t; }; template using…
mirk
  • 5,302
  • 3
  • 32
  • 49
2
votes
3 answers

Possible to create aliases in GIT?

In bash I can create an alias like this: alias ls="ls -h" This changes the command ls -l from running like this: drwxr-xr-x 1 joe bob 0 Mar 25 12:06 4.7 drwxr-xr-x 1 joe bob 4096 Mar 25 14:58 Adobe Flash Builder 4.7…
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
2
votes
2 answers

Creating a simple controller alias

I'm not sure I am using the proper terminology, so I will describe what I want to achieve. I have a controller called ControllerA and want a "virtual" controller called ControllerB to function exactly the same as ControllerA. Basically I just want…
mae
  • 14,947
  • 8
  • 32
  • 47
2
votes
1 answer

Challenge with getting correct mappings for aliases using Java+Hibernate+DB2

I am writing a Java application using Hibernate and IBM DB2 9.7 LUW for database. I am using the SQLQuery API to read a custom SQL query string and execute it against the DB. The query contains aliases, i.e. SELECT WORK.EMPLOYEE AS WORKEMPLOYEE,…
user1340582
  • 19,151
  • 35
  • 115
  • 171
2
votes
2 answers

MySQL Joining two rows, two tables, with the same fields

Hi Im new to MySQL and PHP, and this is my first post.. So please bear with me. I am trying to add two tables and two rows from one table friends member_ID | friend_ID | status and a user table member_ID | username What I am trying to do is…
romie
  • 21
  • 1
2
votes
1 answer

Can't use alias in subquery

Hello I'm using two tables to have one query. I have municipality and barangay and household_connector_id fields in household_tbl but in second table which is tbl_household_member is only have a household_connector_id field. the alias for the first…
Alyssa Reyes
  • 2,389
  • 6
  • 27
  • 52
2
votes
3 answers

In C++, make an alias const

I'm a beginner to C++ and I have a question that I want to make sure...I've done pretty of searching online. Let say I have a class call A and it has a function called Afunction. The function looks like: // this is pseudocode void Afunction (const…
user1447343
  • 1,417
  • 4
  • 18
  • 24
2
votes
1 answer

Pry: alias for whereami command

Is there a shorthand for the whereami command in Pry ? If not, is there a way to define an alias for Pry commands in config like .pryrc ?
ejoubaud
  • 5,013
  • 6
  • 37
  • 39
2
votes
1 answer

Use C shell alias variables except for one

I would like to make an alias that uses the first cli variable as an input to something and puts the rest of the variables in the end, like for example: alias rerun '`head -n 2 \!:1/some_log_file.log | tail -n 1` \!:*' In the example, I would like…
Alex Biba
  • 63
  • 5
2
votes
4 answers

SQL exception while selecting the columns with alias names

My SQL query is cmd = new OleDbCommand("select vchr_No as voucher No, vchr_Date as Date, vchr_Acnthd as Debit, vchr_Prtynm as Paid to from cshvchrs where vchr_No like '%" +…
Learner
  • 1,286
  • 6
  • 34
  • 57
2
votes
1 answer

How to Make a "relative path" alias or symbolic link in osx?

I need a link. It´s for a software delivery DMG file. It is rather simple. But I do not know programming very well. My need is to get an alias or a symbolic link that links to a relative path, like this: /users/USERFOLDER-name/Library/Application…
AndyE
  • 21
  • 1
  • 4
2
votes
1 answer

alias using vs typedef

I'm working on a school lab and in the instruction it says: Change the typedef that defines Word_List to a alias declaration (using) From what I've googled, the way to do this is to change from: typedef vector Word_List; to: using…
Johan Hjalmarsson
  • 3,433
  • 4
  • 39
  • 64
2
votes
3 answers

yii bootstrap (v2.0.3) extension invalid path alias

I followed the Yii-Bootstrap installation instructions on http://www.cniska.net/yii-bootstrap/setup.html but the path alias set in config/main.php doesn't work for me:
Objective
  • 848
  • 1
  • 12
  • 27
2
votes
3 answers

how to create alias for #include in vim

everytime we write a program we need something like #include or any other #include things... Is there anyway to create alias for this, so that when I type inc in vim and press some key, then inc changes to #include
user195661
  • 35
  • 5
2
votes
1 answer

Alias that will create directory if original is non-existent

I am making a piece of software built in Quartz Composer that I would like to distribute for testing while keeping installation - even from the ground up without Quartz Composer installed - very easy and simple. I want people to be able to drag the…