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.
Questions tagged [tilde]
171 questions
0
votes
1 answer
Replacing tilde with $HOME in simple shell
I am writing a simple Unix shell in C. Here's what I have so far.
#include
#include
#include
#include
int main() {
char x[256], y[256], z[256];
while (1) {
getcwd(y, sizeof(y));
…

Babkock
- 47
- 1
- 5
0
votes
1 answer
How to execute an ObjectQuery
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…

TugboatCaptain
- 4,150
- 3
- 47
- 79
0
votes
1 answer
Python removing lines that contain more then one tilde
I'm kind've stuck on this problem! I have a massive text file (3 million lines or so) and I need to remove any lines that contain more then one tilde. Could someone be as kind to help me out! Please and thank you .
Here is what I have so far:
import…

lsch91
- 335
- 3
- 11
0
votes
1 answer
sub tilde in latex
in latex with \tilde{x} put ~ over x.
how I can put ~ down x ?

JuanPablo
- 23,792
- 39
- 118
- 164
0
votes
3 answers
Read and write files with accents
I have an input file in XML format and it is well formed, with accents well written. The file is created with a PHP script that works fine.
But when i read the XML File and write it in another XML using a Java program, it puts strange characters…

mrcoar
- 146
- 3
- 17
0
votes
3 answers
Use backtick/Grave/Tilde as modifier key
I'm looking for a way to create keyboard shortcuts in Linux using backtick (`) / tilde (~) key and some other key. In an ideal case:
pressing tilde down does nothing
pressing another key while the tilde is pressed down triggers a (customizable)…

burt
- 41
- 4
0
votes
3 answers
How do you use bitwise operators, masks, to find if a number is a multiple of another number?
So I have been told that this can be done and that bitwise operations and masks can be very useful but I must be missing something in how they work.
I am trying to calculate whether a number, say x, is a multiple of y. If x is a multiple of y great…

lauren
- 11
- 4
0
votes
2 answers
bash script problem, find , mv tilde files created by gedit
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 {}…

Ke.
- 2,484
- 8
- 40
- 78
0
votes
1 answer
Getting negative on test for HOME directories with tilde ~ expansion
I am getting a weird error, can't seem to figure out why.
Especially because it works in one place but not in another scenario.
I have his code that checks whether these directories exist -
and the HOME dirs with ~ is failing in this code…

mono-dr
- 217
- 1
- 2
- 9
0
votes
0 answers
Rscript called from PHP does not shows tildes/accents
I have an script in R named myplots.R, that produce a few plots (graphs, etc).
If I call this script with Rscript from the Linux SHELL:
Rscript myplots.R
It create my plots correctly, showing accents, tildes, special chars, etc.
Then, in PHP I…

ManuParra
- 1,471
- 6
- 18
- 33
0
votes
1 answer
How to set two tokens to one string in C++ that is tilde delimited?
I want to set two tokens so that every time a EBO has a DWG then I would want to either load them both to a array or write them both out to a text file with some sort of delimiter. In C++
Sample…

user3334061
- 1
- 2
0
votes
1 answer
How to assign a letter to my project path?
Instead of doing this every time
String[] subject = File.ReadAllLines("C:\\Users\\VVIT\\Downloads\\notifications\\Mynotifications\\subjects.txt");
Just need to do this:
String[] subject =…

sivavvit
- 21
- 1
- 3
0
votes
2 answers
In Terminal, what's the difference between "cd /" and "cd ~"?
I don't understand the difference between these two. They both seem to take me to the root directory. Are there differences?

user1653667
- 21
- 1
0
votes
1 answer
How to have same storyboard name for iPhone & iPad in multiStoryBoard Universal App?
I am creating a multiple storyboard app. On basis of requirement, I am using different story board at different instances. for supporting it all devices, I have to write my code like this:
if ([[UIDevice currentDevice] userInterfaceIdiom] ==…

Prince Agrawal
- 3,619
- 3
- 26
- 41
0
votes
2 answers
jQuery img relative path / src using ~
I am working on VS2010 asp.net MVC project and changing dynamically an image/icon with the following jQuery call.