[SOLVED] need help with formatting in python

HI, i have this little bookmark script in python: https://github.com/carnager/robot/blob/master/robot
there are 2 functions that spit out the same output, but one is filtered (listAll and listURL)
while listAll is formatted nicely, I couldnt manage to format the listURL stuff.
for convinience here are both functions:
def listURL(args):
bookmarkfile = open(str(bmarks), 'r')
bookmarks = json.loads(bookmarkfile.read(), 'r')
bookmarkfile.close()
if args.group:
url = [bookmark['name'] + " " + bookmark['url'] + " " + ', '.join(bookmark['tags']) + " " + bookmark['group'] for bookmark in bookmarks if bookmark['group'] == str(args.group)]
print("\n".join(url))
if args.tag:
url = [bookmark['name'] + " " + bookmark['url'] + " " + ', '.join(bookmark['tags']) + " " + bookmark['group'] for bookmark in bookmarks if args.tag in bookmark['tags']]
print("\n".join(url))
def listAll(args):
bookmarkfile = open(str(bmarks))
bookmarks = json.loads(bookmarkfile.read())
bookmarkfile.close()
if args.urls:
for x in bookmarks:
print("%-40s %-90s %77s %15s" % (x['name'], x['url'], ', '.join(x['tags']), x['group']))
else:
for x in bookmarks:
print("%-40s %77s %15s" % (x['name'], ', '.join(x['tags']), x['group']))
Any idea how to format listURL too?
Last edited by Rasi (2014-08-24 00:36:40)

Use the same format in both functions.
def listURL(args):
bookmarkfile = open(str(bmarks), 'r')
bookmarks = json.loads(bookmarkfile.read(), 'r')
bookmarkfile.close()
fstr = "%-40s %-90s %77s %15s"
if args.group:
for x in bookmarks:
if x['group'] == str(args.group):
print(fstr % (x['name'], x['url'], ', '.join(x['tags']), x['group']))
if args.tag:
for x in bookmarks:
if args.tag in x['tags']:
print(fstr % (x['name'], x['url'], ', '.join(x['tags']), x['group']))
If you want to use Python 3 style formating (which also works with recent versions of python 2), substitute the following:
fstr = "{:40s} {:90s} {:77s} {:15s}"
print(fstr.format(x['name'], x['url'], ', '.join(x['tags']), x['group']))

Similar Messages

  • [SOLVED]Need help with dwm...

    Hi,
    I need help with dwm.I want to apply only 2 patches but everytime when i try i get error... I need xft or pango patch and systray patch.Please help.
    Thanks.
    Last edited by grobar87 (2013-06-01 13:49:55)

    [dejan@archtop dwm-6.0]$ patch < 00-dwm-6.0-buildflags.diff
    patching file config.mk
    [dejan@archtop dwm-6.0]$ patch < dwm-6.0-xft.diff
    patching file dwm.c
    [dejan@archtop dwm-6.0]$ patch < 02-dwm-6.0-systray.diff
    patching file dwm.c
    [dejan@archtop dwm-6.0]$ sudo make clean install
    [sudo] password for dejan:
    cleaning
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/include/freetype2 -DVERSION="6.0" -DXINERAMA -DXFT
    LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama -L/usr/X11R6/lib -lXft
    CC = cc
    creating config.h from config.def.h
    CC dwm.c
    dwm.c: In function ‘keypress’:
    dwm.c:1062:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
    CC -o dwm
    installing executable file to /usr/local/bin
    installing manual page to /usr/local/share/man/man1
    [dejan@archtop dwm-6.0]$
    And here is my config.h:
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "Ohsnap";
    static const char normbordercolor[] = "#444444";
    static const char normbgcolor[] = "#222222";
    static const char normfgcolor[] = "#bbbbbb";
    static const char selbordercolor[] = "#005577";
    static const char selbgcolor[] = "#005577";
    static const char selfgcolor[] = "#eeeeee";
    static const unsigned int borderpx = 1; /* border pixel of windows */
    static const unsigned int snap = 32; /* snap pixel */
    static const unsigned int systrayspacing = 2; /* systray spacing */
    static const Bool showsystray = True; /* False means no systray */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 8, False, -1 },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const int nmaster = 1; /* number of clients in master area */
    static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    /* key definitions */
    #define MODKEY Mod1Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "uxterm", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_i, incnmaster, {.i = +1 } },
    { MODKEY, XK_d, incnmaster, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },

  • [SOLVED] Need help with setting up X

    Hello guys am new to the forum and this is my first post here. I am in need of a little help.
    Need help with X configuration. It starts like this, I installed xorg-server , xorg-utils, xorg-server-utils. When I tried installed xorg-init it says no package, anyway I ignored and moved on.
    Now I installed regular mesa stuff and installed xf86-video-ati driver for my HD4250 graphics adapter. with libgl and ati-dri (I have old arch wiki print so it mentioned to install those while newer doesn't list some stuff)
    Now the problem is that Xorg -configure doesn't work with newer X and nor the packages has generated /etc/X11/xorg.conf file.
    Anyway I created the file manually and added each and every section as mentioned in the "old" guide that I have.
    I even added a /etc/X11/xorg.conf.d/20-radeon.conf file for my graphics card with the content as
    Section "Device"
    Identifire "r"
    Driver "radeon"
    EndSection
    After manually creating all such files I installed x-term, xclock and twm. But when I tried to start X by startx or Xinit it says command not found. Add to that a simple X shows couple of errors.
    Please see the errors here Paste #399362 | LodgeIt!
    Some more questions : My old guide mentioned to install HAL while newer guide on the net mention DBUS. Though I have added DBUS to be on the safe side but why not HAL ? Is it because of Udev ?
    So please help me getting X up and running.
    Regards
    Last edited by Shashwat (2011-06-04 09:47:47)

    Ok  I sorted out the misprints in the file and installed xinit but still can't get it to work.
    1. There are few errors in xorg.conf that I cannot make it out.
    2. The X output says no screen found. ?
    http://paste.pocoo.org/show/399383/
    Now when I add EndSection at the last its says invalid parameter and when I remove it, I get an error "No EndSection, EOF missing"
    Kind of bugging
    Please do help.

  • Need Help with Format/Partition.. using cmd

    Okay guys.. Im kinda sick of trying to get my Recovery to work. Seems like its about to finish and everything is perfect.. then suddenly I get an error message saying that Recovery didnt work, or something like that..
    I figured I might as well try starting with a fresh hard drive, then trying the recovery again..
    So someone told me that if I have the HP Recovery disks, then I would be able to try them, even on a brand new hard drive, or a formatted one or whatever..
    Is this true?
    If so, then what I am asking you guys, is, if there is anybody that would be able to help guide me thru the steps needed, in order for me to Format my hard drive, & then partition it or whatever…
    & I wanna be able to do all this, using cmd (command prompt)
    So Please.. anyone.. your help would be greatly appreciated..
    I have an HP Pavilion dv6653cl
    Thanks!!

    Hi,
    There's no need to pre-format a new Hard Drive - if you perform a 'Factory Reset' using your Recovery Discs, these will perform a quick format and also re-create all the original partitions on the new drive as part of the process.
    A complete guide to using Recovery Discs can be found on the relevant link below.
    Performing An HP System Recovery - Windows 7.
    Performing An HP System Recovery - Windows Vista.
    Performing An HP System Recovery - Windows XP.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • [solved]Need help with a bash script for MOC conky artwork.

    I need some help with a bash script for displaying artwork from MOC.
    Music folders have a file called 'front.jpg' in them, so I need to pull the current directory from MOCP and then display the 'front.jpg' file in conky.
    mocp -Q %file
    gives me the current file playing, but I need the directory (perhaps some way to use only everything after the last  '/'?)
    A point in the right direction would be appreciated.
    thanks, d
    Last edited by dgz (2013-08-29 21:24:28)

    Xyne wrote:
    You should also quote the variables and output in double quotes to make the code robust, e.g.
    filename="$(mocp -Q %file)"
    dirname="${filename%/*}"
    cp "$dirname"/front.jpg ~/backup/art.jpg
    Without the quotes, whitespace will break the code. Even if you don't expect whitespace in any of the paths, it's still good coding practice to include the quotes imo.
    thanks for the tip.
    here it is, anyhow:
    #!/bin/bash
    filename=$(mocp -Q %file)
    dirname=${filename%/*}
    cp ${dirname}/front.jpg ~/backup/art.jpg
    then in conky:
    $alignr${execi 30 ~/bin/artc}${image ~/backup/art.jpg -s 100x100 -p -3,60}
    thanks for the help.
    Last edited by dgz (2013-08-29 21:26:32)

  • [SOLVED :)] Need help with adf table row selection

    Hi,
    In my application I am displaying results in a table. The DisplayRow property of table is set to Selected
    There are Next and Back buttons which help user to view details associated to the next/previous rows.
    I am using ADF 11g
    When user clicks Next or Previous button, then the selection of the row should also gets updated
    To achieve this i wrote below piece of code:
    this.tblS.getSelectedRowKeys().clear();+
    this.tblS.setRowIndex(count);+
    RowKeySet rks =  tblS.getSelectedRowKeys();+
    rks.add(tblS.getRowKey());+
    rks =  tblS.getSelectedRowKeys();+
    ISSUE:_
    When i run application and click Next/Previous Button, all functionalities do take place properly, but a null pointer exception is also thrown._+
    If i remove DisplayRow property of table from Selected to Default, every thing works good and no Exception is thrown_+       
    But as records in my table are going to be around 50-60 everytime, i need to set DisplayRow property of table to Selected.
    Is there any way to achieve this? Solve this problem?
    Some more details:_
    I am using a POJO class to create DataController. This DataController is having a view Object which is used to create results table.
    I have defined Primary key for my POJO Data Controller.
    Here is code of xml file:*
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.52.5"+
    id="ProductListBean" Package="xxadf.mm.resources"
    BeanClass="xxadf.mm.resources.ProductListBean"
    isJavaBased="true">
    +<Attribute Name="Product" Type="java.lang.String" PrimaryKey="true"/>+
    +<Attribute Name="Stock" Type="java.lang.String"/>+
    +<Attribute Name="Rate" Type="java.lang.String"/>+
    +<Attribute Name="Accuracy" Type="java.lang.String"/>+
    +<Attribute Name="Details" Type="java.lang.String"/>+
    +<ConstructorMethod IsCollection="true"+
    Type="xxadf.mm.resources.ProductListBean"
    BeanClass="xxadf.mm.resources.ProductListBean"
    id="ProductListBean"/>
    +</JavaBean>+
    Error Log:*
    SEVERE: Server Exception during PPR, #1
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowIndex(RowDataManager.java:200)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowIndex(FacesCtrlHierBinding.java:506)
    at org.apache.myfaces.trinidad.component.UIXIterator._fixupFirst(UIXIterator.java:414)
    at org.apache.myfaces.trinidad.component.UIXIterator.__encodeBegin(UIXIterator.java:392)
    at org.apache.myfaces.trinidad.component.UIXTable.__encodeBegin(UIXTable.java:168)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:517)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:458)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$100(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:618)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:392)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:641)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.access$100(ShowDetailItemRenderer.java:31)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:491)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:464)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer._encodeChildren(ShowDetailItemRenderer.java:406)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.encodeAll(ShowDetailItemRenderer.java:114)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:1523)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.access$500(PanelTabbedRenderer.java:38)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:969)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:920)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer._renderTabBody(PanelTabbedRenderer.java:519)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.encodeAll(PanelTabbedRenderer.java:233)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:221)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:820)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1494)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:685)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:261)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:193)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Please Help I have been struggling with this issue for long.
    Thanks and Regards
    Manav Ratra
    Edited by: user11255144 on Feb 8, 2010 5:33 AM

    Hi Arun,
    Thanks for replying.
    Actually in my application there is one result table and a section that is displaying complete details of the product selectd in result table.
    The next/previous buttons are not binded with result table.
    What I am doing is, I am puuliing data from VO and displaying it on form, whenever any of these buttons is clicked.
    As soon as these buttons are clicked data is coming up, but selection state of table is not getting updated.
    So to update selection state i wrote piece of code described in my previous post.
    Everything works fine if displayRow property of table is not set to selected.
    If i set display row property of table to selected, then i get a null pointer exception with message log defined in previous post.
    Although NPE is thrown, yet all data is properly fetched and table selection is also updated. But am not able to get how this NPE is coming and hpw to fix it .
    (I need to keep displayRow = selected, for all other cases NPE is not thrown)
    Please help..
    Thanks and Regards
    Manav Ratra

  • [SOLVED] Need Help with Sed

    Since I'm a dirty TF2 idler and I use Source Tools to idle, it uses a list of servers from a servers.txt file.
    A list of idling servers is here: http://tf2stats.net/blacklist_generate/ … ourcetools
    The list is in this format:
    {IP ADDRESS}:{PORT};{SERVER NAME}
    Unfortunately, I can't just save that as the list, because it thinks you're trying to send {SERVER NAME} as a command or something.
    There's ~920 lines that are just that and so I need to remove everything AFTER the port number (so it would be the colon and the server name).
    The tricky part is that not all ports are the same. 27015 is the standard, some use 27016, and some use other ones. So I need to have a sed command to remove everything past a colon on all lines, then remove the colon on all lines.
    And since I suck at sed, I've come crawling to the forums for help. So please, help.
    Last edited by Arm-the-Homeless (2010-04-05 23:47:19)

    Procyon wrote:@brisbin33: if you're going to redefine IFS, why not to :; with while read ip port name
    true story.  IFS=$'\n'; while read -r is just a habit i fall back on when i want to read [possibly inconsistent] lines out of a file.

  • [SOLVED]Need help with Xmonad config(just basic stuff)

    Hello Guys,
    I thought I'd give Xmonad a try even if I don't know haskell. So I just tried to use some examples from the net, however even for just mapping some special keys it fails.
    I used this example http://www.haskell.org/haskellwiki/Xmon … _%280.9%29
    and this is my config file:
    import XMonad
    import Graphics.X11.ExtraTypes.XF86
    import XMonad.Util.EZConfig
    import Data.Monoid
    import System.Exit
    import qualified XMonad.StackSet as W
    import qualified Data.Map as M
    MyKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
    [((0, XF86MonBrightnessUp), spawn "xbacklight +20")
    ,((0, XF86MonBrightnessDown), spawn "xbacklight -20")
    ,((0, XF86AudioRaiseVolume), spawn "amixer set Master 1+ unmute")
    ,((0, XF86AudioLowerVolume), spawn "amixer set Master 1- unmute")
    main=xmonad defaults
    -- use the defaults exepct for super instead of alt mod and the special keys
    defaults=defaultConfig{
    modMask =mod4Mask
    ,keys =MyKeys
    So as could could guess, I just want to my the keys so that I can adjust volume and backlight. The keys I got with xev so these should be correct.
    So when I try xmonad --recompile this error shows up.
    Error detected while loading xmonad configuration file: ~/.xmonad/xmonad.hs
    xmonad.hs:12:1: Not in scope: data constructor `MyKeys'
    xmonad.hs:13:15:
    Not in scope: data constructor `XF86MonBrightnessUp'
    xmonad.hs:14:15:
    Not in scope: data constructor `XF86MonBrightnessDown'
    xmonad.hs:15:15:
    Not in scope: data constructor `XF86AudioRaiseVolume'
    xmonad.hs:16:15:
    Not in scope: data constructor `XF86AudioLowerVolume'
    xmonad.hs:22:26: Not in scope: data constructor `MyKeys'
    Please check the file for errors.
    I'd really appreciate _any_ help since I can't see any significant difference to the linked page(except for cutting-out a lot and filling in my special keys     )
    Greetings
    Edit: Here's the output of xev for the keys, perhaps it help any way:
    audio lower
    KeyRelease event, serial 40, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x0, time 388994, (516,521), root:(1024,549),
    state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    raise audio
    KeyRelease event, serial 40, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x0, time 381193, (517,259), root:(1025,287),
    state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    mute audio x2
    KeyRelease event, serial 46, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x6600002, time 776961, (17,46), root:(525,74),
    state 0x0, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    FocusOut event, serial 46, synthetic NO, window 0x6600001,
    mode NotifyGrab, detail NotifyAncestor
    FocusIn event, serial 46, synthetic NO, window 0x6600001,
    mode NotifyUngrab, detail NotifyAncestor
    KeymapNotify event, serial 46, synthetic NO, window 0x0,
    keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2
    0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    KeyRelease event, serial 46, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x6600002, time 780104, (17,46), root:(525,74),
    state 0x0, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    mute mikro
    KeyRelease event, serial 45, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x0, time 754481, (122,123), root:(630,151),
    state 0x0, keycode 198 (keysym 0x1008ffb2, XF86AudioMicMute), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    fn
    KeyRelease event, serial 46, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x0, time 828065, (121,141), root:(629,169),
    state 0x0, keycode 151 (keysym 0x1008ff2b, XF86WakeUp), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    f9
    KeyRelease event, serial 46, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x0, time 881813, (155,121), root:(663,149),
    state 0x0, keycode 75 (keysym 0xffc6, F9), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    fn+f9
    KeyRelease event, serial 49, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x0, time 942023, (163,85), root:(671,113),
    state 0x0, keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    fn+f8
    KeyRelease event, serial 51, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x0, time 976374, (138,125), root:(646,153),
    state 0x0, keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    black button(specified like this in manuel <.< )
    KeyRelease event, serial 55, synthetic NO, window 0x6600001,
    root 0x9d, subw 0x0, time 1048947, (67,99), root:(575,127),
    state 0x0, keycode 156 (keysym 0x1008ff41, XF86Launch1), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    Last edited by blubbb (2013-12-29 11:07:15)

    Raynman wrote:
    The first difference is that you wrote 'MyKeys' with an uppercase M. Variable/function names cannot start with an uppercase letter; that's reserved for type and data constructors.
    The second problem is the key bindings themselves. Your list is completely different from that example. You probably imported XMonad.Util.EZConfig to use the "emacs style" key descriptions, but you're mixing the two styles. You can only generate a Map (of the right type) with fromList if you use the same format as that example. Look at the documentation for the EZConfig module to see how the shorter string descriptions should be used. The part
    keys = \c ->
    in that example is basically the same as your
    myKeys conf@(XConfig {XMonad.modMask = modm}) =
    . The difference is that you're unpacking the conf/c value to extract the modMask (binding it to the name modm) but you're not using modm anywhere in your list of keybindings, so you dont need the @(..) part. And you don't need it anyway, because you can use a string starting with "M-" (in emacs-style key descriptions) to define a binding that uses the mod key (see examples).
    Hey, thanks a lot for your fast and extensive answer, however I still couldn't get it working. Stupid me.
    So, tried using the style of this example:
    keys = \c -> mkKeymap c $
    [ ("M-S-<Return>", spawn $ terminal c)
    , ("M-x w", spawn "xmessage 'woohoo!'") -- type mod+x then w to pop up 'woohoo!'
    , ("M-x y", spawn "xmessage 'yay!'") -- type mod+x then y to pop up 'yay!'
    , ("M-S-c", kill)
    and since I don't want to pres the mod key, just the mediakeys themselfes I thought I could directly write
    ..."<Mediakey>", spawn ...
    But my code still won't work, but I get a new fancy error log:
    Error detected while loading xmonad configuration file: ~/.xmonad/xmonad.hs
    xmonad.hs:24:26:
    Couldn't match type `[Char]' with `(ButtonMask, KeySym)'
    Expected type: XConfig Layout -> M.Map (ButtonMask, KeySym) (X ())
    Actual type: XConfig Layout -> M.Map [Char] (X ())
    In the `keys' field of a record
    In the expression:
    defaultConfig {modMask = mod4Mask, keys = myKeys}
    In an equation for `defaults':
    defaults = defaultConfig {modMask = mod4Mask, keys = myKeys}
    Please check the file for errors.
    So apparently I don't use the right type since I was using the type char. However if I compare my code to the example I don't find a significan't difference(for the keymapping himself) except for not using the modkey. Is this perhaps the mistake? Doesen't this work without the modkey?
    import XMonad
    import Graphics.X11.ExtraTypes.XF86
    import XMonad.Util.EZConfig
    import Data.Monoid
    import System.Exit
    import qualified XMonad.StackSet as W
    import qualified Data.Map as M
    myKeys = \c -> M.fromList $
    [("<XF86MonBrightnessUp>", spawn "xbacklight +20")
    ,("<XF86MonBrightnessDown>", spawn "xbacklight -20")
    ,("<XF86AudioRaiseVolume>", spawn "amixer set Master 1+ unmute")
    ,("<XF86AudioLowerVolume>", spawn "amixer set Master 1- unmute")
    main=xmonad defaults
    -- use the defaults exepct for super instead of alt mod and the special keys
    defaults=defaultConfig{
    modMask =mod4Mask
    ,keys =myKeys
    Last edited by blubbb (2013-12-19 12:55:56)

  • Need help with formatting a software RAID 5 array with xfs

    Hi,
    i'm tying to format a software RAID 5 array, using the xfs filesystem with the following command:
    # mkfs.xfs -v -m 0.5 -b 4096 -E stride=64,stripe-width=128 /dev/md0
    but all I get is the attached error message. It works fine when I use the ext4 filesystem. Any ideas?
    Thanks!
    http://i.imgur.com/cooLBwH.png
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

    Sorry I numbered them to show the flow of information, this was also just a place for me to store info as I worked through it. I managed to get it to work by creating a partition that takes up the whole drive and is actually 22 GB larger than all the other drives (since I found out that the had root, swap and home partitions that are no longer needed).
    I should be able to resize the other partitions without a problem, correct? They're EXT4. Should I unmount the raid array and do them individually, remount the array, let it sync and do the next? Or just unmount the array, resize all of them, mount it and let it sync?

  • [SOLVED] Need help with rEFInd boot entry for rsync backup

    I made a successful backup my arch install to an other internal SSD disk (from my HDD).
    But now I can't figure out how to make a boot entry for this drive. The wiki only mentions GRUB, which I do not use.
    This is the fstab for my HDD:
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sda5
    UUID=c1822e3c-e037-4445-bdd8-b71778237dee / ext4 rw,relatime,data=ordered 0 1
    # /dev/sda2 LABEL=SYSTEM_DRV
    UUID=D2DF-9F74 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    And this is the fstab on my SSD which I edited:
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sdb1
    UUID=c61a1301-4728-465d-b40b-bde5e084eb50 / ext4 rw,relatime,data=ordered 0 1
    # /dev/sda2 LABEL=SYSTEM_DRV
    UUID=D2DF-9F74 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    But I'm not sure about the /boot entry, do I need something else here?
    Afterward I tried updating rEFInd by reinstalling using refind-install, but that did not work.
    ps. I dual boot with Windows.
    Last edited by Devenda (2014-08-18 07:58:07)

    I also tried adding the menu entry manually by editing refind.conf but that didn't work. I got:
    Invalid loader file!
    Error: Not Found while loading vmlinuz-linux
    Here is some additional info:
    refind.conf:
    menuentry "SSD Arch Linux" {
    icon /EFI/refind/icons/os_arch.png
    volume "ArchSSD"
    loader /boot/vmlinuz-linux
    initrd /boot/initramfs-linux.img
    options "root=/dev/sdb1 ro"
    I hope this helps.
    blkid
    /dev/sda1: LABEL="WINRE_DRV" UUID="7C2ADD1D2ADCD4EC" TYPE="ntfs" PARTUUID="b7137819-2ca6-40fb-9167-b73ac37d8d96"
    /dev/sda2: LABEL="SYSTEM_DRV" UUID="D2DF-9F74" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="9c77b526-730f-42f9-9904-f9a31b205687"
    /dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="f4d5275b-24c1-4847-b937-345bc23bec89"
    /dev/sda4: LABEL="Windows 8" UUID="38D6E449D6E408C8" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="d777a359-f42c-4629-a07c-cc55316352fe"
    /dev/sda5: UUID="c1822e3c-e037-4445-bdd8-b71778237dee" TYPE="ext4" PARTUUID="3d282004-2515-4630-b82e-35ed7f707b89"
    /dev/sda6: UUID="F80680CC06808D76" TYPE="ntfs" PARTUUID="575bc623-c7f1-44da-a79e-220ce3c98d9b"
    /dev/sda7: LABEL="Lenovo_Recovery" UUID="0898D76B98D75632" TYPE="ntfs" PARTUUID="99bfc6d6-1b71-46d1-887e-2f7e65e3eab1"
    /dev/sdb1: LABEL="ArchSSD" UUID="c61a1301-4728-465d-b40b-bde5e084eb50" TYPE="ext4" PARTUUID="e87704a5-01"
    lsblk -f
    NAME FSTYPE LABEL UUID MOUNTPOINT
    sda
    ├─sda1 ntfs WINRE_DRV 7C2ADD1D2ADCD4EC
    ├─sda2 vfat SYSTEM_DRV D2DF-9F74 /boot
    ├─sda3
    ├─sda4 ntfs Windows 8 38D6E449D6E408C8
    ├─sda5 ext4 c1822e3c-e037-4445-bdd8-b71778237dee /
    ├─sda6 ntfs F80680CC06808D76
    └─sda7 ntfs Lenovo_Recovery 0898D76B98D75632
    sdb
    └─sdb1 ext4 ArchSSD c61a1301-4728-465d-b40b-bde5e084eb50
    sr0
    boot tree
    /boot
    ├── BOOT
    │   └── boot.sdi
    ├── BOOTSECT.BAK
    ├── EFI
    │   ├── Boot
    │   │   ├── bootx64.efi
    │   │   ├── LenovoBT.EFI
    │   │   ├── License.txt
    │   │   └── ReadMe.txt
    │   ├── gummiboot
    │   │   └── gummibootx64.efi
    │   ├── Lenovo
    │   │   └── Boot
    │   │   ├── BCD
    │   │   ├── BCD.LOG
    │   │   ├── BCD.LOG1
    │   │   ├── BCD.LOG2
    │   │   ├── bg-BG
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── bootmgfw.efi
    │   │   ├── bootmgr.efi
    │   │   ├── BOOTSTAT.DAT
    │   │   ├── boot.stl
    │   │   ├── cs-CZ
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── da-DK
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── de-DE
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── el-GR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── en-GB
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── en-US
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── es-ES
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── et-EE
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── fi-FI
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── Fonts
    │   │   │   ├── chs_boot.ttf
    │   │   │   ├── cht_boot.ttf
    │   │   │   ├── jpn_boot.ttf
    │   │   │   ├── kor_boot.ttf
    │   │   │   ├── malgun_boot.ttf
    │   │   │   ├── malgunn_boot.ttf
    │   │   │   ├── meiryo_boot.ttf
    │   │   │   ├── meiryon_boot.ttf
    │   │   │   ├── msjh_boot.ttf
    │   │   │   ├── msjhn_boot.ttf
    │   │   │   ├── msyh_boot.ttf
    │   │   │   ├── msyhn_boot.ttf
    │   │   │   ├── segmono_boot.ttf
    │   │   │   ├── segoen_slboot.ttf
    │   │   │   ├── segoe_slboot.ttf
    │   │   │   └── wgl4_boot.ttf
    │   │   ├── fr-FR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── hr-HR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── hu-HU
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── it-IT
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── ja-JP
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── ko-KR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── lt-LT
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── lv-LV
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── memtest.efi
    │   │   ├── nb-NO
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── nl-NL
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── pl-PL
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── pt-BR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── pt-PT
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── qps-ploc
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── Resources
    │   │   │   ├── bootres.dll
    │   │   │   └── en-US
    │   │   │   └── bootres.dll.mui
    │   │   ├── ro-RO
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── ru-RU
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── sk-SK
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── sl-SI
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── sr-Latn-CS
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── sv-SE
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── tr-TR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── uk-UA
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── zh-CN
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── zh-HK
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   └── zh-TW
    │   │   ├── bootmgfw.efi.mui
    │   │   ├── bootmgr.efi.mui
    │   │   └── memtest.efi.mui
    │   ├── Microsoft
    │   │   └── Boot
    │   │   ├── BCD
    │   │   ├── BCD.LOG
    │   │   ├── BCD.LOG1
    │   │   ├── BCD.LOG2
    │   │   ├── bg-BG
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── bootmgfw.efi
    │   │   ├── bootmgr.efi
    │   │   ├── BOOTSTAT.DAT
    │   │   ├── boot.stl
    │   │   ├── cs-CZ
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── da-DK
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── de-DE
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── el-GR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── en-GB
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── en-US
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── es-ES
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── et-EE
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── fi-FI
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── Fonts
    │   │   │   ├── chs_boot.ttf
    │   │   │   ├── cht_boot.ttf
    │   │   │   ├── jpn_boot.ttf
    │   │   │   ├── kor_boot.ttf
    │   │   │   ├── malgun_boot.ttf
    │   │   │   ├── malgunn_boot.ttf
    │   │   │   ├── meiryo_boot.ttf
    │   │   │   ├── meiryon_boot.ttf
    │   │   │   ├── msjh_boot.ttf
    │   │   │   ├── msjhn_boot.ttf
    │   │   │   ├── msyh_boot.ttf
    │   │   │   ├── msyhn_boot.ttf
    │   │   │   ├── segmono_boot.ttf
    │   │   │   ├── segoen_slboot.ttf
    │   │   │   ├── segoe_slboot.ttf
    │   │   │   └── wgl4_boot.ttf
    │   │   ├── fr-FR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── hr-HR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── hu-HU
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── it-IT
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── ja-JP
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── ko-KR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── lt-LT
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── lv-LV
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── memtest.efi
    │   │   ├── nb-NO
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── nl-NL
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── pl-PL
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── pt-BR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── pt-PT
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── qps-ploc
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── Resources
    │   │   │   ├── bootres.dll
    │   │   │   ├── en-US
    │   │   │   │   └── bootres.dll.mui
    │   │   │   └── nl-NL
    │   │   │   └── bootres.dll.mui
    │   │   ├── ro-RO
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── ru-RU
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── sk-SK
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── sl-SI
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── sr-Latn-CS
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── sr-Latn-RS
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── sv-SE
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── tr-TR
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── uk-UA
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   └── bootmgr.efi.mui
    │   │   ├── zh-CN
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   ├── zh-HK
    │   │   │   ├── bootmgfw.efi.mui
    │   │   │   ├── bootmgr.efi.mui
    │   │   │   └── memtest.efi.mui
    │   │   └── zh-TW
    │   │   ├── bootmgfw.efi.mui
    │   │   ├── bootmgr.efi.mui
    │   │   └── memtest.efi.mui
    │   ├── refind
    │   │   ├── icons
    │   │   │   ├── arrow_left.png
    │   │   │   ├── arrow_right.png
    │   │   │   ├── boot_linux.png
    │   │   │   ├── boot_win.png
    │   │   │   ├── func_about.png
    │   │   │   ├── func_exit.png
    │   │   │   ├── func_firmware.png
    │   │   │   ├── func_reset.png
    │   │   │   ├── func_shutdown.png
    │   │   │   ├── os_altlinux.png
    │   │   │   ├── os_arch.png
    │   │   │   ├── os_centos.png
    │   │   │   ├── os_chrome.png
    │   │   │   ├── os_clover.png
    │   │   │   ├── os_debian.png
    │   │   │   ├── os_ecomstation.png
    │   │   │   ├── os_fatdog.png
    │   │   │   ├── os_fedora.png
    │   │   │   ├── os_freebsd.png
    │   │   │   ├── os_freedos.png
    │   │   │   ├── os_funtoo.png
    │   │   │   ├── os_gentoo.png
    │   │   │   ├── os_gummiboot.png
    │   │   │   ├── os_haiku.png
    │   │   │   ├── os_hwtest.png
    │   │   │   ├── os_kubuntu.png
    │   │   │   ├── os_legacy.png
    │   │   │   ├── os_linuxmint.png
    │   │   │   ├── os_linux.png
    │   │   │   ├── os_lubuntu.png
    │   │   │   ├── os_mac.png
    │   │   │   ├── os_mageia.png
    │   │   │   ├── os_mandriva.png
    │   │   │   ├── os_manjaro.png
    │   │   │   ├── os_mythbuntu.png
    │   │   │   ├── os_netbsd.png
    │   │   │   ├── os_openbsd.png
    │   │   │   ├── os_opensuse.png
    │   │   │   ├── os_redhat.png
    │   │   │   ├── os_refind.png
    │   │   │   ├── os_refit.png
    │   │   │   ├── os_slackware.png
    │   │   │   ├── os_suse.png
    │   │   │   ├── os_ubuntu.png
    │   │   │   ├── os_unknown.png
    │   │   │   ├── os_win.png
    │   │   │   ├── tool_apple_rescue.png
    │   │   │   ├── tool_memtest.png
    │   │   │   ├── tool_mok_tool.png
    │   │   │   ├── tool_part.png
    │   │   │   ├── tool_shell.png
    │   │   │   ├── tool_windows_rescue.png
    │   │   │   ├── transparent.png
    │   │   │   ├── vol_external.png
    │   │   │   ├── vol_internal.png
    │   │   │   └── vol_optical.png
    │   │   ├── icons-backup
    │   │   │   ├── arrow_left.png
    │   │   │   ├── arrow_right.png
    │   │   │   ├── boot_linux.png
    │   │   │   ├── boot_win.png
    │   │   │   ├── func_about.png
    │   │   │   ├── func_exit.png
    │   │   │   ├── func_firmware.png
    │   │   │   ├── func_reset.png
    │   │   │   ├── func_shutdown.png
    │   │   │   ├── os_altlinux.png
    │   │   │   ├── os_arch.png
    │   │   │   ├── os_centos.png
    │   │   │   ├── os_chrome.png
    │   │   │   ├── os_clover.png
    │   │   │   ├── os_debian.png
    │   │   │   ├── os_ecomstation.png
    │   │   │   ├── os_fatdog.png
    │   │   │   ├── os_fedora.png
    │   │   │   ├── os_freebsd.png
    │   │   │   ├── os_freedos.png
    │   │   │   ├── os_funtoo.png
    │   │   │   ├── os_gentoo.png
    │   │   │   ├── os_gummiboot.png
    │   │   │   ├── os_haiku.png
    │   │   │   ├── os_hwtest.png
    │   │   │   ├── os_kubuntu.png
    │   │   │   ├── os_legacy.png
    │   │   │   ├── os_linuxmint.png
    │   │   │   ├── os_linux.png
    │   │   │   ├── os_lubuntu.png
    │   │   │   ├── os_mac.png
    │   │   │   ├── os_mageia.png
    │   │   │   ├── os_mandriva.png
    │   │   │   ├── os_manjaro.png
    │   │   │   ├── os_mythbuntu.png
    │   │   │   ├── os_netbsd.png
    │   │   │   ├── os_openbsd.png
    │   │   │   ├── os_opensuse.png
    │   │   │   ├── os_redhat.png
    │   │   │   ├── os_refind.png
    │   │   │   ├── os_refit.png
    │   │   │   ├── os_slackware.png
    │   │   │   ├── os_suse.png
    │   │   │   ├── os_ubuntu.png
    │   │   │   ├── os_unknown.png
    │   │   │   ├── os_win.png
    │   │   │   ├── tool_apple_rescue.png
    │   │   │   ├── tool_memtest.png
    │   │   │   ├── tool_mok_tool.png
    │   │   │   ├── tool_part.png
    │   │   │   ├── tool_shell.png
    │   │   │   ├── tool_windows_rescue.png
    │   │   │   ├── transparent.png
    │   │   │   ├── vol_external.png
    │   │   │   ├── vol_internal.png
    │   │   │   └── vol_optical.png
    │   │   ├── keys
    │   │   │   ├── altlinux.cer
    │   │   │   ├── canonical-uefi-ca.der
    │   │   │   ├── fedora-ca.cer
    │   │   │   ├── openSUSE-UEFI-CA-Certificate.cer
    │   │   │   ├── refind.cer
    │   │   │   └── SLES-UEFI-CA-Certificate.cer
    │   │   ├── refind.conf
    │   │   ├── refind.conf.old
    │   │   ├── refind.conf-sample
    │   │   └── refind_x64.efi
    │   └── tools
    ├── grub
    │   ├── grub.cfg
    │   └── grub.cfg.example
    ├── initramfs-linux-fallback.img
    ├── initramfs-linux.img
    ├── loader
    │   ├── entries
    │   │   └── arch.conf
    │   └── loader.conf
    ├── refind_linux.conf
    └── vmlinuz-linux
    refind_linux.conf
    "Boot with standard options" "ro root=UUID=c1822e3c-e037-4445-bdd8-b71778237dee quiet "
    "Boot to single-user mode" "ro root=UUID=c1822e3c-e037-4445-bdd8-b71778237dee quiet single"
    "Boot with minimal options" "ro root=UUID=c1822e3c-e037-4445-bdd8-b71778237dee"

  • [Solved]Need help with backup-manager

    So I'm trying to set up backup-manager to make.. well, backups. Their wiki has been shut down thanks to spammers, and ours has no specific entry for backup-manager, so I will have to do it with its man page and the (well documented) config file. However, I still have some questions. Sorry in advance for the amount of questions and the length of the topic. I just wanted to get this clear in one go.
    First: I want to make a *full* system backup, so that I can restore my system in case of breakage without reinstalling. When I looked at creating backups in the past, I noticed some folders don't necessarily had to be backupped. What folders in / could I skip?
    Second: I chose the tarball backup format. Would it then be safe to comment out all the other variables (for tarbal-incremental/mySQL) backups?
    Third: Now there were some parts of the config file that I didn't understand. I hope you can explain some of those parts to me.
    # Number of days we have to keep an archive (Time To Live)
    export BM_ARCHIVE_TTL="5"
    That means the archive it creates will be removed after 5 days - but what if I copy it to my external hard disk? I don't think it will delete it then, so would it be safe to comment this out - or what will it do if I just keep it this way?
    # At which frequency will you build your archives?
    # You can choose either "daily" or "hourly".
    # This should match your CRON configuration.
    export BM_ARCHIVE_FREQUENCY="daily"
    I either want to make a backup when I want to, or weekly - not hourly or daily. Is this possible with backup-manager?
    # Do you want to purge only the top-level directory or all
    # directories under BM_REPOSITORY_ROOT?
    export BM_REPOSITORY_RECURSIVEPURGE="false"
    I don't understand that option. Could you explain me what it will do? Info: BM_REPOSITORY_ROOT is set to my home folder. It's the place where the archives are stored.
    # Do you want to replace duplicates by symlinks?
    # (archive-DAY is a duplicate of archive-(DAY - 1) if they
    # are both the same according to MD5 hashes).
    export BM_ARCHIVE_PURGEDUPS="true"
    Will this harm anything in my system?
    # Do you want to dereference the files pointed by symlinks ?
    # enter true or false (true can lead to huge archives, be careful).
    export BM_TARBALL_DUMPSYMLINKS="false"
    This would 'destroy' all symlinks, no? I'm going to keep this at false, but I would like to know.
    Last edited by Unia (2011-08-29 18:19:37)

    Tried to do a selective upgrade & broke something this morning so I tried restoring my CompleteRaid0 backup, worked like a charm.
    This is the latest backup script I'm using:
    #!/bin/sh
    # Little script to tar up the important root folders.
    # To untar, use:
    # tar -xvpzf /path/to/backup/<date>-backup.tar.gz -C </path/to/root>
    echo "Do you want to clear pacman's cache before tarring up the root folder? This will save time in both the tar- and untar process."
    echo -n "(y|N) > "
    read a
    if [[ "$a" = "n" ]] || [[ "$a" = "N" ]] || [[ "$a" = "" ]]; then
    echo "Pacman's cache will not be cleared."
    else
    echo "Pacman's cache will be cleared now, please wait..."
    pacman -Scc --noconfirm
    echo "Pacman's cache succesfully cleared. Continuing now..."
    sleep 2s
    fi
    DATE=`date +%m%d-%H%M%S`
    CB=CompleteRaid0-$DATE.tar.gz
    NB=FreshInstall-$DATE.tar.gz
    echo "********************************************************************************"
    echo "Proceeding with Fresh Install backup $NB."
    echo "********************************************************************************"
    sleep 5
    cd /
    tar -cvpzf $NB --one-file-system \
    /boot \
    --exclude=/$NB \
    --exclude=/dev \
    --exclude=/etc/fstab \
    --exclude=/home \
    --exclude=/lost+found \
    --exclude=/media \
    --exclude=/mnt \
    --exclude=/proc \
    --exclude=/root \
    --exclude=/sys \
    --exclude=/tmp \
    mv $NB /home/chuck/Backups/
    echo "********************************************************************************"
    echo "Sleeping for 10 seconds."
    echo "Proceeding with complete backup $CB."
    echo "********************************************************************************"
    sleep 5
    tar -cvpzf $CB --one-file-system \
    /boot \
    --exclude=/$CB \
    --exclude=/tmp \
    --exclude=/mnt \
    mv $CB /home/chuck/Backups/
    echo "********************************************************************************"
    echo "Backups Complete"
    echo "********************************************************************************"
    sleep 10
    exit 0
    Restored it with this:
    #!/bin/sh
    # To untar, use:
    # tar -xvpzf /path/to/backup/<date>-backup.tar.gz -C </path/to/root>
    tar -xvpzf /home/chuck/Backups/now.tar.gz -C /
    mkdir /proc \
    /lost+found \
    /sys \
    /mnt \
    /media \
    /mnt/bind/Downloads \
    /mnt/bind/Pictures \
    /mnt/bind/Maintenance \
    /mnt/bind/Music \
    /mnt/bind/Backups
    exit 0
    Of course the directories already existed so that part was unnecessary & only needed if I had restored onto a fresh installation.

  • Need help with formating numbers

    public void returnDollars()
              double dollar;
              dollar=amountr-amount;
    NumberFormat fmt = NumberFormat.getNumberInstance();
              System.out.println(fmt.fomat(dollar));
    there is my code.....now lets say
    amountr = 10
    amount 8.5
    now when i print my dollar amount i want it to show up as 1 not 1.5 or 2. So in other words format it with no decimals and not round up at the same time.
    Help would be appriciated...thanks

    well...after 8 hours of trying to get it working i did it.....here it is ...........I'm sure there are many ways to make it smaller.
    import java.text.*;
    import java.io.*;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.IOException;
    public class Cashier
    double amount;
    double amountr;
    double dollar;
    double amountleft;
    double quaters;
    double test;
    double dimes;
    double pennies;
    public void getAmount()throws IOException
         BufferedReader console = new BufferedReader(new InputStreamReader(System.in));
              System.out.println("Please enter amount due:");
              String input = console.readLine();
         amount = Double.parseDouble(input);
    System.out.println("Amount due = " + amount);
         public void recieve()throws IOException
    BufferedReader console = new BufferedReader(new InputStreamReader(System.in));
              System.out.println("Please enter amount recieved :");
              String input = console.readLine();
         amountr = Double.parseDouble(input);
    System.out.println("Amount recieved = " + amountr);
         public void returnDollars()throws IOException
              double check = amountr-amount;
              dollar=amountr-amount;
    DecimalFormat fmt = new DecimalFormat("##");
    String s = fmt.format((double)(long)dollar);
    double d = Double.valueOf(s).doubleValue();
    amountleft=check-d;
         System.out.println("Dollars to return " + s);
    public void returnQuaters()
         quaters= amountleft/.25;
         double check = quaters;
    DecimalFormat fmt = new DecimalFormat("##");
    String s = fmt.format((double)(long)quaters);
    double d = Double.valueOf(s).doubleValue();
    fmt.setMaximumFractionDigits(2);
    String dol = fmt.format(amountleft);
              //System.out.println(dol);
              double e =Double.valueOf(dol).doubleValue();
    e= e-2*(.25);
    amountleft=e;
         System.out.println("Quaters to return: " + s);
         public void returnDimes()
         dimes= amountleft/.1;
         double check = dimes;
    DecimalFormat fmt = new DecimalFormat("##");
    String s = fmt.format((double)(long)dimes);
    System.out.println("Dimes to return: " + s);
    double d = Double.valueOf(s).doubleValue();
    fmt.setMaximumFractionDigits(2);
    String dol = fmt.format(amountleft);
              double e =Double.valueOf(dol).doubleValue();
    e= e-1*(.1);
    fmt.setMaximumFractionDigits(2);
    String dola = fmt.format(e);
              double t =Double.valueOf(dola).doubleValue();
    amountleft=t;
              public void returnNickles()
         double nickles = amountleft/.05;
              double check = nickles;
    DecimalFormat fmt = new DecimalFormat("##");
    String s = fmt.format((double)(long)nickles);
    System.out.println("Niclkles to return: " + s);
    double d = Double.valueOf(s).doubleValue();
    fmt.setMaximumFractionDigits(2);
    String dol = fmt.format(amountleft);
              double e =Double.valueOf(dol).doubleValue();
    e= e-1*(.05);
    fmt.setMaximumFractionDigits(2);
    String dola = fmt.format(e);
              double t =Double.valueOf(dola).doubleValue();
    amountleft=t;
         public void returnPennies()
              double pennies = amountleft/.01;
    DecimalFormat fmt = new DecimalFormat("##");
    String s = fmt.format((double)(long)pennies);
    System.out.println("Pennies to return: " + s);
         public static void main(String[] a) throws IOException
              Cashier cash = new Cashier();
              cash.getAmount();
              cash.recieve();
              cash.returnDollars();
              cash.returnQuaters();
              cash.returnDimes();
              cash.returnNickles();
              cash.returnPennies();

  • Need help with Formating a report referenced by a Weblink field

    Hi,
    I have created a report and a field that's a weblink. The field on accounts references the report I've created so that it only returns information on that account and not all accounts in Siebel.
    Now.. the report is formatted in a sequential fashion as most basic reports are formatted.. ex.
    Account Name Number Address City State etc.
    aaaaaa 2222 23 Main NY NY
    I want it to be formatted in a table and not horizontal. Is this possible?
    Like:
    Account Name Number
    aaaaaa 2222
    Address City State etc.
    23 Main NY NY

    Hi !
    On the second step of report design, click on Add view and then Narrative.
    In the narrative part paste the following (it's only an example, you'll have to modify it to fit your needs) :
    <table border="1" cellpadding="5">
    <tr bgcolor="#6666FF">
    <td>Account Name</td><td>Account Location</td>
    </tr>
    <tr>
    <td>@1</td><td>@2</td>
    </tr>
    <tr bgcolor="#6666FF">
    <td>Address</td><td>City</td>
    </tr>
    <tr>
    <td>@3</td><td>@4 @5</td>
    </tr>
    </table>
    This assume that you selected column 1 to 5 with the appropriate datas...
    Regards,
    Max

  • [SOLVED] need help with virtualbox install

    I'm a relative n00b to Arch, haging migrated from Ubuntu (pha!!). Arch rocks!
    However, my beloved virtualbox isnt playing ball!
    After many hours of getting arch up and running I now need some assitance please with VirtualBox PEUL. I've googled and search these wikis and found:
    http://aur.archlinux.org/packages.php?d … s=0&SeB=nd
    http://www.mail-archive.com/vbox-users% … 02889.html
    http://wiki.archlinux.org/index.php/VirtualBox
    but, I dont know how to install.
    I used yaourt (having spent another many hours trying to get to speed with what Arch AUR is and yaourt!!)
    This is what I did:
    1. Visited http://wiki.archlinux.org/index.php/VirtualBox and followed PEUL instructions...
    2. Click on AUR link and then click on PKGBUILD and it downloaded a PKGBUILD from here http://aur.archlinux.org/packages.php?d … s=0&SeB=nd
    3. Then went back to the wiki http://wiki.archlinux.org/index.php/VirtualBox  and clicked on VirtualBox_1.5.6-1_Linux_x86.run and downloaded the file.
    4. In accordance with the instructions on the wiki, I ran makepkg
    HOWEVER, I get errors!!:
    # makepkg --asroot
    ==> Making package: virtualbox_bin 1.5.6-1 (Thu May 1 20:06:33 BST 2008)
    ==> WARNING: Running makepkg as root...
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found VirtualBox_1.5.6-1_Linux_x86.run in build dir
    -> Found vbox.install in build dir
    -> Found vbox_build_module in build dir
    -> Found vboxnet.patch in build dir
    -> Found interfaces in build dir
    ==> Validating source files with md5sums...
    VirtualBox_1.5.6-1_Linux_x86.run ... FAILED
    vbox.install ... Passed
    vbox_build_module ... Passed
    vboxnet.patch ... Passed
    interfaces ... Passed
    ==> ERROR: One or more files did not pass the validity check!
    This is what is in the downloaded files dir:-
    ls -l
    total 48
    -rw-r--r-- 1 daz users 3642 2008-05-01 20:06 PKGBUILD
    -rw-r--r-- 1 daz users 26055 2008-05-01 20:05 VirtualBox_1.5.6-1_Linux_x86.run
    -rwxrwxrwx 1 nobody nobody 217 2008-01-08 20:58 interfaces
    drwxrwxrwx 2 root root 125 2008-05-01 20:06 src
    -rwxrwxrwx 1 nobody nobody 2717 2008-02-22 18:22 vbox.install
    -rwxrwxrwx 1 nobody nobody 174 2008-02-22 17:45 vbox_build_module
    -rwxrwxrwx 1 nobody nobody 2179 2007-12-30 12:31 vboxnet.patch
    Can anyone help please? In Ubuntu all this was just installed with dpkg -i VirtualBox.deb
    I'm sure Arch is just as "simple" :-)
    Last edited by keratos (2008-05-04 07:54:14)

    grave wrote:Or try the bin file no problem here  yaourt -S virtualbox_bin
    Good idea, I checked this out originally but it didnt work so I went for "manual" install.
    The download from yaourt never starts, just hangs - the server is dead or something?? ...
    # yaourt -S virtualbox_bin
    ==> WARNING: Building unsupported package as root is dangerous.
    Please run yaourt as a non-privileged user.
    ==> Downloading virtualbox_bin PKGBUILD from AUR...
    ==> Last 5 comments ordered by date (asc):
    Comment by: chris_es on 20080414 [17:02:11]
    Hello!
    Thanks a lot for this package :o)
    Just a quick comment about where to copy the Sun .run package. It should be put to where the tarball from AUR was extracted.
    In my case, it is /home/[users]/virtualbox-bin/
    Cheers
    Chris
    Comment by: fi-dschi on 20080419 [22:46:37]
    You may download the run-file at
    https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=innotek-1.5.6-G-F@CDS-CDS_SMI
    Comment by: GGLucas on 20080421 [00:40:38]
    Can't get the kernel module working in 2.6.25, vbox_build_module completes fine, but I get the following error:
    $ sudo modprobe vboxdrv
    FATAL: Error inserting vboxdrv (/lib/modules/2.6.25-ARCH/misc/vboxdrv.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    with these messages in dmesg:
    vboxdrv: Unknown symbol change_page_attr
    vboxdrv: Unknown symbol change_page_attr
    Comment by: Geekosaurio on 20080422 [03:54:09]
    Maybe you could find this instructions helpful
    http://www.mail-archive.com/[email protected]/msg02889.html
    I've not tried this myself but I will do it soon and post the info here. Maybe create a separate package for 2.6.25 kernels it's a good idea.
    Comment by: ise on 20080429 [18:12:57]
    The vboxdrv from the mailinglist of virtualbox runs here without problems on 2.6.25 with vbox 1.5.6
    First Submitted: Sun, 11 Mar 2007 00:52:22 +0000
    Last Updated: Fri, 22 Feb 2008 18:26:15 +0000
    virtualbox_bin 1.5.6-1 (Unsupported): Powerful x86 virtualization - binary version (non GPL - free for personal use and evaluation)
    ==> virtualbox_bin dependencies:
    - libidl2 (already installed)
    - libxslt (already installed)
    - qt3 (already installed)
    - e2fsprogs (already installed)
    - sdl (already installed)
    - libstdc++5 (already installed)
    - patch (already installed)
    ==> Edit the PKGBUILD (recommended) ? [Y/n] ("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> WARNING: This PKGBUILD contains install file that can be dangerous.
    vbox.install
    ==> Edit vbox.install (recommended) ? [Y/n] ("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> Continue the building of 'virtualbox_bin'? [Y/n]
    ==> ----------------------------------------------
    ==>y
    ==> Building and installing package
    ==> Making package: virtualbox_bin 1.5.6-1 (Fri May 2 06:06:28 BST 2008)
    ==> WARNING: Running makepkg as root...
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Downloading VirtualBox_1.5.6-1_Linux_x86.run...
    --2008-05-02 06:06:29-- http://195.34.175.98/download/1.5.6/VirtualBox_1.5.6-1_Linux_x86.run
    Connecting to 195.34.175.98:80...
    Last edited by keratos (2008-05-02 05:52:33)

  • [Solved] Need help with DSDT - 15 errors

    I downloaded a tool designed for mac DSDT editing from the internet, for Windows (as Linux doesn't show battery properly yet).
    Here's my system:
    Toshiba Satellite L750D
    AMD A8 APU
    ATI 6620HD Discrete Graphics
    On Linux, the following doesn't seem to work correctly:
    - Fan spins very high and makes a lot of noise
    - The battery BAT1 isn't even detected as a device and the only device under /sys/class/power_supply/ is ACAD, which is something else.
    On Linux, I get the following errors which suggests a buggy DSDT table:
    kyle@kyle-laptop ~ dmesg | grep ACPI
    [ 0.000000] BIOS-e820: [mem 0x00000000cf486000-0x00000000cf88efff] ACPI NVS
    [ 0.000000] BIOS-e820: [mem 0x00000000cfbbf000-0x00000000cfebefff] ACPI NVS
    [ 0.000000] BIOS-e820: [mem 0x00000000cfebf000-0x00000000cfef5fff] ACPI data
    [ 0.000000] ACPI: RSDP 00000000000fe020 00024 (v02 TOSQCI)
    [ 0.000000] ACPI: XSDT 00000000cfef5120 0007C (v01 TOSQCI TOSQCI00 00000001 01000013)
    [ 0.000000] ACPI: FACP 00000000cfef4000 000F4 (v04 TOSQCI TOSQCI00 00000001 ACPI 00040000)
    [ 0.000000] ACPI: DSDT 00000000cfede000 112E5 (v01 TOSQCI TOSQCI00 F0000000 ACPI 00040000)
    [ 0.000000] ACPI: FACS 00000000cfc97000 00040
    [ 0.000000] ACPI: HPET 00000000cfef3000 00038 (v01 TOSQCI TOSQCI00 00000001 ACPI 00040000)
    [ 0.000000] ACPI: APIC 00000000cfef2000 00084 (v02 TOSQCI TOSQCI00 00000001 ACPI 00040000)
    [ 0.000000] ACPI: MCFG 00000000cfef1000 0003C (v01 TOSQCI TOSQCI00 00000001 ACPI 00040000)
    [ 0.000000] ACPI: ASF! 00000000cfef0000 000A5 (v32 TOSQCI TOSQCI00 00000001 ACPI 00040000)
    [ 0.000000] ACPI: BOOT 00000000cfedd000 00028 (v01 TOSQCI TOSQCI00 00000001 ACPI 00040000)
    [ 0.000000] ACPI: SLIC 00000000cfedc000 00176 (v01 TOSQCI TOSQCI00 00000001 ACPI 00040000)
    [ 0.000000] ACPI: WDRT 00000000cfedb000 00047 (v01 TOSQCI TOSQCI00 00000001 ACPI 00040000)
    [ 0.000000] ACPI: MSDM 00000000cfeda000 00055 (v03 TOSQCI TOSQCI00 00000001 ACPI 00040000)
    [ 0.000000] ACPI: SSDT 00000000cfed9000 00E28 (v01 AMD POWERNOW 00000001 AMD 00000001)
    [ 0.000000] ACPI: SSDT 00000000cfed7000 0193D (v02 AMD ALIB 00000001 MSFT 04000000)
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] ACPI: PM-Timer IO Port: 0x408
    [ 0.000000] ACPI: Local APIC address 0xfee00000
    [ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
    [ 0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
    [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1])
    [ 0.000000] ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
    [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
    [ 0.000000] ACPI: IRQ0 used by override.
    [ 0.000000] ACPI: IRQ2 used by override.
    [ 0.000000] ACPI: IRQ9 used by override.
    [ 0.000000] Using ACPI (MADT) for SMP configuration information
    [ 0.000000] ACPI: HPET id: 0x10228210 base: 0xfed00000
    [ 0.005191] ACPI: Core revision 20120320
    [ 0.005342] ACPI: Forced DSDT copy: length 0x112E5 copied locally, original unmapped
    [ 0.275625] PM: Registering ACPI NVS region [mem 0xcf486000-0xcf88efff] (4231168 bytes)
    [ 0.275717] PM: Registering ACPI NVS region [mem 0xcfbbf000-0xcfebefff] (3145728 bytes)
    [ 0.277613] ACPI: bus type pci registered
    [ 0.285292] ACPI: Added _OSI(Module Device)
    [ 0.285296] ACPI: Added _OSI(Processor Device)
    [ 0.285297] ACPI: Added _OSI(3.0 _SCP Extensions)
    [ 0.285299] ACPI: Added _OSI(Processor Aggregator Device)
    [ 0.285300] ACPI: Added _OSI(Linux)
    [ 0.287480] ACPI: EC: Look up EC in DSDT
    [ 0.328586] ACPI: Executed 1 blocks of module-level executable AML code
    [ 0.333711] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query honored via cmdline
    [ 0.334386] ACPI: Interpreter enabled
    [ 0.334389] ACPI: (supports S0 S3 S4 S5)
    [ 0.334404] ACPI: Using IOAPIC for interrupt routing
    [ 0.340413] ACPI: EC: GPE = 0x3, I/O: command/status = 0x66, data = 0x62
    [ 0.340624] ACPI: No dock devices found.
    [ 0.340630] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
    [ 0.340779] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
    [ 0.367355] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
    [ 0.367488] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PB2_._PRT]
    [ 0.367521] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PB4_._PRT]
    [ 0.367545] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PB5_._PRT]
    [ 0.367613] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P_._PRT]
    [ 0.367677] pci0000:00: >Requesting ACPI _OSC control (0x1d)
    [ 0.367680] pci0000:00: >ACPI _OSC request failed (AE_NOT_FOUND), returned control mask: 0x1d
    [ 0.367681] ACPI _OSC control for PCIe not granted, disabling ASPM
    [ 0.375952] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 10 11 12 14 15) *0
    [ 0.376034] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 10 11 12 14 15) *0
    [ 0.376110] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 7 10 11 12 14 15) *0
    [ 0.376163] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 7 10 11 12 14 15) *0
    [ 0.376204] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 10 11 12 14 15) *0
    [ 0.376235] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 7 10 11 12 14 15) *0
    [ 0.376268] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 7 10 11 12 14 15) *0
    [ 0.376300] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 7 10 11 12 14 15) *0
    [ 0.376629] PCI: Using ACPI for IRQ routing
    [ 0.388090] pnp: PnP ACPI init
    [ 0.388113] ACPI: bus type pnp registered
    [ 0.388383] pnp 00:00: >Plug and Play ACPI device, IDs PNP0a08 PNP0a03 (active)
    [ 0.388482] system 00:01: >Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.388640] pnp 00:02: >Plug and Play ACPI device, IDs PNP0103 (active)
    [ 0.388760] pnp 00:03: >Plug and Play ACPI device, IDs PNP0200 (active)
    [ 0.388819] pnp 00:04: >Plug and Play ACPI device, IDs PNP0c04 (active)
    [ 0.388910] pnp 00:05: >Plug and Play ACPI device, IDs PNP0b00 (active)
    [ 0.388963] pnp 00:06: >Plug and Play ACPI device, IDs PNP0800 (active)
    [ 0.389048] pnp 00:07: >Plug and Play ACPI device, IDs PNP0303 (active)
    [ 0.389133] pnp 00:08: >Plug and Play ACPI device, IDs TOS0200 SYN1000 SYN0002 PNP0f13 (active)
    [ 0.389261] system 00:09: >Plug and Play ACPI device, IDs PNP0c02 (active)
    [ 0.389348] system 00:0a: >Plug and Play ACPI device, IDs PNP0c01 (active)
    [ 0.389762] pnp: PnP ACPI: found 11 devices
    [ 0.389764] ACPI: ACPI bus type pnp unregistered
    [ 1.799341] ACPI: bus type usb registered
    [ 6.119883] toshiba_bluetooth: Detected Toshiba ACPI Bluetooth device - installing RFKill handler
    [ 6.162801] ACPI: acpi_idle registered with cpuidle
    [ 6.189958] ACPI: Power Button [PWRB]
    [ 6.190091] ACPI: Lid Switch [LID]
    [ 6.190142] ACPI: Power Button [PWRF]
    [ 6.550426] ACPI Exception: AE_AML_PACKAGE_LIMIT, Index (0x0000000000000011) is beyond end of object (20120320/exoparg2-418)
    [ 6.550437] ACPI Error: Method parse/execution failed [\_SB_.BAT1.UBIX] (Node ffff880203e8a168), AE_AML_PACKAGE_LIMIT (20120320/psparse-536)
    [ 6.550443] ACPI Error: Method parse/execution failed [\_SB_.BAT1._BIX] (Node ffff880203e8a0f0), AE_AML_PACKAGE_LIMIT (20120320/psparse-536)
    [ 6.550449] ACPI Exception: AE_AML_PACKAGE_LIMIT, Evaluating _BIX (20120320/battery-419)
    [ 6.595368] ACPI: AC Adapter [ACAD] (on-line)
    [ 6.747736] ACPI: Video Device [VGA] (multi-head: yes rom: no post: no)
    [ 6.758044] ACPI: Thermal Zone [THRM] (55 C)
    [ 6.758620] ACPI: Video Device [VGA1] (multi-head: yes rom: no post: no)
    [ 7.772864] toshiba_acpi: Toshiba Laptop ACPI Extras version 0.19
    [ 7.876001] ACPI Warning: 0x0000000000000b00-0x0000000000000b07 SystemIO conflicts with Region \_SB_.PCI0.SMBS.SMB0 1 (20120320/utaddress-251)
    [ 7.876019] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
    [ 19.440618] ACPI: Power Button [PWRB]
    [ 19.441155] ACPI: Lid Switch [LID]
    [ 19.441886] ACPI: Power Button [PWRF]
    kyle@kyle-laptop ~
    Of interest;
    [ 6.550426] ACPI Exception: AE_AML_PACKAGE_LIMIT, Index (0x0000000000000011) is beyond end of object (20120320/exoparg2-418)
    [ 6.550437] ACPI Error: Method parse/execution failed [\_SB_.BAT1.UBIX] (Node ffff880203e8a168), AE_AML_PACKAGE_LIMIT (20120320/psparse-536)
    [ 6.550443] ACPI Error: Method parse/execution failed [\_SB_.BAT1._BIX] (Node ffff880203e8a0f0), AE_AML_PACKAGE_LIMIT (20120320/psparse-536)
    [ 6.550449] ACPI Exception: AE_AML_PACKAGE_LIMIT, Evaluating _BIX (20120320/battery-419)
    I have no idea how to fix this. So, I'm outsourcing help
    Here's the original DSDT which I extract:
    DefinitionBlock ("DSDT.aml", "DSDT", 1, "TOSQCI", "TOSQCI00", 0xF0000000)
    External (ALIB, MethodObj) // 2 Arguments
    External (\_SB_.ALIB, MethodObj) // 5 Arguments
    External (\_PR_.C003._PPC)
    External (\_PR_.C002._PPC)
    External (\_PR_.C001._PPC)
    External (\_PR_.C000._PPC, IntObj)
    OperationRegion (DBG0, SystemIO, 0x80, One)
    Field (DBG0, ByteAcc, NoLock, Preserve)
    IO80, 8
    OperationRegion (DBG1, SystemIO, 0x80, 0x02)
    Field (DBG1, WordAcc, NoLock, Preserve)
    P80H, 16
    OperationRegion (ACMS, SystemIO, 0x72, 0x02)
    Field (ACMS, ByteAcc, NoLock, Preserve)
    INDX, 8,
    DATA, 8
    OperationRegion (PSMI, SystemIO, 0xB0, 0x02)
    Field (PSMI, ByteAcc, NoLock, Preserve)
    APMC, 8,
    APMD, 8
    OperationRegion (PMRG, SystemIO, 0x0CD6, 0x02)
    Field (PMRG, ByteAcc, NoLock, Preserve)
    PMRI, 8,
    PMRD, 8
    IndexField (PMRI, PMRD, ByteAcc, NoLock, Preserve)
    Offset (0x24),
    MMSO, 32,
    Offset (0x50),
    HPAD, 32,
    Offset (0x60),
    P1EB, 16,
    Offset (0xC8),
    , 2,
    SPRE, 1,
    TPDE, 1,
    Offset (0xF0),
    , 3,
    RSTU, 1
    OperationRegion (P1E0, SystemIO, P1EB, 0x04)
    Field (P1E0, ByteAcc, NoLock, Preserve)
    , 14,
    PEWS, 1,
    WSTA, 1,
    , 14,
    PEWD, 1
    OperationRegion (IOCC, SystemIO, 0x0400, 0x80)
    Field (IOCC, ByteAcc, NoLock, Preserve)
    Offset (0x01),
    , 2,
    RTCS, 1
    Name (PRWP, Package (0x02)
    Zero,
    Zero
    Method (GPRW, 2, NotSerialized)
    Store (Arg0, Index (PRWP, Zero))
    Store (Arg1, Index (PRWP, One))
    If (LAnd (LEqual (DAS3, Zero), LEqual (DAS1, Zero)))
    If (LLessEqual (Arg1, 0x03))
    Store (Zero, Index (PRWP, One))
    Else
    If (LAnd (LEqual (DAS3, Zero), LEqual (Arg1, 0x03)))
    Store (Zero, Index (PRWP, One))
    If (LAnd (LEqual (DAS1, Zero), LEqual (Arg1, One)))
    Store (Zero, Index (PRWP, One))
    Return (PRWP)
    Method (SPTS, 1, NotSerialized)
    If (LEqual (Arg0, 0x03))
    Store (Zero, RSTU)
    Store (One, \_SB.PCI0.SMBS.CLPS)
    Store (One, \_SB.PCI0.SMBS.SLPS)
    Store (PEWS, PEWS)
    Method (SWAK, 1, NotSerialized)
    If (LEqual (Arg0, 0x03))
    Store (One, RSTU)
    Store (PEWS, PEWS)
    Store (One, \_SB.PCI0.SMBS.PWDE)
    Store (Zero, PEWD)
    Method (CHKH, 0, NotSerialized)
    If (\_SB.PCI0.SMBS.G05S)
    Store (One, \_SB.PCI0.SMBS.G05T)
    Else
    Store (Zero, \_SB.PCI0.SMBS.G05T)
    Store (Not (\_SB.PCI0.SMBS.GE16), \_SB.PCI0.SMBS.G16T)
    OperationRegion (GNVS, SystemMemory, 0xCFEBCE18, 0x00000013)
    Field (GNVS, AnyAcc, NoLock, Preserve)
    DAS1, 8,
    DAS3, 8,
    TNBH, 8,
    TCP0, 8,
    TCP1, 8,
    ATNB, 8,
    PCP0, 8,
    PCP1, 8,
    PWMN, 8,
    LPTY, 8,
    M92D, 8,
    WKPM, 8,
    ALST, 8,
    AFUC, 8,
    EXUS, 8,
    AIRC, 8,
    WLSH, 8,
    TSSS, 8,
    ODZC, 8
    OperationRegion (OGNS, SystemMemory, 0xCFEBDD98, 0x00000255)
    Field (OGNS, AnyAcc, Lock, Preserve)
    OG00, 8,
    OG01, 8,
    OG02, 8,
    OG03, 8,
    OG04, 8,
    OG05, 8,
    OG06, 8,
    OG07, 8,
    OG08, 8,
    OG09, 8,
    OG10, 8,
    OG11, 8,
    OG12, 8,
    OG13, 8,
    OG14, 8,
    OG15, 8,
    OG16, 8,
    OG17, 8,
    OG18, 8,
    OG19, 8,
    OG20, 8,
    BLK0, 32,
    BLK1, 32,
    BLK2, 32,
    BLK3, 32,
    BLK4, 32,
    BLK5, 32,
    BTEN, 1,
    WLAN, 1,
    WN3G, 1,
    ENSR, 2,
    CCDE, 1,
    DACB, 1,
    TPDV, 1,
    WOLI, 1,
    CIRE, 1,
    FGPE, 1,
    HDME, 1,
    CPUD, 1,
    PCIL, 1,
    FBBS, 1,
    SWKS, 1,
    OWNS, 4096,
    DVDI, 160,
    OWN0, 8,
    OWN1, 8,
    HEUE, 8,
    BEUE, 8,
    VEVT, 16,
    FEVT, 16,
    NEVT, 16,
    OPR0, 8,
    OPR1, 8,
    OPR2, 8,
    KBIN, 8,
    SLPB, 32
    OperationRegion (NVST, SystemMemory, 0xCFEBED61, 0x0000012A)
    Field (NVST, AnyAcc, Lock, Preserve)
    SMIF, 8,
    PRM0, 8,
    PRM1, 8,
    BRTL, 8,
    TLST, 8,
    IGDS, 8,
    LCDA, 16,
    CSTE, 16,
    NSTE, 16,
    CADL, 16,
    PADL, 16,
    LIDS, 8,
    PWRS, 8,
    BVAL, 32,
    ADDL, 16,
    BCMD, 8,
    DID, 32,
    INFO, 2048,
    TOML, 8,
    TOMH, 8,
    CEBP, 8,
    C0LS, 8,
    C1LS, 8,
    C0HS, 8,
    C1HS, 8,
    ROMS, 32,
    MUXF, 8,
    PDDN, 8
    Method (SCMP, 2, NotSerialized)
    Name (STG1, Buffer (0x50) {})
    Name (STG2, Buffer (0x50) {})
    Store (Arg0, STG1)
    Store (Arg1, STG2)
    If (LNotEqual (SizeOf (Arg0), SizeOf (Arg1)))
    Return (Zero)
    Store (Zero, Local0)
    While (LLess (Local0, SizeOf (Arg0)))
    If (LNotEqual (DerefOf (Index (STG1, Local0)), DerefOf (Index (
    STG2, Local0))))
    Return (Zero)
    Increment (Local0)
    Return (One)
    Name (WNOS, Zero)
    Name (MYOS, Zero)
    Name (HTTS, Zero)
    Name (OSTB, Ones)
    Name (TPOS, Zero)
    Name (LINX, Zero)
    Name (OSSP, Zero)
    Method (CKOS, 0, NotSerialized)
    If (LEqual (WNOS, Zero))
    If (SCMP (_OS, "Microsoft Windows"))
    Store (One, WNOS)
    If (SCMP (_OS, "Microsoft Windows NT"))
    Store (0x02, WNOS)
    If (SCMP (_OS, "Microsoft WindowsME: Millennium Edition"))
    Store (0x03, WNOS)
    If (SCMP (_OS, "Windows 2012"))
    Store (0x07, WNOS)
    If (CondRefOf (\_OSI, Local0))
    If (SCMP (_OS, "Windows 2006"))
    Store (0x05, WNOS)
    Else
    If (SCMP (_OS, "Windows 2009"))
    Store (0x06, WNOS)
    Else
    Store (0x04, WNOS)
    Return (WNOS)
    Method (SEQL, 2, Serialized)
    Store (SizeOf (Arg0), Local0)
    Store (SizeOf (Arg1), Local1)
    If (LNotEqual (Local0, Local1))
    Return (Zero)
    Name (BUF0, Buffer (Local0) {})
    Store (Arg0, BUF0)
    Name (BUF1, Buffer (Local0) {})
    Store (Arg1, BUF1)
    Store (Zero, Local2)
    While (LLess (Local2, Local0))
    Store (DerefOf (Index (BUF0, Local2)), Local3)
    Store (DerefOf (Index (BUF1, Local2)), Local4)
    If (LNotEqual (Local3, Local4))
    Return (Zero)
    Increment (Local2)
    Return (One)
    Method (OSTP, 0, NotSerialized)
    If (LEqual (OSTB, Ones))
    If (CondRefOf (\_OSI, Local0))
    Store (Zero, OSTB)
    Store (Zero, TPOS)
    If (_OSI ("Windows 2001"))
    Store (0x08, OSTB)
    Store (0x08, TPOS)
    If (_OSI ("Windows 2001.1"))
    Store (0x20, OSTB)
    Store (0x20, TPOS)
    If (_OSI ("Windows 2001 SP1"))
    Store (0x10, OSTB)
    Store (0x10, TPOS)
    If (_OSI ("Windows 2001 SP2"))
    Store (0x11, OSTB)
    Store (0x11, TPOS)
    If (_OSI ("Windows 2001 SP3"))
    Store (0x12, OSTB)
    Store (0x12, TPOS)
    If (_OSI ("Windows 2006"))
    Store (0x40, OSTB)
    Store (0x40, TPOS)
    If (_OSI ("Windows 2006 SP1"))
    Store (0x41, OSTB)
    Store (0x41, TPOS)
    Store (One, OSSP)
    If (_OSI ("Windows 2009"))
    Store (One, OSSP)
    Store (0x50, OSTB)
    Store (0x50, TPOS)
    If (_OSI ("Linux"))
    Store (One, LINX)
    Store (0x80, OSTB)
    Store (0x80, TPOS)
    Else
    If (CondRefOf (\_OS, Local0))
    If (SEQL (_OS, "Microsoft Windows"))
    Store (One, OSTB)
    Store (One, TPOS)
    Else
    If (SEQL (_OS, "Microsoft WindowsME: Millennium Edition"))
    Store (0x02, OSTB)
    Store (0x02, TPOS)
    Else
    If (SEQL (_OS, "Microsoft Windows NT"))
    Store (0x04, OSTB)
    Store (0x04, TPOS)
    Else
    Store (Zero, OSTB)
    Store (Zero, TPOS)
    Else
    Store (Zero, OSTB)
    Store (Zero, TPOS)
    Return (OSTB)
    Method (VTOB, 1, NotSerialized)
    Store (One, Local0)
    ShiftLeft (Local0, Arg0, Local0)
    Return (Local0)
    Method (BTOV, 1, NotSerialized)
    ShiftRight (Arg0, One, Local0)
    Store (Zero, Local1)
    While (Local0)
    Increment (Local1)
    ShiftRight (Local0, One, Local0)
    Return (Local1)
    Method (MKWD, 2, NotSerialized)
    If (And (Arg1, 0x80))
    Store (0xFFFF0000, Local0)
    Else
    Store (Zero, Local0)
    Or (Local0, Arg0, Local0)
    Or (Local0, ShiftLeft (Arg1, 0x08), Local0)
    Return (Local0)
    Method (POSW, 1, NotSerialized)
    If (And (Arg0, 0x8000))
    If (LEqual (Arg0, 0xFFFF))
    Return (Ones)
    Else
    Not (Arg0, Local0)
    Increment (Local0)
    And (Local0, 0xFFFF, Local0)
    Return (Local0)
    Else
    Return (Arg0)
    Method (GBFE, 3, NotSerialized)
    CreateByteField (Arg0, Arg1, TIDX)
    Store (TIDX, Arg2)
    Method (PBFE, 3, NotSerialized)
    CreateByteField (Arg0, Arg1, TIDX)
    Store (Arg2, TIDX)
    Method (ITOS, 1, NotSerialized)
    Store (Buffer (0x09)
    /* 0000 */ 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    /* 0008 */ 0x00
    }, Local0)
    Store (Buffer (0x11)
    "0123456789ABCDEF"
    }, Local7)
    Store (0x08, Local1)
    Store (Zero, Local2)
    Store (Zero, Local3)
    While (Local1)
    Decrement (Local1)
    And (ShiftRight (Arg0, ShiftLeft (Local1, 0x02)), 0x0F, Local4)
    If (Local4)
    Store (Ones, Local3)
    If (Local3)
    GBFE (Local7, Local4, RefOf (Local5))
    PBFE (Local0, Local2, Local5)
    Increment (Local2)
    Return (Local0)
    Scope (_PR)
    Processor (C000, 0x00, 0x00000410, 0x06)
    Processor (C001, 0x01, 0x00000000, 0x00)
    Processor (C002, 0x02, 0x00000000, 0x00)
    Processor (C003, 0x03, 0x00000000, 0x00)
    Name (_S0, Package (0x04)
    Zero,
    Zero,
    Zero,
    Zero
    If (LEqual (DAS1, One)) {}
    If (LEqual (DAS3, One))
    Name (_S3, Package (0x04)
    0x03,
    0x03,
    Zero,
    Zero
    Name (_S4, Package (0x04)
    0x04,
    0x04,
    Zero,
    Zero
    Name (_S5, Package (0x04)
    0x05,
    0x05,
    Zero,
    Zero
    Scope (_GPE)
    Method (_L1C, 0, NotSerialized)
    Store (0xFFFF, Local1)
    Store (\_SB.PCI0.SMBS.MIN, Local2)
    ShiftLeft (Local2, 0x08, Local1)
    Store (\_SB.PCI0.SMBS.SEC, Local2)
    Or (Local1, Local2, Local1)
    Store (Local1, P80H)
    Method (_L08, 0, NotSerialized)
    Notify (\_SB.PCI0.PB2, 0x02)
    Notify (\_SB.PCI0.PB3, 0x02)
    Notify (\_SB.PCI0.PB4, 0x02)
    Notify (\_SB.PCI0.PB5, 0x02)
    Notify (\_SB.PCI0.PB6, 0x02)
    Notify (\_SB.PCI0.PB7, 0x02)
    Notify (\_SB.PCI0.SPB0, 0x02)
    Notify (\_SB.PCI0.SPB1, 0x02)
    Notify (\_SB.PCI0.SPB2, 0x02)
    Notify (\_SB.PCI0.SPB3, 0x02)
    Name (XX05, Buffer (One)
    0x05
    Name (XX06, Buffer (One)
    0x05
    Method (_L05, 0, NotSerialized)
    Name (HPOK, Zero)
    Sleep (0xC8)
    If (\_SB.PCI0.SMBS.GE05)
    Store (Zero, \_SB.PCI0.SMBS.G05T)
    Else
    Store (One, \_SB.PCI0.SMBS.G05T)
    Notify (\_SB.PCI0.SPB2, Zero)
    Method (_L18, 0, NotSerialized)
    Notify (\_SB.PCI0.OHC1, 0x02)
    Notify (\_SB.PCI0.OHC2, 0x02)
    Notify (\_SB.PCI0.OHC3, 0x02)
    Notify (\_SB.PCI0.OHC4, 0x02)
    Notify (\_SB.PCI0.EHC1, 0x02)
    Notify (\_SB.PCI0.EHC2, 0x02)
    Notify (\_SB.PCI0.EHC3, 0x02)
    Notify (\_SB.PCI0.XHC0, 0x02)
    Notify (\_SB.PCI0.XHC1, 0x02)
    Notify (\_SB.PWRB, 0x02)
    Method (_L09, 0, NotSerialized)
    Store (0x4400, P80H)
    Store (\_SB.PCI0.SMBS.O012, Local0)
    Or (Local0, \_SB.PCI0.SMBS.O013, Local0)
    Or (Local0, \_SB.PCI0.SMBS.O014, Local0)
    CreateWordField (XX05, Zero, SZZE)
    CreateField (XX05, 0x10, 0x03, FUCC)
    CreateField (XX05, 0x13, 0x05, DEVV)
    CreateByteField (XX05, 0x03, BUSS)
    CreateByteField (XX05, 0x04, HPST)
    Store (0x05, SZZE)
    Store (Zero, BUSS)
    Store (0x05, DEVV)
    Store (Zero, FUCC)
    CreateWordField (XX06, Zero, SZZ6)
    CreateField (XX06, 0x10, 0x03, FUC6)
    CreateField (XX06, 0x13, 0x05, DEV6)
    CreateByteField (XX06, 0x03, BUS6)
    CreateByteField (XX06, 0x04, HPS6)
    Store (0x05, SZZ6)
    Store (Zero, BUS6)
    Store (0x06, DEV6)
    Store (Zero, FUC6)
    If (LEqual (Local0, One))
    If (LEqual (WLSH, Zero))
    Store (One, \_SB.PCI0.SMBS.O012)
    Store (One, \_SB.PCI0.SMBS.O013)
    Store (One, \_SB.PCI0.SMBS.O014)
    Store (Zero, \_SB.PCI0.SMBS.E012)
    Store (Zero, \_SB.PCI0.SMBS.E013)
    Store (Zero, \_SB.PCI0.SMBS.E014)
    Else
    Store (Zero, HPST)
    \_SB.ALIB (0x06, XX05, \_SB.ALIB (0x06, XX06, Store (One, \_SB.PCI0.SMBS.O012), Store (
    One, \_SB.PCI0.SMBS.O013), Store (One, \_SB.PCI0.SMBS.O014)), Store (Zero, \_SB.PCI0.SMBS.E012), Store (Zero, \_SB.PCI0.SMBS.E013))
    Store (Zero, \_SB.PCI0.SMBS.E014)
    If (LEqual (Local0, Zero))
    If (LEqual (WLSH, Zero))
    Store (One, \_SB.PCI0.SMBS.E012)
    Store (One, \_SB.PCI0.SMBS.E013)
    Store (One, \_SB.PCI0.SMBS.E014)
    Store (Zero, \_SB.PCI0.SMBS.O012)
    Store (Zero, \_SB.PCI0.SMBS.O013)
    Store (Zero, \_SB.PCI0.SMBS.O014)
    Else
    Store (One, \_SB.PCI0.SMBS.E012)
    Store (One, \_SB.PCI0.SMBS.E013)
    Store (One, \_SB.PCI0.SMBS.E014)
    Store (Zero, \_SB.PCI0.SMBS.O012)
    Store (Zero, \_SB.PCI0.SMBS.O013)
    Store (Zero, \_SB.PCI0.SMBS.O014)
    Store (One, HPST)
    \_SB.ALIB (0x06, XX05, \_SB.ALIB (0x06, XX06, \_SB.PCI0.PB5.XPPR (Zero), Sleep (0x14),
    Notify (\_SB.PCI0.PB5, Zero)), Notify (\_SB.PCI0.PB6, Zero), Notify (\_SB.PCI0.SPB0, Zero))
    Method (_L0E, 0, NotSerialized)
    CreateWordField (XX05, Zero, SZZE)
    CreateField (XX05, 0x10, 0x03, FUCC)
    CreateField (XX05, 0x13, 0x05, DEVV)
    CreateByteField (XX05, 0x03, BUSS)
    CreateByteField (XX05, 0x04, HPST)
    Store (0x05, SZZE)
    Store (Zero, BUSS)
    Store (0x03, DEVV)
    Store (Zero, FUCC)
    Name (HPOK, Zero)
    If (LGreaterEqual (OSTB, 0x40))
    Sleep (0x14)
    If (\_SB.PCI0.SMBS.GE14)
    Store (Zero, \_SB.PCI0.SMBS.G14T)
    Store (0x18, INFO)
    Store (0x86, BCMD)
    Sleep (0x64)
    Sleep (0x64)
    If (CondRefOf (\_SB.ALIB, Local0))
    Store (Zero, HPST)
    \_SB.ALIB (0x06, XX05, Else
    \_SB.PCI0.PB3.XPPR (Zero)
    }, Store (0x0F1A, P80H), Else
    Store (One, \_SB.PCI0.SMBS.G14T)
    If (CondRefOf (\_SB.ALIB, Local0))
    Store (One, HPST)
    \_SB.ALIB (0x06, XX05, Else
    \_SB.PCI0.PB3.XPPR (One)
    }, Store (0x021A, P80H), Else
    Sleep (0x14)
    If (\_SB.PCI0.SMBS.GE14)
    Store (Zero, \_SB.PCI0.SMBS.G14T)
    Store (One, \_SB.PCI0.PB3.PDC2)
    Store (\_SB.PCI0.PB3.VGA.DVID, Local7)
    Sleep (0x0A)
    Store (One, Local4)
    Store (0x05, Local5)
    While (LAnd (Local4, Local5))
    Store (\_SB.PCI0.PB3.XPRD (0xA5), Local6)
    And (Local6, 0x7F, Local6)
    If (LLessEqual (Local6, 0x04))
    Store (Zero, Local4)
    Else
    Store (\_SB.PCI0.PB3.VGA.DVID, Local7)
    Sleep (0x05)
    Decrement (Local5)
    If (CondRefOf (\_SB.ALIB, Local0))
    Store (Zero, HPST)
    \_SB.ALIB (0x06, XX05, Else
    \_SB.PCI0.PB3.XPPR (Zero)
    }, Store (One, HPOK), Store (0x1F1A, P80H))
    Else
    Store (One, \_SB.PCI0.SMBS.G14T)
    Store (Zero, HPOK)
    If (CondRefOf (\_SB.ALIB, Local0))
    Store (One, HPST)
    \_SB.ALIB (0x06, XX05, Else
    \_SB.PCI0.PB3.XPPR (One)
    }, Store (Zero, Local2), While (LLess (Local2, 0x0F))
    Store (One, \_SB.PCI0.PB3.PDC2)
    Store (One, Local4)
    Store (0xC8, Local5)
    While (LAnd (Local4, Local5))
    Store (\_SB.PCI0.PB3.XPRD (0xA5), Local6)
    And (Local6, 0x7F, Local6)
    If (LAnd (LGreaterEqual (Local6, 0x10), LNotEqual (Local6, 0x7F)))
    Store (Zero, Local4)
    Else
    Sleep (0x05)
    Decrement (Local5)
    If (LNot (Local4))
    Store (\_SB.PCI0.PB3.XPDL (), Local5)
    If (Local5)
    \_SB.PCI0.PB3.XPRT ()
    Sleep (0x05)
    Increment (Local2)
    Else
    Store (0x18, INFO)
    Store (0x87, BCMD)
    If (LEqual (\_SB.PCI0.PB3.XPR2 (), Ones))
    Store (One, HPOK)
    Store (0x10, Local2)
    Else
    Store (Zero, HPOK)
    Store (0x10, Local2)
    Else
    Store (0x10, Local2)
    Store (0x121A, P80H)
    If (LNot (HPOK))
    Store (\_SB.PCI0.PB3.VGA.DVID, Local7)
    Sleep (0x0A)
    Store (One, Local4)
    Store (0x05, Local5)
    While (LAnd (Local4, Local5))
    Store (\_SB.PCI0.PB3.XPRD (0xA5), Local6)
    And (Local6, 0x7F, Local6)
    If (LLessEqual (Local6, 0x04))
    Store (Zero, Local4)
    Else
    Store (\_SB.PCI0.PB3.VGA.DVID, Local7)
    Sleep (0x05)
    Decrement (Local5)
    If (CondRefOf (\_SB.ALIB, Local0))
    Store (Zero, HPST)
    \_SB.ALIB (0x06, XX05, Else
    \_SB.PCI0.PB3.XPPR (Zero)
    }, If (HPOK)
    Notify (\_SB.PCI0.PB3, Zero)
    Method (_L10, 0, NotSerialized)
    If (LEqual (ODZC, One))
    If (\_SB.PCI0.SMBS.G16T)
    Sleep (0x14)
    If (\_SB.PCI0.SMBS.GE16)
    Store (Zero, \_SB.PCI0.SMBS.G16T)
    If (LOr (LEqual (\_SB.PCI0.SATA.VIDI, 0x78001022), LEqual (\_SB.PCI0.SATA.VIDI, 0x78011022)))
    Notify (\_SB.PCI0.AFD, 0x80)
    If (LEqual (\_SB.PCI0.SATA.VIDI, 0x78041022))
    If (LEqual (\_SB.PCI0.AFD.HDD0, One))
    Notify (\_SB.PCI0.SATA.ODDZ, 0x80)
    Else
    Notify (\_SB.PCI0.SATA.ODDZ, 0x80)
    Store (0xDF15, P80H)
    Else
    Sleep (0x14)
    If (LNot (\_SB.PCI0.SMBS.GE16))
    Store (One, \_SB.PCI0.SMBS.G16T)
    If (LOr (LEqual (\_SB.PCI0.SATA.VIDI, 0x78001022), LEqual (\_SB.PCI0.SATA.VIDI, 0x78011022)))
    Notify (\_SB.PCI0.AFD, 0x80)
    If (LEqual (\_SB.PCI0.SATA.VIDI, 0x78041022))
    If (LEqual (\_SB.PCI0.AFD.HDD0, One))
    Notify (\_SB.PCI0.SATA.ODDZ, 0x80)
    Else
    Notify (\_SB.PCI0.SATA.ODDZ, 0x80)
    Store (0xDF14, P80H)
    Name (PICM, Zero)
    Name (GPIC, Zero)
    Method (_PIC, 1, NotSerialized)
    Store (Arg0, PICM)
    Store (Arg0, GPIC)
    If (GPIC)
    \_SB.DSPI ()
    Name (PTSF, Zero)
    Method (_PTS, 1, NotSerialized)
    Store (One, PTSF)
    Store (One, \_SB.PCI0.LPC0.EC0.IESQ)
    SPTS (Arg0)
    If (LEqual (Arg0, One))
    Store (0x51, IO80)
    \_SB.S80H (0x51)
    If (LEqual (Arg0, 0x03))
    If (\_SB.SSTS)
    Store (Zero, \_SB.PCI0.LPC0.EC0.WLID)
    Else
    Store (One, \_SB.PCI0.LPC0.EC0.WLID)
    Store (0x53, IO80)
    \_SB.S80H (0x53)
    Store (One, \_SB.PCI0.SMBS.SLPS)
    If (LEqual (Arg0, 0x04))
    Store (0x54, IO80)
    \_SB.S80H (0x54)
    Store (One, \_SB.PCI0.SMBS.SLPS)
    Store (One, RSTU)
    Store (One, \_SB.INS4)
    Store (One, \_SB.PCI0.LPC0.EC0.FLS4)
    If (\_SB.SSTS)
    Store (Zero, \_SB.PCI0.LPC0.EC0.WLID)
    Else
    Store (One, \_SB.PCI0.LPC0.EC0.WLID)
    If (LEqual (Arg0, 0x05))
    Store (0x55, IO80)
    \_SB.S80H (0x55)
    \_SB.GSMI (0x03)
    Method (_WAK, 1, NotSerialized)
    Store (Zero, PTSF)
    SWAK (Arg0)
    If (LEqual (Arg0, One))
    Store (0xE1, IO80)
    \_SB.S80H (0xE1)
    Store (0xF1, \_SB.PCI0.P2P.PR4B)
    If (LEqual (Arg0, 0x03))
    Store (0x55, \_SB.INS3)
    Store (One, \_SB.PCI0.LPC0.EC0.CPLE)
    Store (0xE3, IO80)
    \_SB.S80H (0xE3)
    CHKH ()
    If (\_SB.ECOK)
    If (LGreaterEqual (TPOS, 0x40))
    If (LEqual (TPOS, 0x80))
    Store (Zero, \_SB.PCI0.LPC0.EC0.OSTP)
    Else
    Store (One, \_SB.PCI0.LPC0.EC0.OSTP)
    Else
    Store (Zero, \_SB.PCI0.LPC0.EC0.OSTP)
    Notify (\_SB.BAT1, 0x81)
    Notify (\_SB.PWRB, 0x02)
    If (LEqual (Arg0, 0x04))
    Store (0x55, \_SB.INS3)
    Store (Zero, \_SB.INS4)
    Store (0xE4, IO80)
    \_SB.S80H (0xE4)
    \_SB.PCI0._INI ()
    \_SB.PCI0.EHC1.STOS ()
    If (\_SB.ECOK)
    If (LGreaterEqual (TPOS, 0x40))
    If (LEqual (TPOS, 0x80))
    Store (Zero, \_SB.PCI0.LPC0.EC0.OSTP)
    Else
    Store (One, \_SB.PCI0.LPC0.EC0.OSTP)
    Else
    Store (Zero, \_SB.PCI0.LPC0.EC0.OSTP)
    Notify (\_SB.BAT1, 0x81)
    Notify (\_SB.PWRB, 0x02)
    Return (Zero)
    Scope (_SI)
    Method (_SST, 1, NotSerialized)
    If (LEqual (Arg0, One))
    Store ("===== SST Working =====", Debug)
    If (LEqual (Arg0, 0x02))
    Store ("===== SST Waking =====", Debug)
    If (LEqual (Arg0, 0x03))
    Store ("===== SST Sleeping =====", Debug)
    If (LEqual (Arg0, 0x04))
    Store ("===== SST Sleeping S4 =====", Debug)
    Scope (_SB)
    Name (ECOK, One)
    Name (INS3, Zero)
    Name (INS4, One)
    Name (WLWF, Zero)
    Name (L3WF, Zero)
    Name (DCNT, Zero)
    Name (SSTS, Zero)
    Name (LDSS, Zero)
    Method (GBFE, 3, NotSerialized)
    CreateByteField (Arg0, Arg1, TIDX)
    Store (TIDX, Arg2)
    Method (PBFE, 3, NotSerialized)
    CreateByteField (Arg0, Arg1, TIDX)
    Store (Arg2, TIDX)
    Method (ITOS, 1, NotSerialized)
    Store (Buffer (0x09)
    /* 0000 */ 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    /* 0008 */ 0x00
    }, Local0)
    Store (Buffer (0x11)
    "0123456789ABCDEF"
    }, Local7)
    Store (0x08, Local1)
    Store (Zero, Local2)
    Store (Zero, Local3)
    While (Local1)
    Decrement (Local1)
    And (ShiftRight (Arg0, ShiftLeft (Local1, 0x02)), 0x0F, Local4)
    If (Local4)
    Store (Ones, Local3)
    If (Local3)
    GBFE (Local7, Local4, RefOf (Local5))
    PBFE (Local0, Local2, Local5)
    Increment (Local2)
    Return (Local0)
    Device (PWRB)
    Name (_HID, EisaId ("PNP0C0C"))
    Method (_STA, 0, NotSerialized)
    Return (0x0B)
    Device (PCI0)
    Name (_HID, EisaId ("PNP0A08"))
    Name (_CID, EisaId ("PNP0A03"))
    Name (_ADR, Zero)
    OperationRegion (SCTH, PCI_Config, 0x7A, One)
    Field (SCTH, ByteAcc, NoLock, Preserve)
    RSMF, 1
    Method (_INI, 0, NotSerialized)
    If (LEqual (GPIC, Zero)) {}
    Else
    DSPI ()
    OSTP ()
    Store (0x07D0, MYOS)
    If (CondRefOf (\_OSI, Local0))
    If (_OSI ("Linux"))
    Store (0x03E8, MYOS)
    If (_OSI ("Windows 2001"))
    Store (0x07D1, MYOS)
    If (_OSI ("Windows 2001 SP1"))
    Store (0x07D1, MYOS)
    If (_OSI ("Windows 2001 SP2"))
    Store (0x07D2, MYOS)
    If (_OSI ("Windows 2006"))
    Store (0x07D6, MYOS)
    If (_OSI ("Windows 2009"))
    Store (0x07D9, MYOS)
    If (_OSI ("Windows 2012"))
    Store (0x07DC, MYOS)
    OperationRegion (NBMS, PCI_Config, 0x60, 0x08)
    Field (NBMS, DWordAcc, NoLock, Preserve)
    MIDX, 32,
    MIDR, 32
    Mutex (NBMM, 0x00)
    Method (NBMR, 1, NotSerialized)
    Acquire (NBMM, 0xFFFF)
    And (Arg0, 0x7F, Local0)
    Store (Local0, MIDX)
    Store (MIDR, Local0)
    Store (0x7F, MIDX)
    Release (NBMM)
    Return (Local0)
    Method (NBMW, 2, NotSerialized)
    Acquire (NBMM, 0xFFFF)
    And (Arg0, 0x7F, Local0)
    Or (Local0, 0x80, Local0)
    Store (Local0, MIDX)
    Store (Arg1, MIDR)
    Store (And (Local0, 0x7F, Local0), MIDX)
    Release (NBMM)
    OperationRegion (NBXP, PCI_Config, 0xE0, 0x08)
    Field (NBXP, DWordAcc, NoLock, Preserve)
    NBXI, 32,
    NBXD, 32
    Mutex (NBXM, 0x00)
    Method (NBXR, 1, NotSerialized)
    Acquire (NBXM, 0xFFFF)
    Store (Arg0, NBXI)
    Store (NBXD, Local0)
    Store (Zero, NBXI)
    Release (NBXM)
    Return (Local0)
    Method (NBXW, 2, NotSerialized)
    Acquire (NBXM, 0xFFFF)
    Store (Arg0, NBXI)
    Store (Arg1, NBXD)
    Store (Zero, NBXI)
    Release (NBXM)
    Method (XPTR, 2, NotSerialized)
    If (LAnd (LLess (Arg0, 0x02), LGreater (Arg0, 0x07)))
    Return (Zero)
    Else
    If (LLess (Arg0, 0x04))
    Subtract (Arg0, 0x02, Local1)
    Store (0x01310800, Local0)
    Else
    Subtract (Arg0, 0x04, Local1)
    Store (0x01300900, Local0)
    Add (Local0, ShiftLeft (Local1, 0x08), Local0)
    ShiftLeft (Local0, Local1, Local0)
    NBXW (Local0, Arg1)
    Return (Ones)
    Method (XPLP, 2, NotSerialized)
    Method (XPLL, 2, NotSerialized)
    Name (_UID, One)
    Name (_BBN, Zero)
    Name (SUPP, Zero)
    Name (CTRL, Zero)
    Name (AMHP, Zero)
    Method (XOSC, 4, NotSerialized)
    CreateDWordField (Arg3, Zero, CDW1)
    CreateDWordField (Arg3, 0x04, CDW2)
    CreateDWordField (Arg3, 0x08, CDW3)
    If (LEqual (Arg0, Buffer (0x10)
    /* 0000 */ 0x5B, 0x4D, 0xDB, 0x33, 0xF7, 0x1F, 0x1C, 0x40,
    /* 0008 */ 0x96, 0x57, 0x74, 0x41, 0xC0, 0x3D, 0xD7, 0x66
    Store (CDW2, SUPP)
    Store (CDW3, CTRL)
    And (CTRL, 0x1D, CTRL)
    If (Not (And (CDW1, One)))
    If (And (CTRL, One)) {}
    If (And (CTRL, 0x10)) {}
    If (LNotEqual (Arg1, One))
    Or (CDW1, 0x08, CDW1)
    If (LNotEqual (CDW3, CTRL))
    Or (CDW1, 0x10, CDW1)
    Store (CTRL, CDW3)
    Return (Arg3)
    Else
    Or (CDW1, 0x04, CDW1)
    Return (Arg3)
    Method (TOM, 0, NotSerialized)
    Multiply (TOML, 0x00010000, Local0)
    Multiply (TOMH, 0x01000000, Local1)
    Add (Local0, Local1, Local0)
    Return (Local0)
    Name (CRES, ResourceTemplate ()
    WordBusNumber (ResourceProducer, MinFixed, MaxFixed, SubDecode,
    0x0000, // Granularity
    0x0000, // Range Minimum
    0x00FF, // Range Maximum
    0x0000, // Translation Offset
    0x0100, // Length
    0x00,, )
    WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
    0x0000, // Granularity
    0x0000, // Range Minimum
    0x0CF7, // Range Maximum
    0x0000, // Translation Offset
    0x0CF8, // Length
    0x00,, , TypeStatic)
    WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
    0x0000, // Granularity
    0x0D00, // Range Minimum
    0xFFFF, // Range Maximum
    0x0000, // Translation Offset
    0xF300, // Length
    ,, , TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
    0x00000000, // Granularity
    0x000A0000, // Range Minimum
    0x000BFFFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00020000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadOnly,
    0x00000000, // Granularity
    0x000C0000, // Range Minimum
    0x000C3FFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadOnly,
    0x00000000, // Granularity
    0x000C4000, // Range Minimum
    0x000C7FFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly,
    0x00000000, // Granularity
    0x000C8000, // Range Minimum
    0x000CBFFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly,
    0x00000000, // Granularity
    0x000CC000, // Range Minimum
    0x000CFFFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
    0x00000000, // Granularity
    0x000D0000, // Range Minimum
    0x000D3FFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
    0x00000000, // Granularity
    0x000D4000, // Range Minimum
    0x000D7FFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
    0x00000000, // Granularity
    0x000D8000, // Range Minimum
    0x000DBFFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
    0x00000000, // Granularity
    0x000DC000, // Range Minimum
    0x000DFFFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
    0x00000000, // Granularity
    0x000E0000, // Range Minimum
    0x000E3FFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
    0x00000000, // Granularity
    0x000E4000, // Range Minimum
    0x000E7FFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
    0x00000000, // Granularity
    0x000E8000, // Range Minimum
    0x000EBFFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
    0x00000000, // Granularity
    0x000EC000, // Range Minimum
    0x000EFFFF, // Range Maximum
    0x00000000, // Translation Offset
    0x00004000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
    0x00000000, // Granularity
    0x80000000, // Range Minimum
    0xF7FFFFFF, // Range Maximum
    0x00000000, // Translation Offset
    0x77000000, // Length
    0x00,, _Y00, AddressRangeMemory, TypeStatic)
    DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
    0x00000000, // Granularity
    0xFC000000, // Range Minimum
    0xFFFFFFFF, // Range Maximum
    0x00000000, // Translation Offset
    0x04000000, // Length
    0x00,, , AddressRangeMemory, TypeStatic)
    IO (Decode16,
    0x0CF8, // Range Minimum
    0x0CF8, // Range Maximum
    0x01, // Alignment
    0x08, // Length
    Method (_CRS, 0, NotSerialized)
    CreateDWordField (CRES, \_SB.PCI0._Y00._MIN, BTMN)
    CreateDWordField (CRES, \_SB.PCI0._Y00._MAX, BTMX)
    CreateDWordField (CRES, \_SB.PCI0._Y00._LEN, BTLN)
    Store (TOM (), BTMN)
    Subtract (0xF8000000, BTMN, BTLN)
    Return (CRES)
    Device (MEMR)
    Name (_HID, EisaId ("PNP0C02"))
    Name (MEM1, ResourceTemplate ()
    Memory32Fixed (ReadWrite,
    0x00000000, // Address Base
    0x00000000, // Address Length
    _Y01)
    Memory32Fixed (ReadWrite,
    0x00000000, // Address Base
    0x00000000, // Address Length
    _Y02)
    Memory32Fixed (ReadWrite,
    0xFF800000, // Address Base
    0x00000020, // Address Length
    Method (_CRS, 0, NotSerialized)
    CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y01._BAS, MB01)
    CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y01._LEN, ML01)
    CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y02._BAS, MB02)
    CreateDWordField (MEM1, \_SB.PCI0.MEMR._Y02._LEN, ML02)
    If (GPIC)
    Store (0xFEC00000, MB01)
    Store (0xFEE00000, MB02)
    Store (0x1000, ML01)
    Store (0x1000, ML02)
    Return (MEM1)
    Method (XCMP, 2, NotSerialized)
    If (LNotEqual (0x10, SizeOf (Arg0)))
    Return (Zero)
    If (LNotEqual (0x10, SizeOf (Arg1)))
    Return (Zero)
    Store (Zero, Local0)
    While (LLess (Local0, 0x10))
    If (LNotEqual (DerefOf (Index (Arg0, Local0)), DerefOf (Index (
    Arg1, Local0))))
    Return (Zero)
    Increment (Local0)
    Return (One)
    Method (AFN0, 0, Serialized)
    If (LEqual (PDDN, One))
    ^VGA.AFN0 ()
    If (LEqual (PDDN, 0x02))
    ^PB2.VGA.AFN0 ()
    If (LEqual (PDDN, 0x03))
    ^PB3.VGA.AFN0 ()
    Method (AFN1, 1, Serialized)
    Method (AFN2, 2, Serialized)
    Method (AFN3, 2, Serialized)
    If (LEqual (PDDN, One))
    ^VGA.AFN3 (Arg0, Arg1)
    If (LEqual (PDDN, 0x02))
    ^PB2.VGA.AFN3 (Arg0, Arg1)
    If (LEqual (PDDN, 0x03))
    ^PB3.VGA.AFN3 (Arg0, Arg1)
    Method (AFN4, 1, Serialized)
    If (LEqual (PDDN, One))
    ^VGA.AFN4 (Arg0)
    If (LEqual (PDDN, 0x02))
    ^PB2.VGA.AFN4 (Arg0)
    If (LEqual (PDDN, 0x03))

    First remove any acpi_os_name=linux or acpi_osi=linux that you have on the kernel command line, if need be use acpi_osi="!Linux", told you that already in the other thread, I only suggested that you decompile your dsdt so you can pinpoint which acpi_os_name and acpi_osi names are being checked and try to spoof _using windows_ with those names.
    This is the part you should be looking at first:
    Method (OSTP, 0, NotSerialized)
    If (LEqual (OSTB, Ones))
    If (CondRefOf (\_OSI, Local0))
    Store (Zero, OSTB)
    Store (Zero, TPOS)
    If (_OSI ("Windows 2001"))
    Store (0x08, OSTB)
    Store (0x08, TPOS)
    If (_OSI ("Windows 2001.1"))
    Store (0x20, OSTB)
    Store (0x20, TPOS)
    If (_OSI ("Windows 2001 SP1"))
    Store (0x10, OSTB)
    Store (0x10, TPOS)
    If (_OSI ("Windows 2001 SP2"))
    Store (0x11, OSTB)
    Store (0x11, TPOS)
    If (_OSI ("Windows 2001 SP3"))
    Store (0x12, OSTB)
    Store (0x12, TPOS)
    If (_OSI ("Windows 2006"))
    Store (0x40, OSTB)
    Store (0x40, TPOS)
    If (_OSI ("Windows 2006 SP1"))
    Store (0x41, OSTB)
    Store (0x41, TPOS)
    Store (One, OSSP)
    If (_OSI ("Windows 2009"))
    Store (One, OSSP)
    Store (0x50, OSTB)
    Store (0x50, TPOS)
    If (_OSI ("Linux"))
    Store (One, LINX)
    Store (0x80, OSTB)
    Store (0x80, TPOS)
    Else
    If (CondRefOf (\_OS, Local0))
    If (SEQL (_OS, "Microsoft Windows"))
    Store (One, OSTB)
    Store (One, TPOS)
    Else
    If (SEQL (_OS, "Microsoft WindowsME: Millennium Edition"))
    Store (0x02, OSTB)
    Store (0x02, TPOS)
    Else
    If (SEQL (_OS, "Microsoft Windows NT"))
    Store (0x04, OSTB)
    Store (0x04, TPOS)
    Else
    Store (Zero, OSTB)
    Store (Zero, TPOS)
    Else
    Store (Zero, OSTB)
    Store (Zero, TPOS)
    Return (OSTB)
    You can clearly see that linux is being checked for and different stuff is done for it, as is the case for each windows version, like I also said in the other thread first try to spoof a windows version where the battery shows up and the fan works correctly. Only after trying that and if it fails, I would go about trying to fix the dsdt myself.

Maybe you are looking for

  • Why can't I read iBook reviews on my iPad?

    I can see the ratings but when I tap 'reviews,' nothing comes up.

  • Browsers not loading pages

    Yesterday, I have upgraded my MacBook Pro (Late 2011 13-inch Model) to Mac OS X Mountain Lion. I have updated whatever updates available as soon as I upgraded. But today, earlier this morning my Internet was working fine for a moment until at a certa

  • UDB scalar functions and parameter markers

    Hello, While using Prepared Statements in combination with UDB scalar functions (translate UDB function, for example), I get a Parameter marker error. The SQL statement works fine as an independent query. SQL Query example from UDB manual used as is:

  • OpenSolaris - Help with sunsolve. What is my serial / instance id?

    Hello I a new SunOS user with a service contract. When I try to create a new service request through sunsolve.sun.com the system rejects my service request because this information is incorrect. I do not have any other serial number besides the one o

  • Challenge question sql or cursor

    I have two field in the database id and name data is like that ID NAME 1 X 1 Y 1 Z I would like to update this records and display like that ID NAME 1 X,Y,Z -- just in one string.... thanks