Ubuntu :: Changing "keypad Delete" From Comma To Period
Jan 10, 2010
I am using Ubuntu 9.10 in U.S. English with a German keyboard layout. Accordingly, pressing the delete button on the numeric keypad will produce a comma, which most applications do not recognize as a decimal. in order to have the key produce a period.
I have tried editing the /usr/share/X11/xkb/symbols/de and changing the line
Code:
include "kpdl(comma)"
in the "basic" section of the file to
Code:
include "kpdl(period)"
which seemed like the perfect solution, but upon restarting an error message pops up and the keyboard layout is changed to U.S. English.
Code:
cd /usr/share/X11/xkb/symbols
xkbcomp -lhlpR '*' -o ../symbols.dir
which does nothing at all if used with sudo and produces an error message if used without. Reverting changes to /usr/share/X11/xkb/symbols/de removes all errors.
Is there something else I need to do to have xkb accept my changes to the file?
Code:
include "kpdl(comma)"
does not specify a symbol to be mapped to the keypad delete key, but rather constitutes a command that integrates a pre-specified option into the layout file. Thus, simply removing the line works perfectly well, even without using the above suggestion to register the change to the file with xkb (or whatever it does).
I would like to use sed or similar to remove everything before the period, but only for the lines 1 and 3 (or lines with a-z.a-z and not a-z = 0-9.0-9.0-9.0-9)
I found a way to do this using:
cat $file | sed 's/[.].*//'
But this 1)remove all the text AFTER the period and not before it, and 2) removes everything after the first decimal of the IP address.
i currently have both xubuntu 10.10 32-bit and windows 7 64-bit installed on my laptop which i use mostly for college work and basic programming (i'm still learning to program).i have a 150gb partition with win7 installed, a 20gb partition with xubuntu installed and a 15gb partition with my linux home folder on, the rest of the space is unused because i thought i may need it for something else in the future.the home folder partition is formatted to etc4, i now have a need to access this data from win7 for college work, i know that windows doesn't support mounting of etc file systems so i have hit a problem.
i thought about changing the type of partition from a ect4 to fat32 but will this delete my data? or ,are there any third party software packages for windows that will allow me to mount ect4?
My ubuntu was working well for the past few months, and suddenly my numeric keypad wont work now. the num lock's light toggles, but there is no input on the screen while typing.
i'm trying to get several strings from a single string, separated by comma's.there are comma's that do not separate strings, however, those enclosed in parantheses.an example would be:vt, word1, (word2, word3)word4
exploding by ',' would result in: [0]=>vt [1]=>word1
how to permanently disable the 'Pointer can be controlled using the keypad' accessibility function?There was a post about it on launchpad, that I used before and since updating to 9.10 I can't find it.It may be a Gnome bug, and its getting very irritating - maybe 10 - 12 times a day...
After changing the keyboard the numeric keys do not work using mandriva 2010.2. It works ok on windows xp and puppy linux. Under puppy linux the setting is pc 101. Mandriva the setting is Generic 105 key (intl) PC Have tried a few different options.
I have a fairly long list of data that I am trying to put into a math program (maple) but before I can do that I need to edit the format of the data such that at the end of every 25th line I add a comma. I would prefer a solution that uses vi, but if that's impossible sed would be fine also (or awk).
sometimes there are one, sometime there are two exchanges in this log file. the 100= is the stock exchange- if there are two, they are seperated by a comma. i understand how to escape a comma in a regex, but I am having trouble with combining it.
I'm trying to compose a line of numbers each single digit taken from a variable eg: 1010001 each variable digit is either a 0 or 1 made from variable layer1 through 7. I need to add each layer variable to the last to compose the number with no commas or spaces and add it directly after the -p option in the show_command line. I used array and list and the commas mess up the command and inserting "pens" in the show command interpertes it literally instead of the list or array value? The insert should look something like 1000110
I've noticed a bit of a problem here in the last few days...after some point, my numeric keypad stops being a numeric keypad; instead, it controls the mouse (5 right clicks, and the outer keys move the cursor in the appropriate direction). It doesn't appear to happen on boot, as I generally type the numeric bits of my password with the keypad, but some point after. The only common events I can think of where this has occurred is either after connecting to the system via SSH, or after swapping to tty1 (which usually requires re-enabling of numberlock for the terminal to recognize digits, again for the password). No matter what state the NumLock is in (off or on) at this point, the keypad fails to function as a keypad.
A couple of weeks ago, my keypad stopped working. Not only the numbers, but all keys there. I heard it is a setting in Gnome, but I can't seem to find it.
How does one switch between command line and keypad modes when using the jed editor with EDT emulation?
OpenVMS User's Manual states that when using the EDT editor if the user wants to control EDT using the keypad, the mode needs to be set for keypad rather than command line input:
I am using:
with this .jedrc file:
Using the -batch shows that the .jedrc file is correctly located.
need to monitor pecific processes over a time frame in terms of the amount of memory and cpu usage it utilizes. I can do this using the top -p <pid> option and using ps to retrieve the pid's. However, seeing that the pid's might differ and it needs to be run on about 13 different machines, I would like to write a script for this that can be run at set intervals. My problem that I have is this:
- When running top -p <pid> I can specify a comma seperated list of the processes required to monitor at that specific time.
- I can use ps -ef | grep <process> | grep -v grep| awk '{ print $2 }' to retrive the list of pid's and output this to a file.
However, how can I output these to the file as a comma seperated list without having to manually do this every time? The reason for this is (an example), lets say I want to monitor the cpu and memory usage of postgresql as well as all its child processes, then I would ps grep for postgres and get the list of pid's for instance.This list then needs to be passed to top -p as a comma seperated list of pid's I suspect that awk or sed might have some options available for this but I do not know this well enough.
I have a file of the formcol1, col2, $330,000, col4 ...col1, col2, col3, col4 ..col1, col2, $230,000, col4 ...The comma within the currency value causes the column to display unevenly when I open it so I want to remove it. I think I should be able to use the sed command but I am not sure extactly how. All the values have 3 digits after the $ and before the , so have triedsed -e 's/$[0-9]*,/ but I am not sure how to 'replaced with the string found just without the comma'So two guestions:1. Is this a good way to do it?2. How do I do it
I have a plain text file with 360 lines of varying length text. How do I add a comma or other symbol to the end of each line so that I can convert the file to csv format that I can open in a spreadsheet (45 rows, 8 columns). That means each 8 lines of text forms 8 columns, with 45 rows.
The issue i found is that when i connect from ubuntu to windows 2003 server, through rdesktop, using the numeric keypad disables automatically the caps lock setting.To reproduce the problem :
- connect to a windows remote pc through rdesktop - open notepad - press caps lock to set the capital letters
[code]....
The result is :
ADKLEFL2390309ajkejkjf
The caps lock has been silently deactivated. Only ubuntu clients are affected by this. I think it's a bug of rdesktop.
I have a problem with GDM, I'll explain: When system boot up and GDM show up, always need to press the NUM LOCK key for numeric keypad, for any reason this is disable always
I have been searching previous posts but could not find an example which works with my data. I think I might be the spaces in my fields. I have a massive data file and need to join 5 line blocks separated by a comma.
I have a CSV file that's created in an application that can't output lines longer than 250 characters. the data fields, all together, are longer than this. how would I remove the line break from every line that ends with a comma? For example: