« first day (2050 days earlier)      last day (2891 days later) » 

Wes
12:53 AM
tried to not drink coffee today because i had a kidneys failure and i realized that i just can't function without coffee...
 
May be someone can help me!
what is ($_FILES) for?
 
@Wes good. Now try one month without.
 
Wes
@bwoebi i think i'd sleep all the time :B
 
1:26 AM
@Trowski have fun with the tests: github.com/async-interop/event-loop-tests
Also, feel free to complete them
The tests are heavily Amp-inspired btw.; but I've added own tests too, also testing the specific semantics of event-loop
It might be that the one or other test is buggy; that you'll have to see and fix as you fix/extend the amp/loop
(TBH, I've just copied the Amp tests, altered them to match event-loop and added a bunch of new tests)
 
1:56 AM
@bwoebi I sort of expected you to do this :-D
 
2:06 AM
@bwoebi github.com/async-interop/event-loop-tests/blob/master/src/… Should be skipped instead of incomplete.
 
@kelunik Woops, PHPStorm autosuggest recommended me the wrong thing!
@Trowski well, it's the closest one API wise and yea… If you have good tests in Icicle not covered here, feel free to add or point me to them
 
 
1 hour later…
Ekn
o/
 
Wes
\o
i think music reached perfection somewhere between '70s and '90s. must be hard to be a musician these days
 
Ekn
I agree, but "perfect music" is highly subjective outside the "maths of music" scope..
People have different perception of perfection, just like they have different tastes in music.
But yeah, if I'd take Vevo, or any other example from todays music industry, the "musicians" they produce.. and compare it to what was produced between '70s - '90s ... it would just make me sad.
 
Wes
3:41 AM
:P well... of course. i was exaggerating :D
when i was a kid the youngsters' idol was kurt cobain. now the youngsters idol is justin bieber
it's like we went back to prehistory, in terms of music...
 
Ekn
yeah... there's a profound difference.
 
Wes
they are not even good performers. in the past even the worst composers/musicians were decent at playing music. now, instead... there are a lot of exceptions clearly, but most of the pop music "artists" are just crap
 
Ekn
true
 
Wes
 
Ekn
3:58 AM
IntlChar, is that new?
!!google IntlChar
 
Search for "IntlChar" (https://www.google.com/search?q=IntlChar&lr=lang_en)
• PHP: IntlChar - Manual - IntlChar provides access to a number of utility methods that can be used to access information abo… (http://php.net/manual/en/class.intlchar.php)
• PHP: rfc:intl.char - PHP RFC: IntlChar class. Version: 1.0. Date: 2014-11-24. Author: Sara Golemon, pollita@php.net. St… (https://wiki.php.net/rfc/intl.char)
• PHP: IntlChar::isspace - Manual - (http://php.net/manual/en/intlchar.isspace.php)
 
Wes
yes, php7
 
4:14 AM
Hey guys, I'm reading through a tutorial about google cloud messaging, in a code that sends push notifications
this code is confusing me
<script type="text/javascript">
            $(document).ready(function(){

            });
            function sendPushNotification(id){
                var data = $('form#'+id).serialize();
                $('form#'+id).unbind('submit');
                $.ajax({
                    url: "device_sendmsg.php",
                    type: 'GET',
                    data: data,
                    beforeSend: function() {

                    },
                    success: function(data, textStatus, xhr) {
what does this $.ajax thing do exactly?
 
Ekn
@SamIbraheem you should better visit the javascript room. $.ajax docs is here: api.jquery.com/jquery.ajax
 
Wes
4:43 AM
Say i know 'b' and i want to get the next key in an array:
$arr = ['a' => 0, 'b' => 1, 'c' => 2, 'd' => 3];
seek('b', $arr); next($arr); $nextKey = key($arr); // c
Can i do this somehow, without iterating over the whole thing? no, right?
 
chr(ord(index)+1)
 
Wes
lol
 
Wes
it's an example, keys could be any string
@NikiC can you please give this a push? wiki.php.net/rfc/array_key_first_last_index I think it's basic ordered map functionality and it's absurd that these functions don't exist yet. I've already pinged @jbafford on twitter asking him about the status of the RFC. But a blessing from the hash table master would help. thanks
 
5:20 AM
moin
 
Wes
hey joe :D
 
Ekn
mornin
 
Wes
5:38 AM
is there a way in pcre to define a unicode codepoint range, eg from codepoint 19968 to 40917, inclusive, to be used in [] ?
the same way we write a-zA-Z0-9 ?
 
Wes
5:48 AM
WOW
!!eval var_dump(preg_match('@^[\x{34}-\x{5A}]*$@u', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'));
 
Wes
it works! :D
 
Anonymous
6:18 AM
What the fugg is going on here?
 
morning
 
6:36 AM
Moin.
 
Anonymous
0/
 
lol
 
@SergeyTelshevsky there is a library that works for Django
php community needs a library that works like this :)
 
6:54 AM
I'm sure whatever your framework is, this isnt hard to achieve
 
yeah
 
Chrome v51 with default theme in linux looks really sexy..
user image
2
 
@Saitama easy? do you mean like this? facebook.com/…
:)
 
:P
 
@AdilIlhan iirc monolog has that
 
Wes
7:05 AM
dat @Ocramius and his army of followers. never got so many notifications :B
 
@SergeyTelshevsky cool
 
@SergeyTelshevsky whoops is really nice tho!
 
morning
 
o/
 
Wes
7:13 AM
bad day ahead? could be worse
 
shit happens
 
hey anyone noticed that the captcha system on bugs.php.net can't solve its own tests correctly?
to put it another way. how can I submit a bug when the bug system itself insists that 25 + 10 !== 35
 
@Wes read that this morning, mortiied :P lucky there are no snakes where I live (I think)
so it was a shitsnake? :P
!!friday
 
aaaah jeeves is back alive :)
 
7:30 AM
Happy frydy all \o/
@AdilIlhan That's pretty amazing
 
isn't it :)
 
I cannot even write with it without it breaking it :)
 
:P
 
ahahah :D
 
@PeeHaa didn't know you could write at all :P
 
7:36 AM
Hardly
 
Anonymous
!!wotd
 
fard: to apply cosmetics to the face.
 
Anonymous
Where else do people apply that shit?
 
Anonymous
eh .. i don't want to know
 
Morning. Happy Rebeccaday!
 
7:50 AM
o/
 
Hey....guys....
 
o/
 
I set my php max execution time as 20sec ....and have one php script with infinite loop printing 1..infinite ....when i request this page it keeps running instead of time out...
 
sounds like an annoying thing... but might wanne add some code :)
 
set_time_limit?
what is your php version?
 
7:58 AM
 
@JoeWatkins AFAIK that always stood for "Video Jockey" aka people on MTV'ish channels talking between video clips. But I guess nowadays that doesn't exist anymore anyway, so might as well re-assign the acronym.
Or maybe they do mean the same thing... who knows.
 
@Vijay ...
 
@Oldskool not pronounced the same most probably ... made me giggle though ...
because I'm a child ...
 
sorry for the delay guys my php version is 5.4.42
 
boooo booo
boo
 
8:07 AM
@Vijay You set the max exec time and you wonder why it times out?
 
"it keeps running instead of timeout"
 
ya....
Keeps running...
 
ooooh :P
Is it on the cli by any chance?
 
@PeeHaa You need more coffee.
 
Yeah :)
 
8:09 AM
"request this page"
 
Goddamnit @JoeWatkins
brb getting coffee for real
I'm an utter mess
 
agree
 
guess he been drinking again.. ;)
 
Not in CLI....it is happening in actual server...
 
ok coffee ready....
Sorry for being retarded
@Vijay Check the actual ini values by running phpinfo() on the page
^ looks right @JoeWatkins? :P
 
8:11 AM
sensible
 
phew :)
 
moin
 
hello sir
 
'nin
 
8:13 AM
moin dave
 
@PeeHaa Y U NO LOG DEBUG?!?!?!? :-P
The debug logging is a lot more verbose
because it's for, y'know, debugging :-D
 
Probably because you fucked up the log instantiating
Oooooor perhaps it was me considering I have touched it last :P
 
It's config
 
o/
 
logging:
  level: ALL | DEBUG
@PeeHaa ^
 
8:17 AM
That's what I have
Which is one of the reason why yaml sucks
 
That does work I think but will check
 
brb going to find breakfast
 
don't forget to check the cupboard under the stairs
 
I'm pretty sure it's going to be egss and bacon
 
posted on May 27, 2016

New Cyanide and Happiness Comic

 
8:24 AM
0
Q: Drag and Drop at particular Locaion + Occupy space available in Main Div

Yo YoAs You can see in Figure 1 . I have a Main Div - which is Droppable With Four Draggables namely A , B , C , Fit. On drag Of A , B and C div into the droppable Main Div - It occupies the space as shown in Fig 2.Now if I drag another div (A , B or C) then it should occupy the space with respect...

 
Wrong room bruv :)
 
o/
 
oh no @PeeHaa it is debug logging, was confused by the jsonification
 
@DaveRandom Sorry Chris, I'm reeeaaally slow today. What does the above mean?
oooooooooooh I see what you mean. Yeah I jsonify it to limit the lines one have to scroll through
 
Yeh, makes sense
Because the last line is "event processed for plugins" (which is literally the last line per event) I suspect the socket is getting disconnected
We don't log that and we have no reconnect logic
Can you deploy github.com/Room-11/Jeeves/commit/… so it will at least be logged so we can confirm?
 
8:32 AM
Now that you mention it. I think I have seen some reconnect logic in one of the others bots with a comment saying something like "I dunno bro fuck it just reconnect because something is fucked up somewhere"
yes
 
Well yeh we need that, shit happens
I looked at doing it once but I wanted to test it before I threw it in there
I wanted to put some kind of timeout on the heartbeat messages
 
To host my own images or find a CDN for them out of laziness?
 
as in, "I expect one of these every 20 seconds (or whatever it is) so if I haven't had one after 30 I'll throw the socket away and try and reconnect"
 
I don't trust those heartbeat things
 
But it needs timeout/retry logic on connects as well, doing it right is non-trivial so I didn't bother doing any of it
@PeeHaa I think they are designed to be trsted, I saw some similar logic in the SE chat Javascript
However it is interesting that we never had this issue before and now it seems to happen every couple of days, makes me think something is wrong on our side rather than just "shit happens"
In fact $this->sockets->remove($this->socketId); should allow it to exit when the socket drops, thinking about it
So maybe the issue is that we are leaving something on the reactor where previously we weren't
 
8:41 AM
how to send mail using local server
 
moment, let me add a couple more logs in a couple of places @PeeHaa
 
!!google how to send mail using local server
 
Search for "how to send mail using local server" (https://www.google.com/search?q=how+to+send+mail+using+local+server&lr=lang_en)
• Send email from localhost running XAMMP in PHP us… - Configuration for php.ini (I'm using gmail mail server) ….. Gmail error when sending local email vi… (http://stackoverflow.com/questions/19132171/send-email-from-localhost-running-xammp-in-php-using-gmail-mail-server)
• php - How to configure XAMPP to send mail from lo… - So if you are using XAMPP then you can easily send mail from localhost. …. Its very simple to rece… (http://stackoverflow.com/questions/15
 
@DaveRandom Sure
 
@Fabor thanks :)
@Jeeves ok :) Thank You !!
 
8:43 AM
@Jimbo any ETAs for today?
 
I'm going to modify the !!google command to only give Rebecca links on Friday.
 
image resize and upload using php and js code any useful link for this ?
 
!!google image resize and upload using php
 
Search for "image resize and upload using php" (https://www.google.com/search?q=image+resize+and+upload+using+php&lr=lang_en)
• Resize Image While Uploading with PHP - W3Bees - On my previous post I was shown an example how to upload file with php and html. It was based on p… (http://www.w3bees.com/2013/03/resize-image-while-upload-using-php.html)
• php resize image on upload - Stack Overflow - I got a form where the user is inserting some data and also uploading an image. To deal with the i… (http://stackoverflow.com/questions/18805497/php-resize-image-on-upload)
 
:X
 
8:44 AM
Nothing happened
 
is this link work for image resise and upload verot.net/php_class_upload.htm
 
why don't you try it?
 
i have to do it in single try , its atest
:(
 
then it's a crappy test
and I'm 100% certain it's not a test of whether you can ask other people for the correct answer
 
i know
 
8:47 AM
btw @Fabor note that you can also do !!? for google, and I didn't touch that
 
@Fabor love it how he thanked you first and then jeeves after xD
 
@DaveRandom Good to know. Cheers.
@Naruto Yeah lol. I was a little surprised.
 
why ?
so surprised ?
 
Jeeves is a robot :-P
 
Jeeves is a bot and all I did was ask him to google the exact words you used. It was borderline satire.
You could've just as easily asked google as you did this room
 
8:50 AM
really?
 
really.
 
@jeeves give my thanks back :(
 
heh
 
love it when an OP ask a question with good code but his result handling is bad, and people try to feed him more horrible code in an answer... ><
 
any other robot ? like jeeves
 
8:53 AM
Not in here, there are many on the network though
 
jeeves owns this place.. there is no more room for another...
 
9:07 AM
> Pizza is love, Pizza is life!
 
I pushed something… it's the most horrible code, but it works. hacked it together while on the airplane
2
 
@Gordon E_NO_COMPOSER_USED, E_NO_FRAMEWORK_USED
 
@Gordon On a plane? You know no shame do you? :P
 
@SergeyTelshevsky add E_NO_TESTS and E_NO_STRUCTURE
@PeeHaa the toddler was asleep, so I had time
 
9:12 AM
anyways, I think it works, so if someone wants to put it online somewhere or make it proper… feel free
 
I'm sure I have some space left on my machine :)
 
@SergeyTelshevsky though tbh I dont consider E_NO_COMPOSER and E_NO_FRAMEWORK to be Es for a project that tiny
@PeeHaa yay
 
Anonymous
How do you guys select binary data from mysql?
 
@samayo we don't. we save the path to the binary data on the filesystem and select that instead
 
Anonymous
I'm saving IP addresses as BINARY() for some reason.
 
9:15 AM
@samayo I just select it?
Oh I don't query binary data
 
Anonymous
I guess I have to save ip as varchar ... :\
 
@MattPrelude I actually find it sad, that people try to use this to defend imperial unit system
 
@tereško Same
 
Damn PhpStorm 2016 messing up my beautiful Obsidian theme.
 
I want a mechanical keyboard at work :'(
 
9:20 AM
@tereško Did you get seaislands kernel running?
 
yes
 
Nice, and how do you find amdgpu?
 
less annoying than Crimson
 
@Gordon becca project can't be tiny
 
Thats my experience too, fglrx has always been a horrible driver
 
9:22 AM
but I still can't play some games, since Steam conflicts with GCC 6.x
 
@SergeyTelshevsky feel free to run wild with your PRs
 
chroot install of steam?
 
@MattPrelude I have nvidia card at work .. it's worse
 
@tereško I haven't had nvidia since ~2010
nvidia drivers have always been terrible
 
@PeeHaa so, predictably, I went to log some stuff and found some things that need refactoring
 
9:22 AM
I can't even get that thing working with HW drivers
 
With AMD you always had the choice between very ugly and unpredictable proprietary driver and unperformant radeon driver, now amdgpu seems to offer a solution.
 
@DaveRandom :-)
 
@MattPrelude now only FreeBSD could pull them in the core and I would be happy
 
@tereško Would be nice, sure make an openbsd port easier
 
lol
if any BSD would get them merged, it probably would take a weekend till it's available on all the rest
well ... maybe Dragonfly would need 2 more weeks
 
9:25 AM
Yeah
and netbsd it would be there but crash every few hours
 
:D
 
and be added to 'lowest priority' fixes :P
 
Hi guys...
 
"No one needs GPU support!"
Does netbsd support kms yet?
 
no idea
I am paying attention only to FreeBSD/PCBSD side of things
 
9:27 AM
I've only ever followed openbsd tbh
I remember trying netbsd, realizing it didnt have basic things (kms among them) and dropping it.
 
Hey guys i am using codeigniter and having a problem :-

var_dump($var) => string(558) ""

On inspect element network tab it is showing red dots "\u0" somthing
 
I use openbsd on 'infrastructure' hardware at home, like my NAS gateway.
 
@PraveenKumar the problem is you are using codeigniter
 
@PraveenKumar Sounds like you're not using UTF-8
 
@samayo Does bulletproof reprocess the image with GD?
 
Anonymous
9:29 AM
Nope.
 
I need some suggestion. I have uploaded two page in existing site. I am getting net::ERR_INCOMPLETE_CHUNKED_ENCODING error in chrome browser console. But other pages on my site is working fine. I was googled this issue and tried some htaccess rules. but nothing worked for me...
 
@MattPrelude I am mostly using fbsd for running a webserver
 
@Gordon WHy it is encountered some explanation ??
 
@tereško Nice, my webservers are all xenial because I want them to match my vagrant images
 
Anonymous
@Fabor It does not need too.
 
9:30 AM
Why not?
 
@Oldskool you mean in headers ?
 
@tereško Makes writing ansible scripts easier :P
 
@Oldskool <meta charset="UTF-8"> is there in headers
 
Anonymous
@Fabor Because it's secure as it as. I had the same discussion in r/php, when someone said it could be exploited ... gave him time to prove it but could not come up with any.
 
@PraveenKumar If the data comes from an SQL source, you need to set it on your SQL connection too.
Or you can always go for the hacky way: stackoverflow.com/questions/22894917/…
 
9:32 AM
Well can't say I am security orientated but perhaps someone else could elaborate on why reprocessing uploaded images with GD is advised? @Leigh ?
 
Anonymous
It is possible to reprocess the image with GD and read for first multi-byte characters for any suspicious looking tags ..
 
That's what I believed
 
i have a question to ask which is i cant get my url id
 
every library can have potential bugs, gd, imagemagik, whatever homebrew you have
 
here is my code
<a href="chatroom.php?chatroomID=<?php echo $row['id']; ?>">
<div>
<p>
<?php echo ($row['name']); ?>
</p>
</div>
</a>
and i used this on my insert chat php
$chatroomID =$_GET['chatroomID'];
but i cant get my id
 
9:37 AM
@Oldskool I am using codeigniter On my pc everything works fine but on my partners pc blank screen on some views
 
Anonymous
@nonstop328 var_dump($_GET);
 
@PraveenKumar lemme guess - you are using different PHP versions
in particular: one of you is using something older than 5.4.10
 
guys any idea about my issue?
 
@PraveenKumar A blank screen means you need to turn on display_errors in php.ini (given it's a development environment).
Otherwise check the logs.
 
@Oldskool I checked the logs no error is there. there was one which was mysql so i changed it to mysqli still not working error display is on.
@tereško how that will effect ??
@tereško i am running 5.6.3 and he is on 5.5.28 Now any idea ??
@Gordon you was saying something
 
9:53 AM
- zendframework/zend-code 3.0.2 requires php ^5.5 || 7.0.0 - 7.0.4 || ^7.0.6 -> your PHP version (7.0.5) does not satisfy that requirement. ... and of course we run just the one version that is not supported... facepalms
 
@PraveenKumar You should both use same PHP ver as the live server
@PraveenKumar For a new application, that should be 7
 
@MattPrelude i will upgrade my php but how to stop codeigniter to output those non-printable special unicode characters i am using nothing special
 
@PraveenKumar I have no idea, I dont use CodeIgniter lol
 
@PraveenKumar yes, I was suggesting not to use a dated framework like CodeIgniter
 
@PraveenKumar This is just common good sense, your test environment should be as close as possible to live environment.
 
9:59 AM
@Gordon yes thank you already moved myself to laravel and yii2 :)
@MattPrelude thanks for help :)
 
@PraveenKumar not sure if serious or trolling… -_-
 
Am I doing something wrong? my redirect seems not to be working pastery.net/zvxbvx
 
@Gordon Seriously GOd knows that ;)
 
@Duikboot Ehm, that RewriteRule is basically an infinite loop to itself.
 
I need some suggestion. I have uploaded two page in existing site. I am getting net::ERR_INCOMPLETE_CHUNKED_ENCODING error in chrome browser console. But other pages on my site is working fine. I was googled this issue and tried some htaccess rules. but nothing worked for me...
 
10:08 AM
@PeeHaa when do you have time to setup RaaS?
 
Im trying to modify that htaccess. ( The latest 2 lines were already there ) So i haven't touched them.
 
@Duikboot The latest two lines are bullshit. :)
 
:D
 
It redirects www.sitename.com to itself.
 
Should I use in this case a 301 or 302 Yeah indeed :P that's ot good
 
10:10 AM
Looks like it should be a non-www to www redirect.
In which case the www in the condition is not optional.
Which it currently is.
 
This is better @Oldskool ? pastery.net/hmhwgk
 
@Gordon Laravel is getting much nicer, tbf
 
Oh wait
 
@Duikboot No.
 
@Gordon And I say that as someone who strongly opposed it for a long time.
 
10:13 AM
Check that one
 
Well, that makes more sense, being different domains.
 
That seems to be working here.
 
Best htaccess debugger I know of.
 
Oh that's cool :D
Im now thinking how I can add a specfic directory to operate the same action
 
@MattPrelude I respect everyone who is determined enough to write a full stack framework, even when it's not to my liking
 
10:16 AM
Seems almost like a rite of passage
 
@Gordon which framework do you like to work then ?
 
@PraveenKumar none. I prefer components/packages over full stack frameworks
 
@Oldskool Seems to be all working now
 
Can someone please sanity check gist.github.com/DaveRandom/352e6ed656c0fb8c9a5088ba6705aede for me? (Iterator implementation for flattening what's internally stored as a 2D assoc array, needs to be Iterator impl because it uses objects obtained from the value as keys)
 
@Gordon Don't a framework saves time (as i was told by someone) ??
 
10:23 AM
@PraveenKumar The same way McDonalds saves time.
 
can someone explain to me, why Symfony's DI is not calling the setter here:
    view:
        abstract: true
        calls:
            - [setTemplatingEngine, ['@twig']]

    views.main:
        class: Aggregator\Views\Panopticon
        parent: view
 
@PraveenKumar Every moderately complex thing has a learning curve. A framework will only save you time if it solves your usecases and you know how to use it already.
 
@tereško Symfony 2 or 3?
 
if I move the 'calls:` section to the definition for the concrete class, it works
2.8
well .. components of 2.8
 
10:25 AM
@Fabor :D
 
Well, yeah but some things changed in 3. But that doesn't affect you then.
In that case I don't see anything odd about that YAML though.
Maybe clear the cache?
 
how?
 
@Oldskool You work at mwl ?
 
@Gordon have a great point.....
 
wait, no, the cache should not be affecting this, @Oldskool
 
10:28 AM
@PraveenKumar you can think of it like this if you want: a bike will take you faster from A to B, but only if there is roads you can drive on and only if you know how to ride a bike. Now remember, how long it took you until you actually could do that. Same with frameworks (and packages/components)
 
@Oldskool, fixed it: I needed to call $container->compile();
 
@Gordon I do too, I mostly use Aura components.
@Gordon I don't see a need for a full stack framework, because most of the time I'm only using a tiny subset of its functionality.
 
@gordon @MattPrelude agree with you guys totally....
 
 
10:35 AM
Hello guys. how is the stuff going.
I have one serious issue while developing an ecommerce site for one of my client for the buy now process.
 
@Gordon won't be playing out tonight mate - gotta pick up bike and sort out some other stuff, it'll be tomorrow morning :-) also I'll likely reply faster on Twitter dm bro
 
need someone's help.
 
just ask @CodePirate
 
Why would he ask himself?
 
I want to integrate buy now module in a ecommerce site that I am developing. I want to use the buy now process , there should be only 1 product checkout process in the checkout page.
 
10:46 AM
what is the issue?
 
Sometimes helping people in this room is like counselling, trying to dig deep to get the real issue out of the people asking for help -_-
 
@Jimbo tmr aint no Ginbo bar, you twit
 
@Duikboot I have no idea what company that would be, so no. ;-)
 
The issue is to maintain session and delete the session if the process has been not completed.
 
@tereško Ah, yeah that helps :)
 

« first day (2050 days earlier)      last day (2891 days later) »