Questions tagged [symbols]

can refer to a letter or special character; a primitive data type in many programming languages; an item of the alphabet of a formal language.

Symbol can refer to:

  • A letter or special character, e.g. '@'. Questions about character processing or dealing with specific characters can be tagged with this tag.
  • A primitive data type in many programming languages (Lisp, Prolog, Ruby, Smalltalk etc.)
  • An item of the alphabet of a formal language.
3495 questions
123
votes
5 answers

How to get an outline view in sublime texteditor?

How do I get an outline view in sublime text editor for Windows? The minimap is helpful but I miss a traditional outline (a klickable list of all the functions in my code in the order they appear for quick navigation and orientation) Maybe there is…
user89021
  • 14,784
  • 16
  • 53
  • 65
117
votes
2 answers

How to check if program was compiled with debug symbols?

I'd like to trace some code in GIMP and therefore need GIMP with debug symbols enabled. I don't remember whether I have enabled them during compilation. How to check that without recompiling the program?
Lukasz Czerwinski
  • 13,499
  • 10
  • 55
  • 65
117
votes
12 answers

HTML for the Pause symbol in audio and video control

I'm trying to find the Unicode symbol to make a button display the Unicode pause symbol. I was able to find that the Unicode play symbol is ► but I'm looking for the equivalent of the Unicode pause symbol.
user3081307
  • 1,211
  • 2
  • 10
  • 8
112
votes
18 answers

Displaying the Indian currency symbol on a website

This symbol for the rupee, the currency of India, was approved by the Union Cabinet on 15 July 2010. How can I display it on a website?
JustLearn
  • 3,645
  • 10
  • 29
  • 30
106
votes
4 answers

What is the difference between "gcc -s" and a "strip" command?

I wonder what is the difference between these two: gcc -s: Remove all symbol table and relocation information from the executable. strip: Discard symbols from object files. Do they have the same meaning? Which one do you use to: reduce the…
Tim
  • 1
  • 141
  • 372
  • 590
105
votes
4 answers

When to use symbols instead of strings in Ruby?

If there are at least two instances of the same string in my script, should I instead use a symbol?
Alan Coromano
  • 24,958
  • 53
  • 135
  • 205
104
votes
5 answers

Unfamiliar symbol in algorithm: what does ∀ mean?

I'm reading about an algorithm (it's a path-finding algorithm based on A*), and it contains a mathematical symbol I'm unfamiliar with: ∀ Here is the context: v(s) ≥ g(s) = mins'∈pred(s)(v(s') + c(s', s)) ∀s ≠ sstart Can someone explain the meaning…
devuxer
  • 41,681
  • 47
  • 180
  • 292
96
votes
3 answers

How to deal with symbol collisions between statically linked libraries?

One of the most important rules and best practices when writing a library, is putting all symbols of the library into a library specific namespace. C++ makes this easy, due to the namespace keyword. In C the usual approach is to prefix the…
datenwolf
  • 159,371
  • 13
  • 185
  • 298
96
votes
8 answers

Meaning of *& and **& in C++

I found these symbols in a function declaration several times, but I don't know what they mean. Example: void raccogli_dati(double **& V, double **p, int N) { int ultimo = 3; V = new double * [N/2]; for(int i=0; i < N/2; i++) { V[i] =…
sdffadsf
  • 1,132
  • 2
  • 9
  • 8
95
votes
7 answers

Best way to encode Degree Celsius symbol into web page?

How should I encode special characters into web pages? For instance I need this symbol ℃, which I used just by copying and pasting the character as I can see it now. This worked for the desktop browsers I checked with and also on iPad and iPhone but…
Evanss
  • 23,390
  • 94
  • 282
  • 505
85
votes
6 answers

Regex to remove letters, symbols except numbers

How can you remove letters, symbols such as ∞§¶•ªºº«≥≤÷ but leaving plain numbers 0-9, I want to be able to not allow letters or certain symbols in an input field but to leave numbers only. Demo. If you put any symbols like ¡ € # ¢ ∞ § ¶ • ª or…
MacMac
  • 34,294
  • 55
  • 151
  • 222
85
votes
2 answers

Convert Symbol to a String in Elisp

How can I convert a symbol type into a string in Emacs lisp? I wasn't able to find a symbol-to-string function or anything similar.
Cristian
  • 42,563
  • 25
  • 88
  • 99
85
votes
11 answers

How to understand symbols in Ruby

Despite reading "Understanding Ruby Symbols", I'm still confused by the representation of the data in memory when it comes to using symbols. If a symbol, two of them contained in different objects, exist in the same memory location, then how is it…
Kieran Senior
  • 17,960
  • 26
  • 94
  • 138
84
votes
6 answers

in java what does the @ symbol mean?

I know what it means in a comment for documentation purposes, but outside of that what does it mean? (I would normally just google this but every non letter symbol shows up in results)
ViceVersa666444
  • 861
  • 1
  • 6
  • 4
83
votes
5 answers

Is there a Python equivalent to Ruby symbols?

Is there a Python equivalent to Ruby symbols? If so then what is it? If not then are we stuck with using strings as our keys in dictionaries only?
pylonicon