Sponsored By

Hai-Etlik

Members
  • Content Count

    81
  • Joined

  • Last visited

Everything posted by Hai-Etlik

  1. Hai-Etlik

    How To Make A Program Run All The Time

    You can run some software as daemons but not all software is suited to this. I'm guessing Ktorrent is a KDE BitTorrent client. As such, it probably expects to be run with a UI. What you want is probably something like this http://wiki.theory.org/BASH_script_to_run_...ent_as_a_daemon I found it with a google for "torrent daemon"
  2. Hai-Etlik

    "www" Needed Somethimes?

    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)
  3. Hai-Etlik

    Firefox Centering?

    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.
  4. Hai-Etlik

    Best Free Linux Game?

    It uses the Quake 3 engine, not Doom 3.
  5. Hai-Etlik

    Yahoo Messenger Question

    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.
  6. Hai-Etlik

    Desktop Themes

    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.
  7. Hai-Etlik

    Desktop Themes

    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/
  8. Hai-Etlik

    Operating Systems

    Most often C, which is then compiled to machine language. Of course the exact boundaries between "Operating System" and everything else are kind of blurry so it's hard to really make any general statements.
  9. Hai-Etlik

    Raid Server

    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.
  10. Hai-Etlik

    Martint.net V3

    The default, that is, whatever the USER has specified as their prefered text size. Non-body text should then be derived from it using the size keywords or less preferably, percentages.
  11. Hai-Etlik

    Martint.net V3

    Certainly better, but still not what I would consider good. Small text with poor foreground/background contrast and it doesn't scale to different sized viewports.
  12. Hai-Etlik

    Programming Road

    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.
  13. Hai-Etlik

    Critical Flaw In Ubuntu 5.10

    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.
  14. Hai-Etlik

    Which One?

    I don't particularly like either but the second is better.
  15. Hai-Etlik

    Possible To Expand List On Xml?

    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.
  16. Hai-Etlik

    Scrollable Text Area On Index Page

    http://www.w3.org/TR/CSS21/visufx.html#overflow
  17. Hai-Etlik

    Summation Code

    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.
  18. Hai-Etlik

    Need Your Input.

    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.
  19. Hai-Etlik

    Current Time

    Ruby puts Time.new
  20. Hai-Etlik

    My Very Plain Websight

    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.
  21. Hai-Etlik

    Thunderbird Reply Format

    Defaulting to bottom posting encourages the poster to trim the quoted material properly. Besides which top posting is considered a breach of ettiqutte in many Usenet groups and Mailing lists.
  22. Hai-Etlik

    Any Insite,, What Am I Not Seeing

    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.
  23. Hai-Etlik

    Any Insite,, What Am I Not Seeing

    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.
  24. Hai-Etlik

    Any Insite,, What Am I Not Seeing

    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
  25. Hai-Etlik

    Network Switch

    For your purposes A switch just connects things together. A NAT Router does the trickery needed to "share" a connection to your ISP. It generaly includes a hub or switch in the "inside" interface.