« first day (2020 days earlier)      last day (2944 days later) » 

9:01 AM
should i spoil it?
 
Anonymous
@Gordon What is a good German store to buy laptops cheaper?
 
@samayo notebooksbilliger
 
Anonymous
thanks
 
Laptops & Elektronik kaufst Du bei notebooksbilliger.de
 
@Saitama it was flashy and boring
 
9:03 AM
cough, cough
@tereško well, I admit, it was not awesome but, it was quite nice tho TBH
 
Anonymous
meh, Dell XPS 13 is only $50 cheaper in German than in Switzerland.
 
moin
 
nin'
 
@Danack 1, and I failed to comprehend it, however I am going to have another go after lunch
 
Can anyone recommend a serialization format that a) supports binary b) is fast c) available not just in PHP d) supports dynamic structures (array, map<float, int, string, *>, float, int, string) (that kicks out Protobuf) /cc @bwoebi
 
9:11 AM
Hello everyone, would this be a good place to ask a PHP related question as ironic as it sounds.
 
Monin
 
Morgen fapore
 
nin;
 
moin
 
@Dannyw24 I would think so
 
9:12 AM
!!google fapore
 
Ekn
oh @tereško is alive
:p
 
@kelunik have you checked out bson?
 
Ekn
whoa this is way too big
 
E_TOO_MANY_TAGS
@MadaraUchiha I pointed out explicitly that I'm aware of that specific issue, yet every single comment is about that issue. Its like asking for an ice cream cone and everybody starts telling you about diabetes. I know that stack users have massive issues with staying on topic when they don't understand the purpose or possible outcome of the question but sometimes explaining every facet of the situation is simply not possible and often not necessary. — user81993 7 hours ago
huh
 
Ekn
9:18 AM
pretty accurate tagging though
 
hi
 
Just something that grinds me - ask for help then be a dick about the answers. I always found humility to be the way forward when asking for help.
 
@PaulCrovella Now I have. Seems like it requires the mongo extension in PHP currently, didn't find any userland implementations on packagist.
 
Hi, I'm about to develop a small crawler + search engine as my semester project and wondering, if there's a soution to read the HTML content without regex. Here's some example code I've written:
`$url=$_POST[url];
$html =@file_get_contents("$url");
preg_match("|<title>(.*)</title>|Ui", $html, $title); `
 
Anonymous
I don't think there is any other solution to parse HTML without regex.
 
Anonymous
9:24 AM
wile guess.
 
@TechTreeDev First, I wouldn't use file_get_contents. Then there's DOMDocument.
!!docs DOMDocument
 
Anonymous
@Jimbo you forgot
 
!!version
 
!!docs DOMDocument
 
Anonymous
!!docs DOM
 
[ Document Object Model ] Document Object Model book
 
Anonymous
crotchwindow xD
 
must be another different layout in domdocument
 
9:26 AM
I'm not sure why it's scrapes from php.net
 
@kelunik Thx, I'll take a look at it
 
!!docs DOMDocument
Not even an error message :P
 
Anonymous
404
 
!!docs DOMDocument::savehtml
 
[ DOMDocument::saveHTML ] Dumps the internal document into a string using HTML formatting
 
9:29 AM
@PeeHaa I remember having issues with DOMDocument when I did the chat linkifier
 
Odd though. I should be using search when no pages has been found. So unless I did somethign stupid or PHP cannot find it itself...
!!docs notdocument
Yeah my bad
 
@PeeHaa did you fix 'translate' yet? :P
 
!!docs DOMXPath
 
@iroegbu I'm sanitizing !!google atm
@DaveRandom I'm pretty sure the page layout is not what I expect it to be to be consumed by... domdocument/xpath :P
 
@PeeHaa it's class pages specifically, which should fall into this block: github.com/Room-11/Jeeves/blob/master/src/Chat/Plugin/…
that elseif tree doesn't have an else case, which is probably the cause, but I don't know why they don't hit that block
It should return something, even if it's garbage
 
9:35 AM
yes it should totally hit the if clause
 
@Saitama Yeah, I answered
 
@PeeHaa I would guess that loadHTML() is failing for some reason
 
Will have a quick looksy once I have pushed my current work
 
Is there a way to gain access to another constructors variable, rather then rewriting the constructor again for a different class with exactly the same code? Could you use inheritance
 
Either through composition or inheritance
 
9:41 AM
Best place to post a code snippet round here? pastebin?
 
Assuming you actually mean object properties rather than "constructors variable"
@Dannyw24 gist/pastebin/pastie whatever
 
@PeeHaa thanks
 
@PeeHaa download the single document manual, and create an sqlite/some other db from it ... you could also hack doc-gen to output said db ...
 
That sounds like work :)
 
lazish
 
9:45 AM
Here is my code - You can see I've created a duplicate of the constructor in forum.php
 
:P
 
Does someone have experiencewith MySQL Columntyp POINT? I´ve inserted a point an when I Query for it it output [GEOMETRY - 25 B]. Does someone have an idea?
 
get a minion to do it ...
 
I've tried extending the user class but get several errors.
 
@Dannyw24 Inheritance isn't going to help you there
A user has nothing to do with a forum
 
9:46 AM
good point.
 
@JoeWatkins I probably should
 
Summon the minion army
 
@Dannyw24 if it's the database connection you are worrying about there is no issue. Just pass it in both constructors
 
@PeeHaa Is there a better way to write that? It was just connecting to the database and retrieving the values I was having trouble with.
 
@PeeHaa Classes do not have a dc-title element, so a) needs some different logic to get the description and b) need to check the xpath query nodelist length before trying to get elements from it (the ->textContent will be throwing a null ref at the moment which is why it's failing)
I'll whip up a fix in a minute
 
9:49 AM
awesome
@Dannyw24 What in specific is the trouble?
What are you trying to do here :
$query = $this->db->prepare("DESCRIBE posts");
$query->execute();
$forumrow = $query->fetchall(PDO::FETCH_COLUMN);
?
 
@PeeHaa Retrieve the forum topics
 
Using DESCRIBE?
Instead of something like SELECT title FROM topics?
 
@PeeHaa I'm quite new to PDO and PHP -> Should I be using SELECT?
 
@Dannyw24 This isn't PDO or PHP
 
yes totally
 
9:54 AM
That's pure MySQL
 
DESCRIBE describes what a table looks like
 
DESCRIBE posts means "show me the structure of the posts table"
 
It doesn't tell you much about its contents
 
:O a complete novice to SQL then
@PeeHaa Is there a more efficient way to write the code thats in the constructors of both class and forum.php
seems inefficient to have to duplicate the code.
 
Nothing inefficient about it. You just pass around a "pointer"
 
9:58 AM
!!docs strtr
 
[ strtr ] Translate characters or replace substrings
 
"Nothing inefficient""it's still php, but...
 
okay aslong as its good practise
thanks for your help :)
 
!!docs guid
 
[ mssql_guid_string ] Converts a 16 byte binary GUID to a string
 
10:02 AM
Pro tip @Saitama if you want to evaluate a xpath query relative to a node you have to prefix it with a .
 
:P didn't know that ...
 
I see that ;-)
 
btw, has anyone here played outlast?
anyways, it freaks the shit out of me whenever I try to play that....
 
@Ekn only slightly
 
10:17 AM
@Saitama Yeah I played it for the first time last month and finished it in 2 days
It's just annoying you can't really see much
After I understood how the enemies moved and their logic and pathfinding etc, it was much easier
 
You aren't really fun at parties, are you?
 
Ekn
define fun :p
 
Actually I'm a riot :-) The game terrified me so I had to apply logic to it in order to feel less terrified
 
:P
 
10:28 AM
@Jimbo is fun. I can attest to that. Like having a worse looking Beiber as a sidekick.
 
lol
 
Ekn
damrit, 4 out of 6 domain names I want are "premium"
$1,725.00
Renewal: $18.99
o.o
 
@Saitama Dark Souls isn't hard.
 
10:39 AM
@Ekn Filthy domain whores :(
 
It's frustrating, you have cheapshots by enemies in the dark and behind corners that there's no way you can predict without dying at least once
You win solely based on determination.
Not based on skill.
 
^ that...
 
@MadaraUchiha I've died 10 times on first boss and uninstalled :/
 
Ekn
:D
 
:'D
 
10:43 AM
When people online are campers, you can switch to a different server or play with someone else
But when the NPCs do it, well...
 
Dark Souls is orientated to the super hard reaction/timing based people. I wouldn't call it no skill, but certainly patience and practice.
 
"patience"
 
Ekn
I did that rage quit & uninstall with metro 2033 when I tried extreme mode (and I was hi-drunk)
I've got a pair of yamaha hs80m
good ambient sounds can be scary
s/2033/last light and it's not even called extreme .. it's ranger... I should go hunt for coffee
 
10:59 AM
@kelunik / @bwoebi ping
 
@PeeHaa pong
 
@PeeHaa pong
 
I'm trying to do an artax multi request using:
    public function requestMulti(array $urisAndRequests): array {
        $promises = $this->httpClient->requestMulti($urisAndRequests);

        $comboPromise = all($promises);
        $responses    = wait($comboPromise);

        return $responses;
    }
But I get that annoying thing again:
> PHP Fatal error: Uncaught LogicException: Cannot tick() recursively; event reactor already active in D:\Web\Jeeves\vendor\amphp\amp\lib\NativeReactor.php:149
 
@PeeHaa Don't use requestMulti, use Amp combinator functions instead.
 
You have a sample somewhere?
 
11:01 AM
$promises = array_map(function($uriOrRequest) { return $this->httpClient->request($uriOrRequest); }, $uriOrRequests);
 
Can you create a synchronous command for use with the Combinator called. "IllBeBack()"?
 
@kelunik Oh. I could have thought of that :)
 
@PeeHaa requestMulti is likely to be removed in the next version.
 
And how do I resolve all the promises?
 
@PeeHaa Like you did, but I guess you're using wait inside run?
 
11:05 AM
Yes
 
You can't do that. Just use yield like everywhere else.
 
!!wotd
 
amanuensis: a person employed to write what another dictates; secretary.
 
Nope, never gunna use that.
 
jeeves is making shit up at this point
 
11:07 AM
lol
Actually maybe, seeing as stenographer is something a little different it could be useful.
Where's my amanuensis to write this down for me?
 
Hello,I need to delete any blank lines from the end of a csv file if they exist,any help please
 
@Devilion Use trim?
@kelunik tnx
 
@PeeHaa i used pastebin.com/WMYUu37d but it delete all blank lines except the last one
 
Just rtrim($yourcontent, "\r\n")
 
11:33 AM
!!version
 
!!google fapore
 
Fap Fap Fap Fapore! - YouTube 28 dec 2011 - 3 min - Geüpload door pacmankusFap fap fa…... | Pat Fapore Profiles | Facebook View the profiles of people named Pat Fapore on Faceboo…... | Marco Fapore Profiles | Facebook View the profiles of people named Marco Fapore on Faceb…... | Search Url
 
!!google peehaa
 
PeeHaa (Pieter Hordijk) · GitHub 18 Apr 2016 ... PeeHaa has 61 repositories written in P…... | GitHub - PeeHaa/OpCacheGUI: GUI for PHP's OpCache GUI for PHP's OpCache. Contribute to OpCacheGUI develop…... | GitHub - PeeHaa/PitchBlade: A PHP 5.4+ rapid prototyping framework A PHP 5.4+ rapid prototyping framework. Contribute to P…... | Search Url
 
11:34 AM
+1
 
Nope. I missed something
 
what?
 
E_TOO_MUCH_BOLD
 
oh
 
11:36 AM
@PeeHaa it's deleting all the csv lines :'(
 
!!version
 
@Devilion Dunno what "it" is, but my code certainly does no such thing
 
!!google gooh
 
Gooh!: MAT LAGAD FRÅN GRUNDEN! MAT LAGAD FRÅN GRUNDEN! Färsk färdigmat gjord på noggra… | Gooh in brief - Gooh! Gooh in brief. The good chef, and restaurant, has alway… | Kontor och växel - Gooh! Telefon: 020-84 84 84 (telefontid klockan 9.30-12.00) E… | Search Url
 
11:38 AM
!!google gordon
 
go home @Jeeves, you're drunk!
 
GORDON Fanpage met een biografie, songteksten, zijn optredens … | Gordon Heuckeroth - Facebook Gordon Heuckeroth. 211702 likes · 60543 talking about t… | Gordon (artiest) - Wikipedia In 2005 begint Gordon samen met René Froger en Gerard J… | Search Url
 
psssst wanna buy black hat seo real cheap
 
:P
 
@DaveRandom you fixed !!docs yet?
 
11:39 AM
@PeeHaa working on it right now :-)
 
can we add a duck duck go thing too?
they have a nice public api too
 
@DaveRandom Good :)
 
@Devilion file_put_contents($fullPath, rtrim(file_get_contents($fullPath)));
 
Can you do $foo->{'someExpression'}() in PHP 7 (instead of call_user_func())?
Can you do it earlier?
 
@DaveRandom Yes
 
11:46 AM
I've forgotten how PHP works :-(
cool
 
@PeeHaa ;-)
 
@DaveRandom Was there anything before 7?
 
There was some called perl that I've heard about, I believe it was punch-card based
 
:D
 
@PaulCrovella Thanks a lot, its working :D
@PeeHaa Thanks
 
11:51 AM
!!google pasta
 
PastaSite.nl, hier vind je meer dan 1300 italiaanse pasta recepten ... Op deze website staan heerlijke en makkelijke Italiaans… | Pasta - Albert Heijn Denk je aan de Italiaanse keuken, dan denk je lasagna, … | Pasta | Smulweb.nl Dit is een overzicht pagina met de meest populaire rece… | Search Url
 
I really did pull it
 
here goes a first email from Lester that actually makes full sense news.php.net/php.internals/92835
 
> the way projects keep getting rewritten to comply with the latest undemocratic changes to coding style
 
yeah
it starts like every other ramble I ever heard from him ...
I'm out ...
 
I'm really not sure what the suggestion is there @nikita2206 ?
 
@JoeWatkins he's talking about standardizing phpdoc format under php.net org
 
but that's a separate project
 
but,yeah.. the way he writes makes it very hard to understand him
 
how to show images from another server in php?
 
11:56 AM
@PeeHaa I get there's a message length limit, but could you please ditch the bitly url shortener anyway? I'm never gonna click those links with the location hidden behind that
 
@PaulCrovella We tried that, but sadly that limits it too much :(
 
@nikita2206 and you think that idea is sensible?
 
I'm just not seeing the sensible at all ... I tried, really hard ... twice ...
 
@nikita2206 or are you just saying, "I read and comprehended the email"? :)
@JoeWatkins I have a bit of a personal question, if you don't mind.
 
go ahead
 
12:01 PM
@phpdeveloper <img src="http://some.other.server.example.com/path/to/image/file.png" alt="some file from another server"/>
 
@JoeWatkins doesn't matter, it was a pain in the ass since forever. tools like PHPStorm can't rely on it because authors say they need some format, they're shown phpdoc.org and it's there but it's not changing (well, almost not). And they ( phpdoc.org ) don't seem to see themselves as a body that standardizes phpdoc, so basically it's just a bunch of arbitrary comments that sometimes make sense
 
:P
 
for example people asked for generic classes support in phpdoc
 
@Gordon i mean dynamic data from another server
 
Just re. your volunteering for the 7.1 RM role. Can you see yourself dedicating enough time, over the whole period, to fulfil that role effectively? I want the best for the project is why I'm asking. Do tell me if I'm completely out of line, but you never really came across as too reliable in sticking with a project.
 
12:03 PM
I wouldn't have volunteered if I didn't think I could do it ... if I have to write less patches to review other peoples patches, that's no bad thing for me :)
> but you never really came across as too reliable in sticking with a project.
:o
pretty out of line ...
what are you referring to there exactly ?
 
@phpdeveloper <img src="http://some.other.server.example.com/path/to/image/generator.php" alt="some file from another server"/>
 
@Gordon and what in generator.php ?
 
@phpdeveloper its on another server. how should I know whats in it.
 
#troll
 
I just get the impression, however mistaken it might be, that you're the type of person to jump around a lot. Like I said, that's just how you've come across to me over the years. If you can say to me, and most importantly to yourself, that you're up for the job then that's fantastic. :)
 
12:07 PM
lol...
 
I'm not trolling. he just didnt state a specific problem yet.
 
@salathe I dunno how you got that impression, unless you just made it up ... I've been maintaining one of the extensions I maintain since before we met !
 
@JoeWatkins That's great, I'm happy to be told I'm wrong!
 
12:11 PM
I'm struggling to get any output from my code at the moment, I'm attempting to output the tables column id and value. here is a link to my code. pastebin.com/kkxf05BA
 
over the years I've taken on many things, and they're all assigned some random priority until the shit hits the fan, but none of them go abandoned, even if I really hate them ... like apcu ...
 
any help/advice would be brilliant.
 
I'm annoyed that you had to be told ...
 
@JoeWatkins Maybe I've just not had visibility of that, which is fair enough... the shiny new thing always gets attention.
 
To the blind merge mobile!
!!docs domdocument
 
12:13 PM
I churn out a lot of code, not all of it is interesting for more than a week, or a month or whatever ... if you're talking about extensions I've posted in here or whatever, and then never talked about again, that's because there's no interest in them ... there are a few of those ...
 
believe after a var_dump($forumrows) my code returns nothing.
 
:-(
 
:/
 
!!docs dom
Yay for making things worse
 
JEEVES IS BROKEN \o/
 
12:13 PM
Yeah that totally breaks things
 
sadtrombone.com
 
!!rebecca
 
@Gordon Only 1 days, 11 hours and 45 minutes left until Rebeccaday, OMG!
 
@Saitama works for me
 
Probably a excpetion that doesn't get caught
 
12:14 PM
@JoeWatkins Don't be annoyed, it can't be surprising for a) me to not know everything you do, b) me to come to the source of truth to see if you think you're up for the job. :)
 
You did that in prupose to test the logging mechanism didn't you @DaveRandom?
 
@Gordon The docs plugin
 
> tail: cannot open ‘/srv/www/Jeeves/data/log.txt’ for reading: No such file or directory
tail: no files remaining
lol doubly fail
 
It should now always return something, even if it's just an error
 
12:15 PM
@DaveRandom Why you no trhwoable?
 
I forgot it exists
 
:-)
 
Yeh there'll be some errorex that's not handled
 
Let me manually run it and see what breaks it
 
@JoeWatkins and I see you through a very small hole, the odd chat in here, the odd email to internals, bits and bobs on GitHub. It's easy to come up with a picture of you that isn't the truth. :)
 
12:16 PM
@Saitama as long as !!rebecca works, everything is fine. the other commands are just niche commands with little utility
6
 
And I'm smiling too much now. :S
 
} catch (NoComprendeException $e) {
wat
 
^ true dat
 
@salathe it's not surprising that you don't know everything I do, it's surprising that you would jump to the conclusions you jumped to, while not really knowing enough to jump to any conclusion by your own admission ...
 
@PeeHaa Got it
one sec I'll patch it
 
12:16 PM
kk
> Tests? We don't need no stinkin' tests
CRASHHHHHHHHH :)
 
@PeeHaa Describe seems to be the only MYSQL command to retrieve the data I want.
 
@JoeWatkins I've not jumped at anything, it's been building up for years. Again, I'm happy to be told I'm wrong. :)
 
@salathe you are wrong!
 
Thanks @Gordon
 
@Dannyw24 Well unless you use field names to store data I doubt it
 
12:18 PM
@salathe happy to make you happy
 
@Gordon Appreciated :)
 
@PeeHaa seems Select * FROM posts doesn't return anything for me. did a var dump and got an empty array
 
Also, this is why I never say anything. Now @JoeWatkins hates me. :(
 
no I don't, but I'm a bit annoyed that being involved in so much can make me look unreliable ... if you're not looking properly, which most people aren't ...
 
12:22 PM
8 messages moved to bin
 
Should we strip "The ... class" and just use the symbol name?
 
Yeah probably
 
!!docs PDO
 
[ PHP Data Objects ] PHP Data Objects book
 
That is annoying, would probably be good to prioritise classes over books
 
12:23 PM
Meh keep it :)
@DaveRandom Yes
 
all the commits you have seen me make to repos that aren't my own (under /krakjoe), were made at the request of the owners of the repo, every single time, they are the result of my opening a PR, and being given write access, or being asked to solve or analyse a particular problem, that my bothering to respond to that kind of request actually makes me look bad to some people is fucking shit ...
 
vague impressions aren't rational things. expect mistakes.
for example, I thought @Wes was canadian for quite a while. nfc why, just did.
 
o/
 
!!docs const
 
12:35 PM
I see I've done wrong, sorry for any sore feelings Joe. Never mind me, I'll just stfu.
 
[ runkit_constant_add() ] Similar to define(), but allows defining in class definitions as well
 
wait, wut?
may need some exceptions as well...
 
That's just the search result
 
!!docs foreach
 
[ foreach ] The foreach construct provides an easy way to iterate over arrays. foreach works only on arrays and objects, and will issue an error when you try to use it on a variable with a different data type or an uninitialized variable. There are two syntaxes:
 
12:39 PM
Is there a native function that converts www.example.com or example.com to http: // www.example.com/ ?
Or should I build smth wtih regex
 
O.o
 
@TechTreeDev No, because a URL that starts with an authority portion without a preceding // is invalid
So yes, you would need to build your own routine, or insist that your users supply valid URLs
 
@DaveRandom Okay, thanks for your answer.
 
I decided to use Symfony forms today and I'm having an awful experience. It's 2pm and I've got no work done. The $form->isValid() return false as expected but there are no errors in the form! No top level/global errors like CSRF token and no field errors. WTF could be going on!
 
@tibanez you started using Symfony forms is going on
 
12:51 PM
@Gordon I've always validated my data within the domain model layer but for giving back nice responses for a REST API with all the validation failures Symfony forms seemed to be a good idea
It is not turning out to be a good idea so far
 
@salathe you were right to ask ... we're cool ... sorry if I over reacted ...
 
@tibanez assumptions are fickle things
 
I've tried every function I could find through Google for going through the form to get the error messages which supposedly work. The form API seems to have changed so much and the nested data structures with each minor release of the component
@Gordon This has been a disaster and I'm going back to my old way I think. Keeps the request handler very small too
 
@tibanez I'd suggest to use Zend Forms instead, but that would be just cruel… and mean… and evil.
 
@Gordon The last time I looked at Zend was probably 5 years ago and it scared the hell out of me so I haven't been back since
All I remember seeing were arrays inside arrays inside other arrays
 
12:56 PM
TCP_NODELAY
I summon socket gurus ...
@bwoebi @kelunik @DaveRandom @NikiC if anyone can think of anyone else, add names ...
 
mhmm?
I assume there's a question to go with that flag?
 
so I'm having a pretty extreme perf problem with redis, I trace the process and it's making a huge amount of syscalls, I dig and dig and come across
which leads me to
is this an omission, or is there some problem with adding that patch (with ifdefs?) ?
 

« first day (2020 days earlier)      last day (2944 days later) »