« first day (1926 days earlier)      last day (3033 days later) » 
00:00 - 17:0017:00 - 00:00

12:00 AM
@CrazyNinja two tables need at least two parameters as you need to pass the two names.
And that's over-simplified, as this yet does not cover what the relation between the two tables are.
 
@hakre yes. so, the ugly possible working solution would be something like this >
$reason = "File is missing. Please choose a file less than 500MB in size.";

    		$subjects = DB::table('subject')->get();

    		$age_groups = DB::table('age_group')->get();

    		return view('unicon_admin.uploadVideo')
    			->with('sub',$subjects)
    			->with('agecat', $age_groups)
    			->with('error', $reason)
    			->with('title','Dashboard');
 
Hmmm
@CrazyNinja How about.. Request::hasFile() ?
 
@Xorifelse that's the condition for my if condition
 
:| must have read over it
So if I understand you correctly, it works with a file under 500mb?
 
For the moment, If the condition is true, i don't do anything.
Wait a minute. I mean, this is very basic kind of redirecting. I find this approach was very easy in servlets.
c'mon laravel
 
12:17 AM
And.. what about this
redirect()->action('UploadVideoController@loadWithFailedReason', ['error' => $reason]);
As action always expects an array
@CrazyNinja Biep
 
12:56 AM
sup
 
But but
You died in the movie
I saw it with my own eyes
 
that was just for show
 
Well then, if the cat is out of the bag.. you could have performed a better job swining that light saber
swinging*
 
im old..
 
meh
on the force when feeding, getting old one does not
 
1:08 AM
To be honost..
I'm more of a startrek kind of guy
Never watched a movie of star wars, except the latest one :o
 
I'm very tempted to block you. no offense
 
And I've come to realise, one who likes star wars does not like star trek
 
false
I love both
 
:o
 
1:10 AM
Well, for most people I've talked with its true
And so is the other way around
You're just special ":p
 
yeah, I know
hum
I mean
I know that most people don't like both
 
Its like family guy and simpsons :0
 
I know none of them... I guess that leaves space for sw and st
 
sg :o ?
 
oh man, that too
and what about battlestar galactica
 
1:12 AM
I am very, very, very sad they canceled it
I liked it, but.. too complicated
 
I feel you
 
I got confused
 
tbh, I just watched the first 8 or so episodes
 
Well, it actually begins at the end of season 1...
 
1:16 AM
o.O
they cancelled BSG?!
 
so say we all says he
 
xD
No, SG:U
 
oh, right, yeah :(
I think I'm going to follow Phil Sturgeons lead and watch SG1 on Netflix
 
Ending a 16 season show just like poof
 
SG:U was 16 seasons? :P
SG1 had it's own proper ending
 
1:19 AM
SG: 10 seasons, SG:A 4 seasons, SG:U 2 seasons.
 
I only like star wars 4 5 6 7, 1 2 3 blew
 
meh. I only dislike obi wan kenobi jumping in the middle of hundreds of droids to fight with some stupid android
he's like the greatest force powered being of it's time (mind yoda)
he shouldn't be doing that.
 
wanted to go out in a blaze of glory
I do need to update my profile to something like.. at least my grandson loves me.
 
> FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features (mostly) useful for heavy-loaded sites.
Wait, so FPM isn't just FastCGI with processes, but rather a whole reimplementation?!
Why do we have FastCGI, then?
 
dat feel when you realize you have no idea what you built your ec2 instance with
 
1:29 AM
No mysteries to solve on overflow, ill be watching a movie
Any recommendations?
 
@Andrea isn't one of them older then the other?
@Xorifelse apparently interstellar is great
 
@FélixGagnon-Grenier sure, but wouldn't the newer replace the older?
 
Seen it
 
@Andrea yeah hopefully. isn't it slowly doing it?
@Xorifelse Willow
 
@Xorifelse just watched that body changed one and it was so-so
 
1:30 AM
I mean, I'm just wondering why we haven't deprecated FastCGI and gotten rid of it
 
hackers is on netflix for awhile
speaking of frameworks but does anyone use CI anymore?
 
Oh my, Willow brings back memories
 
:)
@Andrea hmmm... isn't it part of fpm?
Unless I misunderstands things, fpm is some kind of manager for fastcgi processes?
 
@FélixGagnon-Grenier I don't think it works like that
it spawns instances of itself
oh, FastCGI is part of the CGI SAPI
so yeah, we have two different FastCGI implementations. I don't know how to feel about that]
 
2:00 AM
@Darth_Vader yes, people still use it in various companies, but majority of people in this chat room would describe it as "legacy software"
 
@tereško ah.. I wanted to step outside something other than WP to build a few sites but lost. Think I should learn more on WP
 
and I personally would like to not that CodeIgniter is one of the worst frameworks in PHP because of complete lack of quality
@Darth_Vader no, you should try learning more about programming practices and start using up-to-date tools
just because you are stuck on WP (which admittedly is terrible), it does not mean that you should stagnate
 
Ive bought a few books from Larry Ullman that have been great reads but sadly no one locally has anything for fun in regards to PHP
 
my condolences
 
and Lynda.com blows..
 
2:05 AM
wat?
 
now I am really confused
 
its only for basic introductory. I tried to enjoy the WP videos but when they get into code and then the cut a few sections short by saying just use X plugin which defeats me learning
 
what exactly is your current skill level?
 
Ive built a few sites but I really want to master PHP so I would say medium. Focusing on OOP to improve my coding practices
 
@Darth_Vader you might find this list useful: stackoverflow.com/a/16356866/727208
 
2:11 AM
@tereško I agree and have read that but I learn better by doing and implementation. I can read tons of books and "think" i get the idea but I want more and I want to delve into a few larger size development sites other than blogs
 
:28324543 model is a cocaine powered mobile device for advertising of clothing
 
:) why so serious?
 
you can use it in your next interview
 
I promise I will
you mean credit free, right?
 
something like that.
 
2:17 AM
@Darth_Vader for more immediate improvement you should learning about "git" and start utilizing "version control" in your projects
 
already do that and learned that from work
 
oh .. at least you have that
in that case, watch the lectures I linked you to and come back with questions
 
do you use bitbucket for private and test repos, or some home made remote origin?
 
work uses git and just migrated to bit
 
@FélixGagnon-Grenier public project go on github, personal stuff lives in my VPS, at previous workplace I had set up gitlab server and bitbucket is only for random stuff (when various unaffiliated people need a private project)
 
2:27 AM
speaking of git, where can I tell new members to learn it? Ive referenced Lynda but so far the best one I saw on the topic for free was from codecademy
 
there is a free online book
 
sweet. downloaded it
 
2:45 AM
This make you cringe at all @Jimbo ? :)
 
Wes
2:58 AM
mornings
@Fabor NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
 
3:36 AM
@Fabor kids of rich people sometimes are broken
 
4:06 AM
poor ducati...
 
 
3 hours later…
7:07 AM
moin
@Fabor /me shudders
 
@JoeWatkins moin
 
moin bob
@bwoebi
krakjoe@fiji:/usr/src/php-src$ cat test.php
<?php
function other($thing) {
        return $thing;
}

function something($thing) {
        return other($thing);
}

var_dump(something($argv[0]));
?>
krakjoe@fiji:/usr/src/php-src$ phpdbg test.php
[Welcome to phpdbg, the interactive PHP debugger, v0.5.0]
To get help using phpdbg type "help" and press enter
[Please report bugs to <http://bugs.php.net/report.php>]
[Successful compilation of /usr/src/php-src/test.php]
prompt> break other
[Breakpoint #0 added at other]
any ideas why ?
 
no
hmm, maybe
let me check how exactly they work
 
me neither ... I started a bunch of changes yesterday, then went to test them and got this ... then tried against master and it done the same thing ...
didn't really look ... gave up ...
phpdbg_execute_ex is not being used
:s
 
7:18 AM
@JoeWatkins uh, that's bad
 
yeah
 
it definitely will be a terrible "star trek movie", but it looks like a fun sci-fi/action movie
 
@JoeWatkins is the issue around phpdbg_prompt.c:1628 ?
 
don't think so, it's never entered
 
never … do you have any conflicting ext?
 
7:23 AM
urm
woopsy
sorry :)
 
PEBKAC?
 
@JoeWatkins xdebug installed? :-P
 
not sure what ext it is
stupid me
@tereško indeed
good, tests passing :)
 
hehe
 
7:40 AM
\o
 
8:17 AM
hello
@Orangepill \o
 
8:29 AM
@bwoebi I got all bps using zend_string, now to make parser emit zend_string*
 
@JoeWatkins nice =)
sounds like a bit of work ^^
 
not sure yet, can't remember how it works :D
 
I need a regex that will match at least one uppercase letter and at least one lowercase letter and length must be 6 to 12 character
[a-zA-Z]{6,12}
it is not woking
 
for password?
 
hey I just migrated a magento site and the homepage loads as plain text but a php info page and all the admin area is fine...anyone seen this before?
all modules and configs are setup
i've migrated these heaps just this one is giving me issues
 
8:41 AM
@iroegbu yes
 
@NeelIon why are you limiting it to twelve?
 
I need it
 
8:59 AM
question, if the internal buffers are full, does kernel then begin dropping tcp packets? (in order to have them retransmitted?)
I have that feeling that Aerys is very prone to flood attacks…
and will quickly go out of memory…
I feel like I need to put an \Amp\disable on the readwatcher whenever buffer gets too full…
 
9:22 AM
o/
 
eMM
[Laravel 5]
hi guys, how to rewrite 'example.com/en' to 'example.com/'?
as in
'example.com/en/about' to 'example.com/about'
'example.com/en/blog' to 'example.com/blog'
 
why exactly does HTTP/2 have a global flow control window? to be able to prioritize control frames separately…!?
 
9:55 AM
Note: with references, it might be possible that assignments without further use aren't superfluous ... github.com/amphp/aerys/issues/74
 
@bwoebi Yes, IIRC
 
@bwoebi First time I've ever seen that done...
@bwoebi TIL... :)
 
@bwoebi or with raii for that matter
 
@NikiC actually, if you rely on raii (in that context), you do something very dangerous ^^
much worse than refs
 
@bwoebi I'll be honest, I don't understand that code. Can't you just initialize it to null and drop the reference magic?
 
10:10 AM
Actually @tpunt you were right, it became redundant, but not through that commit.
@tpunt Before github.com/amphp/aerys/commit/… it was necessary (before $dataArr was used)
but now it's indeed redundant...
@NikiC @tpunt okay, changed now :-)
 
yay
 
applying for a laravel job
 
@NikiC Should be now minimally faster for not having to dereference and increasing branch mispredicts :-D
I'm not sure if this is an issue or not… but theorectically, when you're on a high-speed connection you just can pipe tons of data per second into websockets… the data will be buffered through the whole time the handler is alive… so you just send 1000x 2 MB data frames onto an handler which needs to wait for some I/O in order to trigger an Out of Memory…?
I certainly can load-balance when I have multiple connections, but on a same connection?
I also could limit the number of total frames per unit of time, but that's maybe intentional…
 
10:31 AM
@bwoebi Introduce rate limits and close the connection.
 
@kelunik yes, which limits?
I don't need to close the connection, all I need is to throttle is by disabling the read watcher and having the other end retransmit.
 
Research what other servers do and make it adjustable ;-)
 
@kelunik I haven't found very much on that topic (it's relatively new too, websockets) and I don't really want to bother with reading deeply into their source code.
 
8 MB / minute? :P
 
that's not much
just 1 MBit/s …
 
10:38 AM
Which is fine for websockets I think.
 
as long as you don't attempt to send a file over a websocket.
 
You shouldn't use it to transfer large data blocks. If your application needs that, just set the limit higher.
Generally, I think it's a good idea to have file uploads on a separate instance, that knows how to handle large payloads and streams those to disk directly. Otherwise you have to be very careful with buffering everywhere.
 
I agree
 
@bwoebi Yup, per connection. One could still have many connections.
 
@kelunik but connections can be load-balanced easily
 
10:43 AM
Do we need an API to make it possible to do things like ratelimiting connections / IP?
 
I think that's a task for a lower-level tool
 
so far the patch is 4700 lines ...
 
@bwoebi You still need the hardware to handle the load. Otherwise you have no option there.
 
@JoeWatkins excluding autogenerated files?
 
not sure
no inclusive of those
 
10:46 AM
@kelunik sure, but that's then not a business of Aerys.
 
I think we need documentation what it does and what other software should / must ensure to protect against DoS
 
@kelunik for connection level of ratelimiting, you can e.g. employ iptables with, let's say, 20 connections/second
 
I know.
 
11:03 AM
Hi
All
i have a query where i want to freeze one's account by clicking on "FREEZE" but after that the "FREEZE" should change into "UNFREEZE" even after the page is loaded
how can i do the above
i could change the FREEZE to UNFREEZE with Javascript but after refreshing the page it again become FREEZE
as far as i know we can use switch case in php by inserting 0 for Freeze and 1 for Unfreeze
can anyone please help me out
????
 
@TahaDhailey What have you tried?
I just want to say, I'm really impressed by how you guys are managing to keep a high level discussion in this room despite the near constant help vampirism. cc @bwoebi @kelunik @others
 
i said na javascipt i hide the Unfreeze class and then onclick replace freeze with unfreeze
 
@MadaraUchiha That's easy… we work on actual projects and then have actual questions based on them. A few vampires get help if they're not too bad and the others are just right out ignored.
… And we're able to not have too many meta-discussions. [which kills the JS room.]
 
@bwoebi Yeah, we're trying a new thing by moving all the meta to issues on a GitHub repo
See how that plays.
 
@MadaraUchiha could be worth an attempt… but in general, you shouldn't need much meta-discussion at all.
 
11:12 AM
@bwoebi Agreed.
 
Can any one help me out please??
 
@MadaraUchiha But it looks already much better than what I had read in-chat.
 
so no answers??
 
11:56 AM
@bwoebi Do you still have access to @LeviMorrison's machine for benchmarking?
 
@kelunik Possibly, but his machine is down currently
 
@kelunik =) I found it was possible to reflect/store xss via. self-signed SSL cert (putting payload in stuff like organisation name) and a email spoofing thing which is being fixed afaik
 
Also, I'm usually benchmarking in a VM on my iMac…
 
@RonniSkansing Nice. :-D
 
;) actually many of the SSL checkers wasnt really validating or sanitizing their output
 
 
1 hour later…
1:12 PM
10
 
@Andrea is it a deliberate choice not to include the non-well formed numeric string in the warning message?
 
2:02 PM
Anyone recommend a phrase that means "a different kettle of fish" - but isn't likely to confuse 80% of the planet?
 
Wes
@Danack another pair of shoes?
a different matter?
 
@Wes I want to decrease the percentage......
 
Wes
lol
 
@Danack "shit hit the fan"
 
j0h
there is a page, https://scholar.google.com/citations?view_op=view_org&hl=en&org=17949045254879111972&after_author=CpQtAGrg__8J&astart=10

where I want to get the number between t that tag thathas this tag:
<td class="gsc_rsb_std">7670</td>
I want that number. in this case, 7670. But if that numer where to change, I want to get that number instead. How can I do that with php?
I tried strip_tags, but I was confusedd about what that function does, I thinkits not what Im looking for.
 
2:06 PM
@j0h Look up DOMDocument
 
@j0h use github.com/FluentDOM/FluentDOM and all of your wildest dreams will come true.
 
j0h
ok I'll look
Can I use DOM on html files as opposed to xml?
 
@j0h Yes.
 
yes.
 
j0h
ugh.. how do I install FluentDom?
Do I just put that source folder some place then use require?
 
2:21 PM
@j0h just use fucking composer - getcomposer.org
 
Wes
@Danack did the logo get politically correct colors?
i don't mind the skin color but that orange jacket...
 
"https://getcomposer.org/img/logo-composer-transparent".rand(0, 6).".png
 
@j0h I don't think you need FluentDOM for a task this relatively simple
 
And yes 'programmer art'
 
Try using the native DOM first, and if the solution you come up with isn't good, look at libraries.
 
2:29 PM
!!urban programmer art
 
[ programmer art ] Extremely poor quality meshes, textures, or other resources used in video games, which are created by programmers instead of real artists.
 
Wes
the fluo green hair is the best though
 
j0h
@MadaraUchiha yeah I'm reading on the php page about DOM. I will chack out fucking composer too
 
least worst.
 
ern
stackoverflow.com/questions/34969970/… can someone comment if he is running on a developer tool-like wamp-mamp etc..
and hi all..Also sorry if i am asking in wrong place :)
 
2:39 PM
The place you're asking in is fine to ask......but also fine for people to not answer.....we don't tend to have many wordpress people around. wordpress.stackexchange.com might be more like to have a response, maybe?
 
Hello, Can anybody recommend a good and updated tutorial about writing a php extension?
 
ern
@Danack thanks..I have an answer for OP's question but it depends on if he is on a developer tool like wamp-mamp etc..But i can't write comments because of rep..Nevermind,Thanks anyway..Hava a nice weekend ..
 
Put stuff you're unsure of as a comment?
 
How many pitchforks would openssl_encrypt_aead(string $data , string $method , string $password, AEADFlags $flags, [, int $options = 0 [, string $iv = "" ]] ) raise?
 
2:56 PM
\monning
 
Wes
\o
 
ern
@Danack my answer based on a guess,"he is working on a developer tool"..but it's too long as a comment in details,how browser works etc..But nevermind This is Sunday and i have a final exam tomorrow :)
 
ern
3:22 PM
@D.Elp. hackingwithphp.com/20/0/0/writing-extensions this seems a good starting point.. But for further it's about how you are good at C and how much do you know about core php php.net/manual/internals2.php .. Sky is the limit ..
 
3:54 PM
@zaq178miami Hi ! :) Thanks for the fast replies. Does the amqp.so module support ssl ? Also, I'm curious if there's a way to have a persistent connection of some sort.
 
@D.Elp. What is it you need this extension to do, anyway?
 
4:12 PM
@ern thanks brother.
@jbafford just extending my abilities
@jbafford and I made intense researches and I came to a conclusion that multithreading in php is the best option for me.
 
ok. Don't forget that you can do this from userspace, though.
 
thank you brother :)
 
There's a pthreads extension you can use that lets you do threading directly from php code.
So if the only reason you were looking into writing an extension was to do multithreading, it's not absolutely necessary.
 
@AdrianSandu Hi, no, php-amqp doesn't have SSL support yet. It was requested multiple time already, so it maybe added in further releases: rabbitmq-c has ssl support, so it should not make any problems to pass this functionality to PHP.
 
4:17 PM
@AdrianSandu As to persistence, yes, php-amqp allow you to have persistent connections. Check AMQPConnection::pconnect() from stubs. Also note, there are may be only 1 active persistent connection to unique resource at a time withing single runtime (identified by host-port-user-passwd-vhost and few more config params)‌​.
 
@zaq178miami awesome :) Well, I finished my hello world .. implemented in my app already .. all is up and running :)
 
@jbafford yes I know, the problem with pthreads is, I will depend on Joe Watkins on every new release of php, besides I believe I can create it myself... I just want to have control over possible tools myself.
 
@AdrianSandu AMQP is pretty simple, just follow the rabbit^W docs
 
ok. I still think multithreading is the wrong solution for you based on what you've already said. But, good luck!
 
o/
 
4:19 PM
@zaq178miami heheheh. I'll stick to the amqplib for now 'till ssl is implemented.
 
@AdrianSandu yeah, it may be good choice for beginning. The performance difference shouldn't be large, unless your have high connect/disconnect rate (e.g. publish messages from highload front page).
 
why do you think multithreading is a wrong solution?
because of security ? memory ? easy alternative ?
 
Compared to a single thread with non-blocking I/O, multithreading is way more complicated.
 
so far , I found out that facebook also uses mutlithreading
and long polling
@jbafford it is complicated but not impossible
 
@zaq178miami That's exactly the thing that happens .. I don't have too many visits but disconnect/connect again and again each time can be noticed
 
4:22 PM
Didn't say it was impossible.
But I've also written enough multithreaded code to understand that it's usually not the best solution to a problem because of all the complexity it adds.
You open yourself up to classes of problems that are just not possible with single-threaded code.
 
@AdrianSandu if you will have less than 1k connections per min, I wouldn't worry at all (ok, it MAY be a problem if you share RabbitMQ instance/cluster with some other apps that produces large connection number).
 
@jbafford yes, know. but for the sake of independence and experience I must try
 
@zaq178miami I have under 100 .. but the rabbitmq server is about 150ms away from the producer
 
@D.Elp. well, no one is going to stop you, and experience is often the best teacher. :)
 
@AdrianSandu You can read rabbitmq-users, there was some discussion about peak connects/disconnects number, i guess it was within last month or two
 
4:26 PM
@jbafford that , I agree! experience is the best reacher :)
 
@bwoebi I compiled non-zts and zts versions and am still seeing the same wrong behavior. I'm compiling on the PHP-7.0 branch (7.0.4-dev).
Note that the output of the script should be:
 
@AdrianSandu then you are safe, i guess =). If you use Linux box, it may cache tcp connects to remote server, there is such option. Don't use it. It will lead to problems (that thread on rabbtitmq-users was exactly about that, there even was a so question with discussion about that too).
 
Never reached. Wrote 20 bytes.
Received message: This is just a test
 
@zaq178miami not using that .. that's why I was thinking about a persistent connection .. can't do that with the amqplib though .. right ?
 
@Trowski hmm, I get that, just additionally about 300 times "This is just a test"
 
@bwoebi Right, that's completely wrong. Plus it also says Wrote 0 bytes.
 
@AdrianSandu There was report in php-amqp gh issue about using both php-amqp and php-amqplib: extension for publishing and lib for consuming.
 
@Trowski says wrote 20 bytes for me
 
@bwoebi Odd. But either way, it's executing the same line of the generator over and over again.
 
@AdrianSandu there was some talks in gh issues or in irc about providing low-level interface from php-amqp that could be used by php-amqplib, but no progress after that, i'm a bit overloaded now, so didn't even make aresearch
 
4:30 PM
@zaq178miami well, that's what I was thinking .. using the lib for consuming .. and the pecl .so for producing ( persistent connection )
 
@Trowski yes, but it stops somewhen after like half a second
 
@bwoebi Right, before it did it indefinitely.
Either way it's still very wrong.
 
@AdrianSandu here is report about your use case, I guess: github.com/pdezwart/php-amqp/issues/136#issuecomment-140043121
 
@zaq178miami
@zaq178miami grrr, got to get used to this chat .. IRC would of been so much better .. anyhow .. I'll migrate to the pecl .so when the ssl support is in.
 
ern
@D.Elp. Standalone Multi-threading Web Server .. This is how facebook achieved this ..Facebook case was about scability.. For more info check hhvm.com
 
4:38 PM
@AdrianSandu start watching github.com/pdezwart/php-amqp or just github.com/pdezwart/php-amqp/issues/118 to keep updated when it will be ready.
@AdrianSandu the reason why SSL still in low priority is that use cases I know happens in intranet, in my cases mostly withing few racks nearby, so ssl isn't necessary at this time and would decrease performance a bit (with 10k+/msg per sec it matters)
 
@zaq178miami makes sense.
 
@bwoebi I don't get the same behavior when using the v1.x branch of icicleio/stream (which is meant for PHP 5.x). That version doesn't use return in coroutines to return values, only to return early after yielding the return value. Possible starting point for debugging.
 
@Trowski okay… let me check…
 
I need help
http://stackoverflow.com/questions/34977640/how-refresh-image-name-automatically-using-javascript
 
4:49 PM
@Mouhssinduoi it's unclear to me what is is you're actually trying to do.
@Mouhssinduoi What exactly is it you're doing with SimpleImage? What exactly is it you're trying to change when the page refreshes?
 
This is what he is doing
http://fhamatoor.com/fb/en/gameid5/
I want to make the change with main.jpg Reload this Page
 
Yes, but it's unclear exactly what you want to have happen.
 
I want to change the picture every time the page is loaded
randomly
 
Ok, but what does that have to do with SimpleImage?
If you have a list of image names, you can just replace the image name in your <img> tag.
 
I want to change the location of main.jpg
The resize the image automatically
$img = new abeautifulsite\SimpleImage('main.jpg');
 
00:00 - 17:0017:00 - 00:00

« first day (1926 days earlier)      last day (3033 days later) »