Minecraft PC IP: play.cubecraft.net

Search results

  1. alyphen

    Coding Cameron's Help Panel

    def shortfind(str, substr, end): return str.find(substr, 0, end) shortfind(white_rabbit, 'late', 19)
  2. alyphen

    Coding Java trouble shooting(GUI specifically)

    As you're using JButton, I'm going to assume you're using Swing. Set the panel's layout to CardLayout. When you add each panel you want to switch between, you do so with add(myPanel, "stringIdentifierForPanel"); Then, when the button is clicked, call layout.show(parentPanel...
  3. alyphen

    Will be doing some code sessions with Luke (rubik) over the next few weeks. We'll see what we...

    Will be doing some code sessions with Luke (rubik) over the next few weeks. We'll see what we can do.
  4. alyphen

    Coding Lambda or Implement ActionListener?(Java)

    Just another note, you can do something like the following: b1.addActionListener(event -> { // Full method body - no ex tra methods required }); I like this approach personally, it looks a little cleaner and cuts down on code.
  5. alyphen

    Coding Java: Can you read an Excel Spreadsheet?

    Yes - you can write your own parser for it. When separating with commas, this is essentially a csv file ("Comma Separated Values") Best practice would probably be to have a CSVFile class that takes a file into it's constructor (which it stores in a class variable/field). There would be a reload...
  6. alyphen

    Coding How much can you gain from an IP address?

    An open port on your router will return an ICMP unreachable if no service is running. If a service is runnable, it can be vunerable, and hence vulnerabilities can be exploited. About the most someone can do with an IP address alone is flood you with useless packets which would slow your...
  7. alyphen

    Coding Java: Can you read an Excel Spreadsheet?

    Yes, you can. There's a variety of different methods to do this depending on what you mean by "Excel Spreadsheet". If you're just creating a table or something that opens in Excel, the easiest way is just to do it with csv and write your own parser, since csv are essentially text files. If...
  8. alyphen

    Coding Cameron's Help Panel

    The function runs when you call sum(1, 3) - so the print statement is run. Since there is no return statement, no value is stored in the answer variable. If you wanted to store something, you would use the following: >>>def sum(number1, number2): >>> return number1 + number2 >>> >>>answer =...
  9. alyphen

    Coding Not related to CCG but need help

    This is exactly what I said, I believe.
  10. alyphen

    Coding Not related to CCG but need help

    Drew was almost right, although your WAN (external) IP doesn't go in server.properties. You just use a different IP to connect to your friends. The IP your friends use to connect can be viewed by going to http://cmyip.com/ - send them this one instead of your LAN (internal) IP.
  11. alyphen

    That's incredibly neat.

    That's incredibly neat.
  12. alyphen

    Are you doing this purely server-side, or with client-side mods too?

    Are you doing this purely server-side, or with client-side mods too?
  13. alyphen

    Getting a job has so many benefits outside of this - go for it, but if you're still doing exams...

    Getting a job has so many benefits outside of this - go for it, but if you're still doing exams, might be worth getting something part-time that you can swap hours where needed. Make sure you can handle the workload as well.
  14. alyphen

    It's been proven that the egg came first - it just may have been a dinosaur egg rather than a...

    It's been proven that the egg came first - it just may have been a dinosaur egg rather than a chicken egg.
  15. alyphen

    Enter the IP in your URL bar in your browser (e.g. 192 . 168 . 1 . 254). Login to your admin...

    Enter the IP in your URL bar in your browser (e.g. 192 . 168 . 1 . 254). Login to your admin panel, find "Port forwarding", and forward range 25565-25565, translating to 25565-25565, over both TCP and UDP, to the machine you're hosting on. Once that's done, it should be forwarded correctly.
  16. alyphen

    You'll need access to your router's admin panel - on Windows use "ipconfig" from cmd, from Linux...

    You'll need access to your router's admin panel - on Windows use "ipconfig" from cmd, from Linux or Mac use "route -n" from a terminal window, and find "Default Gateway" (Windows) or "Gateway" (Mac/Linux).
  17. alyphen

    Coding Cameron's Programming Tutorial #1 - What language should I choose?

    This is a decent summary of some of the basics of computing - let me know if you need any help, I've been programming for about 7 years now.
  18. alyphen

    Coding Cameron's Help Panel

    Happy to also offer advice, just some points so far: Books can be nice, but I think what really got me off the ground was text tutorials on the internet since you can look for incredibly topic-specific things, and stuff that wouldn't be covered by a general books can usually be found somewhere...
  19. alyphen

    Poll: What is your favorite CCGN Minigame?

    QuakeCraft, by a long shot. I would actually choose it over SG and Sky Wars. It's the only thing I'll come back to again and again.
  20. alyphen

    Pretty good - always working on something :p

    Pretty good - always working on something :p
  21. alyphen

    Coding How to code a minigame

    Learn the entirety of the collections API, not just HashMap. Learning when it's best to use a Set or a List, or a TreeMap or HashMap is fairly fundamental. This entire thread's in English. I used to have a Danish friend who said there were two languages though: English, and technical English.
  22. alyphen

    FPS increase

    Apparently none of you know what VSync actually does. It waits until the refresh cycle is complete before the video card can render anything visible, preventing screen tearing, which looks like this (image shamelessly stolen from wikimedia, licensed under CC-BY-SA-3): Yes, it limits the...
  23. alyphen

    Thinking about doing a little Minecraft development again, Spigot seems to have gotten a hold of...

    Thinking about doing a little Minecraft development again, Spigot seems to have gotten a hold of actually organising the remains of Bukkit.
  24. alyphen

    Samsung or Apple?

    Neither. Phones stalk you everywhere and allow people to get hold of you when you don't want them to. If you can avoid using one, do. Samsung and Apple are both huge evil corporations, so if the question is between the corporations themselves, I'd say Samsung is the lesser evil.
  25. alyphen

    Shameless bragging

    18, I started programming at 12 and have been working in programming since I left school.
  26. alyphen

    I'm making a note here, huge success.

    I'm making a note here, huge success.
  27. alyphen

    This was a triumph.

    This was a triumph.
  28. alyphen

    Meow :3

    Meow :3
  29. alyphen

    Shameless bragging

    Code & games mostly, although sometimes stuff like virtualisation, which is pretty resource intensive. Incredibly. Most likely the modpack bundles several optimisations which give you a better performance increase than you're losing with the extra content. Mint is a dream for programming...
  30. alyphen

    Coding How to code a minigame

    Writing in Python is practically the same - just link against Jython and use engineManager.getEngineByName("python") ScriptEngineManager is a nice thing to know if anyone's interested in that sort of thing.
Top Bottom