[solved]DWM rules for opening terminal based apps

These are the rules that I have in my dwm config.h
The ncurses apps that open in the terminal do not follow the rules. How can accomplish this?
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, True, -1 },
{ "Firefox", NULL, NULL, 1 << 3, False, -1 },
{ "Pcmanfm", NULL, NULL, 1 << 1, False, -1 },
{ "ranger", NULL, NULL, 1 << 6, False, -1 },
{ "mutt", NULL, NULL, 1 << 7, False, -1 },
{ "ncmpc", NULL, NULL, 1 << 8, False, -1 },
Last edited by derrickcope (2015-05-02 05:26:14)

thanks for the suggestion. xprop just sees them as "terminator". When I start them with -T "title" then xprop sees them with "title".
When I used the -T switch in .xinitrc and then changed my rules to
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, True, -1 },
{ "Firefox", NULL, NULL, 1 << 3, False, -1 },
{ "Pcmanfm", NULL, NULL, 1 << 1, False, -1 },
{ "ranger", NULL, "ranger", 1 << 6, False, -1 },
{ "mutt", NULL, "mutt", 1 << 7, False, 2 },
{ "ncmpc", NULL, "ncmpc", 1 << 8, False, 2 },
They are still opening on the first monitor and not on the tag I set. I am not sure I am doing it correctly. Should I write terminator as the class?

Similar Messages

  • [solved] dwm rule to launch IPython with a specific tag

    I'm customizing rules for dwm in config.h, but I'm having trouble getting a rule to work with IPython3 qt console. I launched the app with "ipython3 qtconsole" (from dmenu), ran the shell script from dwm's site (http://dwm.suckless.org/customisation/rules) to get the properties:
    xprop |awk '
    /^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print}
    /^WM_NAME/{sub(/.* =/, "title:"); print}'
    which gives me these properties:
    title: "IPython"
    instance: ""
    class: ""
    I set my rule in config.h like this:
    static const Rule rules[] = {
    { "IPython", NULL, NULL, 1 << 3, False, -1 },
    rebuilt dwm, and restarted my X-server. But, when I launch "ipython3 qtconsole", the console shows up on the currently viewed tag, not tag 4. Is this the correct rule? I've tried variations like IPython3, Ipython, ipython3, etc. to no avail.
    Last edited by pythonscript (2013-10-12 12:42:35)

    Have you tried it using the title field?
    { NULL, NULL, "IPython", 1 << 3, False, -1 },

  • How to define an aggregation rule for a dimension based on bridge table?

    Hello,
    I need a solution for aggregating data correctly when using a dimension based on a set of dimensione tables containing a bridge table. Please find below a description of my business case and the OBIEE model which I’ve created thus far.
    Business Case
    The company involved wants to report on the number of support cases, the different types of actions that were taken and the people involved in those actions. One support case will undergo a number of actions (called ‘handelingen’) until it is closed. For each action at least one person is involved performing a specific role, but there can also be multiple persons involved with 1 action, each performing a different role for that action. This is the N : N part of the model.
    The problem that I face is visible in the two pictures below:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/sample.png
    As long as I don’t include anything from the Dimension Meelezer in my report, I get the correct number of handelingen (7). When I include the person (called ‘Meelezer’), the measuere per action is multiplied by the number of persons/roles involved with that action.
    When I changed the Aggregation rule in the report column #Handelingen to ‘Server Complex Aggregate’ I do get the correct endtotal:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/sample2.png
    I believe it should be possible to define in the repository a different aggregation rule for individual dimensions, but I’ve not been able to achieve this.
    Explained below is what I have created in my Physical and Business Model & Mapping layers:
    The Physical Model is built like this:
    (This is just a small part of a much larger physical model, but I’ve only included the most relevant tables)
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/PhysicalDiagram-1.png
    The Fact table (ALS Feit Zaakverloop) contains FK’s for the action (FK_HANDELING, joined to ALS Dim Handeling), the date the action took place (FK_DATUM_ZAAKVERLOOP, joined to ALS Dim Datum Zaakverloop) and the uniqe group of people involved (FK_MEELEZERS, joined to ALS Groep Meelezers) and a measure column (SUM_HANDELINGEN) populated with the value ‘1’ for each row.
    The Bridge table (ALS Brug Meelezer/Reden Meelezen) contains three FK’s: FK_GR_MEELEZERS (joined to ALS Groep Meelezers), FK_MEELEZER (joined to ALS Dim Functionaris) and FK_REDEN_MEELEZEN (joined to ALS Dim Reden Meelezen).
    The Business Model
    In the business model, the four physical tables for the N:N relation have been combined into one logical dimension table.
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/BusinessModel-1.png
    DIM Meelezer contains one LTS in which the four physical tables have been combined:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/LTS1.png
    And all the required locical columns have been created:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/LTS2.png
    DIM Meelezer has also been identified as a bridge table and a Business Key has been defined on a combination of the FK’s in the bridge table and business codes of the two dimension tables.
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/BMDIM.png
    Next a hierachy was created for Dim Meelezer:
    http://i84.photobucket.com/albums/k24/The_Dutchman_2006/OBIEE/Hier.png
    In Feit Zaakverloop, a measurement called ‘# Handelingen’ was created using SUM_HANDELINGEN, with an aggregation rule of SUM.
    In the LTS of both the DIM Meelezer and Feit Zaakverloop, the Logical Content Levels have both been set to: LVL Detail – Meelezer.
    Please provide suggestions that will NOT require changes to the physical datamodel as they would require too much time to achieve (or at leats would not be ready before my deadline.
    Thanks!
    Edited by: The_Dutchman on Dec 13, 2011 11:43 AM

    Hmm, no replies yet...
    Am I in 'uncharted territory' with this issue?

  • The final end for FileMaker Runtime based Apps ???? "Unsupported Architectu

    Finally we made it, packaged our Filemaker 11 Runtime based App, certified it, tested the installer and uploaded it to iTunes Connect successfully.
    But now we get "Invalid binary":
    Unsupported Architecture - Application executables may support either or both of the Intel architectures:
    • i386 (32-bit)
    • x86_64 (64-bit)
    Other architectures may not be included in submitted binaries. Confirm that your Xcode project's build settings include those architectures and no others.#
    Since we didn´t program or compile the FileMaker 11 Runtime, we can´t change any project build settings. And now ?
    Is this the end for any FileMaker Runtime based Apps ? Is Apple really not supporting Apps built with the database from it wholly owned subsidiary ? Can´t believe it ...

    Well, I have to admit, I know nothing about FileMaker.... does this help?
    Maybe you need FileMaker Go to do a runtime on iOS now?
    http://help.filemaker.com/app/answers/detail/a_id/7822

  • [SOLVED] dwm + gkrellm. gkrellm in all tags + apps not over it

    hi! i'm using dwm right now, and it's here to stay in my config, but i'm a convert from fluxbox, and on it, i used to run gkrellm, it was beautifull to have it showed in every desktop, so right now i think if it's posible to have gkrellm in dwm, in the exact same behavior, so it shows in every tag, and the opened apps, dont get over it, like the slit in fluxbox...
    here's my config.h, i've added gkrellm to the floating apps list, but don't know how to edit it so gkrellm show in every tag
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    /* static const char font[] = "-*-terminus-medium-r-normal-*-18-*-*-*-*-*-*-*"; */
    static const char font[] = "-*-fixed-medium-r-*-*-18-*-*-*-*-*-iso8859-*";
    static const char normbordercolor[] = "#111111";
    static const char normbgcolor[] = "#000000";
    static const char normfgcolor[] = "#ffffff";
    static const char selbordercolor[] = "#777777";
    static const char selbgcolor[] = "#222222";
    static const char selfgcolor[] = "#ffffff";
    static unsigned int borderpx = 1; /* border pixel of windows */
    static unsigned int snap = 32; /* snap pixel */
    static Bool showbar = True; /* False means no bar */
    static Bool topbar = False; /* False means bottom bar */
    /* tagging */
    static const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static Rule rules[] = {
    /* class instance title tags mask isfloating */
    { "Gimp", NULL, NULL, 0, True },
    { "Firefox", NULL, NULL, 1 << 8, True },
    { "MPlayer", NULL, "MPlayer", 0, True },
    { "feh", NULL, "feh", 0, True },
    { "glxgears", "glxgears", "glxgears", 0, True },
    { "vlc", NULL, "vlc", 0, True },
    { "xine", NULL, "xine", 0, True },
    { "gkrellm", NULL, "gkrellm", 0, True },
    { "galculator", NULL, NULL, 0, True },
    { "xcalc", NULL, NULL, 0, True },
    { "winff", NULL, "winff", 0, True },
    { "snes9x", NULL, "snes9x", 0, True },
    /* layout(s) */
    static float mfact = 0.55;
    static Bool resizehints = True; /* False means respect size hints in tiled resizals */
    static Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    /* key definitions */
    #define MODKEY Mod1Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmda[] = { "urxvt", NULL };
    static const char *termcmdb[] = { "urxvt", "-sh", "50", NULL };
    static const char *amixcmdua[] = { "amixer", "-q", "set", "PCM", "20+", NULL };
    static const char *amixcmdda[] = { "amixer", "-q", "set", "PCM", "20-", NULL };
    static const char *amixcmdub[] = { "amixer", "-q", "set", "Front", "10+", NULL };
    static const char *amixcmddb[] = { "amixer", "-q", "set", "Front", "10-", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY, XK_Return, spawn, {.v = termcmda } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmdb } },
    { MODKEY, XK_z, spawn, {.v = amixcmdda } },
    { MODKEY, XK_x, spawn, {.v = amixcmdua } },
    { MODKEY|ShiftMask, XK_z, spawn, {.v = amixcmddb } },
    { MODKEY|ShiftMask, XK_x, spawn, {.v = amixcmdub } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY|ControlMask, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY, XK_q, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be a tag number (starting at 0),
    * ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmda } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    THANKS!!
    Last edited by leo2501 (2008-08-08 11:01:14)

    i will answer myself, someone get me the "key" in the ML. lol...
    On 8/4/08, Anselm R Garbe <[EMAIL PROTECTED]> wrote:
    > Also you might patch dwm.c to leave some space on the right for the
    > window, e.g. in updategeom:
    >
    > wh-=200;
    decreasing window area height would leave space at the _bottom_
    ww-=200;
    is probably what you meant
    Anselm R Garbe
    Mon, 04 Aug 2008 04:29:45 -0700
    You need to define a rule to make it floating and tag it with all tags.
    { "gkrellm",  NULL,       "gkrellm",  ~0,            True },
    Also you might patch dwm.c to leave some space on the right for the
    window, e.g. in updategeom:
    wh-=200;
    Kind regards,
    Anselm
    Rickard Gustafsson
    Mon, 04 Aug 2008 04:28:39 -0700
    { "gkrellm",  NULL,       "gkrellm",  (1 << 9) - 1,            True },
    or you could just replace (1 << 9) - 1 with 511.

  • [solved]sonata won't open (terminal output inside)

    I am new to Arch, after using Ubuntu for a few months.. this is the first problem that i have run into that i can't' figure out how to fix.
    I am trying to use the mpd client "Sonata"  but it doesn't open for me.  When i do it in the terminal, i get this output:
    (sonata:16223): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
    No protocol specified
    /usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
    warnings.warn(str(e), _gtk.Warning)
    /usr/lib/python2.5/site-packages/sonata.py:7532: Warning: invalid (NULL) pointer instance
    gtk.Window.__init__(self, gtk.WINDOW_POPUP)
    /usr/lib/python2.5/site-packages/sonata.py:7532: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
    gtk.Window.__init__(self, gtk.WINDOW_POPUP)
    Taglib and/or tagpy not found, tag editing support disabled.
    ZSI not found, fetching lyrics support disabled.
    Python 2.5 or python-elementtree not found, audioscrobbler support disabled.
    Sonata failed to connect to the D-BUS session bus: Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)
    Traceback (most recent call last):
    File "/usr/bin/sonata", line 47, in <module>
    app = sonata.Base()
    File "/usr/lib/python2.5/site-packages/sonata.py", line 331, in __init__
    self.enc = locale.getpreferredencoding()
    File "/usr/lib/python2.5/locale.py", line 512, in getpreferredencoding
    setlocale(LC_CTYPE, "")
    File "/usr/lib/python2.5/locale.py", line 476, in setlocale
    return _setlocale(category, locale)
    locale.Error: unsupported locale setting
    i tried to search for the answer, but honestly, i don't even know what to search for in this case.  I am using KDEmod as DE and can give any other information about my system if needed. 
    can someone please try to help me out with this?
    mrcold
    Last edited by mrcold (2008-01-24 18:51:30)

    Roberth wrote:
    snozle wrote:I am having the same issue but fixing my locale doesn't seem to work (I also have dbus in my daemons in /etc/rc.conf)
    Did you start dbus? adding it to the daemons field in rc.conf only make it start up at boot.
    I've since restarted.
    [EDIT FIXED] I changed my ~/.config/openbox/autostart.sh to exclude foreign language support
    Last edited by snozle (2008-02-07 08:14:41)

  • [Solved] Have Cron Job Open Terminal Window

    I want to run a ping script every morning to check the liveliness and latency of specific servers. The script itself works fine but I can't figure out how to have cron open up a terminal window so I can see the script running.
    This is what I have so far:
    #runs /home/bran/pingservers.sh everyday at 8:30 am
    10 10 * * * env DISPLAY=:0 konsole -e ~/pingservers.sh
    But it doesn't open anything I don't even know if the job is even executing.
    Last edited by brando56894 (2013-05-20 14:25:42)

    I am unsure how to get the script to open a terminal, but the journal should have some information on whether the script is running or not and if there are any errors.
    brando56894 wrote:
    I don't even think cron jobs are running at all. I changed my job to
    1 * * * * /bin/echo hello world
    and it hasn't done anything...
    As far as the job above, I just wanted to note that you have it set to run on the first minute of every hour. If you were looking for every second minute, you would want the following:
    */1 * * * * /foo/bar
    Last edited by BluMongoose (2013-05-14 22:01:48)

  • [SOLVED] udev rules for U2F FIDO Plug-up key

    I just received a cheap U2F FIDO key (http://www.amazon.com/Plug-up-Internati … 00OGPO3ZS/) but couldn't use it under Chrome 38. I had to add the following rule to /etc/udev/rules.d/45-u2f.rules
    SUBSYSTEM=="hidraw", MODE="0666", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="f1d0"
    and then issued a
    # sudo udevadm trigger
    Should work with other vendors assuming you change the idVendor and idProduct.
    Have fun!

    LukeHandle wrote:Was thinking about the same device, what are you thoughts on it so far? I was mostly concerned with the price and how that translated to the quality, or lack thereof.
    The device for which I sent a link for is cheap one and when you receive it actually looks cheap but does the job. Initially I thought I needed to install the FIDO U2F Chrome extension https://chrome.google.com/webstore/deta … ionmgcdmne but it works just fine without it assuming you are using Chrome or Chromium 38+ and the above udev rule on ArchLinux (not required on Windows and MAC OS).
    Use case is fairly limited so far since it can only be used on Google account. I tried to use this Plug-Up U2F dongle on Yubico U2F demo page http://demo.yubico.com/start/u2f/neo but it doesn't work and thus even with the FIDO U2F Chrome extension...Weird since I thought all U2F will all be compatible. Since the protocol is open I hope other use cases will arise such as more major supported websites, easy integration in existing frameworks such as Wordpress, Roundcube... but also alternative uses such as 2nd factor authentication for disk encryption (LUKS).

  • [Solved] iptables rules for machine running as openvpn server

    I set up an older laptop as an OpenVPN server for my home network (and a dwarffortress server, but that's beside the point).  This is the first time I've set something like this up - I wanted a secure way of being able to ssh into my home network from outside. 
    In any case, I got it working (finally figured out I needed to port forward 1194 on my router), but I wanted to make sure that my iptables-rules look reasonable:
    # Generated by iptables-save v1.4.21 on Sun Dec 28 02:16:10 2014
    *nat
    :PREROUTING ACCEPT [3:517]
    :INPUT ACCEPT [3:517]
    :OUTPUT ACCEPT [0:0]
    :POSTROUTING ACCEPT [0:0]
    -A POSTROUTING -s 192.168.88.0/24 -o wlp3s0 -j MASQUERADE
    COMMIT
    # Completed on Sun Dec 28 02:16:10 2014
    # Generated by iptables-save v1.4.21 on Sun Dec 28 02:16:10 2014
    *filter
    :INPUT ACCEPT [323:24107]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [152:13348]
    -A INPUT -i tun+ -j ACCEPT
    -A FORWARD -i tun+ -j ACCEPT
    -A FORWARD -s 192.168.88.0/24 -j ACCEPT
    -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
    COMMIT
    # Completed on Sun Dec 28 02:16:10 2014
    Last edited by emacsomancer (2014-12-29 21:32:25)

    bleach wrote:
    look at your filters you accept everything
    :INPUT ACCEPT [323:24107]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [152:13348]
    a better way would be to block everything but outgoing and then open ports and such.
    :INPUT DROP
    :FORWORWOD DROP
    :OUTPUT ACCEPT
    then your current(92.168.88.0/24 -j ACCEPT) forwarding will go through but not other things.
    some good articles on iptables; iptables,simple stateful firewall
    Ok, this is my modified setup:
    # Generated by iptables-save v1.4.21 on Mon Dec 29 03:36:02 2014
    *filter
    :INPUT DROP
    :FORWARD DROP
    :OUTPUT ACCEPT
    -A INPUT -i tun+ -j ACCEPT
    -A INPUT -i wlp3s0 -p udp -m udp --dport 1194 -m state --state NEW -j ACCEPT
    -A INPUT -s 192.168.1.0/24 -i wlp3s0 -p tcp -m tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT
    -A FORWARD -i tun+ -j ACCEPT
    -A FORWARD -s 192.168.88.0/24 -j ACCEPT
    -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A OUTPUT -o wlp3s0 -p tcp -m tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT
    COMMIT
    # Completed on Mon Dec 29 03:36:02 2014
    # Generated by iptables-save v1.4.21 on Mon Dec 29 03:36:02 2014
    *nat
    :PREROUTING ACCEPT [389:94808]
    :INPUT ACCEPT [1:60]
    :OUTPUT ACCEPT [1:72]
    :POSTROUTING ACCEPT [1:72]
    -A POSTROUTING -s 192.168.88.0/24 -o wlp3s0 -j MASQUERADE
    COMMIT
    # Completed on Mon Dec 29 03:36:02 2014
    I added in lines to allow for SSH within my internal network.  But now I am unable to make a OpenVPN connection from outside...what could be wrong?

  • Rules for applying discounts based on dynamic values

    Hi there!
    I´m studying the discount features offered by the weblogic portal and I was puzzled by a limitation on the platform that I could not solve. If I have two discounts that could be applied in an item and I want to decide between them based on runtime values (discount value, order total price, etc...) how can I do that ? And if they are cumulative discounts that could be applied in a single product in my shopping cart and are of the same type (item discount or order discount or freight discount), can I do that ? I could not see a way of doing that without beeing intrusive(reimplementing internal classes) or doing it externally creating my own custom classes... Does anyone see a way of doing that ? (I´m using WLP 8.1 SP 3)
    thank´s for your help,
    EE
    Message was edited by:
    eduardo.earp
    Message was edited by:
    eduardo.earp

    based on user authorizationThat is already standard Apex functionality.
    and values in a tableYou can use jQuery to hide a tab. So, you create a tab in Apex, but hide it when necessary when running the page. Something like:
    if (<some condition>) {
       $("#tab_id").hide();
    };Put this in the "Execute when Page Loads" in the JavaScript section on the Page definition.

  • [solved] udev-rules for bluetooth PCMCIA

    My plan:
    get my bluetooth-PCMCIA card to work:
    CONCEPTONIC CBT100C
    Problem:
    I have to issue the following command for it to work:
    #hciattach ttyS0 bcsp
    Therefor I wrote following udev-rule that doesn't work:
    ##/etc/udev/rules.d/05-bluez-pcmcia-support.rules
    SUBSYSTEMS=="pcmcia", ATTRS{prod_id2}=="Bluetooth Card", RUN+="/usr/sbin/hciattach ttyS0 bcsp"
    My Question:
    Could someone explain to me why this rule does not work?
    Info:
    #pccardctl info
    PRODID_1="PCMCIA"
    PRODID_2="Bluetooth Card"
    PRODID_3=""
    PRODID_4=""
    MANFID=0279,950b
    FUNCID=2
    after #hciattach ttyS0 bcsp
    #udevinfo -a -p /sys/devices/pci0000\:00/0000\:00\:1e.0/0000\:06\:09.0/0.0/tty/ttyS0/
    KERNEL=="ttyS0"
    SUBSYSTEM=="tty"
    DRIVER==""
    ATTR{dev}=="4:64"
    looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:06:09.0/0.0/tty':
    KERNELS=="tty"
    SUBSYSTEMS==""
    DRIVERS==""
    looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:06:09.0/0.0':
    KERNELS=="0.0"
    SUBSYSTEMS=="pcmcia"
    DRIVERS=="serial_cs"
    ATTRS{modalias}=="pcmcia:m0279c950Bf02fn00pfn00pa281F1C5Dpb7664FB1Dpc00000000pd00000000"
    ATTRS{prod_id2}=="Bluetooth Card"
    ATTRS{prod_id1}=="PCMCIA"
    ATTRS{card_id}=="0x950b"
    ATTRS{manf_id}=="0x0279"
    ATTRS{func_id}=="0x02"
    ATTRS{pm_state}=="on"
    ATTRS{function}=="0x00"
    looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:06:09.0':
    KERNELS=="0000:06:09.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="yenta_cardbus"
    ATTRS{msi_bus}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{enable}=="2"
    ATTRS{modalias}=="pci:v00001180d00000476sv0000144Dsd0000C01Ebc06sc07i00"
    ATTRS{local_cpus}=="f"
    ATTRS{irq}=="16"
    ATTRS{class}=="0x060700"
    ATTRS{subsystem_device}=="0xc01e"
    ATTRS{subsystem_vendor}=="0x144d"
    ATTRS{device}=="0x0476"
    ATTRS{vendor}=="0x1180"
    looking at parent device '/devices/pci0000:00/0000:00:1e.0':
    KERNELS=="0000:00:1e.0"
    SUBSYSTEMS=="pci"
    DRIVERS==""
    ATTRS{msi_bus}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{enable}=="1"
    ATTRS{modalias}=="pci:v00008086d00002448sv00000000sd00000000bc06sc04i01"
    ATTRS{local_cpus}=="f"
    ATTRS{irq}=="0"
    ATTRS{class}=="0x060401"
    ATTRS{subsystem_device}=="0x0000"
    ATTRS{subsystem_vendor}=="0x0000"
    ATTRS{device}=="0x2448"
    ATTRS{vendor}=="0x8086"
    looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
    ATTRS{uevent}==""
    #dmesg
    pccard: PCMCIA card inserted into slot 0
    cs: memory probe 0xb4000000-0xb40fffff: excluding 0xb4000000-0xb400ffff
    pcmcia: registering new device pcmcia0.0
    ttyS0: detected caps 00000700 should be 00000100
    0.0: ttyS0 at I/O 0x400 (irq = 3) is a 16C950/954
    Last edited by mehldutt (2007-08-07 18:04:37)

    I called it
    05-bluez-pcmcia-support.rules
    I rebooted but still no success.
    I also tried this:
    ACTION=="add", SUBSYSTEMS=="pcmcia", ATTRS{prod_id2}=="Bluetooth Card", RUN+="aplay /usr/share/sounds/phone.wav"
    But still no success

  • I can't open web based apps while on a call. ex; browser,app store,weather

    I thought I could browse the web, look through apps in the app store, even look at the weather app that comes with the iPhone, whilst on a call. Usually, no can do. --I've closed out all apps (using ios4 on a 3gs), still no luck. Restarted phone, no luck. I'm one of those silly little idiot users when it comes to electronics...so, of course I love the simplicity of Apple products. I just hope this is an easy fix or there is an easy answer to this issue. Thanks.

    It's usually if not always connected to our wifi. there was a time when this wasn't an issue, about 5 months ago or so. (before ios4, of course.) I just don't understand what the "sudden" problem was. Prior to the update, it started with Safari loading slowly, while on calls. Then, Safari wouldn't work at all while on a call AND NOT on a call. Hadn't been able to get it to work since. Then, I changed to another 3GS phone with ios4...it still does the same thing...we've recycled our modem, but could it still be something with our wifi connection? Though, I wouldn't understand the total crash with Safari on the previous phone...now it just won't load during a call, will load off calls. -Same with all other web accessing apps.

  • Need help with easy script for open / close app and move files

    Hi,
    I'm not a scripter.. never done anything special perhaps more complicated than /shutdown -s on cmd..
    I actually learned ASCII C language on university but never used it in real.
    I'm trying to create a basic script that perhaps you could help me or guide me how to do it..
    The commands are
    1) Close a running app (end task it or force kill it, I prefer end task it)
    2) delete files from x location
    3) run .exe app from y location
    4) close that running app 
    5) move files from z to y
    Perhaps adding few "wait few seconds" commands in between each, so the apps will launch successfully..
    My first question will be whats the easiest script language to do that?
    I tried VBScript but couldn't find commands for open or close apps.. also for controlling files..
    And what commands can do that? I could google them up for better understanding no need for rough guide
    And lastly, does it too hard? If it takes more than hour to make it (learn and process) than it ain't worth it..
    Thanks alot ahead!
    Jordan.

    hmm 2 questions:
    1) taskkill.exe causing me access deny error.. I used "taskkill.exe /IM softwarename.exe"
    how do I get permission or something to fix that?
    2) on the "move" command..
    First, its a "copy" instead.. but I easily figured that out.. 
    but more important is that I want to copy a folder.. with unknown list of way too long files and sub folders..
    and all I see is ability to move a file..
    Is this possible?
    Thanks

  • BPEL Process instance termination based on correlation

    Hi All
    Looking for a sample BPEL (not BPM) Process for instance termination based on correlation (say while an order process in running, customer can cancel order anytime).
    Thanks a lot in advance.
    regards
    sibendu

    Hi,
    Inorder to work with correlation sets, you need to define what is the unique element you want to share across multiple instances....so how to execute a long running process...you can do many things like userRegistration, AuctionSystem, VotingSystem with correlations...
    For that, define the correlation set property and choose a unique id for that...,then define the correlation set and add the correlation set property which you have defined earlier...Now associate this correlation set property in all the messages you exchange with your BPEL ...See the exact syntax in Oracle DOcumentaion and work on your flow...
    Thanks,
    N

  • Why don't some iPads offer "open in another app" in Pages?

    My students use Pages and want to save their work in Dropbox. They have set-up Dropbox accounts. However, some students do not have the menu for "open in another app" and therefore cannot access Dropbox. For those students who do have the menu option, Dropbox is accessible. How can I get the "open in another app" option in their Share and Print menu? Thanks!

    Perhaps! I did an extensive Google search before I submitted the question and couldn't find anything. Then when I submitted it, a helpful forum popped up that mentioned the version of Pages. I will check that out.
    Thanks!

Maybe you are looking for

  • Cellular data and 3g keeps turning on by itself

    i have an iphone 4 on ios 7.0.4 and it was working fine but since 2 hours ago the cellular data network and the 3g keeps turning on by them self even when i'm connected to wifi and when i turn them off they turn back on again every singe time !!!!! w

  • Accounting of POP (advertise) materials

    Dear All, We are purchasing advertising materials from outside vendors at manufacturing plant and sending these materials to sales offie and then these material are being delivered to the customers as free of cost.Right now only purchase activity has

  • Can I install Oracle 8.1.7 on solaris 2.8

    We have a working product which uses oci 7.x calls on solaris 2.7 OS and the oracle version is 8.1.7. But when we installed oracle 8.1.7 on solaris 2.8 OS , We are unable to connect to Oracle data base using the same executables. My question is : ---

  • If you could start over from scratch...

    Or in my case I just now got tired of antique scribing utensils and paper and want to take more control of the downstream process as well. I do some pop but my focus is classical/symphonic. I'm buying ProLogic, and am thinking of building on it with

  • Report to get the last price of the material

    Dear gurus Is there any report to get the material,material description,vendor that last supplied the material , the last rate Regads Sam