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

11:00 PM
<?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
 
11:04 PM
 
user1596138
!!color ffe680
 
!!color ff0000,0000ff,ff00ff,00ff00,abc,def
 
like a boss
 
user1596138
11:05 PM
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.
 
11:07 PM
!!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
 
11:08 PM
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?
 
11:09 PM
$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
11:12 PM
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?
 
11:13 PM
!!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
11:13 PM
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
 
11:14 PM
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
11:15 PM
@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';
 
11:16 PM
@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.
 
11:17 PM
@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"
 
11:17 PM
@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 ^
 
11:18 PM
@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.
 
tinker.io/437a5 step one.
 
user1125394
11:20 PM
 
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
11:21 PM
@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
 
11:23 PM
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
 
11:24 PM
@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.
 
Hi!
 
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
 
11:27 PM
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
 
11:29 PM
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
 
11:34 PM
@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
11:44 PM
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
 
11:55 PM
@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 (3921 days later) »