Scroll bar :help for a newbie

Hello, I need some help to introduce scroll bar into my programs;
For example I have a JPanel in which I have to introduce a scroll bar when it's needed.
Can you help me please?

hi
JPanel jp = new JPanel();
JScrollPanel jsp = new JScrollPanel(jp);
getContentPane.add(jsp);

Similar Messages

  • Newbie needs scroll bar help

    Hello anyone,
    I am fairly new to flash, I am using the MX version. I am
    having trouble getting my scroll bars to load with the page load?
    The bar shows up, but it does not give the option to scroll. If I
    click off the page and return to it then the slider is there and it
    works, but not on initial load. I have tried to set the action
    script run on load but this has not worked. I am a little confused
    and any help would be greatly appriciated.
    Also as an aside issue, can you load images into a text
    box?

    am I on the right board for this type of question? I am not
    very knowledgable in action scripts, but I have been trough the
    tutorials and I bought the action scripts for dummies book, however
    I have done everything that they say to do and still can't get the
    bars to work right.
    any help or redirection for help somewhere else would be
    greatly appriciated.

  • My scrolling bar/slider for songs is missing on my iphone please help

    I call it a scrolling bar but it is the slider that can search through the different time points in a song or podcast. I listen to podcast a lot so I use the 30second back button when i need to write information down that I have heard. I also like to search through the podcast later for information. I noticed that the slider over the song being played has disappeared about a week ago after a physical sync to my macbook. I have been using 3.0 since it was introduced with my last year's 3G iphone. I cannot find any options that might have disabled this feature any help would be appreciated. I even tried a reset and resync & I am still missing the slider.
    Any help would be appreciated.
    D

    I'm having similar problems with my iTouch. It seems to be random when it appears and disappears for use. Since I do a lot of audio books, its something I use a lot to reset back in time when the phone distracts me for a bit.
    I do notice it has happened a lot more since I've purchased a clock for docking and listening by the bed.

  • Button & Scroll Bar Help

    Hello,
    I am making a website in flash and need some help with the
    actionscript,
    Firstly I have coded the drop down menu, its a little buggy
    but the main problem with it is the buttons will only work if its a
    get URL command rather than go to and stop.
    Secondly, I need some help coding the scroll bar if someone
    wouldn't mind offering a bit of help with that. I have just under 4
    days to get this finished, it’s for my final major project in
    college, and would you believe it our technician broke FLASH so I
    can't get help form my tutors.
    If some one could help I would be extremely grateful, thanks.
    Oh and here is a link to the flash file so you can have a
    look at the coding.
    http://www.breeze-studios.com/breezeflash.fla
    Also here is the publish bit so far so you can see what im
    going on about.
    http://www.breeze-studios.com/breezeflash.swf

    hi
    JPanel jp = new JPanel();
    JScrollPanel jsp = new JScrollPanel(jp);
    getContentPane.add(jsp);

  • Issue with Multithreading and vertical scroll bar - help needed to debug!!!

    I have been working on a desktop Visual Studio 2010 application for quite a few years. It is written in C++ and MFC. This code is a combination of code I have written and code I inherited. It worked great for years on Windows XP, but when I ported
    it to Windows 7, a tricky problem has come up that I am having the darnest time trying to figure out
    In summary, it is a single .exe desktop application. There is the main thread (thread A), which launches another thread (thread B). Both threads share a pointer to a single window object which displays events. This window also implements a vertical and horizontal
    scroll bar. 
    The interaction and message processing between the threads seems a little sticky to me. Both threads A and B call the same member function of the CWnd object. BUT, Thread B ALSO posts messages to thread A's queue.
    So, in thread B, you will see code like this, which makes a direct call to the output window object, AND THEN it also posts a message to Thread A's mainframe window like this...
    if( m_pEventLog )
    pOutputWindow->AddLine("Some test...");
    if( m_phNotifyWnd[RECEIVE] && m_puiEventWMsg[RECEIVE] ) {
    ::PostMessage( m_phNotifyWnd[RECEIVE], m_puiEventWMsg[RECEIVE], 0, (LPARAM) pPkt );
    WHEN thread A receives the message that thread B posted above, it only does the following:
    LRESULT CMainFrame::OnSocketReceive( WPARAM, LPARAM lParam )
    CSPkt* pPkt;
    CRWPkt* pRWPkt;
    CSPktSocket* pSocket;
    ULONG ulType;
    CString csTemp;
    CBSWords bsWords;
    CSSSWords sssWords;
    CRWPkt* pLoopBackRWMsg; // used if we have to send a loopback msg back to sender
    CLMsg lmsg;
    m_wndTextWindow.AddLine("Test message");
    return 0;
    So both threads are writing to the output window via the .AddLine() member function.
    void COutputWnd::AddLine( CString& strLine, COLORREF crColor )
    UpdateVScroll();
    return;
    And this function then makes a call to :UpdateVScroll().  The problem seems to arise because thread B does a
    post to thread A, where thread A in turn writes to the output window. Eventually, the program
    HANGS in the call to
    SetScrollInfo() below...
    void COutputWnd::UpdateVScroll()
    CSingleLock lock( &m_CSVertScrollLock ); // lock things up while we are in here
    BOOL bok = lock.Lock();
    if (lock.IsLocked() == TRUE)
    int iMax = m_FifoIndices.GetHighestIndex();
    if( iMax < ( m_iMaxViewableLines - 1 ) )
    iMax = 0;
    //SetScrollRange( SB_VERT, 0, iMax, FALSE );
    //SetScrollRange( SB_VERT, 0, 9, FALSE );
    SCROLLINFO scrollinfo;
    scrollinfo.cbSize = sizeof(SCROLLINFO);
    scrollinfo.fMask = SIF_RANGE;
    scrollinfo.nMin=0;
    scrollinfo.nMax= iMax;
    SetScrollInfo(SB_VERT, &scrollinfo, FALSE);
    lock.Unlock();
    It doesn't take long for the program to hang...maybe about 10 seconds. 
    When I hit DEBUG->BREAK ALL, I get the output below in the CALL STACK WINDOW.
    ntdll.dll!770070f4()
    [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
    user32.dll!76c0cde0()
    user32.dll!76c018d9()
    >
    mfc100d.dll!AfxInternalPumpMessage()  Line 153 + 0x13 bytes
    C++
    mfc100d.dll!CWinThread::PumpMessage()  Line 900
    C++
    mfc100d.dll!CWinThread::Run()  Line 629 + 0xd bytes
    C++
    mfc100d.dll!_AfxThreadEntry(void * pParam=0x0022f6a4)  Line 122 + 0x13 bytes
    C++
    msvcr100d.dll!_callthreadstartex()  Line 314 + 0xf bytes
    C
    msvcr100d.dll!_threadstartex(void * ptd=0x004f97c0)  Line 297
    C
    kernel32.dll!762cee1c()
    ntdll.dll!770237eb()
    ntdll.dll!770237be()
    NOTE: If I never make the call to SetScrollInfo(), the program never HANGS.
    Sooo....I am trying to determine if there is a fundamental issue with the way the threads are communicating that is causing the issue, or if maybe I have a memory overwrite. It always hangs in ::SetScrollInfo(), no matter what I comment and uncomment. This
    makes me think that scroll bat behavior is different in Windows 7 than on XP, but I have not been able to find any documentation about it. 
    Can anyone provide any insight as to what may be the cause of the program hanging>

    It might look like working but it will crash eventually. The windows are thread affine and other thread must never touch other threads windows. Sometimes you might get along but usually it just crashes.
    Thread B must use PostMessage ( or SendMessage if suncronous action is require) to thread A's windows to achieve correct updating. Some very basic calls are implemented directly with SendMessage so they are safe to use but then you must individually check
    which ones are safe.
    Also having multiple SendMessage calls from B to A require rendezvous which might cause other problems ( thread B stalls or program deadlocks, depending on other program structure).
    So PostMessage is the way to do it ( or create yourself another inter-thread mechanism, possible but usually too much troble)

  • Scroll Bar Help

    I've attached the code that I created for using a scroll bar.. When you click to scroll and go back up to the top it doesn't go all the way up to the top..It goes a few lines down still.  How can I adjust this to be correct?
    import caurina.transitions.*;
    laminatetxt_mc.mask = scrollmask_mc
    var yOffset:Number;
    var yMin:Number = 0;
    var yMax:Number = scrollbar_mc.track_mc.height - scrollbar_mc.handle_mc.height;
    scrollbar_mc.handle_mc.addEventListener(MouseEvent.MOUSE_DOWN, handleDown);
    stage.addEventListener(MouseEvent.MOUSE_UP, handleUp);
    function handleDown(e:MouseEvent):void
    stage.addEventListener(MouseEvent.MOUSE_MOVE, handleMove);
    yOffset = mouseY - scrollbar_mc.handle_mc.y;
    function handleUp(e:MouseEvent):void
    stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleMove);
    function handleMove(e:MouseEvent):void
    scrollbar_mc.handle_mc.y = mouseY - yOffset;
    if(scrollbar_mc.handle_mc.y <= yMin)
    scrollbar_mc.handle_mc.y = yMin;
    if(scrollbar_mc.handle_mc.y >= yMax)
       scrollbar_mc.handle_mc.y = yMax;
       var scrollpercent:Number = scrollbar_mc.handle_mc.y / yMax;
       Tweener.addTween(laminatetxt_mc, {y:(-scrollpercent*(laminatetxt_mc.height-scrollmask_mc.height)), time:1});
    e.updateAfterEvent();

    import caurina.transitions.*;
    laminatetxt_mc.mask = scrollmask_mc
    var yOffset:Number;
    var yMin:Number = 0;  // set minimum handle_mc y
    var yMax:Number = scrollbar_mc.track_mc.height - scrollbar_mc.handle_mc.height; // set max handle_mc.y
    scrollbar_mc.handle_mc.addEventListener(MouseEvent.MOUSE_DOWN, handleDown);
    stage.addEventListener(MouseEvent.MOUSE_UP, handleUp);
    function handleDown(e:MouseEvent):void
    stage.addEventListener(MouseEvent.MOUSE_MOVE, handleMove);
    yOffset = mouseY - scrollbar_mc.handle_mc.y;
    function handleUp(e:MouseEvent):void
    stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleMove);
    function handleMove(e:MouseEvent):void
    scrollbar_mc.handle_mc.y = mouseY - yOffset;
    if(scrollbar_mc.handle_mc.y <= yMin)
    scrollbar_mc.handle_mc.y = yMin;
    if(scrollbar_mc.handle_mc.y >= yMax)
       scrollbar_mc.handle_mc.y = yMax;
    var n:Number = scrollbar_mc.m*scrollbar_mc.handle_mc.y+scrollbar_mc.b;
       Tweener.addTween(laminatetxt_mc, {y:n, time:1});
    e.updateAfterEvent();
    // the following assigns the parameters needed to scroll correctly.
    paramF(scrollbar_mc,yMin,scrollmask_mc.y,yMax,scrollmask_mc.y-laminatetxt_mc.hei ght+scrollmask_mc.height);
    function paramF(mc:MovieClip,x1:Number,y1:Number,x2:Number,y2:Number):void{
        mc.m = (y1-y2)/(x1-x2);
        mc.b = y1 - mc.m*x1;

  • Swing (JScrollPane - scroll bar) help

    Hello all..
    I am new user in Swing. Currently I am developing a program using JSCrollPane. I have to draw a kind of chart in it. Therefore as a drawing media, I used the JPanel, in which I put it inside my JScrollPane. Then.. since my graphic is long.. then I set the
    setHorizontalScrollBarPolicy value to ALWAYS. Then I put my JPanel using the following commands :
    this.jScrollPane1.setViewportView(this.jPanel2);
    this.jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    Fyi, my JPanel size is set to be wider than the jScrollPane3 size. Nevertheless.. during the run time the horizontal scroll bar is not shown. I am completely loss on how to solve this. Does anyone has any clue or solution for this problem. Thank you very much in advance.
    Kariyage.

    Fyi, my JPanel size is set to be wider than the jScrollPane3 sizeYou should use panel.setPreferredSize(...) not panel.setSize(...);

  • MBP was hacked? Help for a Newbie.

    Hi everyone. I think my WEP was cracked and my MBP was hacked. WEP was cracked because the lock is gone. Tried to restart, sorry don't have access to router to restart that or confirm connections on that hardware. Connecting to MBP via airport. Have been in system preferences and attempted to re-connect with WEP passowrd. I've learned online that WEP2 is better, so lesson learned. If I post the netstat commands I ran would you be able to tell me if my system has been hacked? From my newbie knowledge of how to read netstat I thinkit was-  There have been connections to open port numbers in the 5000 range from which I have read online is an alert. Also, I do not recognize the ip addresses or hostnames and also I see files were sent and received. I've run Mac Scan trial version - but from my knowledge this does not confirm connections to my computer from an ulocked airport connection. Additionally, all of a sudden I have theDS_Store on my system, is this an indicator of a hack. Sorry guys and gals for all the Q's.If this is the incorrect forum for the question could you kindly point me to where I would ask this. Thanks for any help. JO

    Thanks people. I xed out some info I think is personal ip or isp - let me know if you needed this info. i called it my ip but maybe it is my isp - in any case, it starts with 192. Let me know also if i posted too much info.
    netstat - It's alot of info. on the internet I see amazon web servers is  Ec2 is this- and from what I read this is a way to transfer files.
    Today I closed all browsers, and ran netstst -n and netstat.
    as I noticed other times I ran and lookedup the ip address that they were browser tabs that I had opened (makes sense- it's reading what my computer is connected to).....
    Thanks guys.and if i was hacked should I take computer to genius bar or police?
    -  JO
    From today
    netstat -n
    Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
    tcp4       0   2119  XXXXXXXXX2.54750      74.125.224.181.443     ESTABLISHED
    tcp4       0      0  XXXXXXXXX2.54749      74.125.224.181.443     ESTABLISHED
    tcp4       0      0  XXXXXXXXX2.54748      74.125.224.189.443     ESTABLISHED
    tcp4       0    201  XXXXXXXXX2.54747      75.11XXXXXX.108.134.443      ESTABLISHED
    tcp4       0      0  XXXXXXXXX2.54745      199.47.217.177.443     ESTABLISHED
    tcp4       0      0  XXXXXXXXX2.54741      199.47.216.144.80      ESTABLISHED
    tcp4      37      0  XXXXXXXXX6.54707      107.20.249.252.443     CLOSE_WAIT
    tcp4      37      0  XXXXXXXXX6.54706      107.20.249.104.443     CLOSE_WAIT
    tcp4      37      0  XXXXXXXXX6.54705      199.47.216.172.443     CLOSE_WAIT
    tcp4      37      0  XXXXXXXXX6.54702      199.47.217.178.443     CLOSE_WAIT
    tcp4      37      0  10.0.1.6.54521         199.47.216.173.443     CLOSE_WAIT
    tcp4       0      0  127.0.0.1.26165        127.0.0.1.50379        ESTABLISHED
    tcp4       0      0  127.0.0.1.50379        127.0.0.1.26165        ESTABLISHED
    tcp4      37      0  10.0.1.6.49394         107.20.249.164.443     CLOSE_WAIT
    tcp4       0      0  XXXXXXXXX2.54743      69.58.188.38.443       TIME_WAIT
    tcp4       0      0  XXXXXXXXX2.54744      199.59.148.10.80       TIME_WAIT
    tcp4       0      0  XXXXXXXXX2.54742      69.58.188.38.443       TIME_WAIT
    tcp4       0      0  XXXXXXXXX2.54724      74.125.224.243.443     TIME_WAIT
    udp4       0      0  *.*                    *.*                   
    udp6       0      0  *.60916                *.*                   
    udp4       0      0  *.60916                *.*                   
    udp4       0      0  XXXXXXXXX2.123        *.*                   
    udp6       0      0  *.53780                *.*                   
    udp4       0      0  *.53780                *.*                   
    udp6       0      0  *.62813                *.*                   
    udp4       0      0  *.62813                *.*                   
    udp6       0      0  *.63440                *.*                   
    udp4       0      0  *.63440                *.*                   
    udp6       0      0  *.56188                *.*                   
    udp4       0      0  *.56188                *.*                   
    udp6       0      0  *.55626                *.*                   
    udp4       0      0  *.55626                *.*                   
    udp6       0      0  *.56269                *.*                   
    udp4       0      0  *.56269                *.*                   
    udp6       0      0  fe80::e2f8:47ff:.123   *.*                   
    udp4       0      0  *.*                    *.*                   
    udp4       0      0  *.17500                *.*                   
    udp4       0      0  127.0.0.1.123          *.*                   
    udp6       0      0  fe80::1%lo0.123        *.*                   
    udp6       0      0  ::1.123                *.*                   
    udp6       0      0  *.123                  *.*                   
    udp4       0      0  *.123                  *.*                   
    udp4       0      0  *.*                    *.*                   
    udp4       0      0  *.*                    *.*                   
    udp4       0      0  *.*                    *.*                   
    udp6       0      0  *.5353                 *.*                   
    udp4       0      0  *.5353                 *.*                   
    udp4       0      0  *.*                    *.*                   
    udp4       0      0  *.*                    *.*                   
    icm4       0      0  *.*                    *.*                   
    icm6       0      0  *.*                    *.*                   
    Active LOCAL (UNIX) domain sockets
    Address          Type   Recv-Q Send-Q            Inode             Conn             Refs          Nextref Addr
    ffffff80119bc700 stream      0      0                0 ffffff80119baa80                0                0 /var/run/mDNSResponder
    ffffff80119baa80 stream      0      0                0 ffffff80119bc700                0                0
    ffffff80119ba900 stream      0      0                0 ffffff80119bba40                0                0
    ffffff80119bba40 stream      0      0                0 ffffff80119ba900                0                0
    ffffff800d9c52c0 stream      0      0                0                0                0                0
    ffffff800d9c4600 stream      0      0                0 ffffff80119bad80                0                0 /var/run/mDNSResponder
    ffffff80119bad80 stream      0      0                0 ffffff800d9c4600                0                0
    ffffff800d9c5b00 stream      0      0                0 ffffff800c369d40                0                0 /var/run/mDNSResponder
    ffffff800c369d40 stream      0      0                0 ffffff800d9c5b00                0                0
    ffffff800c369c80 stream      0      0                0                0                0                0
    ffffff80119bcf40 stream      0      0                0 ffffff80119bce80                0                0 /.dbfseventsd
    ffffff80119bce80 stream      0      0                0 ffffff80119bcf40                0                0
    ffffff800d9c4000 stream      0      0 ffffff800fcd81f0                0                0                0 /.dbfseventsd
    ffffff800bda9540 stream      0      0                0 ffffff800d9c4fc0                0                0
    ffffff800d9c4fc0 stream      0      0                0 ffffff800bda9540                0                0
    ffffff800d9c4300 stream      0      0                0 ffffff800d9c4240                0                0 /tmp/launchd-95.uZCVf1/sock
    ffffff800d9c4240 stream      0      0                0 ffffff800d9c4300                0                0
    ffffff800d9c43c0 stream      0      0                0 ffffff800d9c4480                0                0
    ffffff800d9c4480 stream      0      0                0 ffffff800d9c43c0                0                0
    ffffff800d9c5140 stream      0      0                0 ffffff800d9c5080                0                0 /var/run/mDNSResponder
    ffffff800d9c5080 stream      0      0                0 ffffff800d9c5140                0                0
    ffffff800c36a100 stream      0      0                0 ffffff800bda9600                0                0 /var/run/mDNSResponder
    ffffff800bda9600 stream      0      0                0 ffffff800c36a100                0                0
    ffffff800c369bc0 stream      0      0                0 ffffff800bda9cc0                0                0 /var/tmp/launchd/sock
    ffffff800bda9cc0 stream      0      0                0 ffffff800c369bc0                0                0
    ffffff800c368840 stream      0      0                0 ffffff800d9c6940                0                0 /var/run/mDNSResponder
    ffffff800d9c6940 stream      0      0                0 ffffff800c368840                0                0
    ffffff800bdaa200 stream      0      0                0 ffffff800bdaa140                0                0 /var/run/mDNSResponder
    ffffff800bdaa140 stream      0      0                0 ffffff800bdaa200                0                0
    ffffff800d9c5e00 stream      0      0                0 ffffff800d9c5ec0                0                0 /var/run/usbmuxd
    ffffff800d9c5ec0 stream      0      0                0 ffffff800d9c5e00                0                0
    ffffff800d9c5f80 stream      0      0                0 ffffff800d9c6040                0                0 /var/run/mDNSResponder
    ffffff800d9c6040 stream      0      0                0 ffffff800d9c5f80                0                0
    ffffff800d9c6100 stream      0      0                0 ffffff800d9c61c0                0                0 /var/run/mDNSResponder
    ffffff800d9c61c0 stream      0      0                0 ffffff800d9c6100                0                0
    ffffff800d9c6280 stream      0      0                0 ffffff800d9c6340                0                0 /var/run/mDNSResponder
    ffffff800d9c6340 stream      0      0                0 ffffff800d9c6280                0                0
    ffffff800d9c6400 stream      0      0                0 ffffff800d9c64c0                0                0 /var/run/mDNSResponder
    ffffff800d9c64c0 stream      0      0                0 ffffff800d9c6400                0                0
    ffffff800c36ab80 stream      0      0                0 ffffff800bda9300                0                0 /var/run/mDNSResponder
    ffffff800bda9300 stream      0      0                0 ffffff800c36ab80                0                0
    ffffff800c36a1c0 stream      0      0                0 ffffff800c369140                0                0 /var/run/mDNSResponder
    ffffff800c369140 stream      0      0                0 ffffff800c36a1c0                0                0
    ffffff800d9c6700 stream      0      0                0 ffffff800d9c6880                0                0 /var/run/mDNSResponder
    ffffff800d9c6880 stream      0      0                0 ffffff800d9c6700                0                0
    ffffff800c368900 stream      0      0 ffffff800de9a550                0                0                0 /tmp/icssuis502
    ffffff800c3692c0 stream      0      0                0 ffffff800c369ec0                0                0 /var/run/mDNSResponder
    ffffff800c369ec0 stream      0      0                0 ffffff800c3692c0                0                0
    ffffff800d9c6e80 stream      0      0                0 ffffff800d9c6d00                0                0 /var/run/usbmuxd
    ffffff800d9c6d00 stream      0      0                0 ffffff800d9c6e80                0                0
    ffffff800c3683c0 stream      0      0                0 ffffff800c368540                0                0 /var/run/mDNSResponder
    ffffff800c368540 stream      0      0                0 ffffff800c3683c0                0                0
    ffffff800bdaa080 stream      0      0                0 ffffff800bda9d80                0                0 /var/run/mDNSResponder
    ffffff800bda9d80 stream      0      0                0 ffffff800bdaa080                0                0
    ffffff800bda9480 stream      0      0                0 ffffff800bda9780                0                0 /var/run/mDNSResponder
    ffffff800bda9780 stream      0      0                0 ffffff800bda9480                0                0
    ffffff800bda9000 stream      0      0                0 ffffff800c36a580                0                0
    ffffff800c36a580 stream      0      0                0 ffffff800bda9000                0                0
    ffffff800c36a280 stream      0      0                0 ffffff800c36ad00                0                0
    ffffff800c36ad00 stream      0      0                0 ffffff800c36a280                0                0
    ffffff800c36aa00 stream      0      0                0 ffffff800c36a880                0                0
    ffffff800c36a880 stream      0      0                0 ffffff800c36aa00                0                0
    ffffff800c369b00 stream      0      0                0 ffffff800c369500                0                0
    ffffff800c369500 stream      0      0                0 ffffff800c369b00                0                0
    ffffff800c369f80 stream      0      0 ffffff800d57f1f0                0                0                0 /tmp/launch-Uw8Fqt/org.x:0
    ffffff800c368cc0 stream      0      0 ffffff800d57f3e0                0                0                0 /tmp/launch-5PRrer/Listeners
    ffffff800c369680 stream      0      0 ffffff800d57f5d0                0                0                0 /tmp/launch-JsZCof/Render
    ffffff800c369080 stream      0      0 ffffff800d57fe88                0                0                0 /tmp/launchd-95.uZCVf1/sock
    ffffff800c369800 stream      0      0                0 ffffff800c369380                0                0
    ffffff800c369380 stream      0      0                0 ffffff800c369800                0                0
    ffffff800c368d80 stream      0      0                0 ffffff800c369440                0                0
    ffffff800c369440 stream      0      0                0 ffffff800c368d80                0                0
    ffffff800c368fc0 stream      0      0                0 ffffff800c369740                0                0
    ffffff800c369740 stream      0      0                0 ffffff800c368fc0                0                0
    ffffff800c36aac0 stream      0      0                0 ffffff800bdaa2c0                0                0
    ffffff800bdaa2c0 stream      0      0                0 ffffff800c36aac0                0                0
    ffffff800bdaa680 stream      0      0                0 ffffff800bda9b40                0                0
    ffffff800bda9b40 stream      0      0                0 ffffff800bdaa680                0                0
    ffffff800bda99c0 stream      0      0                0 ffffff800bda9240                0                0 /var/run/mDNSResponder
    ffffff800bda9240 stream      0      0                0 ffffff800bda99c0                0                0
    ffffff800bda96c0 stream      0      0                0 ffffff800c36a4c0                0                0
    ffffff800c36a4c0 stream      0      0                0 ffffff800bda96c0                0                0
    ffffff800c368e40 stream      0      0 ffffff800c57fc98                0                0                0 /var/run/pppconfd
    ffffff800c36a340 stream      0      0                0 ffffff800c36a400                0                0
    ffffff800c36a400 stream      0      0                0 ffffff800c36a340                0                0
    ffffff800c36a640 stream      0      0                0 ffffff800c36a700                0                0
    ffffff800c36a700 stream      0      0                0 ffffff800c36a640                0                0
    ffffff800c36adc0 stream      0      0                0 ffffff800c36ae80                0                0
    ffffff800c36ae80 stream      0      0                0 ffffff800c36adc0                0                0
    ffffff800bda90c0 stream      0      0                0 ffffff800bda9180                0                0
    ffffff800bda9180 stream      0      0                0 ffffff800bda90c0                0                0
    ffffff800bda9840 stream      0      0                0 ffffff800bda9900                0                0
    ffffff800bda9900 stream      0      0                0 ffffff800bda9840                0                0
    ffffff800bda9e40 stream      0      0                0 ffffff800bda9f00                0                0
    ffffff800bda9f00 stream      0      0                0 ffffff800bda9e40                0                0
    ffffff800bdaa800 stream      0      0                0 ffffff800bdaa740                0                0
    ffffff800bdaa740 stream      0      0                0 ffffff800bdaa800                0                0
    ffffff800bdaa8c0 stream      0      0                0 ffffff800bdaa980                0                0
    ffffff800bdaa980 stream      0      0                0 ffffff800bdaa8c0                0                0
    ffffff800bdaab00 stream      0      0                0 ffffff800bdaaa40                0                0 /var/tmp/launchd/sock
    ffffff800bdaaa40 stream      0      0                0 ffffff800bdaab00                0                0
    ffffff800bdaabc0 stream      0      0                0 ffffff800bdaac80                0                0
    ffffff800bdaac80 stream      0      0                0 ffffff800bdaabc0                0                0
    ffffff800bdaae00 stream      0      0                0 ffffff800bdaad40                0                0 /var/tmp/launchd/sock
    ffffff800bdaad40 stream      0      0                0 ffffff800bdaae00                0                0
    ffffff800bdaaf80 stream      0      0                0 ffffff800bdaaec0                0                0
    ffffff800bdaaec0 stream      0      0                0 ffffff800bdaaf80                0                0
    ffffff800bdab100 stream      0      0                0 ffffff800bdab040                0                0
    ffffff800bdab040 stream      0      0                0 ffffff800bdab100                0                0
    ffffff800bdab280 stream      0      0                0 ffffff800bdab1c0                0                0
    ffffff800bdab1c0 stream      0      0                0 ffffff800bdab280                0                0
    ffffff800bdab400 stream      0      0                0 ffffff800bdab340                0                0
    ffffff800bdab340 stream      0      0                0 ffffff800bdab400                0                0
    ffffff800bdab4c0 stream      0      0                0 ffffff800bdab580                0                0
    ffffff800bdab580 stream      0      0                0 ffffff800bdab4c0                0                0
    ffffff800bdab7c0 stream      0      0 ffffff800c110740                0                0                0 /var/tmp/launchd/sock
    ffffff800bdab880 stream      0      0 ffffff800c110930                0                0                0 /private/var/run/cupsd
    ffffff800bdab940 stream      0      0 ffffff800c110c18                0                0                0 /var/run/usbmuxd
    ffffff800bdabac0 stream      0      0 ffffff800c110e08                0                0                0 /var/run/asl_input
    ffffff800bdabb80 stream      0      0 ffffff800c110f00                0                0                0 /var/run/SCHelper
    ffffff800bdabc40 stream      0      0 ffffff800c0f6000                0                0                0 /var/run/vpncontrol.sock
    ffffff800bdabd00 stream      0      0 ffffff800c0f60f8                0                0                0 /private/var/run/printtool
    ffffff800bdabdc0 stream      0      0 ffffff800c0f61f0                0                0                0 /var/run/portmap.socket
    ffffff800bdabf40 stream      0      0 ffffff800c0f62e8                0                0                0 /var/run/mDNSResponder
    ffffff800bdabe80 stream      0      0 ffffff800c0f63e0                0                0                0 /var/run/com.apple.ActivityMonitor.socket
    ffffff80119bca00 dgram       0      0                0 ffffff80119bbd40 ffffff80119bbd40                0
    ffffff80119bbd40 dgram       0      0                0 ffffff80119bca00 ffffff80119bca00                0
    ffffff80119bb680 dgram       0      0                0 ffffff80119bc7c0 ffffff80119bc7c0                0
    ffffff80119bc7c0 dgram       0      0                0 ffffff80119bb680 ffffff80119bb680                0
    ffffff800d9c5980 dgram       0      0                0 ffffff800bda9fc0 ffffff800bda9fc0                0
    ffffff800bda9fc0 dgram       0      0                0 ffffff800d9c5980 ffffff800d9c5980                0
    ffffff800d9c6ac0 dgram       0      0                0 ffffff800d9c4cc0 ffffff800d9c4cc0                0
    ffffff800d9c4cc0 dgram       0      0                0 ffffff800d9c6ac0 ffffff800d9c6ac0                0
    ffffff800d9c4540 dgram       0      0                0 ffffff800d9c4f00 ffffff800d9c4f00                0
    ffffff800d9c4f00 dgram       0      0                0 ffffff800d9c4540 ffffff800d9c4540                0
    ffffff800d9c6580 dgram       0      0                0 ffffff800d9c6640 ffffff800d9c6640                0
    ffffff800d9c6640 dgram       0      0                0 ffffff800d9c6580 ffffff800d9c6580                0
    ffffff800c368180 dgram       0      0                0 ffffff800d9c6b80 ffffff800d9c6b80                0
    ffffff800d9c6b80 dgram       0      0                0 ffffff800c368180 ffffff800c368180                0
    ffffff800d9c6a00 dgram       0      0                0 ffffff800c368000 ffffff800c368000                0
    ffffff800c368000 dgram       0      0                0 ffffff800d9c6a00 ffffff800d9c6a00                0
    ffffff800c3686c0 dgram       0      0                0 ffffff800d9c6dc0 ffffff800d9c6dc0                0
    ffffff800d9c6dc0 dgram       0      0                0 ffffff800c3686c0 ffffff800c3686c0                0
    ffffff800c3689c0 dgram       0      0                0 ffffff800c368a80 ffffff800c368a80                0
    ffffff800c368a80 dgram       0      0                0 ffffff800c3689c0 ffffff800c3689c0                0
    ffffff800bda9c00 dgram       0      0                0 ffffff800bda9a80 ffffff800bda9a80                0
    ffffff800bda9a80 dgram       0      0                0 ffffff800bda9c00 ffffff800bda9c00                0
    ffffff800c3698c0 dgram       0      0                0 ffffff800c36a7c0 ffffff800c36a7c0                0
    ffffff800c36a7c0 dgram       0      0                0 ffffff800c3698c0 ffffff800c3698c0                0
    ffffff800c36af40 dgram       0      0                0 ffffff800c36a040 ffffff800c36a040                0
    ffffff800c36a040 dgram       0      0                0 ffffff800c36af40 ffffff800c36af40                0
    ffffff800bda93c0 dgram       0      0                0 ffffff800c36a940 ffffff800c36a940                0
    ffffff800c36a940 dgram       0      0                0 ffffff800bda93c0 ffffff800bda93c0                0
    ffffff800bdaa440 dgram       0      0                0 ffffff800bdaa500 ffffff800bdaa500                0
    ffffff800bdaa500 dgram       0      0                0 ffffff800bdaa440 ffffff800bdaa440                0
    ffffff800bdaba00 dgram       0      0 ffffff800c110d10                0                0                0 /var/run/syslog
    from today
    netstat
    Active Internet connections
    Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
    tcp4       0   2119  XXXXXXXXX.2.54746      lax02s01-in-f21..https ESTABLISHED
    tcp4       0    762  XXXXXXXXX.2.54745      v-d-1b.sjc.dropb.https ESTABLISHED
    tcp4       0      0  XXXXXXXXX.2.54741      sjc-not1.sjc.dro.http  ESTABLISHED
    tcp4      37      0  XXXXXXXXX.6.54707      ec2-107-20-249-2.https CLOSE_WAIT
    tcp4      37      0  XXXXXXXXX.6.54706      ec2-107-20-249-1.https CLOSE_WAIT
    tcp4      37      0  XXXXXXXXX.6.54705      v-client-1a.sjc..https CLOSE_WAIT
    tcp4      37      0  XXXXXXXXX.6.54702      199.47.217.178.https   CLOSE_WAIT
    tcp4      37      0  10.0.1.6.54521         v-client-2a.sjc..https CLOSE_WAIT
    tcp4       0      0  localhost.26165        localhost.50379        ESTABLISHED
    tcp4       0      0  localhost.50379        localhost.26165        ESTABLISHED
    tcp4      37      0  10.0.1.6.49394         ec2-107-20-249-1.https CLOSE_WAIT
    tcp4       0      0  XXXXXXXXX.2.54743      69.58.188.38.https     TIME_WAIT
    tcp4       0      0  XXXXXXXXX.2.54725      lax04s08-in-f19..https TIME_WAIT
    tcp4       0      0  XXXXXXXXX.2.54744      r-199-59-148-10..http  TIME_WAIT
    tcp4       0      0  XXXXXXXXX.2.54742      69.58.188.38.https     TIME_WAIT
    tcp4       0      0  XXXXXXXXX.2.54724      lax04s08-in-f19..https TIME_WAIT
    udp4       0      0  XXXXXXXXX.2.ntp        *.*                   
    udp6       0      0  *.53780                *.*                   
    udp4       0      0  *.53780                *.*                   
    udp6       0      0  *.62813                *.*                   
    udp4       0      0  *.62813                *.*                   
    udp6       0      0  *.63440                *.*                   
    udp4       0      0  *.63440                *.*                   
    udp6       0      0  *.56188                *.*                   
    udp4       0      0  *.56188                *.*                   
    udp6       0      0  *.55626                *.*                   
    udp4       0      0  *.55626                *.*                   
    udp6       0      0  *.56269                *.*                   
    udp4       0      0  *.56269                *.*                   
    udp6       0      0  sp.ntp                 *.*                   
    udp4       0      0  *.*                    *.*                   
    udp4       0      0  *.17500                *.*                   
    udp4       0      0  localhost.ntp          *.*                   
    udp6       0      0  localhost.ntp          *.*                   
    udp6       0      0  localhost.ntp          *.*                   
    udp6       0      0  *.ntp                  *.*                   
    udp4       0      0  *.ntp                  *.*                   
    udp4       0      0  *.*                    *.*                   
    udp4       0      0  *.*                    *.*                   
    udp4       0      0  *.*                    *.*                   
    udp6       0      0  *.mdns                 *.*                   
    udp4       0      0  *.mdns                 *.*                   
    udp4       0      0  *.*                    *.*                   
    udp4       0      0  *.*                    *.*                   
    icm4       0      0  *.*                    *.*                   
    icm6       0      0  *.*                    *.*                   
    Active LOCAL (UNIX) domain sockets
    Address          Type   Recv-Q Send-Q            Inode             Conn             Refs          Nextref Addr
    ffffff80119bba40 stream      0      0                0 ffffff80119ba900                0                0
    ffffff80119ba900 stream      0      0                0 ffffff80119bba40                0                0
    ffffff800d9c4180 stream      0      0                0 ffffff800c369a40                0                0 /var/tmp/launchd/sock
    ffffff800c369a40 stream      0      0                0 ffffff800d9c4180                0                0
    ffffff800c369200 stream      0      0                0 ffffff800d9c40c0                0                0
    ffffff800d9c40c0 stream      0      0                0 ffffff800c369200                0                0
    ffffff800c369980 stream      0      0                0 ffffff800d9c52c0                0                0 /private/var/run/cupsd
    ffffff800d9c52c0 stream      0      0                0 ffffff800c369980                0                0
    ffffff80119bc700 stream      0      0                0 ffffff80119baa80                0                0 /var/run/mDNSResponder
    ffffff80119baa80 stream      0      0                0 ffffff80119bc700                0                0
    ffffff800d9c4600 stream      0      0                0 ffffff80119bad80                0                0 /var/run/mDNSResponder
    ffffff80119bad80 stream      0      0                0 ffffff800d9c4600                0                0
    ffffff800d9c5b00 stream      0      0                0 ffffff800c369d40                0                0 /var/run/mDNSResponder
    ffffff800c369d40 stream      0      0                0 ffffff800d9c5b00                0                0
    ffffff800c369c80 stream      0      0                0                0                0                0
    ffffff80119bcf40 stream      0      0                0 ffffff80119bce80                0                0 /.dbfseventsd
    ffffff80119bce80 stream      0      0                0 ffffff80119bcf40                0                0
    ffffff800d9c4000 stream      0      0 ffffff800fcd81f0                0                0                0 /.dbfseventsd
    ffffff800bda9540 stream      0      0                0 ffffff800d9c4fc0                0                0
    ffffff800d9c4fc0 stream      0      0                0 ffffff800bda9540                0                0
    ffffff800d9c4300 stream      0      0                0 ffffff800d9c4240                0                0 /tmp/launchd-95.uZCVf1/sock
    ffffff800d9c4240 stream      0      0                0 ffffff800d9c4300                0                0
    ffffff800d9c43c0 stream      0      0                0 ffffff800d9c4480                0                0
    ffffff800d9c4480 stream      0      0                0 ffffff800d9c43c0                0                0
    ffffff800d9c5140 stream      0      0                0 ffffff800d9c5080                0                0 /var/run/mDNSResponder
    ffffff800d9c5080 stream      0      0                0 ffffff800d9c5140                0                0
    ffffff800c36a100 stream      0      0                0 ffffff800bda9600                0                0 /var/run/mDNSResponder
    ffffff800bda9600 stream      0      0                0 ffffff800c36a100                0                0
    ffffff800c369bc0 stream      0      0                0 ffffff800bda9cc0                0                0 /var/tmp/launchd/sock
    ffffff800bda9cc0 stream      0      0                0 ffffff800c369bc0                0                0
    ffffff800c368840 stream      0      0                0 ffffff800d9c6940                0                0 /var/run/mDNSResponder
    ffffff800d9c6940 stream      0      0                0 ffffff800c368840                0                0
    ffffff800bdaa200 stream      0      0                0 ffffff800bdaa140                0                0 /var/run/mDNSResponder
    ffffff800bdaa140 stream      0      0                0 ffffff800bdaa200                0                0
    ffffff800d9c5e00 stream      0      0                0 ffffff800d9c5ec0                0                0 /var/run/usbmuxd

  • Bit of help for a newbie please

    Hi,
    I'm bumbling my way through some Applescript for simply clicking some links on a webpage in Safari.
    I've used UI Browser to get me the link resource info however when cycling through the same page, every now and again, the group ID seems to change for the text link. I was wondering how I go about querying the group ID so I can possibly out in an if/then or other conditional statement.
    The activating code line is here:
    click static text "Click Here" of UI element "Click Here" of group 12 of UI element 1 of scroll area 1 of group 4 of window "Some Window Title"
    So in the above, I'm trying to get the 12 in the group 12 part of the statement.
    Any clues anyone.
    Thanks if you can help
    Martin

    One of the traps those new to Applescript fall into is resorting to UI scripting too early when it should be an absolute last resort. Applescript wasn't designed to drive the UI, its an inter-application communication facilitator. There is an alternative method available.
    Use "curl" from the shell to download the page source to a variable
    Parse out the urls you need
    Use getURL to go to activate the url(s).
    Copy this to your browser for the "curl" man page -> x-man-page://curl
    Here's a 2 line example script to get you started ->
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;">
    set foo to do shell script "/usr/bin/curl 'http://www.apple.com'"
    set bar to find text "<script src=\"(http://.&#42;)\" type=" in foo using "\\1" with all occurrences, regexp and string result
    </pre>
    This uses the [Satimage Scripting Addition|http://www.satimage.fr/software/en/downloads/downloadscompanionosaxen.html] to return the urls by using regular expressions to find them.

  • LCD/HDTV help for a newbie

    I am a longtime BB customer and am finally taking the HDTV plunge.  I have narrowed it down a bit to the Insignia NS-L37Q (32" is too small, 40" is too big) versus a Dynex DX-37L150A11.  I am not a cinephile so the basic features are fine with me and the price is right (I am a cheapskate).  It is a 37", 1080p LCD HDTV.  This is for basic TV, sports, DVD viewing.  Please indulge a few newbie questions. 
    1) The one small reservation I have is the Insignia's native contrast ratio at 1400:1 and brightness 500/cd/m2.  Should I be concerned that it isn't high enough?  I note the Dynex 37" in the same price range is 4000:1 but 450/cd/m2.
    2) I have DISH satellite but may switch to DirectTV but assume both are similar.  I assume I'll need a special HDTV box from them, correct?  And HDMI cable to connect from box to set?
    3) I have never bought a service plan in my life but am considering one for this.  The Insignia already comes with a 2 year warrenty and this extends it to 4 as I understand it.  Is $89 on a $549 LCD worth it?  I'll be ticked if a pixel goes out in the middle of the screen, but does "burn in" still even happen on these units?
    4) I run the DVD player through my stereo currently (because I am too cheap to buy home theatre sound) so would I just hook that up the same way through the audio inputs?  I understand it won't be digital or anything.
    5)  It has 3:2 inverse pulldown.  Is that good and why should I care?
    Any help from the experts here is greatly appreciated. 
    Solved!
    Go to Solution.

    I would recommend the Insignia, as both are Best Buy house brands but I've noticed better image quality and reliability with the Insignia's as opposed to the Dynex tv's.
    1)  While the Dynex has the better contrast ratio, the difference between 1400:1 and 4000:1 is not very staggering.  Disregard this comparison.  
    2)  Yes you will need a set-top-box from DirecTV, fortunately you can pick these boxes up at the store and can subscribe to your DirecTV account while you shop.
    3)  $89 for 2 years of peace of mind on an LCD tv is worth it, though I don't think it extends the contract to 4 years, rather, the service plan covers "normal wear and tear/heating issues/power surges", whereas the standard 2 year warranty only covers manufacturer's defective parts and labor.  $89 is fair, cheapskate or not.
    4)  Your DVD player setup will work fine, but consider getting a blu ray for next Christmas, you'll thank me later.  
    5)  Don't worry about this.
    I don't claim to be an expert, but I am an enthusiast, so any "experts" out there feel free to chime in and correct me if I may be wrong. 
    If you like posts that I make, be sure to click on the star underneath my name. Thanks!

  • Editing Help for a newbie.....Please be gentle..

    I am new to Photoshop CS3, in fact, new to photoshop entirely. I have been using MS Digital Image Pro and up until now it has worked for me.
    Here is my problem. I take a lot of pictures of coins. Sometimes I have to tilt the coin slightly to get a good rendition of the color. So at time the image is slightly oval.
    I can not figure out how to use a tool to outline the coin, cut it (or copy) and paste to another project. The part that I can't figure out is adjusting the circle marquee tool to the perimeter of the coin.
    Thank you for any help.

    OK, then...so my suggestion about scanning the coins is so worthless to you that it's not even worth commenting about?
    If so, so be it. I don't necessarily live and die by having my suggestions validated. Acknowledgment is kind of nice to see, though.
    If you insist on your current workflow, maybe you'd like to know this little trick:
    As you click-and-drag out an elliptical marquee, you're going to try to be pretty close to properly surrounding your coin, right? Well, before you let up on your mouse button to commit to the elliptical "marching ants" selection area, press and hold your space bar. This will allow you to drag your current marquee around the document window. Move it so it's closer to accurately surrounding your coin, then let up on the space barKEEPING YOUR MOUSE BUTTON DEPRESSEDand you can continue to resize the marquee. If you get close, but not exact (maybe your hand gets tired; I know mine does occasionally when doing this), go ahead and commit to the selection. Then you can use the Transform Selection function to fine tune it.
    Now, having said that, and knowing that you've remarked that you'll be doing a lot of this type of photography, it would seem to me that your efforts would be better served by figuring out a way to properly shoot the coins so that the circular distortion you have to correct for is eliminated. Since you say the reason you have to tilt the coins is to get a better capture of the color, my guess is that you need to focus your efforts on a better lighting scheme. Get the light correct, and you'll be able to shoot the coins straight-on, eliminating the circular distortion, and a whole lot of repetitive, finicky work in Photoshop.
    Invest the time, effort and experimentation up front, for dividends that will pay off later with every coin image you do.

  • Editing help for a newbie :) baby photo editing effect

    hello everyone Firtly im sorry if i am posting in totally the wrong area but its the first time i have been on the site so not too sure of my way around lol
    Im in desperate need of some help with photo editing in cs3.
    basically i have seen some baby photos someone i 'know' has taken where a lovely effect has been applied. I asked her how and this is what she said:
    'I create a fill layer of a shade of the middle tone of the sikin colour reduce the opacity, then add a texture mask to bring back a bit more of the features and paint it on the areas .. then just sharpen areas such as eyes nose and mouth .. and highlights to the corners of the eyes and centre of the mouth .. and then select high pass as a mask and that makes the image pop out a little bit'
    But being a newbie i have no idea how to do any of this!! lol i know my way around photo shop a bit but just afetr ANYONE who can help me step by step pretty pretty please?
    here are 2 examples of the images that use the effect incase that makes it easier for anyone to know what i mean lol (hope the links work)
    Thank you all in advance if you can help xx

    The description seems somewhat unclear in parts.
    'I create a fill layer of a shade of the middle tone of the sikin colour reduce the opacity, then add a texture mask to bring back a bit more of the features and paint it on the areas ..
    Nor sure what she means with »texture mask«, but possibly just applying heavy noise (Filter > Noise > Add Noise) on the Layer Mask.
    then just sharpen areas such as eyes nose and mouth ..
    One option is applying Filter > Sharpening > Unsharp Mask to a copy of the Smart Object and setting it to Blend Mode Luminance and painting on its Layer Mask.
    and highlights to the corners of the eyes and centre of the mouth ..
    This could be done with a Curves- or Levels Adjustment Layer.
    and then select high pass as a mask and that makes the image pop out a little bit'
    That seems more than a little unclear to me – making a Selection of a High Pass-result and using it as a Mask for what?
    One can use the High Pass Filter for sharpening.

  • Cake wrapper in photoshop cc (3d) - help for a newbie..

    Hi everyone, I'm looking to create a chocolate wrapper (please bear with me as I'm pretty new to PH 3d)  (like a cupcake wrapper for a box) in 3d using a zig zag path in illustrator and taking this into Photoshop and extruding the path. At the moment the path extrudes and the outside looks ok but the inside of the path is filled in and I'm unsure how to show though this to revel inside. Also I need to taper the bottom rather than keeping it rectangle, can anyone help. or point to something similar??
    lister
    PS CC 2014
    MAC

    OK, then...so my suggestion about scanning the coins is so worthless to you that it's not even worth commenting about?
    If so, so be it. I don't necessarily live and die by having my suggestions validated. Acknowledgment is kind of nice to see, though.
    If you insist on your current workflow, maybe you'd like to know this little trick:
    As you click-and-drag out an elliptical marquee, you're going to try to be pretty close to properly surrounding your coin, right? Well, before you let up on your mouse button to commit to the elliptical "marching ants" selection area, press and hold your space bar. This will allow you to drag your current marquee around the document window. Move it so it's closer to accurately surrounding your coin, then let up on the space barKEEPING YOUR MOUSE BUTTON DEPRESSEDand you can continue to resize the marquee. If you get close, but not exact (maybe your hand gets tired; I know mine does occasionally when doing this), go ahead and commit to the selection. Then you can use the Transform Selection function to fine tune it.
    Now, having said that, and knowing that you've remarked that you'll be doing a lot of this type of photography, it would seem to me that your efforts would be better served by figuring out a way to properly shoot the coins so that the circular distortion you have to correct for is eliminated. Since you say the reason you have to tilt the coins is to get a better capture of the color, my guess is that you need to focus your efforts on a better lighting scheme. Get the light correct, and you'll be able to shoot the coins straight-on, eliminating the circular distortion, and a whole lot of repetitive, finicky work in Photoshop.
    Invest the time, effort and experimentation up front, for dividends that will pay off later with every coin image you do.

  • Need help for a newbie problem

    I am VERY new to all this Java programming but have really started to enjoy it.
    I have two problems with my program that I can not find answers to.
    1. I am looking to find out why my code will not select the right answers when I select the first choice in the array. The answer that is delivered turns out to be the 3rd selection. The second and third selection work great, but the first selection always turns out with the thrid answer.
    2. I know I need to do better error checking on the user input. At this point I am only checking for correct integer input, but I dont know how to fix or avoid the error for when the user would mistakedly enter letters instead of numbers.
    Any hints?
    Code to follow... I hope...
    No gui allowed for this program.
    First time posting so I hope this works and I do it the right way...
    import java.text.DecimalFormat;      //To round to 2 decimal places for payment format.
    import java.io.*;                          //Allows User to input.
    public class Wk5JimP
         //classes for keyboard inputs from user
         public static InputStreamReader reader = new InputStreamReader (System.in);
         public static BufferedReader keyboard = new BufferedReader (reader);
         //main
         public static void main (String[] args) throws IOException
              //Variables
              DecimalFormat decimal = new DecimalFormat("#,##0.00");     //Makes the decimal format for the output
              int appAmount = 200000;                                             //approved loan amount
              short rPay = 0;                                                       //repayment option
              int ps;                                                                 //payment schedule switching variable.
              //Year array and variables
              int yTerm[] = {30, 15, 7,};                                        //Term of the loan in years array
              short rOller2 = 0;                                                  //looping variable for rolling the years
              short rOller3 = 0;                                                  //looping variable for rolling the years
              //Month array and variables
              int mTerm[] = {360, 180, 84,};                                   //Term of the loan in months array
              short rOller = 0;                                                  //looping variable for rolling the months
              short rOller1 = 0;                                                  //looping variable for rolling the months
              //Interest rate array and variables
              double iRate[] = {5.75, 5.50, 5.35,};                              //interest rate array
              int liRate = 0;                                                       //looping variable for interest rate
              int liRate1 = 0;                                                  //looping variable for interest rate
              // Payment array and variables
              double mPayment[] = {
                   ((appAmount*(iRate[0]/12/100))/(1-1/Math.pow((1+iRate[0]/12/100), mTerm[0]))),
                   ((appAmount*(iRate[1]/12/100))/(1-1/Math.pow((1+iRate[1]/12/100), mTerm[1]))),
                   ((appAmount*(iRate[2]/12/100))/(1-1/Math.pow((1+iRate[2]/12/100), mTerm[2])))
                                       };                                             //monthly payment array
              int lPay = 0;                                                       //looping variable for payment incrementation
              int lPay1 = 0;                                                       //looping variable for payment incrementation
              //Dollar amounts into decimal format of two places
              String fappAmount = decimal.format(appAmount);
              //Output to screen for header information
              System.out.println();
              System.out.println("Congratulations!");
              System.out.println("You are approved for a $" + fappAmount + " loan");
              System.out.println("The three repayment options are listed below.\n");
              System.out.println("-------------------------------------------------------------------------");
              System.out.println(" Repayment\t Loan\t\t   Term\t\t  Interest\t  Monthly");
              System.out.println("  Option\tAmount\t       Years   Months\t  Rate \t          Payment");
              System.out.println("-------------------------------------------------------------------------");
              //Begin repayment option loop for calculation
              while (rOller != 3)
                        // if else loop to second and third repayment options
                      if (rOller1 <= 2)
                           // for statement loops last repayment option
                           for (rPay = 1; rPay <=3; rPay++)
                                    {mPayment[lPay] = mPayment[lPay1++];
                                     yTerm[rOller2] = yTerm[rOller3++];
                                     mTerm[rOller] = mTerm[rOller1++];
                                     iRate[liRate] = iRate[liRate1++];
                                //Output to screen for numerical repayment option info
                              System.out.println("    " + rPay + "\t    $" + fappAmount + "\t\t " + yTerm[rOller2] + "\t" + mTerm[rOller] + "\t    " + decimal.format(iRate[liRate]) + "% \t$" + decimal.format(mPayment[lPay])+ "\n\n");
                        else
                             //begin payment option selection
                             System.out.println();
                             System.out.println("Which one of the payment schedules would you like to see?\n");
                             System.out.println("Please enter 1 or 2 or 3 to see the payment schedule\nor enter any other number to exit.");
                             ps = Integer.parseInt(keyboard.readLine());
                                  switch (ps)
                                            case 1:
                                                 System.out.println("\nOption #1\n");
                                                 paysched(yTerm[0], appAmount, iRate[0], mPayment[0]);
                                                 break;
                                            case 2:
                                                 System.out.println("\nOption #2\n\n");
                                                 paysched(yTerm[1], appAmount, iRate[1], mPayment[1]);
                                                 break;
                                            case 3:
                                                 System.out.println("\nOption #3\n\n");
                                                 paysched(yTerm[2], appAmount, iRate[2], mPayment[2]);
                                                 break;
                                            default:
                                                 System.out.println("Thank you!\n\n");
                                                 System.exit(0);
                                      }//end switch
                   }//end while
              }//end main
                             //payment schedule method
                             public static void paysched(int yTerm, int appAmount, double iRate, double mPayment) throws IOException
                             //Declare variables for looped calculations
                             DecimalFormat decimal = new DecimalFormat("#,##0.00");     //Makes the decimal format for the output
                             double balance = appAmount;
                             double monIRate = iRate / 12;
                             double iPay = 0;
                             double pPay = 0;
                             short pNum = 1;
                             short year = 1;
                             //Header Output to screen for payment schedule
                             System.out.println("-------------------------------------------------------------------------");
                             System.out.println("   Payment \t   Principle\tInterest\tTotal \t\tBalance");
                             System.out.println(" Year  Month\t   Payment\tPayment \tPayment \tRemaining");
                             System.out.println("-------------------------------------------------------------------------");
                             //Loop for shceduled payment calculation for all but the final year
                             do
                                       //Apply the payment
                                       iPay = balance * (monIRate /100);
                                       pPay = mPayment - iPay;
                                       balance = balance - pPay;
                                       //Output to screen for payment information
                                       System.out.println("   " +year+ " \t " +pNum+ " \t  $" +(decimal.format(pPay))+ "\t$" +(decimal.format(iPay))+ "\t      $" +(decimal.format(mPayment))+ "\t     $" +(decimal.format(balance)));
                                       pNum++;
                                       if (pNum % 13 == 0)
                                            System.out.println("Press enter to see the next year payments.");
                                            System.in.read();
                                            System.in.read();
                                            year++;
                                            pNum = 1;
                                            //Output to screen for payment schedule
                                            System.out.println("-------------------------------------------------------------------------");
                                            System.out.println("   Payment \t   Principle\tInterest\tTotal \t\tBalance");
                                            System.out.println(" Year  Month\t   Payment\tPayment \tPayment \tRemaining");
                                            System.out.println("-------------------------------------------------------------------------");
                                            } //end if
                                    } //end do
                             while(year < yTerm);
                             //Final Year calculations
                             do
                                       //Apply the payment
                                       iPay = balance * (monIRate /100);
                                       pPay = mPayment - iPay;
                                       balance = balance - pPay;
                                       //Output to screen for payment information
                                       System.out.println("   " +year+ " \t " +pNum+ " \t  $" +(decimal.format(pPay))+ "\t$" +(decimal.format(iPay))+ "\t      $" +(decimal.format(mPayment))+ "\t     $" +(decimal.format(balance)));
                                       pNum++;
                                       if (pNum % 13 == 0)
                                            System.out.println("Please press enter to select and view another payment schedule.");
                                            System.in.read();
                                            System.in.read();
                                            year++;
                                            } //end if
                                  }//end do
                             while(year < (yTerm+1));
                        }//end class
    }//end classThis is my first post so please be gentle...
    Thanks for any help!

    When you choose Java to solve the problems, you need to adapt to the power/strategies/methodology that java offers you, and thats the way for solving problems in Java.
    Why would you put the entire implementation for calculation inside main method? You could break down the program into smaller methods which could do the calculation bit and then call them in main method.
    Anyways the reason that it is calculating for term of 7 years is that
                           // for statement loops last repayment option
                           for (rPay = 1; rPay <=3; rPay++)
                                    {mPayment[lPay] = mPayment[lPay1++];
                                     yTerm[rOller2] = yTerm[rOller3++];You are changing the value of the array yTerm[ ]. Hence once the control is out of the for loop the value of y[0]=7,y[1]=7 and y[2]=7.
    Solution 1: mark yTerm as final.
    Solution 2: set yTerm[0], yTerm[1] back as 30,15 after the for loop.
                      if (rOller1 <= 2)
                           // for statement loops last repayment option
                           for (rPay = 1; rPay <=3; rPay++)
                                    {mPayment[lPay] = mPayment[lPay1++];
                                     yTerm[rOller2] = yTerm[rOller3++];
                                     mTerm[rOller] = mTerm[rOller1++];
                                     iRate[liRate] = iRate[liRate1++];
                                //Output to screen for numerical repayment option info
                              System.out.println("    " + rPay + "\t    $" + fappAmount + "\t\t " + yTerm[rOller2] + "\t" + mTerm[rOller] + "\t    " + decimal.format(iRate[liRate]) + "% \t$" + decimal.format(mPayment[lPay])+ "\n\n");
                           yTerm [0]=30;
                           yTerm [1]=15;
                              }Futher the issue is with monthly calculation of pay back amount in switch - case statement.
    As you have not provided what the problem is and what is the criteria for calculation of monthly interest or reducing the amount etc. Its not possible (at least for me) to tell you why it would run to negative. Mathematically that is the only thing possible,
    Step 1: make those changes in your code. Make changes required to claculate the balance.
    Step 2: Execute the new code and
    Step 3: Gimme the dukes.
    Cheers
    $

  • Aspect ratio help for a newbie?

    Hi Everyone,
    I've got a Sony DCR SR-32 camera (please don't laugh ) and shooting in its HQ mode, (9Mb/s) and 16:9 aspect ratio.
    I can import the footage into iMovie and make a movie with no problems. But I've just bought FCE and am struggling to get the footage imported at the correct 16:9 aspect ratio. After trawling the discussions I've tried the log and transfer method, and all the other relevant discussion on importing AVCHD files directly into FCE but no success (I get file opening error ?). So I'm bringing the footage into iMovie, exporting it from iMovie as an FCE XML file and opening that using PAL anamorphic or NTSC anamorphic Easy setups.
    Even so, I've got what looks like 16:9 video squeezed into a 4:3 aspect ratio with black boarders on either side padding it out back to the 16:9 size.
    I'd welcome any advice other than "get a new camera "

    Hi Tom, I seem to have a similar problem, not sure if you've seen this, but I have the new canon vixia hg 21 which is avchd and FCP 6 isn't recognizing it either. Using Imovie to recognize the files works fine, the problem is that when you export from imovie '08 into FCP via xml, it imports fine, but I also get the same display issue with the black bars surrounding the footage, only in the canvas. It appears fine in the viewer and in it's own sequence in the timeline. But when you mix the different camera footage together, the other being the Canon XH A1, it appears as a different aspect ratio??? What the?
    ANy help would be greatly appreciated!

Maybe you are looking for