Trick to using clickwheel

This is embarassing. I just got my first nano and I'm having trouble using the clickwheel.
Are there any tricks I should know, and does having the nano in a protective case make it easier or harder?

Cases usually make it harder to use the wheel;
Just remember, clockwise = down, counterclockwise= up
If you hold down "menu" for a second, you'll go back to main menu, and if you tap it, you'll back go backwards by one menu.
Hold fast forward to go thru a song in small increments, or tap it to skip; likewise, use rewind the same way.
Use center button to select stuff; when you're listening to a song, tap it once to display song time, which you can scroll thru to access a point very quickly. Tap again for album art, tap a 3rd time for your rating.
Also, hold down menu and center button for "restart" if anything happens to the Nano (it freezes). This gets rid of most problems.
Whew, that should cover it. Hope it helps!

Similar Messages

  • I am new to mac please help me basic tips an trick to use mac

    i am new to mac please help me basic tips an trick to use mac its very frustrating for any thing i have to call apple help line
    any acesserious to macbook air 13 like any silicon case or carry case or some acesserious
    i have delete contains of master folder of phothos still i can see phothos in my mac so how can i delete it

    Apple has a site for new users. Use it. Also, David Pogue is an excellent tech writer who has penned a series called the Missing Manual. I assume you've come to the Mac from the Windows world and he's written one especially for switchers. I've linked to the version for Mavericks (10.9) but if you have an earlier version of the Mac OS he's written a similar book for them as well.

  • Any tricks to use PL/SQL types in object attributes?

    I guess this is a bit of a newbie-question, but I haven't been able to find any workarounds elsewhere, so please bear with me... I'm far from new to object orientation, but I'm rather new to Oracle's object features.
    I was wondering if there's some trick you can use to keep references to attributes of PL/SQL types even though they are not allowed in object types (as these are "SQL", yes I do think I understand). I was thinking there might be some way you could cast them to some data type that is supported in SQL and then get them back by the reverse process when you need them in the PL/SQL inside the methods?
    In the concrete case, I would like to keep a reference to a utl_smtp connection in my object. It doesn't matter that the reference would be meaningless in other sessions etc. (actually I may not even want to store the objects in any persistent table - it's the polymorphism I'm after):
    CREATE OR REPLACE TYPE o_test AS OBJECT (
    att1 NUMBER,
    att2 sys.utl_smtp.connection
    - which of course give me:
    LINE/COL ERROR
    0/0     PL/SQL: Compilation unit analysis terminated
    3/12     PLS-00329: schema-level type has illegal reference to
         SYS.UTL_SMTP
    The problem becomes rather dull since I can't pass the connection record as a parameter to methods either.
    The only workaround I could think of was to keep the connection as a global variable in a PL/SQL package and then get it from there inside the methods. Of course this can be refined using an index by table and some object unique id to support multiple objects with their separate connections. But it still seems rather clumbsy - especially given that what I was looking for was the elegance of polymorphism.
    Any tricks I don't know of?
    I'm working in Oracle 10gR2.
    best regards,
    Jakob
    Edited by: schmidt on Mar 21, 2011 10:52 PM

    The UTL_SMTP Connection record is not too complicated, and can be easily translated into SQL object types. Add a package to aid in conversion between SQL and PLSQL, and voila!
    create or replace type o_utl_tcp_connection is object (
         remote_host     VARCHAR2(255),
         remote_port     INTEGER,
         local_host     VARCHAR2(255),
         local_port     INTEGER,
         charset          VARCHAR2(30),
         newline          VARCHAR2(2),
         tx_timeout     INTEGER,
         private_sd     INTEGER
    define     typeOf_SQL_BOOLEAN     = 'number'
    define     SQL_BOOLEAN          = '&typeOf_SQL_BOOLEAN(1)'
    define     SQL_TRUE          = 1
    define     SQL_FALSE          = 0
    create or replace type o_utl_smtp_connection is object (
         host          VARCHAR2(255),          -- remote host name
         port          INTEGER,          -- remote port number
         tx_timeout     INTEGER,          -- Transfer time out (in seconds)
         private_tcp_con o_utl_tcp_connection,     -- private, for implementation use
         private_state     INTEGER,          -- private, for implementation use
         -- Optionally, encapsulate all UTL_SMTP package calls behind object methods
         member procedure open(
              self                    IN OUT NOCOPY     o_utl_smtp_connection,
              host                    IN          VARCHAR2,
              port                    IN          INTEGER DEFAULT 25,
              tx_timeout               IN          INTEGER DEFAULT NULL,
              wallet_path               IN          VARCHAR2 DEFAULT NULL,
              wallet_password               IN          VARCHAR2 DEFAULT NULL,
              secure_connection_before_smtp     IN          &typeOf_SQL_BOOLEAN DEFAULT &SQL_FALSE
         member procedure writeData(
              self                    IN OUT NOCOPY     o_utl_smtp_connection,
              data                    IN          VARCHAR2 CHARACTER SET ANY_CS
    create or replace type body o_utl_smtp_connection is
         member procedure open(
              self                    IN OUT NOCOPY     o_utl_smtp_connection,
              host                    IN          VARCHAR2,
              port                    IN          INTEGER DEFAULT 25,
              tx_timeout               IN          INTEGER DEFAULT NULL,
              wallet_path               IN          VARCHAR2 DEFAULT NULL,
              wallet_password               IN          VARCHAR2 DEFAULT NULL,
              secure_connection_before_smtp     IN          &typeOf_SQL_BOOLEAN DEFAULT &SQL_FALSE
         is
         begin
              self := SMTP_UTILS.toSqlConnection(SYS.UTL_SMTP.Open_Connection(
                        host
                   ,     port
                   ,     tx_timeout
                   ,     wallet_path
                   ,     wallet_password
                   ,     nvl(secure_connection_before_smtp = &SQL_TRUE, false)
         end;
         member procedure writeData(
              self                    IN OUT NOCOPY     o_utl_smtp_connection,
              data                    IN          VARCHAR2 CHARACTER SET ANY_CS
         is
              conn     SYS.UTL_SMTP.Connection          := SMTP_UTILS.toPlSqlConnection(self);
         begin
              begin
                   SYS.UTL_SMTP.Write_Data(conn, data);
                   self := SMTP_UTILS.toSqlConnection(conn);
              exception
              when others then
                   self := SMTP_UTILS.toSqlConnection(conn);
                   raise;
              end;
         end;
    end;
    create or replace type o_test is object (
         attr1          number,
         attr2          o_utl_smtp_connection,
         member procedure doSomethingWithConnection
    create or replace package SMTP_UTILS
    is
         function toPLSQLConnection(aConnection in o_utl_smtp_connection)
         return SYS.UTL_SMTP.Connection;
         function toSQLConnection(aConnection in SYS.UTL_SMTP.Connection)
         return o_utl_smtp_connection;
    end;
    create or replace package body SMTP_UTILS
    is
         function toPLSQLConnection(aConnection in o_utl_smtp_connection)
         return SYS.UTL_SMTP.Connection
         is
              result     SYS.UTL_SMTP.Connection;
         begin
              result.host                    := aConnection.host;
              result.port                    := aConnection.port;
              result.tx_timeout               := aConnection.tx_timeout;
              result.private_state               := aConnection.private_state;
              result.private_tcp_con.remote_host     := aConnection.private_tcp_con.remote_host;
              result.private_tcp_con.remote_port     := aConnection.private_tcp_con.remote_port;
              result.private_tcp_con.local_host     := aConnection.private_tcp_con.local_host;
              result.private_tcp_con.local_port     := aConnection.private_tcp_con.local_port;
              result.private_tcp_con.charset          := aConnection.private_tcp_con.charset;
              result.private_tcp_con.newline          := aConnection.private_tcp_con.newline;
              result.private_tcp_con.tx_timeout     := aConnection.private_tcp_con.tx_timeout;
              result.private_tcp_con.private_sd     := aConnection.private_tcp_con.private_sd;
              return     result;
         end;
         function toSQLConnection(aConnection in SYS.UTL_SMTP.Connection)
         return o_utl_smtp_connection
         is
              result     o_utl_smtp_connection;
         begin
              result.host                    := aConnection.host;
              result.port                    := aConnection.port;
              result.tx_timeout               := aConnection.tx_timeout;
              result.private_state               := aConnection.private_state;
              result.private_tcp_con.remote_host     := aConnection.private_tcp_con.remote_host;
              result.private_tcp_con.remote_port     := aConnection.private_tcp_con.remote_port;
              result.private_tcp_con.local_host     := aConnection.private_tcp_con.local_host;
              result.private_tcp_con.local_port     := aConnection.private_tcp_con.local_port;
              result.private_tcp_con.charset          := aConnection.private_tcp_con.charset;
              result.private_tcp_con.newline          := aConnection.private_tcp_con.newline;
              result.private_tcp_con.tx_timeout     := aConnection.private_tcp_con.tx_timeout;
              result.private_tcp_con.private_sd     := aConnection.private_tcp_con.private_sd;
              return     result;
         end;
    end;
    create or replace type body o_test is
         member procedure doSomethingWithConnection
         is
         begin
              -- Make SMTP calls thru connection object methods
              self.attr2.open();
         end;
    end;
    /Hope it helps.
    Gerard
    Edited by: gaverill on May 17, 2011 3:02 PM - formatted code

  • Why is the response time when using clickwheel...

    I've bought a new 60gb video and, in comparison to my 20gb 3rd generation, the response time when using the clickwheel (next track/pause/play/bak track) is annoyingly long on start-up. And the display takes seconds to catch up with what's playing sometimes freezing with half of the one 'page' showing and half of another. Should I expect this because of the larger capacity/more complex iPod?
    Also, in an earlier post I noted that when the iPod first fires up, tracks seem to stop and start - just for a second or so, 3 or 4 times within the first 15 seconds. It's not the track on iTunes as it never happens on my 3g.
    Dell   Windows XP  

    Definately sounds like a faulty harddrive.
    You could always try restoring it with the most recent updater, and reloading everything - kind of like a fragmented harddrive, I am noticing better performance since I last wiped it clean and relaoded it (due to another error - actually)....

  • NI-DAQ 6008USB: any trick to use PGA also for RSE inputs?

    I'm using a NI-6008.
    The sensor that I'm using, give me 0..1.5V in output and it's powered by
    +5V of the 6008 so it share the same GND with 6008:
    +5V
    [SENSOR] -----out----> >--AI0
    | >--GND
    --- GND
    In this scenario, must I configure input as RSE input?
    (DAQmx_Val_RSE in NI-DAQmx) or I can configure input as differential
    input (DAQmx_Val_Diff in NI-DAQmx)?
    But, so doing, I can't use PGA to achieve full scale, since Gain=1 when
    RSE inputs are used.
    Is there any trick to force use of PGA also with RSE inputs?
    Thanks in advance

    If you are using 4 AI channels or less and you're using the same ground all around, you can operate in differential mode and ground the - terminal and connect your measurement to the + terminal.  This will allow for the use of the internal amplifier which will give you a higher effective resolution. 

  • Is there a trick to using the center of the click wheel on my ipod nano 5th generation?

    I just bought a used (only 5 hrs playtime) from someone and I cannot get the center of the click wheel to pick up my touch very well...it takes forever to scroll thru and its frustrating! Is it normal for it to be that difficult to use or do I just need to get used to it?

    It is not normal, there is something wrong with the click wheel.

  • Another trick of using array and getpixel

    Hi,
    this is my reference to get Median 5 x 5px (Horizontal and Vertical Diverence Value)
    this is my code,.
    public static int[] limitMed(Bitmap myBmp)
    //Input: Bitmap 68 x 68px (Grayscale)
    //Output: Array of Median 5 x 5px (Horizontal and Vertical Diverence Value) - Just like the picture
    //Ignore 2px to each sides (i just need 64 x 64px inside)
    int[] myValue = new int[(myBmp.Width - 4) * (myBmp.Height - 4)];//Array for Output Value
    int[] tempHValue = new int[20];//Array for Horizontal Diverence Value
    int[] tempVValue = new int[20];//Array for Vertical Diverence Value
    int countV = 0;// Count Value
    for (int j = 2; j < myBmp.Height - 2; j++)//Ignore 2px top and bottom side
    for (int i = 2; i < myBmp.Width - 2; i++)//Ignore 2px left and right side
    int countHT = 0;
    for (int y = j - 2; y <= j + 2; y++)
    for (int x = i - 2; x < i + 2; x++)
    Color myClr1 = myBmp.GetPixel(x, y);
    Color myClr2 = myBmp.GetPixel(x + 1, y);
    tempHValue[countHT] = Math.Abs(myClr1.R - myClr2.R);//Get horizontal diverence value
    countHT++;
    List<int> listH = new List<int>(tempHValue);//Add horizontal diverence value to List
    int countVT = 0;
    for (int y = i - 2; y <= i + 2; y++)
    for (int x = j - 2; x < j + 2; x++)
    Color myClr1 = myBmp.GetPixel(y, x);
    Color myClr2 = myBmp.GetPixel(y, x + 1);
    tempVValue[countVT] = Math.Abs(myClr1.R - myClr2.R);//Get vertical diverence value
    countVT++;
    List<int> listV = new List<int>(tempVValue);//Add vertical diverence value to List
    var result = listH.Concat(listV);//Combine Lists
    List<int> resultList = result.ToList();
    resultList.Sort();//Sort List
    List<int> rangeList = resultList.GetRange(19, 2);//Get 19th and 20th value
    myValue[countV] = (int)rangeList.Average();//Add Median to Array
    countV++;
    return myValue;// return Array
    this code is running but not too fast,
    there is any idea to repair this code?
    Thanks!

    //////////////////////// // TODO: Your per-pixel code here. // The pixel contains 8-bit non-linear (sRGB) data. // See wikipedia: http://en.wikipedia.org/wiki/SRGB // for conversions betwen sRGB and Linear RGB. // Do your arithmetic on linear RGB values
    only.
    // pixel[0]: (sRGB) RED value
    // pixel[1]: (sRGB) GREEN value
    // pixel[2]: (sRGB) BLUE value
    //////////////////////// pixel += bytesPerPixel;
    } } ); } myBitmap.UnlockBits( bmdata );
    Hi,
    afaik the order is reversed BGR format so p[0] is blue - at least for 32bppArgb locked bmps.
    Here's my Median Filter for Bitmaps using unsafe code (This does something else than the OPs code, it doesnt "middle" the differences but the color channel values - as a Filter for images, can be optimized)
    private void button1_Click(object sender, EventArgs e)
    MedianFilter((Bitmap)this.pictureBox1.Image, 9 /* 9x9 Kernel */, true /* if pic doesnt contain transparecy, set this to false */, 255, null);
    this.pictureBox1.Refresh();
    //Median Filter, processing all pixels (edge/near-edge values too)
    //Conveniant, fast, but not fastest implementation (due to the variable size of the kernel to imput into the method).
    //params:
    //InputBitmap,
    //KernelSize,
    //take median for alpha channel,
    //maxSize of KernelRow/Column,
    //a reference to a BackgroundWorker to cancel/stop the opertation
    public static bool MedianFilter(Bitmap bmp, int size, bool doTrans, int maxSize, System.ComponentModel.BackgroundWorker bgw)
    if ((size & 0x1) != 1)
    throw new Exception("Kernelrows Length must be Odd.");
    if (size < 3)
    throw new Exception("Kernelrows Length must be in the range from 3 to" + (Math.Min(bmp.Width - 1, bmp.Height - 1)).ToString() + ".");
    if (size > maxSize)
    throw new Exception("Kernelrows Length must be in the range from 3 to" + maxSize.ToString() + ".");
    if (size > Math.Min(bmp.Width - 1, bmp.Height - 1))
    throw new Exception("Kernelrows Length must be in the range from 3 to" + (Math.Min(bmp.Width - 1, bmp.Height - 1)).ToString() + ".");
    int h = size / 2;
    Bitmap bSrc = null;
    BitmapData bmData = null;
    BitmapData bmSrc = null;
    try
    bSrc = (Bitmap)bmp.Clone();
    bmData = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height),
    ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb);
    bmSrc = bSrc.LockBits(new Rectangle(0, 0, bSrc.Width, bSrc.Height),
    ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
    int stride = bmData.Stride;
    System.IntPtr Scan0 = bmData.Scan0;
    System.IntPtr SrcScan0 = bmSrc.Scan0;
    unsafe
    int nWidth = bmp.Width;
    int nHeight = bmp.Height;
    int llh = h * stride;
    int lh = h * 4;
    # region First Part
    for (int l = 0; l < h; l++)
    byte* p = (byte*)(void*)Scan0;
    byte* pSrc = (byte*)(void*)SrcScan0;
    int lf = l * stride;
    int ll = l * 4;
    byte[] red = new byte[(h + 1) * (h + l + 1)];
    byte[] green = new byte[(h + 1) * (h + l + 1)];
    byte[] blue = new byte[(h + 1) * (h + l + 1)];
    byte[] alpha = new byte[(h + 1) * (h + l + 1)];
    int mid = red.Length / 2;
    for (int r = h - l, rc = 0; r < size; r++, rc++)
    int lr = rc * stride;
    for (int c = h, cc = 0; c < size; c++, cc++)
    int lcc = cc * 4;
    blue[rc * h + cc] = pSrc[lr + lcc];
    green[rc * h + cc] = pSrc[1 + lr + lcc];
    red[rc * h + cc] = pSrc[2 + lr + lcc];
    if (doTrans)
    alpha[rc * h + cc] = pSrc[3 + lr + lcc];
    Array.Sort(red);
    Array.Sort(green);
    Array.Sort(blue);
    Array.Sort(alpha);
    p += lf;
    p[0] = blue[mid];
    p[1] = green[mid];
    p[2] = red[mid];
    if (doTrans)
    p[3] = alpha[mid];
    for (int x = 1, ccc = 1; x < nWidth - 1; x++, ccc++)
    p = (byte*)(void*)Scan0;
    pSrc = (byte*)(void*)SrcScan0;
    if (x > size - (h + 1))
    p += (x - size + (h + 1)) * 4;
    pSrc += (x - size + (h + 1)) * 4;
    ccc = (bmp.Width - x >= h + 1) ? Math.Min(ccc, h) : bmp.Width - x - 1;
    int fc = (h + ccc + 1);
    red = new byte[fc * (h + l + 1)];
    green = new byte[fc * (h + l + 1)];
    blue = new byte[fc * (h + l + 1)];
    alpha = new byte[fc * (h + l + 1)];
    mid = red.Length / 2;
    for (int r = h - l, rc = 0; r < size; r++, rc++)
    int lr = rc * stride;
    for (int c = Math.Max(h - x, 0), cc = 0; (x - h + size <= bmp.Width) ? c < size : c < (size - (x - h + size - bmp.Width)); c++, cc++)
    int lcc = cc * 4;
    blue[rc * fc + cc] = pSrc[lr + lcc];
    green[rc * fc + cc] = pSrc[1 + lr + lcc];
    red[rc * fc + cc] = pSrc[2 + lr + lcc];
    if (doTrans)
    alpha[rc * fc + cc] = pSrc[3 + lr + lcc];
    Array.Sort(red);
    Array.Sort(green);
    Array.Sort(blue);
    Array.Sort(alpha);
    p = (byte*)(void*)Scan0;
    p += lf + (x * 4);
    p[0] = blue[mid];
    p[1] = green[mid];
    p[2] = red[mid];
    if (doTrans)
    p[3] = alpha[mid];
    p = (byte*)(void*)Scan0;
    p += (nWidth - h - 1) * 4;
    pSrc = (byte*)(void*)SrcScan0;
    pSrc += (nWidth - h - 1) * 4;
    red = new byte[(h + 1) * (h + l + 1)];
    green = new byte[(h + 1) * (h + l + 1)];
    blue = new byte[(h + 1) * (h + l + 1)];
    alpha = new byte[(h + 1) * (h + l + 1)];
    mid = red.Length / 2;
    for (int r = h - l, rc = 0; r < size; r++, rc++)
    int lr = rc * stride;
    for (int c = 0, cc = 0; c < size - h; c++, cc++)
    int lcc = cc * 4;
    blue[rc * h + cc] = pSrc[lr + lcc];
    green[rc * h + cc] = pSrc[1 + lr + lcc];
    red[rc * h + cc] = pSrc[2 + lr + lcc];
    if (doTrans)
    alpha[rc * h + cc] = pSrc[3 + lr + lcc];
    Array.Sort(red);
    Array.Sort(green);
    Array.Sort(blue);
    Array.Sort(alpha);
    p += lf + lh;
    p[0] = blue[mid];
    p[1] = green[mid];
    p[2] = red[mid];
    if (doTrans)
    p[3] = alpha[mid];
    # endregion
    # region Main Body
    //for (int y = 0; y < nHeight - size + 1; y++)
    Parallel.For(0, nHeight - size + 1, (y, loopState) =>
    byte* p = (byte*)(void*)Scan0;
    byte* pSrc = (byte*)(void*)SrcScan0;
    if (bgw != null && bgw.CancellationPending)
    loopState.Break();
    # region First Pixels
    byte[] red = new byte[(h + 1) * size];
    byte[] green = new byte[(h + 1) * size];
    byte[] blue = new byte[(h + 1) * size];
    byte[] alpha = new byte[(h + 1) * size];
    int mid = red.Length / 2;
    for (int l = 0; l < h; l++)
    p = (byte*)(void*)Scan0;
    p += y * stride;
    pSrc = (byte*)(void*)SrcScan0;
    pSrc += y * stride;
    int ll = l * 4;
    for (int r = 0, rc = 0; r < size; r++, rc++)
    int lr = rc * stride;
    for (int c = 0, cc = 0; c < (h + 1); c++, cc++)
    int lcc = cc * 4;
    blue[r * (h + 1) + cc] = pSrc[lr + lcc];
    green[r * (h + 1) + cc] = pSrc[1 + lr + lcc];
    red[r * (h + 1) + cc] = pSrc[2 + lr + lcc];
    if (doTrans)
    alpha[r * (h + 1) + cc] = pSrc[3 + lr + lcc];
    Array.Sort(red);
    Array.Sort(green);
    Array.Sort(blue);
    Array.Sort(alpha);
    p += llh + ll;
    p[0] = blue[mid];
    p[1] = green[mid];
    p[2] = red[mid];
    if (doTrans)
    p[3] = alpha[mid];
    # endregion
    # region Standard
    red = new byte[size * size];
    green = new byte[size * size];
    blue = new byte[size * size];
    alpha = new byte[size * size];
    mid = red.Length / 2;
    for (int x = 0; x < nWidth - size + 1; x++)
    p = (byte*)(void*)Scan0;
    p += y * stride + x * 4;
    pSrc = (byte*)(void*)SrcScan0;
    pSrc += y * stride + x * 4;
    for (int r = 0; r < size; r++)
    int llr = r * stride;
    for (int c = 0; c < size; c++)
    int lc = c * 4;
    blue[r * size + c] = pSrc[llr + lc];
    green[r * size + c] = pSrc[1 + llr + lc];
    red[r * size + c] = pSrc[2 + llr + lc];
    if (doTrans)
    alpha[r * size + c] = pSrc[3 + llr + lc];
    Array.Sort(red);
    Array.Sort(green);
    Array.Sort(blue);
    Array.Sort(alpha);
    p += llh + lh;
    p[0] = blue[mid];
    p[1] = green[mid];
    p[2] = red[mid];
    if (doTrans)
    p[3] = alpha[mid];
    # endregion
    # region Last Pixels
    red = new byte[(h + 1) * size];
    green = new byte[(h + 1) * size];
    blue = new byte[(h + 1) * size];
    alpha = new byte[(h + 1) * size];
    mid = red.Length / 2;
    for (int l = nWidth - size + 1; l < nWidth - h; l++)
    int ll = l * 4;
    p = (byte*)(void*)Scan0;
    p += (y * stride) + ll;
    pSrc = (byte*)(void*)SrcScan0;
    pSrc += (y * stride) + ll;
    for (int r = 0, rc = 0; r < size; r++, rc++)
    int lr = rc * stride;
    for (int c = 0, cc = 0; c < h + 1; c++, cc++)
    int lcc = cc * 4;
    blue[r * (h + 1) + cc] = pSrc[lr + lcc];
    green[r * (h + 1) + cc] = pSrc[1 + lr + lcc];
    red[r * (h + 1) + cc] = pSrc[2 + lr + lcc];
    if (doTrans)
    alpha[r * (h + 1) + cc] = pSrc[3 + lr + lcc];
    Array.Sort(red);
    Array.Sort(green);
    Array.Sort(blue);
    Array.Sort(alpha);
    p += llh + lh;
    p[0] = blue[mid];
    p[1] = green[mid];
    p[2] = red[mid];
    if (doTrans)
    p[3] = alpha[mid];
    # endregion
    # endregion
    # region Last Part
    for (int l = 0; l < h; l++)
    byte* p = (byte*)(void*)Scan0;
    byte* pSrc = (byte*)(void*)SrcScan0;
    p += (nHeight - size + l + 1) * stride;
    pSrc += (nHeight - size + l + 1) * stride;
    int lf = l * stride;
    int ll = l * 4;
    byte[] red = new byte[(h + 1) * (size - l - 1)];
    byte[] green = new byte[(h + 1) * (size - l - 1)];
    byte[] blue = new byte[(h + 1) * (size - l - 1)];
    byte[] alpha = new byte[(h + 1) * (size - l - 1)];
    int mid = red.Length / 2;
    for (int r = 0, rc = 0; r < size - (l + 1); r++, rc++)
    int lr = rc * stride;
    for (int c = h, cc = 0; c < size; c++, cc++)
    int lcc = cc * 4;
    blue[rc * h + cc] = pSrc[lr + lcc];
    green[rc * h + cc] = pSrc[1 + lr + lcc];
    red[rc * h + cc] = pSrc[2 + lr + lcc];
    if (doTrans)
    alpha[rc * h + cc] = pSrc[3 + lr + lcc];
    Array.Sort(red);
    Array.Sort(green);
    Array.Sort(blue);
    Array.Sort(alpha);
    p += llh;
    p[0] = blue[mid];
    p[1] = green[mid];
    p[2] = red[mid];
    if (doTrans)
    p[3] = alpha[mid];
    for (int x = 1, ccc = 1; x < nWidth - 1; x++, ccc++)
    p = (byte*)(void*)Scan0;
    p += (nHeight - size + l + 1) * stride;
    pSrc = (byte*)(void*)SrcScan0;
    pSrc += (nHeight - size + l + 1) * stride;
    if (x > size - (h + 1))
    p += (x - size + (h + 1)) * 4;
    pSrc += (x - size + (h + 1)) * 4;
    ccc = (bmp.Width - x >= h + 1) ? Math.Min(ccc, h) : bmp.Width - x - 1;
    int fc = (h + ccc + 1);
    red = new byte[fc * (size - l - 1)];
    green = new byte[fc * (size - l - 1)];
    blue = new byte[fc * (size - l - 1)];
    alpha = new byte[fc * (size - l - 1)];
    mid = red.Length / 2;
    for (int r = 0, rc = 0; r < size - (l + 1); r++, rc++)
    int lr = rc * stride;
    for (int c = Math.Max(h - x, 0), cc = 0; (x - h + size <= bmp.Width) ? c < size : c < (size - (x - h + size - bmp.Width)); c++, cc++)
    int lcc = cc * 4;
    blue[rc * fc + cc] = pSrc[lr + lcc];
    green[rc * fc + cc] = pSrc[1 + lr + lcc];
    red[rc * fc + cc] = pSrc[2 + lr + lcc];
    if (doTrans)
    alpha[rc * fc + cc] = pSrc[3 + lr + lcc];
    Array.Sort(red);
    Array.Sort(green);
    Array.Sort(blue);
    Array.Sort(alpha);
    p = (byte*)(void*)Scan0;
    p += (nHeight - size + l + 1) * stride;
    p += llh + (x * 4);
    p[0] = blue[mid];
    p[1] = green[mid];
    p[2] = red[mid];
    if (doTrans)
    p[3] = alpha[mid];
    p = (byte*)(void*)Scan0;
    p += (nHeight - size + l + 1) * stride;
    p += (nWidth - h - 1) * 4;
    pSrc = (byte*)(void*)SrcScan0;
    pSrc += (nHeight - size + l + 1) * stride;
    pSrc += (nWidth - h - 1) * 4;
    red = new byte[(h + 1) * (size - l - 1)];
    green = new byte[(h + 1) * (size - l - 1)];
    blue = new byte[(h + 1) * (size - l - 1)];
    alpha = new byte[(h + 1) * (size - l - 1)];
    mid = red.Length / 2;
    for (int r = 0, rc = 0; r < size - (l + 1); r++, rc++)
    int lr = rc * stride;
    for (int c = 0, cc = 0; c < size - h; c++, cc++)
    int lcc = cc * 4;
    blue[rc * h + cc] = pSrc[lr + lcc];
    green[rc * h + cc] = pSrc[1 + lr + lcc];
    red[rc * h + cc] = pSrc[2 + lr + lcc];
    if (doTrans)
    alpha[rc * h + cc] = pSrc[3 + lr + lcc];
    Array.Sort(red);
    Array.Sort(green);
    Array.Sort(blue);
    Array.Sort(alpha);
    p += llh + lh;
    p[0] = blue[mid];
    p[1] = green[mid];
    p[2] = red[mid];
    if (doTrans)
    p[3] = alpha[mid];
    # endregion
    bmp.UnlockBits(bmData);
    bSrc.UnlockBits(bmSrc);
    bSrc.Dispose();
    return true;
    catch
    try
    bmp.UnlockBits(bmData);
    catch
    try
    bSrc.UnlockBits(bmSrc);
    catch
    if (bSrc != null)
    bSrc.Dispose();
    bSrc = null;
    return false;
    Regards,
      Thorsten

  • Unlimited Europe - All the tricks Skype used to ma...

    I've had an Unlimited Europe annual subscription since May 2008. At the time I was paying EUR36.34/year. The subscription included a Skype Number, which I've had since then.
    Then in 2012, Skype has unilaterally decided to cancel my annual Unlimited Europe (no explanation given), and has moved my subscription to a monthly one (charged at GBP3.39/Month). They've also decided to unlink my Skype Number from my Unlimited Europe subscription, with the result that I had to pay for it separately, and I'm now paying a total of GBP60.81 (!!! twice the amount I've been paying until last year) for the exact same service.
    Two chat sessions (for a total of more than 4 hours) with their customer care have not solved a thing. The front line support has been very friendly, but essentially they've told me there's nothing they can do:
    - They say an annual subscription to Unlimited Europe is no longer available (which is not true, as I've created a new Skype account on which I was able to buy an annual Unlimited Europe, which however costs GBP58.51...aha! now I understand why they've cancelled my existing annual subscription, and pretend it doesn't exist anymore...it's because I signed up such a long time ago that my suscription was too cheap for them).
    - They say that since the annual subscription has been turned into a monthly one, I can't associate a Skype Number to it (which is, again, not true: I can do it, they just don't let me associate my existing Skype Number to my existing subscription).
    And all of this, they've confirmed in writing (either in the chat session, which I've recorded, or in an email after the chat session ended).
    To cut a long story short: if your business uses Skype (as I do), just be aware that when they unilaterally change the price of their subscriptions, they will find a way to take more and more of your money.
    Seriously unprofessional.
    Thanks,
    Ale

    Hi Dave,
    I just had this very same problem but after research have found out why;
    Go to setting> phone> faceTime/ turn it ON.
    If this doesn't work, if restriction is enabled on your device then go to setting> general> restrictions> enter restriction code> faceTime/ set it on. I hope this helps!
    Sarah

  • A trick to using fade tool?

    Is there a special way that you need to click and drag using the fade tool to create a fade? i can't get it to work

    Click on the background and drag the selection onto the region you wish to fade.
    Either:"Fade Out ending here (click) and starting (drag) here (release). "
    or "Fade in beginning here (click) ending (drag) here (release)."

  • Is a 10GB "Clickwheel" iPod still supported by iTunes 8+ and OS X 10.4+

    I have a 10GB clickwheel iPod that I've been trying to update just to use for some simple mp3 spoken word files and a handful of songs. Not trying to load entire iTunes library on it. Is the clickwheel not compatible with 10.4.11? I've used disk utility to erase and reformat my iPod, used iTunes to restore several times, and unchecked almost all my music just to see if I can get a handful of files to update onto my iPod. I don't care that it's not sleek and brand new, but I certainly hope I can use it still for basic stuff. I'm wondering if it's no longer supported by iTunes 8+ and OS X 10.4+. Does anyone know for sure and can provide an answer? If it should be supported, does anyone have any other suggestions? It seems like it tries to update, but after I see the message that 6 of 100 or 11 of 100 songs have been copied, it just locks up and that is it. Any help would be appreciated.

    Doug,
    Your iPod should work with no issues on 10.4.11 and iTunes 8+.
    When the iPod "locks up" do you hear any clicking noises? Your symptoms sound like the hard drive is having hardware issues.
    Here's a trick I used to use to fix the older iPods. It involves opening up the iPod, so if you don't feel comfortable, you might want to go to someone who does.
    Take a blade from a box cutter and gently move it along where the plastic meets the metal on the iPod. Use the blade to pry open the iPod from the metal case for the back.
    Once you get the iPod out, look towards the bottom of the iPod, and you should see the hard drive with a wide cable attached to it. Take that cable out of the hard drive (gently). Find a Bic pen cap (or something similar) and push it in between the two rows of pins on the cable. Try to make sure the pins are spread apart evenly and all pointing directly out. Once you get that in place, firmly push the cable back into the hard drive and gently put the iPod back together.
    You may then want to restore just to be safe, and try loading your music again. I've used this trick on many old iPods to bring another couple of years of life into them. (sometimes this cable comes loose, causing the issues you're describing)
    Justin

  • Cant use CCC to clone Snow Leapord mac to Mountain Lion mac

    hello all,
    I just bought a MacBook Pro (Mid 2012 not retina), and it came with Lion OSX. I recently installed Mountain Lion OS and it appears to be working welll except I am having trouble using a cloned external drive. I cloned my 2007 MacBook (Snow Leapord), using CCC (Carbon Copy Cloner), onto a Seagate 320GB eternal USB Hard Drive. When I plug the drive into my new MacBook Pro with Mountain Lion, and go to system Preferences, startup disc, select the coned drive, and click restart, the computer shuts down and appears to be starting to restart, but it just stays on the white screen before the apple symbol shows up and the apple symbol never even pops up, it just stays white forever without booting up. Now, I tried using the drive as a startup disc for my dad's 2008 MacBook Pro with Leapord and it worked like a charm and also tried it on my sister's MacBook Pro (Lion) and it worked fine there too. Is there something about mountain lion that could be causing this problem? I even tried using Target Disc from my old mac (that i cloned) to my new one and it wasnt working either. If anyone has any ideas, please help! Are there any particular tricks to using CCC for Mountain Lion? Thanks for the help!!!
    -Jared

    jbelt40 wrote:
    Thanks that makes sense, however, my sisters Macbook pro worked with it and hers is a 2011 and came with Lion, so I'm not sure what to make of that.
    Right the Early 2011 model MBPs came originally with Snow Leopard installed and Apple updated SL to 10.6.8 to work correctly with the newer hardware in the Early 2011 models. Then in June Lion came out and then all shipping MBPs came with Lion Pre-Installed but they would still run SL if you had the 10.6.8 version of SL. Since the Late 2011 models were basically the exact same computer, just upgraded CPU and some other minor changes, as the early 2011 models even though the late 2011 models came with Lion Pre-Installed SL would work on those if you had the 10.6.7 or .8 version of SL.
    Now with the newest Mid 2012 models all of the Base hardware was changed to the most current versions available, New hardware. Even Lion that worked on the late 2011 models will NOT boot on the Mid 2012 models.
    The 2011 version/build of Lion does not have the correct driver package to work on the new hardware.
    Apple put together a Special build of Lion to work on those newest system with an updated driver package for the newer hardware.

  • How can i use SpryHTMLPanel or SpryHTMLDataSet inside SprySlidingPanels?

    I am working on a web project using Adobe Spry. I have used SpryHTMLPanel to create the pages but one of the pages has too many contents increasing the filesize. I thought it is the best way calling an external html page inside the dynamic SlidingPanel to decrease the filesize since it is already a <DIV>. But i didn't manage it, the external page i called, always opens in a new blank page as a static <A> link. I guess there is a small trick to use showPanel() and loadContent() simultaneously for any onclick() event of any <A> link...
    <head>
    <link href="css/SprySlidingPanels.css" rel="stylesheet" type="text/css" />
    <link href="css/samples.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* some extra css styling *>
    </style>
    <script type="text/javascript" src="js/SprySlidingPanels.js"></script>
    <script type="text/javascript" src="js/SpryHTMLPanel.js"></script>
    </head>
    <body>
    <a href="#" onclick="sp1.showPanel('p1'); return false;">p1</a> |
    <a href="#" onclick="sp1.showPanel('p2'); extpg.loadContent('extpg.html') return false;">p2</a> |
    <a href="#" onclick="sp1.showPanel('p3'); return false;">p3</a> |
    <hr />
    <div id="main" class="SlidingPanels" tabindex="0">
        <div class="SlidingPanelsContentGroup">
            <div id="p1" class="SlidingPanelsContent">Panel 1</div>
            <div id="p2" class="SlidingPanelsContent">Panel 2<br />
            <div class="liveSample" id="innerpg">
            <p>This is static content.</p>
            </div>
            <script type="text/javascript">
            var extpg = new Spry.Widget.HTMLPanel("innerpg",{evalScripts:true});
            </script>
            </div>
            <div id="p3" class="SlidingPanelsContent">Panel 3</div>
        </div>
        </div>
        <script type="text/javascript">
        var sp1 = new Spry.Widget.SlidingPanels('main');
        </script>
    </body>
    Thanks in advance!

    Woo! So fastly!!!
    I have just managed it by just a small change...
    <div id="main" class="SlidingPanels" tabindex="0">
        <div class="SlidingPanelsContentGroup">
            <div id="p1" class="SlidingPanelsContent">Panel 1</div>
            <div id="p2" class="SlidingPanelsContent">Panel 2<br />
            <div class="liveSample" id="innerpg">
            <p>This is static content.</p>
            </div>
            <script type="text/javascript">
            var extpg = new Spry.Widget.HTMLPanel("innerpg");
            </script>
            </div>
            <div id="p3" class="SlidingPanelsContent">Panel 3</div>
        </div>
        </div>
        <script type="text/javascript">
        var sp1 = new Spry.Widget.SlidingPanels('main',{evalScripts:true});
        </script>

  • How to mount NFS into a zone or how to use the same IP in every zone?

    Hi,
    we are using a NFS server in a different subnet (= different network interface; nxge1) than our 'normal' network (= nxge0).
    Now I want to mount serveral NFS directories into our zones.
    First I thought the follwoing is possible:
    In the global zone I just mount the filesystem into its place:
    mount 10.11.3.1:/vol/vol_nfs_zones/zoneNNN_mnt /zones/zoneNNN/root/mnt
    When the zone is halted this mount works, but when I start the zone, I receive the error:
    # zoneadm -z zoneNNN boot
    zoneadm: zone 'zoneNNN': These file-systems are mounted on subdirectories of /zones/zoneNNN/root:
    zoneadm: zone 'zoneNNN': /zones/zoneNNN/root/mnt
    zoneadm: zone 'zoneNNN': call to zoneadmd failed
    When zoneNNN is already running and I try to mount it, I receive
    nfs mount: mount: /zones/zoneNNN/root/mnt: Device busy
    So the question is: How do I mount something in the gloabl zone from a NFS server into a zone?
    The only alternative I see is to make the interface nxge1 available in every zone and give each an own IP in our storage network... But sadly this isn't an alternative because we don't have so many free IPs in that net! (Or is there a trick to use the same IP in the global and non-global zones for only this interface??)
    Does anyone have a solution for our problem? I cannot believe that SUN misses this!
    Any hints are more than welcome!

    Mounting it by NFS in the global zone and trying to add this by the "add fs" and "type=lofs"-option yields to an error, when installing the zone:
    cannot verify fs /data: NFS mounted file-system.
    A local file-system must be used.
    zoneadm: zone zoneNNN failed to verifyOur storage network is not accessable from other nets. (And I think it is a very bad idea to route storage network traffic...)
    So I think we def. have to increase our storage network. :-(

  • Trying to use WInterface unsuccessfully

    Dear Everyone,
    I am currently trying to integrate "always on top" functionality into an application that I have written. After searching the forums extensively I came across a link to an interface (designed using JNI) that claimed to posses the required functionality.
    http://www.esus.com/javaindex/j2se/jdk1.2/javaxswing/toplevelcontainers/jframe/jframealwaysontop.html
    Upon arriving at the above link I proceeded to download the zip file containing the required classes and .dll file. Although this download was not provided with many instructions, the following was specified in order to use the interface.
    Installation:
    *For this package to function, you must modify your java library path
    (the "java.library.path" property) or you must copy <WInterface.dll> to
    a directory that is already on that path.
    *You can recompile the source or use the provided classes.  The classes
    were compiled with Sun Microsystem's JDK 1.3. In either case, the
    <WInterface.class> file must be accessible from the virtual machine's
    class path.
    I proceeded with adding a class to my program and then simply cutting and pasting the required code from the WInterface.java file that came with the zip file download.
    I also placed the .dll file on the class path as was requested.
    However whenever I run my program with this Interface I get an UnsatisfiedLinkError as a result of an interface method called getHwnd().
    This zip download also comes with a TestFrame, which I have played with somewhat, and I cannot get this to work either. Again a link error is produced by getHwnd().
    If anybody has used this interface successfully or knows how to use this successfully then any information will be greatly appreciated. Thanks.

    Dear DrClap,
    Your suggestions are welcome however I have already performed all of the advice that you gave me. I found the class path, put the .dll file into a directory on that path. Also I put the .dll file into many other additional folders in an attempt to resolve this issue. Is there some trick to using .dll files? When the code "asks for" the .dll file it does not have a full path specified. I even tried to modify this code section in an attempt to directly reference the .dll file, e.g.
    Instead of:
    System.loadLibrary("WInterface");I tried:
    System.loadLibrary("C:\j2sdk1.4.0\bin\WInterface"); The above experimentation did not help.
    Do you know if this interface works at all?
    Regards
    CD

  • Need to remove white background for use on dark background

    Hi,
    I have a stock image of some people on a white background. I need to remove the white background so I can use the image in a project with a dark background. However when I put the edited subjects on the dark background, the people all have noticeable white borders around them which I assume means I am not getting all of the white out, especially around the hair. Can anyone recommend the best way of overcoming this? Thanks.

    Can anyone recommend the best way of overcoming this? Thanks.
    There is no single "best way". It all depends on the resolution of the image and its other quality properties. The - theoretically - cleanest and less workladden method would be to extract the luminance e.g. by converting to Lab mode and selecting the L channel, then adjust the channel range. However, if the foreground also contains lots of bright colors, clipping back the channel black and white points would also affect them and you'd need more adjustments to compensate or work with teh refine mask tool a lot to feather edges just like you would with a conventioan layer mask created from an interactive selection. On top of that you may also still need to apply all teh other dirty tricks like using a dark inner glow to cover up remaining bright areas or fill the outside with a dark color... Really depends, but you should be prepared to invest some time. Using longwinded manual painting and cloning may even be required...
    Mylenium

Maybe you are looking for

  • I'm not sure what I've done but I need help please

    Hi everyone. I seem to have done something really stupid. In the finder window, I renamed the 'folder' that has the house next to it, from Michaellastname just to Mike. Following that, I went into Front Row to watch a movie saved in my "Movie" folder

  • Third party sales problem

    Hi , While doing third party process i'm getting error that " Purchase order do not any item" this has come when i hve done MIGO. help in this matter. Regards

  • Problem with call accounting

    hi, my AS5300 logged a call was able to authorize, then stop accounting/originate was recived and then call was billed. but in a minute another stop accounting/originate was recieved with the same user-name and Called Station ID, but with different h

  • Error : External ID cannot be used; it has already been used .

    Hi , Sometime the following senario happend the user delete and want to recreate with the same Marketing Element ID If we create a Marketing Element with a ID, and Delete it , and after recreate it with the same ID . SAP issue the following message :

  • Multiple Click Box Quiz Answers on the Same Slide

    Hello. I am using Captivate 5.5 I have a quiz slide with two click boxes that are both correct answers.  When a learner clicks either of them, I want them to advance to the next slide and score as "Correct". The problem is since they only click one o