Hai-Etlik

Members
  • Content Count

    81
  • Joined

  • Last visited

Posts posted by Hai-Etlik

  1. The www is not indicating the protocol; that's what the scheme portion of the URL ("http") is doing.

    "www.sitename9.com" is a DNS name which in the context of the URL is being used as a hostname. The web browser simply doesn't care about the structure of DNS names, and doesn't even really need to know that it IS a DNS name as it just passes the hostname to the resolver in the OS. So as far as your web brower is concerned, the www is no more meaningful than any other part of the hostname.

    Now DNS names are hierarchical. Once you have a name, you can create as many sub names as you want and do whatever you want with them. You can do a lot of different things with them, using them as hostnames is just one, and hostnames don't need to be confined to those hosts running web servers.

    So if you have a bunch of machines, and one domain name, you will probably want to give each host a name under the domain name you have. If you follow convention, the real names will be meaningless things unrelated to the location or use of the machine in question, but you will want aliases that are based on their use. Like www for the machine running the public web server. So www.whatever is saying "the public web server of whoever controls the whatever domain." Now you can associate an address with a domain and still have subdomains, and since the most common use of DNS at the moment is web hostnames, it's common to use the highest name for the web server.

    There has been an addition to DNS that is supposed to make all of this work better called the SRV record. It lets you associate different services on different hosts with a single name. And a service can be provided by several hosts. It also dispenses with the need for standard port numbers (You can have two web servers on a host without needing to include a port number in the URI). Unfortunately, SRV records are very poorly supported by applications (None of the major web browsers support it)

  2. Setting the left and right margins to 'auto' is the standard way to centre a block and it should work in all remotely CSS compliant browsers. (everything except IE)

    text-align should ONLY apply to inline text within the applicable element (Check the W3C spec if you want). But IE centres block children as well. This is wrong, simply thinking about it should make it obvious why as combining these two different functions makes the whole mechanism far less flexible. Centring just one block in IE requires that you wrap it in an extra element.

  3. Hey guys!! it's just lil 'ole me again. I'm already using my Yahoo Messenger through GAIM but what I'd like to do is have it set up the way it was when I was using 'er Windows. When I go to Yahoo installation screen they give me these instructions:

    Debian Linux

    1. Save the file to your machine.

    2. Log in as root and type: dpkg -i ymessenger_1.0.4_1_i386.deb to install the application.

    3. Run /usr/bin/ymessenger from X Window to launch the application.

    And since I'm generally new to Linux, I was under the impression that you don't log in as "Root" so could you please tell me how I'd go about installing this please? Also with my MSN Messenger, I'd like to change my picture but not sure how because once I switched over to LInux, it's not as easy and I'd like to have my MSN Messenger to look the same as it was in Windows also. I'd appreciate the help.

    On systems without a root password, you generaly have an account that can get root priveledge as needed using sudo. To do this "sudo command". In your case "sudo dpkg -i ymessenger_1.0.4_1_i386.deb". Then give your accoutn password. Sudo will remember and let you issue more sudo commands for a short time afterwards without needing your password.

    If you are using Ubuntu 6.06 there is a program called GDebi which is a nice graphical installer for deb packages. You should just need to double click on a deb file and it will display information about it, click the install button and it will use a graphical version of sudo to ask for your password and gain root priveledges.

    Finaly, The official Yahoo client for GNU/Linux is ancient and absolutely pathetic. Stick to Gaim or another third party client. If you want you can try out the Gaim 2.0 beta. http://www.debuntu.org/2006/04/19/31-gaim-...r-ubuntu-dapper Keep in mind that it is a beta, but it is really nice.

  4. click on computer→desktop preferences. there you will find a theme manager. in there, all your themes are stored and changed.

    you can add more themes by downloading them at e.g. www.gnome-look.org. there you will get the tar.gz files for the themes. simply drag and drop them into the theme selector window and they get automatically installed.

    Well if I click on System > Preferences > Theme I find the theme manager with no problem.. and I chose the theme "Glider" , it says to "Install Theme" , the Theme Installation window pops up and ask me for A Theme Install location or to browse where it is.. Where's the location? and how do I accomplish this?

    "Install Theme" is for adding themes to that list. So it is asking for a theme package that hasn't been installed yet, for instance one you might download from one of the sites we listed. Simply selecting something on the list should be enough to apply the theme, you don't need to press a button afterwards. Instant settings changes like that are a standard part of GNOME's Human Interface guidelines (HIG), there are some places it just doen't work but they try to do it where they can.

  5. There are several themable components with seperate themes.

    GTK+ is the toolkit used by GNOME applications. All the widgets that make up those applications will be in whatever you set as the GTK+ theme.

    Metacity is the window manager (you can use others if you want though) and its themes control the border arround the windows.

    Icon themes control the icons used to represent files as well as those used in dialog boxes, buttons and tool bars.

    These three make up the majority of theming on GNOME and are the three components contrlloed by the theme control dialog iccaros mentioned. Your desktop background, mouse cursor, sounds, loading screen, and GDM greeter are handled seperately.

    Besides http://gnome-look.org/ and http://themes.freshmeat.net/ there is also http://art.gnome.org/

  6. There are a LOT of options and variables involved in this sort of thing. You could range from terminals (aka. thin clients), to workstations using something like DHCP, ZeroConf, and maybe a file server to retrieve their configuration information and store data. Depending on your needs you may be best off with a mix of the two. It realy depends on what you plan to do with these machines.

    Even after all that, there are different protocols and implementations for all this stuff.

  7. I figure as I am young and would like a computer career in the future, It would be best to learn a major computer language now. As a just in case kind of thing, and it is just nice to have it backing you up if I ever need it. C++ seems like it is one of the most popular computer languages out their, so where should I start. I have no knowledge of computer programming (aside from HTML and CSS if that counts) and would like to start somewhere easy and simple, but not something that will take forever to learn. Help appreciated.

    HTML and CSS do not count, they are not programming languages. At best they will give you familiartity with formal languages and editing them in gneral but that is a very small part of programming. Languages in general are only a small part and once you know how to program they are fairly easy to pick up.

    I'd suggest that if you want to learn to program, you should start with Ruby or Python. Java is probably a better first language than C++ but Ruby and Python are far better than it in turn.

  8. The installer for Ubuntu 5.10 uses a configuration system that logs your answers, unfortunately including the plaintext root password (if you set one) and plaintext password for your first user (who has SUDO access and can become root).

    Run your updates NOW! The affected packages are base-config, login, and passwd.

  9. I hate some site's XML (im talking about the RSS). most of the time it 10 or 20. sometime i have to go to their site and see what did i miss. Is it possible for me to get their XML and add more things on the list and put on their site. i dont mean on their site, i mean something that i want the list to be expand

    XML is used for a lot of different things, RSS is just one application of it.

    And it's realy no different from any other web page, it's just in a far less presentational form that can be more easily manipulated. So some web pages may let you alter that sort of thing but most will not, and any mechanism behind that sort of thing will vary from site to site.

    Some RSS/Atom applications act as "aggregators", that is they store or combine feeds. Of course the entire point of RSS is to allow for a wide range of different uses for the innformation so many applications do completely different things. Try looking at some different RSS apps.

  10. That sounds like a homework question, and you didn't even specify a language.

    I'll give you a hint, the obvious solution is to use two loops, one nested in the other. But if you know the length of the list before starting, you can do it with just one loop.

    Heh, on second thought you don't even need to know the length of the list.

  11. Heh, did this for fun myself, though I used NHL teams rather than Baseball teams and I used Ruby rather than Basic. I did this for fun, not masochism after all.

    I simply looked at the options that have not been eliminated and ranked the questions on how close they come to splitting the remaining options in half. In a tie I select a question at random. If none of the questions will refine the search further, or it is the 20th question, I select a team at random.

  12. Spell checking won't get all spelling errors.

    "Sight" is a word but it isn't the right one. It's "Web site", as in location, not vision.

    HTML and CSS are easy, at least if you remember to learn both rather than misusing HTML where you should use CSS. It's well worth getting a working knowledge of them.

  13. With floating point there isn't a next lower number (At least in theory) You don't reduce things by one increment as there isn't sutch an increment. Just because the numbers you happen to be using only go to tenths, doesn't mean that the computer is thinking in tenths.

    If you look at my ruby script, you will see that I don't check against each range, I instead convert directly from a number into the array index for that range.

    Ruby:

    i=((line.to_f-START)/BRACKET).to_i

    This takes the value, subtracts the start, then divides by the width.

    The result is a floating point number which is 0 at the start of the first range, 1 at the start of the second range, and so on.

    It then converts to an integer (truncating the fractional portion) The result of this is an index into an array where the elements represent ranges that include the low bound but not the upper bound, which seems to be what you are after.

  14. for (int x = 0; x <= slots; x++)

    It's an off by one error. You are starting at 0 and going up to the size of the array, including 0 that's size+1 indicies. The last index of an array is one less than its size.

    This is one of those things you need to make habit. You can use "or equal to" tests to control for loops and it may make more sense in a few cases. But you should train yourself to see it as wrong, because usualy it is wrong.

    Another problem is that when you detect that the file can't be opened and report an error, you skip some stuff, but still print out some "results". You sould probably return 1; at that point.

  15. Maybe C++ isn't the best language for a quick and dirty little tool like this

    brackets.rb

    #!/usr/bin/ruby

    START = ARGV[0].to_f
    BRACKET = ARGV[1].to_f

    counts=Array.new()

    $stdin.each_line do |line|
    i=((line.to_f-START)/BRACKET).to_i

    if counts[i].nil?
    counts[i]=1
    else
    counts[i]+=1
    end

    end

    counts.each_index do |i|

    puts "[#{i*BRACKET+START}, #{(i+1)*BRACKET+START}) : #{counts[i]}"

    end

    $ ruby bracket.rb 96.5 0.4 <test.txt
    [96.5, 96.9) : 1
    [96.9, 97.3) : 2
    [97.3, 97.7) :
    [97.7, 98.1) : 2
    [98.1, 98.5) :
    [98.5, 98.9) : 1
    [98.9, 99.3) : 2