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

Is it possible to 'set print thread-events off' from the command-line arguments when invoking gdb?

Every time I start gdb, I immediately do: set print thread-events off It would be nice if I could do this from the command-line arguments, so that I could just set up an alias instead of re-typing it every time. Is there a faster way to do this?
Matthew
  • 28,056
  • 26
  • 104
  • 170
2
votes
2 answers

Using spl_autoload without use keyword on every page?

We have recently been rewriting our PHP application's model code using OO. We have the classes done, and we included namespacing (in the form of Project\Level1\Level2 or whatever). Since this is an already-built application, there are a lot of…
John Washam
  • 4,073
  • 4
  • 32
  • 43
2
votes
1 answer

can't get static files using lighttpd & tomcat

I am using lighttpd and tomcat running behind. I want lighttpd to handle all static files like images / css. Here is my config : $HTTP["host"] =~ "www.example.com" { alias.url = ( "/images_deal/" => "/home/deal/projects/deal/images/" ) …
badrux
  • 33
  • 5
2
votes
2 answers

Remove array element by element pointer (alias)

Is it possible to remove an array element by a pointer? Multidimensional array: $list = array( 1=>array( 2=>array('entry 1'), 3=>array('entry 2') ), 4=>'entry 3', 5=>array( 6=>array('entry 4') …
dan
2
votes
2 answers

HQL subquery alias

I've some problem with HQL query. I would use subquery with alias like this select distinct a.some1, count(a.some2), (Select count(z.any), z.any.any_id as v from Z z where z.level=4) as "zoo", azc.a.any_id …
Claudio Pomo
  • 2,392
  • 7
  • 42
  • 71
2
votes
1 answer

How to change the icon of file in MacOS in Objective-C?

My program for MacOS is creating the alias to another file and I want this alias to have some designated icon. How can I do it with Objective-C, preferably in Cocoa?
BartoNaz
  • 2,743
  • 2
  • 26
  • 42
2
votes
2 answers

Aliasing a property at definition time

The following code isn't valid in PHP 5.3 class DatabaseConfiguration { public $development = array("user" => "dev"); public $production = array("user" => "prod"); public $default =& $this->development; } It seems that $default can…
Raffaele
  • 20,627
  • 6
  • 47
  • 86
2
votes
0 answers

WPF 4.0 EdgeMode.Aliased drawing inexplicably slow to display on canvas

I'm drawing some vector data, slightly under 9000 polygon objects, using FrameworkElement:DrawingVisual which in turn is a child of a Canvas object. My tree of objects would look something like this: WPF…
rinzler
  • 21
  • 2
2
votes
2 answers

Hibernate-generated column aliases break AliasToBeanResultTransformer when using query

What I am trying to achieve is to set a result transformer on a query defined in the following way: String hqlQueryString = "select o.id as id, o.name as objectName from MyObject"; Class resultClass = MyObject.class; Query query =…
Ivaylo Slavov
  • 8,839
  • 12
  • 65
  • 108
1
vote
0 answers

Alias nginx location for Zend Framework applications

I want to have an alias in nginx so the application does not see the version number in the request, so I do not want to rewrite that portion of the URL. For instance: ls -la /var/www/html/source gives 1.0/ 1.1/ 1.2/ In which each of these are…
Du3
  • 1,424
  • 6
  • 18
  • 36
1
vote
1 answer

can we have multiple aliases for a Domain Class Attribute in grails

I have many domain classes in my application an for Audit logging I need the name attribute of each Domain class. unfortunately the name attribute is not generic in all Domains. In my Audt log class I get the type of object modified/created/deleted…
pri_dev
  • 11,315
  • 15
  • 70
  • 122
1
vote
4 answers

Can't Group By an internal alias?

i have a table called information_livraison Num_bloc date_livraison 14104 2012-03-22 09:18:43.000 14202 2012-03-22 09:18:43.000 13276 2012-03-22 09:19:39.000 12775 2012-03-22 09:24:59.000 12967 2012-03-22…
AymenRM
  • 71
  • 1
  • 10
1
vote
1 answer

SQL: alias on field at time of creation

Can you create an alias on field at time of creation? Example CREATE TABLE MYTABLE ( VERY_LONG_NAME AS VLN INT NOT NULL )
Mustapha George
  • 2,497
  • 9
  • 47
  • 79
1
vote
1 answer

Drupal 7 - Redirect path alias to latest node

I'm having some trouble with this problem, users can add photos to my website, I created a custom node template to display all the photos. But now I want that each time a new photo is added, the path /news/photos/ get's updated to that node. I'm now…
woutr_be
  • 9,532
  • 24
  • 79
  • 129
1
vote
3 answers

Java reports alias (symlink) as size 0 on Mac OSX. How do I get the true file size?

File file = new File("path to file alias foo"); where "path to file alias foo" is an alias reports file size to be 0 instead of the actual file size. I found a workaround to test for aliases: public boolean isLink() { try { if…
Chad Lowe
  • 721
  • 1
  • 6
  • 12