How to create a custom kernel with initrd and ARCH patches

Hi,
I like the default kernel because everything seems to work well and I think the Arch kernel includes patches I need (such as the mactel patch). But some options that i would like to be enabled are not. in fact i would like to use powertop but i can't because it needs the CONFIG_TIMER_STATS option.
What I would like is a kernel based on the arch kernel but with a different config file. Nothing more.
if i look at the solution on the Wiki, I see that I have to add all patches the standard kernel have ... Moreover there is no initrd creation. i think i will need it if I use the Arch kernel configuration.
And if i use the kernel26 PKGBUILD, I must change the package name in order to keep my current kernel. It's easy to do in the PKGBUILD but much more complicated to do it in the kernel26.install file beacuse I have to change the filenames in /boot and I do not want to replace the kernel26 files.
So do you have any ideas how to compile my custom kernel ? Is there a better solution ?
Thanks.
Mildred.
Last edited by mildred (2007-07-03 01:46:33)

tomk wrote:It's possible I'm missing something here, but I don't understand what you're worried about. If I understand correctly, you now have a PKGBUILD and associated files for kernel26mildred (or whatever you've decided to call it). Why do you think you would have to change the files again when kernel26 is updated?
don't the patches change from version to version?
anyways, i was bored so i wrote a little script... edit the configuration variables at the top and it'll do the work for you. just put it in /var/abs/kernels or wherever you have the kernel26/ at, chmod +x scriptname, and run.
if you're in /var/abs/kernels you'll probably have to run as root.
from my testing, it seems to be all working (looking at resulting files and no errors so far from makepkg); but i'm still building my test kernel with it.
#!/bin/bash
# Author: kano <[email protected]>
# Configuration #
appendname="-custom1" # Name to append to kernel package
BUILD=0 # Build package when done? No = 0; Yes = 1
#MAKEPKGOPT="" # Uncomment if you're building after you make; Add any options you want passed to makepkg (can be nothing)
# Work starts here; shouldn't have to edit anything below #
mkdir kernel26${appendname}/
cp kernel26/* kernel26${appendname}/
regen_md5sum() {
if [ ${file} != 'PKGBUILD' ]; then
echo "Regenerating md5sum for ${file}"
cat kernel26${appendname}/PKGBUILD \
| sed "s/'`md5sum kernel26/${file} | awk '{ print $1 }'`'/'`md5sum kernel26${appendname}/${file} | awk '{ print $1 }'`'/;" \
> PKGBUILD.tmp
mv PKGBUILD.tmp kernel26${appendname}/PKGBUILD
fi
for file in "PKGBUILD" "kernel26.preset" "kernel26.install"; do
echo "Editing ${file}"
cat kernel26/${file} | \
sed "s/kernel26/kernel26${appendname}/g" \
| sed "s/vmlinuz26/vmlinuz26${appendname}/g" \
| sed "s/kconfig26/kconfig26${appendname}/g" \
| sed "s/System.map26/System.map26${appendname}/g" \
> kernel26${appendname}/${file}
# Regenerate md5sum
regen_md5sum
done
for file in "config" "config.x86_64"; do
echo "Editing ${file}"
cat kernel26/${file} | \
sed "s/CONFIG_LOCALVERSION=\"-ARCH\"/CONFIG_LOCALVERSION=\"-ARCH${appendname}\"/" \
> kernel26${appendname}/${file}
# Regenerate md5sum
regen_md5sum
done
mv kernel26${appendname}/mkinitcpio-kernel26.conf kernel26${appendname}/mkinitcpio-kernel26${appendname}.conf
mv kernel26${appendname}/kernel26.install kernel26${appendname}/kernel26${appendname}.install
mv kernel26${appendname}/kernel26.preset kernel26${appendname}/kernel26${appendname}.preset
# Add make menuconfig to PKGBUILD
cat kernel26${appendname}/PKGBUILD | \
sed 's/# load configuration/\n # configure kernel before build\n make menuconfig\n\n # load configuration/;' \
> PKGBUILD.tmp
mv PKGBUILD.tmp kernel26${appendname}/PKGBUILD
echo "Custom kernel pkgbuild created."
# To build or to not to build?
if [ ${BUILD} -eq 1 ]; then
cd kernel26${appendname}
makepkg ${MAKEPKGOPT}
fi

Similar Messages

  • How to create a transport request with query and only with its structure.

    HI guru,
                how to create a transport request with query and only with its structure.transport request should not  include any other query items like ( variables, conditions...etc)
    thanks in advance.
    venkata

    Hi,
    Goto RSA1 and then Transport Connection -> In SAP Transports select Object Types-> Query Elements -> Then select Query->Give Technical name of the query and then select for transfer. In the right side you can choose the components which you wanted to transport.
    Regards,
    anil

  • Kernel with archck and win4lin patches?

    I've tried to patch the kernel with archck and win4lin myself, but compilation fails :-( Without the win4lin patch compilation is successfull... but I need win4lin for some windows app.

    phrakture wrote:Yeah, it's the correct place, the problem is that you didn't ask anything
    I thought the subject of the posting was clear that I was looking for someone who is willing to build this kernel (or has a PKGBUILD for this kernel).
    If I was looking for someone to help me build this kernel, I would have post in "Kernel & Hardware Issues" and I would've put the error message and .config file in my posting... But I was just asking someone to build this kernel for me... hoping someone is willing to do this for me or maybe if the guy who made archck read my posting, he will include win4lin in future versions. Yeah, I know, that's lazy, but this is the place for this kind of favours.
    Maybe the body of my posting created the confusion, next time I'll be more clear, I should say something like: "I'm looking for 2.6.13+archck6.2+win4lin... anyone?" instead of: "I've tried to patch and compile but it fails..."
    phrakture wrote:For instance, if you post the exact error message you get, along with what patches you used and how you changed the configuration, if anything, someone here will probably be able to track the error down in very short time.  However, saying "it doesn't work" doesn't help us much 8)
    So, instead of saying "it doesn't work", I should have said "I want it, can you make it for me or give it to me?"
    Anyway, now that this thread has evolved this way, I'll post the .config and error message when I have access to my own computer (that's after the weekend).

  • How to create a custom layout with two rows

    hi ,
       i have a requirement of creating the portal page layout with two rows. First row has one container with 100% width and second row has 3 columns (30:40:30).
    How to create the layout?
    what are the modification in portapp.xml?
    Thanks and regards,
    Saravanan

    Hi,
    Check this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/efa44d27a21a7de10000000a422035/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/efbac120711a71e10000000a422035/content.htm
    Here is example portalapp.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <!THIS FILE IS A COPY OF THE ORIGINAL VERSION STORED IN THE PCD. PLEASE DO NOT CHANGE IT!>
      <application-config>
        <property name="Vendor" value="sap.com"/>
        <property name="SecurityArea" value="NetWeaver.Portal"/>
        <property name="SharingReference" value="com.sap.portal.htmlb,com.sap.portal.useragent,com.sap.portal.pagebuilder"/>
      </application-config>
      <components>
        <component name="fullWidth">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="1 Column (Full Width)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying one full-width column"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="fullWidth.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConF"/>
            </property>
          </component-profile>
        </component>
        <component name="light_fullWidth">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 1 Column (Full Width)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying one full-width column"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_fullWidth.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConF"/>
            </property>
          </component-profile>
        </component>
        <component name="narrowWide">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="2 Columns (Narrow:Wide)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the left"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="narrowWide.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_narrowWide">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 2 Columns (Narrow:Wide)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the left"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_narrowWide.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="wideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="2 Columns (Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the right"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="wideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_wideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 2 Columns (Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the right"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_wideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="equalWidths">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="2 Columns (Equal Widths)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying two equal-width columns"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="equalWidths.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_equalWidths">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 2 Columns (Equal Widths)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying two equal-width columns"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_equalWidths.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="narrowWideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="3 Columns (Narrow:Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Three columns displayed in a narrow:wide:narrow layout"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="narrowWideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConM"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont3" value="column3">
              <property name="plainDescription" value="Column 3"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_narrowWideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 3 Columns (Narrow:Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Three columns displayed in a narrow:wide:narrow layout"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_narrowWideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConM"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont3" value="column3">
              <property name="plainDescription" value="Column 3"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    Greetings,
    Praveen Gudapati

  • New GL: How to create Profit C. Report with account and statistics combined

    Dear Experts,
    we are in need to build a report in the new Profit Center accounting (ECC6.0), which is combining the data from new GL table (FAGLFLEXT) and from the statistical key figure table FAGLSKF in one report in order to be able to report on sales per squaremetre for example. Preferabbly, we would like to use report painter/report writer for this, but any other solution how to create this without too much custom programming is highly appreciated.
    Thank you very much,
    Timo

    Dear Experts,
    unfortunately, the statistical key figure is in a different table. For this reason it is not enough, to create a new key figure based on the table FAGLFLEXT, because the basic key figure is not there. It is in a different table called FAGLSKF. I tried to merge these two structures by defining new a new evaluation structure based on on flexible analyses in the Logistics-Sales_and_Distribution-Sales_Information_System (transaction mcs7), but the problem is, that I get 16 basic key figures instead of one for the periods. How can this be avoided?
    Thanks Timo

  • OIM: How to create a custom Resource with Form

    Hi -
    I'm integrating OIM and OAM and am trying to create a process through which users can request access to different Applications protected by OAM. Some of these apps require capture additional information from the user.
    I was thinking I would create a Resource for each application so the user could be provisioned or request access and the process form for each resource would contain whatever custom fields that app needed.
    So while I'm quite familiar with the built in things such as AD process forms, and resources, etc... I've never created something like this from scratch. I'm guessing each resource need to do 2 things:
    - Put the user in a group in whatever ldap directory (OAM would look at this group for access policies for the respective application)
    - Gather some required fields
    Here's what I tried so far:
    - Create Resource Object for My App
    - Create Process Definition , type Provisioning, Object Name=My App
    - Create Form in Form Designer UD_MYAPP, set Object Name = My App
    - Set Process Definition's table name = "UD_MYAPP"
    When I try to provision it fails in a Pending System validation. When I click on View or Edit on the Process Form, I get a page saying "A system error encountered, contact your admin...."
    Can someone give me a high level overview of what I need to do? Any key fields I should pay attention to?
    What's best practice with something like this, it's got to be a pretty common thing, right?
    Thanks much
    Alex

    I seem to remember that you get that error when you don't have any fields on your process form.
    I wrote up a high level list of tasks for this on my blog a while ago: http://iamreflections.blogspot.com/2010/08/oim-howto-leverage-standard-connector.html
    You will also need to add a non conditional task to your provisioning process that sets the object status to "provisioned".
    Hope this helps
    /Maritn

  • How to create a custom listview with a specific listview item style?

    Hi everybody, I am trying to implement a custom image gallery. It has a very distinct design though, It supports drag and drop reordering. Each item has a button on the left and a thumbnail. The drag and drop should happen only when we drag the thumbnail
    and drop on the + buttons. I tried a lot of ways but none of them seem to work properly. The design of the list view is as the image below. 
    the first item in the list view looks like this. a button and a thumbnail and the last item looks the same but instead of a thumbnail it has an icon. When the add button is clicked a open file dialog appears and we can insert a thumbnail when the add button
    which is on the left and right of the thumbnail is clicked. When the add button at the end is clicked it adds a thumbnail at the end. How do i implement something like this ? Any help is much appreciated. 
    This is the code that i have for the list view item container.
    <Style TargetType="ListViewItem" x:Key="ContainerStyle" >
    <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type ListViewItem}">
    <StackPanel Orientation="Horizontal">
    <Button x:Name="AddButton"
    Style="{StaticResource SeparatorButtonStyle}"
    Tag="{TemplateBinding Tag}" AllowDrop="True"
    HorizontalAlignment="Left"
    Click="AddBtn_Clicked" VerticalAlignment="Center" Margin="10,0,10,0"/>
    <Border x:Name="Bd" BorderBrush="Transparent" BorderThickness="5" Background="{TemplateBinding Background}" Margin="10,10,10,15" SnapsToDevicePixels="true">
    <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
    </Border>
    </StackPanel>
    <ControlTemplate.Triggers>
    <Trigger Property="IsSelected" Value="true">
    <Setter Property="Background" TargetName="Bd" Value="#098ae4" />
    </Trigger>
    <Trigger Property="IsEnabled" Value="false">
    <Setter Property="Background" TargetName="Bd" Value="#098ae4" />
    </Trigger>
    </ControlTemplate.Triggers>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    <Setter Property="IsSelected" Value="False" />
    </Style>
    The datatemplate looks like this..
    <DataTemplate DataType="{x:Type local:ThumbData}">
    <Border BorderThickness="3,3,3,3" x:Name="thumbnailborder" PreviewMouseMove="MouseOverImage" MouseLeave="thumbnailborder_MouseLeave_1" AllowDrop="True" Tag="{Binding ThumbNumber}" DataContext="{Binding}" Width="150" PreviewMouseDown="Page_PreviewMouseDown" PreviewStylusDown="Page_PreviewStylusDown">
    <StackPanel x:Name="border" Background="LightGray">
    <Border>
    <Grid>
    <Border x:Name="transpBk" Height="{Binding ActualHeight, ElementName=thumbImage}" Width="{Binding ActualWidth, ElementName=thumbImage}" VerticalAlignment="Center" HorizontalAlignment="Center" />
    <Image x:Name="thumbImage" Source="{Binding ImageSource}" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="Uniform" Width="150" Height="100" />
    </Grid>
    </Border>
    <Border Width="150" Height="20" x:Name="ThumbnailNumberPanel">
    <Border Background="{Binding PColor}" Opacity="0.8" Width="150" HorizontalAlignment="Center" Height="20">
    <TextBlock Text="{Binding ThumbNumber}" TextWrapping="NoWrap" TextTrimming="WordEllipsis" VerticalAlignment="Center"
    HorizontalAlignment="Center" FontFamily="Segoe UI" Foreground="White" FontSize="11" TextAlignment="Center"
    Width="150" Margin="0" PreviewMouseDown="Page_PreviewMouseDown" PreviewStylusDown="Page_PreviewStylusDown"/>
    </Border>
    </Border>
    </StackPanel>
    </Border>
    </DataTemplate>
    Thanks and Regards, JohnnyWalker.

    Hello Johnny,
    Can you describe what do you mean by say this:
    "we can insert a thumbnail and dropped on to the add button which is on the left and right of the thumbnail"
    And also could you describe in which part you have problem?
    If you don't know how to add a image to your listviewitem, please try check VisualTreeHelper Class, use it to the specific element you need and then add the element, like a image to it.
    See a code sample about it:http://rachel53461.wordpress.com/2011/10/09/navigating-wpfs-visual-tree/
    And check for details from MSDN:http://msdn.microsoft.com/en-us/library/system.windows.media.visualtreehelper(v=vs.110).aspx
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Hi Barry, Sorry that was a typo. What i meant to say was we can insert a new thumbnail when the + button which are on either side of the thumbnail is clicked.
    There are two problems that i am facing.
    How do i do drag and drop by dropping on to the + buttons? Drag and drop should not work when one thumbnail is dropped on to the other. Multiple thumbnails can be selected and dragged and dropped to reorder. The + buttons should not be dragged nor
    selected.
     Dragging the last "add thumbnail" should not be possible. It has to be there always at the end. And user should not be able to select, reorder or delete it.
    I have a class which holds the thumbnail and i am setting the observable collection as the item source of the list view. i do not have any problem in showing the thumbnails.
    Thanks and Regards, JohnnyWalker.

  • How to Create a simple report with headers and repetitive details

    Hi All,
    I have been trying to do a report through PLD with a query that accept a parameter and has been saved into a Query category of the Query Manager. The Problem that i have encountered is that though i wish to have some of my fields into the Report's Page Header Area, i may not able to move it from Repetitive Area1 Area.
    I tried creating a field of database and tried linking it with Table but only the First Record details of my table gets displayed in that field irrespective of the parameters i provide.
    Thanks in Advance,
    Siju Dasan

    Hi Suda,
    The 'T0.' and 'T1.' can be avoided as you say...
    The resultset would contain same values for fields of Table1 and the different values of fields of Table2, which means the fields of table1 can be grouped and moved to the header and so it needn't be redundant in the report.
    just like resultset,
    T0.Field1  T0.Field2  T1.Field1  T1.Field2
    1              Henry       Item01     345
    1              Henry       Item02     112
    1              Henry       Item03     745
    As in this resultset above, you can see that fields of T0 that is Table1 can be grouped so that only Fields of T1 that is Table2 need be displayed in repetitive area.
    Thanks,
    Siju Dasan

  • How to create a dvd menu with lion and no idvd anymore??

    after working on 3 movies with final cut pro x i would like to put all 3 of them under a menu to start them seperately. i heard that idvd was an option...but is not anymore available for lion..
    thank you

    You can still purchase the retail disk version of iLife 11 which includes iDVD; it's available at several online resellers including Amazon and ebay. I purchased it because I wanted to be able to reinstall if necessary since there is absolutely no decent replacement for iDVD.
    http://www.lacomputercompany.com/cgi-bin/rpcart/index.cgi?command=listitems&type =group&group=soft
    http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES
    http://compare.ebay.com/like/390341831776?var=lv&ltyp=AllFixedPriceItemTypes&var =sbar
    (I see both iLife 11 and iLife 09 listed there - the older version should work as well since iDVD hasn't been upgraded since).

  • How to create several custom packaged kernels?

    Hi all,
    Yesterday I created my own kernel with makepkg and obtained a kernel-*.tar.gz package. After
    pacman -U kernel-*.tar.gz
    it replaced my old kernel image and (probably) libraries. I realize that this kind of action is a bit dangerous and it is preferrable to have several kernel images living happily next to each other, having lilo or grub for selecting between them.
    What should one do in order to get several packages with different kernel images so that they would not conflict?
    Thanks,
    Jan

    This was posted by orelien a little while ago.  I've adjusted it for my needs but here's the original.  It probably has to be modified to fit more of what the arch kernel looks like now.
    # $Id: PKGBUILD,v 1.20 2003/03/20 00:19:48 judd Exp $
    pkgextraver=-custom
    pkgname=kernel$pkgextraver
    pkgver=2.4.20
    pkgrel=1
    pkgdesc="The Linux Kernel"
    backup=('boot/kconfig-'$pkgver$pkgextraver)
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-$pkgver.tar.bz2
    config mkinitrd mkinitrd.conf linux-2.4.20-ptrace.patch)
    build() {
    kernel_version=$pkgver$pkgextraver
    rm -rf $startdir/pkg/*
    cd $startdir/src/linux-$pkgver
    patch -Np1 -i ../linux-2.4.20-ptrace.patch
    cp Makefile Makefile.backup
    sed "s/EXTRAVERSION =/EXTRAVERSION=$pkgextraver/" Makefile.backup > Makefile
    cp ../config ./.config
    yes "" | make config
    make dep clean bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot,bin}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    cp System.map $startdir/pkg/boot/System.map-$kernel_version
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz-$kernel_version
    # cp $startdir/src/nash $startdir/pkg/bin
    mkdir -p $startdir/pkg/usr/src/linux-$kernel_version/include
    cp -a include/linux $startdir/pkg/usr/src/linux-$kernel_version/include/
    cp -a include/asm-i386 $startdir/pkg/usr/src/linux-$kernel_version/include/
    cd $startdir/pkg/usr/src/linux-$kernel_version/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$kernel_version
    cd $startdir/pkg/lib/modules/$kernel_version &&
    (rm -f build; ln -sf /usr/src/linux-$kernel_version build)
    cd $startdir
    # ./mkinitrd -k "$pkgver" -o image
    install -D -m644 src/config $startdir/pkg/usr/src/linux-$kernel_version/.config
    install -D -m644 src/config $startdir/pkg/boot/kconfig-$kernel_version

  • How to create a pdf file with CS5

    Hello, I'm new to PhotoShop CS5 and haven't figured out yet (despite two hours of trying) how to create a pdf file with pictures and texts.  Can someone please help me with this ?  The "help" button in CS5 doesn't seem to cover this question.  Nor do the FAQs.
    Thank you very much.

    Save As... Photoshop PDF.

  • Creating a custom dictionary for Acrobat and Reader.

    I want to create a custom dictionary to be used by all of our users when they access a “forms document” through Adobe Reader/Acrobat.
    Here are some of the issues:
    The default dictionary name under Custom Dictionaries has a .clam extension.
    Is there a way to edit this?
    Does it contain the index settings for all the other added.txt and excluded.txt dictionary files?
    The Reader's default location is under a user’s LocalLow folder.
    C:\Users\PIN\ AppData\LocalLow\Adobe\Linguistics\Dictionaries\Adobe Custom Dictionary.
    The Acrobat default location is under the user's Roaming folder.
    C:\Users\PIN\ AppData\Roaming\Adobe\Linguistics\Dictionaries\Adobe Custom Dictionary\.
    This is buried under the users profile and we need to be able to update these files on all the user’s workstations prior to log on.
    This could be done by redirection of the new custom dictionary. What is the location of that setting in the registry?
    Is there is a way to append to the standard dictionary file so as not to replace any setting that a user may have made to the dictionary?
    Is this done to the .clam or .txt file outside of the Adobe Reader application?
    What is the “All” setting in the dictionary?
    Does that imply the program will look through all the dictionaries?
    Is there a way to create a new dictionary name that would appear under the preferences\spelling\dictionaries list. Is there an Index file that would point to a newly created Dictionary folder?

    Custom dictionaries must be created with a 3rd party program provided by Proximity (http://www.proximitytechnology.com/spell_correction.htm).
    The spelling support files are installed in this directory for all users (this is only the default)
    C:\Program Files\Adobe\<product>\Resource\Linguistics\Providers\Proximity
    File types include:
    ENV - eg: grmphon.env - the phonetic rule file for the spelling dictionary language. There is one of these “ENV” file for each language.
    CLX - eg: grm32.clx - a language related part of spelling dictionary. There is one of these “CLX” file for each language.
    LEX - eg: grm104.lex - an actual spelling dictionary. There may be several dictionaries for a given language, for example, grm104.lex, grm10401.lex.
    So the answer is:
    Create a custom dictionary with Proximity and use the Wizard or some other method to deploy the files in the correct location.
    Ben

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • How to create a custom function module with the records in SAP R/3?

    Hi All,
    How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
    Regards
    Sara

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • How to create a navigation bar with custom made buttons?

    I'm used to work with a similar program as Muse. In there we can create a single button and link them together into a navigation bar. I have tried all sorts of tutorials but none of them is discussing this possibility.
    To summorize. The idea is to create a button in photoshop and to use this as a theme to build a navigation bar. Possible or not and how? Thanks for assistance. Rgds Rufin

    Hi Brad,
    Thanks for your reply.
    No, not really. I used to work with XARA up till now. And being an Adobe Cloud user I think it a bit silly using two different systems. In XARA I can create a custom button and turn them into a navbar. For your information I include a few links to sites I created with Xara and I would like to know if I can create the same type of navbars with Abobe Muse. I already found out that all the other functions are available and some work a lot better in Muse, but I’m stuck on the navbar issue. I know I can create a button in Adobe PS and use it in Muse. But I didn’t manage to figure out how to create a navbar in Muse on basis of a button created in PS.
    www.restaurant-cedric.be or www.discoamigo.com or www.radioparadijs.be
    Grtz,
    Rufin
    LOGO-RUFIN'S-REISBUREAU-outlook
    Koningslaan 36 – b31
    8300 Knokke – Heist
    Tel: 050621052
    Fax: 050621072
    e-mail:  <mailto:[email protected]> [email protected]
    <http://www.rufins.be/> http://www.rufins.be
    <http://www.travelcoop.be/> travelcoop_logo_2013[1]  <http://ferventreisagent.be/rufins-reisbureau> klein logo
    Van: Brad Lawryk
    Verzonden: zondag 12 oktober 2014 19:40
    Aan: RUFIN DUWEL
    Onderwerp:  How to create a navigation bar with custom made buttons?
    How to create a navigation bar with custom made buttons?
    created by Brad Lawryk <https://forums.adobe.com/people/Brad+Lawryk>  in Help with using Adobe Muse CC - View the full discussion <https://forums.adobe.com/message/6817739#6817739>

Maybe you are looking for