Questions tagged [aliases]
169 questions
2
votes
2 answers
WPF does not exist in namespace "clr-namespace"
I have a long running WPF application and suddenly, the XAML designer (and error list) has started to complain that certain classes cannot be found in namespace aliases.
For example, all Converters are stored in MyNameSpace.Converters, however,…

Muckers Mate
- 399
- 8
- 23
2
votes
3 answers
How to make aliases of member function or variable of specific class(like an STL container)
When using a std::pair or std::map, we need to use "first" or "second" to access data. But the two variable name do not have clear meanings of what it really store for other co-workers that did not write this code. So if we can make aliases for…

Cigany
- 178
- 1
- 10
2
votes
1 answer
nested SQL statements but reusing out variable in the inner statement?
I'm trying to do something in SQL (MySQL) which I'm not sure is possible. The scenario is to do with user surveys, I'm trying to create a survey where the questions are re-asked after a curtain time period. My SQL looks something like this today…

matmbl
- 23
- 4
2
votes
1 answer
Get table alias from Zend_Db_Table_Select
I'm working on an Active Record pattern (similar to RoR/Cake) for my Zend Framework library. My question is this: How do I figure out whether a select object is using an alias for a table or not?
$select->from(array("c" =>…

typeoneerror
- 55,990
- 32
- 132
- 223
2
votes
2 answers
How to use Tomcat 7 new aliases properly?
Tomcat 7 provide new aliases that allow to store static content outside the WAR File.
I found some instructions how to do that in http://www.developer.com/java/web/article.php/3904871/Top-7-Features-in-Tomcat-7-The-New-and-the-Improved.htm part…

meduoliai
- 103
- 2
- 9
2
votes
4 answers
How do I add aliases to a Servlet Context in java?
I have a servlet running under Tomcat.
I need to serve some files, I guess we can call them semi-static (which change occasionally ... they are updated by another part of the app) from an external (to the WEB-APP) directory.
I have managed to do…

Paulus
- 1,385
- 16
- 20
1
vote
1 answer
Java Sun PKCS#11 provider, HSM token LOGIN REQUIRED flag not set and empty list of aliases
I'm Pavel and I'm mainly a Java developer. Here is my problem:
I'm trying to list aliases in HSM slot using Java Sun PKCS#11 provider and I'm getting an empty list. I have tried it with Java 6 and 7 on Windows XP/Server platforms.
I downloaded Sun…

Pavel Bonev
- 11
- 3
1
vote
0 answers
Cannot find module or its corresponding type declarations - react typescript craco
Its very basic problem but not work... I created fresh create-react-app and installed craco for relatives paths, but vsCode still give me error during imports.
craco.config.js
const path = require('path');
module.exports = {
webpack: {
alias:…

Dariusz Szymczak
- 23
- 3
1
vote
1 answer
Take first argument from alias command and interpolate it to file name extension
How to make alias that take argument and interpolate it to file extension to create it? I tired this and this doesn't work :
alias create-bash-file=' echo "#!/bin/bash" > "$1.sh" '
as $1 is first argument and .sh is file extension and I wanted to…

Khaled Developer
- 59
- 1
- 6
1
vote
0 answers
Python parameter name deprecated
I'm currently working on a project I cannot release a breaking code, i.e., function names must remain the same, the same applies to its parameters and everything else into the code. With this being said, people usually call functions with positional…
1
vote
1 answer
Use Aliases for Validation to show gramatically correct error messages - play framework
My question refers to validation in a Model class.
I know how to basically do validation, but I've though got a question about it.
I'd like to now if it is possible to use a alias in validation? Because it should display a german message, and mixed…

The13thToast
- 65
- 8
1
vote
1 answer
Windbg - passing pseudo-registers to extensions and scripts
I have been trying to pass an address value loaded into $t0 with an !extension command I didn't write and a Windbg script I did write... I've made some progress by going back to using an alias, but I am still wondering if I'm missing something with…

Hippogriff
- 295
- 1
- 4
- 18
1
vote
2 answers
Is There a Way to Get a List of Aliases? (Discord py)
So I've been stuck on this for a while and can't seem to find the answer online...
Is there a way to show a user all of the aliases that a command has?
Example: .sum has the aliases: .add, .plus, .addNums, etc...
Mainly I just need a way to "get" a…

joeyagreco
- 98
- 2
- 11
1
vote
1 answer
How To use grep in a chain as an alias
cdl ()
{
cd $1
ls
}
So I use the above in my bash_aliases file by running cdl /lib/systemd/systemd.
My question is how can I add grep to this. I'd like to be able to do something like cdl [/path] [grep query]
maybe something like
cdlg…

Entropic Ninja
- 83
- 1
- 4
1
vote
0 answers
how to inject aliases when execute docker exec?
I want to inject a few alias when execute docker exec command, otherwise I need to type such as alias ll='ls -l' everytime, so I made this a piece of code, but finally no aliases at all, anybody can help fixed this problem?
$ docker exec -itu…

Leo Chu
- 83
- 1
- 1
- 6