Getting valid Timezone and keyboard language lists in linux - linux

I'm currently working on a project where I need to give the user the ability to select a timezone and a keyboard layout. My approach to this would be to give them the options in the traditional way ie: via a combo box. However After having difficulty in obtaining valid timezone options and keyboard language options from the command line I'm wondering if such commands exist, or if there is even a way to get these lists without having to trail through the directories and retrieve them one by one.
Any help or clarification on this would be appreciated.
For completeness: i'm working on ubuntu 10.04.
Cheers
Chris

Related

Awesome WM help popup messed up (possible soluction with new function)

NOTE: I just started to use awesome not very long ago, and don't really know the lua programming language.
I cloned HikariKnight's awesome theme and started to customize the hotkeys. I have a logitech keyboard that has some launcher keys that will open you default apps (on windows that is). I wanted to make them open the default apps here, so I edited the config. Now the help menu has the name of some of the keys repeated over and over for no apparent reason.
If anyone could help me fix this that would be awesome.
Possible Solution(?)
I might be able to use the new function to use the hide_without_description option. This wouldn't be ideal though as it would just remove the hotkey from the help menu.
I found the documentation for it here, but don't know how to use the new function.
https://www.reddit.com/r/awesomewm/comments/mgqq95/messed_up_help_menu/gszd5u0/?utm_source=reddit&utm_medium=web2x&context=3
To quote PlatformKnuckles:
I think I see the problem. Check the line in the keybindings file:
for i = 1, 9 do
You're starting the keybindings in a loop multiple times.
(I didn't look at your rc.lua at all. I just assume the answer above is correct.)

Can't prompt the user to pick a room with Revit Python Shell

Using the Revit Python Shell, I'm trying to prompt the user to pick a room.
I've been reading and implementing the method described here Revit Python Pick Object / Select Object .
It works fine, but using that I can only select walls, floors, doors, etc. .. but not rooms. Why is that ?
Outside the shell, I can perfectly well select the rooms.
Other tutorials seem to indicate that it shouldn't be a problem, see http://usa.autodesk.com/adsk/servlet/index?id=16509155&siteID=123112 for instance.
Thanks a lot for any help !
Arnaud.
PS: I can select the room tag, but it seems to be a dead end to access the room from there (?)
Your own comment is the perfect answer. In many situations, several superimposed objects might be selected by one single click. You can use the tab key to cycle through them. Specifying a selection filter for the specific type of object you are interested in or even specific detailed properties on it enable you to avoid the requirement for tabbing through the other unwanted objects.

Change Keyboard Mapping

Hello and thank you in advance,
I am wondering if there is a way to change the layout of my keyboard (software-wise).
The problem is that, on my laptop's keyboard, the Page Up and Page Down keys are combined with the Home and End keys respectively (i.e. to use Home, I have to use the command fn+PgUp/Home).
Is there a way for me to switch what my keyboard receives in Windows 8? If I press the PgUp/Home key I would like the Home command to be entered, and if I entered fn+PgUp/Home I would like the PgUp command to be entered.
I have tried googling for this using several different keywords, but haven't been able to find anything.
Any help is appreciated,
Zach
This is a duplicate question.
You can find an answer here:
https://superuser.com/questions/694465/remapping-a-keyboard-key-in-windows-8-1
Keep in mind this does require registry edits which can be dangerous and can lead to critical failures if not done correctly. Always create a restore point before making any registry edits.

How to make a program skip the task bar (task list) in GNU/Linux?

I'm coding a demon like program from Gambas on Ubuntu 13.10.
This is a GUI application which becomes visible when the user hits specific key.
Therefore, I don't want this program to appear on the task bar.
Is there a way I can bypass it? (Maybe from a Bash trick or a Gambas code?)
Thanks! :)
You need to add _NET_WM_STATE_SKIP_TASKBAR atom to _NET_WM_STATE - see 'Application window properties' part of emwh spec.
I don't know at all gambas, but what you want is the following for gtk (in python):
window.set_property("skip-taskbar-hint", True)
or for QT:
setWindowFlags(QtCore.Qt.SplashScreen)
basically, you need to find a way to change the properties or flags for the windows you want to display. Look at the API of the windows in gambas

QFileDialog problem (native: fast but no input field; non-native: has input field but slow)

This seems a known problem but I have not found a good workaround. I like the style of the
non-native QFileDialog, especially the feature that allows the user to input the path directly
which is very convenient since the user can easily copy/paste the folder/file name from other applications. However, it seems very slow when the dialog is first launched. The native option
is quite responsive but the problem is that it does not provide an input field so for the user to select a folder he/she has to walk into the directory, which can take many mouse clicks and is not fun. I am not sure if you have experienced similar problem or if I miss something.
BTW, my PyQt version is 4.4.3 and I am working on Windows XP.
Thanks,
Bing

Resources