I. Now. Have. 1337. Posts

Page 1 of 3 1, 2, 3  Next

View previous topic View next topic Go down

I. Now. Have. 1337. Posts

Post by Administrator on Mon May 17, 2010 8:25 pm

1337


Last edited by SKYxShaymin on Tue May 18, 2010 2:16 pm; edited 3 times in total

__________________________

Administrator
Super Trooper
Super Trooper

Post Count: 1591
Age: 17
Shaycoins: 3442
Registration date: 2008-11-29

View user profile http://www.shaychu.com

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by Kureseria on Mon May 17, 2010 9:12 pm

Hawt. Screenshots pl0x?

Kureseria

Post Count: 111
Age: 21
Shaycoins: 1436
Registration date: 2008-12-08

View user profile http://www.friendcodes.com/forums/members/58530/shii.html

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by Cirrus on Mon May 17, 2010 9:46 pm

Hahaaaaaaaaaaaaa!!!!! Now onto my 1337 r4nt.

IPs

An IP is a very important thing to the Internet. It uniquely identifies computers, and allows a LAN to communicate with it. There are 4 main classes of IP addresses, which are determined by the first octet of the IP address. Class A IPs consist of one network, and 3 hosts, a class B consists of 2 networks and 2 hosts, and class C IPs consist of 3 networks, and one host. There's a class E that is only used in certain countries like China, and is the basis of IPv5, which isn't populated yet.

A network address is calculated by finding the lowest address in the address block. With a 35-bit prefix, however, the last 7 bits are host, and are always set to 0.

Finding a broadcast address is done by simply changing the host portion of an IP to all 0s. This is useful to determine what range of IPs can be associated to any one network.

CIDR notation can be used in pair with an IP to give it a specific host name. CIDR notation is constructed from two strings; the IP address, and the prefix size which is the number of leading 1 bits (true) of the routing prefix, and determines the IP's subnet mask.

An IP of 34.229.192.4 /27 would mean its subnet would have to be 255.255.255.224. This is because the first 3 bits in a bit graph are 'turned on', aka given a value of 1.

1 1 1 0 0 0 0 0
_ _ _ _ _ _ _ _
128 64 32 16 8 4 2 1

By adding 128, 64 and 32, we get 224, which is the last octet of the subnet mask. 255 is used because by turning on all 8 bits in each of the first 3 octets, we get a result of 24. But because CIDR calls for 27, we must add only the first 3 bits to make the subnet mask.

No device on the same network can have the same IP address, or there will be trouble.



Sorting in computer programming

When sorting in any programming language, there are a few initial steps that must be taken.

Code:

limit = max
switch = 1
DO WHILE switch
    switch = 0
    FOR I = 1 TO (limit - 1)
        IF name$(I) > name$(I + 1) THEN
            SWAP lastname$(I), lastname$(I + 1)
            SWAP firstname$(I), firstname$(I + 1)
            SWAP class(I), class(I + 1)
            SWAP grade$(I), grade$(I + 1)
            switch = 1
            last = I
        END IF
    NEXT I


First, we must set an overall limit for the sort, otherwise, it will not know when to stop searching for data. In this example, the variable 'max' is calculated by using it as an accumulator during the initial creating of an array of the data that is to be sorted. The variable 'switch' ensures that the sort only happens once. By setting switch to 1, and setting ti to 0 immediately after the DO expression is declared, it ensures that the sort only works once. The For I = 1 to (limit - 1), we effectively do a 50-50 cut every time we search for data inside the array to sort to find a record in the array that should be sorted next. The If statement looks at the array named name$, and the array element number that is previously assigned to it from the FOR statement. If it belongs higher in the sorted list than the array element before it, the 2 elements are swapped in location. A second set to the switch variable is added to the IF statement, telling the machine that the sort isn't done yet. The only time the IF statement will not be true will be when it finds 2 array elements that are the same in content, which means that the machine has already checked both elements. This means the sort is finished.

So Mr. 1337, I'm assuming you knew all of this. And the DO WHILE switch instead of DO WHILE switch = 1, we both know why I did that. Very Happy

Cirrus

Post Count: 1152
Age: 20
Shaycoins: 2389
Registration date: 2008-12-06
Badges:



View user profile http://pokerealm.com

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by South on Mon May 17, 2010 9:50 pm

Good luck with that.

South

Post Count: 177
Age: 17
Shaycoins: 1322
Registration date: 2009-01-25
Badges:
Elite Four Symbols:

View user profile

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by 7 on Tue May 18, 2010 4:19 am

Cirrus wrote:[...]
Sorting in computer programming

When sorting in any programming language, there are a few initial steps that must be taken.

Code:

limit = max
switch = 1
DO WHILE switch
    switch = 0
    FOR I = 1 TO (limit - 1)
        IF name$(I) > name$(I + 1) THEN
            SWAP lastname$(I), lastname$(I + 1)
            SWAP firstname$(I), firstname$(I + 1)
            SWAP class(I), class(I + 1)
            SWAP grade$(I), grade$(I + 1)
            switch = 1
            last = I
        END IF
    NEXT I


only noobs use basic
go to c
not c++, not objective-c
just c

i'd rewrite the code here but i'm too busy tinkering with my new linux box

Cirrus wrote:First, we must set an overall limit for the sort, otherwise, it will not know when to stop searching for data. In this example, the variable 'max' is calculated by using it as an accumulator during the initial creating of an array of the data that is to be sorted.


the variable name is limit, not max
unless you omitted the declaration of max, which shouldn't happen
you know why

it might also be a basic thing, idk, never bothered with it

Cirrus wrote:The variable 'switch' ensures that the sort only happens once. By setting switch to 1, and setting it to 0 immediately after the DO expression is declared, it ensures that the sort only works once.


thanks for explaining yourself twice

Cirrus wrote:The For I = 1 to (limit - 1), we effectively do a 50-50 cut every time we search for data inside the array to sort to find a record in the array that should be sorted next. The If statement looks at the array named name$, and the array element number that is previously assigned to it from the FOR statement. If it belongs higher in the sorted list than the array element before it, the 2 elements are swapped in location. A second set to the switch variable is added to the IF statement, telling the machine that the sort isn't done yet. The only time the IF statement will not be true will be when it finds 2 array elements that are the same in content, which means that the machine has already checked both elements. This means the sort is finished.


tl;dr: common sense, read the damn code

__________________________
Do I contradict myself?
Very well, then, I contradict myself;
(I am large—I contain multitudes.)

Been beat up and battered around.
Been sent up and I've been shot down.
You're the best thing that I've ever found.
Handle me with care.

7
The Crazy Warden
The Crazy Warden

Post Count: 2032
Age: 18
Shaycoins: 3444
Registration date: 2008-12-24
Badges:

View user profile http://jilppagi.tk/variant/

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by Bambii on Tue May 18, 2010 10:56 am

omfg.... NERD ALERT! I couldnt understand a single word you guys both said *twitches*

Bambii

Post Count: 377
Age: 13
Shaycoins: 1055
Registration date: 2010-05-10

View user profile

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by Cirrus on Tue May 18, 2010 12:03 pm

Bambii wrote:omfg.... NERD ALERT! I couldnt understand a single word you guys both said *twitches*


The word you're looking for is g33k alert, not nerd alert. Nerds are geeks who have no 1337, simply the appearance of a geek.

Varry, I use C++, but haven't learned enough about it yet to make a sort. >.>
I'll be learning C# soon, making C++ past news to me. Have fun with your soon-to-be updated language.

Also, it doesn't matter whether it's limit or max for the very first part cuz they're set equal to each other before the sort even starts.

Cirrus

Post Count: 1152
Age: 20
Shaycoins: 2389
Registration date: 2008-12-06
Badges:



View user profile http://pokerealm.com

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by 7 on Tue May 18, 2010 12:49 pm

c# is microsoft, c++ is unix
they're also quite different

also i didn't say c++, i said c; c's syntax is different

although i like that beginning thing, in c you have to declare them before doing anything at all

__________________________
Do I contradict myself?
Very well, then, I contradict myself;
(I am large—I contain multitudes.)

Been beat up and battered around.
Been sent up and I've been shot down.
You're the best thing that I've ever found.
Handle me with care.

7
The Crazy Warden
The Crazy Warden

Post Count: 2032
Age: 18
Shaycoins: 3444
Registration date: 2008-12-24
Badges:

View user profile http://jilppagi.tk/variant/

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by Administrator on Tue May 18, 2010 2:16 pm

lol wut?

__________________________

Administrator
Super Trooper
Super Trooper

Post Count: 1591
Age: 17
Shaycoins: 3442
Registration date: 2008-11-29

View user profile http://www.shaychu.com

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by Soccerryle on Tue May 18, 2010 2:49 pm

Bambii wrote:omfg.... NERD ALERT! I couldnt understand a single word you guys both said *twitches*


Not our fault you're not 1337.

Soccerryle

Post Count: 1908
Age: 14
Shaycoins: 3609
Registration date: 2008-12-29
Badges:

View user profile

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by Dragonartist713 on Tue May 18, 2010 3:15 pm

indeed

__________________________

I Am the Red Author | I Am the Red Artist
"Be who you are and say what you feel, because those who mind don't matter, and those who matter don't mind." -Dr. Suess
Welcome to my Insanity.

Dragonartist713
The Coolest Warden
The Coolest Warden

Post Count: 2423
Age: 22
Shaycoins: 4179
Registration date: 2009-01-05
Badges:

View user profile http://darklair.forumotion.com

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by Bambii on Tue May 18, 2010 6:55 pm

IDC about how many posts... but seriously... wtf r u guys saying? I think ur like some robots giving us all a glimpce into the future o.o

Bambii

Post Count: 377
Age: 13
Shaycoins: 1055
Registration date: 2010-05-10

View user profile

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by ♥Qu4ckers♥ on Tue May 18, 2010 7:17 pm

7 wrote:
Cirrus wrote:[...]
Sorting in computer programming

When sorting in any programming language, there are a few initial steps that must be taken.

Code:

limit = max
switch = 1
DO WHILE switch
    switch = 0
    FOR I = 1 TO (limit - 1)
        IF name$(I) > name$(I + 1) THEN
            SWAP lastname$(I), lastname$(I + 1)
            SWAP firstname$(I), firstname$(I + 1)
            SWAP class(I), class(I + 1)
            SWAP grade$(I), grade$(I + 1)
            switch = 1
            last = I
        END IF
    NEXT I


only noobs use basic
go to c
not c++, not objective-c
just c

i'd rewrite the code here but i'm too busy tinkering with my new linux box

Cirrus wrote:First, we must set an overall limit for the sort, otherwise, it will not know when to stop searching for data. In this example, the variable 'max' is calculated by using it as an accumulator during the initial creating of an array of the data that is to be sorted.


the variable name is limit, not max
unless you omitted the declaration of max, which shouldn't happen
you know why

it might also be a basic thing, idk, never bothered with it

Cirrus wrote:The variable 'switch' ensures that the sort only happens once. By setting switch to 1, and setting it to 0 immediately after the DO expression is declared, it ensures that the sort only works once.


thanks for explaining yourself twice

Cirrus wrote:The For I = 1 to (limit - 1), we effectively do a 50-50 cut every time we search for data inside the array to sort to find a record in the array that should be sorted next. The If statement looks at the array named name$, and the array element number that is previously assigned to it from the FOR statement. If it belongs higher in the sorted list than the array element before it, the 2 elements are swapped in location. A second set to the switch variable is added to the IF statement, telling the machine that the sort isn't done yet. The only time the IF statement will not be true will be when it finds 2 array elements that are the same in content, which means that the machine has already checked both elements. This means the sort is finished.


tl;dr: common sense, read the damn code


you guys are so cool

♥Qu4ckers♥

Post Count: 659
Age: 14
Shaycoins: 1952
Registration date: 2009-01-25

View user profile

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by Bambii on Tue May 18, 2010 8:01 pm

you guys are nuts. @_@

Bambii

Post Count: 377
Age: 13
Shaycoins: 1055
Registration date: 2010-05-10

View user profile

Back to top Go down

Re: I. Now. Have. 1337. Posts

Post by 7 on Tue May 18, 2010 8:02 pm

it reads like a book to me, so i don't see the problem

__________________________
Do I contradict myself?
Very well, then, I contradict myself;
(I am large—I contain multitudes.)

Been beat up and battered around.
Been sent up and I've been shot down.
You're the best thing that I've ever found.
Handle me with care.

7
The Crazy Warden
The Crazy Warden

Post Count: 2032
Age: 18
Shaycoins: 3444
Registration date: 2008-12-24
Badges:

View user profile http://jilppagi.tk/variant/

Back to top Go down

Page 1 of 3 1, 2, 3  Next

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum