Jump to content
Team Avolition

Search the Community

Showing results for tags 'Miscellaneous'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Site Information
    • Introductions
    • Technology
    • Random
  • Entertainment
    • Forum Games
    • Artwork
    • Music
    • TV/Films
  • Games
    • First Person Shooters
    • Real Time Strategy
    • Role Playing Games
    • MMORPGs
    • Sandbox
    • Other
  • Projects
    • Releases
    • Programming

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL







Found 21 results

  1. dejordzta

    Sonic Screwdriver

    Heeeeyyy guuiiiise So I'm working on 3d printing the new Sonic Screwdriver from Doctor Who (Capaldi's new blue sonic), and I'm wanting some help re: getting the circuitry finished. Example: Currently I've got an arduino project on the go, however I was wondering if there was an easier/smaller way to go about it. Looking at Rubbertoe Props, who makes the props and sonic for the BBC, it appears that it's all fitted to the pcb which houses the lights, underneath the stem. See: https://www.instagra...=rubbertoeprops Other people have suggested some 555 timers and other IC's, but I doubt just those would be capable of running all four functions of the sonic as seen in the instagram vidya. 2 static on functions (green and blue), one chaser type function, and one fading. So I'm guessing I'd need something PWM capable for the fading, right? Currently, I'm looking at using the SMD rgb led's from sparkfun, or the 5050 rgb led (which don't have the built in IC). What other IC/MC would suit my needs? I'm a bit perplexed how it's all contained on the one pcb, unless the ic/mc is also wired away from the board, like the battery and speaker towards Nick's left hand, and the sliding toggle switch hidding by his right hand. Thanks in advanced folkkkssssss
  2. So I'm taking a look through my old MC client I made last year back when I didn't know much about programming principles and stuff and I wanna kill myself. So to start off, I'll be using Eclipse for this glance into my Hellhole of a 'client', because I have Intellij open already. I'm going to delete Eclipse after this glance through this client though. Starting up, I see I made a package called... "Hacks". And in each of these classes, are exactly the same thing as the other classes, except Locations, which I will get into: Here is the uh... fastplace class Okaaaay... Here is my fullbright class Yep. I don't know why, but for every fucking global hack boolean I made a separate class... Except for Locations.java. Somewhere along the development, I must have realized that I had a massive clusterfuck on my hands so I made this class, which really isn't anything but a file with comments. Well OK then. I already wanted to slit my wrists, but I decided to go ahead and take a look at EntityClientPlayerMP.java. Scrolled on down to onUpdate(), and I found this At this point, I closed Eclipse and now it, along with "RevanClient", has found it's final resting place.
  3. crazydude156

    Basic Java tutorial: Simple calculator

    Hello users, I know this is nothing to Minecraft related, but I am learning Java and I would like to teach others what I am learning so they can become better at the Java language like me. Today I learned how to use Scanners and Standard output streams to make a simple calculator. So we will focus on the main details to create one. What do you need? * Eclipse - It is what I use and it is very simple. * Basic Eclipse knowledge - How to open the program up and start a class in it. * Really basic Java - Know what a semicolon is and what the brackets are used for etc. * Eyes - I will go over almost every detail for better understanding so this tutorial is for beginners that are new to java. What to keep in mind This is my first tutorial on programming so I may not sound as clear. I am a beginner on the Java language so if I can do it you can do it. I also appreciate opinions from the experts who are good at the Java language to tell me what I can work on. This is really basic and I am pretty confident that I can help others struggling with this. Tutorial So let's open up Eclipse in whatever folder you have and create a class called, Calculator. At the top of "public class" we are going to import. Import all it does is it allows us to use certain things in our code like Scanners. So let's add 'import java.util.Scanner;' This will allow us to use Scanner. With this it will let us answer things to a question when the program tells us to. Remember also the semicolon is just a period in a sentence but in Java language! Now go into the brackets( { } ) of the class and insert 'public static void main(String args[])'. It is basically java's name and it tells the difference between other mains. 'String arg[]' are just more strings in the code. After that we are going to create the guts of the code that will make up the rest of the tutorial. Add some brackets under 'public static void main(String args[])'. Here we will put in 'Scanner Calc = new Scanner(System.in);'. What we are doing is creating a new scanner called Calc which is short for Calculator in the system input. Go down a line and we are going to add a Double. It changes a number to a string and changes a string to a number. So we got to name some strings we are going to use with Double. We are going to add three names which are going to be first for the first number choice and second for the second number choice and then answer for the sum up of the numbers. To do this do 'Double first, second, answer;' see how we did it in a single line instead of doing the code again and again? By adding a comma we can add more and more names but for now we are going to work with 3. So what we did so far is added Double and are now going to write something. We do this with Standard output streams 'System.out.print("Example");'. We output print on the screen with this code and add parentheses and quotation marks in it to add text. Create one under the naming Double code and make it say that the user can enter their first number. Now go down another line and we are going to let the user put the number they want. We want to call the Scanner so we can use it. So we put the code 'first = Calc.nextDouble();' With this we use the Double name (first) and our scanner name (Calc). the Double (First) is equal to the scanner (Calc) so whatever you put for the first number will be equal to (First) and then after that 'nextDouble()' is there so it moves to the next name we use which is (second) after we input our number. To this point it is just repeating the code for the (second) Double. So go ahead and add another Standard output stream but this time saying that the user can enter the second number. Under that call the Double and the scanner again but with (second) as the name this time. After this is math time! So go under the last code you written (which should be the calling Double and scanner code) and write some math. Whats good about Java is that it thinks for you, you just have to write the code down for it to think. For this tutorial we are going to have it be an addition calculator so what we do is just that, add the names up. For this one I am not giving code because it is self explanatory. Need help? Fine, think about this as you write, we want (answer) to equal the sum of (first) and (second). Remember to add a semicolon at the end! So we got the math done now is time to add our final line of code. Write another Standard output stream and in it we want it to display the answer, but we don't know the answer unless we guess, so what we do is add the answer in the sentence! In the sentence first put " The total is." and after that we (add) the answer by simply putting it in there in it just after the quotations. It will look kind of like this ("example" + answer); . Finally! Yes after this you just have to run the program and do as it says. This is how to make a simple calculator and this was just addition you can do subtraction, division, and multiplication etc. I first did this a while back and I learned the whys and hows of it and if I can do it so can you! If you got something wrong like an error or you are missing something then look back at this. If this tutorial was not clear to you then browse the internet for answers that is why it is there and well.. to do dumb stuff also. If you got it working but still don't know why this does that? Well just mess with it and see why you need it. Also mess around with it and see if you can add a third number in there or if you can add more text to make it more interesting. Play with it, play with it good and not in a sexy way. You will gain more knowledge like I am currently doing now and try out something more challenging to. Well I hope this was a good tutorial and feedback is always nice and tips are appreciated from the experts of Java. So yeah um bye :D. ~~Updated the text to make it more easier to navigate and Bolded important words.~~ - Czy
  4. At the time I am writing this, it is 2:57 in the morning. I wanted to have been programming atleast an hour ago, but I am currently having massive procrastination problems. As I've said before in posts before this one, I seem to have a bit of an issue with procrastination and programming. Basically in order to actually "get in the groove" of things and get to the point where I am programming productively(and I use the term 'productively' quite loosely here) I have to FORCE myself to start work on the shit I want to work on. Usually once I start, I can't really stop. And then the next day, I still feel that 'wave' of productivity-ness and I will 7/10 pick up where I left off and keep working until whatever program I'm working on is done. After it's done however, I'm back to where I started before the project: In a massive fucking hole in the ground. This is getting pretty dumb. There's alot of shit I want to do in programming, but I can't start programming. It's like everything distracts me. Maybe I have some form of ADHD? I usually don't have to this problem with OTHER tasks I want to do. Oh look at that! It's fucking 3:00AM! I Just wasted 3 minutes I could have been using to program, and I'll be going to bed in about an hour! Fan fucking tastic I just wasted time procrastinating by complaining about procrastinating. Sometimes I'll go "Man I should start working..." and then my brain responds "ehh.... OK. OK bud you can start, but first go look at -x- site and see if this has been updated or if x has happened." and then I go to that site, and then an hour passes and I'm on some fucking dumbass YouTube video and I am snapped back into reality with "What the fuck? Well shit... Now that I've started I can't just stop. TOMORROW. TOMORROW I will DEFINITELY start." then tomorrow comes, and I'm repeating the cycle. Then there's the "I'm not in the mood right now though..." or "I want to wait until everyone goes to sleep to minimize distractions while working." Maybe I'm just fucking lazy as Hell. But it's like I said, I don't have this problem with other stuff... Just programming... Does anyone else have this problem? Or am I alone here? Also it's now 3:05 AM :^)
  5. PYTHON - By Meowingtons Greetings, friends. So, I see many people come onto these forums in search for programming tips, and ways to make a 'griefing' client. It's all very well in copying some Java code off a pastebin and claiming you made the program, but wouldn't you rather have the satisfaction of making something unique? I certainly would. Which is why I am here to introduce you, the beginner, to some foundations of programming. To begin with, this IS NOT Java code and this will not teach you how to make a Minecraft client. This is a guide to getting started with programming in general, making applications and overcoming problems in regards to coding. The code I am going to be teaching you is Python. Python code is considered one of the easiest languages to learn and I believe it gives one a good idea as to what programming is. An example of Python code being put to great usage is the game Eve Online. Longer list here: http://en.wikipedia....Python_software In my opinion, Python code is very logical, hence why it is one of the easier languages. So, let me begin with some essential functions: (Note to reader, due to not having space and/or time, I did not indent or space out the commands in example/s. This is an important part of Python. If you would like advice on how to indent, just sent me a private message). Print - The most basic python command. "Print" is a way of communicating with the user through the application. For example Print "Hello world". Variable - Used to store a given value. This can be anything. From Alpha to Zebra. For example, if you wanted to create a loop, you would assign a number to a variable (For example "loop") and then use a while(We'll get to it!) statement to repeat the commands in the loop. Example: loop = 1 while loop == 1: print "Hi!". This would repeat Hi forever. While - A while command can be used to repeat a function (as shown above). While is very useful as most applications need a loop to make them ongoing. If - Possibly one of the most important and widely used commands. "If" can control true and false. For example; "If <variable> = 2: print "Hi!" Essential vocabulary required for almost all languages: String: Basically, words. Integers: Numbers. Boolean: Data type with two possible values, true and false. (If statements!) Print: Displaying a message Variable: Any word that has an assigned value. #: These aren't just used in Twitter. These are used to copyright and/or comment on your code. Don't want anyone stealing your code now, do we? Maths in python (or math for our transatlantic cousins): A large amount of python code relies on a basic knowledge of mathematics. So, I'll show you some basics. * - Used for multiplication. Example: 5 * 5 = ans print ans (would print 25) + - Used for addition. Example: 5 + 5 = ans print ans (would print 10) - - Used for subtraction. Example: 5 - 4 = ans print ans (would print 1) / - Used for division. Example: 6 / 2 = ans print ans (would print 3) Now, here's where mathematics may come in useful: Calculator applications, Point/scoring systems, Dice rolling applications, RPG games, Games in general. Inputs with python (See variables first): Raw_Input: Another common command in python. This stores what the user types into a variable of your choice which can then be recalled. Example: name=raw_input("What is your name?") Input: Generally do not use this command. Raw_Input is better. Use this when doing mathematics, for example in a calculat program. This can store integers and nothing else. Example projects: Given the above knowledge of python, I suggest you download Visual Studio 2010 with a Python add-on. I do have one installed on my computer, set-up for usage. If you would like it, and are interested in learning to code (regardless of your age), message me and I'll give you a download link. I urge you to test all the commands in Python and further your knowledge with a great website called "Code Academy". (Link: http://Codeacademy.com) A great project to start off with is a text-based adventure game. Projects will further your knowledge of programming all the time. So, that's it for now. You made it this far. I'm debating on next posting an advanced guide or a 'further your knowledge' guide. Stay tuned. And as always, remember, practice makes perfect!
  6. bloons3

    Batch files anyone?

    Just something that my friends and I made when we got bored during testing at school. Basic time delays and logic. @echo off set /a newcount=0 set /a repeat=0 if /i "%complete%"=="1" exit cls color 0a echo `,,,. ping localhost -n 1 >nul echo .;;;;;;;;;;;, ping localhost -n 1 >nul echo :;;;;;;;;:::::::;. ping localhost -n 1 >nul echo ;;;';;;;';;::::::::;; ping localhost -n 1 >nul echo :;;;;;;;;;;;;:::::;:::::` ping localhost -n 1 >nul echo ;;;;;;;:;;;;:::::::;::;::: ping localhost -n 1 >nul echo `;;;;;;;;:::::::::::::::::::; ping localhost -n 1 >nul echo ';;;;;::::::::::::::::::::::; ping localhost -n 1 >nul echo ';;;;;;:::::::;:::::::::::::;;: ping localhost -n 1 >nul echo ,';;;;;;;::::::::::::::::;'::;;' ping localhost -n 1 >nul echo '';;;;;;':::::;::,::::::::;;;;;; ping localhost -n 1 >nul echo '';;;;;;';:::;;:::::::::::;;;;;;, ping localhost -n 1 >nul echo `'';;;;;;;;;:::::::::::::;;;;;;;'` ping localhost -n 1 >nul echo .'''+;;;;;;;;;;:;:::::;;;;;;;;;'' ping localhost -n 1 >nul echo `''''';;;;;;;;;;;;;;;;;;;;;;;;''' ping localhost -n 1 >nul echo '+''''';;;;;;;;;;;;;;;;;;;;';'', ping localhost -n 1 >nul echo '+''''''''';;;;;;;;''';;;;;;''; ping localhost -n 1 >nul echo '''''''''''';;';''''''''';;;; ping localhost -n 1 >nul echo '+'''''''''';;'''''''''';;; ping localhost -n 1 >nul echo ''''''''''''''''';;;;;;:; ping localhost -n 1 >nul echo :''''''';;;';'';;;;;;;. ping localhost -n 1 >nul echo :''''''';;;;;;;;;'. ping localhost -n 1 >nul echo ,'+'''''''; ping localhost -n 3 >nul cls echo Not enough potatoes.... ping localhost -n 5 >nul :loading set /a repeat=%repeat%+1 cls echo Loading title Loading ping localhost -n 1 >nul cls echo Loading . title Loading . ping localhost -n 1 >nul cls echo Loading . . title Loading . . ping localhost -n 1 >nul cls echo Loading . . . title Loading . . . ping localhost -n 1 >nul cls echo Loading . . . . title Loading . . . . ping localhost -n 1 >nul cls echo Loading . . . . . title Loading . . . . . ping localhost -n 1 >nul cls echo Loading . . . . . . title Loading . . . . . . ping localhost -n 1 >nul cls echo Loading . . . . . . . title Loading . . . . . . . ping localhost -n 1 >nul cls echo Loading . . . . . . . . title Loading . . . . . . . . ping localhost -n 1 >nul cls echo Loading . . . . . . . . . title Loading . . . . . . . . . ping localhost -n 1 >nul if /i "%repeat%"=="10" goto 1 goto loading :1 cls echo Potatoes sucessfully installed on your Hard Drive (C:\Windows\System32\PotatoStorageCenter) ping localhost -n 6 >nul ping google.com -n 2 cls ping facebook.com -n 2 cls ping yahoo.com -n 2 cls ping reddit.com -n 2 cls ping minecraft.net -n 2 cls echo New potatoes found, would you like to install them? set /p install= if /i "%install%"=="yes" goto install if /i "%install%"=="y" goto install if /i "%install%"=="n" goto install if /i "%install%"=="no" goto install :install cls echo Installing new potatoes. echo `,,,. ping localhost -n 1 >nul echo .;;;;;;;;;;;, ping localhost -n 1 >nul echo :;;;;;;;;:::::::;. ping localhost -n 1 >nul echo ;;;';;;;';;::::::::;; ping localhost -n 1 >nul echo :;;;;;;;;;;;;:::::;:::::` ping localhost -n 1 >nul echo ;;;;;;;:;;;;:::::::;::;::: ping localhost -n 1 >nul echo `;;;;;;;;:::::::::::::::::::; ping localhost -n 1 >nul echo ';;;;;::::::::::::::::::::::; ping localhost -n 1 >nul echo ';;;;;;:::::::;:::::::::::::;;: ping localhost -n 1 >nul echo ,';;;;;;;::::::::::::::::;'::;;' ping localhost -n 1 >nul echo '';;;;;;':::::;::,::::::::;;;;;; ping localhost -n 1 >nul echo '';;;;;;';:::;;:::::::::::;;;;;;, ping localhost -n 1 >nul echo `'';;;;;;;;;:::::::::::::;;;;;;;'` ping localhost -n 1 >nul echo .'''+;;;;;;;;;;:;:::::;;;;;;;;;'' ping localhost -n 1 >nul echo `''''';;;;;;;;;;;;;;;;;;;;;;;;''' ping localhost -n 1 >nul echo '+''''';;;;;;;;;;;;;;;;;;;;';'', ping localhost -n 1 >nul echo '+''''''''';;;;;;;;''';;;;;;''; ping localhost -n 1 >nul echo '''''''''''';;';''''''''';;;; ping localhost -n 1 >nul echo '+'''''''''';;'''''''''';;; ping localhost -n 1 >nul echo ''''''''''''''''';;;;;;:; ping localhost -n 1 >nul echo :''''''';;;';'';;;;;;;. ping localhost -n 1 >nul echo :''''''';;;;;;;;;'. ping localhost -n 1 >nul echo ,'+'''''''; ping localhost -n 3 >nul cls set /a newcount=%newcount%+1 if /i "%newcount%"=="10" goto 2 goto install :2 cls echo Now that you have met your potato quota, do you feel better? cls ping localhost -n 5 >nul set /p more=Do you want more potatoes? exit echo off color 0A&REM COLOR HERE set debug=&REM if debug is on coords and direction will be displaed under the display set fill= &REM FILL CHAR HERE set pointer=X&REM POINTER CHAR HERE set trail=1&REM TRAIL MODE? 0/1 set y=0 :fill for /l %%a in (1,1,20) do (set x%%ay%y%=%fill%) set /a y+=1 if "%y%"=="11" goto disp1 goto fill :disp1 set x=10 set y=5 set x%x%y%y%=%pointer% :disp cls echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º%x1y10%%x2y10%%x3y10%%x4y10%%x5y10%%x6y10%%x7y10%%x8y10%%x9y10%%x10y10%%x11y10%%x12y10%%x13y10%%x14y10%%x15y10%%x16y10%%x17y10%%x18y10%%x19y10%%x20y10%º echo º%x1y9%%x2y9%%x3y9%%x4y9%%x5y9%%x6y9%%x7y9%%x8y9%%x9y9%%x10y9%%x11y9%%x12y9%%x13y9%%x14y9%%x15y9%%x16y9%%x17y9%%x18y9%%x19y9%%x20y9%º echo º%x1y8%%x2y8%%x3y8%%x4y8%%x5y8%%x6y8%%x7y8%%x8y8%%x9y8%%x10y8%%x11y8%%x12y8%%x13y8%%x14y8%%x15y8%%x16y8%%x17y8%%x18y8%%x19y8%%x20y8%º echo º%x1y7%%x2y7%%x3y7%%x4y7%%x5y7%%x6y7%%x7y7%%x8y7%%x9y7%%x10y7%%x11y7%%x12y7%%x13y7%%x14y7%%x15y7%%x16y7%%x17y7%%x18y7%%x19y7%%x20y7%º echo º%x1y6%%x2y6%%x3y6%%x4y6%%x5y6%%x6y6%%x7y6%%x8y6%%x9y6%%x10y6%%x11y6%%x12y6%%x13y6%%x14y6%%x15y6%%x16y6%%x17y6%%x18y6%%x19y6%%x20y6%º echo º%x1y5%%x2y5%%x3y5%%x4y5%%x5y5%%x6y5%%x7y5%%x8y5%%x9y5%%x10y5%%x11y5%%x12y5%%x13y5%%x14y5%%x15y5%%x16y5%%x17y5%%x18y5%%x19y5%%x20y5%º echo º%x1y4%%x2y4%%x3y4%%x4y4%%x5y4%%x6y4%%x7y4%%x8y4%%x9y4%%x10y4%%x11y4%%x12y4%%x13y4%%x14y4%%x15y4%%x16y4%%x17y4%%x18y4%%x19y4%%x20y4%º echo º%x1y3%%x2y3%%x3y3%%x4y3%%x5y3%%x6y3%%x7y3%%x8y3%%x9y3%%x10y3%%x11y3%%x12y3%%x13y3%%x14y3%%x15y3%%x16y3%%x17y3%%x18y3%%x19y3%%x20y3%º echo º%x1y2%%x2y2%%x3y2%%x4y2%%x5y2%%x6y2%%x7y2%%x8y2%%x9y2%%x10y2%%x11y2%%x12y2%%x13y2%%x14y2%%x15y2%%x16y2%%x17y2%%x18y2%%x19y2%%x20y2%º echo º%x1y1%%x2y1%%x3y1%%x4y1%%x5y1%%x6y1%%x7y1%%x8y1%%x9y1%%x10y1%%x11y1%%x12y1%%x13y1%%x14y1%%x15y1%%x16y1%%x17y1%%x18y1%%x19y1%%x20y1%º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ choice /c WASD if %trail%==0 set x%x%y%y%=%fill% if %errorlevel%==1 set /a y+=1 if %errorlevel%==2 set /a x-=1 if %errorlevel%==3 set /a y-=1 if %errorlevel%==4 set /a x+=1 set x%x%y%y%=%pointer% goto disp Thats the game.
  7. Jagnat

    IRC Protocol

    I'm trying to write IRC Clients in various languages for the fun of it, but I can't find a good explanation of what the protocol is. I know that it is (obviously) TCP; I know that it's all text-based. I've done a few googles on this, and haven't found any documentation. Any help is appreciated.
  8. So, my summer placement project is kinda broken. I keep getting out of memory errors. This is partly due to the fact that my computer, despite having 8Gb RAM, only allocates 269Mb to Java, regardless of any runtime parameters I give it. But, when I run it on my colleague's computer, which has 24Gb RAM and allocates 6Gb of it to Java, the program uses all of the 6Gb of memory, then crashes with an out of memory exception. Obviously, this is less than ideal. Running a memory/heap-space trace program thing (this one) shows that nearly all of the memory (an order of magnitude greater than anything else) is taken up by some class called java.lang.ref.finalizer. a) I have no idea what that is - if someone could explain, that would be fantastic. b) a quick Google search and several Stack Overflow questions reveal that finalizer objects can cause massive memory leaks for two reasons - that they're being accessed too quickly, so they can't deal with the finalizable objects quickly enough and put them into a queue which rapidly builds in memory, or that its just plain not working properly, and objects aren't being finalized and disposed of properly by the garbage collector. Of the two reasons why its not working, I have a feeling that its the first (too many things too quickly). I'm adapting an open source project to use multiple threads/cores, and the problem barely exists (although I have replicated it) in the original program. In each thread, a PlanarImage is created, has some stuff done to it, then the result from each thread is put into the same BufferedImage in the main thread. Its the BufferedImage that causes the finalizer object to not work properly. So, I'm thinking that because the threads speed up the rate of access of the BufferedImage, its causes the finalizer to fail. On the other hand, each thread closes properly, and the memory usage goes up far quicker than it would do if it were the single BufferedImage, which is only cleared/disposed of every so often. Aaaaanyway - how can I check that this is the case, or, even better, how do I fix it? At the least - do you have any experience with finalizers, and can you explain to me how they work so that I may attempt to fix the memory leak myself? Its extremely frustrating, because this is essentially the difference between the program being usable or not. I mean, it works, but there is obviously a problem somewhere, and fixing that problem would make a massive difference. PS - do you have any idea why Java would only get allocated 269Mb of memory, rather than being allocated say, a gigabyte by using -Xmx1024m as a runtime parameter? Less important as the finalizer thing, but still quite irritating as it means I can't test it on my computer and keep having to use my colleague's. EDIT: Trying to manually dispose of the BufferedImage has no effect, either by setting it to null or by calling .flush(). Presumably because in the next loop round, it just calls 'BufferedImage bi = new BufferedImage()' again anyway. And the memory leak occurs during the loop anyway, between defining the BufferedImage and disposing of it.
  9. About this section: This section is moderated, but still gets a lot of tutorials that never get past the filter. This post is meant to straighten out what this section is for, and how to get your tutorial approved. The purpose of this section is teaching. This is not a "How-To", "Step-by-Step" or a code repository section. A tutorial is supposed to teach the reader concepts and ideas that can be used in real-world programming (Or just fun thought-experiments). Simple source drops and tutorials that cover a very narrow topic will not be approved. To write a good tutorial that will get approved, you should at least try to follow this list: Do: Write an introduction. And introduction helps the reader decide if your tutorial will be useful to them. Decide who you are writing to. Beginners? Intermediates? Advanced? Pick your level, and use terms they can understand. Explain what you expect the reader to already know. This helps the reader know what you're going to touch upon in your tutorial, and what they have to prepare for. Explain any concept that may be unfamiliar to your reader. If you're writing a beginner tutorial on networking, it may be a good idea to explain what a "packet" is. Go in-depth into your subject. Give ideas to future development. Show code examples where possible. These can simply be short snippets that gives the user an example they can expand upon later. Class definitions and simple usage are good examples. Use proper English. A person who is not willing to correct mistakes is probably also a bad teacher. Write on topics other than Minecraft. This isn't a requirement, but a reminder that there are more interesting topics to write about than Minecraft. And frankly, it's hard to make Minecraft tutorials that are not "Go here and change this to that"-guides. Cite your sources. If you have used content from another source, link to it! It will help the reader find more useful information for them. And don't worry, citing your sources does not take away your credibility. If anything, it shows you're an honest person. Have a conclusion. A conclusion is just a short summary of what the reader just have learnt, and preferably links to further reading. Don't: Have "TUT" in the title... Seriously. That abbervation is stupid on it's own, and even more stupid in a subsection made exclusively for tutorials. Besides, it only goes shows how much of a lazy person you are. Don't do it! Write a step-by-step guide on editing code to achieve a certain result. "Go to <filename> at line <x> and change <snippet> to <snippet>" is not a tutorial. It's a guide. Write one-liner tutorials. If the subject you're writing about is so simple you could only produce a single line explaining it, then it doesn't need to be explained. If your tutorial can fit in a handful of tweets, then you're writing about a too narrow, or too obvious topic. Screenshot your code. People who don't want to learn, simply won't learn. Screenshotting your code does nothing to force them to learn. They'll just write off your screenshot directly, and probably won't bother to try to understand it. Instead what you're doing is making people who actually knows how to write waste a lot of time writing down code they would try to understand anyway! Write tutorials on topics that are not allowed by the forum rules. This includes, but not limited to, tutorials on stealing user information, cracks, viruses, and other illegal stuff. Request tutorials. If you're unable to find a tutorial on something, do some research and write one yourself! If you're still not sure if you should write a tutorial on the topic you had in mind, reply with some information on what you want to write about, and we'll tell you if it's useful or not.
  10. As I was laying in bed just now, a thought occured to me: a brilliant idea for a new OS. Basically, it'd be entirely console based, entirely for programmers. Why for programmers, you might ask? Because it would use things that I'm going to call "Actions". Actions are how one navigates the computer. Basic actions come equipped ("openfile FILENAME", "moveto DIRECTORY", etc). However, using a custom scripting language, you could make your own actions, writing everything from scratch or implementing other actions. Language would be a cross of Batch and Python. And when you're writing a new action, it'd be similar to something like this: >>new >>----action >>--------actionname = "copypasta" >>--------args: >>------------arg1: >>----------------argname = "filename" >>------------arg2: >>----------------argname = "newfilename" >>--------actions: >>------------createfile<newfilename> >>------------fillfile<newfilename:filename.contents> create action copypasta The "---"'s are like how Command Prompt trees a drive, and is similar to Python's whitespace. Of course, this is all theoretical, but I think it's a glorious idea. So glorious, in fact, that I'm going to attempt to make it. Okay, Assembly or C? Also, comments/input would be appreciated. Thanks! EDIT: If one were unsure of what to do, the could type "listactons", which would return something like: Which is why you have to specify arg names.
  11. Here's a question that you may think is easy to answer, but very few people actually know the difference: "What is the difference between Computer Sciences and Software Engineering?" I was asked this question when interviewing with a gentleman from the Florida Institute of Technology, and it really got me thinking. So, I'm going to explain what I believe the answer is, and I'm curious as to what others think. Computer Sciences and Software Engineering are both fields which center upon computers, and using them to write programs. However, that's about as far as the similarities go. Computer Sciences may use programming, but I believe it's secondary to more technical skills and knowledge, such as chemistry, physics, or statistics. Computer Sciences is, in my opinion, using computers to solve problems in a specific area of study. Software Engineering is quite a bit different than Computer Sciences. Software Engineering is, at it's core, a profession in which you engineer programs for others to use. Software Engineering is much more involved in creating programs from scratch, whereas CS sometimes uses software created by others. Again, this is all my opinion on the subject. I'd love to know what everyone else thinks, so that I can have a better understanding on the subject. Post input/opinions below! :D
  12. Well, I've seen a lot of threads asking, "How do I program?", and it's getting rather old now. I know that programming books are expensive, so I've compiled this list of free programming books for (soon) various languages (right now only Java). E-Book Sites: - http://www.techbooksforfree.com/ - A lot of different books for various platforms and languages, I have found this site very useful - http://www.e-booksdi...programming.php - I have never used this site, but I have heard it is a lot like TechBooksForFree, having a lot of useful free programming books. Specific Languages (Note that a lot of these lists I found lying around StackOverflow and other various sites, but a few are my own findings as well): Java: Python OpenGL C# .Net Misc: Visual Basic: C/C++ Assembly (UGH): Git (Very useful, used almost ALWAYS in group programming projects, I highly recommend learning how to use it): Linux Books: Now for the widely used web languages: www.w3schools.com - can be used to learn most web languages, very useful. HTML/CSS: Perl: PHP: Ruby/Ruby on rails: SQL(Implementation Agnostic): JavaScript: CGI: Mobile phone and device programming! Windows Phone 7: Android Phones: No iphone books, I haven't found any, and neither has anyone else, it seems. You might just have to buy/torrent the books. MATH! (added 2/5/2012): Algorithms: Credits to various sources: http://www.techtoolblog.com/ for their 195 programming book list, there are a few books there not listed, I would highly recommend checking it out. http://stackoverflow...ogramming-books- I found a ton of books that I put on this thread ^^; Wkter, for his assembly book ^^; Anyways, this list will hopefully grow as people add to it (and I'll earn my limbs back! >:D).
  13. cossacave

    Looking for Critique

    Hey, all! Been messing around in Notepad++ with some batch files recently. This code is a compilation of whatever I've found interesting as I've gone. If you'd be so kind, look through it and tell me what I'm doing right/wrong/ineffectively. NOTE: No spoofcode. It's all working. Feel free to try it out. Also, feel free to ignore this if you don't like it. :)
  14. So my friend was reading about quantum computing the other day, when he got one of the most batshit insane ideas that I've ever heard. "I want to make a programming language where the operators are considered variables and can be modified by the values they are applied to." We got into this discussion about how that would work. The basics of the concept would be that you could assign values to a variable, and based upon the value stored in that variable you could call it as an operator in mathematical expressions. For example, 1 would equate to addition, 2 would equate to subtraction, and so on. The value would range from 0-9, which would obviously overflow if it ever exceeded the maximum value (8 + 2 = 0). The most simple example of this I can give is the expression x = x x x; (note that I am using reverse polish notation because it's awesome, not that it makes a difference here). Assume the value of x is 1 at the start of this expression. It would load the value for the middle two x's, (1, 1) and apply the operator stored in the value of the third x, then re-assign the result to x. It could be interpreted as this: x = 1 + 1;, resulting in re-assigning 2 to x. But then,if you ran the expression again, it'd equate to x = 2 - 2;, re-assigning 0 to x.
  15. What is the best thing you can in under an hour? This can be anything, A Java program, a virus, etc.
  16. Most hilarious program you've ever made? As for myself, one time I was bored in my AP programming class, so I decided to look into a few standard Java libraries to see if there was an API for modifying text in the clipboard. Turns out there was. So, I made a little Java application that would wait for the clipboard text to be changed, and instead change it to "This is not your code." I never got to see the impacts of this application since I just left it on computers for the next class hour.
  17. ElasticLobster

    Minecraft Text

    Hey guys. Just wondering if anyone knows how or where I can find a way to change the text of chat, but without a texture pack. The best one I have seen so far is Avo's one, very sleek and generally nice. Anyone know where I can put this in my minecraft .jar to change it? Thanks ElasticLobster :D
  18. I'm creating a pokemon fangame where its an exact copy of fire red up until you get to the nugget bridge, you then join team rocket, blablabla whatever, not here to talk about the details, just saying that rom hacking is both inefficient and nigh impossible to do what I want to do with it. yways, I need a good 2D top-down RPG engine, preferably using C# amd XNA, simply for the rapid application development I can do with it. If it's in java, that's also fine, but pretty much nothing else is useful to me, I'm learning C++ in my spare time, but I'm not proficient enough in it yet to do anything useful. Thanks.
  19. So I downloaded it for Windows, and it works fine, but it won't let me compile them as apps unless I pay their obvious price-gouging 300 dollars. Any way I can get past this without paying that insane amount? And I mean legal ways, like student discounts, special offers, etc.
  20. gamehunter35


    Even though I love to try it I just cant seem to find it how to start Ive looked on google forums even my brothers who were in porgramming I know i have to look it up and find my own shit. Somehow i need to Have a rope where i can concentrate on
  21. This is what happens when you plot the energy eigenvectors of the wavefunctions that satisfy the Schrodinger Equation for a (quantum) simple harmonic oscillator. Of course I wasn't entirely supposed to be doing that in the labs, but it was more fun than finding matrices that describe the Heisenberg model. The picture also has no physical meaning - it just looks awesome. import pylab as p from numpy import zeros, linalg as la N=11 NSQ=N*N dx=1/sqrt(N) centre=0.5*(N-1)*dx off_diagonal=-0.5/(dx*dx) A=zeros((N,N),Float) for i in range(0,N-1): A[i, i+1]=off_diagonal A[i+1, i]=off_diagonal for i in range(0,N): x=i*dx A[i,i]=1/(dx*dx)+0.5*(x-centre)*(x-centre) val, A = la.eig(A) psi=-A[:N-1] p.plot(psi) p.show() Of course, this could probably go in the artwork section (:P) or the random section, but its programming-related, so... Eh. I'm quite proud of it, even if I do say so myself.