I feel pretty dumb, plz help with basic question

I had some problems with internet not working, cable was no hep. But finally at this point modem is working, internet is working. However router is not. The lites are lite.  AT this point im not sure if cable  company did something to my pc while checking interenet connection. In my list of programs, I dont see a linksys folder, but I cant remember if I had one. Cant find original cd.  My other pc is not working either, sz "scanning".   Any suggestions? Should there be a linksys folder?

Will the internet work if you connect straight from the modem to PC? If so, then you will have to do one or the other.
Go into the router and find where you can clone your PC's Mac Address.
Restart your router
or
Try leaving the modem and router off for about 2 hrs. This will clear the Mac Address your ISP have.
I had to leave my RoadRunner modem off for a day. I turned if off before going to work and turned it back on. Retarted my router. I did not have to clone my PC's Mac address going this route.

Similar Messages

  • Please help with basic questions

    I hardly ever use flash, as i'm always ending up kicking
    stuff out of sheer frustration. Just like with Quark Xpress, in
    Flash there seem to be several 'layers' between what my intuition
    tells me should work, and the actual execution of the things i want
    to achieve. But nevermind, I'm just severely annoyed.
    I got 10 buttons, with a graphic as bottomlayer, and a number
    (1-10). Isn't it possible to turn the first button into a symbol,
    and then make copies where i just have to change the number? For
    now it doesn't matter if i copy/paste them or drag them from the
    library, when i copy the button and try to change the number in the
    copy, then the number in the 'original' changes as well.
    Do i really have to 'make' each button from scratch?
    This might seem like a very basic question, but i'm really
    bangin my head into the wall here. And theres tons og issues like
    that in Flash - for me at least - like if i say 'paste in place',
    things get pasted some random place on the canvas (anywhere but in
    place). If i convert to symbol, the referencepoint (or the point
    which it's supposed to rotate around) seems randomly choosen as
    well - at least it's never where i told it to be in the appropriate
    dialog.
    HELP! :-(

    Go to the library and there should be an arrow in the corner
    that gives you options. One option is "duplicate symbol." Duplicate
    your button and give it a new name, then make the changes.

  • Plz help with these questions

    Hi
    plz help me in step by step process on :
    1.     Check who has access to transaction: F110 for company code 313 and 471
    2.     Check who has access to transaction SE16
    3.     Check who has access to create background jobs
    quick reply is highly appreciated..
    Rgds
    syed

    Hi Syed,
    I suggest that you ask your Security Administrator to give you this information.
    If you do not want to ask your security administrator then you need to look at the user information system via transaction SUIM which will give you this information via various reports. 
    You may want to start by looking at report Users by Transaction Authorisations and working from there

  • Plz help with 2 question's!!

    I am trying to fix a nano for a friend, she said that she has updated itunes and it shows her songs and acted as if they all d/l to ipod fine but they do not show up on ipod. I hooked it up to my comp. with my updated itunes, it shows up in itunes and on my computer as a removable disc AND when I go to my comp. and explore that drive, the songs are there and work. In itunes it does show that disc space has been used on the ipod but nothing else shows up. I've tried the good ole restore that I've never gotten to work on any ipod. I tried doing the udater and after waiting 3 hrs.(gotta love dial-up)it said that there was some error and couldn't update. What next? B/U her songs and restore? The second ques. is on my own nano, I've tried to do the updater for it and itunes acts like it is d/l but the progress bar never moves. What's that all about and do I really need the updater? Thanks in advance!!

    1. How are you getting the songs onto the iPod? Are you dragging them to the iPod like it is in Enable Disk Mode (dragging songs to it like a HDD), or are you putting them on through iTunes? Is Enable Disk Mode turned on?
    Check this out:
    My Computer Recognizes iPod as a Different Drive
    As for your second question, well, can't answer that one. Sorry!
    I hope this helps!

  • Adding content to a web page [was: Help with basic question (i think)]

    Hi there everyone, first time in this forum.
    Im creating a website for the first time in dreamweaver after using other programmes and have so far created a banner and nav bar across the left hand side. I am unsure on how i am meant to add any content into the actual centre of my page as there is no box there to write in or add pictures and when i create a image or div or table they all just hug the top of my page and refuse to go next to the navigation bar like i need to it! im sure it is simple but i am finding it so much harder to use than any other programme.
    Im trying to do a list of pictures and descriptions for my mums business.
    any help would be greatly appreciated.
    thanks!
    Harry

    Harry, I have moved your post from the HTML5 Pack forum to the Dreamweaver General Discussion forum, which is the most appropriate place for this sort of question.
    Dreamweaver is a professional web development program that requires at least basic understanding of the underlying web technologies: HTML and CSS. It's not a WYSIWYG program where you can just drag and drop items on a page. To give you a better understand of how Dreamweaver works, it might be a good idea to try the Building Your First Website tutorial here: http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html.
    Since you're new to this forum, I also suggest you take a few moments to read How to get help quickly, and browse through the Dreamweaver FAQ.

  • HT5699 Help with car questions

    Wont let me buy things because security question for cars how lame is that!!!

    Help with security question about cars

  • Plz Help With Nokia 5800 XM ...... Plz

    Hi everyone,
    I have nokia 5800 and i like it very much... But i have a problem with it ..... the problem that when i download any thing from nokia OVI Store from my mobile like: Games, apps and videos when download finished and starting to install the games or the apps it's say's: "installation failed" and when i redownload it again nothing change and keep saying "installation failed" ........ and i noted that when i install app ( themes, apps and games ) on my mobile by ovi suite or by file manager it also say's to me "Expired Certificat" even if i signed this apps but it alwyas say's "Expired Certificat"....... for this problem i did: hard reset - format my mobile - format my sd card - update my mobile to v40 - but the problem never stops to return in a few hours ..... then i find out that when i need to install any app on my mobile (by ovi suite or ovi store in my mobile or file manager) i have to switch off the mobile and turn it on again to install what ever i want ...... so Plz help me out
    PS: 1- I have 2 friends having the same problem that i have and they did what i did
           2- my mobile software v. when the problem stated v31
          3- my memory card 8 GB the orginal one
    Thanx and Please Tell Me What to Do
    Bye

    Option 1
    NOTE
    - YOU CAN ONLY INSTALL SIGNED APPLICATION WITH THIS METHOD.
    - IF YOU DONT TAKE BACKUP OF YOUR DATA OR FOLLOW THE EXACT STEPS HERE YOU WILL LOSS ALL DATA.
    1. With the phone switched on, press the power button key once.
    2. Scroll down to and select "Remove E: Memory Card".
    3. Select Yes to remove the memory card.
    4. Press OK and remove memory card from phone.
    5. Press the Dialler on the main screen.
    6. Type *#7370#
    7. Enter security code. Default is 12345 unless it has been changed.
    8. The phone will reset, wait for this to complete and power back on.
    9. Select your country and type in the correct time and date.
    10. Wait for the phone to complete its configurations, you may receive "My Nokia" or tutorial messages.
    11. Power off phone.
    12. Insert the memory card.
    13. Power on the phone.
    14. Wait for the phone to install any pre-loaded content from the memory card.
    15. Phone is ready to install applications, without "Expired Certificate" error message.
    Option 2
    Alternatively use this to apply for .CER and .KEY for signing applications / games.
    Download SignSIS & FreeSigner (Freeware)
    - http://www.2shared.com/file/10095405/d0fd4cfb/Sign​_SIS_GUI.html
    Signing Video Tutorial
    - http://www.youtube.com/watch?v=z0mZ6d1klaU
    Also, please feedback the results as the results could be useful to other members / visitors.
    Thanks & best regards,
    XM
    I'm an Xploit - Please feel free to post your issues, feedbacks in this discussion forum and I'll do my level best to help, otherwise my knowledged friends whom are around willing to help you. Thank you !

  • Doesnt allow me to choose pressure in the brush properties plz help with pic

    Hi, I have a problem in adobe illstrator CS4
    it doesnt allow me to choose pressure or other properties in the brush properties it only allows me choose Fixed and Variable and it makes the colour of othe words like pressure silver so i cant select it from the menu and here is a picture for the problem
    PLEEEEEEEEEEAAAAAAAAAAAAASE help me i really need to know how to solve this problm and by the way i tried on the same computer with windows xp and windows 7 but the problem remains

    i dont have a tablet i ink with the mouse and i see in video tutorials when u ink sketches after u scan them on the computer and the dont say that u must have a tablet like in this video
    http://www.youtube.com/watch?v=DM96tEAnbGs
    plz help me

  • Plz help with a java app

    Dear experts,
    I have a java application in form of a running thread that periodically does an activity ie running a BAPI in
    SAP.I like to schedule this application at evening time.
    Problem is that incase somebody remotely login to this Windows server using RDP and leave an open RDP session,
    two instance starts one on RDP and other on console.
    Now to overcome this problem i devised a solution myself that incase application detects session is remote
    then it should exit itself. This is mentioned in forum undergiven.
    http://forums.sun.com/thread.jspa?threadID=5410674&messageID=10835701#10835701
    My perception behind carrying out this development was that incase session starts in remote then
    app will automatically close and finally letting running only in console.
    Now what happens is that scheduled task doesnot start at all on console ,incase console as well as RDP are open.
    Instead it starts only on RDP failing instantly.So in nutshell,task doesnot start at all.My app log say that
    service tried to open in remote session and got closed.Plz help as i have no way out.
    My second question is that if i schedule task using RDP on remote server,will it run on Remote,console or both
    of them.
    Regards,
    Aditya.

    Adi1000 wrote:
    My app also generates a .lock file and make sure that only one instance is running.Still problem remains unresolvedAnd combining your other thread with the word "also" from this post just exacerbates your "problem". Also, the "lock" file was not to prevent two simulteneous runs (that leads to very distasteful race condition), but rather to prevent two runs within a set period of time when combined with the ServerSocket approach to prevent simulteneous runs.

  • Plz help with deploying applet that uses SSL

    Hi, maybe this is not the adecuate forum but ive already tried in others and i got no answer.
    Im trying to use a certificate with my applet ( tha sends a lot of info to the server and also connects to another hibernate db) but im getting this error:
    Server side:
    username is: Panda
    Registered the SSLServerSocket on port 6969
    Listening ....
    ---- Got a connection from a client
         this is an unknown client
    !!!!!!Error in reading or writing from/to the client:
    javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown Source)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
         at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
         at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
         at sun.nio.cs.StreamDecoder.read(Unknown Source)
         at java.io.InputStreamReader.read(Unknown Source)
         at java.io.BufferedReader.fill(Unknown Source)
         at java.io.BufferedReader.readLine(Unknown Source)
         at java.io.BufferedReader.readLine(Unknown Source)
         at PaqueteServidor.Server$handleRequest.run(Server.java:130)
    Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(Unknown Source)
         at PaqueteServidor.Server.printClientCerts(Server.java:47)
         at PaqueteServidor.Server.run(Server.java:100)
    javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown Source)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
         at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
         at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
         at sun.nio.cs.StreamDecoder.read(Unknown Source)
         at java.io.InputStreamReader.read(Unknown Source)
         at java.io.BufferedReader.fill(Unknown Source)
         at java.io.BufferedReader.readLine(Unknown Source)
         at java.io.BufferedReader.readLine(Unknown Source)
         at PaqueteServidor.Server$handleRequest.run(Server.java:130)
    Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(Unknown Source)
         at PaqueteServidor.Server.printClientCerts(Server.java:47)
         at PaqueteServidor.Server.run(Server.java:100)
    Client side:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
         at Interfaz.InterfazMovil.init(InterfazMovil.java:89)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
         at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
         at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
         at sun.security.validator.Validator.validate(Unknown Source)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
         at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown Source)
         ... 14 more
    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
         at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
         at java.security.cert.CertPathBuilder.build(Unknown Source)
         ... 19 more
    19:40:34,444 INFO Environment:464 - Hibernate 3.0.5
    19:40:34,444 INFO Environment:477 - hibernate.properties not found
    19:40:34,444 INFO Environment:510 - using CGLIB reflection optimizer
    19:40:34,454 INFO Environment:540 - using JDK 1.4 java.sql.Timestamp handling
    19:40:34,645 INFO Configuration:1110 - configuring from resource: /bd/hibernate/hibernate.cfg.xml
    19:40:34,645 INFO Configuration:1081 - Configuration resource: /bd/hibernate/hibernate.cfg.xml
    19:40:35,045 ERROR XMLHelper:59 - Error parsing XML: /bd/hibernate/hibernate.cfg.xml(21) The content of elements must consist of well-formed character data or markup.
    19:40:35,045 ERROR Configuration:1172 - problem parsing configuration/bd/hibernate/hibernate.cfg.xml
    org.dom4j.DocumentException: Error on line 21 of document : The content of elements must consist of well-formed character data or markup. Nested exception: The content of elements must consist of well-formed character data or markup.
         at org.dom4j.io.SAXReader.read(SAXReader.java:482)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1168)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1112)
         at bd.hibernate.HibernateUtil.currentSession(HibernateUtil.java:51)
         at bd.controlador.CLetrero.ListarLetreros(CLetrero.java:45)
         at Interfaz.InterfazMovil.init(InterfazMovil.java:126)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Nested exception:
    org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.dom4j.io.SAXReader.read(SAXReader.java:465)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1168)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1112)
         at bd.hibernate.HibernateUtil.currentSession(HibernateUtil.java:51)
         at bd.controlador.CLetrero.ListarLetreros(CLetrero.java:45)
         at Interfaz.InterfazMovil.init(InterfazMovil.java:126)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    %%%% Error Creating SessionFactory %%%%
    org.hibernate.HibernateException: problem parsing configuration/bd/hibernate/hibernate.cfg.xml
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1173)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1112)
         at bd.hibernate.HibernateUtil.currentSession(HibernateUtil.java:51)
         at bd.controlador.CLetrero.ListarLetreros(CLetrero.java:45)
         at Interfaz.InterfazMovil.init(InterfazMovil.java:126)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: org.dom4j.DocumentException: Error on line 21 of document : The content of elements must consist of well-formed character data or markup. Nested exception: The content of elements must consist of well-formed character data or markup.
         at org.dom4j.io.SAXReader.read(SAXReader.java:482)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1168)
         ... 6 more
    java.lang.NullPointerException
         at bd.hibernate.HibernateUtil.currentSession(HibernateUtil.java:59)
         at bd.controlador.CLetrero.ListarLetreros(CLetrero.java:45)
         at Interfaz.InterfazMovil.init(InterfazMovil.java:126)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Plz help and thx in advance.

    I know I didn't get round to replying but no need to post it so many times.
    http://forum.java.sun.com/thread.jspa?threadID=666870
    http://forum.java.sun.com/profile.jspa?userID=543817
    http://forum.java.sun.com/thread.jspa?threadID=669965
    http://forum.java.sun.com/profile.jspa?userID=543817
    http://forum.java.sun.com/thread.jspa?threadID=669975
    http://forum.java.sun.com/thread.jspa?threadID=669973
    Could it be that the server and client need to open different keystores?
    http://forums.java.sun.com/thread.jspa?threadID=573918&messageID=3272683
    reply 7
    My example given before should work on different machines, try to export the server key and import it into the
    client keystore. Export the client key and import in the server keystore if you want the server to authenticate
    the client.
    http://forum.java.sun.com/thread.jspa?threadID=666870
    reply 4
    Check the method getSSLSocketFactory in the applet, that will open a keystore for you.

  • Plz help with my laptop

    hi i just got a powerbook g3 from my ffreind, i think its a lombard because it doesnt have those ports in the back. It has like almmost 5 gbs of space and i got 2gbs left, lol. ok back to the point: im trying to download stuff like limewire and java, but when i download the instalation thing on my laptop and i open it , a screen pops up and says that quicktime cant read this file. and now im trying to figure out what program should i start the insalatikon with? plz help me and be specific where it is located.
    Thanx
    and anyone that plays runescape say something about it. Runescaoppe rocks~~~~~~~lol

    Welcome to the world of Macintosh! Sooo much better then Windows. And of course welcome to the forums! Anyway it sounds like, since your running OS 9, you either have the file formats set wrong or Quicktime cannot play that sort of media file possibly because it doesnt have the right codecs. I suggest updating to Mac OS 9.2.2 which is free for all OS 9 users as it includes newer versions of Quicktime if you dont already have the newest version. Look under Support>Mac OS> Jaguar and Older and you'll see, on the side, Mac OS 9 support. From there you'll see Updates for OS 9 I believe. Something like that I dont remember for sure and cant check now cause im using my crappy Windows PC and it wont let me get on the support page (typical XP)

  • Plz. help with strange date insertions in access???

    HELLO all,
    i noted a strange thing, when i insert into access table the date it swaps the month and day part for some reason in some records .
    why is this happening,
    plz. help.
    code is as follows
    Calendar cal = Calendar.getInstance();
                                            cal.add(Calendar.DAY_OF_MONTH,-1);
                                            System.out.println(""+cal.getTime());
              //this swaps                         SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy")
    //this swaps too
         //SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
                                            String currentdate = dateFormat.format(cal.getTime()); // formats your date
    custom date is dd/mm/yyyy in table

    Hi vykalra1,
    As far as I know, the way dates (and times) are stored in a Micro$oft Access database has nothing to do with the display format. The format is only used for displaying the date that is stored in the Access table.
    A "field" with "Date/Time" datatype in an Access table maps to the "java.sql.Timestamp" class. Therefore, in order to insert a value into a "Date/Time" (Access) "field", you need to create a "java.sql.Timestamp" object. According to the javadoc, the "java.sql.Timestamp" constructor takes a parameter of type "long" (i.e. java primitive type) -- which represents the number of milliseconds since midnight, 1st January, 1970.
    Therefore, you don't really need to use "Calendar" or "SimpleDateFormat".
    As I understand it, you are trying to insert yesterday's date into your table. Below is an example using a sample table that has two fields -- 'name' and 'updated' -- which (hopefully) will help you. Note how I determine yesterday's date -- using millisecond calculations only.
    The below code was compiled and tested on Windows XP with J2SE SDK 1.4.1_02 and Micro$oft Access 2002.
    import java.sql.*;
    public class JdbcOdbc {
      public static void main(String[] args) {
        Connection dbConn = null;
        PreparedStatement stmt = null;
        String sql = "INSERT INTO Table1 (name, updated) VALUES (?, ?)";
        try {
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          dbConn = DriverManager.getConnection("jdbc:odbc:db1");
          stmt = dbConn.prepareStatement(sql);
          stmt.setString(1,"vykalra1");
          long now = System.currentTimeMillis();
          long millisecondsInOneDay = 1000 * 60 * 60 * 24;
          long yesterday = now - millisecondsInOneDay;
          stmt.setTimestamp(2, new Timestamp(yesterday));
          stmt.executeUpdate();
        catch (SQLException sqlEx) {
          System.err.println("Database operation failed.");
          sqlEx.printStackTrace();
        catch (ClassNotFoundException cnfEx) {
          System.err.println("JDBC driver class not found");
          cnfEx.printStackTrace();
        finally {
          if (stmt != null) {
            try {
              stmt.close();
            catch (SQLException sqlEx) {
              System.err.println("ERROR: Failed to close statement");
              sqlEx.printStackTrace();
          if (dbConn != null) {
            try {
              dbConn.close();
            catch (SQLException sqlEx) {
              System.err.println("ERROR: Failed to close DB connection");
              sqlEx.printStackTrace();
    }Good Luck,
    Avi.

  • Need help with basic program.....!

    I've to write a program that generates a random number, which the user has to try and guess, after each guess they're told whether it's too high or too low etc., I've gotten this far, however, the user has only 10 guesses.... In my program I've used a while loop and the user gets an infinite number of guesses, I know I'm supposed to use a for loop, but can't seem to get it to work properly. Also, when the user guesses the number, the program then has to print out how many guesses it took, and I have no idea how to get it to do this AT ALL!!! I'd really appreciate some help with this, thanks v. much!!!!

    I've to write a program that generates a random
    number, which the user has to try and guess, after
    each guess they're told whether it's too high or too
    low etc., I've gotten this far, however, the user has
    only 10 guesses.... In my program I've used a while
    loop and the user gets an infinite number of guesses,
    I know I'm supposed to use a for loop, but can't seem
    to get it to work properly. Also, when the user
    guesses the number, the program then has to print out
    how many guesses it took, and I have no idea how to
    get it to do this AT ALL!!! I'd really appreciate some
    help with this, thanks v. much!!!!Hey not every book covers every aspect of Java (if you haven't got a book and don't want to buy 1 i recommend an online tutorial) If u want the user to have an infinate number of guesses, use an infinate while loop. Put this in a file called app.java:
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class app extends Applet implements ActionListener
         JLabel lbl=new JLabel("Guess a number between 0 and 10:");
         JTextField txtfield=new JTextField(20);
         JButton button=new JButton("Guess...");
         JLabel lbl2=new JLabel();
         int randomnumber=Math.round((float)Math.random()*10);
         public void init()
              add(lbl);
              add(txtfield);
              add(button);
              button.addActionListener(this);
         public void actionPerformed (ActionEvent e)
              String s=new String("");
              s+=randomnumber;
              if (e.getSource().equals(button) && txtfield.getText().equals(s))
                   setBackground(Color.white);
                   setForeground(Color.black);
                   lbl2.setText("Got it!");
                   add(lbl2);
                   validate();
              else
                   setBackground(Color.white);
                   setForeground(Color.black);
                   if (Integer.parseInt(txtfield.getText())>randomnumber)
                   lbl2.setText("Too High!");
                   else
                   lbl2.setText("Too Low!");
                   add(lbl2);
                   validate();
    Then create a HTML document in the classes folder:
    <HTML>
    <HEAD>
    <TITLE>APPLET</TITLE>
    </HEAD>
    <BODY>
    <HR>
    <CENTER>
    <APPLET
         CODE=app.class
         WIDTH=400
         HEIGHT=200 >
    </APPLET>
    </CENTER>
    <HR>
    </BODY>
    </HTML>
    It will do what you wish. If you want to have more then 10 numbers to guess, for example 100, do this:
    int randomnumber=Math.round((float)Math.random()*100);
    Does that answer your question?

  • Plz help with me gui problem(arraylist)

    my program
    stocksymbol ------------------ stockname ------------------ enter
    (label) (textfield) (label) (textfield) (button)
    create a gui application using jframe and jpanel so that user can enter stock details(symbol,name) when user press "enter(button)" the text entered in the textfield should be add to an arraylist.
    when we close the window ,we have to print the items present in the arraylist....
    i have created all the components but iam getting difficult in display the arraylist when i close the window
    i have created these classes
    public class Stock {?}
    public class StockEntryFrame extends JFrame {
    // code to allow the frame to handle a window closing event ? when the window is closed,
    // the stock list should be printed. ?
    public class StockEntryPanel extends JPanel {
    public StockEntryPanel(ArrayList<Stock> stockList) {
    can u plz help me how to diplay the contents in arraylist

    MY PROGRAM IS LIKE THIS:::::::::
    STOCKNAME-----------
    STOCKSYMBOL---------
    STOCK PRICE--------
    ENTER(BUTTON)
    WHEN USER ENTERS HIS INPUT IN THE TEXT BOX AND PRESS ENTER, THEN THE TEXT PRESENT IN THE TEXTBOX SHOULD BE ENTERED INTO AN ARRAYLIST.
    THIS IS A GUI PROGRAM......
    WHEN WE CLOSE THE FRAME ,WE HAVE TO DISPLAY THE CONTENTS PRESENT IN THE ARRAYLIST
    I HAVE CREATED THE PROGRAM LIKE THIS
    CLASS STOCKENTRYPANEL EXTENDS JPANEL
    //ADDING ALL THE COMPONETNS TO THE PANEL
    CLASS STOCKENTRY FRAME EXTENDS JFRAME
    //ADDING PANEL TO THE FRAME
    //I NEED THE CODE HERE
    WHEN WE CLOSE THE WINDOW THE ARRAYLIST DETAILS SHOULD BE PRINTED
    }

  • Plz plz Help with my Nokia c7

    Hi nokia my phone in a same condition no store, no sotial net plz help me. After hard resetting by three buttons (home,volume,camera) everything gone like ovi store, social, After hard reset went to s/w update and download the Ovi Store which was not in the listed did the *#7370# still not there plz plz plz help me

    The issues following a hard reset om Symbian^3 devices are known issues and have been highlighted numerous times in this forum. Have a look at the link below for a sticky on this issue.
    /t5/Nseries-and-S60-Smartphones/N8-Maps-problem-after-hard-reset/td-p/783327

Maybe you are looking for

  • How to use iTunes folder on external disk as F: when it was E:

    I have my iTunes folder (organised) on an external drive, which has been E:. I am migrating to a new laptop, where D: is a virtual drive and E: is the DVD drive, so my external drive is F:. I can't change the letter for the DVD drive, so am stuck wit

  • OTC CYCLE PROBLEM

    Helo experts , I have completed process of order to cash till generation of accounting document  but the customer account not gets debited please provide the solution

  • Cannot upgrade from Mountain Lion 10.8.5 to Yosemite , reaches 1.34 GB then 'Error has occurred'

    Hi All Sorry not technically minded at all. Trying to upgrade my iMac which is running Software  OS X 10.8.5 (12F2518) to Yosemite, reaches 1.34 of 5.64 GB and states an error has occurred. I've attempted this on numerous occasions and always with th

  • Adding headings in Adobe Acrobat 8 does not work

    Hello! I use Acrobat 8 Pro and want to add page numbers to a long pdf file (290 pages) using the Add Header ... function. If I select finally "Add", nothing happens. No question or srenn appears. Why? Any help is appreciated.

  • Reformatting a macbook

    Hi all, i am trying to reformat my macbook seen a thew videos on how to do it. But does it erase the drivers for sound etc... and could some one please post on how to do this in more detail...    many thanks..