A little help for my xmonad configuration???

i'm totally new with xmonad, and i'm all confused with this problem...
it says that the last statement in a 'do' block must be an expression or something...
i'm just following http://thinkingeek.com/2011/11/21/simpl … en2-conky/,
everything goes right except the "log hook" part...
i don't really know Haskell code,
thanks for the help and sorry for my bad English,
here's the code...
-- import stuffs {
import XMonad
import XMonad.Actions.CycleWS
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.SetWMName
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.UrgencyHook
import XMonad.Hooks.FadeInactive
import XMonad.Hooks.EwmhDesktops
import XMonad.Layout.SimpleFloat
import XMonad.Layout.NoBorders (smartBorders, noBorders)
import XMonad.Layout.PerWorkspace (onWorkspace, onWorkspaces)
import XMonad.Layout.Reflect (reflectHoriz)
import XMonad.Layout.IM
import XMonad.Layout.SimpleFloat
import XMonad.Layout.Spacing
import XMonad.Layout.ResizableTile
import XMonad.Layout.LayoutHints
import XMonad.Layout.LayoutModifier
import XMonad.Layout.Grid
import XMonad.Operations
import XMonad.Prompt
import XMonad.Prompt.RunOrRaise (runOrRaisePrompt)
import XMonad.Prompt.AppendFile (appendFilePrompt)
import XMonad.Util.Run
import Control.Monad
import Data.Ratio ((%))
import System.IO
import System.Exit
import qualified XMonad.StackSet as W
import qualified Data.Map as M
-- end of import stuffs }
-- default terminal {
myTerm = "urxvt"
-- end of default terminal }
-- workspaces {
myWork = ["home", "surf", "devs", "ofce", "play", "misc"]
-- end of workspaces }
-- mod key {
myModm = mod4Mask
-- end of modkey }
-- window border {
myBord = 1
myNorm = "#272727"
myFocu = "#5387BF"
-- end of window border }
-- keybinding {
-- key to add
addKeys x = [
-- closing window
((modMask x, xK_c), kill)
-- key to remove
removeKeys x = [
-- gmrun
(modMask x .|. shiftMask, xK_p),
-- closing window
(modMask x .|. shiftMask, xK_c)
-- strip the key to remove
strippedKeys x = foldr M.delete (keys defaultConfig x) (removeKeys x)
-- merging keys
myKeys x = M.union (strippedKeys x) (M.fromList (addKeys x))
-- end of keybinding }
-- layout hooks {
defaultLayouts = tiled ||| Mirror tiled ||| simpleFloat ||| Full
where
-- tiling algorithm
tiled = Tall nmaster delta ratio
-- master window count
nmaster = 1
-- master pane portion
ratio = 2/3
-- increment/decrement resize
delta = 3/100
-- specific workspaces
miscLayout = noBorders $ Full
-- merging layout
myLayo = onWorkspace "misc" miscLayout $ defaultLayouts
-- end of layout hooks }
-- log hooks
myLogh :: Handle -> X ()
myLogh h = dynamicLogWithPP $ defaultPP {
ppCurrent = dzenColor "#ebac54" "#1B1D1E" . pad,
ppVisible = dzenColor "white" "#1B1D1E" . pad,
ppHidden = dzenColor "white" "#1B1D1E" . pad,
ppHiddenNoWindows = dzenColor "#7b7b7b" "#1B1D1E" . pad,
ppUrgent = dzenColor "#ff0000" "#1B1D1E" . pad,
ppWsSep = " ",
ppSep = " | ",
ppLayout = dzenColor "#ebac54" "#1B1D1E" . (
\x -> case x of
"ResizableTall" -> "^i(" ++ myBitmapsDir ++ "/tall.xbm)"
"Mirror ResizableTall" -> "^i(" ++ myBitmapsDir ++ "/mtall.xbm)"
"Full" -> "^i(" ++ myBitmapsDir ++ "/full.xbm)"
"Simple Float" -> "~"
_ -> x
ppTitle = (" " ++) . dzenColor "white" "#1B1D1E" . dzenEscape,
ppOutput = hPutStrLn h
-- end of log hooks
-- manage hooks {
myMana = composeAll . concat $ [
-- apps to surf
[ className =? t --> shiftWin "surf" | t <- mySurfClass ],
-- apps to devs
[ className =? t --> shiftWin "devs" | t <- myDevsClass ],
-- apps to float
[ className =? f --> doFloat | f <- myFloatClass ]
where
shiftWin = doF . liftM2 (.) W.greedyView W.shift
mySurfClass = ["Luakit", "luakit", "Chromium"]
myDevsClass = ["Geany", "Gedit", "Netbeans"]
myFloatClass = ["Gimp"]
-- end of manage hooks }
-- dzen bar
myDzen = "dzen2 -x '1440' -y '0' -h '24' -w '640' -ta 'l' -fg '#FFFFFF' -bg '#1B1D1E'"
myBitmapsDir = "/home/perud/.xmonad/dzen2"
-- end of dzen bar
-- status bar
myStat = "conky -c /home/perud/.xmonad/.conky_dzen | dzen2 -x '2080' -w '1040' -h '24' -ta 'r' -bg '#1B1D1E' -fg '#FFFFFF' -y '0'"
-- end of status bar
-- MAIN METHOD
main = do
dzenLeftBar <- spawnPipe myDzen
dzenRightBar <- spawnPipe myStat
xmonad $ defaultConfig {
terminal = myTerm,
workspaces = myWork,
modMask = myModm,
borderWidth = myBord,
normalBorderColor = myNorm,
focusedBorderColor = myFocu,
keys = myKeys,
layoutHook = myLayo,
logHook = myLogh dzenLeft >> fadeInactiveLogHook 0xdddddddd,
manageHook = myMana
-- END OF MAIN METHOD
Last edited by perud (2013-02-14 02:28:03)

Please use code tags when pasting to the boards:
https://wiki.archlinux.org/index.php/Fo … s_and_Code

Similar Messages

  • Audigy 2 Tech support little help for n

    Original Message Follows:
    Subject: CLI - Technical Support Request
    Self Description: ID(3) Advanced PC UserSupport Inquiry: ID() I am installing or using the product for the first timeProduct: Audigy 2 ZSOperating System: Windows 2000Creative Model Number: SB0240Computer Brand/Model: Home builtProcessor/CPU: P4 3.0ghzMemory: .024gigBIOS Type/Revision: Award Bios SPE000 Pro-G.ESystem Board/Chipset: GA-8IPE000/Intel 865PE Host/AGP/Controler ICH5 IO
    Detailed Problem Description:I have recently made a purchase from e-bay form your company for Creative Sound Blaster Audigy 2 Sound Card http://cgi.ebay.com/ws/eBayISAPI.dll...92950&tc=photo I have install this product to go along with my Creative Labs Inspire P5800 5. speaker system. I am having the following problems.
    . I can only get output from 2 speakers front left and front right.2. I cannot get my microphone to work at all. Its plugin to the proper port. It worked with the old sound card. It works on other pc's I have at my residence. So its not the microphone. I checked all the connections and they are correct. I have been to the knowledge base with no luck. I have been through the forums searching and the majority of the forum responses are users helping users with very little input from Creative labs. (disappointed)I have installed/un-installed/re-installed without any luck, the software that came on the cd. I have also retrieved the last software downloads from your web site without any luck.So either I am missing something here, or I got a defecti've sound card.
    REPLY/Answers inline:
    Jason, My answers are inline.
    > Thank you for contacting Creative Technical Support. > With regards to the issue you are having, may I know the model and > serial number of the product you are having? It should start with CT or SB followed by 4 numbers >found on the sound card. As for the serial number, it can be found on the sticker and the ink stamp >which is printed on the back of the card. SB0240 > Below is a link that may help with the location of the model number. Thanks. Run a keyword search for > SID2456 from the link below.> http://us.creative.com//support/kb/> > For the 2 speakers output issue, may I know are you using digital or analog connection for your >speakers? I assume its an analog connection Creative Insprire P5800 as I don't have anything like a EAX control module that goes in between. Also I have no sound at all til I go to the speaker setting control panel andde-select digital output only.
    I have 3 wire connection Green Line out (front) Black line out 2 (rear) and Orange line out 3 (center subwoofer) These connect from the back of the sound card directly into the subwoofer. Green (front) black (rear) orange (center subwoofer)
    My old sound card RealTek`AC97 worked fine and I had sound in all my speakers. Yes I have removed the old card and un-installed the old drivers for it. Also the mircophone worked with the old sound card so I know thats not an issue. > Sorry for any inconvenience caused. > We'll need this information so that we can provide you with the correct remedy.
    Reply/Answers Again Inline:
    > May I know have you enabled CMSS?Yes I have this enabled, disabled and re-enabled to try and get this to work. > . Open MediaSource (Start, All Programs, Creative, Creative MediaSource, Creative MediaSource >Organizer).> 2. There should be an EAX button underneath the Record button at the bottom of the screen, towards >the left. Beside this button, there should be a small ellipsis button (. . .) that you can press. >Click on this. Doing this locks up my pc as soon as I hit the (....) tab. The pc spikes to 00% and the only thing I can do is hit the reset button on the pc to hard boot it. I have tried this several times with the same results. Note: I DO NOT have anything running in the background as anti virus programs and such. I don't even have anything like that installed on my pc. NOTE: I can press the EAX button itself to make it from high lighting green on the button to not high lighting green. This has had no effect on the problems I am having. > 3. Go to the CMSS 3D tab and check the box next to "Enable CMSS 3D" The only way I can get to this is by: Start>Program Files>Creative Media>Source>Creative Media Source Go, then the GO button>Product Settings>EAX Console. I have enabled, disabled and re-enable the CMSS 3D with no changes to my problem.> 4. Place a dot next to either CMSS or CMSS2. Whichever sounds better to you. I have tried CMSS and CMSS2, I have the same results with either enabled or even with CMSS 3D enabled or disabled. I only get sound out of 2 of my speakers. I know its not the speaker system (Creative Inspire P5800) because all the speakers worked with my old sound card. > It is important to remember that if you do wish to play a 5. encoded file, you will need to turn CMSS >off. Otherwise you might not receive each discreet channel. This has been Noted ref. to 5. encoded. But I would like to just play anything at this time and have all my speakers work.
    > For your microphone, I wil need you to do a mic test.>CHOOSE THE RECORDING SOURCE> . Double click on the Windows Volume Control (generally on task bar) to load the mixer> 2. Go to Options > Properties > 3. Select adjust volume for: Recording, and hit OK> 4. Place a check mark under the proper recording source (Microphone) in the Recording Control box. Done, already checked this. And doubled checked it to make sure. > TEST RECORD THE AUDIO> . Go to Start > Programs > Accessories > Multimedia > Sound Recorder.> 2. Click the Record button (red dot)> 3. Talk into the microphone > 4. Let it record the source for a little bit> 5. Hit the Stop button (black square)> 6. Hit the Play button (single black arrow pointing right)> 7. You should now hear the audio that you recordedNo sound recorded what so ever. I tested 3 different mircophones and none worked. I ran this test on the two other pc's I have at my residence and the mircophones worked and windows recorded just fine. YesI have it plug into the proper slot. > Does it help?I wished it did. > Please get back to us on your findings. Thanks.
    Reply/Answers inline:
    Dear Creative Labs,DO YOU PEOPLE EVEN READ THE PRIOR CORESPONDCE FROM THE PRIOR E-MAILS SINCE YOU APPARENTLY HAVE MUTLITPLE PEOPLE WORKING THE SAME SUPPORT TICKETS.
    I WILL REPLY IN ?CAPS? TO MAKE SURE YOU DON?T MISS ANYTHING THIS TIME??. MY REPLIES ARE INLINE AND IN CAPS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    > Thanks for the reply. I need you to know that SB0240 is the Sound Blaster Audigy 2. AS STATED IN MY PRIOR E-MAIL YES IT IS AN AUDIGY 2 SOUND CARD SEE INFORMATION BELOW. Support Inquiry: ID() I am installing or using the product for the first timeProduct: Audigy 2Model: SB0240Blaster Audigy 2 Sound Card http://cgi.ebay.com/ws/eBayISAPI.dll...92950&tc=photo ARE WE CLEAR ON THIS NOW? > Please try the following cleansweep and re-installation procedure, to see if it works:-> . Click START / RUN / Type MSCONFIG and press ENTER. AS STATED BEFORE I AM RUNNING WINDOWS 2000 MSCONFIG.EXE DOES NOT COME WITH WINDOWS 2000 AS DEFAULT. SO TO MAKE SURE I FOLLOWED YOUR DIRECTIONS TO THE ?T? I WAS ABLE TO GET THE MSCONFIG.EXE MICROSOFT. THE COMMON USER WOULD NOT HAVE KNOWN THIS AS THEY WOULD HAVE TRIED ABOVE AND GOTTEN AN ERROR MSG THAT MSCONFIG COULD NOT BE FOUND. > 2. Insert a check to the left of SELECTIVE STARTUP and deselect 'LOAD STARTUP ITEMS'. DONE! > 3. Select the SERVICES tab and select HIDE ALL MICROSOFT SERVICES. DONE! > 4. Uncheck all results and click OK. DONE! > 5. Click OK and reboot when prompted. DONE! > 6. Enable the WINDOWS XP STARTUP MENU by rebooting your computer and tapping F8 once >every second OR holding the SHIFT key while rebooting. I AM RUNNING WINDOWS 2000 AS STATED BEFORE, IF YOUR GOING TO USE TEMPLATES MAKE SURE THEY REFER TO THE OPERATING SYSTEM THE USER HAS. BUT F8 STILL IS THE DEFAULT KEY TO GET TO THE WINDOWS 2000 STARTUP MENU. > 7. When the menu is displayed, select SAFE MODE and press ENTER. DONE! > 8. Once in SAFE MODE, insert the sound card's installation CD and exit out of the installer DONE! > 9. Click START / RUN. DONE! > 0. Type "X:\AUDIO\DRIVERS\CTZAPXX.EXE into the OPEN field (replace X with the applicable CD->ROM dri've letter). DONE! > . Click OK. DONE! > 2. When the CREATIVE DRIVER UPDATE UTILITY opens, select DRIVER UNINSTALLATION under >UPDATE OPTION. DONE! > 3. If two out of the three options are disabled or grayed out under DRIVER TYPE, click OK. >Otherwise, select WDM. You will then be prompted to reboot, but please do not do so. DONE! > 4. Click START / SETTINGS / CONTROL PANEL / ADD/REMOVE PROGRAMS. DONE! > 5. Remove all Creative SB Audigy 2 programs. DONE! > 6. Close all windows, and reboot the computer normally (ENTER NORMAL MODE). DONE! > 7. The Audigy 2 will be detected by Windows. Cancel the ADD NEW HARDWARE WIZARD when >able. DONE! > In order to install your soundcard properly, I recommend you to ensure the following for the audio >installation and test:
    >- The card is the only card installed other than the Graphics card. THE ONLY CARDS THAT ARE INSTALLED ON MY PC ARE THE SOUNDCARD AND GRAPHICS CARD WHICH IS IN A APG SLOT. > - The card is at least one empty slot away from the Graphics card. THE CARD IS ON THE 3 SLOT FROM THE TOP AND SLOT FROM THE BOTTOM WITH NO OTHER CARDS INSTALLED. >- Place the soundcard away from all the others. NO OTHER CARDS ARE INSTALLED >- That the card is seated properly in the PCI slot. YES THE CARD IS PROPERLY SEATED THIS A BASIC A+ CERTIFICATION TASK >- Move the PC's internal wires away from the soundcard. NO WIRES ARE NEAR THE SOUND CARD I.E. POWER CONNECTORS > - That the on-board sound on your motherboard is disabled through the BIOS. CORRECT THIS WAS DONE BEFORE INSTALLING THE SOUND CARD > - That the on-board gameport is disabled through the BIOS. CORRECT THIS WAS DONE BEFORE INSTALLING THE SOUND CARD >- That your motherboard BIOS is up-to-date. MOTHERBOARD IS RUNNING THE LATEST BIOS, ITS ONLY 2 MONTHS OLD. > - That the operating system is up-to-date with the latest service packs and patches. WINDOWS UPDATES ARE UP TO DATE WITH THE LATEST PATCHES > - That there are no background applications open when you attempt the solution. CORRECT AS I STATED BEFORE > - That the anti-virus program is disabled. > NONE LOADED ON THE PC AS I STATED BEFORE > - That if you are over-clocking your system, return all options to their recommended settings. I HAVE NEVER OVERCLOCKED ANY OF MY PC?S > - That you access the PC with administrator rights. CORRECT I AM THE ONLY USER > 8. Perform an installation via the CTRUN program on the CD (X:\CTRUN\CTRUN.EXE where X is the >dri've letter of your CD dri've that has the installation CD). DONE! > 9. Reboot if prompted. DONE! > 20. Please obtain the latest updates for your Audigy 2 card from our website:- http://us.creative.com//support/downloads/
    DONE! > 2. Once you are prompted to OPEN FROM CURRENT LOCATION or SAVE TO DISK, select SAVE >TO DISK and download the update to MY DESKTOP.
    DONE! > 22. When the file has completed the phase of being transferred to your computer, locate the file on >your desktop and double click the file. DONE! > Do a speaker and diagnostic test. Do you have 5. output? DO I HAVE 5. OUTPUT? NO STILL THE SAME PROBLEM > I also need you to check the Speaker selection setting in Start | Programs| Creative | Sound Blaster >Audigy 2 | Creative Surround Mixer and ensure that it is set to 5. Speakers. Also set 5. at the Control CORRECT SEE LINKS FOR DESKTOP PICTURES http://vibig.rachost.com/desktop/DESK.jpghttp://vibig.rachost.com/desktop/DESK2.jpghttp://vibig.rachost.com/desktop/DESK3.jpg > Panel Speaker Settings.> On speaker systems that are equipped with a Fader or Rear channel volume controls, check to see >that these controls have not been set to use the front channels exclusi'vely. CHECKED! > Do reply back to me if you are still having problems with any error messages prompted. Thanks.
    > PLEASE READ! AFTER FOLLOWING THE ABOVE INSTRUCTIONS! I REFERED BACK TO THE PRIOR E-MAIL AND DID THE TEST AS REQUESTED THE RESULTS WERE THE SAME WITH MINOR FIX. > . Open MediaSource (Start, All Programs, Creative, Creative MediaSource, Creative MediaSource >Organizer).> 2. There should be an EAX button underneath the Record button at the bottom of the screen, towards the left. Beside this button, there should be a small ellipsis button (. . .) that you can press. Click on this. > > Doing this locks up my pc as soon as I hit the (....) tab. The pc spikes to 00% and the only thing I >>can do is hit the reset button on the pc to hard boot it. I have tried this several times with the same >>results. THIS NO LONGER LOCKS UP MY PC, I AM ABLE TO HIT THE (?) AND IT BRINGS UP THE EAX CONSOLE SCREEN TO ENABLE CMSS 3D THIS HAS BEEN ENABLED ? DISABLED ? RE-ENABLED WITH THE SAME RESULTS. > CHOOSE THE RECORDING SOURCE> . Double click on the Windows Volume Control (generally on task bar) to load the mixer> 2. Go to Options > Properties > 3. Select adjust volume for: Recording, and hit OK> 4. Place a check mark under the proper recording source (Microphone) in the Recording Control box. > > Done, already checked this. And doubled checked it to make sure. > TEST RECORD THE AUDIO> . Go to Start > Programs > Accessories > Multimedia > Sound Recorder.> 2. Click the Record button (red dot)> 3. Talk into the microphone > 4. Let it record the source for a little bit> 5. Hit the Stop button (black square)> 6. Hit the Play button (single black arrow pointing right)> 7. You should now hear the audio that you recorded > > No sound recorded what so ever. I tested 3 different mircophones and > > none worked. I ran this test on the two other pc's I have at my > > residence and the mircophones worked and windows recorded just fine. Yes> > I have it plug into the proper slot. THIS IS STILL AND ISSUE AS IT STILL DOES NOT WORK. THE SPEAKERS ARE STILL NOT WORKING RIGHT AS I ONLY CAN GET SOUND OUT OF THE FRONT 2 SPEAKERS.NOTHING HAS CHANGED AS WE ARE BACK TO SQUARE ONE AGAINIf someone could help me or shed some light on this situation I would be very grateful. !!!
    Thanks,
    Capt.

    Support have to go over some things first to make sure you've tried them. If it hasn't helped, just mail them back and let them know. It sounds like like you have the settings correct (CMSS, 5. in speaker selection), so there must be something wrong in the installation or configuration of the software.
    The CleanBoot troubleshooting page on Microsoft's Kbase might help, although, it sounds like you covered a clean install aswell so that would normally help.
    These forums are for user-to-user interaction, rather than Support from Creative. We monitor these forums and reply to some posts, but we can't reply to every topic and offer everyone support (that's what the phone and e-mail support are for).
    Cat

  • A little help for a newbie?

    Hi, I am currently a newby in developing apps, It got to my ears that a little TV channel has a competition on creating an app to view their webpage without using safari browser...I would like to get some help with that, if that is possible!Thanks!

    or, just find the PhoneBook constructor, and newthat
    sucker.That depends on what the constructor does (it
    shouldn't do any more than initialize the instance)
    and what instance methods there are. He wants on
    program to cause another one to do what's currently
    in that second one's main.
    I agree that in general it's probably a better idea
    to creat a phone book and ask it to do things, but
    just constructing one won't necessarily work for the
    OP with his current code.Hmmm. I have to think about this a little. It seems to me that it depends on how much application logic resides in the main class, and how the OP wants to interface. If all he can do is call main, then he has little programmatic control, since the interface is defined by the public methods. Unless all he wants to do is start it up, and then interface by way of the GUI.

  • Help with using xmonad configuration

    http://haskell.org/haskellwiki/Xmonad/C … _xmonad.hs
    ok when I did ghci <filename> after I downloaded the configuration, I got an error saying parse error on input `<!' Failed modules loaded: none.
    how would I go about solving this problem?
    PS I'm a noob when it comes to this stuff but I'm learning
    Last edited by unregistered (2009-06-08 10:15:41)

    Here is Assorato's config:
    {-# OPTIONS_GHC -fglasgow-exts -fno-warn-missing-signatures #-}
    -- |
    -- Module : XMonad.Config.Arossato
    -- Copyright : (c) Andrea Rossato 2007
    -- License : BSD3-style (see LICENSE)
    -- Maintainer : [email protected]
    -- Stability : stable
    -- Portability : portable
    -- This module specifies my xmonad defaults.
    module XMonad.Config.Arossato
    ( -- * Usage
    -- $usage
    arossatoConfig
    ) where
    import qualified Data.Map as M
    import XMonad hiding ( (|||) )
    import qualified XMonad.StackSet as W
    import XMonad.Actions.CycleWS
    import XMonad.Hooks.DynamicLog hiding (xmobar)
    import XMonad.Hooks.ManageDocks
    import XMonad.Hooks.ServerMode
    import XMonad.Layout.Accordion
    import XMonad.Layout.LayoutCombinators
    import XMonad.Layout.Magnifier
    import XMonad.Layout.NoBorders
    import XMonad.Layout.SimpleFloat
    import XMonad.Layout.Tabbed
    import XMonad.Layout.WindowArranger
    import XMonad.Prompt
    import XMonad.Prompt.Shell
    import XMonad.Prompt.Ssh
    import XMonad.Prompt.Theme
    import XMonad.Prompt.Window
    import XMonad.Prompt.XMonad
    import XMonad.Util.Run
    import XMonad.Util.Themes
    -- $usage
    -- The simplest way to use this configuration module is to use an
    -- @~\/.xmonad\/xmonad.hs@ like this:
    -- > module Main (main) where
    -- >
    -- > import XMonad
    -- > import XMonad.Config.Arossato (arossatoConfig)
    -- >
    -- > main :: IO ()
    -- > main = xmonad =<< arossatoConfig
    -- NOTE: that I'm using xmobar and, if you don't have xmobar in your
    -- PATH, this configuration will produce an error and xmonad will not
    -- start. If you don't want to install xmobar get rid of this line at
    -- the beginning of 'arossatoConfig'.
    -- You can use this module also as a starting point for writing your
    -- own configuration module from scratch. Save it as your
    -- @~\/.xmonad\/xmonad.hs@ and:
    -- 1. Change the module name from
    -- > module XMonad.Config.Arossato
    -- > ( -- * Usage
    -- > -- $usage
    -- > arossatoConfig
    -- > ) where
    -- to
    -- > module Main where
    -- 2. Add a line like:
    -- > main = xmonad =<< arossatoConfig
    -- 3. Start playing with the configuration options...;)
    arossatoConfig = do
    xmobar <- spawnPipe "xmobar" -- REMOVE this line if you do not have xmobar installed!
    return $ defaultConfig
    { workspaces = ["home","var","dev","mail","web","doc"] ++
    map show [7 .. 9 :: Int]
    , logHook = myDynLog xmobar -- REMOVE this line if you do not have xmobar installed!
    , manageHook = newManageHook
    , layoutHook = avoidStruts $
    decorated |||
    noBorders mytabs |||
    otherLays
    , terminal = "urxvt +sb"
    , normalBorderColor = "white"
    , focusedBorderColor = "black"
    , keys = newKeys
    , handleEventHook = serverModeEventHook
    , focusFollowsMouse = False
    where
    -- layouts
    mytabs = tabbed shrinkText (theme smallClean)
    decorated = simpleFloat' shrinkText (theme smallClean)
    tiled = Tall 1 (3/100) (1/2)
    otherLays = windowArrange $
    magnifier tiled |||
    noBorders Full |||
    Mirror tiled |||
    Accordion
    -- manageHook
    myManageHook = composeAll [ resource =? "win" --> doF (W.shift "doc") -- xpdf
    , resource =? "firefox-bin" --> doF (W.shift "web")
    newManageHook = myManageHook
    -- xmobar
    myDynLog h = dynamicLogWithPP defaultPP
    { ppCurrent = xmobarColor "yellow" "" . wrap "[" "]"
    , ppTitle = xmobarColor "green" "" . shorten 40
    , ppVisible = wrap "(" ")"
    , ppOutput = hPutStrLn h
    -- key bindings stuff
    defKeys = keys defaultConfig
    delKeys x = foldr M.delete (defKeys x) (toRemove x)
    newKeys x = foldr (uncurry M.insert) (delKeys x) (toAdd x)
    -- remove some of the default key bindings
    toRemove x =
    [ (modMask x , xK_j)
    , (modMask x , xK_k)
    , (modMask x , xK_p)
    , (modMask x .|. shiftMask, xK_p)
    , (modMask x .|. shiftMask, xK_q)
    , (modMask x , xK_q)
    ] ++
    -- I want modMask .|. shiftMask 1-9 to be free!
    [(shiftMask .|. modMask x, k) | k <- [xK_1 .. xK_9]]
    -- These are my personal key bindings
    toAdd x =
    [ ((modMask x , xK_F12 ), xmonadPrompt defaultXPConfig )
    , ((modMask x , xK_F3 ), shellPrompt defaultXPConfig )
    , ((modMask x , xK_F4 ), sshPrompt defaultXPConfig )
    , ((modMask x , xK_F5 ), themePrompt defaultXPConfig )
    , ((modMask x , xK_F6 ), windowPromptGoto defaultXPConfig )
    , ((modMask x , xK_F7 ), windowPromptBring defaultXPConfig )
    , ((modMask x , xK_comma ), prevWS )
    , ((modMask x , xK_period), nextWS )
    , ((modMask x , xK_Right ), windows W.focusDown )
    , ((modMask x , xK_Left ), windows W.focusUp )
    -- other stuff: launch some useful utilities
    , ((modMask x , xK_F2 ), spawn "urxvt -fg white -bg black +sb" )
    , ((modMask x .|. shiftMask, xK_F4 ), spawn "~/bin/dict.sh" )
    , ((modMask x .|. shiftMask, xK_F5 ), spawn "~/bin/urlOpen.sh" )
    , ((modMask x .|. shiftMask, xK_t ), spawn "~/bin/teaTime.sh" )
    , ((modMask x , xK_c ), kill )
    , ((modMask x .|. shiftMask, xK_comma ), sendMessage (IncMasterN 1 ) )
    , ((modMask x .|. shiftMask, xK_period), sendMessage (IncMasterN (-1)) )
    -- commands fo the Magnifier layout
    , ((modMask x .|. controlMask , xK_plus ), sendMessage MagnifyMore)
    , ((modMask x .|. controlMask , xK_minus), sendMessage MagnifyLess)
    , ((modMask x .|. controlMask , xK_o ), sendMessage ToggleOff )
    , ((modMask x .|. controlMask .|. shiftMask, xK_o ), sendMessage ToggleOn )
    -- windowArranger
    , ((modMask x .|. controlMask , xK_a ), sendMessage Arrange )
    , ((modMask x .|. controlMask .|. shiftMask, xK_a ), sendMessage DeArrange )
    , ((modMask x .|. controlMask , xK_Left ), sendMessage (DecreaseLeft 10))
    , ((modMask x .|. controlMask , xK_Up ), sendMessage (DecreaseUp 10))
    , ((modMask x .|. controlMask , xK_Right), sendMessage (IncreaseRight 10))
    , ((modMask x .|. controlMask , xK_Down ), sendMessage (IncreaseDown 10))
    , ((modMask x .|. shiftMask , xK_Left ), sendMessage (MoveLeft 10))
    , ((modMask x .|. shiftMask , xK_Right), sendMessage (MoveRight 10))
    , ((modMask x .|. shiftMask , xK_Down ), sendMessage (MoveDown 10))
    , ((modMask x .|. shiftMask , xK_Up ), sendMessage (MoveUp 10))
    -- gaps
    , ((modMask x , xK_b ), sendMessage ToggleStruts )
    ] ++
    -- Use modMask .|. shiftMask .|. controlMask 1-9 instead
    [( (m .|. modMask x, k), windows $ f i)
    | (i, k) <- zip (workspaces x) [xK_1 .. xK_9]
    , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask .|. controlMask)]
    As you can see Assorato uses other keybindings than the default ones.

  • Little help for calling report from a form

    hi,
    I AM NOT ABLE TO CALL THE REPORT WITH THE FOLLOWING CODE. PLEASE TELL ME WHERE I AM DOING WRONG! THANKS A LOT!!
    It is Oracle 9i and Reports 6i.
    -> I have a form with only one BUTTON.
    -> I have a REPORT with only one USER PARAMETER 'P_1' which is a number.
    -> I have only one query INSIDE the report. It is "SELECT * FROM EMP WHERE EMPNO = :P_1'
    -> I added the report to form in the OBJECT NAVAVIGATOR of FORM and the NAME OF REPORT is 'REOPRT4'
    here is the code on the form:
    ================================
    When_button_pressed
    DECLARE
    vid report_object;
    vname varchar2(100);
    BEGIN
    vid := find_report_object('Report4');
    vname := run_report_object(vid);
    END;
    ==================================
    -> the FORM and REPORT are in "c:\helloworld" directory.
    -> the error I am getting is 'internal pl/sql error'
    -> I WANT THE USER TO ENTER THE RUNTIME PARAMETER FOR THE REPORT AT RUNTIME, so no need to worry about supplying the parameter through code!!!
    Thank You very much. I appreciate your kind help!!

    I think that you have to add some code, see page 15 in this:
    http://otn.oracle.com/products/forms/pdf/277282.pdf
    Helena

  • A little help for HDMI sound output.

    I have an HP Pavilion HPE Series.  Pavilion H8-1214 PC
    I bought an HDMI cord several months back, to hook up my TV as a second monitor (like for watching movies) and worked fine for some time up until last night when when I tried to update my drivers (like graphics) since it seemed like on certain sites or games it was slow or unresponsive (like facebook games).  Now I can't get the audio to work for my TV (the HDMI output) as you can see in the screen shot I took. 
    http://puu.sh/9SZOT/ab1c31984d.png
    I have tried returning to an older restore point - that helped temporarily until I turned my computer on today and realized I still had that problem.  I have tried uninstalling that particular driver and reinstalling it - doesn't help, tried disabling and re-enabling - doesn't help.  
    The only way it seems to work is when I turn the TV on first and then restart my PC, but that is kind of a hassle since when I want to watch a show or movie I have to restart instead of just turning it on and setting TV as "default device" in "Playback Devices" like I did before.  
    Is there a way to fix this?  Please help.  Thanks in advance.

    Hi,
    Install the HP posted AMD graphics driver for your PC.   It's not uncommon for HP to use a propriety graphics driver.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • Little help for a novice - Need a ps script to list user with their email only.

    Hi,
    I need to extract every month the user list which have their email information on it, so i don't need to extract the user services etc from the AD.
    Today, i'm using this script i made :
    clear-host
    Import-Module activedirectory
    $CurrentDate = Get-Date
    $CurrentDate = $CurrentDate.ToString('dd-MM-yyyy')
    Get-ADUser -Filter * -server ad.test -SearchBase "dc=ad,dc=test" -Properties DisplayName,sn,givenname,Company,Description,EmailAddress | select DisplayName,sn,givenname,Company,Description,EmailAddress | export-clixml "C:\users_$CurrentDate.xml"
    But like this i have every user of the ad even the ones without email.
    Is there any filter to only extract theses one ?
    Thanks for your help.

    Hi,
    Try this:
    $CurrentDate = (Get-Date).ToString('dd-MM-yyyy')
    Get-ADUser -Filter "mail -like '*'" -Server ad.test -SearchBase "dc=ad,dc=test" -Properties DisplayName,sn,givenname,Company,Description,EmailAddress |
    Select DisplayName,sn,givenname,Company,Description,EmailAddress |
    Export-Csv "C:\users_$CurrentDate.csv" -NoTypeInformation
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • A little help for creating a procedure

    Hi,
    I'm new to oracle so i would really appreciate your help. Here is the scenario: i have several table in a database, in one table, let's call it table_a i have some values like: assignment, employee_id, account and so on. In another table, table_b i also have some data the is found in table_a like: employee_id, assignmnet, employee_name... and so on. I must create a procedure to check in table_a by value assignment(pk) and find what assignments are not in table_b and then insert these values in table_b, table_c.... . How do i create the comparison part?

    Hi,
    If It would have to insert only in table_b, then you can go for MERGE, that will be fine instead of procedure.
    Other options would be
    INSERT ALL
    INTO table_b VALUES (<required columns>)
    INTO table_c VALUES (<required columns>)
    SELECT <the columns>
    FROM table_a
    where assignmnet_id not in (select assignmnet From table_b);
    - Pavan Kumar N

  • Little Help For the New Bee

    Hello,
    though I work a lot with FCP and all the other pro applications, I have never been in a professional enough environment to have to use Compressor. I have a file that is an MPEG 4 Movie. Dimensions: 720X304. I just need to be able to put it into Final Cut Pro and edit with the best quality. How do I go about converting? I messed around with it for a while, but with no success. It seems very straight foward, but I think I am missing something. Please help if you can.
    thanks,
    Toolius

    Hey Toolius
    if i am reading this information correctly, this file's codec is a mpeg, but with AAC audio. are you SURE that you didnt leave out the 4 in mpeg4???
    what is the extension of the file, *.mov, *.mp4?
    if you want to edit in FCP, then all you have to do is a simple transcode to the file.
    seems like you have a widescreen 16:9 (maybe 1.85 or 2.35) file.
    you can do this transcode in one of two ways, via QT Pro itself, or Mpegstreamclip.
    would you want to keep your video as 16:9 or 4:3?
    if you want it 16:9 you have 2 options, 720x480 anamorphic or 960x540 (this is for 16:9, 1.78 FF, so yo will still have mattes).
    if you want it 4:3 then you can use 720x480.
    the only thing with all this is that your footage is compressed, so try to keep it as lossless as possible throughtout the whole process, like that, you minimize cascade compression (basically compressing the already compressed footage).
    make sure that you also keep in mind your codec sequence, like that, you will NOT have to render this footage!~
    Mikey M.

  • Hi! a little help for me!

    I m new and i want to know some little information of this service...first i want to say that I m italian and I stay into an appartment on rent for about 3 months!     Can i use BT FON whitout buy a modem? I want to connect with my mobile phone but i have not any pc or television or other...so i don t want buy a pakage..how can i do?
    please sorry for my english and use a simple wordls! thenks!

    Ciao, Sì, è possibile utilizzare BTFON finché si dispone di un wifi sul vostro laptop. Tutto quello che dovete fare è collegare al segnale e aprire il browser web. È possibile acquistare l'accesso dalla schermata di accesso. State attenti però se vedi voucher di accesso per £ 3, 5 € o 15 £ questi buoni FON e sono venduti da FON che hanno sede in Spagna. Sei best off acquistare i buoni BT Openzone.
    Spero che questo aiuti, se avete problemi con i buoni chiamata 08000223322
    RAID
    Mi dispiace il mio italiano non è così buono

  • I need help for install and configure password sync from AD to OID

    Hi guys!
    I need to sync passwords from AD to OID, first all, ¿What software do I need? I read some docs and don't find the good config.
    I'm trying with:
    -Database 11g
    -Weblogic 11g
    -SOA 11g
    -IDM 11g
    -IAM 11g
    First I install the Database and load the schemas with RCU, next install Weblogic without domian, next install SOA, next install IDM (OID and DIP) in a new Weblogic Domain, next install IAM, next configure IAM in the domain created before, next configure SSL, check the config by using ldapbind, next configure DIP.
    It's that ok?
    ¿What I am doing wrong?
    Thank you all.

    If all you need is AD & OID then OIM is not required. DIP alone can handle this
    Password sync should work using DIP. if this is not working then check synchronization mapping and verify that password attribute is also part of this AD-OID sync. Enable debug in synchronization profile or raise an Service Request with Oracle support.
    Check
    http://docs.oracle.com/cd/E23943_01/oid.1111/e10031/odip_actdir.htm#CHDIGDEH
    and
    http://docs.oracle.com/cd/E23943_01/oid.1111/e10031/odip_config_integration.htm#BABBFAAJ
    and
    http://docs.oracle.com/cd/E23943_01/oid.1111/e10031/odip_adpasswordsync.htm#CHDBIIJC
    Atul Kumar

  • Little help for simple gallery

    Hi, i use a very simple spry gallery. the xml format is this
    <photos>
    <photo pathtn="..." path="..." description="..." />
    <photo......
    <photo......
    </photos>
    Then on the thumbnails div i've got a spry:repeat and a
    spry:setrow to set the content of the spry:detailregion which shows
    the large image and the description. The gallery works very well,
    but what i'd like to do is to change the aspect of the active
    thumbnail...Nothing too complicated..just a thicker border ...how
    could i do this?
    thanks!

    I don't know if this is best way to do it, but I wrapped my
    thumbnails section in a div called "thumbnails" to which i applied
    the spry:region="dsPhotos dsGalleries dsGallery".
    From here, I entered my spry div:
    <div spry:repeat="dsPhotos"
    onclick="HandleThumbnailClick('{ds_RowID}');"
    onmouseover="Spry.Effect.AppearFade('tn{ds_RowID}',
    {duration:1000,from:100,to:20,toggle:true})"> <img
    id="tn{ds_RowID}" alt=""
    src="galleries/{dsGalleries::@base}{dsGallery::thumbnail/@base}{@thumbpath}"
    width="24" height="24" /></div>
    Then I closed the thumbnails div.
    From here, I simply created a #thumbnails rule in my css
    file, and changed my border like so:
    #thumbnails img {
    padding: 1px;
    clear: none;
    float: left;
    height: 24px;
    width: 24px;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 0px;
    margin-left: 0px;
    border: 2px solid #CCCCCC;
    Hope this helps!

  • Little help for the beginer

    when I try to compile this program
    import java.applet.Applet;
    import java.awt.*;
    public class OnnurTilraun extends Applet
         TextField t1, t2;
         Button b1;
         Label a1;
         public void init()
              t1 = new TextField(20);
              t2 = new TextField(20);
              b1 = new Button("Heilsa");
              a1 = new Label("Nafn:");
              this.add(a1);
              this.add(t1);
              this.add(b1);
              this.add(t2);
         public boolean action(Event e, Object o)
              if (e.target == b1)
                   t2.setText("Good day" + t1.getText());
                   return true;
              return false;
    I get this message(Note: "Filename".java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    Tool completed successfully)
    but when I try to run the applet the appletviewer can�t start the applet so I recompile with -deprecation I get this message("filename".java:26: warning: action(java.awt.Event,java.lang.Object) in java.awt.Component has been deprecated
         public boolean action(Event e, Object o)
    ^
    1 warning
    Tool completed successfully)
    What to do, I don�t know so I asking you

    The warning message you get about deprecation is a warning and not a fatal error, and you may ignore it. It means that you use code that is considered "outdated", and that may (or may not) be discontinued in some future JVM. It is probably not the reason you can't run the applet. The reason appletviewer won't start the applet is hard to know without knowing what error message you get, but a wild guess is that there is some minor error in html file you use to start the applet
    If you don't want to ignore the deprecation warning, do the rewrite virum suggested. As for the problem with "cannot resolve symbol", you need to import the ActionEvent class. Add
    import java.awt.event.*;together with your other import statements.

  • A little help for a noob

    I have all sorts of sounds and samples in a folder called loops. Many of these are from the AMG jam packs. I just purchased a new macbook pro and when I go to use mainstage it will not find the sounds in this folder. On my previous macbook I had used many of these sounds in mainstage. Can anyone tell me why I can not load these sounds? Is there a way to load these sounds directly into mainstage? Thanks.

    that would be a really cool idea (jam along to drum loops) but I don't believe Mainstage is built for that. You can manage it fine with Logic Pro though by enabling Software Monitoring and record-enabling your guitar track while playing a loop.

  • Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).

    Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).
    Problem - SFDC does not create cases from emails that have more than 10 MB of attachments. Our clients will not go-live if their clients cannot send in emails with attachments over 10 MBs
    Potential resolution - Configure MS exchange to strip off the attachments(if over 10 MB) and store it in a public folder, forward the email to Salesforce (so the case gets created or the email
    is associated to an existing case), the client should have some way to know if the attachments were stripped off and should be able to dlownload the attachments and continue with case resolution.
    Any help is appreicated!
    Thanks

    Hi,
    From your description, you want to achieve the following goal:
    Configure Exchange to filter the attachments if the size is over 10 MB and store it in a public folder, and then forward the email to Salesforce.
    Based on my knowledge, I'm afraid that it can't be achieved. Exchange can filter messages with attachments, but it couldn't store these attachments on public folder automatically. Also, I don't see any transport rule can do it.
    Hope my clarification is helpful.
    Best regards,
    Amy Wang
    TechNet Community Support

Maybe you are looking for