Confusion over Context.list and listBindings

Sorry for this newbie question.
How do I list all the bindings I have created? Working on Windows, the JNDI service creates a file called .bindings, which holds all the bindings. I can bind, unbind, rebind and lookup fine. But I cannot list the bindings.
Here is sample code to illustrate what I mean.
import java.util.*;
import javax.naming.*;
import sun.jdbc.odbc.ee.DataSource;
public class Test {
    public static void main(String[] arg) throws NamingException {
        final DataSource ds1 = new DataSource();
        final DataSource ds2;
        final Hashtable env = new Hashtable(2);
        final Context ctx;
        // Bind a DataSource to the name "MyTest". The ".bindings" file
        // goes into "C:\My Documents".
        env.put(Context.INITIAL_CONTEXT_FACTORY,
                "com.sun.jndi.fscontext.RefFSContextFactory");
        env.put(Context.PROVIDER_URL, "file:C:/My Documents");
        ctx = new InitialContext(env);
        ds1.setDatabaseName(";FILEDSN=MyTest");
        ctx.bind("jdbc/MyTest", ds1);
        // Verify that the DataSource was saved where we can look it up.
        // I have used this method in several programs and it works
        // perfectly.
        ds2 = (DataSource) ctx.lookup("jdbc/MyTest");
        // Look up the current bindings.
        // This is the part where I'm doing something wrong.
LookUpCurrentBindings :
        for (final NamingEnumeration ne = ctx.list(""); ne.hasMore(); ) {
            final NameClassPair ncp = (NameClassPair) ne.next();
            // I expect the following to show "jdbc/MyTest", but instead
            // it lists the files in the directory "C:\My Documents".
            // For example, "desktop.ini" and ".bindings".
            System.out.println(ncp.getName());
}Thanks for your help!

Aha! I found out what the problem was. It was indeed to do with my "newbie" status in JNDI, not understanding some basics. If the .binding file is in a directory of its own, in this case jdbc, it works! Specifically:
(1) Create the context jdbc within the directory (this creates the directory C:/My Documents/jdbc).
(2) Bind the names within that directory (e.g. MyTest instead of jdbc/MyTest).
(3) The list() and listBindings() functions list both the .binding file (class java.io.File) and the bound objects (their correct classes, in this case sun.jdbc.odbc.ee.DataSource).
Here is the code that I used.
import java.util.*;
import javax.naming.*;
import sun.jdbc.odbc.ee.DataSource;
public class Test2 {
    public static void main(String[] arg) throws NamingException {
        final DataSource ds1 = new DataSource();
        final DataSource ds2;
        final Hashtable env = new Hashtable(2);
        Context ctx;
        // Create a context called "jdbc" within the base directory.
        env.put(Context.INITIAL_CONTEXT_FACTORY,
                "com.sun.jndi.fscontext.RefFSContextFactory");
        env.put(Context.PROVIDER_URL, "file:C:/My Documents");
        ctx = new InitialContext(env);
        try {
            // Find the "jdbc" directory as a Context.
            ctx = (Context) ctx.lookup("jdbc");
        } catch (NamingException e) {
            // Create the "jdbc" directory as a Context.
            ctx = ctx.createSubcontext("jdbc");
        // Bind the new DataSource in the context to the name MyTest.
        ds1.setDatabaseName(";FILEDSN=MyTest");
        ctx.bind("MyTest", ds1);
        // Verify that the DataSource was saved where we can look it up.
        ds2 = (DataSource) ctx.lookup("MyTest");
        if (! ds1.getDatabaseName().equals(ds2.getDatabaseName())) {
            throw new IllegalStateException("Oops, something funny happened.");
        // Add another binding, just for fun.
        ctx.bind("ForGoodMeasure", ds2);
        // Look up the current bindings. This displays the file .bindings
        // (class java.io.File) and the bindings within that file (class
        // sun.jdbc.odbc.ee.DataSource).
LookUpCurrentBindings :
        for (final NamingEnumeration ne = ctx.list(""); ne.hasMore(); ) {
            final NameClassPair ncp = (NameClassPair) ne.next();
            System.out.println(ncp.getName() + "\t\t" + ncp.getClassName());
        ctx.close();
}And here is the output.
.bindings               java.io.File
ForGoodMeasure          sun.jdbc.odbc.ee.DataSource
MyTest          sun.jdbc.odbc.ee.DataSourceBala, thank you so much for your input, which led me to the right answer. I shall pass a couple of Dukes your way.
Paddy

Similar Messages

  • Confusion over nested tables and system generated nested tables

    Hi,
    I have been reading other threads about nested tables, naming and updating them etc, but I have what seems
    to me some odd behaviour.
    I modified my schema to set the attribute xdb:maintainDom to be false for a collection and then registered
    the schema with the generate tables option defaulted to true. The result was that I had to add xdb:tableProps
    attributes specifying nested table storage at each element above the collection element, this was because Oracle
    was creating tables at each level. So I have this kind of thing:
    <xsd:element name="BibPt" xdb:SQLType="BIBPT_T"
      xdb:defaultTable="BIBPT"
      xdb:tableProps="NESTED TABLE XMLDATA.PTEES.PTEE_SEC.PTEE STORE AS NESTED_PTEE_SEC
    NESTED TABLE XMLDATA.INVS.INV STORE AS NESTED_INV_BIBPT TABLESPACE BIBLIO">
    <xsd:element name="Ptees" xdb:SQLType="PTEES_T" xdb:tableProps="NESTED TABLE
    XMLDATA.PTEE_SEC.PTEE STORE AS NESTED_PTEE_SEC2">When I did this the nested tables were created, but when I loaded data never had anything in them. Instead
    I found that nestes tables with systems generated names like "SYSNTxxxxxxxxx" has been created that contained
    the data.
    When I registered the schema without the tables being generated, I created a table with this syntax:
    create table poc_wip2 of xmltype
    xmlschema "http://www.derwent.co.uk/wpi.xsd" element "WPI"
    NESTED TABLE XMLDATA."BibPt".PTEES.PTEE_SEC.PTEE STORE AS NESTED_PTEE_SEC
    NESTED TABLE XMLDATA."BibPt".INVS.INV STORE AS NESTED_INV_BIBPT(Thanks to a posting by Sam Monsarrat which showed me this was possible).
    Now I had my named nested tables, which contained the data after it was loaded and no system named
    nested tables.
    So why the difference?
    In the first instance why do my named nested tables stay empty and why does the data go into system
    generated tables I have no control over as regards tablespace placement?
    Is it possible to have a XML schema registered that only generates tables that I have named with the defaultTable
    attribute, rather than all or nothing?
    And last but not least, what's the best approach for this, since I want to be able to access the data via indexes
    on the nested tables.
    Thanks
    Pete

    Hi Pete
    Would you please publish the schema you are using?
    Thanks,
    Tobias

  • Confused over video sizing and positioning

    I'm using FB 4.5.1 to create a mobile app and having a bit of trouble figuring out what's happening with sizing.  My stage is 480x800 so that's what I set my container to but no change in video size.  So I size the video but I have to use 320x240 to get the full width and aspect ratio... why?
    mps = new MediaPlayerSprite();
    var container:UIComponent = new UIComponent();
    container.width = stage.stageWidth;
    container.height = stage.stageHeight;
    addElement( container );
    container.addChild(mps);
    mps.width = 320;
    mps.height = 240;
    I tried using mps.ScaleMode = "letterbox"; but that didn't do anything and x,y is still 0,0. 
    I'm using an .flv file to test.  I've also tried a .mp4 but I only get audio with that and no video.  Suggestions greatly appreciated.

    Took a look and tried a number of approaches but still the same thing.  However, the example uses MediaContainers and LayoutMetadata and I was using the MediaPlayerSprite.  So, I took the entire project and put it into my program.  Different results, but not necessarily good.  The video is about 4x the size of the original (160x120) and its top is halfway down the screen.  I messed with StageScaleMode.NO_SCALE a little and got varying results, none of which are close.
    I'm wondering should I be using the sprite or do I need the full controls?  Is the fact that my project is for a mobile device a problem?  As such, I wasn't able to add the child to the stage, I had to create a UIComponent add that to the stage and then the MediaContainer to that.

  • Confused over Activation Date and Engineer Visit D...

    Placed an order for the full lot, phone, internet, TV. This is for a new development, with "BT lines pre-installed" (but not activated).
    I will recieve the equipment tommorow and the (estimated) activated is also tommorow, however I have just come to realised the scheduled engineer visit is not tommorow but the day after (Monday), this was moved/changed without notifying me.
    I gave BT a call, the kind gentleman on the phone suggested to me because it is a new development, chances of work needing to be carried out inside or anywhere within my property is extremely slim, maybe just to test. I agree here as it seems my neighbours all have working phone lines very quick with minimal hassle.
    For fun, I decided to give my own phone number a ring. It connects fine, but because there's no dial tone my phone didn't ring on the line; I assume the activation hasn't been carried out yet.
    So my query here is the activation carried out elsewhere or by another team, while the engineer just comes and checks if everything is ok? Best case scenario is that I recieve my equipment tommorow, mainly the phone/router and my phone and internet works when I whack it in, I could care less for the TV right now.
    Just to reiterate this is a new development/block of flats and the developers have done everything to make it as easy as possible, as initially they said "just give BT a call and they will activate it for you". I haven't questioned my neighbours yet on how they got their's so fast yet as due to my awkward working hours I can't easily get hold of them without disturbance.

    Hi there,
    The activation is usually done automatically (may take upto midnight on the day of activation) and then the engineer who will run tests on the line to check that it is stable will make sure it is in running order.
    Hope this helps.

  • Confusion over Skype numbers and forwarding

    I must be getting old because I cannot figure this out. I have a Skype number in USA, one in Japan and one in UK. I also have a worldwide call subscription. (I can call any landline, mobile or Skype account anywhere in the world free of charge (aside from the yearly charge I pay to Skype)) In addition, my business has a US/Can. toll free number. OK? Here is what I want to do. I want all calls to any of these numbers forwarded to my mobile iPhone in Japan. Can anyone help with a step-by-step on how to do this in the cheapest manner with the best call quality. I am assuming I can do this without any per call charges using my subscriptions above. Your help is greatly appreciated.

    editfast wrote:   I also have a worldwide call subscription. (I can call any landline, mobile or Skype account anywhere in the world free of charge (aside from the yearly charge I pay to Skype))
    Hello,
    To answer your query we would need to know which Subscription you have. (The Unlimited World Subscription does not include everything which you state above).
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Loop over a list of string separated by ;

    Hello,
    i have a list of string in a varchar2 separated by ;
    i wanna make a loop over this list and extract all string inside
    any one has an idea ?
    Thanks
    Regards
    Sallemel

    user10393090 wrote:
    Hello,
    i tried it, i got this error :
    PL/SQL: ORA-00904: "REGEXP_REPLACE": invalid identifierWell we have to assume you've got 10g or 11g unless you specify otherwise as lower versions are unsupported.
    SQL> select substr( the_string
      2                , decode( level, 1, 1, instr(the_string,',',1,level-1)+1)
      3                , decode( instr(the_string,',',1,level), 0, length(the_string), instr(the_string,',',1,level) - decode( level, 1, 0, instr(the_string,',',1,level-1))-1)
      4                ) the_value
      5                from ( select '10,12,20,30,30,3,12,12,56' the_string
      6                       from dual
      7                     )
      8                connect by level < length(replace(translate(the_string,'01234567890','00000000000'),'0')) + 2;
    THE_VALUE
    10
    12
    20
    30
    30
    3
    12
    12
    56
    9 rows selected.
    SQL>

  • Confusion over Native Query Result List

    I have this confusion over the field object of a resultList of a Native query. This is because it has contradicted the idea of the books for me.
    This is a pure example
    @SqlResultSetMapping(name="LoanCapitalization.reportMapping",
    columns={
        @ColumnResult(name="policy_number"),
        @ColumnResult(name="policy_holder"),
        @ColumnResult(name="amount"),
        @ColumnResult(name="outstanding_loan"),
        @ColumnResult(name="interest"),
        @ColumnResult(name="amount_to_date"),
        @ColumnResult(name="effective_date"),
        @ColumnResult(name="sub_system_code")
    @NamedNativeQuery(name="LoanCapitalization.aggregateStatement", query="SELECT   l.policy_number, l.last_name || ' ' || l.first_name as " +
            "policy_holder, l.amount, c.out_principal_bf as outstanding_loan, c.out_interest_bf as interest, " +
            "SUM (r.repayment_amount) as amount_to_date, c.effective_date, l.sub_system_code FROM loan l JOIN v_latest_capitalization c " +
            "ON l.loan_id = c.loan_id JOIN loan_repayment r ON l.loan_id = r.loan_id WHERE " +
            "c.effective_date BETWEEN ?1 AND ?2 GROUP BY l.policy_number, l.last_name, l.first_name, l.amount, " +
            "c.out_principal_bf, c.out_interest_bf, c.effective_date, l.sub_system_code order by l.sub_system_code, l.last_name",
            resultSetMapping="LoanCapitalization.reportMapping")and
    Query query = entityManager.createNamedQuery("LoanCapitalization.aggregateStatement");
            AggregateStatementLoanBalanceReportData data = null;
            List<AggregateStatementLoanBalanceReportData> returnList = new ArrayList<AggregateStatementLoanBalanceReportData>();
            query.setParameter(1, reportCriteria.getFromDate());
            query.setParameter(2, reportCriteria.getToDate());
            List<Object[]> resultList = query.getResultList();
            System.out.println("resultList.size() >>>>>>>>>> " + resultList.size());
            for (Object[] obj : resultList){
                data = new AggregateStatementLoanBalanceReportData();
                System.out.println("(String)obj[1] >>>>>>>>>> " + (String)obj[1]);
                System.out.println("(String)obj[2] >>>>>>>>>> " + (String)obj[2]);
                System.out.println("(String)obj[3] >>>>>>>>>> " + (String)obj[3]);
                System.out.println("(String)obj[4] >>>>>>>>>> " + (String)obj[4]);
                System.out.println("(String)obj[5] >>>>>>>>>> " + (String)obj[5]);
                System.out.println("(String)obj[6] >>>>>>>>>> " + (String)obj[6]);
                data.setPolicyNumber((String)obj[0]);
                data.setName((String)obj[1]);
    .......My first shocking surpise is that all the System.out.println() return nulls but
    System.out.println("resultList.size() >>>>>>>>>> " + resultList.size()); returned 1.
    so can anyone suggest what the problem may be.
    Regards,
    Michael

    I came across your post as I experienced the same problem. As I found no answers I tried different let's say stupid solutions.
    The one that solved my problem was to write the name for the @ColumnResult in capitals as I noticed that Oracle transforms the alias column names into capitals. I guess otherwise the mapping doesn't occur correctly.
    My example:
    @SqlResultSetMappings({
    @SqlResultSetMapping(
    name = "Customers.searchCustomers",
    entities =
    @EntityResult(entityClass = Customers.class)
    columns =
    @ColumnResult(name = "CONTACTDATE"),
    @ColumnResult(name = "CONTRACTDATE")
    String queryString =
    "SELECT c.CUSTOMER_ID, c.LAST_NAME, c.FIRST_NAME, c.OPU, c.CUSTOMER_CORE_ID, " +
    "to_char(con.CONTACT_DATE, 'yyyy-dd-mm') AS CONTACTDATE, to_char(contr.CONTRACT_DATE, 'yyyy-dd-mm') AS CONTRACTDATE " +
    "FROM CUSTOMERS c " +
    "LEFT JOIN CONTACTS con ON con.CUSTOMER_ID = c.CUSTOMER_ID AND con.ACTIVE = '1' " +
    "LEFT JOIN CONTRACTS contr ON contr.CUSTOMER_ID = c.CUSTOMER_ID AND contr.ACTIVE = '1' " +
    "WHERE c.CAMPAIGN_ID = ?1 AND upper(c.LAST_NAME) LIKE ?2 AND upper(c.FIRST_NAME) LIKE ?3";
    query = em.createNativeQuery(queryString,
    "Customers.searchCustomers");

  • About a month ago a song randomly appeared in my songs list and when I tried swiping to the left to delete the song it wouldn't slide over to show the delete button. The delete slide appears with all of my other songs except that one. P.S. iCloud is off.

    About a month ago a song randomly appeared in my songs list and when I tried swiping to the left to delete the song it wouldn't slide over to show the delete button. The delete slide appears with all of my other songs except that one. The ICloud songs are turned off and it wasn't iTunes Radio. 2 more songs like this have appeared and I can't delete them from both my iPhone or my computer (they don't even show up on my computer). If somebody knows how to fix this that would be amazing! Thank You.

    Have you:
    - Restore from backup. See:                                                
    iOS: Back up and restore your iOS device with iCloud or iTunes
      - Restore to factory settings/new iOS device.            
    If a PC
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8

  • I clicked the download all button at the end of the list of my library iTunes which i believe is in the iCloud, i have iTunes match also, many downloads were reported as occurring over several hours and then received the warning startup dis

    i clicked the download all button at the end of the list of my library iTunes which i believe is in the iCloud, i have iTunes match also, many downloads were reported as occurring over several hours and then received the warning startup disc is full (activity monitor shows 3.99 of 4 GB used) and then another stating the download had not occurred due to the disc being full. most of the tunes still appear to be in the cloud but the disc is said to be full, spent a good period of time trying to investigate what has happened but failed...I'm not well up on all of this as an old chap so any help would be wonderful.....

    unclefossil wrote:
    Thanks Michael, what is the best way of backing up, should buy a cheap standalone external hard drive rather than relying on the Time Capsule which is quite sensitive...
    If you read the link I provided you'll get an idea of one way to maintain a backup of your music files, use Time Machine, and not take up as much room on the internal HDD/SSD.
    unclefossil wrote:
    i live in the Scottish Highlands where Broadband is frequently intermittent disrupting backups.
    Your internet connection speed has no effect on Time Machine/Time Capsule backups. Since that is all done locally, over your wireless network you actually do not need an internet connection at all.
    unclefossil wrote:
    Also I wondered if I could increase the memory on the setup disk by replacing the 4GB card already in the MBP with 16GB cards, if I upgraded would that affect anything I have stored already like my iTunes?
    You're asking about the computer's RAM. Increasing that will not increase the size of the internal storage available to the computer. You'd need to replace the HDD/SSD of the Mac, which, depending on what model you have may or may not be possible (with new models of Macs).

  • HT1343 On my 4 1/2 year old Macbook I could select multiple files  by highlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    ghlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    Holding down the control key will invoke "right-click."
    Depending on the View, holding down Shift will with either toggle the selection (Icon View), or it will make a continuous selection from the previous selection (List View or Column View).
    The only way to make a continuous selection in Icon View is to drag out a selection marquee around or through the icons.
    I can't remember the behavior of previous OS's.

  • Help! Confusion over how to setup intel3945 wireless and rc.conf

    Hi,
    I'm very confused.  I've already read through all the wikis and searched many forum posts.  I can't get my wireless intel3945 to work on my dell vostro 1400.
    Iwconfig says the wireless card is at wlan0 and dmesg | grep iwl says it has detected it.  However, when I try a iwlist wlan0 scan it returns :
    wlan0 Interface doesn't support scanning : Network is down
    I think the problem is that I don't know how to setup rc.conf correctly or use the command line to test the wireless.  Forum posts say many different things on how this is done.
    These are the steps I have taken:
    uninstalled the ipw3945 and ipw3945-ucode and ipw3945d.
    installed iwlwifi and iwlwifi-3945-ucode
    in my rc.conf modules, added iwl3945.
    I'm not sure how to setup the networking section, this what I have now:
    lo="lo 127.0.01"
    eth0="dhcp"
    wlan0="dhcp"
    INTERFACES=(lo etho)
    gateway="default gw 192.168.1.1"
    ROUTES=(!gateway)
    And in my dameons I have 'network'.
    How can I scan for networks and connect to them on the commandline?  I'd prefer not to use a gui tool because they never work and never tell me why they're not working.
    Any help is greatly appreciated!
    Cheers!
    kilolima

    iphitus wrote:
    broch wrote:I have ipw3945 and iwl3945 working with wpa2 (or vpn)
    (less complicatd than the above)
    don't use netcfg2
    Why?
    no particular reason.
    Simply when I configured wireless, netcfg2 wasn't available. Since then it (wireless) works, so not having any problems, I did not modify network setup. Next week or so I am going to install Arch on my daughter's laptop (per her request ) so I will try netcfg2.
    So this is what I have for ipw3945 wpa2 or iwl3945 with wpa2
    Below you will find a lot of words so read slowly but there is not much actual work
    ipw3945 setup
    kernel 2.6.23.x (Arch or vanilla)
    or
    kernel 2.6.24/2.6.24-gitX (patched with ipw3945 patch from gentoo -> compiling separate module for 2.6.24 may fail. if you want kernel patch I can post a link)
    for default kernel install Arch packages for ipw3945, ipw3945d, ipw3945-ucode
    or
    if you want to compile modules, you will also need ieee80211 (first uninstall kernel's default, then install from sources otherwise ieee80211 from sources may refuse to install)
    modify /etc/rc.conf
    DAEMONS=(.... @ipw3945d @network ....)
    that is all you don't need to add ipw3945 to MODULES=(.....)
    because ipw3945d will automatically start ipw3945 module
    do not list eth1 in network config section:
    lo="lo 127.0.0.1"
    eth0="dhcp"
    INTERFACES=(eth0)
    as you see, in my case only eth0 (wired) is listed and eth1 (wireless) is not listed
    now you are done with basic network configuration for ipw3945, restart network/computer to bring up ipw3945d/ipw3945
    check if modules are up and basic network is set:
    #lsmod | grep ipw
    #ifconfig -a
    or
    #iwconfig
    if all is o.k. configure
    WPA2:
    configure router for wpa2
    client: basically follow Arch wiki:
    configure wpa_supplicant (installed already of course)
    #wpa_passphrase your_ssid your_psk
    keep terminal window open with created encrypted wpa passphrase  and in the second terminal window edit /etc/wpa_supplicant.conf
    ctrl_interface=/var/run/wpa_supplicant
    network={
            ssid="your_ssid"
            scan_ssid=1
            proto=WPA RSN
            key_mgmt=WPA-PSK
            pairwise=CCMP TKIP
            group=CCMP TKIP
                    psk=whatever_output_from_wpa_passphrase
    Above pairwise and group setup will depend on your router (network capabilities)
    almost done:
    run
    #wpa_supplicant -Bw -Dwext -i eth1 -c/etc/wpa_supplicant.conf
    the above assumes that your ipw3945 is set as eth1 (from iwconfig output)
    to connect to the network I am using "wireless assistant" http://www.kde-apps.org/content/show.ph … tent=21832
    that is all for ipw3945. You may automate network starting/connecting to wpa2 by writing simple script.
    iwl3945
    --kernel 2.6.23.x
    install iwlwifi and iwlwifi-3945-ucode
    --kernel 2.6.24.x
    install only iwlwifi-3945-ucode as kernel has iwlwifi module incorporated
    default iwlwifi does not support LED so I suggest to install something like knemo for kde to show active network icon. The latest iwlwifi does support LED but it is not yet incorporated into 2.6.24 vanilla kernel.
    if you have kernel 2.6.23.x with external iwlwifi module
    modify /etc/rc.conf
    and add iwlwifi to
    MODULES=(.....)
    nothing else is required.
    if you have kernel 2.6.24 with integrated iwlwifi module you don't have to edit /etc/rc.conf
    As in the case of ipw3945, I do not list wireless interface (wlan0) in /etc/rc.conf
    for kernel 2.6.23.x
    load module/restart network or simply restart computer
    check if module is up
    #lsmod | grep iwl
    #iwconfig
    or
    #ifconfig -a
    WPA2
    same wpa_supplicant.conf as above, so if you already have it no need for modifications.
    start wpa2
    #wpa_supplicant -Bw -Dwext -i wlan0 -c/etc/wpa_supplicant.conf
    the only difference in the command is wireless interface: wlan0
    connect to the network, again I am using "wireless assistant"
    vpn
    I am using cisco vpn. Client is provided by vpn host, cisco does not provide vpn client for individual download, but you can find it on line.
    vpn host will provide pcf file for you
    - install vpnclient
    - copy your VPN profile (vpn.pcf) to the
    /etc/CiscoSystemsVPNClient/Profiles
    directory
    -- start vpn client
    /opt/cisco-vpnclient/bin/vpnclient connect vpn pcf_file_name
    provide username and password and off you go
    From my experience none of linux gui for vpn works reliably so you will have to resort to the command line.
    That is all, a lot of writing, but actual ipw3945 and iwl3945 configuration is straightforward and very short.
    Hopefully this will work for you.
    forgot to add regarding vpnclient (cisco)
    you will have to modify
    /etc/init.d/vpnclient_init
    line 38 and line 101
    replace
    /sbin/lsmod
    with
    /bin/lsmod
    Last edited by broch (2008-02-07 15:55:45)

  • Confusion with mail.app and Gmail using imap

    I've had a yahoo.com email address for years, and pay for Mail Plus and POP3, which I frankly don't even use. Now that I've confirmed, however, that I can successfully forward emails from my yahoo box to my new gmail box, I'd like to look into setting up mail.app for the gmail account using imap. Like most people, I access my mail from several places (home & work computers, Touch, and others), and imap makes sense as the right way to go.
    Last night I tried to set things up on mail.app on the Mac, and boy was it confusing in terms of the folders, etc. Is there someplace someone can point me for a sort of "beginner's guide to setting up Gmail/imap with mail.app"? Hopefully this "guide" would give me some hints on setting up various rules, etc. that would allow me to have a setup that makes sense: only one copy of emails, sent items in the sent items folder, etc.
    One more thing: can I set up Gmail/imap with more than one email client? For example, can I use mail.app at home and Thunderbird on the Windows computer in my office? And how is the creation of new folders (or labels, I guess, as Gmail calls them) on the web handled by mail.app (or Thunderbird)? I'm guessing that a new label created on Gmail on the web doesn't automatically result in a folder being created in mail.app (or Thunderbird), or does it? If this is correct (no folder created in mail.app until I create it on the Mac), is the message that was moved to a folder on the web found in mail.app in the All Messages folder (or whatever it's called)?
    Sorry for the basic nature of these questions...this all seems pretty complicated, and I'd like to get it right the first time. Thanks.

    BTW Thanks for the "head's up" that GMail now supports IMAP (I've been waiting for it!)
    I'm not sure what your confusion is, other than maybe the confusion between how folders and messages work in Outlook versus Apple Mail and IMAP. I've used both, and several other mail programs over the years.
    IMAP permits you to have directories which contain message folders. I make the distinction, because Outlook allows you to message folders which contain messages AND other message folders. I believe most implementations of IMAP do not allow messages inside of directories. Thus, a directory looks like a message folder, but it may only contain message folders, and not individual messages.
    Now, GMail appears to create message folders for each label you define in GMail, and messages which have several labels appear in each folder. If you copy the folders to your computer, you WILL have multiple copies of those messages, however if you leave them on the server, GMAIL does all the work and you only have one copy of each message.
    Special folders in GMail are all located in the directory [Gmail] and include the message folders "All Mail", "Drafts", "Sent Mail", "Spam", "Starred" and "Trash". Notice I say "directory" and not "message folder" for "[Gmail]". That is important.
    I cannot attest as to what GMail does when you create a folder from your mail.app client, as I have not done that yet. I would venture a guess that it will define a GMail label and mark any messages you "move" to that folder with that label. The GMail special folder "All Mail" contains all of your mail messages, and is equivalent to selecting "All Mail" when using the web interface.
    Your inbox messages will appear in the section with all of your inboxes at the top of your mailbox list. Make sure that you set your preferences to match the recommended preferences for Apple Mail when setting up your GMail account. Otherwise you will end up with duplicates and/or a lot of unnecessary data transfers to your Mac.
    Hope this helps. If not, please give a more explicit example of something that doesn't work the way you expect.

  • Disappearing context menus and tooltips

    Hi.
    After updating to firefox 10 i got very annoying behavior where all context menu, selection lists and tooltips are appearing for very short moment and then disappear right away. When moving mouse over the invisible menu the menu is flickering, sometimes stays visible for a while.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers

  • Failure to fix my cable for over a year and a half! HELP!

    Failure to fix my cable for over a year and a half! HELP!
    I regretfully have to inform you that I might have to discontinue using Comcast, for the following reasons if I cannot et you to resolve these issues. It should be noted that this is something that I do not want to have to do. However, basically I have no choice.
    1. Repeated and Constant Internet Issues and Poor TV Quality for over a year.
    2. A substandard quality of service, just even compared to my next door neighbors who has Comcast. The service has issues daily. Not a week has gone bye without an issue either small or large.
    3. Constant and repeated interrupt of service and an overall low quality of product. Time Outs, High Ping rates into the 100s and 200s, Cable Light Off, Poor Quality of TV picture, fuzzy, Digital Blocking even on non-digital channels with or without box, Occasional CB Radio chatter over interment connection <-(the odd one).
    4. The constant run around from the employee’s at Comcast and Service Department who either are unable to fix my problem, or unwilling to fix my problem, or have no one qualified to fix the problem. The amount of service calls and tech support personal I have had come to my house and had to call is so numerous I cannot even recall the amount.
    5. Paying full price for a substandard quality and product while others around me do not have too. Including my next door neighbor which does not seem to have an issue.
    The Story-
    I purchased this house over a year and a half ago. Note; I did think it was odd that the pervious owner of this house had Comcast TV, but a DSL internet connection (I know now why he had to do that). In a brief conversation with him recently when he was visiting our next door neighbors he told me of how he had the same issues and had to switch to DSL.
    I am, and always have been an avid Cable user and in particular for the Internet as the Broadband just makes it so much more enjoyable. I used Time Warner Cable for over 7-years prior to “having to” use Comcast with great service and good connection and a highly enjoyable time over the internet playing games and surfing the web. I have to use the words :“having too”, as you are the only Broad Band Internet connection in my area currently (I moved to the Burbs, not the Boonies) so I still don’t understand why my choices are limited. Must be nice to have a Monopoly though. : ), and I am starting to think this maybe part of my problems and why nothing is being done.
    In any case, my internet use is for entertainment only. Surfing the Web, playing video games, Online Classes, and whatnot. Nothing life treating, or a must have service and basically, fun for the family, not for frustration. I like to use Cable as I never have to worry about the line cutting out or losing connection. This used to be the case, but with Comcast I do have to worry about this, and it happens often. Simply put: it is NOT always ON as advertised, at least for me.
    The Issues-
    From day one, I have had nothing but repeated and constant issues with my internet service. I don’t even think I had Comcast a week before I had to make my fist service call. See I was used to another Cable service and silly me expected my cable to work. From there it was all downhill. I have had so many service calls its actually outlandish and would be funny if it was someone else. Its like a TV sitcom actually.
    Each and every service call goes the same way. Tech comes out, stands around, recognizes the problem and leaves. No fixes mind you, and the reasons are below.
    Recent History-
    With the internet on the fritz again and only seeming to get worse I decided to call and have someone come out and check it. A preemptive strike on my part in other words, before it totally blew out like it does and taking days for it to come back on. I have been dealing with this for over a year getting kind of frustrated with the whole process.
    I talk to the service department and they also see the issue (sporadic interrupt of service and poor quality). With so many problems and the list ever growing most likely on my report the service guy said he would send a Line Tech out to check my problem on Monday (the ninth).
    I think to myself finally some progress and it only took a year, a real Line Tech my issue is sure to be solved.
    Unfortunately, the apparent Line Tech does and did the same as every other tech sent to the house. Set around for 20 or so minutes futzing around with the computer. Notes the issue of single loss and poor TV quality makes some notes and says sign here. *take note of paragraph below about Line Tech.
    Around Thursday, I call up the service department basically asking if and when my service problems will be fixed. With little shock and surprise I was told that nothing is scheduled the last service call the Line Tech was not really a Line Tech and I should have been called back and or at least informed of that a Line Tech was not scheduled to be sent. This is normal by the way.
    The Phone Tech checked my service and found that an issue did exist and proceeded to tell my that he would advise his supervisor of the issue. He also stated that if someone had not called me by 6:00PM this coming Saturday, that I could call and he would expedite matters.
    Tick-Tock-Tick-Tock-Tick-Tock-Tick-Tock
    Saturday at 6:20PM I call up the service department, punch in my phone number and low and behold I’m sent immediately to the Clams Department instead of the Service Department LOL.
    After explaining the issue to the Clams Department (my thinking is at this point is; why pay for it if its not working and they wont fix it) I am transferred to the Service Department after a brief expiation of the issue. I guess I am a little late with my bill, but can you blame me?
    The Run Around-
    Talking to a new service persona again which is the same with ever tech sent to the house (Never the same one twice). Apparently nothing is on my report about this call I made earlier, or he does not note it.
    The new service tech while helpful and curious taking the brunt of my frustrations at this point goes through the same procedures that I have been through so many times now I know them by hart. I acknowledge the fact ahead of time to myself that my tone although frustrated is nothing personal, and the service tech should not take it personally. Its just that at this point I’m beyond frustrated. I try to be as understanding and curious as I can while he tries to help me.
    I explain the repeated problems and what is going on. In this instants the service tech mentions something about some service package (come kind of other signal maybe being sent to the modem).
    At the time my internet is somewhat working with only a few time outs and just above normal pings so I cant really blame him for not seeing an issue. I’m mainly calling just to find out why I didn’t receive a phone call, or get another appointment to have this checked into.
    My service was cutting out right before I called, which is why I called. The service tech just happened to check my service while it was working for 20 or so minutes. : P
    Although, I am sure the Tech knew what he was doing and seemed very knowledgeable and probably thought he had resolved an issue that has been plaguing me for over a year now I knew nothing had changed. (this has happened before by the way same exact procedure in fact, and must be part of the training).
    I’m trying to hold my volume down and not get too upset. Its not the techs fault and probably does not know I have gone through this procedure before. I want to try to explain this but he is busy trying to work his magic. I remain calm, but I even made the statement that I would probably be calling him back in 15-minutes. I try to end the conversation and phone call as politely as I can. Its not his fault, his just trying to do a job.
    Anthony
    Case Number: 053300005
    Well not even five minutes later you will never guess what………… Pings start dropping and the internet is cutting out on me.
    The Problem-
    The problem has been defined as a Line Issue, and an On and Off interrupt of service. At this point even the TV is being affected. From the first time I called (like over a year ago) the issue is defined to me as an On OFF issue.
    The Problem trying to get this fix-
    You apparently have no Line Techs.
    The Pole near my house is apparently a Forbidden Area that no one must go near. LOL
    You cannot get these people to go near it apparently. They only classify the problem and go away never to be seen nor heard from again.
    Now honestly I can understand with employee issues seeing this happening from time to time, but not for over a year and with service calls up in the tens and twenties…..
    Worst of All-
    I think the worst part of all of this is I have become so used to the poor and substandard quality of service. So used to it that I only call or complain when its totally out or is visually not working correctly and can be tested. I don’t call and complain because its not working as Advertised, because in fact it really never did or does.
    I also, don’t call a lot of the times because of dealing with the service department. If its working at that moment they cannot define the problems. Not really anyone’s fault as it looks like its working even if the pings are in the 200 range or currently no time outs are accruing. I mean at least its working, and they say Speed is not Guaranteed anyway.
    The Forgotten and Unanswered Questions-
    I don’t know about the rest of you but sometimes while talking to people I forget to ask questions or the question does not come to mind until the conversation is over with. In any case, the Phone Service Tech said that what he did should have been done along time ago.
    However, if my cable was somehow magically fixed by what he did I still have these questions;
    1.What happened to my Service Call and why did no one call my by 6:00PM today?
    -I waited around for the call actually, and I really would like to get this issue resolved.
    2. Why is my TV picture still bad?
    3. Although my internet seemed to be working today and only cut out once for a brief period of time why did the supposed fix of the Phone Tech double and even triple my pings, and still occasionally cuts out?
    This is usually when I can tell its going to start acting up as the interrupts become more frequent and growing in intensity and length. I always have them anyway I am used to it.
    However, on the other hand, I am already seeing time outs and interrupts and should I be paying full price for a lower quality of service compared just to my next door neighbor ?
    This is a very hard question for me to ask myself. I like using Cable rather than a Dialup Service, but there is also the whole principle to the matter as well.
    *Should I pay full price for a service that is substandard to everyone else’s?
    *Should I pay full price for the same connecting I used to get a discount for, because of the poor quality?
    *Should I call and complain everyday and turn this into a daily ritual? I cant keep taking time off from work to wait for someone who does nothing except stand around and futz with the computer for 20mintes and recognize the issue.
    *Should I have to complain so much and go through the process which is like pulling teeth to get you guys to do something about it?
    Maybe this is all my fault, and I am doing something wrong. What do I have to do to get this fixed? I don’t want to have to get DSL, so someone please help me. What am I doing wrong. I cannot keep taking time off from work to have someone come out only to recognize I have an issue and never fix it.
    To Whomever at Comcast:
    Is it so wrong of me to want, after a year of having repeated service calls with no resolution to the issue to ask, and request, that the cable service provided to me is the same as everyone else’s?
    If you handed noticed-
    Well if you haven’t noticed by now I am really tying to get this situation fixed and resolved. Mostly because, it is to the point where I am going to have to stop using Comcast and get DSL, or AOL or something because its more reliable. Which I really don’t want to do in the first place cable is supposed to be reliable and always on and faster.
    A little over a year not and I am running out of options though.
    Seriously Cant anyone help?
    Message was edited by: Anon1245678

    Part/3-
    Swami
    Wed/Jan/18
    An eventful day-
    Just a few minutes ago, got a phone call from the Comcast Cable GUY (2:20pm). He then Says he’s been working on trying to find the problem from 1 O’clock. Apparently, and maybe the case, (it was a brief conversation and he will get back to me later) but maybe some part has gone bad somewhere and he said he was waiting on a phone call from someone else.
    In any case, he said that they are trying to clear up the problem and that its been running better sense the Jan/14.….? Not here it hasn’t. LOL We also had a brief discussion about how due to my repeated use of the internet that maybe I notices this more than other people do. My next door neighbor does not seem to have any issues last time I talk to them. But the guy said someone who lives on Broadway (few streets over) has been having issues too so maybe its this part.
    I said; So I should see some improvement today… silence…and a brief pause….. After I find out what the problem is Ill come over and discuss it with you so you know exactly what is going on.
    I do have a feeling I am going to be told this is going to take weeks to fix or at least awhile. Apparently a Part is needed maybe. Ill have to wait until the guy shows and gives me a full explanation though.
    I called my wife and told her of the event and she is pretty emphatic about returning the TV cable box as the TV picture is better without it and she only really looks at the local or 3-like 70 anyway. She was like “Bad Part?” well its been bad for over a year then! We should get a refund for the whole year then… Sorry Comcast she is on a Refund Kick… I just want it to work.
    Part/4-
    The Tech Supervisor Mark, showed up at my door and tried to explain the issues. I felt kind of bad cause I probably know he got Chewed on along with some other people probably. At least they sent someone older and who looked like he had more experience and knew what he was talking about and could actually find the issue.
    I tried to be as apologetic as I could, and tried to explain that its just because this has been such a persistent issue over the past year and a half, and I have had way too many service calls for this not to be fix by now. I even went so far as to explain; it’s a new year and we are trying to get this problem finally fixed. I was also quick to mention how nice it was outside and that at least it was a good day to run around outside. I would have felt really bad if it was raining or snowing out, but it was a nice day probably upper 60s and sunny.
    We briefly discussed the issues and he said he and some others (I guess) had been working t the Head End fixing some issues… Which actually might have fixed my TV picture, seems better right now currently though. Currently NO digital Blocking on any channels currently, but as I said, it’s a sporadic issue popping up one day and going away the next or the problem lasting weeks and months then nothing for a few days and weeks.
    Mark, tried to explain that maybe the problem that I might been having (apparently along with a few others) was that a Temporary Line was connected on the MAIN. Basically 1” Main Line Cable run it to cable like that’s in your house (cant remember but off hand I think its 5, 10 or 15 gauge cable) and back to 1” Main Line Cable. It was all a little technical, I just nodded and said yes, and at least you might have found the issue right?
    He didn’t know how long that had been like that, and I said; probably for over three years as the previous owner had issues too, or at least sense I had bought this house about a year and a half.
    I went so far as to showed him some print screens of some of the issues I have been having, and I know he noticed all the yellow recites in my computer room. : P Unfortunately, I deleted all my old Print Screen saves when the guy last Monday (ninth) showed up and said he would fix the line, or at least track it down. I only had one from the previous night to show him or something.
    In any case, while discussing this Mark, said the guy that came out the other Monday never filled out a work order or something like that. I basically tried to explain that is the kind of thing I have been dealing with for little over a year. Tech after Tech after Tech; as I looked at all the yellow recites on top of my computer desk.
    Mark also, basically said, I should have pretty fast cable considering I only have two nodes and then basically it runs back to Comcast, or something like that. However, that Temporary Line is probably causing the issues. No definite date on a fix, but maybe 24-hours or a few days, but the matter had been expedited or something like that. *Cross fingers*
    That’s the real issue with this cable, its sporadic, and comes and goes. I’m pretty sure they are going to try to replace that line, but you know what….. I have heard that before actually. I have actually heard that for over a year now. Even the expedited part. : P
    Mark tried to thank me for pointing out this issue, and made some comment about how its actually helping them….but………. I can kind of tell he had been getting yelled at or something by someone. It was not obvious, but I could tell.
    I felt kind of bad about that, but… That happens when you work for someone, and the people who work for you (below you) don’t do what they are supposed too.
    I kind of tried to briefly explain to Mark about the issue again and that usually by the time a Supervisor gets out the issue has cleared up for a time….. Odd how that works by the way. But basically I got the old…well it looks like its working ok now and you should have seen some improvements over the last few days… thingy..
    We started talking about that Temporary Line being connected again and I walked Mark to the door and we said our goodbyes and I apologized again for being such a pain in the about this whole matter.
    Part/5-
    I called the wife and told here about everything. The first thing she asked is; is it fixed? She is still not happy especially when I tired to explain what the issue was and probably was and that at least maybe they found it.
    I have no idea of what kind of onward action maybe on my part in the end if things don’t get better. Its like trying to argue with the old Bell Telephone Company when that was the only phone company in the US and no other phone companies existed.
    I hope to one day, be a satisfied Comcast Customer, but to date I have yet to feel that way, at least with the Internet in any case and that’s only because I really don’t watch TV.
    I am also, hoping when, and if, some LINE is replaced somewhere that I see some drastic improvement along with apparently a lot of other people in my community and a lot less issues also. I still don’t believe that I should be just setting for; Ok well at least its ON now, or the light has finally stopped flashing.
    All a SNAFU?
    That’s highly questionable at this point, and I have to be honest with you. This is going on a year and a half of dealing with this. This SNAFU, could be the case, but it seems more like policy, or a standing Comcast Company Directive actually if you want my honest opinion. I don’t know what the Maintenance Budget is for my area, but you might want to consider doubling it, or tripling it.
    I really don’t care actually when this is fixed, as long as the issue is fixed. I cannot make a final judgment until it is finally fixed and go on and try to take further action onward from that point.
    Thus far I have only been given an explanation. I don’t know if anyone at Comcast realize exactly how many times I have had an explanation given too me though (either on the phone with a service tech or from an actual person “tech” at my house). The list is extensive of the actual explanations I have had over the past year and a half, but my favorite one is; squirrels.
    Part/6-
    We are still waiting on phone calls from people who said they would call us back today and check what’s going on. Both of us, (me and the wife) are slowly losing momentum again as this whole issue gets dragged out for weeks and weeks at a time.
    She is tired and I’m tired too, and Comcast is warring us down again it looks like. My wife was like; “do I have to call them, I really didn’t have a good day anyway and I’m tired. They were supposed to call us anyway, lets wait.”
    I tried to make a phone call (half heartedly, I myself as I’m tired too) as Carla (at my local Comcast office) wanted to know how the service call went, but after repeated attempts and being shuffled off to Billing, and then being put on hold : P ……and its actually getting close to dinner time. Maybe after dinner if I don’t just fall asleep first.
    So, in the end its still hang on for a few more days, and or, wait to have the problem fixed. Your guess is as good as mine, people. More Smoke and Mirrors or an actual Fix. Your guess is as good as mine.
    As for me, I’m going to bed, I’m worn out. Maybe a new line to replace that temporary one, maybe just saying I might get a new line to replace that temporary one.
    The Saga continues. Maybe it will end someday.

  • How do iI close my apps  I have over 20 open and cant close em down

    How do I close my Apps I have over 20 open and cant close em down

    Not all the apps are open. When you double tap the home button that just shows you apps that you have recently used. They are not all open and running.
    If you want to clear this list, swipe up on the app screenshot.

Maybe you are looking for

  • Code behaves different when SWF is in browser as opposed to stand alone player, why?

    In ActionScript, I have some code that dispatches a MOUSE_OVER event when a tween is complete. I am using Tweener for the tween. On my Mac OSX machine, I preview the SWF file in a stand alone player spawned from my Flash IDE, and the event is dispatc

  • How to skip the Selection screen while using BAPI_MATERIAL_DELETE

    Hi, I have to delete material master. I'm using BAPI_MATERIAL_DELETE Fm, But while executing this BAPI it is going to a screen where it is asking to tick the Check Box for material number. Can you please tell me how to execute the BAPI Avoiding the s

  • Mass update via XK99

    Hello dear all, I want to update the field "INTAD" (email adress in vendor master record) for several vendor in only one company code. I executed XK99, and i fulfilled vendor and company code selection under " data records to be changed " Tab. Then,

  • SAP Query Display data from 2 internal tables

    Hi ABAP Gurus, I am developing a SAP Query. I have created an infoset with the custom infotype 9050 and added the table ZPA9050 into the Infoset. How do I input values to the ZPA9050 fields? A checkbox for making a Selection field is not available in

  • How to play a soud at specific frame?

    I have the loading audio file at frame one. However, I want to play the audio only at specific frame or frame lable. How do I do that? Below are my codes: //start of sound section is for sound var soundReq:URLRequest = new URLRequest("FlashFiles/audi