« first day (1819 days earlier)      last day (3126 days later) » 

user5020521
3:00 PM
@Jimbo is this the way?
 
user5020521
xmlhttp.open("POST", url, true);
xmlhttp.send("?idRecord=");
 
user895378
@FélixGagnon-Grenier The solution is to do more of those things today.
 
@Riccardo990 If you do that, you'll still not get anything through for idRecord. You'll need to do xmlhttp.send("idRecord=stringHere"), and no ?
 
user5020521
so I need to set idRecord?
 
3:02 PM
aaaand I'm out :-P
 
user5020521
that's supposed to be a parameter defined into a function
 
user895378
@Jimbo bai o/
 
@rdlowrey okay... just questioned it because it didn't constrain what could be made by the resolver.
 
@rdlowrey No, with that set of questions lol
 
user895378
@Jimbo o ... hai o/
 
3:03 PM
@rdlowrey Out of interest, can amp do everything React can do now?
 
user895378
@Jimbo always has
 
Somebody understands how spf records work?
 
Where'd the web socket compliant stuff go?
still there?
 
@bwoebi Well, if I wanted to transform the result here again? github.com/kelunik/chat/blob/…
 
user895378
@PeeHaa they block the UV radiation so you don't get sunburned.
 
user895378
3:04 PM
BOOM.
 
E_TOO_FRIDAY
 
user895378
@Jimbo yeah, the websocket things have always been in a private repo
 
Damn you're so useful :P
 
I feel like I've betrayed the world every time I search for help on google and accidentally click a w3s link.
 
@rdlowrey what's your deadline again for publishing it?
 
3:05 PM
@Sean I know that feel bruv
 
@rdlowrey Can you give me access again? I want to try again with amp + that
 
@PeeHaa It's a DNS TXT record to tell other people acceptable servers your domain sends mail from
Sadly, most servers will ignore a mismatch
 
user895378
@kelunik soon. The 15th. We're open sourcing it come hell or high water.
 
user895378
@Jimbo sure
 
Soft or hard deadline?
 
3:07 PM
@Machavity I have a client who said he added my machine to his record, but when I looked he only has a mention of spf.somedomain..com and spf.somedomain.com has a spf record where my machine is in
Does that even work?
Sorry for pings i cannot type
So basically. Mail is send from my domain (pieterhordijk.com) using @a.com which has an spf record pointing to spf.b.com. spf.b.com finally has my machine whitelisted
 
what's that .... aerys is coming to a public github repo? Or is the websocket thing separate?
 
^ right / nope, currently everything is in one repo except for sessions
 
awesome sauce
 
user895378
@kelunik hard.
 
Ok, will write my "Create a simple chat app with Aerys" blog post then.
 
3:10 PM
Just like how @Lusitanian's mom likes it
 
@PeeHaa It can. SPF supports ailiasing like that
 
k tnx
 
9
Q: How do I configure SPF for multiple domains on a server? (also allowing gmail as a sender)

Peter BoughtonSPF (Sender Policy Framework) seems like a good way to combat spammers/spoofing. However, despite reading the explanations several times, I'm not quite understanding how to configure it correctly. Let's say I have my server at a.x.com which hosts www.x.com and b.x.com and c.x.com and so on. I...

 
@kelunik Do, I'm interested :) Also, specifically, could you include how to send the data to a specific person, not just everyone in the room like most chat app examples provide
 
That means problem is else where :(
 
3:12 PM
Do arrays from POST become instances of ArrayObject?
 
user895378
@kelunik \o/
 
@Sean no
 
Gonna work on a new OSP that'll use it
 
@PeeHaa Guess something is converting them over then. Cheers!
 
P, NOT S
 
3:13 PM
@Jimbo Too late already googling OSP!
 
:)
 
@Jimbo May be something for part II, not sure yet.
 
> Oblate Sisters of Providence
Like it
 
@bwoebi should ext/phpdbg_webhelper/ be git ignored?
 
@kelunik Is it complicated? In React, you 'send' the data to a connection, rather than 'broadcast' to everyone
 
3:15 PM
No, that thing is easy, managing it on the server isn't that easy (so it's webscale).
It's just a simple $endpoint->send($clientId, $payload) or so.
 
@PeeHaa if(is_array(...)) { $this->dbData[$fieldName] = new \ArrayObject(....) } Found it. >>; Cheers.
 
@Jimbo Surely it can do both?
 
@marcio it's removed in PHP-7.0 anyway
 
@kelunik you can haz volatile collectable ... collectable is an interface now ... so Worker::stack/Pool::submit expect Collectable & Threaded
 
@Sean Find the person who added that
 
3:18 PM
@PeeHaa Yeah, it can. I'm basically saying I need that in Amp
 
ah :)
Surely amp can do both?
:P
 
@JoeWatkins Does Threaded now implement Collectable?
 
@kelunik then transform it inside the closure???
 
Sure, amp has both.
 
3:19 PM
@Sean just to warn you, ArrayObject's are not as useful as you would hope. They don't behave like arrays in all circumstances. As annoying as some of the array api is, I would suggest just using plain arrays, rather than risking the surprises that you get with ArrayObjects (unless you have a decent reason for using them).
 
you have to do it, but only method is isGarbage() : bool
 
@kelunik Can amp work with ZMQ for IPC?
 
@PeeHaa This is from the framework where their autoload function grabs all other registered autoloaders and runs them. If nothing is found it uses eval() to create an empty class of the requested one with magic methods which spit out warnings.
I just..
I just don't even.
 
Fuck your life
 
@Jimbo Sure, you just have to create a client. :P
 
3:20 PM
Too late to run? :P
 
@kelunik That'll be fun, it'd require me learning about everything ZMQ. FML :-)
 
Why ZMQ?
 
I wrote the Redis client without knowing anything about Redis. :-D
 
@Fabor Mainly for IPC, so that ZMQ can 'inject' back into the loop so I can write fully async stuff for stuff that is synchronous
 
I think @rdlowrey wanted to create a RabbitMQ client?
 
user895378
3:21 PM
@kelunik I definitely am going to
 
user895378
Because I'll need it soon at work
 
I'd vote SQS before rabbit for user base. Rabbit for quality.
 
user895378
well we use both
 
Hey, as long as it has that IPC callback I'm happy (will Rabbit do that?)
 
SQS currently uses guzzle
 
user895378
3:22 PM
If you look at the react rabbit mq binding it's totally bogus ... it just polls at time intervals :(
 
user895378
I'm going to have to implement all that crap myself.
 
Fuck that
So it doesn't even do async
Dirty
 
It's a facade poll -_-
 
Probably written by Taylor Otwell
Right, I'm actually off now, but will be back later as interested in Amp + queueing stuffs
 
what is the mean of this fucky word: "lookup" ?? (none of my dictionarys have not the mean of it)
 
3:26 PM
@JoeWatkins github.com/amphp/thread/blob/upgrade/test/fixtures.php#L20-L30 How would these look like now? They extended Stackable before.
 
@FélixGagnon-Grenier still dont get it, it is something like "search" ?
 
tnx
 
more like "checking" though
 
3:29 PM
ah tnx
yes, "checking" is more better in my context
 
Time: 2.33 minutes, Memory: 176.25Mb

OK (36 tests, 84694 assertions)
every time I want to celebrate (:
 
wat, 2k assertions per test case
 
Pretty high assertions / test ratio
 
can't do much when it's about checks that traverse deep structures
thing is that it worked 10 minutes before I go home and it's f*ng awesome ;)
 
3:47 PM
Got introduced to a non-tested system. Trying to convert it into testable code little by little: Time: 228 ms, Memory: 15.00Mb OK (23 tests, 28 assertions)
It's uhh. It's a long way from 100%
A long, long, way.
 
@kelunik anything that is used once extends Threaded implements Collectable, anything that is reused extends Volatile implements Collectable
 
@rdlowrey uh, sorry, just saw your pong. I found my issue since then, thanks
 
user895378
@FlorianMargaine no worries -- sorry for the slow response
 
np, it was me wanting to vamp
 
Abe
@AlmaDo i usually do with youtube.com/watch?v=3GwjfUFyY6M
 
3:52 PM
@JoeWatkins Why do I have to implement Collectable? Basic implementation will just be returning $this->isTerminated in isGarbage?
 
@kelunik interfaces can't provide implementations
and no
 
@JoeWatkins Sure, but there could be a default implementation in some class.
 
Then that would be an abstract class.
Rather, a base class with some abstract methods, if you had an interface with some default implementations.
 
@Ghedipunk Not necessarily.
 
4:03 PM
posted on October 09, 2015 by aliceljdc

/* by Mastique */

 
@JoeWatkins So what does it have to return instead?
 
when pool::collect is executed, you should return true if the object can be destroyed, ie it has been executed and is finished with ...
if you are just writing tests, then return true and don't execute collector ...
I'm off out, I updated examples and tests for pthreads and polyfill, you can see how it works there if I'm not making sense ;)
lata all ...
 
Yes, but shouldn't return $this->isTerminated(); be fine then for threads that just execute things?
I'll have a look, thanks.
 
4:20 PM
@ScottArciszewski Your writing style really grates on my nerves
 
@NikiC why?
 
Zar
I think I'm going crazy. Would appreciate a second pair of eyes on these 3 lines of Symfony/Doctrine code: pastebin.com/mHG6y9f9 .
2 parameters -- 2 bound. Can't see what it's complaining about..
 
@bwoebi I'm not totally sure, but it likely has something to do with my perception that he's trying very hard to market himself.
 
@NikiC yup… I'm just ignoring that
 
4:36 PM
this sentence is correct ?
"How to select the textarea that is focused?"
 
yeah. you could also write How to select the focused textarea.
same thing with your question in fact. the proper way to ask would be "Is this sentence correct?"
 
@Sajad If it's a question, you'd use "How do I...?" instead of "How to...?"
 
@NikiC Is that the only part you don't like?
 
both are questions @JeremiahWinsley ?
 
@NikiC because if there's something else that's irritating you too, I'd like to know about it so I can improve
 
4:54 PM
in Root Access on The Stack Exchange Network Chat, 4 mins ago, by 3v0
it seems a little risky having my docs on a seperate drive but its hard to explain why
 
as for the marketing perception, well, the only reason I didn't starve to death since late August is because of the generosity of other people, and getting clients is hard
if anyone has any suggestions of a more effective way to do it that doesn't make my writing grate on NikiC's nerves, I'd love to hear it
I've been told by people that, after reading numerous of our earlier blog posts, that they had no idea what Paragon is or what it does
 
I'm assuming NikiC was specifically referring to paragonie.com/blog/2015/10/coming-wordpress-4-4-csprng with his feedback
 
Well, it's a superficial thing but the spacing and fonts in the menu looks off.
Same with the footer.
 
ok, thanks, what do you think is off about it?
 
5:10 PM
Font choice looks weird. It sits too low. Not much contrast.
 
thanks Levi, I'll make a note about this and work on improving it tonight :)
 
The Call To Action button at the top looks off around the edges.
Removing the border specifically makes it look better.
 
heh, you can tell I'm exclusively backend, eh? :P
 
@ScottArciszewski Your header is cut off by the max-height, that's why the text is too low.
 
o_O
can you please show me a screenshot of what you're seeing?
 
5:20 PM
 
oh, interesting
 
Have to leave now, later
 
A database, that store values in multiple units of measurement, with no immediate way to discriminate those units.
I have to perform a 4-join query to know if I'm looking at miles or kilometers.
 
What, you don't like 43rd normal form?
 
5:27 PM
Oh, that's 43rd normal form? I thought I was crazy in thinking that's crazy.
I can't say the word "crazy" enough today.
 
@ScottArciszewski I would remove the gradient from the header and change the text color of the yellow button, white on yellow isn't that readable
 
how does black look?
(f5)
 
Will send you a suggestion when I'm back home, ping me if I forget to do so.
 
@bwoebi could you review the amphp/thread changes? /cc @rdlowrey
 
5:53 PM
hi?
 
can I ask something??
 
@HenrikusAnthony So far, while you've demonstrated your ability to ask questions, thus making the technical answer to your question a "yes" I do have to qualify it with, you have not yet demonstrated the ability to ask meaningful questions.
 
just ask/say what's on your mind, we're friendly here
 
5:58 PM
okay, wait
 
(Note that, even though we are friendly, and we encourage people to just ask questions, that doesn't mean that we'll actually be willing or able to answer questions once we know what your question is)
 
how to post value from database into input type file??
 
But we'll try our best to be helpful.
 
I know it couldn't, but can you give me other methods?
 
Read the values from the database, then write it to a file... Is there a specific part in there that we can help you understand better?
 
6:05 PM
um, I need to make an edit image form. but when I didn't insert a value into input type file. the value on database was missed. I need a method to keep the value of image
sorry for my bad English before. I try my best. hehe
 
6:18 PM
anyone here?
 
@HenrikusAnthony whatcha need?
 
read my question above
 
I have no idea what you're trying to ask.
Post your code on a pastebin or gist
 
Hi Guys, why the following regex doesn't work ? /https?:\/\/32\.130\.4\.117\/?/i
I am trying to find that exact IP address in text
 
@minnur yikes, use a different delimiter first, so you don't need to escape
 
6:28 PM
the problem is that we have unified array that could contain domain names and IP addresses
the same regex works just fine with the domain names
 
~https?://32\.130\.4\.117/?~i I don't see how this would not work. Are you sure the IP is correct?
 
yes
 
Can you post an example text you are using?
 
regex101.com this is what I use to verify
 
exactly where I was about to head =oP
 
6:30 PM
```td valign="middle" align="center" style="width: 30%; background-color: #e6a215;">
<p style="text-align: center;"><span style="font-size: 12pt;"><span style="font-size: 12pt;"><em><span style="font-size: 12pt; color: #ffffff;"><em><span style="font-size: 14pt; color: #ffffff;"><span style="font-size: 12pt;"><em><span style="font-size: 12pt; color: #ffffff;"><em><span style="font-size: 14pt; color: #ffffff;"><a href="http://32.130.4.117/index.aspx?page=220"><span style="font-size: 12pt;"><em><span style="font-size: 12pt; color: #ffffff;"><em><span style="font-size: 14pt; color: #ffffff;"><
 
oooooh, yeah don't use regex for this.
 
Anonymous
wholly guacamole
 
Use DOM, to access the <a> tag then get the href attribute vale
 
that won't work, I don't need to worry about performance at all
it is just one-time thing
I guess I could just do str_replace by an IP address
 
@minnur has nothing to do with performance
it has to do with doing it the right way
 
6:32 PM
well I understand that
but it's too much work to make it right way
 
Anonymous
@minnur if the other contents are the same except for the IP, you can use str_replace.
 
Anonymous
it'll be the fastest way
 
yup that's what I thought too
 
6:38 PM
@Machavity wow, that was a convincing link
 
Anonymous
@Machavity Come on dude. Twice in a day?
 
Anonymous
you can't fool anyone
 
@samayo First one was kinda eaten in another conversation
I promise to do better at some future date
 
Is there a way to vote up here ?
 
Anonymous
nope. but you can star
 
6:40 PM
@minnur Stars are the closest thing
 
thanks
 
Anonymous
staring is not upvoting though. You can only star things that are relevant to all of us. @minnur
 
Stars mean you want others to see it... Not really a rep thing.
 
ah, got it
 
@minnur can you unstar those two stars. We don't really star things like that in the chat.
nvm, someone did it
 
6:41 PM
sure just did
 
oh, slow day for me
 
There are a couple of badges that you get for being starred, like obnoxious git Outspoken, though, so people who like to collect badges care about their first 10 stars...
 
@Ghedipunk Hafta get 10 stars from 10 people IIRC. It's not one you can just plow through in a day
 
Yep, took me about a month of being only mildly obnoxious and not giving a crap about it before I got it.
 
Anonymous
@Ghedipunk You don't seem to be working on your reps though. It is still like the last time I saw it.
 
6:53 PM
I think I gained 12 since last you saw it... Not many people asking good questions tagged with both PHP and WebSocket, and the low hanging fruit in PHP gets picked up too quickly.
I'll get to 10k eventually. I'm actually more concerned with getting unit tests in place for my WS server.
(Well, that, and work that actually pays the bills... ;-) )
 
Anonymous
@Ghedipunk I alone gave you 50 reps
 
Yep, I noticed the jump and figured it was you. Thanks.
 
Anonymous
Just made sure they are there. Yes, my up votes did not get reversed. If I had given you more than 50 they would have gone though.
 
Anonymous
for some reason, I am not able to give you bounties :/
 
7:08 PM
@Ghedipunk and sadly the right answer for a lot of questions isn't the answer they want to hear; so you end up downvoted, ignored, arguing with the willfully-ignorant in the comments (or sometimes even on meta)
 
Good morning
 
ThW
good morning
 
7:39 PM
is google docs down for others too?
 
ThW
@tereško It's really slow
 
We know something's up with Drive for the moment. Rest assured, we're on it and we'll update soon.
 
one of my docs just vanished
 
ThW
sorry
 
Anonymous
7:58 PM
$app->any('/blog/{:id}', function($id) use ($app){
  if($app->isPost()){
    $username = $app->postVar('username');
    $comment  = $app->postVar('comment');
    $email    = $app->postVar('email', FILTER_VALIDATE_EMAIL);

    if($username && $comment && $email){
      // .. database stuff ..
      $user = $app->escape($username);
      return (new Log)
        ->log(" $user just commented on page " . $app->getUri(), Log::EMAIL, log::INFO);
    }
  }
});
 
Anonymous
Now that is what a simple micro-framework should allow you to do
 
Anonymous
@Abe still waiting for your answer to join me on the project.
 
ThW
That looks weird, a route with any, checking for post without an else?
 
Anonymous
Yeah, it is treated as GET when you view the blog/slug but when you comment, the post is submitted obviously using POST, there is no need for an else.
 
Anonymous
There is an $app->view('blogs') I forgot to add at the end.
 
ThW
8:06 PM
what's app?
 
Dude, what's AAAAAAAPPPPPP!!!!!
 
ThW
What kind of router is it?
 
@NikiC Done!
 
Anonymous
@ThW RESTful router. Also, $app is a syntactic sugar class.
 
Anonymous
it extends a container.
 
8:09 PM
@Danack wazzaahaap
 
ThW
@samayo your own?
 
Anonymous
@ThW yeah
 
Anonymous
@ThW The relationship between the container and the application class. chat.stackoverflow.com/transcript/11?m=25140198#25140198
 
"Thank you for answering me and not marking duplicate," - The only reason my name isn't listed as one of those who closed it is because I don't have the rep to do it myself, so I flagged it instead...
 
Anonymous
@Ghedipunk you can grab the comment link and drop it here.
 
ThW
8:22 PM
@Ghedipunk you implemented a websocket server? I am using Ratchet at the moment.
 
fucking internet
 
@ThW Yes, I wrote my own, shared it on GitHub several years ago before I knew the value of unit testing, SoC, Dependency Injections, etc... Some people like it because it's quick and dirty and easy to play with.
I'm trying to rewrite it, keeping the core of quick and easy to play with, without the dirty part.
 
ThW
event loop based?
Here is my usecase :-) bitbucket.org/thomasweinert/carica-sensor-phalanx/src pushing sensor data from an Arduino to the browser
 
Loop is based on socket_select() with a 1 second max IO blocking. There's a branch that uses libev that a user contributed, but I haven't really taken the time to really dig into it, so it's not in the master branch.
 
@SammyK It might be worthwhile to add an "internal" in there
Because it won't be thrown for invalid number of arguments for user functions
That's just a warning :(
@bwoebi Next one... bugs.php.net/bug.php?id=70681
 
8:48 PM
I have some free time, please discuss ... ;-)
 
9:01 PM
ok well, my time is over, keep sleeping ;-)
 
9:39 PM
@salathe OH MY GOD
YOU DIDN'T
ahahaahaha
@Fabor hah, yes
like last year I failed to take like, any photos
 
@NikiC can we, for simplicity, just mark all unbound fake Closures as static upon creation?
that way we don't need to check for scope existence too
 
@bwoebi I feel like at this point the right reaction is to just forbid all rebinds of fake closures
There's too many nasty edge cases
 
@NikiC well, that's what our patch tries to?
 
@bwoebi Nope, patch still allows object rebinds
 
object, yes. But is that a real issue?
As long as you are in inheritance chain for internal Closures… any other issue?
@NikiC I feel like I'm touching rabbit holes all the time… Clsoure binding… temporary freeing… etc.
@salathe starred, as you seriously seem to have bought the domain for that…
 
 
2 hours later…
11:34 PM
So quiet today.. O.o
 
@ScottArciszewski Try adding #top-container { margin-top: -5px; }, maybe #151515 as background for the header.
 
So, this just happened: news.php.net/php.internals/88730
 
I think that idea needs to var_die itself.
 
Yes, great addition, just read that mail...
@Ghedipunk It already did, hopefully.
 
@NikiC function var_die($arg) { die(var_dump($arg)); } yay!
 
11:47 PM
Please, someone respond with:

"Certainly, that's a great feature. I'll even show you how to implement it yourself!

<?php
function var_die($var) {
var_dump($var);
die();
}
I like @FlorianMargaine's version better. :P
 
although technically, it's not the same
it should play with func_get_args and call_user_func
since there isn't something like fn.apply(args) in php afaik
function var_die() {
    die(call_user_func_array('var_dump', func_get_args()));
}
this'll do
 
@kelunik don't share /de/ links
@kelunik so you have to go through a temporary variable
 
var_dump() writes to the output, no need to put it inside of die(), except to ensure that the script stops as soon as the args are finished being parsed, if it matters (which in my opinion, it doesn't, or I wouldn't ramble on about it)
 
function var_die($args...) { var_dump(...$args); die(); }
 
11:52 PM
But it does look pretier to have the var_dump inside the die's parameter list.
 
@Ghedipunk it does. or the guy wouldn't send the email, he'd just use var_dump
 
...or they could just use a debugger.
 
@Danack hey there fancy
 
@Danack That was my first thought, but then I second guessed the needs of their project if they're var_dumping routinely and able to get valuable data out...
 
LGL
Can someone help me with ON DELETE CASCADE, Im little confuse.
 
11:55 PM
That, and I wanted to stroke my ego by showing a way they could do it without a new fuction...
@LGL dba.stackexchange.com/questions/44956/… -- Kill all the orphans!!!
 
LGL
lol
is it okay to kill the orphans?
 
As long as you have backups.
 
LGL
The database backup itself every 7 days
 

« first day (1819 days earlier)      last day (3126 days later) »