The WMFS Thread (Window Manager From Scratch)

As the wmfs user community is growing, jasonwryan and myself though about the creation of a special thread for that tiling manager. The aim of this thread is to share informations and config files of wmfs to help new user to start with it,
So just ask whatever and enjoy using wmfs !

One wmfs fellow (Alm) wrote a nice python script for the status, here it is :
#!/usr/bin/python2
# -*- coding: UTF-8 -*-
import urllib
import imaplib
import os
import signal
import time
import re
import math
from datetime import datetime, timedelta
from mpd import MPDClient, ConnectionError
from subprocess import Popen, PIPE
### configuration
g_users = [ ['[email protected]', 'PASSWD'] ]
g_weather = 'chvs0003'
g_cores = 2
g_iface = 'wlan0'
g_wm = 'wmfs'
### formatting for wmfs
g_fmt_weather = '\\#4A4A4A\\C\\#0081DE\\{0}'
g_fmt_gmail = '\\#4A4A4A\\@\\#AA4499\\{0}'
g_fmt_mpd = '\\#FFC400\\{0}'
g_fmt_mixer = '\\#0081DE\\{0}'
g_fmt_cpu = '\\#4A4A4A\\{0:d}\\#FFCC00\\{1:d}'
g_fmt_mem = '\\#AA2233\\{0:d}M'
g_fmt_eth = '\\#4A4A4A\\wlan\\#FFCC00\\{0:d}/{1:d}'
### classes ###
class Wi(object):
def __init__(self, format = ''):
self._val = ''
self._fval = ''
self._fmt = format
def format(self):
self._fval = self._fmt.format(self._val)
return self._fval
class WiWeather(Wi):
_url = 'http://www.meteomedia.com/weather/{0}'
def __init__(self, area_code, format = ''):
Wi.__init__(self, format)
self._url = self._url.format(area_code)
self._fmt = format
def update(self):
contents = urllib.urlopen(self._url).read()
temp = re.search("<p>([-0-9]*)<\/p>", contents).group(1)
felt = re.search("</strong>: ([-0-9]*).*</li>", contents).group(1)
if felt == '-':
out = temp
else:
out = temp + '/' + felt
if len(out) >= 1:
self._val = out
self.format()
return 0
else:
return 61 # if failed, wait ~1min before retrying
class WiGmail(Wi):
_delimiter = '/'
_mailbox = 'INBOX'
_mailserver = 'imap.gmail.com'
_port = 993
def __init__(self, users, format = ''):
Wi.__init__(self, format)
self._users = users
def fetch(self, username, password):
# set up connection
server = imaplib.IMAP4_SSL(self._mailserver, self._port)
server.login(username, password)
server.select(self._mailbox)
# get + clean
data = str(server.status(self._mailbox, '(MESSAGES UNSEEN)'))
count = data.split()[5].replace(')\'])','')
server.close()
server.logout()
return count
def update(self):
out = ''
for u, p in self._users:
s = self.fetch(u, p)
if s == '':
return 31 # if failed wait ~30 seconds before retrying
if out == '':
out += s
else:
out += self._delimiter + s
self._val = out
self.format()
return 0
class WiMpd(Wi):
def __init__(self, host = 'localhost', port = '6600', format = ''):
Wi.__init__(self, format)
self._host = host
self._port = port
self._con_id = {'host':host, 'port':port}
self._client = MPDClient()
self._connected = False
self.connect()
def connect(self):
try:
self._client.connect(**self._con_id)
except IOError as e:
print(e)
return False
except ConnectionError as e:
print(e)
return False
else:
self._connected = True
return True
def update(self):
if not self._connected:
if not self.connect():
return 1
st = self._client.status()
if st['state'] == 'play' or st['state'] == 'pause':
so = self._client.currentsong()
self._val = "%s - %s" % (so['artist'], so['title'])
else:
self._val = ''
self.format()
return 0
class WiMixer(Wi):
def __init__(self, args = ["amixer","sget","Master"], format = ''):
Wi.__init__(self, format)
self._args = args
pass
def update(self):
p = Popen(self._args, stdout=PIPE).communicate()[0]
out = re.search("([0-9]*%)",p).group(1)
mute = re.search("(\[[onf]*\])",p).group(1)
if mute == "[off]":
self._val = 'mute'
else:
self._val = out
self.format()
return 0
class WiCpu(Wi):
def __init__(self, cores = 2, format = ''):
Wi.__init__(self, format)
self._cores = cores
self._total = [0]*cores
self._active = [0]*cores
def format(self):
self._fval = ''
for i in list(range(self._cores)):
self._fval += self._fmt.format(i+1, int(self._val[i]))
return self._fval
def update(self):
usage = [0]*self._cores
for line in open("/proc/stat"):
r = re.search("^cpu([0-9])",line)
if r is None:
continue
n = int(r.group(1))
#space to avoid matching the first digit (cpuN)
s = re.findall(" ([0-9]+)",line)
total_new = 0
for i in s:
total_new += float(i)
active_new = float(s[0]) + float(s[1]) + float(s[2])
diff_total = total_new - self._total[n]
diff_active = active_new - self._active[n]
usage[n] = math.floor(diff_active / diff_total * 100)
#store totals
self._total[n] = total_new
self._active[n] = active_new
self._val = usage
self.format()
return 0
class WiMem(Wi):
def __init__(self, format = ''):
Wi.__init__(self, format)
def update(self):
for line in open("/proc/meminfo"):
r = re.search("([a-zA-Z]+):[^0-9]+([0-9]+).+",line)
if r is None:
continue
m = r.group(1)
n = int(r.group(2))
if m == "MemTotal":
total = n
elif m == "MemFree":
free = n
elif m == "Buffers":
buf = n
elif m == "Cached":
cached = n
break
self._val = int((total - free - buf - cached)/1024)
self.format()
return 0
class WiEth(Wi):
def __init__(self, iface = 'wlan0', format = ''):
Wi.__init__(self, format)
self._iface = iface
self._rx = 0
self._tx = 0
self._time = 0
def format(self):
self._fval = self._fmt.format(int(self._val[0]),int(self._val[1]))
return self._fval
def update(self):
for line in open("/proc/net/dev"):
r = re.search("wlan0", line)
if r is None:
continue
s = re.findall(" ([0-9]+)", line)
rx = int(s[0])
tx = int(s[8])
now = time.time()
interval = now - self._time
rx_rate = (rx - self._rx) / interval / 1024
tx_rate = (tx - self._tx) / interval / 1024
self._val = [rx_rate, tx_rate]
#store results
self._rx = rx
self._tx = tx
self._time = now
self.format()
return 0
class Task(object):
def __init__(self, func, name, delay, args=()):
self._args = args
self._function = func
self._name = name
micro = int((delay - math.floor(delay)) * 1000000)
self._delay = timedelta(seconds=int(delay), microseconds=micro)
self._next_run = datetime.now() #to force first run now
def should_run(self):
return datetime.now() >= self._next_run
def run(self):
delay = self._function(*(self._args))
if delay == 0:
self._next_run = datetime.now() + self._delay
else:
self._next_run = datetime.now() + timedelta(seconds=delay)
### signals ###
# to print stats
def sig_usr1(signum, frame):
global tasks
now = datetime.now()
for t in tasks:
print(t._name + " will run in " + str(t._next_run - now))
return
# to force execution
def sig_usr2(signum, frame):
global tasks
for t in tasks:
t.run()
return
signal.signal(signal.SIGUSR1, sig_usr1)
signal.signal(signal.SIGUSR2, sig_usr2)
### main ###
gm = WiGmail(g_users, format=g_fmt_gmail)
we = WiWeather(g_weather, format=g_fmt_weather)
mp = WiMpd(format=g_fmt_mpd)
mi = WiMixer(format=g_fmt_mixer)
cp = WiCpu(g_cores, format=g_fmt_cpu);
me = WiMem(format=g_fmt_mem);
et = WiEth(g_iface, format=g_fmt_eth);
tasks = [ Task(gm.update,'gmail',91), Task(we.update,'weather',1801), Task(mp.update,'mpd',1), Task(mi.update,'mixer',1), Task(cp.update,'cpu',2), Task(me.update,'mem',13), Task(et.update,'net',2) ]
while True:
try:
for t in tasks:
if t.should_run():
t.run()
now = datetime.now().strftime("%e/%m %H:%M")
os.system('wmfs -s "%s %s %s %s %s %s %s \\#AA4499\\ %s"' % (cp._fval,me._fval,et._fval,gm._fval,we._fval,mp._fval,mi._fval,now) )
except IOError as e:
print(e)
except Exception as e:
print(e)
finally:
time.sleep(1)
Last edited by aleks223 (2010-12-30 18:00:35)

Similar Messages

  • Limitations of trial version 13? I cannot load pictures into the photomerge panorama window either from' browse' or 'add open files'.

    On Adobe's web site it states the trial version has all functionality.  FAQ, common questions & answers | Adobe Photoshop Elements 13 "These trial versions are fully functional, so every feature and aspect of the product is available for you to test-drive. Product trials can easily be converted for unrestricted use without the necessity to reinstall the software in most cases."
    However, I cannot load pictures into the photomerge panorama window either from' browse' or 'add open files'. When I select either way nothing happens.This happens if I enter panorama from photo editor and/or organizer.
    Can anybody enlighten me about this?
    Thanks,
    Barry

    It seems your Samba is denying access to these files & dirs. My best guess would be that either the Samba user is not allowed to write (and read) those (in which case you'd have to modify the permissions accordingly) or Samba sets, when the share is mounted, the permissions such that your user is not allowed to read and write (you may in this case try to just set permissions for you to allow you what you want to do; or use "create mask" or "directory mask" or "writable" in your samba config. ).
    Also, what do the logs say about this? According to your samba conf they are in /var/log/samba/%m.log where %m is the hostname or IP.

  • I need to connect a Micro SD Card to my MacBook (10.6.8) 2011 so I can switch my Magellan RoadMate GPS for use with the new Mac Content Manager from Magellan. Can I do this? from

    I need to connect a Micro SD Card to my MacBook (10.6.8) 2011 so I can switch my Magellan RoadMate GPS for use with the new Mac Content Manager from Magellan. Can I do this? from

    Hi Robert and welcome to Apple Discussions,
    There are adapters available that convert micro cards into fullsize ones.
    You will also need a USB card reader if you do not have one.
    Good luck,
    Alan

  • U410: Windows + Debian from scratch

    Hello,
    I bought a Lenovo U410 (HDD: 750 GB, SDD: 32 GB, 8 GB RAM) in Germany in August last year. It was working really good until I tried to install Ubuntu on it. When I was trying to do it, I got lots of problems because of the RAID configuration (I read many users had the same problem). I wasn't able to do it, and as I needed the laptop to work and I didn't have the time to investigate how to install both operating systems without problems, I just managed after a while to reinstall Windows on the HDD. So now I'm not using in fact the SSD drive, and I even have a problem with the partitions on that drive, as you can see in the image attached.
    Link to image
    Now I need to format everything again and install both Windows (with a partition for the OS and another for data) and Debian from scratch. The problem is that I'm not pretty sure how to do it properly, beacuse of the problems I had before. In fact, I don't even know which would be the best configuration (regarding partitions, RAID, OS on SSD or HDD, drivers, etc, etc...). Could anyone give me advice on this and a set of instructions to do it right? In addition, I have the drivers which came with the laptopt, but should get the new versions?
    I would really appreciate your help, as I need to get this ASAP.
    Thanks in advanced!
    Moderator comment: Image(s) >50KB (or totaling >50KB) converted to link(s). Community Rules.

    Anyone can help me?

  • Airport Utility for my Airport Extreme needs to be changed to a different computer, because the current computer is down permanently.. How do I do this?  Do I have to reset the Airport Extreme and start from scratch?

    The computer (Win XP) on which the Airport Utility has been set up for the past few years is no longer accessible, so I need to set it up on a different computer. Can I do that with my exisitng wireless network, or will I have to set up a new network from scratch, once I have installed Airport Utility on the new machine?

    You can install AirPort Utility on either a Mac or PC, but there would be no reason to make any changes to your existing configuration on the AirPort Extreme unless you need to do so.
    Download files are here:
    http://support.apple.com/downloads/#airport

  • HT1212 i have forgotten the password to my ipad and it says connect to itunes but my computer cant connect to the ipad because of the code and i need it know how to wipe the whole ipad and start from scratch?

    i have forgotten the password to my ipad and its says connect to itunes but i cant connect it to my computer because of the code on the ipad so i need to know how to wioe the whole ipad and start again like a brand new ipad?

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • MSI introduces the W20 3M Windows Tablet from notebookcheck

    Link: http://www.notebookcheck.net/MSI-introduces-the-W20-3M-Windows-Tablet.105360.0.html

    11 inches with AMD HD8189M SSD, it is very good for productivity.

  • When I have two browser windows open, the first with multiple tabs the second a window opened from a link (so just one tab), and close the second window, I receive the Quit Firefox prompt, "do you want to save tabs...?"

    This was happening with FF 3 before upgrading to 4, and was not happening with FF4.0 until the 4.0.1 update was applied, the first time it ran. Same issue on another computer running FF3, so may be a extension related problem.
    If I have three windows open and close the third, I do Not get this. Only when two are opened and one is closed. I could have three, close one, then the second and get the prompt.
    Not disabled extensions
    Adblock Plus
    BugMeNot
    Cooliris
    Download Statusbar
    DownloadHelper
    DowntThemAll!
    FireGestures
    HTML5 Extension for Windows Media Player
    HTTPS-Everywhere
    Java Console
    PDF Download
    Session Manager
    TinEye Reverse Image Search
    YouTube Comment Snob
    Disabled

    Does that 2nd window have a '''Close Window''' hyperlink on that page and you are using the X in the upper right corner of that 2nd window to close it?

  • Sscrotwm - A bloatless fork of the scrotwm/spectrwm window manager

    So I forked scrotwm/spectrwm with the goal of making it a bit lighter and cleaner.
    sscrotwm on GitHub
    sscrotwm on AUR
    (For current scrotwm/spectrwm users, just remove everything involving libswmhack.so to resolve the conflict.)
    So far I've mostly been clearing out some features, things are around 25% smaller in most areas.
    Some features removed:
    - Status bar, clock (we have enough clocks already)
    - Iconification
    - Annoying smart resizing and moving behavior (Impossible to move things off screen at all)
    - Synthetic mouse clicks (Use xdotool and friends)
    - Tight dmenu coupling for search and naming
    - xterm-specific means to resize font according to window size
    - Fancy cursors while moving/resizing
    - Pointless copypasta from BSD libraries
    - Annoying focus models
    - Pointless integration with utilities (screenshots, etc.) that should be done though configuration
    - More to come
    I wasn't happy with the direction scrotwm was going. Weird new features and not really getting any cleaner, but still pretty awesome. Then they decided to change the name. I *loved* that name. It won strange looks. So I'm taking the pun a little further with sscrotwm.
    There's still lots of work to do, but it's now good enough for me to use on a daily basis, so I figured someone else might like to see. Send all manners of complaints or requests back, although I don't plan on adding much.
    Cheers!

    I think you have a bug somewhere in the PKGBUILD (or I'm missing something major)... A couple of code-block examples will be easier than trying to describe it:
    $ pacman -Ql sscrotwm-git|grep bin/
    sscrotwm-git /usr/bin/
    sscrotwm-git /usr/bin/scrotwm
    sscrotwm-git /usr/bin/sscrotwm
    $ cd /usr/bin
    $ ls -l |grep scrot
    lrwxrwxrwx 1 root root 52 Feb 27 14:07 scrotwm -> /home/oliver/tmp/sscrotwm-git/pkg/usr/bin/sscrotwm
    -rwxr-xr-x 1 root root 68544 Feb 27 14:07 sscrotwm
    Edit - I installed via downloading the tar file from AUR and running makepkg
    Last edited by oliver (2012-02-27 19:23:14)

  • What is the best OS to Manage from?

    I have a collection of a dozen Windows 2008 and 2012 servers to manage.  They are Print, File and Exchange Servers.  My question is what is the best OS to run on my management console.  I can run Windows 7, Windows 8, or Server 2008.  Is
    there a distinct advantage to choosing one of these over the other?
    Most of the machines are on separate unjoined domains and I will largely RDP into them to do management tasks.
    Thanks in advance.

    Hello,
    i recommend to use always the latest OS version, either server or client, that is also in use. This way you have no limitations with too old .admx files.
    And for best management option think about using for Group policy settings a central store as described in
    http://blogs.technet.com/b/askpfeplat/archive/2011/12/12/how-to-implement-the-central-store-for-group-policy-admin-templates-completely-hint-remove-those-adm-files.aspx
    https://support.microsoft.com/en-us/kb/929841
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • How do I know if the pop-up window is from Adobe or not?

    I sometimes get pop-ups in my browser that tell me I have to update my software. I just got one concerning Flash Player. The link it redirected me to is this one:
    https://get3.adobe.com/flashplayer/download/?installer=FP_16_Mac_for_Safari_and_Firefox_-_ NPAPI&os=OSX&browser_type=KHTML&browser_dist=Safari&d=Adobe_Photoshop_Lightroom_for_Macint osh&dualoffer=false&type=au&browser_vers=7
    Which I assume is okey. But just to check I went to adobe.com and found the link to install and update Flash player there and the link is then:
    http://get.adobe.com/flashplayer/download/?installer=FP_16_Mac_for_Safari_and_Firefox_-_NP API&os=OSX&browser_type=KHTML&browser_dist=Safari&d=Adobe_Photoshop_Lightroom_for_Macintos h&p=ltrosx&dualoffer=false
    So no get3 like in the first link. Why the difference, and how can I tell for sure that it is not someone pretending to be Adobe?
    Sorry for possibly putting this in the wrong community but I could not find the proper place for this topic, and I had to choose a community to be able to post.

    You should ask there: Flash Player
    You won't find any answer here.
    Sorry

  • HT1338 How can I start a software update from scratch?  error states that it was corrupted during transfer but when it starts over later, it still give the same error

    Software updates tells me it needs to download and install a new version of itunes.  When this notice first appeared the download started but stopped after about 34 MB and said the download was corrupted.  Later (after many restarts), the notice appears again but the download starts where it left off and immediately gives me the message that it is corrupted.  How do I force the download to start over from scratch?

    Check the version you're being offered, and go to Apple Support Downloads.
    Read the info on the update and decide if you actually need it. (if your OS version is 10.6.4 as shown in your info, I doubt that you will need it at all).
    The latest update I can find for iTunes is here; http://support.apple.com/kb/DL1426

  • Maximize Application without Window Manager

    What I'd like to do is use xwininfo and wmctrl to maximize an application in X without a window manager. Here is what I've worked out:
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    # exec gnome-session
    # exec startkde
    # exec startxfce4
    # ...or the Window Manager of your choice
    MAXIMIZE_ID=$(xwininfo -root -child | grep "st-256color" | grep -o "^[[:space:]]*0x[[:alnum:]]*" | grep -o "0x[[:alnum:]]*")
    MAXIMIZE_WIDTH=$(xwininfo -root | grep "Width" | grep -o "[[:digit:]]*")
    MAXIMIZE_HEIGHT=$(xwininfo -root | grep "Height" | grep -o "[[:digit:]]*")
    while [ "$MAXIMIZE_ID" = "" ]
    do
    MAXIMIZE_ID=$(xwininfo -root -child | grep "st-256color" | grep -o "^[[:space:]]*0x[[:alnum:]]*" | grep -o "0x[[:alnum:]]*")
    if [ "$MAXIMIZE_ID" != "" ]
    then
    wmctrl -i -r $MAXIMIZE_ID -e 0,0,0,$MAXIMIZE_WIDTH,$MAXIMIZE_HEIGHT
    fi
    done &
    exec st
    As intended it maximizes the st terminal. However, the terminal simply hangs there, I can provide it with no input, any clues as to what I'm missing and/or doing incorrectly? I realize st uses the geometry parameter, I'm only using it here as an example application as not all applications support that parameter.
    Last edited by grimpirate (2014-08-12 19:20:00)

    It's much more complex than that.  Wmctrl requires a EWMH compliant window manager.  Many of the lightest weight WMs are not EWMH compliant.
    Is this just for st, or do you want all windows maximized?  Does st have a 'geometry' flag?
    You could write a WM that does nothing but fullscreen every window that is mapped in about a dozen lines of code.  Note, however, that without a WM, windows will generally not properly be assigned the input focus - one result is that cursors on most terminals will remain 'hollow'.  For the cost of one or two more lines of code, this new WM could also set input focus appropriately.
    EDIT: st does have a geometry flag, just use that.
    Also, your 'grep | grep' pipe could just be "awk '/Width/ { print $2;}'", or two get both width and height in one go:
    xwininfo -root | awk '/Width/ { printf "%s", $2;} /Height/ {printf "x%s", $2;}'
    Though this wouldn't be quite right for a st geometry string as that takes rows and columns, not pixels.
    EDIT2: your solution will also fail miserably for two other reasons.  There is not point in initializing the MAXIMIZEID variable before the loop starts - because if there actually are any windows there, the while loop will never run.  Also, without a sleep command, or something, all that while loop will be very good for will be to turn your cpu into a frying pan (100% cpu use -> heat).
    Here's a very plain WM that will do the same thing without melting your CPU:
    #include <X11/Xlib.h>
    int main(void) {
    Display *dpy;
    if(!(dpy = XOpenDisplay(0x0))) return 1;
    XEvent ev;
    int scr = DefaultScreen(dpy);
    int sw = DisplayWidth(dpy, scr);
    int sh = DisplayHeight(dpy, scr);
    Window w, root = RootWindow(dpy, scr);
    XSelectInput(dpy, root, SubstructureRedirectMask);
    while (!XNextEvent(dpy, &ev)) {
    if (ev.type == MapRequest && (w=ev.xmaprequest.window)) {
    XMoveResizeWindow(dpy, w, 0, 0, sw, sh);
    XMapWindow(dpy, w);
    XSetInputFocus(dpy, w, RevertToPointerRoot, CurrentTime);
    XFlush(dpy);
    return 0;
    Last edited by Trilby (2014-08-13 13:03:59)

  • Looking for "Window Manager\Window Manager Group" SID

    Hi. I am trying to find the SID for "Windows Manager\Window Manager Group". If anyone has that, I'd appreciate it. I am trying to build my "base build" Security Template for Server 2012, and I need to assign the default User Rights to that group, as it is
    out-of-the-box. Problem is that the GUI does not accept that group name as valid, but I can see that the group is assigned user rights in the Local Security Policy. I typically just use a file ACL to do this (add the ACE and then run
    icacls to get the SID), but that group name is not valid within that tool either. My guess if that this new "Windows Manager\Window Manager Group" group is a well-known SID. Thanks.

    Ironically the SID is not listed on Microsoft's web page for well know
    SIDs. I also noticed that when I dump the local users using powershell, every group and user is listed that I would expect to see, but this one is not in that list. It seems like it should be pretty easy for Microsoft to say what this does and when it can
    be safely removed...
    I figure one of two possibilities. Either this only matters when a specific feature is installed / active, or it is some remnant from development for a feature or implementation that didn't make it into the release to manufacturing. What ever the case it
    would be nice if we could get clarification.

  • Cannot open OLAP instance manager from oem

    When I tried to connect to the OLAP Service Instance Manager from OEM, I got the XPINSMGR-10565 and when i tried to start the olap service from control panel I spotted the error "......error 2"

    i already unlock and change password for user : OLAPDBA,OLAPSYS,OLAPSVR and SH during instalation Oracle database but i don't understand because that schema unlocked but the password that i fill was not applied.
    Now i can not change their password, can explain how to do it..??
    Now i use Oracle Database 9.0.1.1.1
    and Oracle OLAP 9.0.1.0.1
    so, it match or not..??? As SYS, login into OEM and in the Security node expire these OLAP passwords. Enter in new passwords and unlock them.
    No, the Oracle Database and OLAP versions are not a mismatch. This combo version tells me you are running on the Windows platform. After you do get the initial release of OLAP up and running, it is highly recommended that apply the RDBMS patch set 9.0.1.3 and OLAP patch set 9.0.1.2.1.

Maybe you are looking for