Uzbl, help a newbie!

Thanks for coming in~! Prepare for newbie questions!
I want to make the switch from Chromium to Uzbl for a majority of my browsing.
I have used Uzbl on a live Ubuntu environment and the loading is incredibly fast. Even the initial page and all following pages. However on Arch the initial loading of Uzbl-tabbed is not as fast (understandable if this is a dependency issue). My problem isn't with the loading of the Uzbl window, it's with the loading of the actual web pages.
I load pages very quickly on Ubuntu (around 1 second for most pages). On Arch I sometimes wait 3~6 seconds while the page loads (the meter sits at 100%) and finally it budges and loads the page. Sometimes it doesn't even load the page and I have to refresh.
I use the default config that is used when you install Uzbl-core, Uzbl-browser and Uzbl-tabbed. Ubuntu doesn't use any of those, it has simply "uzbl" and I am not sure what it's based on. I assume the page loading speed must be a config problem with the Arch install or something. I am at work so I can't posy my config file yet, so sorry about that!
Does anyone know what I should do about this?
Another question, I don't like typing 'uzbl-tabbed' to load the browser with tabbing enabled. As a matter of fact I don't like writing anything longer than uzbl, so I am wondering if the only way around this is to write a simple bash script that will run 'uzbl-tabbed &' when I use uzbl. I don't use many other arguments when I run it, so having a shorter command would be much better and the default packages in the AUR doesn't seem to use the short uzbl command.
Another newbie question, what happens to the Uzbl cache and temp files? I know it keeps cookies by default, but how does it handle the cache and emptying?

Google wrote:
Here's a newbie question. I put the alias inside ~/.bashrc ? I have but it isn't working. I am looking around for an answer, was afraid to ask
edit:
It appears to work now. I guess it just took a while. Thanks, I should have read more about .bashrc, it's really nice to be able to make an alias so simple.
Thanks!
Now I just need to fix the speed and get a hint style script.
If you ever in the future change some aliases, your new aliases will not work in the terminals that were already open before you added/changed the aliases. They will work in all subsequent terminals. However, you can still have your new aliases show up in existing terminal sessions by doing
source ~/.bashrc
Also, look into xbindkeys, you won't regret it.
Last edited by Inxsible (2010-07-01 17:10:36)

Similar Messages

  • Help a newbie 2 Yosemite.

    Help a newbie 2 Yosemite.  I just bot a new Mini as my old 1 (7 yrs) wouldn’t dwn load new up-dates written in Intel.  The programs of mail/Safari/ &c. are all different & I’m @ a total loss.  I’m a nerd, not a geek.  I need simple “how 2s”.
    Like how to sort mail, what do the function buttons access (F12 ain’t Google a’more).  Are there other grps I can go 2 directly 4 kindergarden  answers?
    Pls e-mail me ***** .  I don’t even kno if I can get bak here.
    <Email Edited by Host>

    Like dz Yose have "spaces" like Lion?
    They are now called Desktops.
    Mission Control - Mac Basics
    Mission Control preferences - OS X Yosemite

  • Please help a newbie.  Can not get color replacement to work

    Hello,
    Let me start off by saying that I am a newbie to PS in general.  I have been on the software for a short period of time.  I was working with some images and I was making layers trying to bring color out of BW photos (make a BW layer and use the brush to get the color back in certain areas).  I installed RAW 5.3 and now when I make a BW layer I can not make the adjustments on the layer any longer.  I get an error message stating I can not make adjustments to the layer.  But in all the manuals I have it states to make the adjustments on the layer.  I am really confused.  I am looking at my plug ins on PS "homescreen" and there are 2 Camera RAWs (5.3 and 5.0).  I was wondering if I delete 5.0 that may help (how can I do this).  Also, I can make a color picture and remove the color from the main image, but that would just take too long to only bring out the color in a small area.  I am wondering why this process is now "reversed" 
    Also, is there a setting that may not be right to make the color replacement on the layer that may not be right on my computer.  Again, all this started right after installing RAW 5.3.  I am running an iMac OS X v10.5.7.
    I am sorry if I am leaving some information out, but I am a newbie and do not know what other information might be useful.
    Thanks for any help, and please let me know if there is additional information that you may need to help me.
    Thanks,
    Mike

    Camera RAW 5.4 is the newest

  • Help needed- newbie trying to setup xerces XML pasrer

    Hello all,
    I am new to Java and XML.
    I am trying to write a simple java program that will use the xerces parser and will read the XML file.
    I have installed xerces 2.8.0 and put in on a specific location on my hard drive.
    I also added the xercesImpl.jar file to the CLASSPATH variable.
    I am trying to compile this code:
    import org.xml.sax.XMLReader;
    public class SAXParserDemo {
    public void performDemo(String uri) {
    System.out.println("Parsing XML File: " + uri + "\n\n");
    // Instantiate a parser
    XMLReader parser = new SAXParser();
    public static void main(String[] args)
    if (args.length != 1)
    System.out.println("Usage: java SAXParserDemo [XML URI]");
    System.exit(0);
    }//IF
    String uri = args[0];
    SAXParserDemo parserDemo = new SAXParserDemo();
    parserDemo.performDemo(uri);
    }//MAIN
    The error I get is on this line : XMLReader parser = new SAXParser(); stating that it cannot find SAXParser.
    What am I doing wrong? is there something else I need to import?
    Help will be much appreciated.
    Sorry for the newbie question.
    Cheers,
    Mike

    The error I get is on this line : XMLReader parser =
    new SAXParser(); stating that it cannot find
    SAXParser.
    What am I doing wrong? is there something else I need
    to import?Well, yeah. Your code shows you already know how to use the "import" statement. The compiler says it can't find SAXParser, and you correctly suspect that you need to import something. So the logical step: you need to import SAXParser.
    But you don't know what package it's in, right? Well let me just look it up in the API documentation for you... here it is... javax.xml.parsers.SAXParser. Take note of the existence of documentation for the next time you have this sort of question.
    http://java.sun.com/j2se/1.5.0/docs/api/

  • Trying to create install script in PackageMaker...help for newbie

    Hello,
    I am trying to deploy a solution as an install package. Currently, there are 3 items inside the folder that needs to be installed in the /Applications folder. This in itself is easy. However, when I create upgrades to the solution, I want to carry over one file from the previous installation to the new one. Is there a way to have this upgraded version install and instead of removing all of the earlier files, can it install the new files (which are 3) and carry over 1 of the other files.
    I hope this makes sense. Thanks for any input or sample scripts that I may be able to modify to accomplish this.
    Thanks,
    Stephen

    Thanks for your time!
    Perhaps it would help if I explain a little further my situation and what I am trying to accomplish.
    I have a database runtime solution that I want to distribute. I have all of the necessary files in a single folder, let's say, named "Progam 1.2". Since whenever I upgrade this version, I need to have the old data file from the previous version on hand to import into the new file, I create a new folder called "Program 1.3" So after the installation, I would have both folders. The user then opens the new version and the program then will import the previous versions data. At that point the user may delete the previous version folder entirely.
    My question is how can accomplish an install so that the new version will not overwrite the previous folder "Program 1.2" when installing the upgrade to "Program 1.3" since I need the data file for updating the data. Ideally, I would love to have the new folder installed and the single data file in the previous version folder be copied to the new versions folder and be renamed to "Previous Data" so that the new version can update the data.
    Again, I am a complete newbie in this arena and have simply been doing DMG files where the user copies the new version to the applications folder. But if there was a way to automate this installation more, I would like to do that.
    Thanks again for your help!
    Stephen

  • Please help the newbie!

    I've created a photo gallery in Flash CS3 that contains 2 UI
    Loaders (one for a graphic title for the image, and one for the
    image itself) and have tested it and it works fine. I even
    published the file as an independent html file and it seems to work
    fine when tested in the browser too. My problem is that when I
    place the .swf into my html page in dreamweaver and test it, the
    file shows up, but the loader info doesn't work. The images don't
    load.
    Here is the code I have set up in Dreamweaver -
    Within the head, I have this:
    <script src="../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    Within the body, I have this set up for where the swf gallery
    is supposed to be:
    <div id="content_main">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','911','height','540','title','Photo
    Gallery','movie','../flash/photography2','quality','high','loop','false','play','false'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="911" height="540" title="Photo Gallery">
    <param name="movie" value="../flash/photography2.swf"
    />
    <param name="quality" value="high" /><param
    name="LOOP" value="false" /><param name="PLAY" value="false"
    />
    </object></noscript>
    </div>
    Can anyone help? Thanks so much. I appreciate any help I can
    get.

    Two suggestions -
    1. Please help yourself by using a subject line that is
    descriptive of your
    question/issue. Can you imagine how many posts there are that
    have exactly
    this subject? Later when you want to find this thread, you
    will be deep in
    the mud of other newbie posts.
    2. When you post a question about problems with your layout,
    please always
    post a link to the uploaded page? That way we can all examine
    the page's
    behavior, look at the code, and give you a precise answer.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mjordan1965" <[email protected]> wrote in
    message
    news:[email protected]...
    > I've created a photo gallery in Flash CS3 that contains
    2 UI Loaders (one
    > for a
    > graphic title for the image, and one for the image
    itself) and have tested
    > it
    > and it works fine. I even published the file as an
    independent html file
    > and it
    > seems to work fine when tested in the browser too. My
    problem is that when
    > I
    > place the .swf into my html page in dreamweaver and test
    it, the file
    > shows up,
    > but the loader info doesn't work. The images don't load.
    >
    > Here is the code I have set up in Dreamweaver -
    >
    > Within the head, I have this:
    >
    > <script src="../Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    >
    > Within the body, I have this set up for where the swf
    gallery is supposed
    > to
    > be:
    >
    > <div id="content_main">
    >
    > <script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=9,0,28,0','width','911','height','540','title','Photo
    >
    Gallery','movie','../flash/photography2','quality','high','loop','false','play',
    > 'false' ); //end AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=9,0,28,0" width="911" height="540" title="Photo
    Gallery">
    > <param name="movie" value="../flash/photography2.swf"
    />
    > <param name="quality" value="high" /><param
    name="LOOP" value="false"
    > /><param name="PLAY" value="false" />
    > </object></noscript>
    >
    > </div>
    >
    > Can anyone help? Thanks so much. I appreciate any help I
    can get.
    >

  • [SOLVED] Uzbl help

    Hello!
    I just recently installed uzbl from http://aur.archlinux.org/packages.php?ID=25972 and works really great! Haven't gone through each function yet though. My problem is I was assuming that the default command to open a new uzbl window is :new_window http://google.com since I found the line below in the default config:
    set new_window = sh 'uzbl-browser -u $8'
    I've also tried:
    bind t _ = sh 'uzbl --uri %s'
    Not working too. Although when I enter the command:
    sh "uzbl-browser -u htt://google.com"
    It works just fine.
    Any help appreciated.
    Thanks!
    Last edited by dsdeiz (2010-02-12 02:37:00)

    TaylanUB wrote:
    mjheagle8 wrote:the command to start uzbl browser is <code>uzbl-browser</code>
    That, plus the fact that Uzbl doesn't have real "tab"s; but any number of instances you want running at the same time.
    There's plenty ways to simulate tabbed browsing though.
    Best to just go through the documentation.
    Oh, currently using the Tabbed layout of the wm i am using. What I did now is just made a keybind from xmonad to just spawn uzbl-browser. Not sure if it's the best way though I guess it's faster for me. If there are any other solutions, do tell. Thanks again!

  • Somebody help the newbie!

    Hi. its the first time i'm looking at java or ppo btw.
    well what i needed to know is how to create a vector, add things, delete things, from it and how to use it outside the class he was born in.
    oh and another very newbie quizz.
    whats the difference between the class and the constructor method?
    they both must have the same name i know, but in examples i've seen sometimes there are variables declared before the class, then others before the constructor and then others inside the constructor... im confused.
    help! :)
    thx

    O dear :-)
    OK the constructor of a class is often used to initialise parameters or setup something so for example
    class Test
    Private int number=0;
    public void Test()
    System.out.println("In contructor");
    number = 10;
    System.out.println("Number=" + number);
    As for the vector class you can only add objects not built in types.
    So you cant use it for ints but u you can for Integers.
    Add item
    vectorName.addElement((Integer)number);
    Return an item
    Variable = (Integer)vectorName.elementAt(0);

  • Help for Newbie setting up business

    Hi!  Total newbie here. Any help would be appreciated.
    I use a Mac.  I'm developing a web internet business.  I'm planning to install and use Adobe Scene 7 for all it's features. In reading about Adobe Scene 7 it says it is 'hosted'.  I am planning on using Earth Girl Hosting for my business and I was hoping that I could use Adobe Scene 7 while using Earth Girl hosting.  Does anyone understand if I can do this and is it problematic if I do? 
    What exactly do they mean by Adobe Scene 7 is hosted?  Does that mean they host your whole web site?
    Later on I was planning to take a course at SMU that uses and teaches Dreamweaver.  If I have Adobe Scene 7 installed and using it in my business, will I be able to use Dreamweaver too........will they interface okay?
    Thanks so much for any help......... break it down for me on the newbie level if possible!

    What exactly do they mean by Adobe Scene 7 is hosted?  Does that mean they host your whole web site?
    This means that the program that is used to develop the web site is operated from an Adobe server, the same server that will host the site.
    Later on I was planning to take a course at SMU that uses and teaches Dreamweaver.  If I have Adobe Scene 7 installed and using it in my business, will I be able to use Dreamweaver too........will they interface okay?
    No, you will not be able to just use Dreamweaver to continue maintenance of the web site that is created by Scene 7. There may be small parts that are visible in the browser that you can use in Dreamweaver, but the dynamic parts will not be available.
    If time is of essence, the low learning curve of Scene 7 will probably help you get on line quickly. After that, either maintain it using the same tools or forget about it and start producing real web sites with Dreamweaver or other compatible web authoring software.

  • Help! Newbie Assistance With Formulas!

    I am an admitted Newbie.  I'm fairly good with Excel - but switching to Numbers on my new iMac is making me nuts!
    I'm trying to do something really simple - but getting nowhere.  Apparently, from what I've read - there is a learning curve in working with Dates & Times in Numbers that I am not at all familiar with.  So I'll explain my dilemma and hope someone can help me:
    1)   I've got an Hourly Log that shows a date (Column A), start time (Column B), end time (Col C), and duration (Col D).
    2)   I've figured out how to get the Duration calculation done.
    3)   And I've figured out how to get a sum of the Durations with a typical =sum(C7:C18) formula.
    4)   What I can't figure out how to do - is to place the Durations formula in Column D so that - if there are no hours entered on a date, it will just be blank.  This is a problem, because I need to have the spreadsheet set up to automatically calculate if hours are entered - or leave a blank cell in D if there are no hours.  I tried to set it up to go ahead and show a "0" if no hours are entered - but then that gives me an error message in the Total that says "the values being added must be either all durations or all numbers. "
    In Excel (which I know, I shouldn't be mentioning - but this is all I know so far!) -- it would be an =IF formula -- but I can't seem to make anything like that work here.
    Any assistance would be appreciated!!  I'm desperate!
    Thanks --
        Kelly

    Thank you so much for your help, Wayne!  I believe that helped me solve the calculations issue - so I'm good there. 
    But I'm still having a huge problem understanding the Date/Time conundrum!  So - let me see if I can explain what I understand on that so far:
    a)  Any time a Time value is entered in a cell, it is automatically going to include (for example) today's date.  (I did notice that when I entered a time, it would add today's date - so I'm assuming that is what you're talking about on going back to look at the contents of a cell with a time value, and I'll see what date that time value was entered - right?
    b)  Using a Custom format, even though the date is technically "there" in the cell - I can get my spreadsheet to not show that.  (which I managed to do)
    c)  But that my hours - for example, if I'm calculating hours worked between 9am - 2pm -- I need to make sure the date is the same for both (whether it's showing or not), or it's not going to calculate correctly.  Is that right?
    I haven't figured out how to format the cell as text, though - and still have it calculation the Duration . . .?   In fact, when I format it as text -- it goes back to showing the whole date/time/am/pm info.  In short......
    ARGHHHHH!
    I'm leafing through manuals as quickly as I can, but oy - the learning curve!  If you could just let me know if my understanding thus far is correct - that would help tremendously!
    Thank you again!
       Kelly

  • Help a newbie: drawing shapes (but seeing it drawn in 'real' time)

    Hi guys,
    I'm a complete Java newbie, but I'm learning it for my senior project in physics that deals with strong field laser physics modeling. My question actually doesn't pertain to any of that though.
    I have a little applet that just draws a snowman, but my friend (who's a really good girl friend of mine) would like to see the shapes being drawn, like appearing from nothing, then being created as the applet runs. Does that make sense? I have no idea how to make something 'trace' or create or cirlce a rectangle slowly. Any help would be appreciative. Thank you.
    Adam

    Make it run slower, by putting about a jillion other threads continuously factoring random odd integers ;)
    Or re-write the line/circle drawing routines and put a pause between various steps.
    Another possible option is taking off the buffer, but this may still be too fast with a lot of flickering.
    Or just tell her you've got better things to worry about than lines drawing themselves slowly...

  • Help, Java newbie a little over my head with LDAP

    I'm actually a network admin but I've been dabling in Java for a little while now.
    I am trying to write an app that will allow me to insert and remove attributes to entries in Active Directory.
    I have found some sample code which I have altered to make a "proof of concept" before I start on the actuall app I want.
    The problem I am having is writing into the AD. I can query entries with no error but when I try a modification I get an "DSA is unwilling to perform" LDAPException. I am pretty sure it's not a permissions issue but from reading stuff on here I am begnining to think that it may have something to do with SSL connections. There is commented out code below where I experimented with this but I was unable to connect the the AD when this was in. "unable to connect to the directory server error".
    If anyone can offer me any advice I would be most grateful.
    package LDAPTest;
    import netscape.ldap.*;
    import java.util.*;
    import com.novell.service.ndssdk.jndi.ldap.ssl.*;
    // Simple program to experiment with searching LDAP
    public class FilterSearch
    public static void main(String[] args)
    if(args.length != 6)
    System.out.println("Usage: java FilterSearch " +
    "<host> <port> "+
    "<authdn> <password> "+
    "<basedn> <filter> ");
    System.exit(1);
    String host = args[0];
    int port = Integer.parseInt(args[1]);
    String authid = args[2];
    String authpw = args[3];
    String base = args[4];
    String filter = args[5];
    String[] ATTRS = {"memberOf"};
    int status = -1;
    //SSL experiment that would not connect to the AD server.
    //LDAPConnection ld = new LDAPConnection(new LDAPSSLSocketFactory("com.novell.service.ndssdk.jndi.ldap.ssl.LdapSecureSocketFactory"));
    LDAPConnection ld = new LDAPConnection();
    System.out.println("done connection");
    try
    //Connect to server and authenticate
    ld.connect(host, port,authid,authpw);
    System.out.println("Search filter = " +filter);
    LDAPSearchResults res = ld.search(base, ld.SCOPE_SUB, filter, null, false);
    //Loop on results until complete
    while(res.hasMoreElements())
    try
    //Next Directory entry
    LDAPEntry entry = res.next();
    prettyPrint(entry, ATTRS, ld);
    status=0;
    catch(LDAPReferralException e)
    System.out.println(e);
    continue;
    catch(LDAPException e)
    System.out.println(e.toString() );
    continue;
    LDAPAttribute atrib = new LDAPAttribute("memberOf", "CN=Tight VNC,OU=Staging Transmitter Channels,DC=marimba,DC=local");
    LDAPModification mod = new LDAPModification(LDAPModification.ADD, atrib);
    System.out.println(ld.isAuthenticated());
    try{
    // This is the code the throws the Exception DSA is unwilling to perform.
    ld.modify("CN=smstest0005,CN=MarimbaComputers,CN=Computers,DC=marimba,DC=local", mod);}
    catch(LDAPException e){
    System.out.println(e);}
    catch(LDAPException e)
    System.out.println(e.toString() );
    //Done, so disconnect
    if((ld!=null) && (ld.isConnected()))
    try
    ld.disconnect();
    catch(LDAPException e)
    System.out.println(e.toString());
    System.exit(status);
    public static void prettyPrint(LDAPEntry entry, String[] attrs, LDAPConnection ld)
    System.out.println("DN: " + entry.getDN());
    //Use array to pick attributes. We could have
    //enumerated them all user LDAPEntry.getAttributes
    //but this gives us control of the display order
    for(int i = 0; i < attrs.length; i++)
    LDAPAttribute attr = entry.getAttribute( attrs);
    if (attr == null )
    System.out.println(attrs[i] + " not present");
    continue;
    Enumeration enumVals = attr.getStringValues();
    //Enumerate on values for this attribute
    boolean hasVals = false;
    while ((enumVals!=null) && enumVals.hasMoreElements())
    String val = (String)enumVals.nextElement();
    System.out.println(attrs[i] + ": " + val);
    hasVals=true;
    if(!hasVals)
    System.out.println(attrs[i] + " has no values");
    System.out.println("----------------------");

    OK, I have learned a little about JNDI today and have attempted to implement this using JNDI instead.
    I am now getting the OperationNotSupportedException when attempting to add an attribute to an item in Active Directory.
    here's the code, can anybody who has managed to add data into AD help with this?
    cheers.
    package JNDI;
    import javax.naming.*;
    import javax.naming.directory.*;
    import java.util.*;
    class Getattr
    public static void main(String[] args)
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://hostname:389/");
    env.put(Context.SECURITY_PRINCIPAL, args[0]);
    env.put(Context.SECURITY_CREDENTIALS, args[1]);
    try {
    // Create the initial directory context
    DirContext ctx = new InitialDirContext(env);
    // Ask for all attributes of the object
    Attributes attrs = ctx.getAttributes("CN=smstest0005,CN=MarimbaComputers,CN=Computers,DC=marimba,DC=local");
    for (NamingEnumeration ae = attrs.getAll(); ae.hasMore();)
    Attribute attr = (Attribute)ae.next();
    System.out.println("attribute: " + attr.getID());
    /* Print each value */
    for (NamingEnumeration e = attr.getAll(); e.hasMore();System.out.println("value: " + e.next()));
    // Specify the changes to make
    ModificationItem mod[] = new ModificationItem[1];
    mod[0] = new ModificationItem(DirContext.ADD_ATTRIBUTE,
    new BasicAttribute("memberOf", "CN=Tight VNC,OU=Staging Transmitter Channels,DC=marimba,DC=local"));
    ctx.modifyAttributes("CN=smstest0005,CN=MarimbaComputers,CN=Computers,DC=marimba,DC=local", mod);
    // Find the surname attribute ("memberOf") and print it
    //System.out.println("memberOf: " + attrs.get("memberOf").get());
    } catch (NamingException e) {
    System.err.println("Problem getting attribute:" + e);

  • Please, help a newbie:  Question about animating expanding containers

    Hi All,
    Short Version of my Question:
    I'm making a media player that needs to have an animation for panels sliding up and down and left and right, and the method I've been using to do this performs far slower than the speed I believe is possible, and required. What is a fast way to make a high performance animation for such an application?
    Details:
    So far, to do the animation, I've been using JSplitPanes and changing the position of the divider in a loop and calling paintImmediately or paintDirtyRegion like so:
    public void animateDividerLocation( JSplitPane j, int to, int direction) {
    for(int i=j.getDividerLocation(); i>=to; i-=JUMP_SIZE) {
    j.setDividerLocation(i);
    j.validate();
    j.paintImmediately(0, 0, j.getWidth(), j.getHeight());
    The validate and paintImmediately calls have been necessary to see any changes while the loop is going. I.e., if those calls are left out, the components appear to just skip right to where they were supposed to animate to, without having been animated at all.
    The animation requirement is pretty simple. Basically, the application looks like it has 3 panels. One on the right, one on the left, and a toolbar at the bottom. The animation just needs to make the panels expand and contract.
    Currenly, the animation only gets about, say, 4 frames a second on the 800 MHz Transmeta Crusoe processor, 114 MB Ram, Windows 2000 machine I must use (to approximate the performance of the processor I'll be using, which will run embedded Linux), even though I've taken most of the visible components out of the JPanels during the animation. I don't think this has to do with RAM reaching capacity, as the harddrive light does not light up often. Even if this were the case, the animation goes also goes slow (about 13 frames a second) on my 3 GHz P4 Windows XP if I keeps some JButtons, images etc., inside the JPanels. I get about 50 frames/sec on my 3 GHz P4, if I take most of the JButtons out, as I do for the 800 MHz processor. This is sufficient to animate the panels 400 pixels across the screen at 20 pixels per jump, but it isn't fast or smooth enough to animate across 400 pixels moving at 4 pixel jumps. I know 50 frames/sec is generally considered fast, but in this case, there is hardly anything changing on the screen (hardly any dirty pixels per new frame) and so I'd expect there to be some way to make the animation go much faster and smoother, since I've seen games and other application do much more much faster and much smoother.
    I'm hoping someone can suggest a different, faster way to do the animation I require. Perhaps using the JSplitPane trick is not a good idea in terms of performance. Perhaps there are some tricks I can apply to my JSplitPane trick?
    I haven't been using any fancy tricks - no double buffering, volatile images, canvas or other animation speed techniques. I haven't ever used any of those things as I'm fairly new to Swing and the 2D API. Actually I've read somewhere that Swing does double buffering without being told to, if I understood what I read. Is doing double buffering explicitly still required? And, if I do need to use double buffering or canvas or volatile images or anything else, I'm not sure how I would apply those techiniques to my problem, since I'm not animating a static image around the screen, but rather a set of containers (JSplitPanes and JPanels, mostly) and components (mostly JButtons) that often get re-adjusted or expanded as they are being animated. Do I need to get the Graphics object of the top container (would that contain the graphics objects for all the contained components?) and then double buffer, volatile image it, do the animation on a canvas, or something like that? Or what?
    Thanks you SO much for any help!
    Cortar
    Related Issues(?) (Secondary concerns):
    Although there are only three main panels, the actual number of GUI components I'm using, during the time of animation, is about 20 JPanels/JSplitPanes and 10 JButtons. Among the JPanels and the JSplitPanes, only a few JPanels are set to visible. I, for one, don't think this higher number of components is what is slowing me down, as I've tried taking out some components on my 3GHz machine and it didn't seem to affect performance much, if any. Am I wrong? Will minimizing components be among the necessary steps towards better performance?
    Anyhow, the total number of JContainers that the application creates (mostly JPanels) is perhaps less than 100, and the total number of JComponents created (mostly JButtons and ImageIcons) is less than 200. The application somehow manages to use up 50 MBs RAM. Why? Without looking at the code, can anyone offer a FAQ type of answer to this?

    You can comment out the lines that add buttons to the panels to see the behavior with empty panels.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.Timer;
    public class DancingPanels
        static GridBagLayout gridbag = new GridBagLayout();
        static Timer timer;
        static int delay = 40;
        static int weightInc = 50;
        static boolean goLeft = false;
        public static void main(String[] args)
            final GridBagConstraints gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
            gbc.fill = gbc.HORIZONTAL;
            final JPanel leftPanel = new JPanel(gridbag);
            leftPanel.setBackground(Color.blue);
            gbc.insets = new Insets(0,30,0,30);
            leftPanel.add(new JButton("1"), gbc);
            leftPanel.add(new JButton("2"), gbc);
            final JPanel rightPanel = new JPanel(gridbag);
            rightPanel.setBackground(Color.yellow);
            gbc.insets = new Insets(30,50,30,50);
            gbc.gridwidth = gbc.REMAINDER;
            rightPanel.add(new JButton("3"), gbc);
            rightPanel.add(new JButton("4"), gbc);
            final JPanel panel = new JPanel(gridbag);
            gbc.fill = gbc.BOTH;
            gbc.insets = new Insets(0,0,0,0);
            gbc.gridwidth = gbc.RELATIVE;
            panel.add(leftPanel, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            panel.add(rightPanel, gbc);
            timer = new Timer(delay, new ActionListener()
                    gbc.fill = gbc.BOTH;
                    gbc.gridwidth = 1;
                public void actionPerformed(ActionEvent e)
                    double[] w = cycleWeights();
                    gbc.weightx = w[0];
                    gridbag.setConstraints(leftPanel, gbc);
                    gbc.weightx = w[1];
                    gridbag.setConstraints(rightPanel, gbc);
                    panel.revalidate();
                    panel.repaint();
            JFrame f = new JFrame("Dancing Panels");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(panel);
            f.setSize(400,300);
            f.setLocation(200,200);
            f.setVisible(true);
            timer.start();
        private static double[] cycleWeights()
            if(goLeft)
                weightInc--;
            else
                weightInc++;
            if(weightInc > 100)
                weightInc = 100;
                goLeft = true;
            if(weightInc < 0)
                weightInc = 0;
                goLeft = false;
            double wLeft = weightInc/ 100.0;
            double wRight = (100 - weightInc)/100.0;
            return new double[]{wLeft, wRight};
    }

  • Help a newbie with Keyboard events

    Right so I'm just getting started with ActionScript (and Flash) and I'm getting a bit confused. I've got quite a bit of experience programming in other languages but I've never touched either actionscript or flash before.
    I've got various books and have tried searching around the internet but I can't find anything to help me with this problem... it looks to me like it SHOULD work (but obviously I'm wrong because it doesn't!) I'm just trying to get the base for a game set up, and want to be able to take in user input via the keyboard (I will want mouse control as well, but let's focus on this problem first).
    My code is:
    package {
        import flash.display.MovieClip;
        import flash.events.*;
        import flash.ui.Keyboard;
        public class Main extends MovieClip
            var isRunning:Boolean = true;
            public function Main()
                trace("Flash Project!");
                Initialize();
                //Game Loop
                while(isRunning)
                    Update();
                trace("Exiting...");
            public function Initialize():void
                trace("Initializing!");
                stage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyPressed);
            public function Update():void
                trace("Updating...");
            public function OnKeyPressed(evt:KeyboardEvent):void
                switch (evt.keyCode)
                    case Keyboard.ENTER:
                        trace("Enter!");
                        break;
                    case Keyboard.ESCAPE:
                        isRunning = false;
                        break;
                    case default:
                        trace("keyCode: ", event.keyCode);
                        break;
    The errors it is generating refer to the OnKeyPressed function, and say that I have tried to access the undefined properties Keyboard, escape and default. I thought I imported all the keyboard stuff at the top? Help would be much appreciated here, I'll be fine once I'm up and running but at the moment I'm feeling somewhat lost.

    Right, well at least part of my problem was that I had
    trace("keyCode: " event.keyCode);
    instead of
    trace("keyCode: " evt.keyCode);
    but it still doesn't like the word "default"? This is strange as it's coming up in blue so it's obviosly recognising it as a keyword...
    If I comment out the 'default' section of te switch case statement it get's stuck in an infinite loop, even if I press escape... which should set 'isRunning' false therefore exiting the loop...
    Help!

  • Paid $60 - for a phone number rather than a subscription? Please chime in and help a newbie

    Hi, first a quick rant: I'm an EXTREMELY frustrated new user. I have spent the last hour trying to figure out what I just purchased and what I can do to get an explaination, but whoever created this website did so without a new user in mind. Quickly: I need help trying to determine what I just purchased and what to do from here. As Quickly as I can explain what's going on: My friend in Croatia told me he spent $60 for unlimited calling. He can apparently call anywhere to phones - as we made several calls to landlines in both the states and england from his computer. We've since left his place. As I'm traveling to many countries, I figured this was a great idea, I'll pay up front instead of purchasing credits. I whipped out my credit card and paid $60 after chosing a number. After about an hour, the transaction cleared on my account with a renewal in 12 months. I went to make a call and it said I didn't have enough credit. After trying to figure out what happened all I can determine is that I might have paid for the use of a phone number for 12 months and not a subscription. Now of course after trying for several hours trying to find out how to contact Microsoft or Skype - or Whatever help center - for the past hour and finding they deflect all help to their help pages that comes nowhere NEAR helping me or explaining what has happened - and if I made a mistake how to correct it. I apparently need to spend more money for a premium account to get actual advice or any kind of resolution. Any company that takes money and expects a new user just to GET it, without providing some human interaction is a horrid company. So I paid for something I didn't want and can't use. I THINK. But I can't request a refund or help because I haven't paid for a premium account. Can anyone shed some light on this? Thanks so much; I realize you're probably just a user of the service like myself.

    Skype Rip Off people on Renewal $30 Number $30 Calling Plan Why Skype and Microsoft Sucks: My Subscription Order No.[removed for privacy] paid and delivery but not working I would like to know why the subscription I bought is not available I can make phone calls please fix the problem Skype is not a solution but a big problem since microsoft took over very disappointing
    Yes they told me I will have to pay $30 for my number and $30 for my 12 months subscription now they said they did not they are liarsMy subscription is not working neither after several months tried to fix the problem no one from skype neither from Microsoft tried to contact me is very painful to paid skype for a phone services and they just do nothing but laughing in your face Skype and Microsoft let me tell you something in your face you both sucks big time you are nightmare what a pityI would love to sue skype since they are not providing with the service I contract with then my business is suffering for negligence in delivery my subscription that I bought but is not working long time ago I will follow a class action against skype please keep updatedPORT A SKYPE NUMBER http://community.skype.com/t5/Skype-Number/Port-Skype-Online-Number-to-another-provider/td-p/1529827https://consumercomplaints.fcc.gov/hc/en-us/articles/[removed for privacy]-Keeping-Your-Telephone-Number-When-Changing-Service-ProvidersWhen all is said and done Skype is a phone service provider and as such they must allow your number to move. It is required under Section 212 of the Small Business Regulatory Enforcement Fairness Act of 1996. The SBREFA '96 required portability in the largest 100 Metropolitan statistical areas. Then in 2003, the requirement was expanded to ALL carriers regardless of geographical location.
    In order for a number to be ported, roughly speaking you must live in the area code's geography. So, you can't port a New York number to Iowa.
    If you have a problem porting your phone number from one service provider to another, first try to resolve it with the service provider. If you cannot resolve the problem directly, you can file a complaint with the FCC. There is no charge for filing a complaint. You can file your complaint using an FCC online complaint form. You can also file your complaint with the FCC’s Consumer Center by calling 1-888-CALL-FCC (1-888-225-5322) or 1-888-TELL-FCC (1-888-835-5322) for TTY; faxing 1-866-418-0232; or writing to the Federal Communications Commission at:
    Federal Communications Commission
    Consumer and Governmental Affairs Bureau
    Consumer Inquiries and Complaints Division
    445 12th Street, SW
    Washington, DC 20554

Maybe you are looking for

  • Why do we get the data from a view to a report.

    hi why do we get the data from a view to a report. is it possible to get the data from a view in all the cases?

  • Use of different material types

    Hi Experts , My client is thinking of expansion of its plant . This new plant would be copy of their already existing plant at another location . Now some of materials for manufacturing finish materials are same in both plants but they both use diffe

  • Is there a size limit on the iPod for the song database file ?

    I have been running into the same issue for the last 2 weeks: Once I exceed 110 GB on my iPod Classic 160 GB, iTunes is no longer able to update the database file on the iPod. When clicking (on the iPod) on Settings/About, the iPod displays the wrong

  • Songs out of order on purchased album?

    This is a recent problem for me, but it's happening all the time lately. Here's the issue: the songs in my purchased folder are sorted by date downloaded, but in the past, when I've purchased an entire album from iTunes, the songs appear grouped in a

  • "Device Identifier is invalid" Error -200220 on Linux

    I searched the forums, but didn't see anything about this for Linux (Red Hat 4).  The issue is that when I try to create a virtual channel in the "DAQmxBase Create Channel" vi , I get the error message "Device Identifier is invalid", which is strange