tilde

Why is psql inserting a tilde when I press any of the keys in the Home key cluster?

I'm using psql 8.2.3 on FreeBSD. Every time I press Insert, Home, Delete, End, Page Up or Page Down, a tilde (~) character is inserted instead of performing the expected function of the key. Why does this happen and how can I fix it? ...

Tilde not resolving in HyperLinkColumn in ASP.NET 2.0

I have an ASP.NET application originally deployed to a .Net 1.1 Framework on Windows 2000 server which i'm now using on a Windows 2008 Server using 2.0.50727. We use the tilde (~) to resolve to an absolute path in many areas of the application and it works for things like asp:hyperlink controls (with run-at server tags), but for our bou...

What is the best way to produce a tilde in LaTeX for a website?

Following the previous questions on this topic, when you produce a website in LaTeX what is the best way to produce a url that contains a tilde? \verb produces the upper tilde that does not read well, and $\sim$ does not copy/pase well (adding a space when I do it). Solutions? It seems like this should be one of those things that has a ...

meaning of tilde in linux bash (not home directory)

Hi all, First off, I know that ~/ is the home directory. CDing to ~ or ~/ takes me to the home directory. However, cd ~X takes me to a special place, where X seems to be anything. In bash, if I hit "cd ~" and hit tab, it shows a bunch of possible ~X options like ~mail and ~postgres and ~ssh. Going to those folders and doing a pwd sh...

What does the tilde (~) character do here

class ResourceWrapper { int handle = 0; public ResourceWrapper() { handle = GetWindowsResource(); } ~ResourceWrapper() //this line here { FreeWindowsResource(handle); handle = 0; } [DllImport("dll.dll")] static extern int GetWindowsResource(); [DllImport(...

Tilde-based Paths in Objective-C

In Objective-C, how do I go about converting tilde-based pathnames to full pathnames? That is, I'd like to convert from ~/sandbox to /Users/TheBobs/sandbox. ...

home directory expansion (~) within an argument

When I enter the following (BASH): rdesktop -r disk:bacon=~/bacon host It does not expand to rdesktop -r disk:bacon=/home/me/bacon host It seems the "disk:" part is the problem as can be seen in: $ echo bacon=~/bacon disk:bacon=~/bacon bacon=/home/me/bacon disk:bacon=~/bacon How can I make tilde expand? ...

Qt: Expand ~ to home-directory

Does Qt have any platform-independent functionality to accept paths like "~/myfile"? I know about wordexp, but it would be nice with a platform-independent wrapper. Edit: Thank you all for the responses. "~/myfile" was just an example. What I am looking for is functionality to handle file-paths as you would be able to write on the com...

bash script problem, find , mv tilde files created by gedit

Hi, im using linux with gedit which has the wonderful habit of creating a temp file with a tilde at the end for every file I edit. im trying to move all of these files at once to a different folder using the following: find . -iname “*.php~” -exec mv {} /mydir \; However, its now giving me syntax errors, as if it were searching thro...

Maintaining ISAPI Rewrite Path with the ASP.NET tilde (~)

My team is upgrading from ASP.NET 3.5 to ASP.NET 4.0. We are currently using Helicon ISAPI Rewrite to map http://localhost/&lt;account-name&gt;/default.aspx to http://localhost/&lt;virtual-directory&gt;/default.aspx?AccountName=&lt;account-name&gt; where <account-name> is a query string variable and <virtual-directory> is a virtual direc...

python regular expression

hi, well this is my problem, i'm working in a script (python) to find some files, i compare names of files against a regular expression pattern, now, i have to find files ended with a "~" (tilde), so i builded the next regex: if re.match("~$", string_test): print "ok!" well, python seems to not recognize the regex, i dont know why...

How do I use '~' (tilde) in the context of paths?

I'm a web application development noob. I have a function that opens a file and reads it. Unfortunately, the directory structures between the test and production servers differ. I was told to "use a path relative to ~". I haven't been able to find any resources on the '~', though! How do I use the tilde character in the context of paths...

sub tilde in latex

in latex with \tilde{x} put ~ over x. how I can put ~ down x ? ...

How to execute an ObjectQuery<T>

Linq to Entities uses the ObjectQuery which implements IQueryable. I normally use the IQueryable methods to filter through my data but today I needed to create a special LIKE statement. The framework keeps thinking its smart and "escaping" my wildcard "%" with the tilde which rendered my special LIKE statement null and void. So after dig...

Is there something to double output a % character?

Is there something in a BATCH file that would double a % character? The test.txt INPUT file contains the following " Hello World The filename is : filename with spaces and 50% percentages signs.txt The %~nf removes extenstions Is there something to double a % charactor? As I would like 50% to be outputed as 50%% because the output o...

Replacing tilde with $HOME in simple shell

Hello. I am writing a simple Unix shell in C. Here's what I have so far. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main() { char x[256], y[256], z[256]; while (1) { getcwd(y, sizeof(y)); printf("%s$ ", y); fgets(x, sizeof(x), stdin); if (x[0] == 'c' && x[1...

How to manually expand a special variable (ex: ~ tilde) in bash

I have a variable in my bash script whose value is something like this: ~/a/b/c Note that it is unexpanded tilde. When I do ls -lt on this variable (call it $VAR), I get no such directory. I want to let bash interpret/expand this variable without executing it. In other words, I want bash to run eval but not run the evaluated command. ...