[SOLVED]How to apply a patch- first attempt

I need to apply a patch to python2-pillow, which was kindly created by manisandro, to allow my HP Officejet 6700 scanner to work.  I'm following the directions at Patching in ABS.  I already have the python2-pillow package installed via pacman.  I generated the md5sum for the patch by copying and pasting the text into gedit and saving it locally as a .diff file.  I then ran md5sum on the file.  The following is a copy of my PKGBUILD:
# $Id: PKGBUILD 105239 2014-02-03 10:02:23Z heftig $
# Maintainer: Kyle Keen <[email protected]>
# Contributor: minder
pkgbase=python-pillow
pkgname=(python2-pillow)
pkgver=2.3.0
pkgrel=3
_appname=Pillow
_py2basever=2.7
_py3basever=3.3m
pkgdesc="Python Imaging Library (PIL) fork. Python3 version."
arch=('i686' 'x86_64')
url="http://python-imaging.github.io/"
license=('BSD')
makedepends=('python-setuptools' 'python2-setuptools' 'lcms' 'libwebp' 'tk' 'sane')
source=("http://pypi.python.org/packages/source/P/$_appname/$_appname-$pkgver.zip" "https://github.com/manisandro/Pillow/co … 37c43.diff")
md5sums=('56b6614499aacb7d6b5983c4914daea7' 'a0bcc91288508e1d572e89b8a074c215')
build() {
  cd "cd $srcdir/$pkgname-$pkgver"
  patch -p1 -i $srcdir/8324a9a3e08413423c8ade7fb02db7ace0637c43.diff
  cp -r "$srcdir/$_appname-$pkgver" "$srcdir/${_appname}2-$pkgver"
package_python-pillow() {
  depends=('python' 'lcms' 'libwebp')
  optdepends=('tk: for the ImageTK module'
              'sane: for the Sane module'
              'python-pyqt4: for the ImageQt module')
  cd "$srcdir/$_appname-$pkgver"
  python3 setup.py install --root="$pkgdir/" --optimize=0
  pushd Sane
    python3 setup.py install --root="$pkgdir/" --optimize=0
  popd
  install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -dm755 "$pkgdir/usr/include/python$_py3basever/"
  install -m644 -t "$pkgdir/usr/include/python$_py3basever/" libImaging/*.h
  # clean up bins
  cd "$pkgdir/usr/bin"
  for f in *.py; do
    mv "$f" "${f%.py}"
  done
package_python2-pillow() {
  pkgdesc="Python Imaging Library (PIL) fork. Python2 version."
  depends=('python2' 'lcms' 'libwebp')
  optdepends=('tk: for the ImageTK module'
              'sane: for the Sane module'
              'python2-pyqt4: for the ImageQt module')
  provides=('python-imaging' 'python2-imaging')
  conflicts=('python-imaging' 'python2-imaging')
  replaces=('python2-imaging')
  cd "$srcdir/${_appname}2-$pkgver"
  python2 setup.py install --root="$pkgdir/" --optimize=0
  pushd Sane
    python2 setup.py install --root="$pkgdir/" --optimize=0
  popd
  install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -dm755 "$pkgdir/usr/include/python$_py2basever/"
  install -m644 -t "$pkgdir/usr/include/python$_py2basever/" libImaging/*.h
  # clean up bins
  cd "$pkgdir/usr/bin"
  for f in *.py; do
    mv "$f" "${f%.py}2"
  done
When I run makepkg I get an error saying I am missing several dependancies: tk, python2-setuptools.  I don't get this error if I reinstall the package using pacman.  Shouldn't the dependancies be the same?  It also seems to be packaging python-pillow rather than python2-pillow.  Is there a way to fix this?
Thanks for any help.
Last edited by barronmo (2014-03-08 06:18:38)

Fixed checksum problem.  The makepkg had worked in part the the .diff file was in the source directory.  I ran md5 on that and it worked.  However, new problem:
==> Starting build()...
/home/sl/abs/pillow/PKGBUILD: line 21: cd: cd /home/sl/abs/pillow/src/Pillow-2.3.0: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...
However,
[sl@localhost pillow]$ cd /home/sl/abs/pillow/src/Pillow-2.3.0
[sl@localhost Pillow-2.3.0]$
Changing permissions to 777 didn't help.

Similar Messages

  • Documentation on how to apply critical patch updates

    Hi,
    Can anyone send me links to some good documentation on how to apply critical patch updates to 9i & 10g databases on both Windows & Linux?
    I'd like a step-by-step explanation, with detailed examples since this is the first time I'm going to do this.
    Thanks!

    Get the latest patch update reference number from Note:753340.1 , downlaod it (Metalink) and go through its README

  • How to apply Critical patch update

    Hi all,
    I want to kow how to apply Critical patch update of oct2009 in RHEL for oracle 9.2.0.8.

    user600286 wrote:
    Note 881382.1(section 5.8) states the terminal CPU for 9.2.0.8 will be CPUJul2010. The CPUOCT2009 can be downloaded for 9.2.0.8 as patch 8836758.
    Thanks for the correction. I may have seen an earlier revision.

  • How to apply signed patches to Studio 11 under Solaris 10?

    I'm running Solaris 10 6/06 on a Sun W2100z (x86_64) workstation. I have a long history of experience with Solaris, but I'm not terribly familiar with the things that are new or different with 10, including zones and the new patch management tools.
    I want to apply the latest patches to the various components of Studio 11, e.g. 120759-08,
    121018-04, etc. Since all the other patches I've applied (for other OS subsets) have been "signed" patches, I was hoping to stay consisent and apply signed patches to Studio 11 too. I've been foiled at every attempt, though, so I'm looking for some help.
    - if I use /usr/bin/updatemanager to select and attempt to apply the patches, I just get error
    messages saying that the patches could not be applied:
    121016-03 Sun Studio 11_x86: Patch for Sun C_x86 5.8 Compiler            Failed
    Utility used to install the update failed with exit code {0}.
    120762-02 Sun Studio 11_x86: Patch for Performance Analyzer Tools       Failed
    Install of update failed. Utility used to install the update is not able to add packages. Utility used to install the update failed with exit code 5.... and so on.
    - if I try using "smpatch" to add the patch, I get this error:
    $sudo smpatch add -i 120759-08
    add patch 120759-08
    Transition old-style patching.
    Patch 120759-08 failed to install due to a failure produced by pkgadd.
    pkgadd: ERROR: The package <SPROlang> is currently installed on the system in the
    global zone. To install the new instance of this package in the global
    zone only, you must specify the -G option. To install the new instance
    of this package in all zones you must first remove the existing instance
    of this package from the global zone first (via pkgrm) and then install
    the new instance of this package in all zones.
    pkgadd: ERROR: package <SPROlang> cannot be installed on this system/zone- if I try to use "patchadd" directly with the jar file in the current directory, I get this:
    $sudo patchadd 120759-08
    Validating patches...
    Loading patches installed on the system...
    Done!
    Loading patches requested to install.
    Done!
    Checking patches that you specified for installation.
    Done!
    Approved patches will be installed in this order:
    120759-08
    Verifying signed patch <120759-08>...
    Verifying digital signature for signer <es-signature>
    ERROR: Signature verification failed while verifying certificate <subject=Sun Microsystems Inc Root CA, issuer=GTE CyberTrust Root>:<unable to get local issuer certificate>.
    ERROR: Unable to verify signature for signer <es-signature>
    Signature invalid on signed patch <120759-08>.
    Patchadd is terminating.That's three strikes, and I'm out of ideas. Any suggestions for how one goes about applying signed patches for Studio 11? I'll switch to unsigned if I have to, but this seems like it shouldn't be this hard.
    Thanks,
    Tim

    I started a new thread on the updatemanager forum.
    http://forum.sun.com/jive/thread.jspa?threadID=107410
    I found that forum by googling for "updatemanager" and "zones", but
    I couldn't find any recent information on this issue. It seems the
    problem has been known about for a while now.
    --chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to apply CPU patch

    Hi...guys...
    I want to apply the CPU patch for 2-NODE RAC Database..
    Actually I never applied patches..plz can any one guide me how to apply the CPU patches for RAC...
    As per as my knowledge..
    1.apply the patch for clusterware.
    2.apply the patch for database level...
    is its right...
    Another thing is how to upgrade the 10.2.0.2 to 10.2.0.4 for RAC ...
    plz help me..

    Hi,
    you are right, clusterware always has to be on the same or higher patchlevel as/than the database so you will patch it first. Generally, the hardest part is finding the patch on metalink, once you have found it, there is a readme with every patch that has very detailed instructions on what to do. For CPUs and other patches, you will generally bring down services on one node, then run opatch on that node. Once it is done patching, it will tell you to restart all services on that first node and shut down services on the other node(s). Once you hit OK opatch will continue to patch the remote hosts.
    The upgrade to 10.2.0.4 will be a bit more complicated. AFAIR there is a real installer with that one and once you are done patching the software you also have to patch the database itself which means downtime.
    Bjoern

  • How to Apply PSU patch on GI home 11gr2?

    Hi,
    My databases is running on 11gR2 RAC ? I am not able to get notes for applying psu patch on Grid_HOME..
    GRID_HOME=11.2.0.2
    DB_Version=10.2.0.5
    do we need to stop RAC services on GRID_HOME?
    Please help us
    Thanks,

    Hi,
    Patch apply depends on the location where you need to apply Patch, like Grid Home or Oracle Home.
    If the patch is related to Oracle Home there is no need to stop any service for Grid Home.
    If patch is For grid Home then surely services will need to be stopped running from grid home.
    You will get better guidance from read me of the patch, and will request you to try to read it first.
    There is an article on otn will help you to wt to do and when.
    Regards
    Gaurav

  • How to apply Security Patch

    How do I apply the "DOS Attack" security patch for WLS 6.1 on Win2K
    Please help
    Thanks

    Balram,
    Put the jar file in the front of your classpath to apply the patch.
    Regards,
    Michael
    Stephane Kergozien wrote:
    Hi Balram,
    You will find security patches for WLS 6.1 in the following URL
    http://dev2dev.bea.com/index.jsp
    advisories and notifications Paragraph
    Regards
    Stephane
    Balram wrote:
    How do I apply the "DOS Attack" security patch for WLS 6.1 on Win2K
    Please help
    Thanks--
    Regards,
    Stephane Kergozien
    BEA Support--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • How to  apply O'patch

    Hi all,
        i want apply O'patch in my hp server, please let me know procedure for apply.
    in standard procedure, sap say's
    Ensure that the directory containing the opatch script appears in
    your $PATH; then enter the following command:
       % opatch apply
    How to done or how to check aboue lines.
    Regards,
    satish

    hello,
    this question is already answered in the Forum. There is also notes about it.
    On the left upper corner there is a box called "search", it is really easy to use, no kidding here.
    If you would have done so, you would have find the following thread:
    Re: How to install the oracle patch in the HP_ux server.
    or
    Re: O patch apply procedure in Hp-ux and IBM aix
    or the SAP Note 306408 OPatch: Oracle tool for patch installation.
    If you have oracle 10g, the explanation is also valid, but there is a note specific for it. Lets see if you are able to find it

  • How to apply exaile patch?

    i have an error trying to import the database
    some error about utf-8 unicode name
    i found this patch
    http://launchpadlibrarian.net/10569943/db.patch
    but i don't know how to apply it
    anyone know how?
    thanks

    just download the patch somewhere; e.g /tmp
    patch -i /tmp/db.patch /usr/lib/exaile/xl/db.py

  • How to apply AIA Patch using Opatch

    i have an oracle aia update patch...how can i apply this patch using Opatch.......cann any one say me the procedure of doing so....
    Quick reply is appreciated....
    Regards
    GSK

    To apply patches on top of AIA 10g you need a Standalone patch.
    In my case, i had to apply a patch on top of AIA 2.5 version.
    -I had to apply a Stand alone patch. The version used is stand alone opatch 11.1.0.0.0 . this can be downloaded from the oracle support site.
    -After applying the stand alone patch, you can apply the aia update patch. .
    - opatch apply -oh <AIA_HOME> -jre <SOA_HOME>/jre/1.4.2
         AIA_HOME - Complete directory path where AIA_HOME is installed
         SOA_HOME - Complete directory path where SOA is installed
    Follow the instructions given in the readme and should be able to do it.
    Hope this helps

  • How's this for a first attempt? Looking for feedback.

    I previously created a database in MS Excel for my Son's business.  It was "normalized" with lots of Application.Vlookup... commands building Listviews.  Everything was working fine until I upgraded my Office 2003 to Office 2010. 
    Since I got the 64-bit version of Office I can no longer use Treeview or Listview controls in Office forms.  Office will not allow both versions to be on the same computer.  So, I figured I'd convert the whole thing over to VB.NET.
    Anyway, I'm part of the way done with converting ONE of my userforms to VB.Net and I wanted to see if I was headed in the write direction or if I am moving toward a train wreck.
    I started with the Customers form because the table it connects too doesn't have any foreign keys.  The difficulties I ran into along the way were:
    trying to learn how to navigate through a dataset (used to be easy with the Recordset)
    Virtually all the references I found teach you to use the Wizard to connect to a database then drop it into a grid control.
    trying to populate the treeview control without being able to use "Keys".  This was an incredible nightmare.
    There were many other small hurdles along the way
    Oddly enough one of the most helpful books I found was for learning VB.NET 2005.  It was old enough so that the author made comparisons of .NET to VB6, highlighting the functionality lost with .NET.  Don't get me wrong, he wasn't bashing .NET but
    his book was where I discovered that the Treeview no longer uses "Keys".  I'm dreading the Listview struggle yet to come. </End Whining>
    Here is the form.  As it stands right now, the treeview on the left gets populated, when the user clicks on a node, the textboxes on the right are populated.
    Below is the Code I've written so far.
    Public Class frmCustomers
    Dim con As New OleDb.OleDbConnection
    Dim ds As New DataSet
    Dim da As OleDb.OleDbDataAdapter
    Dim inc As Integer
    Dim dbProvider As String
    Dim dbSource As String
    Dim sql As String
    Private Sub frmcustomers_load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    dbProvider = "PROVIDER=Microsoft.ACE.OLEDB.12.0;"
    dbSource = "Data Source = E:\TW DB Development\TWDB.accdb"
    con.ConnectionString = dbProvider & dbSource
    con.Open()
    sql = "SELECT * FROM Customers ORDER BY Customer_Name"
    da = New OleDb.OleDbDataAdapter(sql, con)
    da.Fill(ds, "Customer_List")
    con.Close()
    PopulateTreeview()
    End Sub
    Private Sub PopulateTreeview()
    Dim objLetterNode As TreeNode
    Dim objFirstNameNode As TreeNode
    Dim objCustomerTable As DataTable
    Dim iLastRecord As Integer
    Dim iRecordCount As Integer
    Dim sCustomerFullName As String
    Dim sCurrentAlpha As String
    Dim sCurrentFirstName As String
    Dim sNewAlpha As String
    Dim sNewFirstName As String
    objCustomerTable = ds.Tables("Customer_List")
    iLastRecord = objCustomerTable.Rows.Count - 1
    iRecordCount = 0
    ' Get Fullname, Firstname, and First Letter for first row of table
    sCustomerFullName = objCustomerTable.Rows(iRecordCount).Item("Customer_Name")
    sCurrentAlpha = FirstLetter(sCustomerFullName)
    sCurrentFirstName = GetFirstName(sCustomerFullName)
    tv.Nodes.Clear()
    ' Create Nodes for first letter, first name
    With tv.Nodes
    objLetterNode = .Add(sCurrentAlpha)
    With objLetterNode.Nodes
    objFirstNameNode = .Add(sCurrentFirstName)
    With objFirstNameNode.Nodes
    .Add(sCustomerFullName)
    End With
    End With
    End With
    ' Process remainder of table
    For iRecordCount = 1 To iLastRecord
    With tv.Nodes
    sCustomerFullName = objCustomerTable.Rows(iRecordCount).Item("Customer_Name")
    sNewAlpha = FirstLetter(sCustomerFullName)
    sNewFirstName = GetFirstName(sCustomerFullName)
    ' Is first letter the same
    If sNewAlpha = sCurrentAlpha Then
    ' Is first name the same
    With objLetterNode.Nodes
    If sNewFirstName = sCurrentFirstName Then
    With objFirstNameNode.Nodes
    .Add(sCustomerFullName)
    End With
    Else
    ' first name changed
    With objLetterNode.Nodes
    objFirstNameNode = .Add(sNewFirstName)
    With objFirstNameNode.Nodes
    .Add(sCustomerFullName)
    End With
    End With
    sCurrentFirstName = sNewFirstName
    End If
    End With
    Else
    ' first letter changed, therefore so did first name
    objLetterNode = .Add(sNewAlpha)
    sCurrentAlpha = sNewAlpha
    With objLetterNode.Nodes
    '.Add(sNewFirstName)
    objFirstNameNode = .Add(sNewFirstName)
    sCurrentFirstName = sNewFirstName
    With objFirstNameNode.Nodes
    .Add(sCustomerFullName)
    End With
    End With
    End If
    End With
    Next iRecordCount
    End Sub
    Private Function FirstLetter(str As String)
    ' Returns first letter of first name
    FirstLetter = Strings.Left(str, 1)
    End Function
    Private Function GetFirstName(str As String)
    ' Returns text before first space in fullname as First name
    GetFirstName = Strings.Left(str, Strings.InStr(str, " ") - 1)
    End Function
    Private Sub DisplayRow(r As DataRow)
    txtCustomerName.Text = r.Item("Customer_Name")
    txtAddressLine1.Text = r.Item("Address_Line_1")
    txtAddressLine2.Text = "" & r.Item("Address_Line_2")
    txtAddressLine3.Text = "" & r.Item("Address_Line_3")
    txtCountry.Text = "" & r.Item("Country")
    txtCity.Text = "" & r.Item("City")
    txtState.Text = "" & r.Item("Region")
    txtPostalCode.Text = "" & r.Item("Postal_Code")
    txtCustomerEmail.Text = "" & r.Item("email_Address")
    txtCustomerPhone.Text = "" & r.Item("Phone_Number")
    txtCustomerComments.Text = "" & r.Item("Comments")
    txtCustomerID.Text = r.Item("Customer_ID")
    End Sub
    Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
    Me.Close()
    End Sub
    Private Sub tv_AfterSelect(sender As Object, e As TreeViewEventArgs) Handles tv.AfterSelect
    Dim sNodeText As String
    Dim table As DataTable = ds.Tables("Customer_List")
    Dim dr As DataRow()
    sNodeText = tv.SelectedNode.Text
    dr = table.Select("Customer_Name = '" & sNodeText & "'")
    If dr.Length > 0 Then
    DisplayRow(dr(0))
    End If
    End Sub
    End Class
    Previously I could populate the treeview in whatever random order the records were in the table.  With the new treeview I had to devise a way to add, Letters, First Names, and Full Names all in sorted order.
    Thanks,
    Ken

    Thanks :).
    This is essentially a "local" database as only one person will access it at a time.  We are placing the file in an area where it can accessed from more than one computer, but never more than one at a time.
    To be honest I would use SQL Express (mainly to bring myself into the 21st century) if I wasn't already finding VB.NET so frustrating.
    Ken,
    I thought that I’d "give you a taste" of this alternate. It’s a long route, but you might want to consider it because
    everything you do is very much tailored to what you want it to do. As it stands right now, it’s very simple - too much so - but this might give you food for thought.
    If you want to pursue it, I’m happy to help.
    I set up the beginnings of a namespace that I’m calling “Ken”. The main class in that namespace is a class named “CustomerInfo”.
    It needs a LOT of embellishing, including the ability to disallow duplicate entries (we’d need to discuss just how it should detect a duplicate entry – it’s not as straightforward as you might think) and other things, but it’s a start and it’ll do ok for this
    example.
    Before I get started here, I have the project folder zipped up and uploaded for you. I hope you’ll download it and take a look
    at the code that it’s that namespace.
    I have that
    uploaded
    to my website here.
    You’ll see that it’s about 700 lines of code so far and I’d venture to say that by the time we finished, it would be many THOUSANDS
    of lines of code. I bring this up because I want to emphasize that it’s a lot of work - but - it would be all customized to do what you want and it would be reusable by simply adding the namespace into another program.
    All of this is based around your screenshot from a few days ago:
    I only have, so far, the ability to “Add” via a method in the main class named “AddNewCustomer” which is overloaded; that is,
    there are several implementations of it, varying in the parameters used. I’ll demonstrate some of them in the examples that follow shortly.
    When you open the project in Visual Studio you’ll be asked to convert it because I use a much older version than you have. Just
    follow the prompts and it should convert fine. Once that’s done, it should open to the code view of Form1:
    Option Strict On
    Option Explicit On
    Option Infer Off
    Public Class Form1
    Private customerList As New List(Of Ken.CustomerInfo)
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    ' Example01()
    ' Example02()
    ' Example03()
    ' Example04()
    ' Example05a()
    ' Example05b()
    ' Example05c()
    Stop
    End Sub
    End Class
    Hey, where are those subs??
    Actually I broke Form1 apart so that I could show you the start of it above, and I have the subs mentioned in a Partial Class
    Form1 (partial just means that it will compile as all one). I’ll step through each sub below and explain what it’s demonstrating:
    I have the “Address” set up somewhat special. I have it so that you can’t have a second address line unless there’s a first
    line and you can’t have a third address line unless there’s both a first AND a second line. I think you agree with that thinking?
    Example01 is a demonstration of just one single line for the address:
    Private Sub Example01()
    Try
    Ken.CustomerInfo.AddNewCustomer(customerList, _
    "ABC Hardware Company", _
    "123 Main Street", _
    Ken.CountryName.USA, _
    "Charleston", _
    "South Carolina", _
    "29412", _
    "8138992347")
    MessageBox.Show(customerList(0).ToString, _
    "Example01")
    Stop
    Catch ex As Exception
    MessageBox.Show("An exception was thrown:" & _
    vbCrLf & vbCrLf & ex.Message, _
    "Program Error", MessageBoxButtons.OK, _
    MessageBoxIcon.Warning)
    End Try
    End Sub
    Notice above that the parameters for the sub give you an idea about how it’s set up. This includes the use of an Enum (enumerator)
    for the country. This may or may not be a good idea, it really just depends on how many countries there could be. I have it currently set up with just three countries. I also have it set up for what I’m regarding “minimum required” – you’ll notice that there’s
    no place for the customer’s e-mail address or a comment. They are there though – set up as options (and I’ll demonstrate that in a bit also).
    Give thought about the countries to include, in particular questions about what the minimum required needs to be.
    For example, currently it REQUIRES a postal code. Do all of the countries you’ll be dealing with always have that? Further,
    the phone number MUST be ten (exactly ten) digits. For other countries maybe it should include the country code? Maybe some of them aren’t digits? I don’t know – but certainly you need to know this even if you stick with the database route.
    At any rate I had to start with some assumptions so that’s what I used.
    Example 2, below, shows using two lines for the address:
    Private Sub Example02()
    Try
    Ken.CustomerInfo.AddNewCustomer(customerList, _
    "ABC Hardware Company", _
    "123 Main Street", _
    "Building 'E'", _
    Ken.CountryName.USA, _
    "Charleston", _
    "South Carolina", _
    "29412", _
    "8138992347")
    MessageBox.Show(customerList(0).ToString, _
    "Example02")
    Stop
    Catch ex As Exception
    MessageBox.Show("An exception was thrown:" & _
    vbCrLf & vbCrLf & ex.Message, _
    "Program Error", MessageBoxButtons.OK, _
    MessageBoxIcon.Warning)
    End Try
    End Sub
    Example 3, below, shows using three lines for the address:
    Private Sub Example03()
    Try
    Ken.CustomerInfo.AddNewCustomer(customerList, _
    "ABC Hardware Company", _
    "123 Main Street", _
    "Building 'E'", _
    "Suite 4", _
    Ken.CountryName.USA, _
    "Charleston", _
    "South Carolina", _
    "29412", _
    "8138992347")
    MessageBox.Show(customerList(0).ToString, _
    "Example03")
    Stop
    Catch ex As Exception
    MessageBox.Show("An exception was thrown:" & _
    vbCrLf & vbCrLf & ex.Message, _
    "Program Error", MessageBoxButtons.OK, _
    MessageBoxIcon.Warning)
    End Try
    End Sub
    If you’re wondering about how all of those textual outputs shown in the MessageBox got formatted like that, look through the
    code of the namespace. Any “work” like that which the class can do, the class
    should
    do – that way it’s replicated when you reuse the class and it’s code that your form’s code doesn’t have to perform.
    Example 4, below, shows adding a comment BUT skipping the option for the e-mail:
    Private Sub Example04()
    Try
    Ken.CustomerInfo.AddNewCustomer(customerList, _
    "ABC Hardware Company", _
    "123 Main Street", _
    Ken.CountryName.USA, _
    "Charleston", _
    "South Carolina", _
    "29412", _
    "8138992347", _
    comments:="Customer pays slowly - be careful with credit!")
    MessageBox.Show(customerList(0).ToString, _
    "Example04")
    Stop
    Catch ex As Exception
    MessageBox.Show("An exception was thrown:" & _
    vbCrLf & vbCrLf & ex.Message, _
    "Program Error", MessageBoxButtons.OK, _
    MessageBoxIcon.Warning)
    End Try
    End Sub
    Note the use of “comments:=”
    in the code above. That’s a very handy way of selecting the options that you want and leaving the other options as they default to (all options have to have a default).
    Example 5a, below, shows what happens if the e-mail is used but it’s malformed:
    Private Sub Example05a()
    Try
    Ken.CustomerInfo.AddNewCustomer(customerList, _
    "ABC Hardware Company", _
    "123 Main Street", _
    Ken.CountryName.USA, _
    "Charleston", _
    "South Carolina", _
    "29412", _
    "8138992347", _
    "someone.com@somewhere")
    MessageBox.Show(customerList(0).ToString, _
    "Example05a")
    Stop
    Catch ex As Exception
    MessageBox.Show("An exception was thrown:" & _
    vbCrLf & vbCrLf & ex.Message, _
    "Program Error", MessageBoxButtons.OK, _
    MessageBoxIcon.Warning)
    End Try
    End Sub
    I am a strong advocate of data validation – on any and all levels that it can be done. Look at the code in the namespace to
    see how it was able to detect that what was entered wasn’t in correct format.
    Example 5b, below, shows entering the e-mail correctly:
    Private Sub Example05b()
    Try
    Ken.CustomerInfo.AddNewCustomer(customerList, _
    "ABC Hardware Company", _
    "123 Main Street", _
    Ken.CountryName.USA, _
    "Charleston", _
    "South Carolina", _
    "29412", _
    "8138992347", _
    "[email protected]")
    MessageBox.Show(customerList(0).ToString, _
    "Example05b")
    Stop
    Catch ex As Exception
    MessageBox.Show("An exception was thrown:" & _
    vbCrLf & vbCrLf & ex.Message, _
    "Program Error", MessageBoxButtons.OK, _
    MessageBoxIcon.Warning)
    End Try
    End Sub
    Lastly, example 5c, below, shows entering both a comment and an e-mail address:
    Private Sub Example05c()
    Try
    Ken.CustomerInfo.AddNewCustomer(customerList, _
    "ABC Hardware Company", _
    "123 Main Street", _
    Ken.CountryName.USA, _
    "Charleston", _
    "South Carolina", _
    "29412", _
    "8138992347", _
    "[email protected]", _
    "Customer pays slowly - be careful with credit!")
    MessageBox.Show(customerList(0).ToString, _
    "Example05c")
    Stop
    Catch ex As Exception
    MessageBox.Show("An exception was thrown:" & _
    vbCrLf & vbCrLf & ex.Message, _
    "Program Error", MessageBoxButtons.OK, _
    MessageBoxIcon.Warning)
    End Try
    End Sub
    Try it out. Download the project folder, let VS convert it and run it. Try entering something invalid in, for example, characters
    in the phone number, things like that. It needs a lot of improvement, but this might give you an idea of what I mean by “customized to what you want it to be”.
    For instance, your TreeView – have one or more methods in the class to build that and hand you (the consumer of the class) back
    the data to use to be able to quickly generate the TreeView showing anything you want it to show, any way you want it to show it.
    That’s the power of all of this.
    Also do know that “database or classes” isn’t accurate; they’re not mutually exclusive and in fact, most really involved programs
    which use a database back-end have many classes right along with it.
    Food for thought and I hope you found this helpful. :)
    Still lost in code, just at a little higher level.

  • How to apply Oracle patch when physical standby database in place

    Dear All,
    I want to apply Oracle patchset 8 on 10.2.0.5 when physical standby database in place. What are the steps for Primary site and for standby site.
    Thanks in advance
    Kamran Laeeq

    Hi Kamran,
    You will not upgrade or patch the standby database by importing offline redologs. On the contrary, there is a procedure to do this. Please note that you will not transitiate the role from standby to primary or startup the database. You will just startup the database by executing "startup mount" and "startup upgrade", during the upgrade. It means that you will not change database role standby to primary and you will be able to continue to the log shipment after the respective upgrade.
    But, it is very important that you should stop the log shipment and apply all the offline redologs, before the upgrade. Technically, you can import offline redologs after the upgrade, by changing "compatibility" parameter in oracle, but regarding to my experiences it may cause some problems after you transitiate the role from standby to primary.
    In short;
    In order to stop log shipment, at the primary site;
    alter system set log_archive_dest_state_2=defer;
    In order to import all the offline redologs without a delay, at the standby site;
    alter database recover managed standby database cancel;
    alter database recover managed standby database nodelay disconnect from session;
    I hope that I clarified the issue,
    Best regards,
    Orkun Gedik

  • How to apply Bundle Patch in Rolling Mode for 2 Node RAC

    Hi Guys,
    I have a 2 node RAC environment (11.2.0.3) where each node has there own local Grid_home and RDBMS_home.
    I am installing a Rolling Bundle Patch with OPatch in this environment. The installation document says that "The order of patching in RAC install is GRID_HOME, then RDBMS_HOME" so i did the following.
    1. stopped all oracle related services on node1
    2. set oracle_home=<Grid_home>
    3. applied the opatch
    4. opatch succeeded on node1 and it says "The node 'NODE2' will be patched next... Is the node ready for patching? y
    Here i am bit confused.
    1. Should i shutdown the oracle services in Node2 and continue to patch the Grid_home ? If yes then the DB will be completely down for user access. This defeats the purpose of rolling mode which says there is no downtime.
    2. Should i patch the RDBMS_home on node1 , start all the oracle services on node1 , stop the oracle services on node2 and then resume the opatch on node1 which is waiting to patch the Grid_home on node2 ?
    Please advice.
    Thanks,
    Ashok Kumar.G

    Hi Sebastian,
    14613223 patch install instruction did not mention about opatch -local option.
    Here is what i followed and completed the installation successfully.
    1. Shutdown all oracle services on node 1
    2. applied opatch for grid home and then rdbms home using "opatch apply -local" on node1
    3. Started all oracle services on node 1
    4. Shutdown all oracle services on node 2
    5. applied opatch for gridhome and then rdbms home using "opatch apply -local" on node 2
    6. Started all oracle services on node 2
    7. executed post installation steps on the DB (@catwinbundle.sql & @utlrp.sql )
    Thanks,
    Ashok Kumar.G

  • How to Apply the Patches to the StandAlone SAP WebDisp ?

    Hello Everybody!!
    We have SAP WebDisp Installed through SAPinst > StandAlone Engines > SAP WebDisp with Kernel 700 and patch level 73.
    I just found today that SAP has put sapwebdisp_122-20000961.SAR just yesterday i.e. 07-31-2007. So, How Do I upgrade my existing SAP WebDisp which is up and running with two other SAP WebDisp ( we have os level N/W load Balancer which eliminates the need of  zoning for these three SAP WebDisp.) on
    the Linux Platform ?
    Just as we do it in case of kernel upgrade, I simply overwrite the existing /...exe file post backup ? or there's more to it.. theres' not much resources regarding the
    STANDALONE SAP WEB DISP , EVERYTHING OUT THERE IS SAP WEB DISP ON THE EXISTING SAP SYSTEM ..In our case, all we have in the linux box is standalone SAP WebDisp and no other SAP component.
    Any useful input would be highly appreciated in terms of gratitude and reward point as well.
    Thanks,
    -Ishan

    Hi Ishan,
    To update Web Dispatcher you would need to just replace the following 4 files:
    sapwebdisp, icman, icmon, icmbnd with the new version.  Please download the latest kernel version and extract it.
    SAP Note 19466 will enable you to download the latest kernel release.
    Regards,
    Abhishek

  • [solved] How-To apply lxappearance Look&Feel for qpdfview?

    Hello,
    as the title says: I wonder if there is a way to get the configured lxappearance Look & Feel for the qpdfview pdf-viewer.
    I'd also write some code if necessary but I'm don't know where I should start…
    Help is as always appreciated. :-)
    Thanks in advance!
    Cheers,
    domac
    Last edited by domac (2012-08-16 16:29:29)

    Hello!
    You just need to install "libgnomeui". This package (or some of it dependencies... I never "investigated" what exactly happens) provides what is necessary to make Qt applications use the GTK theme. Probably it is going to work right after the installation. If not, try to logoff/login or restart the computer. And, as a "last resort" (it should not be necessary), change the Qt settings, on "qtconfig", to make it use the GTK+ Gui Style.
    I hope this have worked. Anything else, just ask!

Maybe you are looking for

  • Microsoft Remote Desktop fails connecting to a 4k Laptop from a MacBook Pro Retina Display

    Hi there I'm struggling because I'm trying to use my MacBook Pro Retina display to connect to a Lenovo Laptop that has a higher resolution. The RDC simple does not work and when it does, the scale is too big to do something and gets disconnected in m

  • Print page to page

    Hello I am using visual studio 10 with crystal report13, I have a report with two details, the result of each print are two sheets, The problem is that I have 26,000 records, and the details (B) result in 52,000 records that are displayed correctly i

  • Adding Third-Party Classes

    Hello, I have a bunch of third party classes that I wish to use as javac complies... Where do I place these files and what format do they have to be in (i.e. a folder or a jar file)? Thank you!

  • IC Winclient : BDD

    Hi guys I created a new Context menu by copying the standard one CASETUP , I added one Object Business agreement to my zcontext menu and attached the context menu to the IC WINCLIENT PROFILE .  when I am running the Transaction CIC0 and searching wit

  • Illustrator CC 2014 action no longer works

    I have been using an Illustrator action to change a spot color object to another spot color. My procedure is to paste 2 squares with the "old color" and "new color" defined in the attributes of each square. When recording the action I select Object >