NOOB code question

've got code for a geeklet to display current and forecast weather. Here's what the output looks like now:
Now | Fair, 32F Tomorrow | Sunny, 32|21F
I'm trying to accomplish two goals:
1. add degree symbols between the temp and the "f"
2. break "now" and "tomorrow" onto two different lines
Code is below. Anyone? (Obviously what I don't' know about shell commands, UNIX, and life could fill multiple volumes.
Thanks in advance,
Proofrock
#!/bin/sh
normal='[0m'
bold='[1m'
italic='[3m'
underline='[4m'
boldOff='[22m'
italicOff='[23m'
underlineOff='[24m'
fgBlack='[30m'
fgRed='[31m'
fgGreen='[32m'
echo "Now | ${fgRed}\c"
curl --silent "http://weather.yahooapis.com/forecastrss?p=USVA0023&u=f" | grep -e "Forecast:" -A2 -B2 |tail -n 4 | grep -v orecast | sed -e 's/
//' -e 's/
//' | sed -n -E '2n;s/(.+)[ ]\-[ ](.)\..:[ ](0-9).:[ ](0-9+)/'"$normal"' Tomorrow | '"$fgRed "'\2, \3|\4 f'"$normal"'/;p' | tr '\n' ' '

Don't let your thread be dragged off on a tangent.
The problem is that your "geektool" is just a crude hack and I don't like such things. If you run just the curl command, you'll see that the output is XML - an RSS feed. That is a structured, parseable document. There is no need for sed scripts.
Here is a little Perl script that runs curl, gets the content, feeds it into a simple XML parser, and prints it out nicely. I think you will agree that it is far more readable than sed.
#!/usr/bin/perl -w
use strict;
use Term::ANSIColor;
use XML::Simple;
my $xml =
`/usr/bin/curl --silent "http://weather.yahooapis.com/forecastrss?p=USVA0023&u=f"`;
my $data = XMLin($xml);
my $current = $data->{channel}->{item}->{'yweather:condition'};
my $forecast = $data->{channel}->{item}->{'yweather:forecast'};
printf "Current conditions: %s%s, %d° F%s
color('bold'),
$current->{text}, $current->{temp},
color('reset');
printf "Today: %s%s, low %d° F, high %d° F%s
color('bold'),
$forecast->[0]->{text}, $forecast->[0]->{low}, $forecast->[0]->{high},
color('reset');
printf "Tomorrow: %s%s, low %d° F, high %d° F%s
color('bold'),
$forecast->[1]->{text}, $forecast->[1]->{low}, $forecast->[0]->{high},
color('reset');
I encourage you to run the curl script yourself to look at the output. There is a wealth of information in that XML data you can display. I have hard-coded 'F' for temperature units, but you could easily extract the units from the data.

Similar Messages

  • Noob Flex Questions - Run Application

    Hi All
       I am trying to learn Flex 4 and having a question.
    When I download the sample files from Adobe website, I tried to open the files in Flex but it told me that I have to select
    New -> Flex Proejct -> Assign the file folder location to create a new Flex project. Then I created one with my own project name.
    Flex then created a new src folder with my new project name.mxml file. "THE FILE I WANT TO OPEN IS ON THEIR ORIGINAL FOLDER NAME." like
    Flex src or whatever the author created. I tried to run their mxml file, but the "Run Application" is grey out??!!. Why? I have to moved the mxml to my src folder? It seems dumb to me that I have to do this to open an existing project. Besides, if there is a subfolder with another subfolder under Flex src folder, when I moved them to my src folder, it created subfoldername.anothersubfoldername under my src (instead of subfolder/anothersubfolder that the original author created).  I know it might be a noob question, but what is going on here? I cant' even get the existing project running.........Thanks for any helps...

    Hi,
    Your question is a bit confusing but here is a fundimental principle in Eclipse.
    Every project has;
    MyProject
      - bin
      - src
        - MyApplication.mxml
      - html-template
      - libs
    The 'src' folder holds all runable/compilable code actionscript classes and mxml components/applications.
    The only thing Flash Builder will run is a mxml file that subclasses s:Application or mx:Application or any subclass of them.
    Flash Builder will not 'just' run an mxml file. So if you get application samples from Adobe, you need to have them in the src folder and there needs to be a little green arrow in the top left corner. This means it's a registered application that you can run. The little blue dot in the top right corner means it's the default application that will run when you hit ctr-F11 or F11 or Run..
    If you paste a file that IS an Application and cannot get it to run, you need to;
    - make sure it's in your src folder
    - right click an select Run As
    - select Web Application
    This will run the app baring no compiler errors. If the mxml file is not registered as an application, this action will also register it.
    Hope that helps,
    Mike

  • Very basic code questions

    Hi,
    I'm pretty new to dealing with this so please bare with me. I come from a PHP background so I got alot to learn here ;) Anyway, to my question then. I've got a book that im reading and following examples from but also try to evolve those examples into something more, to try and learn even more. I haven't come very far yet but I've stumbled across a little thing that I woulld like some help with. I'll post the complete code just in case.
    import java.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.wireless.messaging.*;
    import javax.microedition.io.*;
    public class quiz
         extends MIDlet
         implements CommandListener {
      private List mList, longList;
      private Command mExitCommand, mNextCommand, longExitCommand, longNextCommand;
      public quiz() {
        String[] stringElements = { " Game 1", " Game 2", " Game 3", " Game 4", " Game 5", " Game 6", " Game 7", " Game 8" };
        Image[] imageElements = { loadImage("/1.png"),
         loadImage("/2.png"),
         loadImage("/3.png"),
         loadImage("/4.png"),      
         loadImage("/5.png"),
         loadImage("/6.png"),
         loadImage("/7.png"),
         loadImage("/8.png") };
        mList = new List("Quiz v1.0", List.IMPLICIT, stringElements, imageElements);
        mNextCommand = new Command("Choose", Command.SCREEN, 0);
        mExitCommand = new Command("Exit", Command.EXIT, 0);
        mList.addCommand(mNextCommand);
        mList.addCommand(mExitCommand);
        mList.setCommandListener(this);
      void HowMany() {
        String[] stringElements = { " 1 question", " 2 questions", " 3 questions", " 4 questions", " 5 questions" };
        longList = new List("Quiz v1.0", List.EXCLUSIVE, stringElements, null);
        longNextCommand = new Command("V�lj", Command.SCREEN, 0);
        longExitCommand = new Command("Avsluta", Command.EXIT, 0);
        longList.addCommand(longNextCommand);
        longList.addCommand(longExitCommand);
        longList.setCommandListener(this);
      public void startApp() {
        Display.getDisplay(this).setCurrent(mList);
      public void commandAction(Command c, Displayable s) {
        if (c == mNextCommand || c == List.SELECT_COMMAND) {
          int index = mList.getSelectedIndex();
         if ( mList.getString(index) == " Game 1") {
              HowMany();
              Alert alert = new Alert("Your Choice", "Your choice: Game 1 with X questions.", null, AlertType.INFO);
              Display.getDisplay(this).setCurrent(alert, mList);
         if ( mList.getString(index) == " Game 2") {
              HowMany();
              Alert alert = new Alert("Your Choice", "Your choice: Game 2 with X questions.", null, AlertType.INFO);
              Display.getDisplay(this).setCurrent(alert, mList);
         if ( mList.getString(index) == " Game 3") {
              HowMany();
              Alert alert = new Alert("Your Choice", "Your choice: Game 3 with X questions.", null, AlertType.INFO);
              Display.getDisplay(this).setCurrent(alert, mList);
         if ( mList.getString(index) == " Game 4") {
              HowMany();
              Alert alert = new Alert("Your Choice", "Your choice: Game 4 with X questions.", null, AlertType.INFO);
              Display.getDisplay(this).setCurrent(alert, mList);
         if ( mList.getString(index) == " Game 5") {
              HowMany();
              Alert alert = new Alert("Your Choice", "Your choice: Game 5 with X questions.", null, AlertType.INFO);
              Display.getDisplay(this).setCurrent(alert, mList);
         if ( mList.getString(index) == " Game 6") {
              HowMany();
              Alert alert = new Alert("Your Choice", "Your choice: Game 6 with X questions.", null, AlertType.INFO);
              Display.getDisplay(this).setCurrent(alert, mList);
         if ( mList.getString(index) == " Game 7") {
              HowMany();
              Alert alert = new Alert("Your Choice", "Your choice: Game 7 with X questions.", null, AlertType.INFO);
              Display.getDisplay(this).setCurrent(alert, mList);
         if ( mList.getString(index) == " Game 8") {
              HowMany();
              Alert alert = new Alert("Your Choice", "Your choice: Game 8 with X questions.", null, AlertType.INFO);
              Display.getDisplay(this).setCurrent(alert, mList);
        else if (c == mExitCommand)
         notifyDestroyed();
      public void pauseApp() {}
      public void destroyApp(boolean unconditional) {}
      private Image loadImage(String name) {
        Image image = null;
        try {
         image = Image.createImage(name);
        catch (IOException ioe) {
          System.out.println(ioe);
      return image;
    }I know that the IF parts pretty much suck, will improve those later on (or when my book does hehe) so that's not the issue. Anyways, I've included a second choice for the user which is what I call "HowMany", so first the user gets to choose between a few options (Game 1, Game 2, etc etc) and then the idea is for the user to choose how many questions, I get to that menu allright but when i try to choose that option nothing happens. I need to include some kind of listener or something to make something actually happen right? If someone would be so nice to show me how it's done it would be just super.
    Thanks in advance!

    I get to that menu allright but when i try to choose that option nothing happens.The form of javax.microedition.lcdui.Display.setCurrent you use ispublic void setCurrent(Alert alert, Displayable nextDisplayable)Which List do you want to be the nextDisplayable? mList or longList?
    Once that works, you will need to add suitable condition checking in commandAction(...) for doing stuff when the Command-s added to longList are selected.
    db

  • TS1424 Security codes question for iTunes

    I keep being asked to enter a valid security code from the back of my card. I keep entering it AND the correct 16 digit card number but it keeps asking for a valid security code. Any idea why this keeps happening?

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • J2EE Tutorial sample codes question

    Hi there,
    I just started to catchup some tutorials' sample codes using J2EE tutorial, what happened when i tried to compile the first example called "Converter" EJB, using the command:
    ant converteri get all the files compiled except the ConverterClient.java which leads to some errors:
    ConverterClient.java:15: '.' expected
    import Converter;
    ^
    ConverterClient.java:16: '.' expected
    import ConverterHome;
    ^
    ConverterClient.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    ConverterHome home =
    ^
    ConverterClient.java:27: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    (ConverterHome)PortableRemoteObject.narrow(objref,
    ^
    ConverterClient.java:28: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    ConverterHome.class);
    ^
    ConverterClient.java:30: cannot resolve symbol
    symbol : class Converter
    location: class ConverterClient
    Converter currencyConverter = home.create();
    ^
    6 errors
    whats wrong actually? I also tried to put the ConverterClient.java into another directory, after compiled the rest, then i copied the file into the build folder and compile it manually, yet still getting this error. Please help!
    Thanks
    Neo

    I think you didn't read my question properly, i had said that i manually copied the ConverterClient to the other class together as it needs;
    This is the code for ConverterClient:
    * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
    * This software is the proprietary information of Sun Microsystems, Inc. 
    * Use is subject to license terms.
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    import Converter;
    import ConverterHome;
    public class ConverterClient {
       public static void main(String[] args) {
           try {
               Context initial = new InitialContext();
               Context myEnv = (Context)initial.lookup("java:comp/env");
               Object objref = myEnv.lookup("ejb/SimpleConverter");
               ConverterHome home =
                   (ConverterHome)PortableRemoteObject.narrow(objref,
                                                ConverterHome.class);
               Converter currencyConverter = home.create();
               BigDecimal param = new BigDecimal ("100.00");
               BigDecimal amount = currencyConverter.dollarToYen(param);
               System.out.println(amount);
               amount = currencyConverter.yenToEuro(param);
               System.out.println(amount);
               System.exit(0);
           } catch (Exception ex) {
               System.err.println("Caught an unexpected exception!");
               ex.printStackTrace();
    } also please try the tutorial before answering...TQ :D

  • Validating code question

    Hello website gurus. 
    Nancy O. Pointed out a problem to me - that being my code is apparently not being validated as 'correct'. 
    Is this a problem?  And if I have all my pages as templates ... are they all going to have the same code erros?  Or do I have to check EVERY web page within my site?
    Also, if EVERY page in the site is incorrect ... do I have to just update my template so all the codes transfer over?
    Also, considering I'm totally new at this stuff, is it even possible for me to know how to correct code that is shown as invalid? 
    Here is a link to a validator output. 
    http://validator.w3.org/check?uri=http://prodigypianostudios.com/&charset=(detect+automati cally)&doctype=Inline&ss=1&group=0&No200=1&st=1&user-agent=W3C_Validator/1.1#result
    Here is my site.  I'm always changing the design so hopefully that won't hinder someone finding out if the code is wrong.
    http://www.prodigypianostudios.com
    I'm a bit confused as to if I'm using dreamweaver, how is the code wrong?  Isn't the application writing it for me? 
    Thanks a lot for the help. 
    ~Dustin

    Dustin
    It is not required for you to start a new thread, your questions would have been answered in the original post, so in the future (unless the board moderators object), just stay with your orignial post with the same problems.
    dustinsanders1987 wrote:
    Hello website gurus. 
    Nancy O. Pointed out a problem to me - that being my code is apparently not being validated as 'correct'. 
    Is this a problem?
    Yes, is usually is, if you are trying to build a site and the foundation of proper code is not met, it is like building a house and wanting to get the roof done before the foundation....
       And if I have all my pages as templates ... are they all going to have the same code erros?  Or do I have to check EVERY web page within my site? 
    Also, if EVERY page in the site is incorrect ... do I have to just update my template so all the codes transfer over?
    I hope the first sentence is just worded wrong, you create one template and then create child pages from there.  If the code in the non-editable regions is not correct, then yes, you will have to correct them all.  But all you need to do is correct the template and save and it should update all of the child pages.
    Yes, check everypage...
    Also, considering I'm totally new at this stuff, is it even possible for me to know how to correct code that is shown as invalid? 
    Here is a link to a validator output. 
    http://validator.w3.org/check?uri=http://prodigypianostudios.com/&char set=(detect+automatically)&doctype=Inline&ss=1&group=0&No200=1&st=1&us er-agent=W3C_Validator/1.1#result
    The validator will help you with that, but some of it will come from you learning to read the code...it is not really that hard. You have 13 errors, which is not that bad.
    First, find this line of code, on about line 2, on the next line, after this code
    add <head>
    <html xmlns="http://www.w3.org/1999/xhtml">
    So it looks like
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    Then find this line of code,
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    After it, add
    </head>
    <body>
    Then at the very bottom, find this line of code
    <!-- InstanceEnd -->
    and type
    </body?
    </html>
    And revalidate the page...
    Typically dreamweaver adds all the <html><head><body> opening and closing tags, why yours is not there is unclear, in all probability you unintentionally deleted it.
    See how that works out for you.
    Gary

  • Source code question

    ok, first of all please dont slate me if this question is stupid, but is there a way to get the source code of some of the java classes so i can compile and edit it myself to suit my purposes?
    thanks

    i need to fiddle with the code of theJColorChooser,
    i just need to get rid of the sample panel as itis
    annoyingly big at the moment!Umm, if you don't like the preview panel, why don't
    you just
    [url=http://java.sun.com/docs/books/tutorial/uiswing/c
    omponents/colorchooser.html#previewpanel]replace
    it?Again, I reiterate. Mucking with the jdk source is
    almost never a good idea.
    It also prevents anyone else from using the fruits of your effort, as you're not allowed to distribute those changes to anyone.
    And of course anyone with little or no experience with the language should assume that anything he does that fails is HIS fault, not that of the language.
    in fact that's an extremely healthy attitude in general, and would prevent the vast majority of the stupid "proposals" to "fix bugs" by introducing or changing core language features which are almost universally caused by people misunderstanding what the language can do and how.

  • Initial setup problems and beginner code questions ...please help?

    Hi,
    Two days ago i started playing around with Java but it has been one pitfall after another for me. I am a visually impaired user, the fun started when i wanted to install the JDK. I think i got EE 5.0 by mistake, but that doesnt even bother me that much. The installer somehow managed to totally elude the screenreader I was using and I needed sighted help to get the thing installed. I think something went wrong with the environment variables during that process because when I first tried compiling a snippet of code it couldn't find Javac. I had to enter:
    c:\sun\sdk\jdk\bin\javac.exe c:\saluton.java
    to get anything done. I have been trying to learn java using a three-year old copy of teach yourself Java in 24 hours, which might explain my following questions. Here is the code snippet i got from the first chapter:
    class Saluton {
    public static void main(string[] arguments) {
    // my first Java program goes here
    String greeting = "Saluton mondo!";
    System.out.println(greeting);
    This code didn't compile, complaining about Cannot find symbol.
    I took out another book, Learning Java, and i got the following code out of this:
    public class HelloJava {
    public static void main( String[] args ) {
    System.out.println("Hello, Java!");
    This code did compile, but when i tried:
    c:/sun/sdk/jdk/bin/java.exe HelloJava it said the class couldn't be found. I am assuming this has to do with the .class file not being in the folder where it should be, but again I don't know.
    I got the JAB (java access bridge) but I had the feeling the info that came with it is rather outdated ...could someone give me some insight on this as well?
    Thanks very much for any help you all can provide,
    Florian

    Hi,
    Using your help I've been able to find the error in the saluton mondo program, the caps of the String in the main function declaration was wrong. I have set my Path to the right setting now, and javac and java behave as they should now which is good.
    What about my question about the access bridge? How do i use it, exactly? (just telling me where that info can be found is enough really) I'm really confused by all the different .jar files and such ...
    Also, once it is installed do i need to somehow ...activate it or reference it in my code to make my apps readable? I would like to see if my program did what I wanted it to do so yeah ...
    Thanks for any help,
    Florian

  • Z77 Mpower - post code question

    I'm new to PC building and just completed my build yesterday.  Everything appears to be working fine but I noticed that while running, the debug LED display moves between
    36 and 37.  I'm not sure I understand the table that lists the codes so, wanted to reach out to the experts as to what this could be.
    One more question.  If everything is normal, should the LED display anything at all?
    Thanks very much for your time and assistance.

    Quote from: anDrasch on 22-October-12, 05:50:49
    It displays the current CPU temperature 
    Great, thanks very much for the quick response.  Glad there isn't anything wrong, I thought I had messed something up the board.

  • Noobie Finder question?

    Have searched without success in the forums.....How do you "move" a file or folder.
    I need to move my iphoto folder to the /user/shared directory so I can make all the photos available to all my mac users.
    I'm a noobie at Macs so forgive my ignorance. I only see a copy option?
    Thx for all help:P

    This is one of those seemingly simple questions... that isn't.
    Moving a folder in OS X is simple enough - you drag it from one place to another. You can move your iPhoto library to a different location quite simply like this.
    You can get iPhoto to find a library in a non-standard location (such as /Users/shared) by holding down the Option key while launching iPhoto.
    The problem comes with granting the sufficient permissions to let both users read and write to the shared library.
    In the older version of OS X it was fairly simple - Got Info on the library folder and changed permission (to give group Everyone read-write, if you were feeling a bit sloppy). With Leopard, Access Control Lists (ACLs) are also used for determining permissions and frankly, I'm not up to snuff on how these work with iPhoto. Perhaps someone with a bigger brain can help, or this may be useful:
    http://www.macosxhints.com/article.php?story=20050904072808460
    FWIW, Apple recommends avoiding permissions problems by moving the shared library to a shared disk ( which ignores permissions)
    http://support.apple.com/kb/HT1198

  • Java command line run code question?

    hello all:
    I met a question and want to get some suggestion from you.
    I have one file TestOne.java located in
    folder "c:\temp\aaa" which contains only one file(TestOne.java).
    package samples.java2beginner.gui;
    import java.io.*;
    public class TestOne {
         public static void main(String[] args) {
                System.out.println("hello world");
    }I use the following command to compile this java code:
    c:\temp\aaa\javac TestOne.java // everything is ok.
    In order to run this program, I have to manually create
    folder hierarch "samples\java2beginner\gui" in "c:\temp\aaa" and
    use the command
    c:\temp\aaa\java samples.java2beginner.gui.TestOne to run this program.
    My question is: is there any method that I can directly run
    this java program without manually create "samples\java2beginner\gui"
    which is annoying?
    thank you

    hello atmguy and DevMentee:
    Thank you for your great suggestion.
    I guess I didn't say my question clearly.
    The class file compiled from TestOne.java is TestOne.class which cannot be modified.(so i cannot erase the package line or any kind of modification)
    I want to run the java program from command line.
    currently I have to create "samples\java2beginner\gui" and copy TestOne.class to there.
    My question is: given one class file only(so you only get the TestOne.class),
    do you have method to run it from command line?
    so at this case you don't know which package the .class belongs to.
    You might think my question is silly. The reason I posted the question because
    I found problems when I use jode to decompiler a class file.
    JODE is a java decompiler from jode.sourceforge.net
    Given the above class file "TestOne.class", I cannot use jode to decompile it, because I have to run jode with the following method:
    c:\temp\aaa\java jode.decompiler.Main -cp samples.java2beginner.gui.TestOne
    which in fact is impossible given only .class file?
    because the reason we use jode is to decompiler, how can you know the package
    structure before decompile?!
    so the problem came to my original question.
    thank you all.

  • Another Simple Code Question... Please Help!

    Hi!
    I've stumbled across another problem with my coding, and I'm hoping that someone could help me out again. I've now got two classes, one with the code to draw a button, and the other which invokes the button and does a number of other things.
    I'd like it so each button is assigned to a different sound, but I get these errors when I compile...
    D:\java\Phone.java:8: cannot resolve symbol
    symbol : class AudioClip
    location: class Phone
    private AudioClip sound1;
    D:\java\Phone.java:64: cannot resolve symbol
    symbol : variable myButton1
    location: class Phone
    if (event.getSource() == myButton1)
    Could anyone suggest as to why this is?? Here is the source code (I've trimmed it down for the sake of these pages...)
    >>>>>>>
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    public class Phone extends Applet implements ActionListener {
    private Image image;
    private AudioClip sound1;
    public void init() {
    setLayout(null);
    image = getImage(getDocumentBase(), "phone.jpg");
    sound1 = getAudioClip(getDocumentBase(), "sound.wav");
    PhoneButton myButton1;
    myButton1 = new PhoneButton(322,180, 1);
    add(myButton1);
    myButton1.addActionListener(this);
    public void paint (Graphics g) {
    g.drawImage(image, 0, 0, 700, 530, this);
    super.paint(g);
    public void actionPerformed(ActionEvent event)
    if (event.getSource() == myButton1)
    sound1.play();
    >>>>>>>
    Again, I'm sorry about the indentation.
    Cheers in advance!

    To answer your post...instance variables mean you should put your variable declarations
    just below the class declaration like u have done with this...
    public class Phone extends Applet implements ActionListener {
    private Image image;
    private AudioClip sound1;Just add here...
    PhoneButton myButton1;
    this.
    That would make myButton1 an instance variable.
    sorry, i don't understand. And now, since you've put up dukes for answering your question...you have to reward them
    else they go waste. But only if you thought my reply was helpful to you. The choice is yours.
    cheers.

  • Can sumone help me with this promo code question?

    I got a promo code and I entered it but the itunes music store says that this code as already been used. I haven't used the code and would like to know how to redeem my credits.

    Just FYI, everyone here is just a fellow user; no one here (with very rare exeptions) works for Apple. Everyone here helps out of the goodness of their hearts and as they have time and knowledge.
    So have patience when you post; it's very unlikely that you'll get a response within just a couple of minutes, and in some cases it may take hours for someone to see your question who has suggestions to offer. So please don't post back again (unless you're adding details to your question) for at least a few hours, and better not for a day or so, and definitely don't post back on a few minutes after your first post. That's just going to annoy people and make them less likely to want to help you.

  • MSI-GD65 Status code question

    Hey everyone, I just got my MSI-GD65 board hooked up for an external power up to make sure all my components are working before I fire it all into my case, and I noticed a status code on the POST LED's that says "bb" I'm assuming they are "B" and not "6".  I just don't see anything listed for a "bb" POST code.  Can anyone tell me what this is? 
    Just some quick potentially useful info:  I do not have a hard drive connected, and I am only using the integrated graphics on the Intel i7-4770k processor.  I am only booting into the BIOS.  I have 2 sticks of DDR-1600 RAM that is detected fine and doesn't seem to show any issues.
    Just as a side question, my CPU idle temp is ~50C.  This seems high, but I am using the stock HS right now.  Anyone know if this is high enough that I should be concerned about something?
    Thanks a lot everyone!

    I just have a hard time believing that the code is sixes.  Every other 7 segment display I've seen displays the sixes with the top segment also lit up.  I was just trying to clarify if there was some sort of known use of the displays showing this sort of arrangement.  Also if it was displaying temp. I think it would increase or decrease at least 1 degree over the hour that it sat idle.  It never moved from the "bb" code that was posted.
    The BIOS temp does vary from 50-51C and I can see this change in real time, so I am much more inclined to believe this is the actual temperature, or at least a more realistic representation of it, even if it is not 100% accurate.
    Thank you both for the replies though.  I think I will safely assume that it is the standard "bb" code that is displayed while in the UEFI BIOS, and see what happens when I get everything hooked up into the case later today.
    Unless there is anything else anyone else would like to add?  All help and input is appreciated!

  • Code questions in DWCS6

    Hello, my CSS fiole passes 3C3 but my Template which had over 39 problems is now down to Four. I could use some help because I'm clueless to what they are saying.
    The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation, or other things affecting the output below. If the guess or fallback is incorrect, it could make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.
    Info Using Direct Input mode: UTF-8 character encoding assumed
    Unlike the “by URI” and “by File Upload” modes, the “Direct Input” mode of the validator provides validated content in the form of characters pasted or typed in the validator's form field. This will automatically make the data UTF-8, and therefore the validator does not need to determine the character encoding of your document, and will ignore any charset information specified.
    If you notice a discrepancy in detected character encoding between the “Direct Input” mode and other validator modes, this is likely to be the reason. It is neither a bug in the validator, nor in your document.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    1......... I don't get what they are trying to tell me above about UTF-8
    2..... line 24,46, and 195 are whats left after fixing 39 other errors in the Tempate. I need help with these four if some knows the answers to what 3C3 code wants.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
    Error Line 24, Column 8: required attribute "type" not specified
    <script>

    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
    My code for Line 23:    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    Problem on  Line 24:                     <script>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
    Error Line 46, Column 7: end tag for "head" which is not finished
    </head>

    Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
    Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXX
    MY code for Line 43:   <!-- TemplateEndEditable -->
    Line 44:   <!-- TemplateBeginEditable name="head" -->
    Line 45:   <!-- TemplateEndEditable -->
    Problem on Line 46:               </head>
    Line 47:               <body>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXX
    Error Line 195, Column 65: there is no attribute "color"
    <hr align="center" width="95%" size="2" noshade="noshade" color="#069"/>

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
    My code for  Line 194:     </table>
    Problem on Line 195:      <hr align="center" width="95%" size="2" noshade="noshade" color="#069"/>
    code for Line 196:  is blank line
    code for 197:                  <table width="95%" border="0" align="center" class="table">

    Below is main template one minus any Identification of site.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXX
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/single.css" rel="stylesheet" type="text/css" />
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <meta name="title" content="  - " />
    <meta name="description" content="   " />
    <meta name="keywords" content="   " />
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <meta http-equiv="Content-Language" content="en-us"/>
    <meta http-equiv="VW96.OBJECT TYPE" content="Homepage"/>
    <meta name="RATING" content="General"/>
    <meta name="REVISIT-AFTER" content="15 days" />
    <meta name="ROBOTS" content="ALL"/>
    <meta name="GOOGLEBOT" content="Index, Follow"/>
    <meta name="author" content=""/>
    <meta name="replyto" content="customerservice@"/>
    <meta name="resource-type" content="document"/>
    <meta name="distribution" content="Global"/>
    <meta name="copyright" content="©2008-2014  - All Rights Reserved Worldwide."/>
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script>
    <!--
    //Disable right click script III- By Renigade ([email protected])
    //For full source code, visit http://www.dynamicdrive.com
    var message="";
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    document.oncontextmenu=new Function("return false")
    // -->
    </script>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body>
    <table width="95%" border="0" align="center" class="table">
      <tr>
        <td width="55%" class="content"><img src="../Images//.jpg" width="600" height="212" alt=""
    /></td>
        <td width="12%"><p style="font-family: Verdana, Geneva, sans-serif; text-align: center; font-
    weight: bold; color: #C06; font-size: 14pt;"> </p>
          <p style="font-family: Verdana, Geneva, sans-serif; text-align: center; font-weight: bold;
    color: #C06; font-size: 14pt;"><span style="color: #C06; font-weight: bold; font-style: italic;
    font-size: 12pt; text-align: center;">$5 Shipping.</span><br />
            <span style="color: #C06; font-weight: bold; font-size: 10pt;">Every order. Every
    day.</span><br />
            <span style="color: #000; font-size: 9pt; font-weight: normal;">No minimum. Ground service
    only.
            Offer valid in the Continental US only.</span></p>
        <p style="font-family: Verdana, Geneva, sans-serif; text-align: center; font-weight: bold;
    color: #C06; font-size: 14pt;"> </p></td>
        <td width="12%" style="text-align: center"><p> </p>
          <p><span style="color: #C06; font-weight: bold; font-style: italic; font-size: 12pt; text-
    align: center;">FREE</span><a href="../Services.html"><br />
            <span style="font-family: Georgia, 'Times New Roman', Times, serif; font-style: italic;
    font-size: 16pt; color: #069; font-weight: bold;">Gift Wrapping</span><br />
            <span style="font-size: 9pt; color: #000; font-weight: normal;">available.<br />
            Click here to request<br />
            Free Gift Wrapping<br />
        on your purchases!</span></a></p></td>
      </tr>
      <tr>
        <td colspan="3" class="content"><span class="header2">Designer fashion</span></td>
      </tr>
    </table>
    <table width="95%" border="0" align="center">
      <tr>
        <td style="text-align: left"><ul id="MenuBar1" class="MenuBarHorizontal">
          <li> <a href="../"></a></li>
          <li> <a href="#" class="MenuBarItemSubmenu">Luna Luz</a>
            <ul>
              <li><a href="../Collections.html">Collections</a></li>
              <li><a href="#" class="MenuBarItemSubmenu">Garment Dye</a>
                <ul>
                  <li><a href="../_Collection.html">Dresses</a></li>
                  <li><a href="../_Collection.html.html">Separates</a></li>
                  <li><a href="../_Linen_Collection.html">Linen</a></li>
                  <li><a href="../Dyed_Popcorn_Collection.html.html">Popcorn</a></li>
                </ul>
              </li>
              <li><a href="#" class="MenuBarItemSubmenu">Specialty Dye</a>
                <ul>
                </ul>
              </li>
              <li><a href="#" class="MenuBarItemSubmenu">Silk</a>
                <ul>
                  <li><a href="../_Collection.html">Silk Organza</a></li>
                  <li><a href="../Collection.html">Tie Dye Organza</a></li>
                  <li><a href="../Collection.html">Silk/Cotton/Lycra</a></li>
                  <li><a hrefCollection.html">Silk</a></li>
                </ul>
              </li>
            </ul>
          </li>
          <li> <a class="MenuBarItemSubmenu" href="#">Shoes</a>
            <ul>
              <li> <a href="../South_Bay_Boot.html">Chinese Laundry Boots</a></li>
              <li> <a href="../Collection.html">Nicole Shoes</a></li>
              <li> <a href="../Shoe_Collection.html">Poetic Licence Shoes</a></li>
              <li> <a href="../Collection.html">Dizzy Sandals</a></li>
            </ul>
          </li>
          <li> <a href="#" class="MenuBarItemSubmenu">Handbags</a>
            <ul>
              <li>
            </ul>
          </li>
          <li> <a href="#" class="MenuBarItemSubmenu">Accessories</a>
            <ul>
              <
                <u
                  <li><a href="../Collection.html"> Belts</a></li>
                  <li><a href="../Collection.html">Raina Belts</a></li>
                  <li><a href="../Collection.html">Sandy Duftler Belts</a></li>
                </ul>
              </li>
              <li><a href="../Hats.html">Jeanne Simmons Hats</a></li>
              <li><a href="../Necklace_Collection.html">Zacasha Tassel Necklaces</a></li>
            </ul>
          </li>
          <li> <a href="#" class="MenuBarItemSubmenu">Underneath</a>
            <ul>
              <li>
            </ul>
          </li>
          <li> <a href="#" class="MenuBarItemSubmenu">On Sale</a>
            <ul>
              <li><a href="../Collection.html">Check </a></li>
              <li><a href="../Clothing_Collection.html">Matte Jersey</a></li>
              <li><a href="../Discontinued_Items.html">Discontinued </a></li>
            </ul>
          </li>
          <li> <a href="#" class="MenuBarItemSubmenu">Specials</a>
            <ul>
              <li> <a href="../">Weekly Special</a></li>
              <li> <a href="../">Outfit of the Week</a></li>
              <li> <a href="../">Coupon of the Week</a></li>
            </ul>
          </li>
        </ul></td>
        </a></td>
      </tr>
    </table>
    <table width="95%" border="0" align="center">
      <tr>
        <td><!-- TemplateBeginEditable name="Content" -->EditRegion3 <!-- TemplateEndEditable --></td>
      </tr>
    </table>
    <table width="50%" border="0" align="center">
      <tr>
        <td class="bodysmall">color swatches go here</td>
      </tr>
    </table>
    <hr align="center" width="95%" size="2" noshade="noshade" color="#069"/>
    <table width="95%" border="0" align="center" class="table">
      <tr>
        <td width="25%"><table width="100%" border="0" align="center">
          <tr>
            <td class="menuhead">Customer Service</td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../html">Contact Us</a></td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../Clothes.html">How to Shop</a></td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../">Shop by Mail</a></td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../Her.html">Shopping Hints</a></td>
          </tr>
        </table></td>
        <td width="25%"><table width="100%" border="0" align="center">
          <tr>
            <td class="menuhead">Services</td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../html">Gift Wrapping</a></td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../html">Gift Certificates</a></td>
          </tr>
          <tr>
            <td> </td>
          </tr>
          <tr>
            <td> </td>
          </tr>
        </table></td>
        <td width="25%"><table width="100%" border="0" align="center">
          <tr>
            <td class="menuhead">Policies</td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../.html">Exhange Policy</a></td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../.html">Privacy and Security</a></td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../.html">Site Use Terms</a></td>
          </tr>
          <tr>
            <td> </td>
          </tr>
        </table></td>
        <td width="25%"><table width="100%" border="0" align="center">
          <tr>
            <td class="menuhead">Useful Information</td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="html">About Us</a></td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../">Size Chart</a></td>
          </tr>
          <tr>
            <td class="bodysmall"><a href="../">Garment Care</a></td>
          </tr>
          <tr>
            <td> </td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="95%" border="0" align="center">
      <tr>
        <td style="text-align: center"><table width="35%" border="0" align="center">
            <tr>
              <td class="bodysmall"><img src="../.jpg" alt="We accept MasterCard, VISA, Discover and
    American Express" width="209" height="40" align="middle" /></td>
              <td class="bodysmall"><a href=".asp"><img src="../Images/SiteImages/" alt="" width="120"
    height="40" class="body" /></a></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td style="font-size: 8pt; text-align: center; color: #666; font-weight: bold;">. Copyright
    2008-2014. All rights reserved worldwide.</td>
      </tr>
    </table>
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
    {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif",
    imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script> 
    </body>
    </html>

Maybe you are looking for

  • How to hide either Devices or Server Properties in RD 2008 R2?

    In Remote Desktop Services 2008 R2 the Control Panel option Printers changed to Devices and Printers, this is too much information for RD users. We tried to hide this by means of a GPO, but the only option here is to hide the complete item, not just

  • Remove the extra email

    Problem: I have 2 mail and {name @ me . com} {name @ yandex . ru} I stopped using {name @ yandex . ru}, how to remove it from the profile?

  • Corrupt CF Card Error on iMac, but not other computers

    I have tried 5 different CF cards from 3 different manufacturers, 2 of which were band new right out of the box.  Took photos using 3 different camera each time formating the cards.  I can download the photos via a USB 3.0 Verbatim card reader to my

  • Payment arrangement for Friday 05/09/214 to the $100.00

    Would like to make a payment arrangement for Friday 05/09/214 to the $100.00

  • Gmail Won't Send In Mail on ML

    So about a month or so ago, I updated from Snow Leopard to ML.  Ever since then, at random seemingly my Gmail (primary email) will just cease to send emails from the Mail app.  Only "solution" I've come up with thus far is to restart my computer in o