Questions tagged [aliases]
169 questions
1
vote
2 answers
Improve function that adds aliases to .bashrc from command line
I wrote this function which I use to add aliases to .bashrc file.
The function works well but it's not complete, I would like to ask for confirmation from the user if the alias being added already exists and write the if condition in order to…

Alan
- 1,479
- 3
- 20
- 36
1
vote
2 answers
How to make setenv to an output of a perl script
I wrote a perl script that prints a path to a very specific file. I want to define a personal environment variables (by using setenv in .aliases file) that gives the output of this script.
For example, let's say that the file "myscript.pl" prints…

user3189985
- 189
- 5
- 14
1
vote
1 answer
Autocompletion based on filenames in a directory
I want to have a function in my zsh for faster accessing my todo-files. It should look inside the folder ~/tasks where i put my todo-lists and stuff. Now i want to type task p and when I hit tab, it should use the files in that directory for…

nocksock
- 5,369
- 6
- 38
- 63
1
vote
1 answer
Javascript, aliases and IE
In an attempt to save space, I made a whole bunch of aliases for functions in my code. It works fine in FF, but now I'm trying to add support for IE and it's not…

graw
- 223
- 5
- 12
1
vote
1 answer
How do I edit conf file when being used by Firebird service?
I'm playing around with Firebird and just installed the latest version (2.5) for Windows 7 (64 bit).
I have it running as a service rather than stand-alone application.
I'm wanting to alter aliases.conf and add an alias for a database, but I can't…

user2779477
- 21
- 1
- 3
1
vote
1 answer
write mysql query using inner joins for three tables
I have the following query which works perfectly:
SELECT *
FROM contacts
WHERE id in (
SELECT DISTINCT contacts.id
FROM contacts
INNER JOIN contacts2tags
ON contacts.id =…

user415
- 53
- 1
- 6
1
vote
1 answer
SQL Database for related family members
I am curious what you think is the best way to get this MySQL database to work.
i had this table:
family.id
family.name
family.related
And thought it wouldnt be a problem to connect related family members together in 1 query like this:
id |…

WHOMEZz
- 79
- 7
1
vote
1 answer
AppleScript to create aliases of files in a folder
So I have this AppleScript for making aliases of all the contents of one folder to another folder.
I works perfectly unless there is only one item in the source folder.
tell application "Finder"
set SourceFolder to (choose folder with prompt…

user1714794
- 11
- 1
- 2
1
vote
1 answer
HQL Query with alias
I am trying to execute an hql query with aliases
select **clbs.id as id**
from ClaimDO cl, ClaimBillSummaryDO clbs, HospitalDO h
where clbs.parentGuidObj.id=cl.id and h.id=cl.hospitalSeq and cl.id= '10721'
and I get the following…

Harshul Pandav
- 1,016
- 11
- 23
0
votes
2 answers
Domain Name Aliasing in Ubuntu?
Is there way to create short domain name aliases in ubuntu?
I am using ec2 clusters a lot and its tough to keep track of their domain names to login each time.
If there is a way in which i can give custom domain names aliases, it would be great.…

ansh2201
- 11
- 2
- 5
0
votes
5 answers
Semantic meanings of std::auto_ptr and boost::shared_ptr
In our large project we have a lot class with the following typedef's:
class Foo
{
public:
typedef std::auto_ptr Ptr;
typedef boost::shared_ptr Ref;
...
};
...
Foo::Ref foo(new Foo);
...
doBar(foo);
...
The using of them is…

barankin
- 1,853
- 2
- 12
- 16
0
votes
3 answers
Is there any reason not to use Aliases in the System namespace?
I've always been used to using String instead of string and Int32 instead of int. Mainly because everything is a class, so I like to keep consistent and treat so called 'primitives' just like every other class/object.
I just saw an article on coding…

Razor
- 17,271
- 25
- 91
- 138
0
votes
1 answer
mysql: referring to columns by numbers
I want to give columns aliases without knowing their names, but only their number in the table.
Something like this:
select firstColumn as myId, secondColumn as myName, thirdColumn as myLastName
where I don't know the actual names of the columns
(I…

shealtiel
- 8,020
- 18
- 50
- 82
0
votes
3 answers
Defining aliases in a statistical query
I need to do:
SELECT COUNT(*)
FROM some_table
WHERE someAlias1 = someValue1
AND someAlias2 = someValue2;
someAlias is an alias for a column in some_table. In my case I can't name the columns directly; I need to use aliases.
The issue is that…

shealtiel
- 8,020
- 18
- 50
- 82
0
votes
0 answers
Terminal Settings: Replace error message of alias
Wassup Guys,
I have made a few aliases inside my terminal settings for some handy commands.
However, one of the aliases is using docker and when the docker engine is not started, it prints the following error:
(Obivously I do not always use docker…

LaFllamme
- 259
- 4
- 16