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

Alias and namespace conflict in Visual Studio Designer

I have a namespace conflict between two referenced assemblies: i.e., I'm referencing Foo.A.Foo and Foo.Bar, so when I say I want Foo.Bar.Control, VS is trying to find Foo.A.Foo.Bar.Control I can twiddle the Designer.cs code by adding new…
Benjol
  • 63,995
  • 54
  • 186
  • 268
2
votes
2 answers

Difficulty running a Perl script as a Bash alias

To format my apache error_log so that it is more pleasurable to look at I have written a quick and dirty perl script. tail -f /var/log/apache2/error_log | perl -ne '($timeStamp, $error, $hostName, $message) = /^\[([^\]]+)\] \[([^\]]+)\]…
2
votes
0 answers

Doctrine2 Native SQL Alias without Annotations

I have a problem with the native SQL in Doctrine 2. The main problem is that the alias does not work. I can only map a SQL-Alias to the entity by adding an annotation. This works fine, if I do it. But it's not really good in production because I…
mariusLAN
  • 1,195
  • 1
  • 12
  • 26
2
votes
0 answers

Does apache Alias also work with mod_vhost_alias variables?

I'm using mod_vhost_alias for Apache to dynamically use vhosts and documentroots which works fine... But now I'm trying to add an alias to another directory somewhere within the dynamic allocated directories but I can't get it to work... This is…
Martijn van Maasakkers
  • 2,647
  • 3
  • 16
  • 20
2
votes
2 answers

New to Windows Azure Preview

3 questions about Windows Azure Website Preview service (placing my website into cloud): 1. A little embarrassing, but I can't find my FTP credential. I tried my website setup credential as well as the data source string. Both are not applicable. So…
Pawna
  • 248
  • 1
  • 3
  • 8
2
votes
2 answers

Adding a user-defined property to all types in D

I'm using Derelict for my OpenGL work, and I'm tired of having to cast(GLvoid*) Vec3.sizeof all the time for funclions like glVertexAttribPointer. So I thought I'd make a function, glsizeof import std.stdio; alias void GLvoid; struct Vec3 { …
brendanzab
  • 950
  • 1
  • 11
  • 29
2
votes
2 answers

Hibernate: Criterion. Add Alias to Criterion Object

In Hibernate, is there a way to create an add an Alias to a Criterion object. I have the following to work with: I have a dynamic search from big Database with many tables. The search has many (25+) optional non-exclusive parameters selected…
JJRutter
  • 85
  • 3
  • 14
2
votes
1 answer

Server.DataBase alias in SQL Server 2008

I've searched for this in quite a few areas, but haven't found a crystal clear answer to this. I am working with multiple database servers and am consistently writing out [ServerName].[databasename].dbo.TableName. I know you can alias a table,…
mikebmassey
  • 8,354
  • 26
  • 70
  • 95
2
votes
2 answers

Giving an alias to a subquery containing a join in access

I am more experienced with SQL server's T-SQL but i have been working in Access. My question is how to give an alias to a sub query that has its own join operation. I believe i am talking about nested join operations. I know that i could create a…
BilliD
  • 577
  • 2
  • 7
  • 17
2
votes
1 answer

can't set up alias for lab directory but can set up alias for phpMyAdmin in lion

I am using mac with osx lion I set up alias for my apache using the following setting: Alias /phpMyAdmin/ "/Users/jason/Sites/phpMyAdmin/" Options FollowSymLinks AllowOverride None Order…
code4j
  • 4,208
  • 5
  • 34
  • 51
2
votes
1 answer

Is there something problematic about this particular aliased SQL column?

Why would aliases be treated like aliens when used in a select statement? I can't imagine this is always the case, but I had to change this code: const string query = @"SELECT C.PLATYPUSCLIENTID, E.DEWDROPNAME FOGGY FROM DUCKBILLACCOUNT B, …
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
2
votes
2 answers

Alias Columns Returned by a Stored Procedure [SQL Server 2008]

I'm not super familiar with stored procedures in general and SQL Server/T-SQL specifically. I'm wondering if there is a way to alias or rename the columns returned by a stored procedure without modifying the stored procedure itself. Here is the…
joshwbrick
  • 5,882
  • 9
  • 48
  • 72
2
votes
1 answer

Where does __import__ get alias names from?

Python allows aliasing of imports, through ...as clauses in the import statement, like this: import mymodule as somealias from myothermodule import spam as spamalias, ham as hamalias Now, in the default case at least, import statements,…
kjo
  • 33,683
  • 52
  • 148
  • 265
2
votes
1 answer

Can I alias multiple columns? How?

I'm using pyodbc and postgres. Can I alias multiple columns? Here's the description of my problem: Data structure: data id | c1 | c2 ------------- 1 | 11 | 12 2 | 21 | 22 Notation: c is for column dictionary id | key | value ---------------- 1…
Ricky Moreno
  • 189
  • 1
  • 2
  • 7
2
votes
4 answers

how to make this git alias?

I use this command to export all files in specify commit(s) git archive --output=export.zip --format=zip HEAD $(git diff --name-only COMMIT1 COMMIT2) I want to make an alias so I dont need type this long command everytime. I tried: git config…
jayjays
  • 71
  • 1
  • 2