I am very confuse with my program in Gaphics2D

I tried to draw a GeneralPath onto an image. Initially, I tried with fixed value like:
     float x1Points[]={50,100,200,400,120};
     float y1Points[]={350,100,50,150,400};
it can draw perfectly on an bufferedimage. But when I load a data file containing a set of values, nothing on GeneralPath appears on the image.
The whole class on this is from class A and class B open the data file and calling to this A by:
new A();
Is this possible?
P.S. I tried to post my program code on but no one wants to help me, so I try this way.

Yes, this is actually related to the previous question on something x and y coordinates. Actually, my problem occur when I pass 2 arrays of x and y to class B during I load a file in class A, I can't get it to draw GeneralPath. I have aske answer for maybe error in creating the GeneralPath but my GeneralPath is fine.
I try experimenting with a fixed value of:
float x[]={34.21,45.8976,23.6776,234.678,200};
float y[]={203,458,122.545,45,453};
It can only compile if I insert an "f" at the back of each float value. When I run it, it works and show this line. I was thinking of maybe the missing of "f" in the array, so I try in insert in anyway I can but have syntax error.Is it the "f" thing missing or I try to include in constructing in the bufferimage. The class B code is as follows:
import java.awt.*;
import java.io.*;
import java.util.Hashtable;
import javax.swing.*;
import java.awt.geom.*;
import java.awt.event.*;
import java.awt.image.*;
public class B extends JComponent {
protected float scale = 0.4f;
protected MediaTracker mt;
protected AffineTransform at1, at2;
protected BufferedImage bufferImage = null;
static final Color dblue = new Color(63, 64, 124);
static final Color lgray = new Color(105, 120, 141);
static final GradientPaint grayblue = new GradientPaint(0, 0, dblue,
0, 50, lgray);
protected int cx=0,cy=0;
private Graphics2D context;
private int w,h,sx=0,sy=0;
public B() {
String path = "Map3.jpg";
createImage(path);
addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent e) {
          cx=e.getX();
          cy=e.getY();
float value = 1.01f;
if (SwingUtilities.isLeftMouseButton(e)) {
value = 1.01f;
} else {
value = 0.99f;
          sx=getWidth()/2-cx+sx-((int)((float)(w)*scale/(float)(getWidth())*20));
          sy=getHeight()/2-cy+sy-((int)((float)(h)*scale/(float)(getHeight())*20));
          System.out.println((int)((float)(w)*scale/(float)(getWidth())*20));
          System.out.println((int)((float)(h)*scale/(float)(getHeight())*20));
updateComponent(value);
protected void createImage(String path) {
Image ocean = Toolkit.getDefaultToolkit().getImage(path);
try {
mt = new MediaTracker(this);
mt.addImage(ocean, 0);
mt.waitForID(0);
} catch (InterruptedException e) {
e.printStackTrace();
return;
createBufferedImage(ocean);
private BufferedImage createBufferedImage(Image ocean) {
w = ocean.getWidth(this);
h = ocean.getHeight(this);
bufferImage = new BufferedImage(w, h,BufferedImage.TYPE_INT_ARGB_PRE);
if (bufferImage == null) {
throw new NullPointerException(
"BufferedImage could not be created");
context = bufferImage.createGraphics();
     if(A.ix==null||A.iy==null){
context.drawImage(ocean, 0, 0, this);}
     else{
     BasicStroke wideStroke = new BasicStroke(12.0f);
     context.setStroke(wideStroke);
     context.setPaint(Color.blue);
     float x1Points[]=new float[A.ix.length];
     float y1Points[]=new float[A.iy.length];
     for(int i=0;i<GPS3.ix.length;i++){
     x1Points=GPS3.ix[i]*100000-299900;
     y1Points[i]=GPS3.iy[i]*1000-101710;
     System.out.println(x1Points[i]+" "+y1Points[i]);
GeneralPath polygon = new GeneralPath(GeneralPath.WIND_EVEN_ODD/*,x1Points.length*/);
polygon.moveTo(x1Points[0], y1Points[0]);
for ( int i = 1; i < x1Points.length; i++ ) {
polygon.lineTo(x1Points[i], y1Points[i]);
context.drawImage(ocean, 0, 0, this);
context.draw(polygon);
     repaint();
return bufferImage;
public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
initMap(g2);
     at1=new AffineTransform();
at1 = AffineTransform.getTranslateInstance(sx,sy);
at2 = AffineTransform.getScaleInstance(scale, scale);
g2.setPaint(grayblue);
g2.fillRect(0, 0, getWidth(), getHeight());
if (!mt.checkID(0)) {
g.clearRect(0, 0, getWidth(), getHeight());
g.drawString("Please wait...", 0, getHeight() / 2);
AffineTransform old = g2.getTransform();
g2.setTransform(at1);
g2.transform(at2);
g2.drawImage(bufferImage, 0, 0, this);
g2.setTransform(old);
     repaint();
private void initMap(Graphics2D g2) {
Hashtable map = new Hashtable();
map.put(RenderingHints.KEY_RENDERING,
RenderingHints.VALUE_RENDER_SPEED);
map.put(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g2.setRenderingHints(map);
public void updateComponent(float value) {
long start = System.currentTimeMillis();
int count = 20;
for (int i = 0; i < count; i++) {
scale *= value;
repaint();
RepaintManager.currentManager(ZoomMap.this).paintDirtyRegions();
getInfo(start, count);
private void getInfo(long start, int count) {
String nl = System.getProperty("line.separator");
long end = System.currentTimeMillis();
long dt = (end - start);
StringBuffer sb = new StringBuffer();
sb.append("Time = ").append(dt).append(", ").append(dt / count)
.append(" ms/count, ").append(count * 1000 / dt).append(" cps")
.append(nl).append("ScaleX : ").append(at2.getScaleX())
.append(", ").append("ScaleY : ").append(at2.getScaleY());
System.out.println(sb.toString());
public Dimension getPreferredSize() {
return new Dimension(bufferImage.getWidth(this) + 200,
bufferImage.getHeight(this) + 200);
Let me remind you that the value I passed to this class (B) is valid as I try to print the value(x and y but not ix and iy) and it really got value.I don't want to draw the GeneralPath in the paintComponent since when I scale the image, the GeneralPath also need to be scale together to see the effect.Thank you

Similar Messages

  • Very confused with iTunes Store issues

    Dear all,
    I am a Mac user who owns several mac computers and several iOS devices.
    I have become very confused over my rights concerning my specific Apple iD.
    I understand that when purchasing DRM free music from iTunes (256 bit - it appears as Purchased AAC audio file) on my main Mac computer, then I can play this music to as many computers I have, not only 5. Is this correct?
    I remember at some point that on one of my other Mac computers ( my secondary computer - a Mac Mini) I was able to listen to my music purchased, in the past, on my main computer, by having it streamed (not downloaded) from the iCloud onto my secondary computer. Somehow this has been lost recently. Now I am faced with the task to authorise my secondary computer, which I cannot do, because I have 5 computers already authorised.
    What am I doing wrong?
    Has iTunes 11 changed anything in this respect?
    Any help will be most appreciated.
    Merry Christmas and best regards
    Andreas

    Limnos wrote:
    err = -50 when downloading from store - https://discussions.apple.com/thread/3697501 - delete incomplete downloads from downloads folder as per http://support.apple.com/kb/TS3297
    iTunes Store: "Error (-50)" when downloading purchased content - http://support.apple.com/kb/TS1583
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html
    I had tried all these, deleting 'Downloads' folder in 'iTunes Media', creating a new user (administrator) account and downloading movie with the new account, following error -50 trouble shooting steps, but none of them worked. I did contact iTunes customer service. In addition to what listed above, they also suggested I download the movie using another computer and transfer the file to my macbook air, which has nothing to do with my problem at all.

  • Very confused with trade in, please help!

    I ordered a iPhone 6 today through my local Verizon store, I have a iPhone 5 to trade.. The whole process was done very fast so I didnt ask to many questions. I am confused though, am I mailing my phone in once the iPhone 6 gets to my verizon store? Or are they going to give me a $200 dollar credit so I can trade it in right then? I did already get a conformation about my order saying it will ship by 10/31. Please help!! Thanks!!

    Well it depends on what posts you read on this subject.
    Some customers have stated that if you buy or pick up in store they can look at your device and credit you on the spot.
    Others have said that you get a mailer that you send the phone back in which many have claimed the amount promised was reduced to $36 because the iPhone was not deactivated or wiped absolutely clean. See if the store will take it first before you mail it back.
    Good Luck

  • I am a former user of Adobe Photoshop CS3 as a very beginner.  I wish to know if Creative Cloud will do everything that Photoshop CS3 did for me.  I am very confused with all these new products.  Can you help me?

    I am a former user of Adobe Photoshop CS3 as a very beginner.  I have had no training.  I wish to know if the new Creative Cloud will do everything that my Photoshop CS3 did for me.  Can you help me?

    Please refer to:
    Photoshop Help | Photoshop CC / Common Questions
    https://helpx.adobe.com/lightroom/faq.html
    Photoshop CC is much enhanced than CS3 & you would love the new features too.
    Regards
    Rajshree

  • Very confused with blackberry z10

    so i just got a blackberry z10 and I dont really understand how sms and emails work? So at first I selected keep messages forever, I then started receiving hundreds of emails (I then changed to 7 days as I have thousands of emails which i assume would end up on my blackberry and i dont need all just some), anyway I am assuming after 7 days the emails will get deleted right? If so does this apply for sms as well, will they get deleted after 7 days? Is there any way I can keep emails and sms forever without getting every single email I have on my hotmail account (which i have for over 10 years). Can anyone help me, am I doing anything wrong or is this how blackberry works now?

    cccc wrote:
     So at first I selected keep messages forever, I then started receiving hundreds of emails (I then changed to 7 days as I have thousands of emails which i assume would end up on my blackberry and i dont need all just some), anyway I am assuming after 7 days the emails will get deleted right?
    Yes. Actually, what you're doing now different than past BlackBerrys is that your new device "syncs" emails with what is on your email server. So, the messages are really "deleted" but after seven days they just are not synced,
    cccc wrote:
     If so does this apply for sms as well, will they get deleted after 7 days?
    No, does not apply to SMS... you were in the process of setting up your email account. Does not apply to SMS.
    cccc wrote:
     Is there any way I can keep emails and sms forever without getting every single email I have on my hotmail account (which i have for over 10 years). Can anyone help me, am I doing anything wrong or is this how blackberry works now?
    No, if you sync "forever", you get everything.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I found the operating system very confusing and hard to use. No tutorial. Manual and online help were outdated.  Tool bars, programs and documents randomly appeared and disappeared. Programs I installed completely disappeared. Anyone else experience this?

    I found the operating system very confusing and hard to use. No tutorial. Manual and online help were outdated.  Tool bars, programs and documents randomly appeared and disappeared. Programs I installed completely disappeared. Anyone else experience this?

    No need to apologize, Jim.  I think your rant was justified.  For years people have been telling me how easy the Mac was to use.  Imagine my frustration when I finally learned from friends and users that it takes weeks or months to make the transition from Windows to Mac.
    Still, I agree that I acted to too hastily when I returned my mini-mac to the store only three days after I bought it.
    I'm going to try again, this time with an iMac.  This time I'll keep it.  Since this thread is for the mini-Mac only, I'll probably be starting a new one for the iMac.
    Why did I decide to try again?  Well, I do like the faster speed and compact hardware of the Macs.  I also like the fact that I can install Windows and use that for my programs until I transition completely to Mac, IF I make the complete transition.
    Thank you all for your suggestions and advice.  I have paid attention to what you said.
    Andy

  • Very frustrated with the battery exchange program

    I'm very frustrated with the battery exchange program. I signed up online, double checked all my information, and submitted. No where on the page did it say that a signature would be required upon delivery. I work during the day, so I'm not home to receive shipments (any package I do receive is just left in the lobby, and it's always been fine--I live in a secure building).
    DHL is refusing to leave the package at the door. Apple refuses to tell DHL that it's ok to redirect the package to my place of employment. My only option, it seems, is to spend almost two hours of my time driving to the DHL location and back (the pickup location isn't even in the same county I live in).
    If anyone has any better ideas, I would love to hear it.
    Thanks,
    Andrea

    If your battery was stolen after it was delivered, I'd bet you'd really get upset. If DHL is anything like UPS, you can sign the receipt telling them to leave the package. Pretty simple.

  • Socket Programing in J2ME - Confused with Sun Sample Code

    Hai Everybody,
    I have confused with sample code provided by Sun Inc , for the demo of socket programming in J2ME. I found the code in the API specification of J2ME. The code look like :-
    // Create the server listening socket for port 1234
    ServerSocketConnection scn =(ServerSocketConnection) Connector.open("socket://:1234");
    where Connector.open() method return an interface Connection which is the base interface of ServerSocketConnection. I have confused with this line , is it is possible to cast base class object to the derived class object?
    Plese help me in this regards
    Thanks in advance
    Sulfikkar

    There is nothing to be confused about. The Connector factory creates an implementation of one of the extentions of the Connection interface and returns it.
    For a serversocket "socket://<port>" it will return an implementation of the ServerSocketConnection interface. You don't need to know what the implementation looks like. You'll only need to cast the Connection to a ServerSocketConnection .

  • Using G42-360TX is very confuse..when I play the movie with media player the notebook will shutdown

    using G42-360TX is very confuse..when I play the movie with media player the notebook will shutdown

    Whoops, I responded on the wrong thread.  I don't see a way to delete.

  • HT4509 The globe button swaps places with the 123 button on iPhone 6 when the phone orientation is changed from upright to landscape or the other way arround. This is very confusing and makes it hard to type fast.

    The globe button swaps places with the 123 button on iPhone 6 when the phone orientation is changed from upright to landscape or the other way arround. This is very confusing and makes it hard to type fast.
    Is there a way to change that?

    iOS 8.1 didn't fix this

  • Very Confused about Editing HD on a MacBook Pro!?!?!

    -Hello
    I just recently bought a MacBook Pro Intel core 2 duo like 6months Ago. I Then Went ahead and bought FCP 5.1.4 I was Importing Footage from a Camera's recorder and Everything was working well. All went down hill when I went out and Bought a (JVC-GZ HD7) Harddisk HandCamcorder and Began Recording Major Events... I was shooting(FULL HD 1920/1080)... Just about 2hrs worth of footage was imported into my FCP and THE RAW FOOTAGE TAKES **** NEAR HOURS TO RENDER... And when It plays THE RAW FOOTAGE It lags... what can i do to speed up the process? Some say I need an External Hard Drive, Some say I need more Ram, I SAY I NEED AN EXACT answer....
    I NEED HELP AS SOON AS POSIBLE... Thanx...

    Hey Shane,
    Well, Listen My Team Of Editors have gotten together and Followed your Instructions that you had sent me to Transfer the TOD files into TS files on the VLC program But I seem to be a little confused with the File/Stream options given. IF you do not mind a Step by Step Procedure would be very Helpfull. At your own convinence of course.
    thanx
    THis is what was sent to me...
    .....Note for Macintosh users using professional non-linear editing systems such as Final Cut Pro, April 28, 2007
    If you are using Final Cut Pro or other professional non-linear editing programs on the Mac, you cannot use the camera's native .TOD format, which is basically an MPEG inside the .TOD container. Forget about following JVC's instructions: they are too time-consuming and don't allow batch processing. The easiest conversion method I've found requires two freeware programs: The VLC media player, and MPEG Streamclip, both available on the Apple Website (and elsewhere). You'll first need to use the VLC player to convert the .TOD into a .TS file, which takes seconds (you are only changing the container format to MPEG TS, not actually changing compression). Once you've changed the .TOD file to a .TS file, you can use MPEG Streamclip to change to a variety of file formats that Final Cut Pro can recognize. Of course since you are recompressing the file at this point, expect this to take far longer than the first step.
    While you can use a variety of compressions, I use DVCPRO60. Files compressed using DVCPRO60 can be viewed in Final Cut immediately without a need to render. The quality of the final DVC PRO .MOV file seems identical to the original .TOD file.......

  • Problems with square root approximations with loops program

    i'm having some trouble with this program, this loop stuff is confusing me and i know i'm not doing this correctly at all. the expected values in the tester are not matching up with the output. i have tried many variations of the loop in this code even modifying the i parameter in the loop which i guess is considered bad form. nothing seems to work...
    here is what i have for my solution class:
    /** A class that takes the inputted number by the tester and squares it, and
    *  loops guesses when the nextGuess() method is called. The epsilon value is
    *  also inputted by the user, and when the most recent guess returns a value
    *  <= epsilon, then the hasMoreGuesses() method should return false.
    public class RootApproximator
       /** Takes the inputted values from the tester to construct a RootApproximator.
        * @param val the value of the number to be squared and guessed.
        * @param eps the gap in which the approximation is considered acceptable.
         public RootApproximator(double val, double eps)
              value = val;
              square = Math.sqrt(val);
              epsilon = eps;
       /** Uses the algorithm where 1 is the first initial guess of the
        *  square root of the inputted value. The algorithm is defined by
        *  "If X is a guess for a square root of a number, then the average
        *  of X and value/X is a closer approximation.
        *  @return increasingly closer guesses as the method is continually used.
       public double nextGuess()
             final int TRIES = 10000;
             double guess = 1;
              for (double i = 1; i < TRIES; i++)
                   double temp = value / guess;
                   guess = (guess + temp) / 2.0;
              return guess;
       /** Determines if there are more guesses left if the difference
        *  of the square and current guess are not equal to or less than
        *  epsilon.
        *  @return the value of the condition.
       public boolean hasMoreGuesses()
              return (square - guess <= epsilon);
       private double square;
       private double value;
       private double epsilon;
       private double guess;
    here is the tester:
    public class RootApproximatorTester
       public static void main(String[] args)
          double a = 100;
          double epsilon = 1;
          RootApproximator approx = new RootApproximator(a, epsilon);
          System.out.println(approx.nextGuess());
          System.out.println("Expected: 1");
          System.out.println(approx.nextGuess());
          System.out.println("Expected: 50.5");
          while (approx.hasMoreGuesses())
             approx.nextGuess();
          System.out.println(Math.abs(approx.nextGuess() - 10) < epsilon);
          System.out.println("Expected: true");
    and here is the output:
    10.0
    Expected: 1 // not sure why this should be 1, perhaps because it is the first guess.
    10.0
    Expected: 50.5 // (100 + 1) / 2, average of the inputted value and the first guess.
    true
    Expected: true
    i'm new to java this is my first java course and this stuff is frustrating. i'm really clueless as to what to do next, if anyone could please give me some helpful advice i would really appreciate it. thank you all.

    i'm new to java this is my first java course and this
    stuff is frustrating. i'm really clueless as to what
    to do nextMaybe it's because you don't have a strategy for what the program is supposed to do? To me it looks like a numerical scheme for finding the squareroot of a number.
    Say the number you want to squarerroot is called value and that you have an approximation called guess. How do you determine whether guess is good enought?
    Well in hasMoreGuesses you check whether,
    (abs(value-guess*guess) < epsilon)
    The above decides if guess is within epsilon of being the squareroot of value.
    When you calculate the next guess in nextGuess why do you loop so many times? Aren't you supposed to make just one new guess like,
    guess = (guess + value/guess)/2.0
    The above generates a new guess based on the fact that guess and value/guess must be on each side of value so that the average of them must be closer too value.
    Now you can put the two together to a complete algoritm like,
    while (hasMoreGuesses()) {
       nextGuess();
    }In each iteration of the loop a new "guess" of the squareroot is generated and this continues until the guess is a sufficiently close approximation of the squareroot.

  • Confusion with DX80 directory and contacts

    We just received two new Cisco DX80.
    I have to say I am a bit confused by many thing, one being the directory/contact. When the endpoint is registered on the CUCM (9.1.2), synched with Exchange and Jabber CUP server, a "Cisco UCM account" and "Cisco Directory Credential" are setup on the DX80... which directory and contact list is it using? and can we control it?
    When I am in Jabber and search for people, I can only find people in my Jabber contacts. When I am trying to add contact I can't find any
    When I'm on the "phone", the contacts seems to be my Exchange contacts. So depending on when I'm on the DX80 phone or on Jabber application, the contact list are different which is confusion. Consitency accross application would be nice. If the mail contact is using Exchange contact I would find it normal but that two Cisco UC applications are using different contact lists, I find it very confusing.
    When I'm on the "phone" and use Directory, which directory is it looking into?
    I have to say that overall the first DX80 experience is quite confusing

    Hello Matthieu,
    yes, I agree with you, it is not ideal, its multiple applications which seem to behave different them selfs,
    have different localization (the phone part is here for example localized, where the jabber part is not)
    and then in addition they behave different depending on the deployment, configuration, services and status, ....
    We are looking into a bigger roll out and these are definitely things we are investigating about how to deply
    especially to improve usability and limit the need for support requests

  • Having a few issues with several programs (tor / mpd / ccm..)

    Hey everybody,
    I'll arrange this post in 3 parts since I have 3 different kinds of "major" problems or questions .
    1st ( tor - privoxy - polipo - iptables )
    I somehow found this article in your wiki and therefore tried to get tor and privoxy up and running on my desktop machine, as this didn't work as I hoped it would I searched farther in the wiki and installed and configured (as far as I've thought of) polipo and iptables.
    Now I've put all 4 of them in my rc.conf, but somehow some of my http connections don't seem to work in chromium while iptables is running (https works fine though [e.g. archwiki works, youtube doesn't]).
    I did everything as suggested in the polipo wiki entry, meaning I changed my /etc/iptables/iptables.rules to
    *nat
    :PREROUTING ACCEPT [0:0]
    :POSTROUTING ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    -A OUTPUT -p tcp --dport 80 -m owner --uid-owner polipo -j ACCEPT
    -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8123
    COMMIT
    and removed all proxy settings from my browser - meaning all corresponding flags in the startcommand. I also added "forward / localhost:8123" to the privoxy config and changed the polipo configuration according to the wiki in order to work with tor (the socksParentProxy, socksProxyType part).
    now the next problem - that might probably be related to the first - is that my privoxy doesn't load in daemon mode anymore.
    I think it's since I've installed polipo that privoxy began to refuse starting together with the other daemons
    [usR@machine ~]$ privoxy
    Apr 23 00:20:56.459 b75086c0 Fatal error: can't check configuration file '/home/usR/config': No such file or directory
    this is the output I get when I try to start privoxy in normal user mode from the terminal, when I try starting the daemon manually (/etc/rc.d/privoxy start) it says
    touch: cannot touch `/var/log/privoxy/logfile': Permission denied
    chgrp: cannot access `/var/log/privoxy/logfile': Permission denied
    chmod: cannot access `/var/log/privoxy/logfile': Permission denied
    touch: cannot touch `/var/log/privoxy/jarfile': Permission denied
    chgrp: cannot access `/var/log/privoxy/jarfile': Permission denied
    chmod: cannot access `/var/log/privoxy/jarfile': Permission denied
    Apr 23 00:22:34.490 b76396c0 Fatal error: Cannot setgid(): Insufficient permissions.
    [/var/log/privoxy belongs to privoxy:adm]
    when I do the same in sudo mode it just fails without displaying an error message..
    I added this code to the /etc/rc.d/privoxy executable but I still get this owner conflict error and I have no idea what might be causing it.
    if [ ! -d /var/log/privoxy ]
    then
    mkdir /var/log/privoxy
    touch /var/log/privoxy/errorfile
    touch /var/log/privoxy/logfile
    chown -R privoxy:adm /var/log/privoxy
    fi
    If the order of the daemons in rc.conf is of any real importance here a copy of my setup
    ( @polipo @privoxy @syslog-ng !set-hw-addr !iptables @network netfs hddtemp @crond hal dbus @alsa @slim @tor )
    2nd ( mpd & mpc )
    I'm just wondering if there's a way to output the position of a track in the current playlist combined with a search. since mpc search <type> <query> only prints out full file path and name, but not the position in the playlist so that you could play it with mpc play. I thought of a method to print out the whole list with mpc playlist and pipe this output into a listing program, than grep out the song I'm looking for all that in a little bash script, to replace mpc search.
    Is there an integrated mpc search function that works the way I imageine it and my idea therefore redundant, or if not, is it realizable the way I picture it; does such a listing program exist?
    3rd ( cairo-compmgr )
    Since I'm already posting here I thought I'd mention my older problem which I  still couldn't solve.
    1st) I need to start cairo-compmgr(-git) in sudo mode to be able to edit any settings or activate the gui in any way. how do I automatically start the program on startup in sudo mode? I tried editing ~/.fluxbox/startup & ~/.fluxbox/init, even tried adding it in /etc/rc.d/ and /etc/rc.conf in order to start it as a daemon (lol, noob) but none of that worked properly obviously Any ideas? I don't want to start it manually and "waste" a terminal window for that every time I boot.
    2nd) I can change opacity (transparency) in both versions only per hotkey, and when I do so the settings don't get saved, they even get reset to normal opacity as soon as another window gets selected. does anybody know if there's a config file or any way to save opacity settings for certain windows & programs, so that they automatically get loaded when cairo starts and stay applied until it gets closed?
    [or generally: how do I configure the Plugins? ]
    the last "problem" which occurs only with cairo-compmgr-git:
    When I rightclick the ccm icon in the task bar and disable the composite desktop, the whole program kills itself oO
    In the old version the option "Composite desktop"'s box just got un-checked and I could easily restart ccm by rightclicking the logo again and re-enabling the "Composite desktop" option.
    Any clues on that by any chance?
    I'm using Fluxbox by the way, if that's of any importance for any of the problems. hope I didn't forget any important information if so please remind me
    Would be thankful for any kind of help
    have a nice weekend
    deF
    //edit:
    concernig the tor / privoxy problem, I managed getting all the daemons to start up at bootup again, my iptables situation remains the same though.
    I went through all the config files again and played around with chown and chmod a little and for now the system is stable, everytime I reboot all the daemons start without any problems.
    but when i start chromium with --proxy-server=localhost:8118 now, I get the following error message
    The following error occurred while trying to access http://torcheck.xenobite.eu/index.php?:
    504 Connect to torcheck.xenobite.eu:80 failed: SOCKS error: network unreachable
    Generated Sat, 23 Apr 2011 04:49:08 CEST by Polipo on archzor.localdomain:8118.
    notably with all programs running now, tor, polipo, privoxy (and by now dansguardian as well)..
    I'm tired so I'll go asleep now, maybe I'll find something tomorrow in the logfiles or whatever, so far:
    every kind of help is still very appreciated
    ²
    /var/log/polipo/polipo.log
    Disabling disk cache: No such file or directory
    Couldn't bind: Address already in use
    Couldn't establish listening socket: Address already in use
    Couldn't bind: Address already in use
    Last edited by deF291 (2011-04-23 03:13:48)

    okay I've finally been able to get tor and all the other programs to work according to my plan the only thing that's still making problems is that iptables doesn't work as I want it to, when I start chromium without proxy settings privoxy doesn't seem to forward the information to polipo.. do I need to add another rule to iptables.rules in order for the program to know it has to reroute the information again or how can I get this to work? and is there any way to run rtorrent with proxy support?
    anyway, problem 2 and 3 are still to be solved.
    and does anybody know where i can get a good dansguardian blacklist that was not designed for 6 year old children and for which I don't need to subscribe? I'm still getting these partypoker popups -.-
    //e: with iptables it's the same thing as described in the first post. https works, http doesnt. I get the output "Invalid header received from client." on http sites. still no idea why though.. (and the https-version of torcheck.xenubite says i'm tor unprotected while starting the browser with iptables)
    Last edited by deF291 (2011-04-23 16:16:31)

  • I am very confused. When I wanna to update my apps in app store, it shows the account which is my iPhone one is not my iPad one. how can I reset to my iPad account?

    I am very confused. When I wanna to update my apps in app store, it shows the account which is my iPhone one is not my iPad one. how can I reset to my iPad account?

    And I am very confused by your query. Your iTunes account is the same on all devices - unless of course you have multiple accounts to begin with.
    If you do have another Apple ID that you use for the iPad purchases, you can sign out of the account that is on the iPad in Settings>Store.
    Perhaps a few more details from you could clear up the confusion???

Maybe you are looking for

  • How to use Dynamic Internal table

    Hello, I have a requirement where I need to pick a field from final internal table and display that field as ALV columns and I have to pick another field in the same INternal table to display it as a corresponding value for each header DYNAMICALLY. l

  • Error on PROXY to FILE scenario

    Hi, I'm working on a Proxy to FIle Scenario. 1 Proxy is triggered and 7 files should be generated at the target side. Now when the proxy is triggered all the 7 files doesn't get generated. Instead randomly some 3-4 files are getting generated. Could

  • Reader got "not responding" for a minute after click a hyperlink in PDF document

    Hi.  Anyone got similar experience that the Reader hanged for a while after clicked a hyperlink (to an internal website)?  From the NetMon trace, it showed that the Reader made query to our internal DNS with an unknown FQDN (just "com.hk"), then wait

  • How to unzip a zip file within another zip file

    I've got code that successfully processes a file within a zip file. But now the zip file can also contain other zip files. How can I process a zip nested within a zip without actually extracting the files? It looks like I need a ZipFile object to be

  • DIV Confusion... Basic help for a measly beginner

    Hi all.. Tried   searching but couldn't find anything - perhaps due to my lack of   knowledge of what terms to search for, so apologies if something like   this has been posted :S I am making my first website   myself after watching and learning from