What's the ¬ key for?

electric ant said:
You'll need to enable Developers console. Go To options -> Advanced options and tick the box. Now it should work.
cheers, also now i have the developer console how do i get a smaller crosshair someone preveously said u have to type something like crosshair_2000 or somthing like that
 
A lot of these keys are only useful for programming. They aren't needed so much these days for your average user but are kept there for legacy reasons since originally you didn't really use a computer for anything but programming/science/maths type things.

(Can you think of anything useful to replace them with? Might as well keep them there, saves programmers needing a different keyboard)
 
Morlan said:
That key beside 1. Any ideas? Google returns nothing :(

The ` symbol that's on the same key is used in UNIX shell programming to enclose a statement which needs to be executed in it's entirety in precedence to anything else on the line - in the same way as you'd deal with parenthesis in algebra.
 
I also use it for negating predicate logic terms, apart from that silly smileys on irc :p

M0KUJ1N said:
{ } brackets are also used to encapsulate loops in a lot of programming languages such as C and Java

Sorta they are scope operators (basically to enclose blocks of code). You don't need to use them to enclose the body of a loop so long as its only one statement.

electric ant said:
I now want to knwo where the straight line is used "|"

Most common usage I guess would be bitwise OR, || logical OR, and the *nix pipe.
 
Last edited:
electric ant said:
Again I think square brackets are used in maths /physics equations where more than one set of brackets are used to distinguish between different parts of the equation.

I now want to knwo where the straight line is used "|"
Press shift+backslash to reproduce this symbol |||||||


I would be absolutely lost without the pipe symbol, |
Its an absolute must for linux purposes. Even remember using it in the ol' MS-DOS days to pipe stuff through "more".

To see it in action, go to start, click run, then type in cmd and hit OK.

This'll bring up a command line. Type the following command in

Code:
C:\>type %WINDIR%\WindowsUpdate.log

See how much text just flies past? Now repeat it as follows:
Code:
C:\>type %WINDIR%\WindowsUpdate.log | more

This time around you're passing the output from the first program (type) into the second program (more). More's purpose in life is to paginate stuff (turn it into pages), so you'll see you have to hit space at the end of each page to get it to scroll on. (hit ctrl + c to quit more unless you have a burning desire to read your windows update logs!)

In Linux I'll often use it something like this:

Code:
grep <string> <logfile> | less

to search through a particular log on a *nix box for a certain string, e.g.

Code:
grep google.co.uk access.log | less

Piping it through less means I can scroll up and down through the results, whilst grep only shows me lines containing the specified string. When you're dealing with 300mb logs its nigh on essential.
 
[] brackets can be used when quoting people, so when parts are chopped out, it makes for sense. Eg.

"... they won't win the Premiership"

becomes

"...they [Chelsea] won't win the Premiership"

... or something along those lines. :p
 
Rivey said:
[] brackets can be used when quoting people, so when parts are chopped out, it makes for sense. Eg.

"... they won't win the Premiership"

becomes

"...they [Chelsea] won't win the Premiership"

... or something along those lines. :p
how is that any different from...

"...they (Chelsea) won't win the Premiership" ? :confused:
 
Bought my new laptop in Austria, which gives me all sorts of crazy keys and shifts all the normal ones about just to confuse me (qwertz anyone?)..

ß, § and ^ are all standard keys, while @ is ctrl+alt+q .. argh!

Still, get used to it after a while, just annoying then switching back to a UK layout on my desktop :p
 
Back
Top Bottom