Questions tagged [tilde]

The ~ (tilde) can have different meanings: it can be an operator, performing a bitwise negation on a binary number - all 1 bits are set to 0 and all 0 bits are set to 1. It can also simply be the tilde character itself, as used in Windows for shortening long path names.

171 questions
0
votes
2 answers

Cannot create directory with tilde

Given this script # cat foo.sh echo $HOME set -x mkdir ~ I am getting this result # ./foo.sh /home/Steven Penny ++ mkdir '' mkdir: cannot create directory `': No such file or directory If I run mkdir "$HOME" I have no problem. I think the issue is…
Zombo
  • 1
  • 62
  • 391
  • 407
0
votes
1 answer

How to get real file name without tilde substitution

I use dirent.h library for fetching name of file. While most of them are correct, this one: 1ZdjÄ™cie główne.JPG_38ba97e477158efb3563274f5bd39af7.jpg_cda6829b61253f64b44a5c7f15e00b45 - Copy.jpg is read as 1ZDJCI~2.JPG What can I do to…
Arko Jarko
  • 39
  • 2
0
votes
1 answer

Bit manipulation tilde

I understand that tilde flips every bits, but if I do int num = ~0 Why the result is num = -1 , neither max value of int or unsigned int?
DoReMi
  • 221
  • 1
  • 6
0
votes
2 answers

What is the tight bound for big O?

When referring to big o, what is considered the tight bound? For example, in the function, f(n) = 10c7n^3 + 10c4nlog(n)) // This function represents the number of operations in terms of n // according to this example, the tight bound for big O…
Night Owl
  • 55
  • 2
  • 5
0
votes
1 answer

Remap hotkey without losing native hotkey functionality

I want the keyboard shortcut ctrl+tab to perform two functions: ctrl+tab (its normal function, e.g., to switch tabs in a web browser) ctrl+F6 (which can be used to switch between Microsoft Word documents, for example) It doesn't need to be…
0
votes
2 answers

Any advantage to using variable with tilde in javascript vs. -1?

Other than a slight performance gain, is there an advantage to using !~x as true vs. checking to see if ~-1 ?
0
votes
2 answers

Multiple checkboxes on a single page

Can anyone help me out with my ratingsystem? I'm trying to duplicate my section with the class of container(Entire progressbar), but whenever I do so the ratingbar only works for either one of the progressbars. I've kept in mind to change the id's…
Stephan-v
  • 19,255
  • 31
  • 115
  • 201
0
votes
1 answer

Microsoft MVC4 ~ Expansion is inconsistent

In MVC, the ~ at the top of a server side directory reference should be converted to the root of the website. I have the following lines at the top of my cshtml file:
Glenn Gordon
  • 1,266
  • 1
  • 14
  • 24
0
votes
2 answers

(.htaccess) how to mod_rewrite a tilde user site to subfolder within same site

I have been working this issue for several nights with no luck. I'm trying to Rewrite web requests using (.htaccess) from: cobweb.seas.gwu.edu/~mpnl to: cobweb.seas.gwu.edu/~mpnl/joomla My latest (.htaccess) file is below: # turn on…
0
votes
1 answer

Groovy Regex: What does a tilde in a character class do?

I've got this Regex that comes out of a groovy code: (?:[^\p{Alnum}äöü**~D~V~\~_**]|^) (?:sometext|s\.t\.) (?:[^\p{Alnum}äöü**~D~V~\~_**]|$$) The only thing I do not understand is this part: **~D~V~\~_** What doas the tilde do in there? Is that…
barigorokarl
  • 3
  • 1
  • 4
-1
votes
1 answer

Batch: Sequentially write the last modification time of a file into a variable

Within a FOR loop over all files from a folder, I try to set the file time into a variable, but the variable keeps displaying the same value for all files. Here is the .bat file content: @echo off for /f %%a in ('dir /b .\*.*') do ( echo a :…
-1
votes
1 answer

Python Bitwise ~ Operator

Several previously asked questions such as this and this mention only why this happens i.e. 2's compliment. I need help with how to convert this : print("if ~(0b11011111) is "+str(bin(~(0b1101111))) +" not 0b00100000") print("and ~(0b00100000) is "…
-1
votes
1 answer

tilde key not working in Fedora Linux on Macbook Air

I am pretty much brand new to Linux and command line. I am trying to learn the commands and I got to a section that needed the ~ key. When I am using Fedora, the ~` key types ><. I have tried searching for this and I cannot find the answer. I have…
Andy
  • 11
  • 5
-1
votes
1 answer

how to parse/read a tilde delimited table in a .txt file in JAVA and write methods for relational algebra / SQL

trying to write a java class named Algebra that will have static methods representing the relational algebra and one additional method which displays the contents of a tilde table and works with any tilde table. table will have the following…
-1
votes
1 answer

Appearance of a tilde(~) in mac OSX terminal in the path

I am new to the Mac OSX environment, and was programming in C using the terminal. To change the current directory, I used the command cd .. to go one level up. However, this had a weird effect on the terminal. A clear screen on my mac terminal…
Manish Giri
  • 3,562
  • 8
  • 45
  • 81
1 2 3
11
12