Questions tagged [aliases]

169 questions
3
votes
1 answer

php: using extends with a class alias

I have classes in two different namespaces, for example: Controller is in \Core, Index is in \Public In my index.php, I have a class_alias for all of the \Core classes, so you can call them directly: $controller = new Controller();. This works…
Devon Bessemer
  • 34,461
  • 9
  • 69
  • 95
3
votes
3 answers

PHP OOP : Use string as identifier for an alias

I have a class somewhere in some namespace. Say: namespace space; class MyClass(){} What i want to do is to create an alias for this class without extending etc. Oherenly thing I have is a string which contains class name. What I would like to do…
Ilia Andrienko
  • 284
  • 1
  • 12
3
votes
2 answers

Firebird aliases

I have developed an application using Delphi and Firebird 1.5, where the server is located on the same machine as the application. I am now deploying the application to another site, where the Firebird server (Superserver) is running on one machine…
No'am Newman
  • 6,395
  • 5
  • 38
  • 50
2
votes
1 answer

Load Multiple Functions from a Single File in Matlab

Possible Duplicate: Is it possible to define more than one function per file in MATLAB? Is it possible to load multiple functions from the same .m file in Matlab? I find it cumbersome to create a single file for each function for many small alias…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
2
votes
1 answer

How to make aliases with Storybook?

I try to make aliases for the storybook, but I have looked on the site to find a solution. However, my problem persists, and it doesn't work. I already have some aliases in my original webpack.config.js, but I don't understand how it cannot be…
Billy B
  • 91
  • 1
  • 7
2
votes
1 answer

Umbraco 4.6 - macros not rendering

I posted this on the Umbraco forum but to no avail, and wondered if the community at large might be able to offer some advice. We are upgrading our site from 4.0.3 to 4.6. I can't deploy it though as the macros aren't rendering - the error states…
Angela
  • 21
  • 1
2
votes
1 answer

How can I shorten commands for command line?

I use Windows, and I compile c++ files a lot, I always type g++ -Wall -Wextra -Wshadow -Wfloat-equal -O2 -std=c++14 -DALEXPC -o smth smth.cpp So I don't want to always type this whole command is there a way to use some kind of an alias to use it…
2
votes
1 answer

Check number of documents in each Alias in Elasticsearch Index

When I run this query: GET http:localhost:9200/_cat/indices/INDEX-NAME?pretty I get the following details: green open INDEX-NAME j-0NlK8iTSzODRquUdjvZVg 1 0 10130216 17363 1.3gb 1.3gb How to get similar details for an Alias of that index.…
Ravi
  • 21
  • 1
2
votes
0 answers

laravel 5.3 aliases not found => undefined class

I created a project in laravel 5.2, and moving this to laravel 5.3 For this, I created a brand new laravel 5.3 project folder where I am copying views and controllers to the new project. When trying to get Auth working, I see a lot of "undefined…
haypro
  • 85
  • 13
2
votes
2 answers

Is it possible to create a user defined PowerShell environment?

I would like to clear a PowerShell session of mostly all alias definitions, except for common aliases like cd, sort, mkdir, ... After I finished my session, I would like to restore all previous known the aliases. There is no need to unload modules…
Paebbels
  • 15,573
  • 13
  • 70
  • 139
2
votes
1 answer

Alias with all users in mysql table for postfix/dovecot

I have a table with users for my mail server. This table for imap authenfication in…
2
votes
2 answers

Yii2 show image in backend from frontend - settting alias

In my project I used an image cropper widget. I setup the widget, that it save in frontend/web/upload. But in backend I save the images to frontend too. This is working perfect. Then i want to show the image on the backend, if its exist. And i want…
Francis
  • 1,775
  • 2
  • 12
  • 15
2
votes
1 answer

Use Function From Earlier in Function Path

In fish, is it possible to reference or use a function inside another function of the same name? For example, fish has a function ls at /usr/local/share/functions/ls.fish, which sets some default parameters based on things like OS and whether the…
trysis
  • 8,086
  • 17
  • 51
  • 80
2
votes
1 answer

How to create an alias for a mercurial user?

I am looking for a way to create an alias for a user that has commited to a mercurial repository. For example, if there is a user named user1 I'd like every commit done by him to be under the name user2.
konikos
  • 376
  • 2
  • 9
2
votes
1 answer

can you pass a mysql column alias to a user defined function

I have a select statement which displays a number of counts based on different criteria I want to pass the counts to a user defined function (UDF) to do some calculations e.g. SELECT player, COUNT(IF(action=1,1,NULL)) AS tot_bullseye,…
Bill C
  • 23
  • 2
1 2
3
11 12