« first day (1012 days earlier)      last day (4161 days later) » 

23:00
<?php
header('Content-Type: image/png');
function rgbFromHex($hexValue) {

        //$hexValue = str_replace('#', '', $hexValue);
        //SILLY ME WAS EXPECTING # TO BE PASSED. BUT USING $_GET[] VARIABLES THAT ISN'T POSSIBLE... DAMMIT.

        if (strlen($hexValue) == 3) { //CHECK FOR SHORTHAND
                $r = hexdec(substr($hexValue, 0, 1) . substr($hexValue, 0, 1));
                $g = hexdec(substr($hexValue, 1, 1) . substr($hexValue, 1, 1));
                $b = hexdec(substr($hexValue, 2, 1) . substr($hexValue, 2, 1));
user1596138
Aw :( Now I don't get to do it...
That @Shmiddty, such a rude bastard.
user1596138
Haha. Uploading.
user1596138
Well, testing.
obviously replace the parameter on createSwatch with the qs param
23:04
user1596138
!!color ffe680
!!color ff0000,0000ff,ff00ff,00ff00,abc,def
like a boss
user1596138
23:05
Perfect.
user1596138
I was thinking of adding a flag to change it to vertical columns when I did it. Pretty thin ones.
user1596138
I know this whole thing is honestly useless, but it's fun.
it's not completely useless
it's good for getting an opinion on a palette
*sigh* wife says my blog looks boring, back to the drawing board
:'(
user1596138
Well, you could just google the color. Ha. But it is useful in a way I guess.
23:07
!!color ff0000,ff2222,ff4444,ff6666,ff8888,ffaaaa,ffcccc,ffeeee
user1596138
True!
not enough <blink>
and switch tabs? psh!
!!color f00,f11,f22,f33,f44,f55,f66,f77,f88,f99,faa,fbb,fcc,fdd,fee,fff
23:08
that means war
user1596138
I like it. If we're going to keep adding things, and I know I am (we need rgb!) I guess I may aswell create a repo for it.
rgb complicates the syntax.
user1596138
@Shm did you fix the one shorthand?
yeah
you just had a typo
user1596138
Ah. Where at?
23:09
$hexValueValue instead of $hexValue
user1596138
Ah! I noticed I did that in another place too before I actually showed you guys. Weird.
PHP's image stuff is completely unintuitive btw.
user1596138
It's ridiculous.
!!color f00,f11,f22,f33,f44,f55,f66,f77,f88,f99,faa,fbb,fcc,fdd,fee,fff,fee,fdd,fcc,fbb,‌​faa,f99,f88,f77,f66,f55,f44,f33,f22,f11,f00,f11,f22,f33,f44,f55,f66,f77,f88,f99,f‌​aa,fbb,fcc,fdd,fee,fff,fee,fdd,fcc,fbb,faa,f99,f88,f77,f66,f55,f44,f33,f22,f11,f0‌​0,f11,f22,f33,f44,f55,f66,f77,f88,f99,faa,fbb,fcc,fdd,fee,fff,fee,fdd,fcc,fbb,faa‌​,f99,f88,f77,f66,f55,f44,f33,f22,f11,f00,f11,f22,f33,f44,f55,f66,f77,f88,f99,faa,‌​fbb,fcc,fdd,fee,fff,fee,fdd,fcc,fbb,faa,f99,f88,f77,f66,f55,f44,f33,f22,f11,f00
user1596138
23:12
The problem with RGB (from my point of view) is that I have no idea what format people would use for it. Some might use rgb(255,255,255) and others may just use 255,255,255 and so on.
user1596138
I think I'll strip everything but commas and digits and use that.
@Jhawinsss would have to strictly enforce rgb(r,g,b)
!!color f00,ff7f00,ff0,0f0,00f,4b0082,8f00ff
user1596138
Not sure if I should account for people simply using spaces between values or not?
23:13
!!color roygbiv
Server error (status 500) occured (message probably too long)
user1596138
@Shmiddty Not really. I could use regex.
you should add a handler for roygbiv
!!color f00,f11,f22,f33,f44,f55,f66,f77,f88,f99,faa,fbb,fcc,fdd,fee,fff,fee,fdd,fcc,fbb,‌​faa,f99,f88,f77,f66,f55,f44,f33,f22,f11,f00,f11,f22,f33,f44,f55,f66,f77,f88,f99,f‌​aa,fbb,fcc,fdd,fee,fff,fee,fdd,fcc,fbb,faa,f99,f88,f77,f66,f55,f44,f33,f22,f11,f0‌​0,f11,f22,f33,f44,f55,f66,f77,f88,f99,faa,fbb,fcc,fdd,fee,fff,fee,fdd,fcc,fbb,faa‌​,f99,f88,f77,f66,f55,f44,f33,f22,f11,f00,f11,f22,f33,f44,f55,f66,f77,f88,f99,faa,‌​fbb,fcc,fdd,fee,fff,fee,fdd,fcc,fbb,faa,f99,f88,f77,f66,f55,f44,f33,f22,f11,f00
user1596138
23:13
Common colors are a must, that's for sure. I'll add roygbiv, and things like blue and black.
!!color feff00, fdff00, fcff00, fbff00, faff00, f9ff00, f8ff00, f7ff00, f6ff00, f5ff00, f4ff00, f3ff00, f2ff00, f1ff00, f0ff00, efff00, eeff00, edff00, ecff00, ebff00, eaff00, e9ff00, e8ff00, e7ff00, e6ff00, e5ff00, e4ff00, e3ff00, e2ff00, e1ff00, e0ff00, dfff00, deff00, ddff00, dcff00, dbff00, daff00, d9ff00, d8ff00, d7ff00, d6ff00, d5ff00, d4ff00, d3ff00
@jAndy southouse.tk/hex.php?color=feff00, fdff00, fcff00, fbff00, faff00, f9ff00, f8ff00, f7ff00, f6ff00, f5ff00, f4ff00, f3ff00, f2ff00, f1ff00, f0ff00, efff00, eeff00, edff00, ecff00, ebff00, eaff00, e9ff00, e8ff00, e7ff00, e6ff00, e5ff00, e4ff00, e3ff00, e2ff00, e1ff00, e0ff00, dfff00, deff00, ddff00, dcff00, dbff00, daff00, d9ff00, d8ff00, d7ff00, d6ff00, d5ff00, d4ff00, d3ff00#.png
Server error (status 500) occured (message probably too long)
user1596138
I'm sure there's a list somewhere that I can use.
lol breakin shit
ups :P
23:14
probably need a trim in there
user1596138
Probably should cut off at something like 10 colors.
what's trim in php? liposuction($string)
!!> var col = 255,hex = [ ];while(col--) {hex.push( col.toString( 16 ) );} console.log(hex.join('ff00,'));
@jAndy "undefined" Logged: "feff00,fdff00,fcff00,fbff00,faff00,f9ff00,f8ff00,f7ff00,f6ff00,f5ff00,f4ff00,f‌​3ff00,f2ff00,f1ff00,f0ff00,efff00,eeff00,edff00,ecff00,ebff00,eaff00,e9ff00,e8ff0‌​0,e7ff00,e6ff00,e5ff00,e4ff00,e3ff00,e2ff00,e1ff00,e0ff00,dfff00,deff00,ddff00,dc‌​ff00,dbff00,daff00,d9ff00,d8ff00,d7ff00,d6ff00,d5ff00,d4ff00,d3ff00,d2ff00,d1ff00‌​,d0ff00,cfff00,ceff00,cdff00,ccff00,cbff00,caff00,c9ff00,c8ff00,c7ff00,c6ff00, (snip)
trim($str)
lol
user1596138
23:15
@Shmiddty trim()
user1596138
Hahaha
Y U SNIP
liposuction($string_trim_delimiter, $string, $variableContainingResult, $opts, $yourSanity)
explode/implode is cool and all, but what's wrong with split?
user1125394
!!> var var='var';
23:16
@cx "SyntaxError: missing variable name"
user1596138
Implode is cool. I was using it to pass the array at first, but I couldn't get it work right.
!!> var var_var = ''; var_var; //... binks!
@rlemon "undefined"
I really dislike a lot of things about php
user1596138
I thought I could implode(', ', $rgb) inside of imagecolorallocate.
23:17
@rlemon "SyntaxError: missing variable name"
you know the scary sound it makes.. when you realize some really huge fat ugly insect is around your room...
when it touches a window for instance
@rlemon ""
done
user1125394
!!> var eval=eval('1+1'); eval;
@cx "TypeError: eval is not a function"
23:17
@cx lets put it this way, you can't use any reserved names
user1125394
:))
@cx "TypeError: eval is not a function"
!!> for (var x in this) { if (this.hasOwnProperty(x)) { console.log(x); } }
@SomeKittens "SyntaxError: missing ) after condition"
user1125394
but it works in Chrome ^
23:18
@SomeKittens "undefined" Logged: "global","whitey","exec","console","p"
!!> Object.getOwnPropertyNames( this );
@jAndy ["Object","Function","eval","Event","MessageEvent","Blob","DOMException","globa‌​l","whitey","exec","console","p","Array","Boolean","JSON","undefined"]
!!tell cx sandbox
@cx Please use the sandbox to become familiar with the bot's features.
user1125394
23:20
and now i think i'll give up and play video games
@cx The bot's JS runs in a special environment so you can't do nasty things like rewrite globals or while(1)
ie> console.log(2);
Why use ~~ instead of |0?
it was faster in perf
in Chrome
really?
user1125394
23:21
@SomeKittens Dr.Eval ain't here
two operations is faster than one. idgi
which is quite surprisingly since we apply two times a binary operator on a value
where |0 only applies one
@jAndy "idgi" = "I don't get it"
@Shmiddty programming is strange
yea I tested it out today actually
I guess chrome magic won't cast the number two times from INT64 into INT32
23:23
before I used |0
now i'm trying to make the switch
|0 doesn't require you to wrap in parens though, so there's that.
alright, it's home time
yea, that was a consideration
I can't even type
@Dozer789 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
but the eventual goal will be to do something 'live' with this
so every ms counts
23:24
@MehulKar Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
yeah, operation performance is more important than download delay at that point
which is kind of counter intuitive for web devs who generally have the mindset that "every byte counts"
anyways bye!
later o/
cya (nide)
@rlemon Bye
23:27
O_o
woah, I had no idea S/O had chat rooms
Yep, a whole ton of them!
it is THAT moment where we all felt like Neo, when he took the red pill
is this all custom software?
or was it the blue one ? mhm
23:29
haha
I'm actually about to start building group oriented chat rooms for this community I'm building, and I trying to figure out what already exists
@MehulKar IRC
I use irc a lot, but I actually don't know much about how it works. For my use case, I'd need an authentication layer
user1125394
Internet Relay Chat (IRC) is a protocol for live interactive Internet text messaging (chat) or synchronous conferencing. It is mainly designed for group communication in discussion forums, called channels, but also allows one-to-one communication via private message as well as chat and data transfer, including file sharing. IRC was created in 1988. Client software is available for every major operating system that supports Internet access. As of April 2011, the top 100 IRC networks served more than half a million users at a time, with hundreds of thousands of channels History IRC ...
plus, I'm just starting out as a programmer, so I'm thinking it would be fun to build something from scratch
23:34
@some
@SomeKittens, nice
@SomeKittens how do I send the message from mobile
enter?
wow, I've never used that return button on my iphone keyboard
cool beans. going to look at that repo later in the evening
anyway, getting back to work. this was a good find for today
user1596138
Is there a variable that I can call as part of a function that holds the users username in the bot?
user1596138
@Zirak
user1596138
Worded that weird.
user1125394
23:44
try again
user1596138
The same way $0 holds the argument of a command, I want to have something like $userName.
user1596138
!!/forget color
@Jhawinsss color: User-taught command: <msg>http://southouse.tk/hex.php?color=$0#.png
@Jhawinsss Command color forgotten.
user1596138
!!learn color '<msg>http://southouse.tk/color.php?color=$0#.png'
@Jhawinsss Command color learned
23:55
@all hello
please help me i'm trying to reopen a question
http://stackoverflow.com/questions/17308641/phonegap-jquery-mobile-mvc-structure
i appreciate any help
ty
user1596138
!!learn color '<msg>http://southouse.tk/colors.php?color=$0#.png'
@Jhawinsss Command color forgotten.
@Jhawinsss Command color learned

« first day (1012 days earlier)      last day (4161 days later) »