« first day (550 days earlier)      last day (3238 days later) » 
00:00 - 19:0019:00 - 00:00

user652649
12:00 AM
Time: 2.62 seconds, Memory: 12.25Mb
OK (48 tests, 96 assertions)
Generating code coverage report in HTML format ... done
 
user652649
WIN
 
I thought you don't test O.o
 
user652649
i started today
 
user652649
things are getting too big to not make tests
 
nice :D
You ll love it
My favorite part of development has become writing tests
How are tag scores calculated
I never got that
 
user652649
12:02 AM
yea i noticed already it's useful
 
user652649
tag scores?
 
The way you get tag badges
as in css gold badge and such
 
user652649
ah no idea
 
user652649
i don't even browse SO anymore
 
user652649
12:05 AM
@PatsyIssa i see already that the tests code coverage reports will be addictive
 
You start getting excited when shit passes :P
 
user652649
will get 100% soon xD it's my life goal now
 
Wait until you start TDD
Even more baws code
 
user652649
i do test driven developement already
 
user652649
not in automated way
 
user652649
12:06 AM
i always create APIs writing usage examples
 
nice
 
user652649
that's a better approach than writing the implementation directly
 
Currently you only test your php?
 
user652649
yes
 
user652649
you test also front end js?
 
12:09 AM
yup
We make single page web apps, the front end js is a big part
if not the biggest
 
user652649
honestly i don't see why should i test that... it's mostly simple code and what should be tested can't be automated
 
I suggest mocha or Qunit
 
user652649
like mouse movement and things
 
Mostly integration tests
To make sure if we add a feature/route/controller... it doesn't break anything else
You ll never land on a dead link in one of our apps
 
user652649
i never had to write complex js for front end
 
12:11 AM
When you want to write single page apps you ll have to
 
user652649
i prototype things but it's relatively simple code
 
user652649
i wonder if there's a way to test user interaction
 
there is
 
user652649
that would be cool
 
user652649
12:14 AM
> gremlins.js is a monkey testing library written in JavaScript, for Node.js and the browser. Use it to check the robustness of web applications by unleashing a horde of undisciplined gremlins.
 
user652649
:D
 
user652649
i was thinking something more powershell commands
 
user652649
URLBAR: http://www.myste.org
FOCUSFIELD: input.email
TYPE: sdfsdfasdfsdaf
BLURFIELD
SUBMIT
ENSURE VISIBLE .popup.modal.emailerror
 
user652649
but this is sci-fiction
 
user652649
maybe one day xD
 
12:18 AM
You just described js tests
 
user652649
yea?
 
user652649
gonna check them then
 
making a gist sec
 
user652649
do they work on any browser?
 
I run them from the cli
I m using Qunit there
Mocha test
Mocha is close to rspec
rspec is the test unit we use for rails
At one point in your life you should take a look at ruby/rails
 
user652649
12:21 AM
ha
 
user652649
awesome :D
 
The mentality behind it is convention over configuration
Guys that wrote ember are rails core members
same mentality applied to it
I finished my training and was handed an app that was already in production and v2
I have yet to ask anyone where I can find x piece of code etc
Everything follows a convention
If you know one you know them all
And the beautiful thing about ruby, there's a gem for everything
And i do mean EVERYTHING
 
user652649
werent you a js guy xD
 
I am
I use rails in the back
Ember.js apps powered by a rails api
ember data ( data persistence lib ) even has an adapter for active records ( rails serializer )
 
user652649
meh
 
12:25 AM
In the list of useless but hey someone might need it gems : humanize
 
user652649
active record is an antipattern, you know that, right? :D
 
How so
shit i meant active model
 
user652649
mixes the responsibility to represent an entity and its persistence tasks
 
user652649
don't know what's that
 
check it out
active model serializer is what we use
basically you define the models and the relationships and tada you get output
 
user652649
12:30 AM
ever used phpunit?
 
user652649
trying to trigger an error from this $this->assertEquals([5, 3.0], [5, 3]);
 
user652649
there's no assertIdentical or something :|
 
user652649
i would seriously love to use another language, but they all seem too exotic to me
 
nope
 
user652649
i like java-like programming languages
 
user652649
12:33 AM
the only i like is c#
 
user652649
but not open
 
give rails a shot
 
user652649
it runs only on mswin
 
though I need to warn you deploying a rails app can be a pain in the ass the first few times
 
user652649
don't worry, i wouldn't touch rails even with a 20 foot pole xD
 
user652649
12:34 AM
maybe python
 
user652649
python is appealing
 
same shit for deployment :P
but yeah python or ruby
 
user652649
meh actually python is almost php
 
user652649
function names are the same
 
user652649
many libs are used by both
 
user652649
12:36 AM
gd intl libxml
 
2:40 AM
39
Q: HSL to RGB color conversion

hhafezHi I am looking for a tool or the algorithm to convert between HSL color to RGB. It seems to me that HSL is not very widely used so I am not having much luck searching for a converter. If you know of one, or an easily implementable algorithm it would be much appreciated.

room topic changed to WebDesign Tricks & HTML / CSS Treats: HTML / CSS / WebDesign chat room - Start by thinking. Then google before asking ▲ Don't ask to ask, just ask and ask once! ▲ Support room for HTML, CSS, DOM and WebDesign. If you need help post an example of your issue please. devdocs.io documentation often helps. [css] [css3] [dhtml] [dom] [html] [html5] [microdata] [responsive-design] [xhtml]
H a p p y ` ` W e b l l o w e e n
 
3:17 AM
why the name change
I was like "why the hell do I have this room starred"
0
A: Toggle not functioning upon clicking

TylerHIf you want to use only CSS, then I think this should be possible using the infamous CSS checkbox hack. Basically, you'll be using input[type=checkbox] to act as a sort of "binary" check. JSFiddle Example A short explanation of what I've changed: Added a input[type=button] element before eac...

Boom, my first checkbox hack answer
 
lol
 
imperfect because the dude is using JavaScript
 
because halloween
 
3:30 AM
I hate how when questions have an answer it gives the side icon a green background, and an accepted answer changes the font color to yellow
That seems backward to me
It should change the color to grey/black when it has an answer or answers
and then once an answer has been accepted, then it should add the green box
because questions that don't have an accepted answer but have 10 answers are still in more need than a question that has 1 answer, which is accepted
so it's much easier to scroll through the list of questions and delineate by green boxes than try to see the number of answers and tell whether it is white or light yellow
 
4:16 AM
@TylerH what was the name set to?
 
4:29 AM
Hi guys.
I'm just jumping from rooms to rooms. Is Jekyll for GitHub Pages allowed in this chatroom?
A simple yes/no is sufficient.
 
@PatsyIssa HTML / CSS / Web Design I think
@tom_mai78101 no idea what you're talking about
 
@TylerH Jekyll is a markup language used for constructing websites. Github has a feature where users can push to a gh-page so as to let Github generate webpages for the users.
Since it is related to web design or web development, I was wondering if this chatroom would allow discussion on Jekyll.
 
yeah discussion on any web tech is allowed
we just might not be able to have any help or insight for things other than html, css, and web design here
people can ask about JS questions here for example, but most likely unless they are just a regular having a conversation (for example), then we will point them to the JS room
 
Oh ok.
 
hi @ZachSaucier Gave my first checkbox hack answer earlier
 
4:40 AM
If only I can ask questions on Jekyll without having any repercussions, that'd be great.
 
nice?
 
@ZachSaucier just chatting about CSS, that's all :-P
 
@tom_mai78101 You mean you want other people to be disallowed from asking about it?
 
I wonder how long it'll take you to realize I never know what I'm doing when it comes to programming
 
4:41 AM
@ZachSaucier me?
 
@PatsyIssa hah, nice
@TylerH yes
 
@TylerH Not exactly, just want a nice area where I can ask questions peacefully without having to worry about reputations, karma, negative feedback, etc.
 
@ZachSaucier not sure I follow. I don't assume you're a master programmer or anything :-P I do know that you are pretty good with CSS
 
@tom_mai78101 oh, yeah you can do that here afaik
 
4:43 AM
Ok, have you guys ever used Jekyll for GitHub Pages?
 
@tom_mai78101 I use Octopress which is built on Jekyll
 
Awesome.
I was trying to get in touch with anyone in #jekyll on IRC, but there seems to be no signs of activity.
Do you happen to know how to get posts that are in subdirectories of the root folder to show up?
I'm guessing this is a hard question?
 
not off the top of my head
I would think if they're in the sources folder it would go through sub folders automatically, though I haven't tried
 
I tried on my blog, and it never worked.
Been researching on how to make it work, but it seems the answer is so hidden, I can't find it.
 
Morning
 
4:56 AM
The people on #jekyll are probably asleep.
Good midnight.
 
Hi, Good morning guys, can any one name a good IDE to develop html5, css and js files? i would like to have content assist while writing codes..
 
I use Sublime Text
 
Sublime Text.
Buy it.
Take $70 off your wallet.
 
I use the free version
 
Oh.
I forgot about that one.
 
5:04 AM
Well, the free version is more of a unlimited demo than a "free version"
 
Can you use plugins in the free version?
 
any opensource ide's
 
@tom_mai78101 ya
@Rembo google
 
5:38 AM
@Rembo Netbeans, Better than most of paid ide's
wgdfc.org got that link from js room and its most weird website i have ever seen (Not safe for eyes)
2
 
 
1 hour later…
7:04 AM
posted on November 01, 2014

New Cyanide and Happiness Comic.

 
 
2 hours later…
8:36 AM
can i have tr inside tr ? like
 
user652649
happy hallowiener!
 
user652649
@obiNullPoiиteяkenobi no
 
<tr>
<tr></tr>
<tr></tr>
</tr>
 
user652649
no you cant
 
user652649
but you can use tbody
 
8:39 AM
thanks i tried and it gave me result i wanted but Netbeans doesn't format it correctly with auto formate key :D
 
 
2 hours later…
user652649
10:32 AM
 
10:45 AM
I love this mario sisters :D
 
11:22 AM
o/
 
lol
I got a solid 4hours of sleep, spent the night working wile the gf slept went to bed when she woke up 4h laters wakes me up cuz she's bored :P
 
11:38 AM
haha nice.
 
would have killed her but she made me breakfast
 
Sadly I don't have that problem. My gf would sleep for 24 hours if possible.
 
ham and cheese FTW
 
@PatsyIssa it could be reverse ... i mean she could kill you while sleeping :D
 
11:39 AM
hahahahahha
 
I woke up from the neighbour's porn
At first I thought he had actually brought home a girl and thought "good for him" but then I head him adjust the volume of his speakers.
And then I thought "Good for her; she's at least getting paid for that, because by the sound of it, she ain't getting much else out of it"
 
lol
 
!!afk store
 
Does she have a command for that?
 
11:54 AM
!!breakfast
 
@mikedidthis That didn't make much sense. Use the !!/help command to learn more.
 
pfft
 
user652649
12:05 PM
@Gemtastic ahahahah
 
He seems like a sad person
 
user652649
12:20 PM
Time: 3.53 seconds, Memory: 12.50Mb
OK (114 tests, 228 assertions)
 
12:34 PM
hola
 
user652649
sup!
 
user652649
writing good tests is not easy at all
 
:)
It will be
Depending on your definition of good
 
user652649
it's easy to forget about specific test cases
 
user652649
also check this
 
12:38 PM
Yeah it does make you think about the code you wrote and what it does
 
user652649
function test__setRGBAHEX()
{
	$obj = $this->getEmptyObj();
	$modObj = $obj->setRGBAHEX("9738c8ae");
	$this->assertInstanceOf(_I_Color::class, $modObj);
	$this->assertSame("9738c8ae", $modObj->getRGBAHEX());
	$this->assertSame([151, 56, 200], $modObj->getRGB());
	$this->assertSame(174, $modObj->getAlpha());
}
 
user652649
now the thing is
 
@WesleyCrushed Don't put that in a single test case. If something goes wrong you want to know right away which test fails
 
user652649
$this->assertSame("9738c8ae", $modObj->getRGBAHEX());
is this alone sufficient ?
 
@WesleyCrushed Do you also have tests where you check what hapens when something fails?
I.e. invalid rgbahex / overflow etc?
 
user652649
12:40 PM
so it's also hard to spot useless tests
 
user652649
or redundant tests
 
user652649
yes
 
user652649
function test__adjustSaturation__upperBoundaryOverflow	()
{
    $obj = $this->getEmptyObj()->setHSL(50, 50, 50);
    $modObj = $obj->adjustSaturation(1000);
    $this->assertInstanceOf(_I_Color::class, $modObj);
    $this->assertSame(100, $modObj->getSaturation());
}
 
#MDFAIL
@WesleyCrushed If you also have those I think what you have is sufficient
 
user652649
yea they are, was saying the opposite :P useless tests and redundant ones
 
12:43 PM
Also note, that when you miss a test and something fails later it is just a matter of adding a new test case for whatever it was that became a bug
 
user652649
also i don't know if i should reference the implementation or the interface
 
user652649
because if i have to test the interface i may need to write more tests
 
You cannot test a interface because it lacks implementation
 
user652649
(i meant tests that can be used to test all classes implementing a specific interface)
 
Do you have an example of that?
 
user652649
12:45 PM
/**
* @return iColor
*/
function getEmptyObj ()
{
return new Color;
}

say i extend the test class and i override this method with return new ColorV2
 
user652649
which is a totally different class
 
user652649
but both implementing iColor
 
I would not do that
I would just create those instances in the case classes itself
 
user652649
not good?
 
In that specific case maybe not that bad
I hope you are not testing PHP classes / functions though :P
 
user652649
12:49 PM
nope, just making an example
 
user652649
1 message moved to Trash
 
user652649
abstract class DTAbstractTests
{
// tests here
abstract /* DatetimeInterface */ function getEmptyInstance();
}

class DateTimeTests extends DTAbstractTests { ... }
class DateTimeImmutableTests extends DTAbstractTests { ... }
 
user652649
btw "CRAP index" is bullshit and it should stfu xD
 
hehehehhehe
I really love that index :)
YOUR CODE IS CRAP!
I love getting those automated mails
:P
 
user652649
ahah, it also sends you mails?
 
user652649
12:56 PM
a reminder of how much you suck xD
 
user652649
:D
 
user652649
 
\o/
 
user652649
i want it
 
user652649
1:03 PM
yay, found a bug! the first :D
 
:)
 
user652649
elseif(strlen($value == 1))
 
user652649
elseif(strlen($value) == 1)
 
hehe
 
user652649
what's the correct way to test a method that is supposed to throw an exception using certain parameters?
 
1:06 PM
Either using the annotation or using $this->setExpectedException('TheException', 'Optional exception message');
 
user652649
try{ $obj->method(); } catch(\Exception $e) { $this->assert...... }
 
No need to catch in your tests
 
user652649
the annotation @throws ?
 
For you test case @expectedException TheException
 
user652649
perfect :P
 
user652649
1:09 PM
y u no ::class anyway?
 
where?
 
user652649
$this->setExpectedException(InvalidGeneratorException::class);
 
I like to see where stuff is coming from when looking at the code
 
user652649
$this->setExpectedException( \OpCacheGUI\Security\Generator\InvalidGeneratorException::class );
better than writing \\ :D
 
@WesleyCrushed Nice :D
 
user652649
1:14 PM
tea time
 
user652649
@PatsyIssa it's @PeeHaa's :(
 
ohhh
:p
 
@WesleyCrushed yeah that is something I picked up somewhere for some reason and to prevent confusing myself I stick to it now :P
 
1:31 PM
Last fucking freelance project I take
> Currently the creation of projects and uploading of some images is taking a lot of time, is it going to be better once the website is live?
I would love to reply with
> Go die in a ditch
2
 
user652649
 
user652649
@PatsyIssa are they trying to upload 50mb psds or something?
 
@WesleyCrushed E_TOO_MUCH_UNIT_TEST
 
user652649
 
!!SMTP or Arduino
 
1:45 PM
@obiNullPoiиteяkenobi SMTP
 
!!love or hate
 
@obiNullPoiиteяkenobi hate
 
user652649
2:10 PM
85.11% 40 / 47
 
user652649
i know i wrote crap tests, but at least they are automated
2
 
user652649
2:22 PM
in PHP, 3 hours ago, by Wesley Crushed
good morning. i have to pick a definitive design strategy about collections. the problem is basically that "array as objects" (those implementing traversable, arrayaccess) are not interchangeable with php native arrays. in short, how i decide if a method should be `myMethod(Array $array)` or `myMethod(iCollection $array)`?
should i always type-hint `iCollection` and use `Array` only in collections' constructors? `class Collection implements iCollection { function __construct(Array){} }` ty in advance :P
 
user652649
@PeeHaa ^
 
user652649
93.62% 44 / 47 :)
 
2:39 PM
@WesleyCrushed I always use plain array unless I need some logic
 
user652649
it's tough man, i can't wait for autoboxing or smt... any chance to get that in php7?
 
Probably not. I know there has been some talks about it in hte past and it didn't really go anywhere
 
user652649
3:08 PM
 
@rlemon lolwut
 
user652649
i wish i have the skillz to write a rfc. i mean i could, but i'd be just mock()ed
 
Meh
 
user652649
> 97.87% 46 / 47
 
user652649
SAMBA!
 
3:14 PM
nice
 
3:24 PM
posted on November 01, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Augie is about to go to press. If you still want to be part of the f

 
@Feeds Damn those comics are so not funny
 
3:58 PM
no they certainly are not
 
 
1 hour later…
5:25 PM
quite impressed about the points made in this Ted talk about P0rn collective-evolution.com/2014/08/11/…
 
user652649
5:49 PM
the setContrast() function failed @joshhunt
 
user652649
requires some math skills i don't have
 
@WesleyCrushed why
 
user652649
because i suck?
 
user652649
:D
 
user652649
i think logarithms are involved
 
user652649
5:52 PM
totally forgot them
 
user652649
i tried to reverse engineer photoshop one
 
user652649
basically works like this
 
user652649
let's take just the "red" of rgb
 
user652649
range goes from 0 to 255, no? what contrast does is to make darker the darkest colors (0-127) and lighter the lightest colors (128-255)
 
user652649
but is it linear?
 
user652649
5:55 PM
so say you have red amount of 127, applying contrast(100) it will be 0
 
user652649
instead if red amount is 128, applying contrast(100) it will be 255
 
log()
 
user652649
yes
 
user652649
i wish i know how to use it xD
 
user652649
 
user652649
6:06 PM
this works with negative values, but not positive
 
is that even an accurate gage for determining a color's contrast?
 
user652649
contrast is not an absolute value
 
right, that's why i am asking. are you looking for something more like this? nbdtech.com/Blog/archive/2008/04/27/…
 
hmm
 
user652649
nope, this function just doesn't exist
 
user652649
6:12 PM
i also fail to understand it
 
its for determining the perceived brightness of the color.
 
user652649
i'm talking of the "contrast" function, not the actual meaning of the term
 
user652649
contrast seems to imply that is color regulation compared to adjacent colors, but that's HDR
 
user652649
contrast can be applied on a single color
 
You know, it's hard to take an IT company serious when they don't even have a proper website.
I found a fairly large one that states on their website "We do IT stuff for companies"
 
6:20 PM
hey, the vaguer the better. thats marketing 101
 
Yeah, because you'll immediately know that they are the one for you!
They have a list of all their customers, but nothing about what they did for them
:')
For all we know, they could have just restarted the company router
 
@Gemtastic damn right, if only they knew, but it's better they don't, easier to stay away from them
 
user652649
127,0,0 contrast(-100%) 128,128,128
127,0,0 contrast(-95%) 128,121,121
127,0,0 contrast(+95%) 102,0,0
127,0,0 contrast(+100%) 0,0,0

128,0,0 contrast(-100%) 128,128,128
128,0,0 contrast(-95%) 128,121,121
128,0,0 contrast(+95%) 119,0,0
128,0,0 contrast(+100%) 255,0,0
 
@WesleyCrushed i don't get it: jsfiddle.net/w5eurs72/1
 
user652649
what's the best site for this question? math or graphics?
 
6:26 PM
it's 0 every time....
stackoverflow of course
i'm working on it
 
@CSᵠ Indeed
 
but i don't udnerstand how it's 0 every time
nvm, doh
 
user652649
you mean contrast 0% ?
 
newval is 0
every time
 
user652649
why? no, it works
 
user652649
6:33 PM
it works wrong but works :P
 
yup :)
just noticing that also
@WesleyCrushed bettr jsfiddle.net/w5eurs72/3
 
user652649
close :|
 
yup, i feel no cigar
 
user652649
i give up :(
 
i like it
playing
 
user652649
6:54 PM
 
user652649
but i can't get it to work
 
ok but
 
user652649
that's the same code i had in the beginning (which lemon suggested too)
 
dude that has loops wtf
 
user652649
yes it's the bitmap
 
user652649
6:56 PM
changes pixel by pixel i guess
 
btw shoudln't contrast be from 0 to 100 ?
and having the reference at 50% ?
ohh
then it makes sense
 
user652649
yes contrast is from -100% to 100%
 
00:00 - 19:0019:00 - 00:00

« first day (550 days earlier)      last day (3238 days later) »