Strange bug (ArgumentError #1112) in extending MediaTraitBase

Hello.
I'm implementing a custom dynamic stream trait, which allows to use stream switching with standard progressive video.
When I create the Trait (in the proxy element) a runtime error is thrown:
ArgumentError: Error #1112: Discordancia del recuento de argumentos en coerción de clase.  Se esperaba 1; se obtuvo 4.
at MyDynamicStreamTrait$cinit()
at global$init()[MyDynamicStreamTrait.as:20]
The constructor is not even being executed.
Here are relevant extract of the code:
========= MyVideoElement.as ======================
public class MyVideoElement extends ProxyElement {
/*(in set wrappedElement):*/
function processTraitAdd( type:String ):void {
if (type == MediaTraitType.TIME) {
var mytt:MyTimeTrait = new MyTimeTrait(loadTrait.netStream, wrappedElement.resource)
addTrait( type, mytt );
mydst = new MyDynamicStreamTrait(wrappedElement.resource, mytt, loadTrait);
addTrait( MediaTraitType.DYNAMIC_STREAM, mydst);

(sorry, I was in Eclipse-mode and hit Ctrl-S)
============= MyDynamicStreamTrait.as ==================
public class MyDynamicStreamTrait extends MediaTraitBase
public function MyDynamicStreamTrait( resource:URLResource = null, timeTrait:MyTimeTrait = null, loadTrait:MyLoadTrait = null )
super( MediaTraitType.DYNAMIC_STREAM );
this._timeTrait = timeTrait;
this._loadTrait = loadTrait;
this._netStream = loadTrait.netStream;
this._resource = resource;
trace( 'created' );
/* various logic */
============================================================
As soon as the 'new MyDynamicStreamTrait(wrappedElement.resource, mytt, loadTrait);' statement is executed, the ArgumentError is thrown.
None of my other trait extensions is behaving this way.
Any idea on what's happening?

Similar Messages

  • Strange bug with CC panel and OS X Spaces

    I seem to have a strange bug where the CC panel opens each time I switch spaces in OS X (click on the GIF animation below).  Anyone else have this problem?

    Hi Lee ,
    This has been already notified to the engineering team.
    http://forums.adobe.com/message/5421355#5421355
    Thanks,
    Manish

  • Strange bug on skype (is this a sign that the pers...

    Hello
    I have the latest 5.9 version on my Iphone 5s
    and I couldn't help but notice a strange bug.
    When I turn on Skype,
    at first everyone is offline (just loading I guess),
    then I see some green lights appear
    at the bottom of the profile pictures of those that are online
    (normal up to this point).
    The strange bug is that in the case of one of my contacts
    whenever i turn on skype the green light appears for 3 seconds and then disappears.
    I find this strange since the green circles of other contacts that are online remain
    whereas this contact's green circle always disappears after couple of seconds,
    which leaves me wondering if this contact has blocked me.
    After I noticed this strange bug I turned skype on and off numerous times
    to see if the same thing happens everytime and indeed it does.
    I could not ask the contact directly since we are not in good terms
    and I cannot imagine this contact going offline everytime I go online.
    So why is this happening?
    Is it a sign that the contact has blocked me?

    the same thing happens to me with one of my contacts... Tried asking Skype about it but they had no useful response for me. Did you ever figure it out?

  • Strange Bug in oracle.jbo.domain.Number

    Hi
    There is a strange Bug in oracle.jbo.domain.Number. Look at the following code:
    System.out.println(new Number("12E4"));In JDeveloper 9.0.5.3 this code prints
    12000which is correct. In JDeveloper 10.1.3 this code throws an exception:
    java.lang.NumberFormatException: For input string: "E4"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:447)
         at java.lang.Integer.parseInt(Integer.java:497)
         at oracle.sql.NUMBER.toBytes(NUMBER.java:1861)
         at oracle.sql.NUMBER.stringToBytes(NUMBER.java:3398)
         at oracle.sql.NUMBER.<init>(NUMBER.java:277)
         at oracle.jbo.domain.Number.<init>(Number.java:289)
         at project1.Main.main(Main.java:10)I think this is a serious bug since some very basic behaviour is not working as expected anymore.

    It's a bug.
    The parseInt method is called and from its javadoc it's clear that it throws a NumberFormatException:
    Parses the string argument as a signed decimal integer. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' ('\u002D') to indicate a negative value. The resulting integer value is returned, exactly as if the argument and the radix 10 were given as arguments to the parseInt(java.lang.String, int) method.
    Maybe the earlier implementation of oracle.jbo.domain.Number didn't use the parseInt method.
    Ronald

  • Very strange bug: random keyboard disposition

    Hi,
    I just experimented a very strange bug. I have Arch installed with the XFCE desktop and Firefox3b05 from unstable. I was reading my favourite austrian newspaper online: http://derstandard.at. There's the possibility to post messages under the articles, so I clicked on "Post", and suddenly, within the posting window... my keyboard disposition went crazy. Instead of "a", I had a greek omega, instead of "s", I had a euro symbol, and so on. And more: all the other apps were suddenly affected too. I opened mousepad, same story.
    I restarted X, went to the same site... and had the same experience. But after the third time, things seem to have returned to normality.
    Anybody ever experienced something similar? What could this be related to? X going crazy?

    Well, viewing the site is not the problem. You'd have to get an account and actually try posting a message on their message board. That's where the havoc begins.
    JavaScript from hell, maybe...

  • Strange bug, items in list boxes disappearing

    First of all this is my first post here ever. If its a wrong forum, sorry.
    So ever since I installed Windows 8.1 here (fresh install), I have this strange bug were items in list boxes start disappearing when you open a window with them.
    It didn't bother me much but now its horrible when I wanted to switch my playback device... Or if you want to change IP settings on my network adapter.
    The thing is it all happens in a very short period of time so it took me a while to get screens of it and here they are:
    s9.postimg.org/dvqvulc5b/bug.gif
    s9.postimg.org/a0nhs0szj/bug2.gif
    I still can't upload images on this forum!
    That is real time of how it appears on my screen when I open those windows. You can see on the first image that the window is still appearing.
    I have searched for this problem but couldn't find anything.
    Lenovo Z510 Notebook

    try to use default Windows 8.1 theme
    try to check with different account
    try to check in safe mode
    try to find if there is any graphic driver update or any driver update, compare your version
    http://support.lenovo.com/en_HK/downloads/detail.page?DocID=DS037055
    try to update your windows
    monitor event viewer if there is any abnormal behavior
    try to check using PSR
    http://windows.microsoft.com/en-hk/windows7/how-do-i-use-problem-steps-recorder
    update your windows if there is any windows update

  • Strange bug in new phone

    Hi,
    I'm having a strange bug in my new iphone. I recently upgraded to an iphone from an older model of phone and had my contacts transferred to the new phone by the sales rep at the store. I dont know how the process worked exactly, but im guessing it has something to do with the sims cards or something like that. anyway, ive ad my phone for a day and it has been working fine up until an hour ago. suddenly, i am able to make and receive text messages from my new phone, but i can only make and receive calls from my old phone. i was told that once my service was activated with my new phone, that the old one would just have no more service. that was the case until about an hour ago. now i can text from my new phone, but can only make phone calls from the old one. anyone ever hear of this happening? please help. thanks ahead of time.
    sincerely,
    joe

    Hi stinky7777,
    I see that you've been provided with a couple options to resolve the issues with your phones (thanks victorbraga98 and kaebfly), this is definitely an activation issue. I trust that you have contacted our technical support at 1-800-922-0204 and your concerns have been resolved by now. If you still need assistance with the proper activation of your new iPhone please send me a direct message with your name and number and I will follow up with you to resolve the activation issue.
    For immediate assistance please call 800-922-0204. We're available 6am to 11pm CST., every day of the year. Please call us from another phone and have your iPhone fully charged and available for troubleshooting.
    You can also contact us on Twitter @VZWSupport Monday to Friday 7am-10pm CST., and Saturday 7am to 4pm CST.
    AntonioC_VZWSupport
    Follow us on Twitter at www.twitter.com/vzwsupport

  • Strange bug with the java.io.File class

    Hi everibody!
    I'm writting a system to upload images with JSF and RichFaces. But when i try to delete the images files sometimes hapen some strange bug.
    first i'll post my method code here:
    public void deleteUploadedFile(ActionEvent event) throws Throwable {
            UIComponent link = event.getComponent();
            UIParameter param = (UIParameter) link.findComponent("fileId");
            TheFile file = this.uploadedFiles.get((Integer) param.getValue());
            try {
                File f = new File(file.getPath(), file.getName());
                if ((f.exists()) && (f.canRead()) && (f.canWrite())) {
                    if(f.delete()){
                        for(int i=0; i<file.getThumbs().size(); i++){
                            File t1 = new File(file.getPath(), file.getThumbs().get(i).getThumbName());
                            t1.delete();
                        setDeleted(true);
                    else{
                        setDeleteLog("Arquivo não pode ser excluido");
                        setDeleted(false);
                } else {
                    setDeleteLog("Erro ao tentar excluir o arquivo");
                    setDeleted(false);
                this.finalize();
            } catch (Exception ex) {
                setDeleteLog("Deu erro: " + ex);
            } finally {
                if (this.deleted) {
                    if (this.uploadedFiles.remove(file)) {
                        setDeleteLog("Conseguiu remover");
                    } else {
                        setDeleteLog("Deu erro");
        }Well, when the method run the f.delete() line, sometimes, something strange hapen. With is, the file data is deleted as expected, but the file it self is not deleted. And even when i run the line this.finalize the JVM still using the file, with don't allows me to try to delete it untill my tomcat stop (with kill the application that was using the file). And this don't hapen every time that i try to delete one file.
    And worse, once it hapen every next time that i try to delete one file hapen the same bug.
    My question is...what could it be, and what can i do to solve this?!

    About this is not a possible cause. Because before i upload a file I verify if the file already exists and even after i change the file name:
    //this method change the file name and eliminate all the special characters, and also attach the current day of month,
    //month, year, minute and second to the file name
    public String generateFileName(String fileName){
            Locale l = new Locale("pt","BR");
            Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(TimeZone.getTimeZone("GMT-3").getID()), l);
            int ext = fileName.lastIndexOf('.');
            String name = fileName.replace(fileName.substring(ext), "");
            String newName = RemoverAcentos.remover(name).toLowerCase()+cal.get(cal.DAY_OF_MONTH)+cal.get(cal.MONTH)
                    +cal.get(cal.YEAR)+cal.get(cal.MINUTE)+cal.get(cal.SECOND)+fileName.substring(ext);
            return newName;
        }the upload method
    String fileName = generateFileName(item.getFileName());
            try {
                File uploadFile = new File(filepath, fileName);
                if (!uploadFile.exists()) {

  • Strange bug in GO-OpenOffice 3.1 regarding file opening of long names

    I've noticed a very annoying bug regarding go-openoffice 3.1.0.99.2-1, reproduced by me multiple times. When I try to open some kind of file, regardless of what it is (could be an .ODT or .DOC), and do this by selecting it with File->Open, OpenOffice gives me an error like the one below
    As you can see although I've selected the proper file with the proper name, OO is trying to open a file with a name somewhat shortened, i.e. missing letter "T" at the end. The same file opens without any problem when I selected it in Dolphin. Now, what a strange bug! Anyone had similar experience? Any known solutions to this? It seems to happen only when the name of the file is longer than one line in the OO "opening tab" or whatever it's called.
    Last edited by Zibi1981 (2009-08-20 18:03:43)

    Don't know about vanilla as I don't have it installed at the moment. Maybe someone else can confirm this bug?

  • Strange bug on linux

    Hi,
    I get strange bug with forms builder - when i try to choose something from combo box on property palette option doesn' t change. For example when I click 'Yes' on some option it still views 'No'.
    I really don't know whats wrong, I don't get any error on console.
    I run on Sabayon (gentoo) with openmotif- 2.1.30-r14
    Any idea?
    Thx, kamillo

    Hmm I think you misunderstood my post.
    This is not a problem with code, database or smth but with builder as a software. It doesn't work correctly because i can't change any option in property palette.
    And I really don't get what you mean writing
    reconnect?
    ctrl+shift+K?
    bug?kamillo

  • Possible bug: Saving array with extended and double precision to spreadshee​t

    If one concatenates a double precision array and an extended precision array with the "build array" vi and then saves using "Write to Spreadsheet File" vi any digits to the right of the decimal place are set to zero in the saved file. This happens regardless of the format signifier input (e.g. %.10f) to the  "Write to Spreadsheet File" vi.
    I am on Vista Ultimate 32 bit and labview 9.0
    This is a possible bug that is easily circumvented by converting to one type before combining arrar to a spreadsheet. Nonetheless, it is a bug and it cost me some time.
    Solved!
    Go to Solution.
    Attachments:
    Spreadsheet save bug.vi ‏9 KB

    Hi JL,
    no, it's not a bug - it's a feature
    Well, if you would look more closely you would recognize the "Save to Spreadsheet" as polymorphic VI. As this polymorphic VI doesn't support EXT numbers internally (it only supports DBL, I64 and String) LabVIEW chooses the instance with most accuracy: I64 (I64 has 64 bits precision, DBL only 53...). So your options are:
    - set the instance to use as DBL (by right-click and "Select type...")
    - make a copy of this VI, save it with a different name and make it support EXT numbers (don't rework the polymorphic VI as you would break compatibility with other LV installations or future revisions)
    And yes, those coercion dots always signal some conversions - you should atleast check what's going on there...
    Message Edited by GerdW on 05-21-2010 10:01 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Solved strange problem. Reason: a strange bug?

    Hi,
    recently I had a really strange problem, where I could not work with the enhanced classes from within a web application (but from the dos-prompt, see my prosting "Kodo says classes are not enhanced ..."). Everybody suggested it was a classpath problem, what I also
    thought was the most sensible reason, but all I tried with the classpath didn't seem to work. What I really didn't understand was that it worked before once. I couldn't think of anything that I changed, but now I tried something unreasonable, and it seems to be the reason for
    the problem. What I did was, that in the early stages of my application (when everything was still alright) I used a file package.jdo (in the classes-subdirectory) to enhance the classes. Later I changed to system.jdo in the root-dir of the package hierarchie. Now I went back
    to package.jdo, and it worked. But I can't imagine how this might change the behaviour of Kodo? The content of package.jdo / system.jdo is this:
    <?xml version="1.0"?>
    <jdo>
         <package name="de.mediateam.quizmaster.data">
              <class name="User" />
              <class name="Category">
                   <field name="children">
                        <collection element-type="Category" />
                   </field>
                   <field name="questions">
                        <collection element-type="Question" />
                   </field>
              </class>
              <class name="Topic" persistence-capable-superclass="Category" />
              <class name="Test" persistence-capable-superclass="Category">
                   <field name="participants">
                        <collection element-type="User" />
                   </field>
              </class>
              <class name="Question">
                   <field name="prerequisites">
                        <collection element-type="Question" />
                   </field>
              </class>
              <class name="Answer" />
         </package>
    </jdo>
    There is no difference if you remove all classes but the User-class. The problem stays when it is system.jdo.
    So is this a bug with Kodo, or did I miss something in the documentation about differences between package.jdo and system.jdo?
    Cheers
    Martin

    I had system.jdo in the class-hierarchies root directory, but for web-apps this dir (web-context/WEB-INF/classes) doesn't need to be in the classpath. I just tried to copy system.jdo to the same dir as system.prefs and this works.
    It might however be helpful in such situations to get a bit more precise error message (not: "The system could not initialize; the following registered persistent types have not been enhanced: [...]").
    But thanks for your help. Mysterie solved now.
    Martin
    On Mon, 10 Sep 2001 17:19:50 -0500, "Abe White" <[email protected]> wrote:
    Perhaps system.jdo is not being found by Kodo? system.jdo should be located
    in the same place as system.prefs -- at the top level of the CLASSPATH.
    package.jdo files, on the other hand, should be placed in the same package
    as the classes they contain metadata for. That is the only difference
    between the two.
    -- Abe White
    Kodo Product Team

  • Strange behaviour from PS CS5 Extended working with 3D tools

    Hi there.
    I've been trying to use the 3D tools in this software to curve labels around a cylinder. After making an adjustment to a setting I often find my image turns transparent and white as per the attachment below (it should be full colour). It doesn't seem to relate to doing any particular task, I always have to hit undo and try and make the change again and hope that it works this time (mostly it doesn't). I got so frustrated with how often this was happening that in the end I just had to give up on Photoshop's 3D capabilities and go back to old methods I used in Illustrator.
    Is my computer incapable of dealing with such intense work here or is this some other bug?
    I'm using Photoshop CS5 Extended on OS 10.5.8.
    Cheers, Darren

    Steve,
    - card was Intel GMA X4500, driver version 7.15.10.1652, driver date 06-Feb-09.
    - unsupported card, I activated GPU support via AllowOldGPUS_ON; tested and then disabled GPU via Preferences, unchecking "Enable openGL drawing", I thought it was enough to disable GPU usage everywhere.
    - it most likely is not OS-dependent.
    - it's also rather low-priority, a warning in the tech note about GPU support would suffice.

  • Very strange bug with compareTo: returning incorrect results

    Hello everyone! I have used the method compareTo many times to maintain my database project's entries. However recently I have discovered a bug, in which:
    a and b both being Storage type objects:
    private static class Storage {
    object data
    int nextData //an array stores the Storage objects
    int previousData //this uses an integer to locate previous in array
    Problem:
    ((Comparable)(a.data)).compareTo((Comparable)(b.data)) returns a 3, when a.data is clearly 5, and b.data is clearly 20.
    This is very strange, as the compareTo should return a -1 instead of a positive number. Is this a known bug with the compareTo method? I have been using it reliably for many programs but this is the first time it ever occurs to me.

    Problem:
    ((Comparable)(a.data)).compareTo((Comparable)(b.data))
    returns a 3, when a.data is clearly 5, and b.data is
    clearly 20.
    This is very strange, as the compareTo should return a
    -1 instead of a positive number. Is this a known bug
    with the compareTo method? I have been using it
    reliably for many programs but this is the first time
    it ever occurs to me.Not really... comparing Strings "5" to "20"
    is really the same as comparing "5" to "2"
    being the first character of the string, difference
    being, surprise, surprise = 3.
    If you want the Strings to be comparable that way you should left-fill them with spaces or zeros.
    Or, better still, override compareTo and make your Storage implement Comparable instead of all that casting of the data objects.

  • Xmonad with dual screen strange bug or feature !

    Hi,
    I am running xmonad with dual screen. The strange thing (bug or feature) I noticed that when I move a window to another screen and then try to change the workspace, the window moves along to the same workspace but lands on the other screen.
    Is there any way to switch off this feature. I googled a bit and replaced the greedyView parameter with view but it didn't help.
    regards,
    Hardik

    Here is my  xmonad.hs
    import XMonad
    import System.Exit
    import qualified XMonad.StackSet as W
    import qualified Data.Map as M
    import XMonad.Util.Run
    import XMonad.Hooks.DynamicLog
    import XMonad.Hooks.ManageDocks
    import XMonad.Layout.NoBorders
    import XMonad.Hooks.SetWMName
    import XMonad.Hooks.ManageHelpers (isFullscreen, doFullFloat, doCenterFloat)
    import XMonad.Layout.Tabbed
    import System.IO
    -- -xos4-terminus-medium-r-*-*-14-*-*-*-*-*-*-*
    myLauncher :: String
    myLauncher = "`dmenu_path | dmenu -fn '-xos4-terminus-medium-r-*-*-14-*-*-*-*-*-*-*' -nb '#303030' -nf '#959595' -sf '#FFFFFF' -sb '#606060'`"
    myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
    [ ((modMask .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf)
    , ((modMask, xK_p ), spawn myLauncher)
    , ((modMask .|. shiftMask, xK_c ), kill)
    , ((mod4Mask .|. controlMask, xK_Down ), spawn "/home/hardik/bin/decrease-aumix-vol.sh")
    , ((0 , 0x1008ff11 ), spawn "/home/hardik/bin/decrease-aumix-vol.sh")
    , ((mod4Mask .|. controlMask, xK_Up ), spawn "/home/hardik/bin/increase-aumix-vol.sh")
    , ((0 , 0x1008ff13 ), spawn "/home/hardik/bin/increase-aumix-vol.sh")
    , ((mod4Mask .|. controlMask, xK_m ), spawn "/home/hardik/bin/toggle-aumix-mute.sh")
    , ((0 , 0x1008ff12 ), spawn "/home/hardik/bin/toggle-aumix-mute.sh")
    , ((modMask, xK_space ), sendMessage NextLayout)
    , ((modMask .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
    , ((modMask, xK_n ), refresh)
    , ((modMask, xK_Tab ), windows W.focusDown)
    , ((modMask, xK_j ), windows W.focusDown)
    , ((modMask, xK_k ), windows W.focusUp )
    , ((modMask, xK_m ), windows W.focusMaster )
    , ((modMask, xK_Return), windows W.swapMaster)
    , ((modMask .|. shiftMask, xK_j ), windows W.swapDown )
    , ((modMask .|. shiftMask, xK_k ), windows W.swapUp ) , ((modMask, xK_h ), sendMessage Shrink) , ((modMask, xK_l ), sendMessage Expand)
    , ((modMask, xK_t ), withFocused $ windows . W.sink)
    , ((modMask , xK_comma ), sendMessage (IncMasterN 1))
    , ((modMask , xK_period), sendMessage (IncMasterN (-1)))
    , ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess))
    -- , ((modMask , xK_q ), restart "xmonad" True)
    , ((modMask , xK_q ), spawn "killall conky dzen2 && xmonad --recompile && xmonad --restart")
    , ((modMask .|.shiftMask .|. controlMask , xK_c ), spawn "emacs ~/.xmonad/xmonad.hs")
    , ((modMask .|. controlMask , xK_l ), spawn "xscreensaver-command -lock")
    , ((modMask .|. controlMask , xK_k ), spawn "python ~/pythonScripts/SwitchKbLayoutDesk/src/setNextKbLayout.py")
    , ((modMask , xK_b ), sendMessage ToggleStruts)
    ++
    [((m .|. controlMask, k), windows $ f i)
    | (i, k) <- zip (XMonad.workspaces conf) [xK_F1 .. xK_F4]
    , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
    -- , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
    ++
    -- mod-{w,e,r}, Switch to physical/Xinerama screens 1, 2, or 3
    -- mod-shift-{w,e,r}, Move client to screen 1, 2, or 3
    [((m .|. modMask, key), screenWorkspace sc >>= flip whenJust (windows . f))
    | (key, sc) <- zip [xK_w, xK_e] [0..]
    , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
    myMouseBindings (XConfig {XMonad.modMask = modMask}) = M.fromList $
    [ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w))
    , ((modMask, button2), (\w -> focus w >> windows W.swapMaster))
    , ((modMask, button3), (\w -> focus w >> mouseResizeWindow w))
    myLayouts = tiled ||| Mirror tiled ||| noBorders Full ||| simpleTabbedBottom
    where
    tiled = Tall 1 (2/100) (1/2)
    myManageHook = composeAll
    [ className =? "MPlayer" --> doFloat
    , className =? "Gimp" --> doFloat
    , className =? "Gimp" --> doFloat
    , className =? "IDEA" --> doFloat
    , resource =? "desktop_window" --> doIgnore
    , isFullscreen --> doFullFloat ]
    myStartupHook :: X ()
    myStartupHook = do
    setWMName "LG3D"
    spawn "xset -b"
    spawn "xrdb -load ~/.Xdafaults"
    spawn "xscreensaver -no-splash"
    spawn "numlockx on"
    spawn "eval `cat $HOME/.fehbg`"
    spawn "conky -c ~/.conkyrc_dzen | dzen2 -ta r -x 600 -bg '#303030' -fn '-*-lucida-*-*-normal-*-12-*-*-*-*-*-*-*' &"
    spawn "conky &"
    -- spawn "conky -c ~/.conkyrc_time &"
    shortened :: Int -> String -> String
    shortened n xs | length xs < n = xs
    | otherwise = (take ( n - length end) xs) ++ end
    where
    end = "..."
    main = do
    h <- spawnPipe "dzen2 -w 600 -ta l -fn ' -*-lucida-*-*-normal-*-12-*-*-*-*-*-*-*' -bg '#303030' -fg '#FFFFFF'"
    xmonad $ defaultConfig {
    terminal = "urxvt",
    focusFollowsMouse = True,
    borderWidth = 1,
    modMask = mod1Mask,
    workspaces = [" console "," dev "," misc "," browser "],
    normalBorderColor = "#303030",
    focusedBorderColor = "#55BBFF",
    keys = myKeys,
    mouseBindings = myMouseBindings,
    layoutHook = avoidStruts $ smartBorders myLayouts,
    manageHook = myManageHook <+> manageDocks,
    startupHook = myStartupHook,
    logHook = dynamicLogWithPP $ defaultPP {
    ppCurrent = wrap "^fg(#FFFFFF)^bg(#606060)" "^fg()^bg()"
    ,ppVisible = wrap "^fg(#FFFFFF)^bg()" "^fg()^bg()"
    ,ppHidden = wrap "^fg(#55BBFF)^bg()" "^fg()^bg()"
    ,ppHiddenNoWindows = wrap "^fg(#808080)^bg()" "^fg()^bg()"
    ,ppUrgent = wrap "^fg(#FF0000)^bg()" "^fg()^bg()"
    ,ppTitle = \x -> if null x
    then ""
    else "< ^fg(#FFFFFF)^bg()" ++ shortened 23 x ++ "^fg()^bg() >"
    ,ppLayout = \x -> "^fg(#FFBB00)^bg()"
    ++ case x of
    "Tall" -> "Tiled"
    "Full" -> "Full"
    "Mirror Tall" -> "Tiled Bottom"
    "Tabbed Bottom Simplest" -> "Tabbed"
    _ -> x
    ++ "^fg()^bg()"
    ,ppSep = " "
    ,ppWsSep = ""
    ,ppOutput = hPutStrLn h
    Last edited by rangalo (2010-04-22 14:52:13)

Maybe you are looking for

  • How to display more than one Record in a Loop

    Hi , This procedure will return more than one data . so please tell me how can i write a loop to display all the records of a Table . This is my procedure : create or replace procedure getEmpName V_EMPID IN employee.EMPID%TYPE, V_EMPNAME OUT employee

  • My ipod has been stolen. How can I get it back?!

    Please I am in tears, im on the verge of just blowing my brains out and I need it back. Is there anything I can do or should I just end it.

  • MacBook Pro stopped reading discs, ejects them

    I bought this MacBook Pro in December of '08 (referbished, but from the apple website) and shortly after had a problem with the drive not reading discs and making odd noises. Took it in and they replaced it under the 90 day warranty. I haven't used t

  • OBXR- Special GL Transaction Types - Modify Fields

    Hello Gurus. We are on ECC 6.0 with New GL. Is there a way to modify which fields are available for the Special GL Transaction types in OBXR ? For example: In OBXR go to Properties.  We selected Down Payment/Down payment request, later on when we ent

  • Procedure for intercompany billing configuration

    Hi Expert Can you tell me in brief about intercompany process configuration Regards Vicky