[QUOTE=altern;40170529]no I have to google the number every time as it is[/QUOTE]
lmao non computer scientist scrub
here's some explainin'
1C is obviously hexadecimal and can be split into a single binary number like this:
0001 1100
the first half is 0001 since it represents the 1 in 1C, and 1 is 1 in both binary and decimal (weird huh!!)
the weird shit is the C, which is 12 in decimal, which means the 8 and 4 bits are both on in the block that represents C, so 1100
so since the number is 0001 1100, each binary number is worth a base 10 value like so:
128 64 32 16 - 8 4 2 1
since the 16, 8 and 4 bits are "on" we add the base 10 values to get 28, so this is sipwicket 28. 0x1D would be 0001 1101, which isn't hard arithmetic at all (i hope)
[QUOTE=Amiga OS;40170586][media]http://www.youtube.com/watch?v=d9u_AAKDu54[/media]
Aaaaaaa![/QUOTE]
i cringed
It's probably a shittier CCleaner that costs money upfront
for 28
- 64 32 16 8 4 2 1
0 0 0 1 1 1 0 0
0001 + 1100
reverse that for the seperate numbers gives
1 12
Since it's hex, that's 1C.
29 would be 0001 + 1101 so 1D.
[code]
characters = [0,1,2,3,4,5,6,7,8,9,"A","B","C","D","E","F",10]
input = 29
result = []
index = 0
while input != 0
remainder = input % 16
input = input / 16
result[index] = characters[remainder]
index += 1
end
puts result.reverse.join[/code]
Merry Christmas, a very basic decimal to hex converter in Ruby.
uh wingless it's april
[QUOTE=Protocol7;40170803]uh wingless it's april[/QUOTE]
If it was April fools I would give you one made in C using only the stdlib.
oh look
[code]
<?php dechex($input); ?>
[/code]
[QUOTE=Protocol7;40170803]uh wingless it's april[/QUOTE]
Yes, just in time for Australian Christmas. Remember, everything is upside-down there, including the calendar.
[QUOTE=SataniX;40170814]oh look
[code]
<?php dechex($input); ?>
[/code][/QUOTE]
Cool, every high level language does that but you don't get to see what goes on. That's why I posted what I posted.
Ruby can just do
[code]29.to_s(16)[/code]
But what's the point when you have no idea what it's actually doing?
[QUOTE=wingless;40170821]Cool, every high level language does that but you don't get to see what goes on. That's why I posted what I posted.
Ruby can just do
[code]29.to_s(16)[/code]
But what's the point when you have no idea what it's actually doing?[/QUOTE]
Real coders do low-level stuff straight in binary and hexadecimal
[QUOTE=Protocol7;40170838]Real coders do low-level stuff straight in binary and hexadecimal[/QUOTE]
[i]Real[/i] coders re-implement the whole thing in microcode to run directly on the barest of all metal.
Now do it only with discrete chips
(I'm still amazed that [URL="http://imgur.com/a/TUGto#0"]PONG is just discrete chips[/URL])
[QUOTE=wingless;40170821]
But what's the point when you have no idea what it's actually doing?[/QUOTE]
because I do know what it's doing and I'm lazy.
[QUOTE=SataniX;40170860]because I do know what it's doing and I'm lazy.[/QUOTE]
I posted it like that to show off the basic process.
The basic process is easier to understand with binary arithmetic instead of Ruby code IMO.
[QUOTE=Protocol7;40170911]The basic process is easier to understand with binary arithmetic instead of Ruby code IMO.[/QUOTE]
Gonna be different person to person.
[QUOTE=wingless;40170937]Gonna be different person to person.[/QUOTE]
Yeah well I guess you're the 0 to my 1. ;)
[QUOTE=Amiga OS;40170667]I wonder what it actually does, keylogger? botnet? advert spam?[/QUOTE]
It's actually a legit "tune-up" software that can't do jackshit
[QUOTE=B!N4RY;40171064]It's actually a legit "tune-up" software that can't do jackshit[/QUOTE]
Well, know exactly what all the "features" do?
You guys could just use base36.
[QUOTE=nikomo;40171072]You guys could just use base36.[/QUOTE]
32:33
Base 1 best base
[QUOTE=Amiga OS;40171078]I spotted this last night on /g/
Fabulous.
[t]http://i.imgur.com/jkHrI7I.jpg[/t][/QUOTE]
what the fuck is that sparkly nail polish?
[QUOTE=wingless;40171070]Well, know exactly what all the "features" do?[/QUOTE]
exactly what it says it does, except it does a very VERY shitty job
[QUOTE=B!N4RY;40171111]exactly what it says it does, except it does a very VERY shitty job[/QUOTE]
Wouldn't have it any other way.
[QUOTE=Amiga OS;40171078]I spotted this last night on /g/
Fabulous.
[t]http://i.imgur.com/jkHrI7I.jpg[/t][/QUOTE]
what the what, they even made the keys in alphabetical order :pukes:
[QUOTE=Amiga OS;40171078]I spotted this last night on /g/
Fabulous.
[t]http://i.imgur.com/jkHrI7I.jpg[/t][/QUOTE]
It's utterly horrible.
[I]And[/I] it has my birthday on it. I feel dirty...
[QUOTE=Amiga OS;40171188]You can't appreciate true art.[/QUOTE]
*drinks Starbucks*
[editline]5th April 2013[/editline]
Mouse just flashed red once and straight up died. THANKS FOR THE WARNING
Sorry, you need to Log In to post a reply to this thread.