« first day (2583 days earlier)      last day (2589 days later) » 
00:00 - 11:0011:00 - 23:00

11:30
@Wes did you have to install qt on windows ?
probably not allowed on pecl because of stupid license issue ...
yo paul
Wes
Wes
@JoeWatkins ?
i just installed the wkhtml thing
yo paul \o
k, must be static linked I guess
Wes
Wes
11:42
maybe i installed it already for something else?
seems unlikely, I hear it's huge, the kind of thing you remember ...
Wes
Wes
lol
Hey anyone can help me with PHP error???
<form name="submit_form" action="./uploads/submit.inc.php" method="POST">
<div class="wrapper">
<code name="code_editor" id="ace-editorid">#include "iostream"
int main(){
cout<<"Hello World\n";
return 0;
}</code>
</div>
Type the Problem ID: <input type="text" name="probId">
<input type="submit" name="b_code_submit" class="submit_query">
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/ace.js'></script>
Anonymous
Is that C code inside the HTML?
yes actually is a code editor for my online judge project
and that's a sample code already provided
Anonymous
11:56
So where is the PHP part?
Wes
Wes
@PeeHaa for example another thing that should be in oop by design is disabling concurrent access. for example denying the callback to access the "callee"
of course you can do that yourself, but it's so clumsy and stupid
my problem is that when user enters his own code and presses the submit button, then data is sent through post method
Anonymous
that is because you have a post method in your form: method="POST"
and when i'm trying to use tis code using $code = _POST["code_editor"] in another php filw, it's not displaying anything
i was previously using textarea tag and it worked
Anonymous
use $code = $_POST["b_code_submit"] instead
Anonymous
11:59
But you still won't get the code I'm afraid.
it didn't work
Anonymous
Oh, sorry I mean probId
Anonymous
put that inside your $_POST[""]
but _POST["probId"] consists of problem id and not the code
Anonymous
Yes, that's what I meant by not getting the code.
12:02
$code = $_POST["probId"] You mean this right??
Anonymous
yes, but you won't get the code
Anonymous
You need a bit of js to make that happen
I know why it doesn't work
it's saturday
Please don't joke . i'm in serious trouble
can you help me with the js @samayo
we don't js, there's a room for that ... we joke ...
Anonymous
12:05
No, I don't want to get involved with your trouble
agreed, it sounds serious ... like someone may die ...
jUST BUNCH OF PEOPLE WHO ARE JUST HERE TO WASTE OTHERS TIME, SAD TO SEE THAT
Anonymous
Don't yell. I'm deaf
- Donald Trump
and I'm precious
Wes
Wes
12:07
wow
21 hours ago, by Wes
Oct 25 at 14:18, by Wes
Oct 20 at 9:16, by Animesh Sahu
Bye all this isn't a php chat
Wes
Wes
noooooooooo
i was posting it
huehue
Wes
Wes
but it's ok, as long it gets infinitely deep
/me plots to WASTE @WES'S TIME
Wes
Wes
12:08
:B
Anonymous
@AashishKumar jokes aside, you need to fetch the contents of your div holding the code and insert into the value <input type="text" name="probId"> good luck
the id and code look separate to me, try looking at ace editor docs for how it works ... rather than screaming at strangers in a php chat room ...
not that I didn't enjoy your visit ... I love it when strangers scream at me ...
Wes
Wes
12:28
@JOEWATKINS JOEEEEEEEEEEEEEEEEEEE I'M SCREEEEEEEAMING
Anonymous
I see 11 is still struggling C:
Anonymous
!!wotd
fortitudinous marked by bravery or courage; having or showing fortitude.
maybe you are ...
Anonymous
I'm always struggling
Wes
Wes
12:33
OK (10 tests, 1468 assertions)
i love my automated sheet
i wish i had a clever way to test for everything :B
ProTip: make other people do it
Wes
Wes
lol
how is php test fest going? :B
mostly good, have to keep repeating myself, which I hate ...
Anonymous
Why do you have to keep repeating yourself?
Wes
Wes
lol
12:37
because people keep submitting pointless tests, pointless in exactly the same way ....
Wes
Wes
/me submits tests for zend parse parameters
/me hovers over close button ... and cackles to himself ... imagining it says crucify
Wes
Wes
:B
user image
2
mwah ha ha haha ...
Anonymous
a whole new level..
13:27
@JoeWatkins that some deus vult level improvement
@Wes you tests are too .. emm .. densely packed
looks like you have made test_every_possible_input_for_methodA()
Wes
Wes
rather than testing property by property, i have a phpunit "equal" constraint that does all the checks in one go
even if not necessary... but at least it's nice to read
you might have heard it from me already few times: but you are doing it wrong
Wes
Wes
i am not.
each test should describe a specific aspect of the behavior, for example
Wes
Wes
you probably spend ages testing. i don't want to do that, but at the same time i want fairly usable code
13:32
/**
 * @test
 */
public function inserting_invalid_email_causes_a_domain_exception() { ...
Anonymous
^
Wes
Wes
no shit
@Wes I actually spend a very small amount of time on testing
I am disappoint... I expected a showdown.
for example this week have basically spent on making a UI for my administration API
Wes
Wes
13:34
@JayIsTooCommon shut up you, you know nothing... and even less than me
Anonymous
Aww bless, he's feeling threatened
Wes
Wes
i am always feeling threatened. you are a bunch of assholes
just admit it.
yeah, they are...
my intentions are noble
Anonymous
i.e. He's trying to stop you from being shit @Wes
13:37
@tereško nice of you :-)
Wes
Wes
i bought another keyboard today. 89€
@Wes is it wireless ?
Wes
Wes
and i already spilled water on it. but this time i was prepared. i wrapped it in
surprisingly it's not impeding my use at all
@Wes gaming ones or normal ones?
Wes
Wes
it's a normal ish mechanical keyboard
13:45
ooh mechanical... mechanicals are nice
I got mine a few days ago, and I'm in awe of it
Wes
Wes
the best one i had is still the wasdkeyboard
took 2 months for the shipment from usa though...
Eeeew german keyboard
Burn it with fire
Wes
Wes
it has us/italian characters on it though
It's a german keyboard
13:49
but still, burn it with fire
Wes
Wes
the layout i don't know how it's called
but that's the italian layout too
wat
weird
Wes
Wes
i am unable to use the keyboard if the enter key doesn't have that specific shape
like the long enter key sucks
@Wes my one has the same shape as well :B
I don't care about what that looks like
What I hate are those keyboards with weird placements of the backspace key instead
Wes
Wes
13:50
this sux
@PeeHaa that's the oldest keyboard layout ever for me
this is new shit i could never get used to
help me please i am trying to get all the contents from each class 'title' on rbx.trade/i/mbstf
i have tried this code but it fails
<?php
$doc = new DOMDocument;

// We don't want to bother with white spaces
$doc->preserveWhiteSpace = false;

// Most HTML Developers are chimps and produce invalid markup...
$doc->strictErrorChecking = false;
$doc->recover = true;

$doc->loadHTMLFile('http://rbx.trade/i/mbstf');

$xpath = new DOMXPath($doc);

$query = "//div[@class='title']";

$entries = $xpath->query($query);
var_dump($entries->item(0)->textContent);

?>
div?
my mistake sorry it should be a
but still says 'null'
Trying to get property 'textContent' of non-object
Can you make a MCVE?
a question?
i have 3v4l here 3v4l.org/TGRtb
i mean, do you want me to ask a question on the site
No
I want to look at something small that shows the issue in a working example
I.e. something I can paste into 3v4l
14
A: Get DIV content from external Website

worengaThis may be a little overkill, but you'll get the gist. <?php $doc = new DOMDocument; // We don't want to bother with white spaces $doc->preserveWhiteSpace = false; // Most HTML Developers are chimps and produce invalid markup... $doc->strictErrorChecking = false; $doc->recover = true; $doc->...

Wes
Wes
!!should i watch vikings or the last kingdom
You should watch vikings.
14:10
@Wes you should watch Kimi no Na Wa
Wes
Wes
sure rofl
with a name like that
for real tho, you told me you'd watch it :<
!!? kimi no na wa
Search for "kimi no na wa -site:w3schools.com" (https://www.google.com/search?q=kimi+no+na+wa+-site%3Aw3schools.com&lr=lang_en)
• Kimi no Na wa. (Your Name.) - MyAnimeList.net - Looking for information on the anime Kimi no Na wa. (Your Name.)? Find out more with MyAnimeList, t… (https://myanimelist.net/anime/32281/Kimi_no_Na_wa)
• Your Name - Wikipedia - Your Name is a 2016 Japanese animated drama film written and directed by Makoto Shinkai … Hepburn,… (https://en.wikipedia.org/wiki/Your_Name)
• Kimi no na wa. (2016) - IMDb - Animation · Two strangers find themselves linked in a bizarre way
Anonymous
these whole, I'll suggest an anime so you can give me abuse conversations are getting repetitive
14:17
@Wes vikings is nice
Wes
Wes
protagonists look like oiled douches. i tried to watch a couple of episodes long ago... slow as hell
It's cool
Anonymous
Have you finished stranger things @Wes or still watching?
Wes
Wes
finished it
and disappointed that it was just 9 episodes
Anonymous
I'm hoping to finish it tonight. Not sure it's as good as the 1st season up to now
Wes
Wes
14:21
netflix should have fewer series but with the good ones with more episodes
I still need to watch stranger things too
Currently doing narcos
Anonymous
eh, I got fed up with reading subtitles
I grew up with subtitles
Anonymous
pfft foreigner
Wes
Wes
i still need english subtitles
Anonymous
14:22
I don't know how anyone can read subtitles while watching a film, I couldn't concentrate
Everything here is subbed
Wes
Wes
in particular for the walking dead. it's the only series whose dialogues i don't understand at all
@JayIsTooCommon welcome to my life
Wes
Wes
coral
Beats the alternative of overdubbing
Anonymous
14:23
I'm privileged in that sense I guess
@Wes Wat. really?
english dubs of animes are horrible. like... really bad, except for some
Wes
Wes
especially Rick, Daryl
absolutely impossible to understand
Anonymous
Also, even though Spacey is a perv now, I highly suggest House of Cards.
yep
So bad it will probably stop or suck now :(
Anonymous
14:24
Ikr.. I could put up with him being on my screen for just a few more seasons..
Wes
Wes
house of cards s1 was great. then happened that thing to the lady and it turned into shit
@Wes That's nothing. Try watching the wire
It took me a good few episodes to get into the slang :P
Wes
Wes
same goes for homeland. damn homeland was so good
i blame game of thrones
It waaaaas
Wes
Wes
now all the shows think they can kill major characters and get away with it
Anonymous
14:26
Homeland was brilliant apart from the crying bitch, I could do without her
Wes
Wes
someone still watching fargo? i had big hopes
I kinda dropped out I think at the second season
Not sure anymore
Wes
Wes
i think a tv series is not the right format for that style
the movie worked beautifully because it ends after a couple of hours
a tv series all like that gets boring as hell easily
i don't think it's bad though. i just lost interest and forgot watching it. now i am 1 and a half season behind i think?
now i'd like to watch the new season of 12 monkeys... but i forgot the previous seasons -_--
it is quite intricate
also the man in the high castle has been very good so far
14:51
@Wes Oh, that's mine. :P
@Shafizadeh there are these things known as "mechanical keyboards", which use separate switches for each key, instead of membrane-based keyboards
Hi all
I am designing a web page
In that there I have to give option to multiselect
I am using this jquery for this
http://demos.codexworld.com/multi-select-dropdown-list-with-checkbox-jquery/
It is working fine in chrome
but in firefox it is showing checkbox of Red-Brown color
If any1 faced this issue, please help
cheapest membrane keyboard can be bought for something like $5, cheapest mechanical ones start $50
@tereško َAh I see
I am looking for some unit testing resources that I can recommend at the end of my book. Can you recommend anything? Been a while since I learned about it
16:00
@nawaabsaab And you thought "Hmm, better ask in the PHP room about this jQuery problem" ?
hi all
Can I add a php console in my browser so I can check function returns etc?
I'm trying to convert a static site into a wordpress theme and its proving quite difficult
@Daruchini there are several xdebug addons
ah cool ill check it out
thanks
@PeeHaa What (if any) pgsql gui do you use?
I just use pgadmin, but it is not very good at all
16:15
is it crazy to have a different license for source and binaries ?
What if people built the binaries themselves? What license will it fall under?
Any of you guys worked with Wordpress before? I'm trying to enqueue bootstrap css files using the enqueue function but when I observe the console, i'm getting an ERR:aborted. I'm guessing it's found the file but somehow failed loading, can someone tell me what that error means please
wp_enqueue_script( 'tt-bootstrap-css', get_template_directory_uri() .'/assets/bootstrap/css/bootstrap_min.css');
what I really like is the built in support for SSH tunnels
@Daruchini See you error log
And
!!debugging
16:17
@PeeHaa I'm not sure, I don't have to care do I ? it's their responsibility to ensure they are using everything in accordance with it's license ...
@JoeWatkins You can do whatever the fuck you want, but if licensing is muddy people should and tend to stay away from it
May I ask why you want two licenses?
I don't understand why it's muddy tbh ... apparently I can't release wkhtml ext on pecl because PHP v3.01 and LGPLv3 are not compatible ...
@JoeWatkins Well because I wouldn't know what license my compiled binaries falls under
they would be lgplv3, that's how it works ...
What is php? Apacheish?
16:20
but they can only impose the license at the point of linking, before then they can't decide what license we use for source code ...
@JoeWatkins k chat.stackoverflow.com/transcript/message/39987320#39987320 so you know what license it is :-)
@JoeWatkins right
Welcome to gpl cancer
That stuff just makes everything so fucking complicated
if I built the software and distributed a binary, I would have to distribute it with LGPLv3 license ... technically if you built it, the same must be true, but I don't know what that means ...
Not if you built it
Only if you build and distribute iirc
my head hurts
Yep it sucks
Any way you can just have your code depend on an external lib instead?
16:25
@JoeWatkins I'm not sure whether you can even have a different license for source / binary.
Licensing stuff is just madly complex. And gpl is scary
Hi,what is the most scary thing of php?
The end users
@SajjadurRahmanSagor PHP itself
ha ha @SaitamaSama thats a good one
Any more scary than php itself?
16:42
This is the scariest thing I can thing of about PHP 3v4l.org/SOurd
@tereško Cheers
Anonymous
@DaveRandom omg, don’t do that to me
18:09
night, all o/
 
1 hour later…
 
1 hour later…
Can't sleep 😔
21:08
@Fabor are you still interested in an early copy of the book? I am getting really close to a finished draft and I could really use another set of eyes on it :)
 
1 hour later…
Wes
Wes
22:14
@Patrick me me me me me
posted on November 11, 2017

New Cyanide and Happiness Comic

00:00 - 11:0011:00 - 23:00

« first day (2583 days earlier)      last day (2589 days later) »