aliases

How do you create "Aliases" in Apache Tomcat?

I am working on a web application that allows users to upload attachments. These attachments are stored on a different drive than that of the web application. How can I create an alias (equivalent to Apache HTTP server's aliases) to this drive so that users can download these attachments? Currently I am creating a context file and dum...

Is there any reason not to use Aliases in the System namespace?

Hi, 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 standards where it mentioned "Always use C# predefined types rather than the aliase...

Get table alias from Zend_Db_Table_Select

Hello. 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" => "categories")); vs. $select->from("categories"); and I pass this to a "fetch" function which adds addi...

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 happy. j=String; f0=j.fromCharCode; j=j.prototype; j.f1=j.indexOf; j.f2=j.lastIndexOf; j.f3=j.concat; j.f4=j.substring; function alias(c,e){return function(){return c[e].apply...

aliases (sendmail) to redirect emails

I have read that "aliases" (etc/aliases) can be used to redirect an email to an external email address (or piping it to a script etc.) It should normally work by putting this command in the "aliases" file: support: [email protected] Afterwards you have to use the newaliases-command and thats it. But unfortunately after doing these ...

How to create aliases in c#

How do i create aliases in c# Take this scenario class CommandMessages { string IDS_SPEC1_COMPONENT1_MODULE1_STRING1; } say i create an object of this class CommandMessages objCommandMessage = new CommandMessages(); To i need to write lengthy string objCommandMessage.IDS_SPEC1_COMPONENT1_MODULE1_STRING1 every time i acce...

Autocompletion based on filenames in a directory

Hi there, 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 autocompletition. Can anyone point me some direction? Or share some snippet to work wi...

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. ...

Pathauto stopped working

Hi, I'm on a critical situation. I have a website with a lot of content (500+ nodes). However, all of the sudden, URL aliases stopped working. I get page cannot be found even nodes exist. I tried editing an existing node with a different alias to see if the module worked and it didn't. However, if I disable the Pathauto module and ju...

How to efficiently code a query in mysql to AND tags?

I have a common problem to be sure. I'd like to make a query that finds an entity that has "n" tags. So in the simplest case, we find all the entities that have the tag "hey". In a more complex case, we find all the entities that have all the tags "hey", "hi" and "howdy". It seems that I have to join to the tag table 3 times, and and th...

Keystore and SunMSCAPI aliases problem

Hi, I have a problem with java KeyStore. I am using SunMSCAPI Provider to retrieve certificates from Windows-MY keystore. I have two certifcates there, both have been issued with the same parameters (C, CN, IssuedBy...), but they have different validity. SunMSCAPI Provider assigns them the same aliases. When I want to get this certific...

PHP - IMAP test if an email alias exists

Is there a programmatic way to test the existence of an email alias when logged in as an IMAP client from a remote host rather than sending an email or having to parse the aliases file on the mail server? It is a Postfix mail server. Edit: I found an example of email validation over SMTP and this looks like what I need. However on my...