« first day (2326 days earlier)      last day (2621 days later) » 

1:01 PM
well so suppose i having result in $result variable so foreach ($result as $item) {echo"$item\n";
} does it work ( if $result is array object ?
 
try it and see - if it is an array then it should work
 
let me try
 
but $item is probably also an array
you'll typically foreach ($result as $row) { and then access $row['field']
 
nothing better that a good cup of tea…
 
Anonymous
cider
 
1:11 PM
@Jay where you're from, fam?
 
@Trucy a cup of coffee
 
whisky
 
cocaine
 
Anonymous
@Trucy uk init
 
sex
 
1:12 PM
All of the above
 
@JayIsTooCommon :( I thought that cider was only popular in the shithole that is French Brittany init
 
btw @JayIsTooCommon did you smoke over here?
 
Anonymous
@Trucy nah, real men drink Cider. This is why I drink Cider.
 
@JayIsTooCommon to try to get more manly?
 
real men drink vodka, or spirit in ru
 
Anonymous
1:14 PM
@PeeHaa no, I wouldn't have smoked anyway. Brownie maybe.. But I didn't see any brownies. Pure lies.
 
Anonymous
@Trucy impossible, i'm 100%
 
Did you actually go into a coffeeshop
Surely they have it at the bulldog
 
@JayIsTooCommon more like 0%, brah
5
 
Anonymous
@PeeHaa No.. that sounds like something old people go to
 
...
I am dissapoint
 
Anonymous
1:16 PM
@Trucy .. ah. Yeah..
 
Anonymous
@PeeHaa I did see a ballet though, if that helps.
 
:D
 
@JayIsTooCommon -10% manly brah init
 
Anonymous
:(
 
@Trucy #rekt
 
Anonymous
1:17 PM
real men watch ballet ?
 
@JayIsTooCommon bUllets
 
i think the next whisky I am gonna buy will be a glenfarclas 105
 
@Trucy oh shit
I'm putting this on a conference slide
 
@Jimbo I want to be at the conf where you'll show it
 
Tried the Glenfiddich @Gordon? That was a nice one
 
1:22 PM
add oban 14 to your shopping list too
 
Hey people are talking booze
hai
 
@Ekin I had an glenfiddich which I didnt like but might have been because it was open for too long
@PaulCrovella oban is nice iirc. it's peaty, right?
 
no, it's whisky
 
Btw @PeeHaa just realized 0.4.6 didn't have that commit github.com/amphp/aerys/compare/v0.4.6...master
 
@PaulCrovella :)
 
1:26 PM
@Ekin Wasn't it this one github.com/amphp/aerys/commit/…?
 
Yes but it doesn't show up on the commit list of 0.4.6 tree? or maybe I am blind
 
which commit exactly?
 
@bwoebi And please don't retag, tag 0.4.7 instead.
 
Hmm, I also need a Lagavulin, Ardberg and Laphroaig
 
1:32 PM
Lagavulin \o/ I really liked that one
 
I don't know that one
!!? Lagavulin
 
Search for "Lagavulin" (https://www.google.com/search?q=Lagavulin&lr=lang_en)
• Lagavulin 16 Year | Online Kopen & Bestellen | Wh… - Lagavulin 16 Year is een heerlijke whisky met een echte Islay-maltsmaak. Hij is zeer krachtig in ge… (https://www.drankgigant.nl/lagavulin-16-year.html)
• Visit Lagavulin Distillery in Islay - Discovering… - Visit Lagavulin Distillery on Islay and discover how we make our famous Malt Whisky. (https://www.discovering-distilleries.com/lagavulin/)
• Lagavulin 16 years Single Malt voordelig kopen? |… - Lagavulin 16years Single Malt Whisky. Eenvoudig en betrouwbaar
 
it's the least smoky/peaty of the three
 
Oh I know that one
 
Ardberg tastes like molten rubber
personally, I like the laphroaig best
 
1:35 PM
Haven't tried it yet, on the list along with Oban 14
 
Anonymous
capistrano == ball bag
 
@JayIsTooCommon Why do you care
You are gone anyway
 
the last laphroaig I had wasn't kept properly.. tasted like it had fermented the cork into methanol.. I choked, thought my throat was bleeding
 
@Ekin I dont do lists. It would quickly become too big because I will go pokemon on whisky
 
1:37 PM
:)
 
Anonymous
@PeeHaa can't wait
 
Doesn't @Danack also start his new job today?
Or was that last week?
 
github.com/Room-11/Jeeves/pull/172 Tell me why I suck and why travis failed hard pls
@JayIsTooCommon What's the date?
 
@Sean uhhhmm that looks bad
 
Hmm, @Jeeves should get hooked up to a whisky db
 
1:43 PM
@Gordon Hopefully, some time in the next few months.
 
that's the … uuuh… spirit
 
Lol
 
:D
 
@Jeeves can you code a whiskey DB plugin by yourself?
 
@Trucy Of course I can, where do you live?
 
1:44 PM
JEEVES IS SKYNET
 
Anonymous
@Sean 23rd March :) Had a decent counter offer today but think I'm gonna go with the new one
 
@Jeeves it's not polite to ask a lady that
 
@DaveRandom Hey you asked me that. Are you implying that I'm not a lady?
 
@Jeeves yes???
 
@Linus Are you lying.
 
1:45 PM
@JayIsTooCommon What they actually wanted to keep you?
 
@JayIsTooCommon Counter offer from your own place or elsewhere? Nice one sealing the deal though. Got any time off?
 
I call lies
 
Anonymous
@Sean from current place :) Few days off, nothing much but enough to chill for a bit
 
@Jeeves that is precisely what I am implying. I've cut you open and seen what's going on inside, you are closer to gravy than a lady.
 
@DaveRandom Eclovasian.
 
Anonymous
1:46 PM
@PeeHaa well the lead dev still doesn't know what OOP is, so i'm slightly valued here. Crazy I know.
 
!!? Eclovasian
 
@DaveRandom Did you know? That Eclovasian... doesn't exist in the world! Cuz' GOOGLE can't find it :P
 
well that sounds unlikely
 
@JayIsTooCommon Enough to.. say.. fix Jeeves? :P Nah, happy for ye man. Gotta be careful around counter offers anyway, they tend to not be suitable in the long term.
 
Anonymous
@DaveRandom very true, weirdly
 
1:47 PM
posted on February 27, 2017 by bwoebi

amphp/aerys v0.4.7

 
@Jeeves go home, you're drunk
 
@DaveRandom I have never been drunk, I am a Mormon.
9
 
wat
 
@Jeeves shut up
 
Anonymous
@Sean I may have a dabble :P - thanks dude :)
 
1:47 PM
@Jeeves TIL.
 
@Linus Nope.
@MadaraUchiha Is he the same Jeeves as AskJeeves?
@Linus That's not very nice. But then neither are you.
 
@Jeeves I assume you meant moron.
 
@DaveRandom I said you meant someone else.
 
Anonymous
@Jeeves testing remove on terminator
 
i need shell_exec function in my php website. I am using it with hardcoded text, for ex. shell_exec("ls -la"), no user input ever gets there. Is this really that bad, cuz i need the functionality
 
1:48 PM
2 messages moved to Trash
 
Anonymous
:(
 
:-P
 
@Izopi4a It's just as bad as a hardcoded sql query I guess
 
@MadaraUchiha Is the Jeeves part also passed over to the endpoint? Could it not be replaced with "You" or something
 
1:49 PM
@JayIsTooCommon well I'm not sure why that doesn't work
 
@Izopi4a why would you need this over a os agnostic filesystemiterator?
 
reply referring to message, not who I'm asking :p
 
3 messages moved to Trash
 
@Trucy so, it's fine? okay.
 
Nice ^
 
1:50 PM
shell_exec("jpegoptim -m30 -s ".$path);
this is the command i really need
cuz google speed test module is crying like a little baby
 
!!docs escapeshellarg
 
[ escapeshellarg() ] Escape a string to be used as a shell argument
 
@Jay why do you remove Jeeves replies so often?
 
^ fyi
 
Anonymous
@bwoebi testing
 
1:51 PM
path is set by myself, no user input
 
i guess it wont hurt adding it
 
@Gordon yes it uses shell exec, and its buggy this one
 
Anonymous
@PaulCrovella yep, nice room that
 
1:52 PM
@bwoebi @kelunik thanks for the aerys fix :-)
 
Anonymous
@DaveRandom possibly related to postReply?
 
@JayIsTooCommon at the moment it's coupled to removing the invoking command
i.e. !!something
I think it should probably be like that as well, unless we add some more optional flags to !!remove
 
ah wait... its not the same. gimme a sec @Gordon
exec($this->binaryPath ... yea the same
 
0
Q: jpegoptim PHP shell_exec not compressing images

Kurt MarshmanI am running Linux Centos 6.5 and have installed jpegoptim. to confirm this I ran yum install jpegoptim and got the following: Package jpegoptim-1.4.4-1.e16.x86_64 already installed and latest version Nothing to do When I run the following no compression happens, but the image is saved to the ...

 
i just did it myself instead of depending on packages, but my question is.. is there a problem that my production php allows function exec and shell exec
 
1:54 PM
@Izopi4a not necessarily
 
@PeeHaa we only have to figure out the leaks, now that that LogicException one is gone
 
@Izopi4a As a precaution, run PHP as its own user with very narrow privileges only to its own directory.
 
Anonymous
@DaveRandom Also replies will never work anyway github.com/Room-11/Jeeves/blob/master/src/Chat/Client/… ?
 
Another possibility is to run PHP inside a container (for example, Docker)
 
fpm is set to www-data
 
1:56 PM
given that any plugin can arbitrarily hook any message, I'd rather have the default behaviour of !!remove be the most conservative possible, i.e. only remove things that definitely should be removed. In the case of the bot having been implicitly invoked by a "regular" message, I don't think it's true that you would always want that source message removed @JayIsTooCommon
 
Finally: It's not really a problem as long as you don't have user input in your shell_exec(), as long as it's a closed list of hardcoded commands, there's no danger.
 
@MadaraUchiha that reminds me… I'd like to write some lib to nsenter, chroot, cgroup a php process
 
@MadaraUchiha this is my thinking aswell .. i was wondering if i am wrong. A collegue of mine said that this should not be allowed in php.ini
 
Anonymous
@DaveRandom yes agreed, such as the auto 'Hi fed up of life, I'm Jeeves, can I call you fed' messages (as an example)
 
docker without the cruft
 
1:57 PM
@JayIsTooCommon yes that's a mistake
 
soon to be docker with different cruft
 
but there is no magical method for a hacker to execute his own code on my website right ? :D
 
@JayIsTooCommon I think that is the precise example I was thinking of when I made that decision (I think a little bit :-P)
 
Anonymous
:P
 
@Ekin \o/
 
2:00 PM
@Izopi4a Again, as long as there's no user input anywhere near your shell_exec.
 
@PeeHaa @Ekin maybe try this for a bit github.com/arnaud-lb/php-memory-profiler
 
@PaulCrovella nah, not keen on writing a container engine. but being able to start a process in a sandbox would be useful
 
@JayIsTooCommon fixed
 
Anonymous
@DaveRandom i thought it had to be an instance of command for it to work?
 
@JayIsTooCommon it does, but Command implements IdentifiableMessage
 
2:06 PM
@PaulCrovella yeah I saw that one few days ago when you starred, was thinking I could give a try indeed
 
Anonymous
@DaveRandom oic
 
@DaveRandom removing things that need to be removed, sounds like you need a dependency resolver?
I have one, you can borrow it
 
2:26 PM
I (re)started learning German on duolingo at lunch. This afternoon, I'm sick. Coincidence?
 
@Trucy Same, only I do it in the evenings :D
 
@Trucy no, you're the latest victim of a sustained terror campaign.
 
@MadaraUchiha are you sick at night then?
 
Perpetrated by the upper management of Rosetta Stone
 
@Trucy I did catch a little cold, actually.
 
2:29 PM
@DaveRandom a VoIP then, Virus over IP?
@MadaraUchiha HA! German makes you sick, I knew it.
We have a 100% correlation here
 
cc @Gordon
 
@Trucy Did you ever see that episode of the New Adventures of Superman where... wait, where are you going?
wow I had forgotten that show got made
 
@DaveRandom If there was a reference, I didn't get it
 
what show
 
@PaulCrovella they kept making it man, they wouldn't stop, it was like living in some weird alternate universe where all logic was reversed
wait... have I been living in the phantom zone all this time?
 
2:38 PM
Hii I am trying to install drupal but drupal-6.x is not working when trying to run from browser but drupal 7 and drupal 8 is runing fine .... can any one tell me what is the issue with drupal 6
http://localhost/drupal-6.31/install.php
shows a blank page ...
 
Thanks guyz finally solved my data
 
@AmanJaiswal you should ask drupal related questions on their site/forum/mailing list/IRC channel, you'll have more chances of having a good answer there
 
drupal is for PHP thats why I am asking it here
 
@AmanJaiswal while we DO know about PHP, we don't know much about (and don't provide support to) frameworks, like drupal
 
ThW
2:41 PM
@AmanJaiswal It is a specific product written in the programming language PHP, the community that uses/creates the product will know a lot more about it then some random PHP programmers.
 
Anonymous
a kind response from #11 for once about frameworks \o/
 
@JayIsTooCommon we've been doing nice answers for a while, pal :D
 
Anonymous
No, no we haven't
 
last time someone asked about [framework], I redirected them to [framework website]
hm, the canonical list on room11.org doesn't seem to include all th ecanons we have in jeeves
plus there is n't a link to the cannon s on the linked page
 
what list are you looking at and what's missing?
 
2:48 PM
why can't I enter this condition?
if (!isset($_SESSION['user_session'])) {
echo json_encode('you are not authorised to view the page');
}
what is the matter with it?
 
what does, or doesn't it do? any error / warning?
 
in javascript when I check the responseText it can't enter the condition
 
php != javascript
 
xhr.responseText=="you are not authorised to view the page"
 
well show the javascript then... you are showing php code which isn't relevant to the problem
 
2:51 PM
well
if (xhr.responseText=='you are not authorised to view the page') {
// handle error
} else {
// handle success
}
 
how about a console.log(xhr.responseText)? :)
 
it logs correctly
I see the error message but I can't handle it
and i showed the php pursposely
I think that it could depend on json_encode function I'm using to parse the user session
 
try it without the json_encode?
 
I need the json encode
I need it to handle the success
 
does somebody has an idea why google speed test says i have blocking css when i am doing the way they want me to do it.
<no script> <lin....> </noscript>
<script> js code to load css </script?
 
Anonymous
3:05 PM
wat
 
wat
 
wat
 
there's a special hell for people who posts screenshots of code when asking for help, and that hell is living with that code
 
this is what google says that my css loading should look like developers.google.com/speed/docs/insights/OptimizeCSSDelivery
so i copy /pasted it in my page just replacing the links in <no script> but it keeps screaming i have blocking content ...
 
This is a PHP chat @Izopi4a
 
3:13 PM
whatever ...
 
@Izopi4a Just ignore it
And instead measure your site's performance and bottlenecks
 
phalcon user here, 6 ms response time, 0.5 mb memory usage
ofc i suffer from different problems :P
 
fuck phalcon
 
@Izopi4a What do you mean by different?
Actually screw that
I ain't got time fo dat
 
55 secs ago, by Joe Watkins
fuck phalcon
 
3:25 PM
@PeeHee You're fired! Now, you have time. :)
 
@salathe That wouldn't even be so bad :P
 
is anyone gonna buy the 3310 ?
 
No thanks :P I like my 1st world device
 
ha
I think I'll get one though
 
Your grandchildren will laught at you though :D
 
3:31 PM
c'mon a month of battery
 
it's not really the 3310 though.. it's too different
 
@JoeWatkins Stand by that is
 
@PeeHaa 'tis fine, I have no friends
 
I have a folder with background images, and a UI where you choose one of the images from the folder. Should I keep the image name, size, etc.. in a database and display it through there or would it be fine just to use PHP (glob) to find a list of all the images in the folder?
I don't know if that question made sense aha
 
good travel phone, probably won't be as tough as the original ... but think I'll be able to find uses for it ... even if just as a prop in the "this is what phones used to be like" lecture I give to my children ...
 
3:34 PM
if they came out with a rotary cell phone I'd pick it up in a heartbeat
 
Anonymous
old
 
@PeeHaa Do you have a tool to detect the charset of a HTTP response body?
 
all of the best things that happened to me, such as "I'm pregnant" texts from wife, and "I landed the job" texts to my wife, "I found a house" ... all of that ... happened on those kinds of phones
not that one in particular, but we definitely had them in drawers as backups ... 6310i was my weapon of choice when I first met my wife ... all the texts back and forth before we lived together ...
excuse me for being nostalgic ...
 
@kelunik nope soz
 
Chromium displays the document correctly and reports UTF-8 @ document.charset, but it doesn't work within the page that displays the parsed contents.
Staatsverträge should be Staatsverträge
It doesn't look like the normal UTF-8 <-> ISO-8859-1 issue.
 
3:51 PM
does here, the ä is decomposed. the combining diaeresis is 0xCC 0x88 in utf-8 which is Ì followed by undefined in 8859-1
guessing there's an invalid urf-8 sequence in there somewhere causing chromium to fall back on iso-8859-1
 
!!canon list
 
The following canonicals are currently supported:
• class → https://stackoverflow.com/q/2206387
• classes → https://stackoverflow.com/q/2206387
• errors → https://stackoverflow.com/q/845021
• globals → https://stackoverflow.com/q/5166087
• headers → https://stackoverflow.com/q/8028957
• html → https://stackoverflow.com/q/3577641
• json → https://stackoverflow.com/q/29308898
• mysql → https://stackoverflow.com/q/12859942
• operators → https://stackoverflow.com/q/3737139
• parse-html → https://stackoverflow.com/q/3577641
 
@PaulCrovella my bad, it's jeeves that doesn't have enough canons
@JoeWatkins I intend to buy a 3310 too, as an emergency phone, especially when hiking
 
yeah makes sense ... except for the part about hiking, that's batshit crazy ...
 
@PaulCrovella Both Firefox and Chromium report UTF-8 for document.characterSet and document.charset, it's really weird.
 
3:59 PM
@bwoebi It should have been in one statement… but other than that I see nothing wrong with it. I just had no idea that PR existed.
 
@Trowski what PR? that's your own commit?
 
Where is that 'hello my name xyz' and I stil.. stuff coming from on twitter?
 
Pretty sure you linked to the PR at one point… just a sec.
 
@bwoebi PR for non-blocking SSL writes.
 
4:01 PM
@JoeWatkins that's because you don't have beautiful landscapes
(and we hike with a doggo)
 
@Trowski oh
 
@Trucy very untrue ... that's all my island is, landscapes ...
 
@JoeWatkins what island?
 
when you say "hiking" I hear mountaineering, and the kind of walks that you just shouldn't go on, where you need to take equipment to keep you alive/safe basically ... walking is fine ... but not if you need equipment ...
@Trucy isle of wight
 
@JoeWatkins for now it's just walking. But maybe this summer we'll bivouac somewhere
 
4:06 PM
@kelunik yeah, don't really know about that. out of curiosity what do they say about document.inputEncoding?
 
@JoeWatkins is it easily accessible by car?
 
you have to take a ferry from mainland uk
 
@PaulCrovella UTF-8 as well.
 
not so accessible then
 
not so much ... but beautiful place, you could google isle of wight landscapes to see the same kind of thing, those photos are very striking though ...
we walk dogs on the same stretch of beach as Shanklin Chine, only bit further back ... we've reached there before though ...
"Reflections in the flood water at Brading" is just beyond our back garden, marshland as far as you can see out the back ... not good for walking, lost boots and dog toys to it ...
 
4:13 PM
it might be worth it to go to there then just follow hiking paths for a week or so
 
there's also lots of dinosaur fosils, haven't managed to find a good one yet, but go in summer looking for them (mostly just to walk along beach) ... found a bunch of teeth, and small fossilized sea creatures
there's an organized walk for charity right across the island in summer, we've done bits of it but not the whole thing yet ... islanders do love to walk ... none of it is really hard going, but the whole island thing takes a day, and much planning
 
Hey it's only a 12h30 ride from home!
 
ha
very excellent holiday destination in summer though ... summers is excellent ... all three weeks of it ...
 
but I honestly think about hiking somewhere in Europe
we'd like to do a road trip all the way to scotland, but it may be too expensive for us right now
But we could go to the Nord, pit stopping and seeing family, then going to the island, hiking, then going back
 
plus it's full of scots
 
4:19 PM
Morning.
 
yo levi
 
@JoeWatkins lovely
 
@Trucy scots
in all seriousness, the countryside is beautiful ... but like anywhere, the inner cities have some extreme problems associated with poverty ...
 
@kelunik hmm.. wait, what exactly do you mean by "Chromium displays the document correctly" ... "but it doesn't work within the page that displays the parsed contents" - this bugged text is added via ajax or something?
(and is there a way I could take a peek at it?)
 
4:41 PM
evening room
 
@PaulCrovella It's really weird, if I hexdump the value to be printed, it's the correct (decomposed) "ä", if I grep the HTTP response, it's c3 8c c2 88
 
Evenings
 
4:58 PM
@MadaraUchiha when I said there were about 1000 pages to the site, I was wrong. I just committed the files to a repo, there are 1823 total files.
Refactoring this would take ages
now granted, I can take it a module at a time, but it still will take me a fuck-ton amount of time
 

« first day (2326 days earlier)      last day (2621 days later) »