« first day (1405 days earlier)      last day (3540 days later) » 

9:01 AM
I'm finishing up my php-uv stuff tonight, hopefully I'll have some time afterwards to look at this failing test case inferno.
 
Jack, is this a PHP lib, or a PHP extension ?
 
@PaulDragoonis It's an extension.
That's my fork of it.
I think the author runs on Windows btw, because there are some things in config.w32 that are missing from .m4 :)
 
@Ja͢ck - I'm using rabbitmq PHP lib, over AMQP - it works well. I've not investigated trying libuv implementations yes.
 
@YourAdrenalineFix Yeh no worries, ping me when you get this. I'll be in and out over the next couple of days, got a lot on at work
 
yes = yet
 
9:03 AM
@PaulDragoonis By all means, do give it a whirl =D
 
I wish I could, but too much money invested in our AMQP implementation.
 
@PaulDragoonis API is fairly stable, implementation is not as stable
 
@PaulDragoonis well, perhaps in your personal time, assuming you have one :D
@DaveRandom the php-uv is currently based on 0.10
 
that's a tiny number
 
hehe
gotta go before everybody clogs the road with their heaps o' metal.
bbiab
 
9:06 AM
lata @Jack
 
@Ja͢ck - no such thing :D
House, kids, company, open source, <insert everything else here> :D
 
Did someone fix that datetime test that was breaking Travis on 5.6 yet?
 
which test is it ?
67118 ?
 
Oh it's fixed
Derick commited a test that didn't set date.timezone, and assumed it was going to be August forever :-S
 
I put "mvc" in quotes on my CV. Is this good or bad?
 
9:13 AM
@Jimbo Probably bad
 
@DaveRandom Why? HR won't get it, technical lead whose interviewing me will
 
bad. make your cv proper for cto-s and all other managerie
 
@Jimbo Might. Might not though, and then will (correctly) think you are a bell end
 
@Jimbo - don't compensate for non-technical people. The non-technical people will always pass your CV to a technical person to approve/reject.
 
9:14 AM
:-P
 
@PaulDragoonis So from that, the quotes are good, right?
 
No. Because "MVC" is not a made up term, it's an industry standard design pattern.
Would you put "Design Patterns" in quotes, or "Software Development" ?
 
I think the point was more that web MVC != MVC (?)
 
@PaulDragoonis No, but for a software position using PHP, and any sort of framework like CI, Cake, Symfony, Zend etc... MVC would be in quotes there
They sometimes ask for "Experience with mvc frameworks like Symfony" at which point my head explodes
 
@Jimbo honestly? that's just being pedantic.
 
9:16 AM
@FlorianMargaine Or... it's showing I know what I'm talking about?
Just aiming to be different, tbh :-)
 
@Jimbo If you want a job where everyone who works there is like the regulars in here, you will be unemployed forever...
 
@Jimbo - A company has money for software to be build using frameworks using top tools. Just list the frameworks you've experience with. If they want symfony2 developers and you say on your CV that you're good with Symfony, it's a match.
 
@DaveRandom This is a fair point, I'd love to work with you guys haha, maybe that's what I'm comparing to...
 
We still use ZF1 ffs. Almost everyone here knows better, but technical debt is technical debt
 
@Jimbo true, especially Symblowme 2 ...and not all technical ppl are technical as you see it :)
 
9:18 AM
@Jimbo - my general advice to you is: Make your CV as easy to read as possible, well presented. Imagine the head technical guy of the company is looking at it, with this goal in mind your CV will have a good impact on anyone in the company who reviews it.
Good luck with the job hunting :)
 
@PaulDragoonis I've actually got the job, dev lead just asked for my cv to give to HR. I haven't updated it in a while
But thanks for the advice, much appreciated
 
Welcome
 
Actually Fabian made it quite clear that SF2.x is not an "MVC framework"
 
@Jimbo - to solve your dilema, just say "PHP Frameworks: Symfony2, Zend2 ..etc
In listing design patterns you know, list: Factory, MVC, Singleton ..etc
 
@tereško yes, Fabian is a smart marketing guy
he has cetrificates now
 
9:29 AM
@PaulDragoonis I've just put "good knowledge of design patterns" tbh, I don't want to put singleton on my resume :P
 
MVC is not a design pattern
 
according to wiki it is: Model–view–controller (MVC) is a software architectural pattern
It's referenced as a design pattern in many high profile books.
Development Using the Model/View/Controller Design Pattern". IEEE Enterprise Distributed Object Computing Conference
Since this is not an exam, I think it's acceptable to put MVC under design patterns :-)
 
Are you really throwing the "it's in a book, therefore it must be true" at me?
 
/me throws book instead
 
.oO( as if it matters whether its a principle, pattern, concept or decision )
 
9:39 AM
YAML should be a principle.
 
@Gordon - I agree with you that it doesn't matter :-)
 
@Jimbo Get out.
 
Words are the means for the meaning. If you want to be sure that there is no confusion, you should use words in the correct context
 
user1994804
Hi @DaveRandom , Good morning
 
@YourAdrenalineFix yo
 
9:45 AM
@DaveRandom burn the place and backups. Your colleagues will thank you :P
 
user1994804
Ive been perusing the shipping code we've been discussing and have ran it a couple times (albeit with problems surrounding validation)
 
user1994804
But...
 
@YourAdrenalineFix against the testing wsdl, presumably?
 
user1994804
Why am I seeing: xmlns:ns1="http://fedex.com/ws/rate/v14"
 
user1994804
104 times
 
user1994804
9:46 AM
Yes, Against the wsdkl
 
Lol
 
How can I set enctype="multipart/form-data" for file_get_contents (http post request over secure connection)?
 
@AwalGarg I would seriously consider using cURL for that.
 
@Ja͢ck why?
 
File uploads aren't something that php streams are very good at.
 
9:48 AM
@YourAdrenalineFix You mean in the XML being exchanged?
 
user1994804
Yes
 
@Ja͢ck but curl is slow :(
 
Say what now?
 
wut
 
How did you determine that? @AwalGarg
 
9:49 AM
@YourAdrenalineFix Ahh. Well that would probably be because libxml does some weird things
 
it's not an upload, just post, stream context stuff can do that I think ... but there's nothing wrong with curl ...
 
@Ja͢ck someone in this room told me that.
 
As long as it's valid (an repeated ns decls are valid) it shouldn't matter
 
it is the http client in c-land ...
 
user1994804
Ahh... Nothing I should concern myself with?
 
9:49 AM
@AwalGarg WE WANT NAMES
 
@JoeWatkins nothing wrong with curl (besides the horrific API) :P
 
oh yeah it's disgusting ... nothing wrong with perf of the thing tho
 
@YourAdrenalineFix Ain't broke, don't fix it
 
@JoeWatkins yes, I am using stream_context_create to create the final data to POST via file_get_contents.
 
=O
 
9:50 AM
@Ja͢ck ok, wait. sorry I can't remember.
 
user1994804
Nice. Thanks so Much!! @DaveRandom You're Awesome!!
 
user1994804
Outtahere...
 
@AwalGarg the PHP cURL extension is slow at multiplexing. There is nothing inherently slow about libcurl, and you are not multiplexing.
@YourAdrenalineFix ssshh, they'll all want some! :-P
 
@Ja͢ck Peehaa
 
huh?
 
9:53 AM
@AwalGarg You sure he was sober?
 
Is there some other peehaa in here?
 
Aug 18 at 8:25, by PeeHaa
It should just be called the_better_curl_and does_other_shit_too()
Aug 18 at 8:25, by Awal Garg
it would be faster and better than curl, right?
Aug 18 at 8:26, by PeeHaa
If good is sane: yeah much better
 
And how did you translate my statement into:
6 mins ago, by Awal Garg
@Ja͢ck but curl is slow :(
 
@Ja͢ck umm. no, but if you say, I will use curl then.
 
> I thought threading was becoming obsolete with the advent of concurrent programming.
 
9:55 AM
@PeeHaa umm, sorry. Something went wrong.
 
@tereško if words were the means for meaning, there would be no confusion. meaning is socially constructed thing and it can be derived in more ways than just with words.
 
He even said:
Aug 18 at 8:25, by PeeHaa
@AwalGarg The functions used are never going to be the bottleneck
@JoeWatkins wut
 
@DaveRandom I didn't understood that statement. What does it mean?
 
@AwalGarg "Bottleneck" refers to the part that limits the flow rate (in a bottle, the thing that limits how fast fluid can flow out of it is the neck, the narrowest part). In programming terms that usually means "the slowest part of the application, which determines how fast the whole application runs"
 
9:58 AM
> Yes and that's fine as to not block I/O is the only reason there is any need for multithreading.
 
It's an analogy which is very common in English
 
@DaveRandom ahh that makes sense. Thanks :)
 
I actually don't have time to respond ... and there's really very little point in talking if nobody listening understands ...
 
@DaveRandom well, I am not native. :( sorry for that misunderstanding.
 
Starts tune: I believe in the power of american natives
:)
 
9:59 AM
sorry @PeeHaa
 
hehe no need to apologize :)
 
Kneel!
;-)
 
lol
 
umm, but I am still interested to know how can we set the enctype header with file_get_contents, just for curiosity.
 
10:02 AM
@AwalGarg Yeh now I think about it, if you've never heard it it's not obvious :-)
 
@AwalGarg it's a fecking pain
 
@JoeWatkins It's reddit. Responding is a bad idea anyway.
 
err, so its not possible?
 
Boundaries everywhere.
@AwalGarg If something being a pain means impossible, sure.
 
@Ja͢ck no I inferred that from @DaveRandom's message.
 
10:04 AM
How did you infer that?
 
@Ja͢ck well I thought we just need to set a header... like we set other headers.
 
Yeah, you need to set a header ... and then you have to build the request body.
 
@Ja͢ck not actually literally that, I meant, kinda that.
 
Making tests pass like a boss! :D
 
10:06 AM
@Ja͢ck but I don't know the exact header name. I tried, 'enctype' => 'multipart/form-data' but that didn't work. but I guess I can check a real request with that setting and see what the header name and values are passed, lemme try that.
 
9 views, 8 downvotes, someone did`t downvote... — gbestard 9 secs ago
2
:P
 
If you're that curious about it, go right ahead
 
> Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
it has something to do with this... right?
 
Hey guys I'm trying replies in my chat just like @Tomas Any idea how to do that? o.O
I want to have it colored
 
10:13 AM
@AwalGarg Wait, enctype? That's not an HTTP header, that's and XML decl...
 
@DaveRandom yes absolutely, and that is why I am confused.
 
@AwalGarg So what are you trying to do? Set the HTTP header or set the encoding of an XML document?
 
@DaveRandom the latter. and then send it via post, so... something other I guess.
 
@DaveRandom That's encoding
 
10:15 AM
@DaveRandom Get what out?
 
Oh <form>
 
@tereško "farmeworks" ?
 
Thankfully I never deal with HTML any more so I have forgotten a bunch of stuff about it
 
lol
 
So @AwalGarg do you mean an XML document or a form on a web page?
In fact, what's you desired input/output?
 
10:16 AM
I think he wants to simulate a file upload.
he/she, can't tell.
 
@Ja͢ck yea that. sending an image via post to some other url
@Ja͢ck I'm trying my best :(
 
Oh right. Well cURL just does that by itself, go re-read the docs for CURLOPT_POSTFIELDS ;-)
 
CURLOPT_POSTFIELDS does all the things.
 
@DaveRandom yes I just saw that work, but for some reason, that file_get_contents function is attracting me very much.
 
Also there's the stupid curlfile thing, which I really am not a fan of
 
10:18 AM
Should one even attempt to detect whether -lrt is possible?
@DaveRandom I believe that's a new relatively new thing.
In case you want to send a post field whose value starts with @.
Read that inside out, it doesn't make much sense the way I argued that lol
 
@AwalGarg With file_get_contents() you have to do a lot of work yourself, you have to understand how the multipart/form-data MIME type works and build the request body yourself. While this can be more flexible, for your specific purposes cURL is a much better option
Or a proper HTTP client with a sane API, but even that might be overkill here
 
@DaveRandom oh I love flexibility...!!
 
Then use Artax
But seriously, that's probably huge overkill here
Or use pecl_http v2, but that requires the ability to install a PECL extension
@Ja͢ck Yes it is. It's not bad, it's just pissing on a bonfire. It takes a tiny part of a terrible API and semi-fixes it, instead of fixing the whole bad API it ends up being very leaky as it has to work with the terrible API.
 
@DaveRandom I know, but what to do about it? Throw it away, write an OO wrapper for it?
My biggest PR so far :D // cc: @rdlowrey
 
10:31 AM
@Ja͢ck Isn't that what guzzle tried to do?
 
IIRC, multipart is multi - part by a boundary, right?
and the browser just does the boundary defining thing without letting us bother.
 
@rdlowrey ping
 
@PeeHaa Yes, probably :)
 
but in this case, I have to do the boundary thing
well, I guess you guys were right that this is a pain, huh!
I am still not leaving it here though.
 
10:37 AM
@Ja͢ck @DaveRandom isn't base64 somewhat multipart encoded?
 
base64 and multipart are completely unrelated.
or rather, not necessarily related.
 
oh... my bad. dunno where I read that.
 
@AwalGarg I have nothing against you rolling your own things to understand how they work (in fact I encourage it) but if you need to get a job done here then I highly recommend you just use an existing solution, get the job done, then you can be free to go read the specs and get it done at your own pace.
Because, trust me, understanding the inner workings of HTTP and MIME is not something you can do in an hour.
 
@DaveRandom well, I already did it with curl after you told me to :D So now I am free beating my head :P
 
10:47 AM
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 267911065 bytes)
Cool, never had it :P
 
@TomášAresakMalčánek 2.5 GB?? wtf are you doing?
 
Getting 5 rows from database
:D
 
storing files in db?
 
10:49 AM
@TomášAresakMalčánek Ummm...
Infinite recursion/loop?
 
@TomášAresakMalčánek Code?
 
Actually I would expect an infinite recursion to overflow the stack before that
 
$query7 = "SELECT * FROM symbengine_cache WHERE symb_name='dt_nick'";
$result7 = mysqli_query($sql, $query7) or die(mysqli_error($sql));
$rows7 = mysqli_num_rows($result7);
$msg2 = "<span class='r'>@$nick</span> There is currently $rows7 users online in this chat.<br>[b]Online:[/b]<br>";
$num7 = 0;
while($num7 < $rows7) {
$msg2 .= $symb->mysqli_result($result7, $num7, "symb_name") or die(mysqli_error($sql));
$msg2 .= "<br>";
$num++;
}
And DB
|11|Symb194symbHash2281394#ashFirefox|dt_nick|Aresak|2014821153841
|6|Symb124symbHash18015858#ashChrome|dt_nick|indsicmd|2014821135152
|7|Symb124symbHash18015858#ashInternet Explorer|dt_nick|PVTandrew|2014821135628
|8|Symb65symbHash175227168#ashChrome|dt_nick|Bumbler|2014821150129
|10|Symb73symbHash177193150#ashFirefox|dt_nick|Logik|2014821152818
 
@TomášAresakMalčánek $num++
 
10:53 AM
:)
Thx
 
Also XSS and sqli
 
No SQLi in that specific fragment, but definitely XSS
 
ow yeah. misread
 
Also ... $query7 is like ... not a very descriptive name.
Okay, let's look at them failing php-src test cases =/
 
@Ja͢ck Travis may be broken
Build has not started after ~45 mins
 
11:08 AM
@Jack I know but I wanted to do that fast :P
 
@DaveRandom They fail locally, so that should be okay for now :)
@DaveRandom Hey, did I ever tell you about this substr_compare() bug that was introduced by me while implementing an FR? :)
 
Hmm, my system doesn't report any failed test cases for the core.
 
:D
3 weeks cron was calling private function :))))
 
Oh poop! I was testing 5.6
 
11:16 AM
> Unsupported OAuth version or server
well played movies.se.com
> No OpenID identifier was provided.
booooo
 
Hurray
Unsupported OAuth or I'm an idiot lol
Zend/zend_vm_execute.h:1560:14: warning: variable 'fbc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
                } else if (UNEXPECTED((func = zend_hash_find(EG(function_table), Z_STR_P(function_name))) == NULL)) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hmmmmmm
doesn't that look dodgy.
 
lol
Somebody beat me to it :P
25
Q: Equivalent of 555 for IP addresses

Andrew GrimmI came across a tweet complaining about 24 using 2.718.281.828 as an IP address, which obviously wouldn't work. Others responded that using a non-functional IP address is like using 555 for phone numbers. Is there an equivalent of phone number's 555 (or more specifically, 555-0100 through 555-01...

 
duh
 
Ow was that already linked yesterday?
:P
 
> 203.0.113.11 is TV safe.
farney
 
11:22 AM
@Ja͢ck ?
 
@DaveRandom Yeah, I believe it's 5.5.11 that has a huge gaping bug in substr_compare() =(
 
Hello everyone
search book by name
search book by author
search book by category
search book by location

function viewsearchresult(){
$this->loadModel('Book');
$asd = $this->params['url']['search'];

if ($books=$this->Book->find('all', array('recursive' => -1, 'fields' => array(),
'conditions' => array(
'OR' => array(
array(
'Book.book title LIKE' => "%$asd%",
),
array(
'Book.name of author LIKE' => "%$asd%",
),
array(
'Book.book edition LIKE' => "%$asd%",
)
)
)
)))
{
$this->set('books', $books);

}
}
 
@akhilesh use pastebin please
 
short answer: no
 
11:26 AM
ok
 
@DaveRandom Hmm, 3v4l having some issues?
 
long answer: no
 
i am using this code to get match record from my books table and i am working on cakephp
but i m getting this error SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Book.book title' in 'where clause'
 
your column name has a space in it?
 
yes
 
11:29 AM
wow
 
:D
 
rename the column to something without a space.
or, wrap the column name in back ticks.
 
Already been there. OP doesn't listen
 
that's the key directly above the TAB.
 
@jack but it is working perfectly with pastebin.com/18rjrLXs
 
11:31 AM
@Ja͢ck s/or, wrap the column name in back ticks./
 
@akhilesh yes, because that column has no space in it.
 
@PeeHaa sed noob
 
For the C gurus. I'm wondering if someone could explain the output of this eval.in/181596. I know it's about some floating point magic but can't really seem to get the logic behind it. Pointing to an article is also fine
 
@Ja͢ck is their any other option to do it becauase i have worked a lot on this project so if i will change the column name then it will create a lot of problem for me
 
11:33 AM
@Fabien long answer: f*ck no
 
lol
 
@akhilesh 'wrap the column name in backticks'
You'd have done well to read :)
 
@akhilesh you should never have used a space in the first place. I'm wondering where on earth did you learn this?
 
@HamZa that might also be your ini_get('precision').
 
@Ja͢ck ini_get? php? I'm talking about C
 
11:35 AM
 
@DaveRandom What the heck is that code for?
Anyway, here's my mark on the 5.5.11 release =(
 
@Ja͢ck lol
 
@HamZa as you know that we need to give same name to the column that we have given the name for input field
 
@Ja͢ck Proving that 3v4l both works and knows what it's talking about
:-P
 
@HamZa oh heehee, mixing up c and php there
 
11:37 AM
@HamZa that's why i have given spaces in column name
 
5.0 was such a borked release
It does so many weird things
 
Guys can somebody help me with doing something like BB code?
I was using strtr for some easy BBs like `[b]` etc. But how to do some complex BBs like [img=http://example.com/pic.png]Me on vacations[/img]?
 
php already has a bb parser IIRC
 
@HamZa well, short answer: ieee 754
 
@akhilesh don't for the next time. It's horrible. As a matter of fact, I didn't even know that mysql supported spaces in column names. TIL
 
11:39 AM
@Ja͢ck Or in other words, typeof magic == "black"
 
@Ja͢ck ieee 754 == floating point magic
 
Even 32 more bits doesn't help
 
@Ja͢ck but thanks, I guess I can start reading the wiki page and maybe I could derive the "bug"
 
@HamZa It doesn't. Each time you create a column name with spaces in MySQL, the time continuum splits and you will be using something other than MySQL from that point onwards.
 
11:42 AM
ahahaha
 
M$ Keyboard? Or is it Logitech .. can't tell.
 
I have a remarkably similar looking one on my desk (minus the key butchering)
And it's a Dell
 
@Ja͢ck E_WOW
@Ja͢ck read the letters lol
left to right, top to bottom
 
@DaveRandom whoops =(
 
@DaveRandom haha I thought that was meant for @Ja͢ck so I didn't click on it. My bad...
 
@HamZa My keyboard has empty keycaps, so I don't bother reading letters on a keyboard anymore.
 
@DaveRandom that could actually be a good joke if I did that at work :D
 
11:47 AM
I like how that keyboard has multiple B's, E's, L's and S's heh
 
good ol' r/php. Downvoting @tereško for providing solid advice :P
 
reddit shall henceforth be referred to as regreddit.
 
=(
 
Sometimes you must feel like this
 
11:54 AM
@PeeHaa am I only one who finds this somewhat disturbing, when teacher is preparing to teach something that he/she has no clue about
 
@tereško Disturbed yes. Surprised not so much
 
.. that too
 
@PeeHaa YAML baby!
 
lol STFU :D
 
hoohoohoo
 

« first day (1405 days earlier)      last day (3540 days later) »