Your Account
    Log into your account here:
       Forgot Password

    Not registered? Sign Up for free
    Registration allows you to keep track of all your content and comments, save bookmarks, and post in all our forums.
Follow the dark path or use the light
Login
Mobile
go

Pokemon Mystery Dungeon Story

The Psychiatric Ward

The all too famous chat thread.
Report Bad Topic |
Down to Quick Reply Displaying Page 8242 of 10085. First | Next | 1 | 2 | 3 | 4 | 5 | .... | 8239 | 8240 | 8241 | 8242 | 8243 | 8244 | 8245 | .... | 10080 | 10081 | 10082 | 10083 | 10084 | 10085 | Previous | Last
Post ID: 2796258 | REPORT Floatzel Posted at: 14-Jul-2011 20:11:08
Floatzel
My life is 200% a lie.
Member
Team Posts: 3,354
Post Likes: 12
+
0
+
I have no idea how to comment on that.

Credit to Myself for the sig.
Post ID: 2796259 | REPORT eminem180 Posted at: 14-Jul-2011 20:12:21
eminem180
Knock Madness
Member
Team Posts: 3,454
Post Likes: 1
+
0
+
Answer the question on the previous page, and you'll be forgiven.
Is there a Mrs. Eminem180? Yes, and she's you, and you're just as beautiful as the day we met.
Post ID: 2796262 | REPORT Axionas Posted at: 14-Jul-2011 20:14:31
Axionas
Kitsune-no-Okami
Member
Team Posts: 66,754
Post Likes: 5
+
0
+
I'm not to much of a fan to RTS'. =S


I miss having a window's computer ;-;
Post ID: 2796263 | REPORT Floatzel Posted at: 14-Jul-2011 20:17:28
Floatzel
My life is 200% a lie.
Member
Team Posts: 3,354
Post Likes: 12
+
0
+
eminem180 said:
said:
eminem180 said:You're all wrong, nice try Float, but Ruby is an executable code, input a certain thing, the code executes it into a different text.

Ruby?!
Oh, gawd, I was thinking that, but I didn't knew what it was cald XD

You better get this one:
#!/usr/bin/perl -w
$open_FILE="filename";
$output_file="newfile";
open (FH, " $output_file");
@params=$_;
foreach $line (@content)
{
chomp ($line);
$params = split(/ /, $line);

}




It's perl. Also known as 'perl shebang'.
You put at the top of a perl script, and it tells the web server where to find the perl executable.
You need to go a little harder. >_>

Credit to Myself for the sig.
Post ID: 2796264 | REPORT Glitters the Magical Pony Posted at: 14-Jul-2011 20:18:26
Glitters the Magical Pony
Wishes Excadrill wasn't Uber
Member
Team Posts: 8,110
Post Likes: 8
+
0
+
Windows is fun <3

And that's fine Fluffs, it's not for everyone.

^Thank you Z^

Blazblue said:Kokonoe: Any normal player starts crappin' bricks the moment they see you.
Arakune: Ahahaha. Well they toned me down this go-around. I can only manage 9000 damage in a 160-hit combo!

9000 damage equals to 9/10th's of your healthbar. Toned down? o_0
Post ID: 2796266 | REPORT eminem180 Posted at: 14-Jul-2011 20:22:34
eminem180
Knock Madness
Member
Team Posts: 3,454
Post Likes: 1
+
0
+
What about this?!
# create URL with desired search parameters

url = "http://archive.stsci.edu/pointings/search.php?"
url = url + "primary=ACS&outputformat=CSV"
url = url + "&pnt_ucountp=%3C5&pnt_icountp=%3E1&bao=and"
url = url + "&galactic=Above&galsearch=75"
url = url + "&action=Search+Exposures"

print url

# retrieve URL and write results to filename

filename = "out_py.txt"

urllib.urlretrieve(url,filename)

### Done!
Is there a Mrs. Eminem180? Yes, and she's you, and you're just as beautiful as the day we met.
Post ID: 2796270 | REPORT Floatzel Posted at: 14-Jul-2011 20:25:51
Floatzel
My life is 200% a lie.
Member
Team Posts: 3,354
Post Likes: 12
+
0
+
eminem180 said:What about this?!
#!/usr/local/bin/python

# change above line to point to local
# python executable

import urllib, urlparse, string, time


# create URL with desired search parameters

url = "http://archive.stsci.edu/pointings/search.php?"
url = url + "primary=ACS&outputformat=CSV"
url = url + "&pnt_ucountp=%3C5&pnt_icountp=%3E1&bao=and"
url = url + "&galactic=Above&galsearch=75"
url = url + "&action=Search+Exposures"

print url

# retrieve URL and write results to filename

filename = "out_py.txt"

urllib.urlretrieve(url,filename)

### Done!

It's a python script.


You even left some out. I fixed it in the quote.

« Last edited by Floatzel on 14th Jul 2011 »

Credit to Myself for the sig.
Post ID: 2796271 | REPORT Forgoten_Scars Posted at: 14-Jul-2011 20:25:57
Forgoten_Scars
Orbis terrarum est mei
Member
Team Posts: 113,966
Post Likes: 28
+
0
+
Oh man, I love you now Em. I didn't know you were into coding. <3
Post ID: 2796274 | REPORT eminem180 Posted at: 14-Jul-2011 20:28:25
eminem180
Knock Madness
Member
Team Posts: 3,454
Post Likes: 1
+
0
+
Good. I'm going to go to university to broaden my ability to code!
And, I'm glad you love me, heh heh,
Is there a Mrs. Eminem180? Yes, and she's you, and you're just as beautiful as the day we met.
Post ID: 2796277 | REPORT eminem180 Posted at: 14-Jul-2011 20:31:09
eminem180
Knock Madness
Member
Team Posts: 3,454
Post Likes: 1
+
0
+
Floatzel said:
eminem180 said:What about this?!
#!/usr/local/bin/python

# change above line to point to local
# python executable

import urllib, urlparse, string, time


# create URL with desired search parameters

url = "http://archive.stsci.edu/pointings/search.php?"
url = url + "primary=ACS&outputformat=CSV"
url = url + "&pnt_ucountp=%3C5&pnt_icountp=%3E1&bao=and"
url = url + "&galactic=Above&galsearch=75"
url = url + "&action=Search+Exposures"

print url

# retrieve URL and write results to filename

filename = "out_py.txt"

urllib.urlretrieve(url,filename)

### Done!

It's a python script.


You even left some out. I fixed it in the quote.

I left it out because if that line was in there, it would be obvious the code name!
Is there a Mrs. Eminem180? Yes, and she's you, and you're just as beautiful as the day we met.
Post ID: 2796278 | REPORT Axionas Posted at: 14-Jul-2011 20:31:21
Axionas
Kitsune-no-Okami
Member
Team Posts: 66,754
Post Likes: 5
+
0
+
^_^
Only about 8k more posts to become 8th in posts and like 15 to go to 7th.
Post ID: 2796281 | REPORT Glitters the Magical Pony Posted at: 14-Jul-2011 20:32:44
Glitters the Magical Pony
Wishes Excadrill wasn't Uber
Member
Team Posts: 8,110
Post Likes: 8
+
0
+
Good work Fluffy <3

^Thank you Z^

Blazblue said:Kokonoe: Any normal player starts crappin' bricks the moment they see you.
Arakune: Ahahaha. Well they toned me down this go-around. I can only manage 9000 damage in a 160-hit combo!

9000 damage equals to 9/10th's of your healthbar. Toned down? o_0
Post ID: 2796286 | REPORT eminem180 Posted at: 14-Jul-2011 20:34:57
eminem180
Knock Madness
Member
Team Posts: 3,454
Post Likes: 1
+
0
+
My fingers hurt now.
Is there a Mrs. Eminem180? Yes, and she's you, and you're just as beautiful as the day we met.
Post ID: 2796287 | REPORT Floatzel Posted at: 14-Jul-2011 20:35:18
Floatzel
My life is 200% a lie.
Member
Team Posts: 3,354
Post Likes: 12
+
0
+
eminem180 said:
Floatzel said:
eminem180 said:What about this?!
#!/usr/local/bin/python

# change above line to point to local
# python executable

import urllib, urlparse, string, time


# create URL with desired search parameters

url = "http://archive.stsci.edu/pointings/search.php?"
url = url + "primary=ACS&outputformat=CSV"
url = url + "&pnt_ucountp=%3C5&pnt_icountp=%3E1&bao=and"
url = url + "&galactic=Above&galsearch=75"
url = url + "&action=Search+Exposures"

print url

# retrieve URL and write results to filename

filename = "out_py.txt"

urllib.urlretrieve(url,filename)

### Done!

It's a python script.


You even left some out. I fixed it in the quote.

I left it out because if that line was in there, it would be obvious the code name!

Yet I still found it out, didn't I??? O_O

Credit to Myself for the sig.
Post ID: 2796288 | REPORT Axionas Posted at: 14-Jul-2011 20:35:19
Axionas
Kitsune-no-Okami
Member
Team Posts: 66,754
Post Likes: 5
+
0
+
Then one day I shall be number 1! >8D



;-;
So how's your day been Will?
Post ID: 2796289 | REPORT Forgoten_Scars Posted at: 14-Jul-2011 20:35:58
Forgoten_Scars
Orbis terrarum est mei
Member
Team Posts: 113,966
Post Likes: 28
+
0
+
You're so lucky. I'm still stuck in programming concepts. My last assignment was crappy. I had to memorize a lot of useless junk. :/

Programming Concepts

Computer Hardware vs. Software: Hardware is the actual equipment or devices on a computer. Software is the computer programs that are written to tell the hardware what to do to accomplish specific tasks.

Programming Logic: Basic programming logic takes the known values or the input and performs some task called the processing to produce the output of the program.

What is a computer program? A set of instructions used to perform a task.

What is computer programming? The process of writing computer programs.

What is a computer programmer? The person writing the computer programs.

What is a programming language? Programming languages are used to write your computer programs. Depending upon the application of the program you would choose the most appropriate language. The rules of the language are referred to as syntax. Typically we think of programming languages as the high level languages that may be used to accomplish a task.

Examples of high level programming languages are...
Java
RPG ( Report Program Generator)
COBOL
Visual Basic
C++

Why are there so many different programming languages? Because different types of problem applications are solved more efficiently in some languages instead of others. The company compiler usage or personal preferences of the programmers also determine which languages will be chosen. Some hardware, such as the IBM iSeries, usage may determine which language compilers are available.

Steps to creating a computer program

1. Requirements analysis ? determine the needs of the program and what the input, processing and output requirements are for the program.

2. Determining what information is needed

-- Database, physical file, table or data file structure ? these terms are used interchangeably to mean a storage location on disk that holds information or data. Depending upon the programming platform different terms may be used.

On the IBM iSeries these are?

physical file ? the entire file fields ? each column represents a field
JONES MARY 6626664646 Records ? each line or row represents a record
SMITH JOE 6628884848
ABLE SAM 6627225454

?

-- Data Structures
a) Fields or variables ? A group of related characters to form a piece of information. Such as a name or address.
b) Arrays - several pieces of information or fields stores as one unit. Each piece of information or element must have the same data class (either numeric or alphanumeric).
c) Tables - Allows you to store two pieces of information where there is a one to one positional relationship between an entry in the first table and the second (alternating) table.

3. Determine the program logic

-- Pseudocode ? a tool used to write the logic in ?English terms? to determine the process flow of the program. This is ?false? code, because it can be used to determine the logic of the program without worrying about the syntax of the language. This is a planning tool that will save you time and effort during the development stage of the program.

A couple of examples of pseudocode are shown...

Example 1:
Read data record to begin program
if (hours > 40) then
overtime hours = hours ? 40
overtime rate = rate * 1.5
overtime pay = overtime hours * overtime rate
regular pay = 40 * rate
else
regular pay = hours * rate
overtime pay = 0.0
endif
gross pay = regular pay + overtime pay
print gross pay



Example 2:
Read data record to begin program
if (hours > 40) then
subtract 40 hours from hours to get overtime hours
multiply rate by 1.5 to get overtime rate
multiply overtime hours by overtime rate
multiply 40 hours by rate to get regular pay
else
multiply hours by rate to get regular pay
set overtime pay to 0
endif
add overtime pay and regular pay to get gross pay
print gross pay

?

-- Flowcharts ? a flowchart is a pictorial representation of the logic of a program. This is beneficial to determine/view the logic of a program. The purpose of flowcharts are basically the same as pseudocode, it is just another way to represent the logic of the program. The symbols used are predefined to mean something specific. Notice the labels below.
An example is shown below:

-- Control Structures

a) Sequence ? each line of the program is executed in the order in which the instructions are written.
b) Selection ? the ability to choose which lines of code that gets executed based upon a condition. Methods of performing selections depend upon the language, but some examples are if statements, IFxx (RPG), switch statements (C++), select case (VB). (xx may be replaced with GT greater than, GE greater than or equal to, LT less than, LE less than or equal to, NE not equal, EQ equal.)
c) Repetition or looping- the ability to repeat lines of code multiple times. Methods of performing looping depends upon the language, but some examples are while, do while, DOWxx (RPG), DOUxx (RPG). (xx may be replaced with GT greater than, GE greater than or equal to, LT less than, LE less than or equal to, NE not equal, EQ equal.)

4. Coding

-- Write the computer program code.
-- Key the program into the computer using and editor.
o Editors ? many editors are available, depending upon the languages. Some example editors are Textpad, Visual Studio, Dev C++, SEU (Source Entry Utility).
o These editors are used to key in your program and some of the editors have error checking ability. This allows some of the syntax errors to be corrected while typing in the computer program.
-- Save the program as the appropriate file type. For example: C++ program saved as a .cpp file extension.
-- Compile the program. Compilation converts the source code you typed in into object program (machine language) that the computer can understand. For example: .cpp program is compiled to create an .obj (object program). C++ has one other step that links in needed files with the object program to create an executable program .exe file extension. This last phase is called linking the computer program. C++ can compile and link during the build of the program.

5. Debugging/Testing ? During the compilation or execution of the program errors may occur.
-- Syntax errors ? Errors may occur during the compilation stage that result in an abnormal compilation. Abnormal compilation means that the code is not following the rules or syntax of the language.
-- Run-time errors ? errors that interrupt the execution of the program. For example, you tried to open a file that does not exist on the system.
-- Logic errors ? this is when the results that are printing or displaying are not what you expected. For instance, you multiplied where you should have added. It will compile normally, however, it does not give desired output.

6. Execution ? To run the program and get the desired output
-- Types of output include?
? Updated files
? Report printouts
? Screen displays (can be web applets, display files, web applications)

7. Documentation ? After the program has been thoroughly tested, make sure all documentation is complete. This can be either internal or external documentation.
-- Internal documentation ? comments within your computer program that explains what processing is occurring in the program.
-- External documentation ? requirements, flowcharts, pseudocode, and/or any information outside of the computer program that supports the description of the program purpose.
Post ID: 2796291 | REPORT Floatzel Posted at: 14-Jul-2011 20:37:50
Floatzel
My life is 200% a lie.
Member
Team Posts: 3,354
Post Likes: 12
+
0
+
Forgoten_Scars said:You're so lucky. I'm still stuck in programming concepts. My last assignment was crappy. I had to memorize a lot of useless junk. :/

Programming Concepts

Computer Hardware vs. Software: Hardware is the actual equipment or devices on a computer. Software is the computer programs that are written to tell the hardware what to do to accomplish specific tasks.

Programming Logic: Basic programming logic takes the known values or the input and performs some task called the processing to produce the output of the program.

What is a computer program? A set of instructions used to perform a task.

What is computer programming? The process of writing computer programs.

What is a computer programmer? The person writing the computer programs.

What is a programming language? Programming languages are used to write your computer programs. Depending upon the application of the program you would choose the most appropriate language. The rules of the language are referred to as syntax. Typically we think of programming languages as the high level languages that may be used to accomplish a task.

Examples of high level programming languages are...
Java
RPG ( Report Program Generator)
COBOL
Visual Basic
C++

Why are there so many different programming languages? Because different types of problem applications are solved more efficiently in some languages instead of others. The company compiler usage or personal preferences of the programmers also determine which languages will be chosen. Some hardware, such as the IBM iSeries, usage may determine which language compilers are available.

Steps to creating a computer program

1. Requirements analysis ? determine the needs of the program and what the input, processing and output requirements are for the program.

2. Determining what information is needed

-- Database, physical file, table or data file structure ? these terms are used interchangeably to mean a storage location on disk that holds information or data. Depending upon the programming platform different terms may be used.

On the IBM iSeries these are?

physical file ? the entire file fields ? each column represents a field
JONES MARY 6626664646 Records ? each line or row represents a record
SMITH JOE 6628884848
ABLE SAM 6627225454

?

-- Data Structures
a) Fields or variables ? A group of related characters to form a piece of information. Such as a name or address.
b) Arrays - several pieces of information or fields stores as one unit. Each piece of information or element must have the same data class (either numeric or alphanumeric).
c) Tables - Allows you to store two pieces of information where there is a one to one positional relationship between an entry in the first table and the second (alternating) table.

3. Determine the program logic

-- Pseudocode ? a tool used to write the logic in ?English terms? to determine the process flow of the program. This is ?false? code, because it can be used to determine the logic of the program without worrying about the syntax of the language. This is a planning tool that will save you time and effort during the development stage of the program.

A couple of examples of pseudocode are shown...

Example 1:
Read data record to begin program
if (hours > 40) then
overtime hours = hours ? 40
overtime rate = rate * 1.5
overtime pay = overtime hours * overtime rate
regular pay = 40 * rate
else
regular pay = hours * rate
overtime pay = 0.0
endif
gross pay = regular pay + overtime pay
print gross pay



Example 2:
Read data record to begin program
if (hours > 40) then
subtract 40 hours from hours to get overtime hours
multiply rate by 1.5 to get overtime rate
multiply overtime hours by overtime rate
multiply 40 hours by rate to get regular pay
else
multiply hours by rate to get regular pay
set overtime pay to 0
endif
add overtime pay and regular pay to get gross pay
print gross pay

?

-- Flowcharts ? a flowchart is a pictorial representation of the logic of a program. This is beneficial to determine/view the logic of a program. The purpose of flowcharts are basically the same as pseudocode, it is just another way to represent the logic of the program. The symbols used are predefined to mean something specific. Notice the labels below.
An example is shown below:

-- Control Structures

a) Sequence ? each line of the program is executed in the order in which the instructions are written.
b) Selection ? the ability to choose which lines of code that gets executed based upon a condition. Methods of performing selections depend upon the language, but some examples are if statements, IFxx (RPG), switch statements (C++), select case (VB). (xx may be replaced with GT greater than, GE greater than or equal to, LT less than, LE less than or equal to, NE not equal, EQ equal.)
c) Repetition or looping- the ability to repeat lines of code multiple times. Methods of performing looping depends upon the language, but some examples are while, do while, DOWxx (RPG), DOUxx (RPG). (xx may be replaced with GT greater than, GE greater than or equal to, LT less than, LE less than or equal to, NE not equal, EQ equal.)

4. Coding

-- Write the computer program code.
-- Key the program into the computer using and editor.
o Editors ? many editors are available, depending upon the languages. Some example editors are Textpad, Visual Studio, Dev C++, SEU (Source Entry Utility).
o These editors are used to key in your program and some of the editors have error checking ability. This allows some of the syntax errors to be corrected while typing in the computer program.
-- Save the program as the appropriate file type. For example: C++ program saved as a .cpp file extension.
-- Compile the program. Compilation converts the source code you typed in into object program (machine language) that the computer can understand. For example: .cpp program is compiled to create an .obj (object program). C++ has one other step that links in needed files with the object program to create an executable program .exe file extension. This last phase is called linking the computer program. C++ can compile and link during the build of the program.

5. Debugging/Testing ? During the compilation or execution of the program errors may occur.
-- Syntax errors ? Errors may occur during the compilation stage that result in an abnormal compilation. Abnormal compilation means that the code is not following the rules or syntax of the language.
-- Run-time errors ? errors that interrupt the execution of the program. For example, you tried to open a file that does not exist on the system.
-- Logic errors ? this is when the results that are printing or displaying are not what you expected. For instance, you multiplied where you should have added. It will compile normally, however, it does not give desired output.

6. Execution ? To run the program and get the desired output
-- Types of output include?
? Updated files
? Report printouts
? Screen displays (can be web applets, display files, web applications)

7. Documentation ? After the program has been thoroughly tested, make sure all documentation is complete. This can be either internal or external documentation.
-- Internal documentation ? comments within your computer program that explains what processing is occurring in the program.
-- External documentation ? requirements, flowcharts, pseudocode, and/or any information outside of the computer program that supports the description of the program purpose.



I couldn't remember that. I'm going to the 9 grade, remember?

Credit to Myself for the sig.
Post ID: 2796292 | REPORT eminem180 Posted at: 14-Jul-2011 20:38:01
eminem180
Knock Madness
Member
Team Posts: 3,454
Post Likes: 1
+
0
+
I'm learning how to communicate with servers through PHP, it's a tad boring.
Is there a Mrs. Eminem180? Yes, and she's you, and you're just as beautiful as the day we met.
Post ID: 2796296 | REPORT Forgoten_Scars Posted at: 14-Jul-2011 20:39:11
Forgoten_Scars
Orbis terrarum est mei
Member
Team Posts: 113,966
Post Likes: 28
+
0
+
Well, I had one day to remember it, then take a test on it this morning. I missed 4 out of 20 questions.

I wish I was learning PHP. I'm sure it's more interesting than concepts.
Post ID: 2796299 | REPORT Glitters the Magical Pony Posted at: 14-Jul-2011 20:41:11
Glitters the Magical Pony
Wishes Excadrill wasn't Uber
Member
Team Posts: 8,110
Post Likes: 8
+
0
+
Pretty good, still basking in the glory of my FF8 no level run that I spoke of. That, and finishing Portal 2 today as well. Dad got it not too long ago and when he finished it yesterday, I kidnapped it and played it today as well.

^Thank you Z^

Blazblue said:Kokonoe: Any normal player starts crappin' bricks the moment they see you.
Arakune: Ahahaha. Well they toned me down this go-around. I can only manage 9000 damage in a 160-hit combo!

9000 damage equals to 9/10th's of your healthbar. Toned down? o_0
Back to the top Displaying Page 8242 of 10085. First | Next | 1 | 2 | 3 | 4 | 5 | .... | 8239 | 8240 | 8241 | 8242 | 8243 | 8244 | 8245 | .... | 10080 | 10081 | 10082 | 10083 | 10084 | 10085 | Previous | Last
This topic is closed

Post Top