Jump to content

Lopti

Active Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Lopti

  1. Well, s3 would contain whatever was in s1 from index 7 to index 12. This is due to the fact that "substring(int startIndex,int endIndex)" returns a String from the startIindex parameter (inclusive) to the endIndex parameter (exclusive). So essentially, it returns startIndex to endIndex-1. For future reference: http://java.sun.com/j2se/1.3/docs/api/index.html
  2. I was sure it would have been my comment about the braces that would have started a discussion, not the bloody variable declarations :P . I don't think Coopers code is "wrong" at all (it's syntactically and semantically correct), it's just written in a different style that has different benefits. This sort of thing always seems to be an issue though. Usually because most people are a bit apprehensive (myself included) to move away from what they have learnt and developed over a significant period of time, to something else just on face value. Even more so if they have been getting good, consistent results already.
  3. As opposed to reading through X lines of code to find where it is declared? I would have thought going straight to the top would be easier considering you would have a fair idea where it is. My main reason for doing this is I believe that it improves clarity. Not only in having easier to read code, but when someone reads the first part of the method, they can see exactly what is stored locally (this seems to make sense as most people don't read code backwards). Also, it improves consistency in the structure of the method while I don't think it hurts the æsthetics at all (this is obviously of lesser concern). When it comes down to it, people are going to code in a particular style because they either see value in it or "that was what I read/was taught". In team environments, the value on consistency really comes out, especially when you have to go and maintain older code written by other developers. Anyway, as I said in my previous post, they were just some guidelines that K1u may want to think about, not the meaning of life. Cheers.
  4. Good start mate, the first class in any language is always an achievement. That said, I agree with a lot of what Cooper said. Style is a matter of taste but there are a few things you might like to think about (keep in mind these are just some guidelines, feel free to ignore me). 1: Declare all instance variables at the beginning of a class, while all local variables should be declared at the beginning of their respective methods. 2: Good indentation makes code a lot more readable. So as a general rule of thumb, tab in once every time you open a brace, keep everything within that block aligned, then tab out once when you close the block. 3: Java has some pretty nifty (Yes, I said nifty) ways of extracting comments from code i.e. javadoc. However, javadoc requires specific types of comments, which are of the /** */ variety. More info on that can be found here: http://java.sun.com/j2se/javadoc/writingdoccomments/ 4: Where to put braces? Well, I'm not even going to get into that one. Some people say you should open the block on the same line as the method declaration, others say on the line below...(the second group of people would be correct :P) but that again is taste. Cheers.
  5. I think the word you're looking for is "channels". Anyway, #hak5 and #hak5dev are my preferred channels ( even if I do spend most of my time lurking/idling). Other than for the hak5 server, I don't really use IRC. Cheers.
  6. I prefer fluxbox. It's light, fast and configurable. Gnome is too clunky and KDE just doesn't appeal to me.
  7. Lopti

    C++

    If the VB cert. is free (as in your employer or someone is paying etc.) then sure, it's another thing to put on the curriculum vitae. But certs. in other languages will go a lot further for gaining employment/promotion. But keep in mind certs. only go so far, having a diverse body of projects and experience will help you more in the long run.
  8. A ActiveX controler that has a embedded Java bitorrent client? Haha, no, to be fair it isn't that bad. I'm just over it because we are developing something at work that has to interact with this particular piece of software and I can't seem to get away from it no matter where I go!
  9. I try to get to as many Uni lectures as I can, but with my job consuming my life, that seems to be getting fewer. However, the vast majority of lectures are recorded (be it audio with sync'd slides or video) either at my campus or one of the other UTas camps' around the state, so accessing the material is very easy ( even if it is via the most clunky piece of software on earth). As for notes, I only make notes on things which I want to find out more about.
  10. Slackware from my experience, is a very stable distro. I've been running Slackware in various forms for years, which I have really enjoyed. That said, "almost unbreakable" may be going a bit far. Comparison with Debian? Well. Slackware is very UNIX like in almost every aspect so it may suffer slightly on the user friendly front, but it is just as flexible as Debian. I wouldn't recommend it for a *nix newbie, but if you know your way around the command line, it's a very nice distro. Why not install it and give us your comparison?
  11. I think the Hak5 Cludo idea (or some derivative there of) has a lot of potential, especially in its scalability. Also, the variety of challenges that it may present (depending on how in depth the project goes) would give people a chance to experience different aspects of development, not only writing code, but software design/architecture, testing, etc. *edit* Link to the snake tutorial, with in depth explanation: http://www.strille.net/tutorials/snake/index.php
  12. Lopti

    Do you code?

    I code, for the most part, in Java, C++/C#/C as I work primarily on back end systems. Also, a fair bit of SQL, PHP, XML and a few others.
  13. Sorry to be pedantic, but the folding@home client simply gets work units from the servers, individual nodes are not linked together. That said, this is a great project I have been participating in for a while and I would be very interested in a Hak5 team.
  14. Read this. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ Specifically section 5, but it sounds like you should read from the start.
  15. Deagoba makes a good point. Knoppix, being a live cd is not intended for (though it is possible) hard drive installation. If you like Knoppix you should consider installing Debian or one of its many derivatives.
  16. OS dev is not an easy thing to do well however, using the search function is. http://hak5.org/forums/viewtopic.php?t=168...p;highlight=lfs
  17. Lopti

    fags

    I know what you mean. I quit two years ago and I still miss it. It's strange, I can't stand being around smoking now, but I still get cravings.
  18. Lopti

    Code

    Sun host a fairly comprehensive tutorial for Java, granted it isn't the most interesting, but the information is there none the less. http://java.sun.com/docs/books/tutorial/
  19. It looks great, especially that banner.
  20. You may also want to have a look at IPCop, it supports traffic shaping and prioritization etc. It's very easy to install and administer as well as having several plug-ins for extended functionality and security. http://ipcop.org/
  21. If it is a long string of characters that look like hex then I would say it's a kernel panic. That said if you were to post the string, it would make giving you a decisive answer easier. Cheers.
  22. Hey, it sounds like a kernel panic, google the error code, you may get lucky. Make sure you meet the minimum specs first. Also read the hardware FAQ and have a look through some of their documentation. If all else fails, SmoothWall is also a good alternative and may not have the same issues. SmoothWall also has a larger community behind it so that may also be appealing. Hardware FAQ: http://ipcop.org/modules.php?op=modload&am...es&id_cat=5 Documentation: http://ipcop.org/modules.php?op=modload&am...opDocumentation
  23. 1. Nano/Pico. 2. VLC. 3. Bluefish. 4. CenterICQ. 5. Firefox. 6. Irc/Irssi. 7. Xmms. 8. Bittorrent. 9. Open Office. 10. Gimp.
×
×
  • Create New...