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", _
"[email protected]")
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.

Similar Messages

  • How is this for a PC spec for home video editing?

    OK - we've decided to get the new PC now, focused around decent performance for video editing at home when we do it.   Any feedback on the below would be greatly appreciated.  I've tried to put in my "principles", but as you note I've highlighted some questions around these. 
    Principles
    * Decent computer for Home Video Editing - so when we do it want it to be reasonable from a performance point of view (not annoying).  Also want assurance for the video data that a single HDD crash won't mean lost data.
    * Hard Drive Configuration - Assume RAID 1 for data
    C: 500GB - Operating System (1 x 500GB)
    D: 500GB - Swap Area for O/S (1 x 500GB)
    E: RAID 1 Redundancy for Data ( 2 x 1TB )
    * 64 bit Windows 7 Pro
    * Questions re Principles
    Is it really worth having a separate drive (D: drive) for Swap?
    Is there any real need to have a drive F: (another one) for exports?  This is non-real time so it shouldn't be an issue should it?
    Any major improvement re moving say the C: drive to SSD? (or not worth the $$)
    SATA II versus SATA III drives? (I've assumed both are ok when picking)
    The Spec
    CPU - Intel Core i7 960 Processor LGA1366 3.2GHz 8MB Cache CPU 
    Motherboard - Gigabyte GA-X58A-UD3R X58+ICH10R QPI 6.4GT/s DDR3 2000 PCI-Ex16 SATAII SATA3 USB3.0 RAID GLAN ATX
    RAM - Kingston 12GB(3X4G) KIT 1333MHz(PC3-10600)
    Video Card - NVIDIA GTX560 - Gigabyte GTX560 OC 1G GDDR5 PCIE DualLink DVI  [?? matches motherboard / is this overkill ??]
    RAID Card - Adaptec AAR1220SA-SGL SATAII RAID0 1 JBOD/2 PORT/Low Profile/PCIEx1/OEM/No Cables [?? is this ok - seems cheap ??]
    HDD (non-RAID) - 2 x Western Digital 500G RE4 SATAII 7200rpm HDD 64MB Enterprise [?? only SATAII this is ok no??]
    Case - CoolerMaster RC-942-KKN1 HAF X 942 Black No PSU [?? is this overkill - just took someone recommendation here ??]
    Power Supply - Corsair HX-850 ATX Power Supply w 140mm Modular Cables [?? power ok?  again just took a recommendation ??]
    O/S - 64bit - Microsoft Windows 7 Pro 64bit OEM(Microsoft OEM Terms&condition apply)
    Note - I'm looking at the following local site re where to source if this assists: http://www.umart.com.au

    Greg (correct me if that's not correct!),
    You're spec. looks like a great start for what you are trying to do. I have a few comments, and also two questions!
    Comments:
    - Spec. generally looks fine
    - I particularly like your case and p/s choices!
    - For a home PC, you may consider bumping up your OS choice to Ultimate, which adds some nice multimedia capabilities
    - Regarding the D drive for swap (and I assume you mean Premiere Pro media cache and media cache database too) will definitely speed up aspects of Premiere Pro, but likely be unnoticeable for other home PC day to day use. Why not build out the system and decide then if you need the extra speed for Premiere Pro - it is so easy to add something like that later.
    - I'd vote no regarding a need for a F output drive for this system
    - Regarding your OS drive... Speed and responsiveness versus cost - what do you choose? This really is a personal choice. I will say that a 2x1TB RAID 0 OS boot array would probably be a bigger step up in performance than a similar priced SSD option and a 2xSSD (60 to 80GB) array will perform better than a single larger SSD.
    - Sata II vs Sata III - I have some of each now, and I would agree with other posters and articles on the Internet that say the often larger cache size on the Sata III models is more important than the Sata III interface. Keep going like you are going, with the assumption that both are OK.
    - finally, your CPU; personnaly, with the new lower cost pricing on the i7-970, I'd suggest you downgrade to a i7-950 and same some money or upgrade to the 32nm 6-core i7-970 CPU and jump to a significantly new level of performance and power per watt
    Questions:
    - what version of Premier Pro will you be running?
    - what will be your workflow (i.e. DV, Sony consumer AVCHD, Canon DSLR, etc.)?
    Cheers,
    Jim

  • How's this for service?

    I am overwhelmed by this one.
    I've been having the starting problems often talked about in these discussions with my 2.0 Core Duo MacBook. (i.e. Won't wake from sleep, random re-booting, abundant frustration...) and last night it plain stopped booting up. And, right before it seemed to commit suicide, I inserted my OSX install disc 1. Oh boy.
    So, today I took it to the Apple Store under warranty at 12:00. They agreed it was D.O.A. (Boots to solid white light, no further) and I left it in their good hands for 5-10 working days.
    They just called at 2:30 (2.5 hours after drop-off) and said that it lives and can be picked up. They replaced: Board, Logic, 2 GHz, with Heatsink. And to top it off, my information is all in tact.
    I love those guys!!

    Congratulations. That can be a very frightening situation and I'm really glad my Rev. A hasn't had any major problems like that. Still backing up though, just in case .

  • [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,
    [[email protected] pillow]$ cd /home/sl/abs/pillow/src/Pillow-2.3.0
    [[email protected] Pillow-2.3.0]$
    Changing permissions to 777 didn't help.

  • OK, I fed my mac a cup of coffee yesterday on Southwest Airlines yesterday and you know the rest of the story.  What should I do ?  It's an older pro with Tiger OS and this is my first attempt at using a forum to solve problems.

    Spilled a cup of coffee on my Macbook Pro.  Sure don't want to lose my stuff.  Any suggestions? It's an old Tiger OS

    Turn off the machine, remove the battery.
    Extract the hard drive and use a IDE/SATA to USB adapter, connect it to your new Mac setup with the same user named account and transfer your files off.
    http://eshop.macsales.com/installvideos/
    10.4 era issued machines have little value, not worth fixing, so dump it. Congrats on getting a nice long life out of it, it's rare to see that around here anymore.
    I don't think Migration or Setup Assistant is going to work for such a older machine, 10.4 to 10.7 leap is rather large, I wouldn't risk it, none of the 10.4 software will work in 10.7 anyway.
    So copy off files manually and do the best you can.
     Data recovery efforts explained
     Most commonly used backup methods explained

  • First attempt at Producer Consumer Architectu​re: continuous read and dynamicall​y update parameters​.

    Hello,
    I am currently working with two instruments; an Agilent E3646A and an NI 6212 BNC. My objective is to have the 6212 to be continuously taking measurements according to predefined parameters while the E3646A's parameters can be continuously updated. This simple instrument combination is intended to help me learn the necessarry achitecture; continuous measurement, dynamic output control, and more instruments will be added in the future.
    I've previously posted on a similar, but more complicated, setup (http://forums.ni.com/t5/Instrument-Control-GPIB-Se​rial/Split-second-lag-when-controlling-two-instrum​... and was advised to try the Producer Consumer Architecture. I've found relevant literature on the site (http://www.ni.com/white-paper/3023/en/, https://decibel.ni.com/content/docs/DOC-2431), searched the forums and constructed my own VI. While my first attempt at a Producer Consumer Architecture has resolved some of the issues I was having when I first posted on the subject, however, new issues have arisen with regard to reading and stopping the VI.
    I am currently able to run the VI and update the device parameters. Previously, I would get a freeze while the instrument was being updated and could not toggle parameters until it was done. This has been resolved although the read only updates when a parameter has been updated although it is outside of the event structure. Furthermore the Stop button does not work in any context. I've also gotten occasional errors regarding the Deqeue Element but the bulk of the trouble is Error -200279 "Attempted to read samples that are no longer available" at DAQmx Read. I realize that there is a problem in my Producer Loop but haven't been able to figure out how to resolve it.
    This is my first attempt at a Producer Consumer Architecture and already I can see that it is a powerful tool. I read as much as I could and looked at the relevant examples but expected to have some issues in the beginning. Would really appreciate any advice so I can take full advantage of the architecture.
    Hope to hear from you,
    Yusif Nurizade
    Solved!
    Go to Solution.
    Attachments:
    DCe3646A_DAQ6212_Prod_Con_4_13a_2014.vi ‏89 KB

    Jon,
    Thank you for the response and the suggestions.
    I created the Local Variable for the Stop Button and moved the original into its own Event Case. It is now able to stop VI execution although I get Warning -1073676294 which I understand to be the buffer issue. The warning says that this was incurred on VISA Open for the E3646A's Initialize VI which is outside both loops, however, which I don't understand.
    I tried increasing buffer size by decreasing the Number of Samples as per suggestions I found on NI forum threads. I've brought it down as low as 1 but the graph still only updates when an Event occurs and I keep getting the same buffer error. You suggested that the problem could be that they are in the same loop; does this mean that the DAQmx read should be outside both Producer and Consumer Loops or moved into the Consumer Loop? I found a couple of links ( http://forums.ni.com/t5/LabVIEW/Producer-Consumer-​Design-Pattern-DAQmx-Event-Structure/td-p/2744450 ,  http://forums.ni.com/t5/LabVIEW/Producer-Consumer-​Architecture/td-p/494883 -first response) on dealing with an Event Structure that my own VI is based. Alternatively, I found another link ( http://forums.ni.com/t5/LabVIEW/Producer-Consumer-​Design-Pattern-DAQmx-Event-Structure/td-p/2744450 - first response) on a DAQmx Read with an Event Structure that places the graph in the Consumer Loop.
    The core of my purpose in setting up this Producer Consumer Architecture is so that I could read continuously while the instrument parameters are updated dynamically so it's very important that I understand how this works. I am particularly struggling with how the Event Structure is controlling the While Loop's Execution.
    Hope to hear form you,
    Yusif Nurizade
    Attachments:
    DCe3646A_DAQ6212_Prod_Con_4_14a_2014_Edit_I.vi ‏90 KB

  • Why is my Apple ID being locked out every time I go to use it?  I haven't even attempted to log in for about 4 or 5 days, but today on my first attempt to do so, it said my account had been locked for security reasons.  This is the third time.

    I only sign in to iTunes' store about once a week or so.  But during each of my last 3 attempts (on different days, several days apart) on my first attempt to enter my password and hit submit, I am immediately told that my Apple account has been locked for security reasons and it wants to take me to a page to reset my 'forgotten' password.  I am using the CORRECT password.
    Perhaps someone else is trying to break into my account or is mis-entering theirs but my account should not be getting locked like this.  It is very frustrating to have to go through the reset password procedure each and every time I want to go into the store.  It seems to me that Apple really doesn't want me to buy any more apps from them as they keep refusing me entry into my own account, each and every time I have tried to use it, for the past few weeks.  I am not their best customer, but they aren't giving me much of a welcome invitation to become one, if I'm going to be treated like this.
    I just bought my iPhone 4 less than 2 months ago.  I paid extra money to upgrade early, just to get this phone because it was so highly recommended by everyone I spoke with in different stores (BestBuy and Verizon).  I even bought the 2 year upgrade to my Apple services in case I needed to ever call them, and so far I haven't had to, yet.  But I definitely will call them if this isn't straightened out.
    It looks like this other user could be tracked and an email could be sent to them from Apple to let them know what they are doing - trying to sign into the wrong account, and are locking somebody else out of their own account because of their error....and to remind them of their correct information or how to get it and to write it down or save it somewhere so they don't keep on doing this.
    I have seen literally DOZENS of other people in these discussions with exactly the same issue that I'm having so it is NOT an isolated incident, and it seems to be a growing problem as Apple's sales and user base continues to grow, so this problem is seriously needing to be addressed in some way, and soon, before they start losing new customers because of it.  If I was still within my original 14 day return period with this phone, I would definitely be returning it and buying an Android model because of how frustrating this is to me.  If my bank was doing this to me, I'd have already switched banks by now if they hadn't fixed it - just to give an example of how I feel about this.

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • I need advise and help with this problem . First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product . At the present time I'm having lots of problems with the router so I was looking in to

    I need advise and help with this problem .
    First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product .
    At the present time I'm having lots of problems with the router so I was looking in to some info , and come across one web site regarding : port forwarding , IP addresses .
    In my frustration , amongst lots of open web pages tutorials and other useless information , I come across innocent looking link and software to installed called Genieo , which suppose to help with any router .
    Software ask for permission to install , and about 30 % in , my instinct was telling me , there is something not right . I stop installation . Delete everything , look for any
    trace in Spotlight , Library . Nothing could be find .
    Now , every time I open Safari , Firefox or Chrome , it will open in my home page , but when I start looking for something in steed of Google page , there is
    ''search.genieo.com'' page acting like a Google . I try again to get raid of this but I can not find solution .
    With more research , again using genieo.com search eng. there is lots of articles and warnings . From that I learn do not use uninstall software , because doing this will install more things where it come from.
    I do have AppleCare support but its to late to phone them , so maybe there some people with knowledge , how to get this of my computer
    Any help is welcome , English is my learned language , you may notice this , so I'm not that quick with the respond

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • Hi, I use two email addresses within one account with gmx.  I created one account with the first email address now. How do I add the second one to this account? Now it looks like this. One account was opened with address A. I receive in this account email

    Hi, I use two email addresses within one account with gmx.
    I created one account with the first email address now. How do I add the second one to this account?
    Now it looks like this.
    One account was opened with address A.
    I receive in this account emails for address A and B.
    But I can only write and answer with address A.

    Hi Rudegar,
    Sorry for my late reply.
    It s not the amount of accounts I'm struggling with.
    When I create now for both email addresses one account, then I receive the same emails two times.
    That is not what I want.
    Because on gmx the two email addresses have the same inbox and outbox.
    E.g. I can login to my gmx account either with email A or B. It doesn't matter.
    Now I want to have the same on my ipad.
    One account with both email addresses.

  • My ipod wont let me buy apps etc... keeps saying this is the first time this device has been used and to sign in and answer security questions. I have had this account for years but cant remember the answer to the security questions. How can i fix it?

    My iPod touch wont let me buy anything, i've beem using this account for a couple of years and now it says that this is the first ime this id has been used on my device... it's not.... and to sign in and answer security questions. i cant remember the answers to the questions. How can i fix this without making a new account and losing all my stuff???

    From a Kappy  post
    The Three Best Alternatives for Security Questions and Rescue Mail
       1. Use Apple's Express Lane.
    Go to https://expresslane.apple.com ; click 'See all products and services' at the
    bottom of the page. In the next page click 'More Products and Services, then
    'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
    ID security questions' and click 'Continue'. Please be patient waiting for the return
    phone call. It will come in time depending on how heavily the servers are being hit.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • This is my first use of this program. How do I remove a page break? How do line up my drop down box along side the text box on the left of it? The drop down is for a multiple choice answer for the question to the left.

    This is my first use of this program. How do I remove a page break? How do line up my drop down box along side the text box on the left of it? The drop down is for a multiple choice answer for the question to the left of each drop down.

    See McAfee support to find out how to disable that McAfee feature - that isn't part of the normal Firefox installation.

  • I can't access iCloud, i keep getting a message to try again later. This is the first time i have tried to log into icloud. I  know my account is working, i want to access it from my macbook. I think its looking for my old icloud email, what to do?

    I can't access iCloud, i keep getting a message to try again later. This is the first time i have tried to log into icloud. I  know my account is working, i want to access it from my macbook. I think its looking for my old icloud email, what to do? I have a working apple id, i dont understand, could it be linked to an old account iD?

    Hi smccarrison,
    Thanks for visiting Apple Support Communities.
    You may find the steps in this article helpful with troubleshooting signing into iCloud:
    iCloud: Account troubleshooting
    http://support.apple.com/kb/TS3988
    All the best,
    Jeremy

  • Looking for a desktop replacement, how will this one fare?

    I think I settled on the one I am looking for...
    My price range is probably no more than 1300-1500.
    http://www.amazon.com/Toshiba-X875-Q7190-17-3-Inch-Diamond-Textured-Aluminum/dp/B00AY1FGYK /ref=sr_1_1?s=pc&ie=UTF8&qid=1368339116&sr=1-1&keywords=Toshiba+Qosmio
    Toshiba X875-Q7190
    How will this stand up to some moderate to heavy editing? I am new to the video editing world, coming from music production. I would mostly like to make simple youtube videos for man on the street stuff and work my way up to documentaries and the like, maybe around 45 mins in length or so with lots of graphics and stock footage. Will this be a good bargain for what I am looking for? I would rather it be overkill than get invested in the process of editing only to find out my computer cant cut it...
    Thanks a lot you guys I am always learning more when I come here!

    BTW...this is something I did recently which got me on this kick. I did it on my brothers Dell. I think it was a 17R if im not mistaken. It took it pretty well and rendering was about 2 hours for this 22min clip which is longer than I would have liked. But I didnt do any color correction or get to heavy into it, I was just learning the lay of the land for Pp.
    I will mainly be using AVCHD full 1080p from my Canon Vixia M500 and 1080p from my GoPro Hero 3 Black if that makes any difference...Thanks!
    heres the clip.
    http://www.youtube.com/watch?feature=player_embedded&v=aOcBxMftY9U

  • I have a new Macbook Air and for the last few days the fan had run continuously, this is the first time it has ever run, and now it won't stop, the fan starts up as soon as I turn it on. The computer is not hot.Any ideas on how I can fix this please ?

    I have a new Macbook Air, 6 months old, and for the last few days the fan had run continuously, this is the first time it has ever run, and now it won't stop, the fan starts up as soon as I turn it on and the computer seems to running more slowy.The computer is not hot but I am worried it may burn out,.Any ideas on how I can fix this please ?

    Hello dwb,
    Here is the screen shot, just the top half, there are another 10 pages, but I guess this should enough for you to have an idea of waht is going on, bit small I am afraid. No, I don't have any apps setup to run when I open my computer, the kernel, varies between 290 and 305 per cent ish.
    Would that PRAM thing help ? I think it may be the computer itself, well something inside, as this the first time that the fan has ever started running since I have this computer, even when I have 3 or 4 apps running.
    Thank you again for your advice,
    Regard,
    Beauty of Bath

  • I just created a slideshow dvd in imovie, and when I hit finalize it said that it would take 7 hours to finalize.  I've only had my macbook pro for 6 months, and this is the first imovie I've done...is this normal?  If not how can I speed up this process?

    I just created a slideshow dvd in imovie, and when I hit finalize it said that it would take 7 hours to finalize.  I've only had my macbook pro for 6 months, and this is the first imovie I've done...is this normal?  If not how can I speed up this process?  Thanks in advance for all of your help!

    Hi
    Time needed can depend on several things.
    • less than 5 GB free space on Start-up (Mac OS) hard disk = Redicolous long times AND a DVD that most probably will not work OK
    Medicine - I never go under 25GB free space
    • Use of strange file formats into iDVD - can force it to de-code first then re-encode - this can take long long times
    I use
    Video - StreamingDV as from miniDV tape Cameras - or QuickTime Movies Converted to StreamingDV
    Audio - .aiff 16-bit 48 kHz - (no .mp3, .wma etc)
    • Use of old Mac - My G4 600MHz took about 24 hour per hour movie. my dG5 - about 2 hours per hour (I use Pro Quality encoding)
    • Pro Quality encoding - takes about x2 to process a movie
    Yours Bengt W

Maybe you are looking for