« first day (1965 days earlier)      last day (2980 days later) » 

4:00 PM
@RonniSkansing, www.mail-tester.com is cooler, but not working at the moment.
Not working properly
 
@tereško lots of people
 
internet is made of string and bubble gum
 
yup :)
 
4:19 PM
1.) What do I call the mapper between the database and the domain?
2.) What do I call the mapper between the domain and the database?
 
data mapper
and they are the same thing
 
@ErikLandvall John.
 
tyty :)
 
conceptual question, I have a file upload form that accepts 5mb files lets say. Client side javascript checks that it's max 5mb, server side checks that it's 5mb. If a wannabe hacker creates a local form on his desktop and sends a file 100mb in filesize to my server using POST method, how does the server respond. Does it wait for the entire 100mb to upload and then deny him, or does it deny it mid-upload at 5mb?
 
hello
 
4:29 PM
depends on what server you have and how it's configured to error
a smart server will reject it at 5mb transferred
 
i want to print session array in foreach loop
but it give me an error
array to string conversion
 
var_dump it
 
i know why this error comes
 
thanks irc.
 
@Darius i want to perform search machanism on it
var_dump just show the values
also data type
 
4:30 PM
data type of session? O.o
var_dump shows keys and values, right? so access the value, it will be in string format won't it?
 
foreach($_SESSION as $key => $value){

echo $key;
echo $value;
//$c++;
}
here is the code
 
your $value is also an array
 
this session is created on one page like reg.php
$_SESSION[$id]=array(
'name'=>$_POST['n'],
'father_name'=>$_POST['f'],
'surname'=>$_POST['s'],
'dept'=>$_POST['dep']


);
 
use implode() with a unique separator
 
@SajjadKhan echo $key; var_dump($value); ... $value may be of any type, including LOTS of things that can't be converted to strings.
 
4:35 PM
it shows every thing in array is string
 
javascript hurts my brain, i don't get why it seems so much harder than php to me.
Sajjad, what's the end result you want
 
array(4) {
  ["name"]=>
  string(6) "sajjad"
  ["father_name"]=>
  string(6) "jawaid"
  ["surname"]=>
  string(6) "pathan"
  ["dept"]=>
  string(2) "TL"
}
 
type it out
 
i just want to show result using for each than perform searching like where name==@Darius
 
@JoeWatkins In the pthreads server socket example you put something like .... It's pretty clear that people want resources to work, .... what do you mean by resources anyway ??
 
4:41 PM
@SajjadKhan foreach($_SESSION as $key => $value){

echo $key;
foreach($value AS $key2 => $value2){
echo $key2;
echo $value2;
}
}

???
 
give me a moment i check it
 
5:02 PM
@Darius
this code is not fetech the first value
like id
 
@bwoebi you might want to mention that this follows the well-known "robustness principle": be liberal in what you accept and conservative in what you produce
@bwoebi also, might want to provide examples of cases where weak return types could be dangerous
 
I have never had a Reddit account that didn't start with "throwaway".
 
@NorthbornDesign good
reddit is a bad place
 
For PHP? Probably, haven't bothered. For other topics? I'm getting a good, objective response to something I've asked.
 
5:17 PM
Reddit is just snarky remarks and a bunch of "you even lift bro?" skinny idiots
 
@bwoebi Why not just use strict mode? :P
 
5:29 PM
@tereško lol
 
I notice you are not saying that I a wrong =)
 
@NorthbornDesign /r/php is just a bunch of laravel devs anyway - I've done a few tests and the numbers of downvote speaks volumes
 
> It returns data over HTTP, in a very different way from the FTP-based system that we’ve used for years.
FTP - still surprisingly useful.
 
hmm.. anyway ... night guys cya later!
 
5:51 PM
yeah, it's a great entry vector, when you want to mess with some page on a shared hosting
 
@Jimbo it's split between laravel devs, and laravel hators
 
6:11 PM
how can i update a static property ie` foo::$bar` like foo::'bar' = 'some value';` is this even possible?
 
@ircmaxell it's more like someone missed with the axe and chopped of a tiny sliver
 
tried interpolation ${'bar'} and $$val
 
6:52 PM
|o| evenin
 
@Andrea That's what I tried to say in the Introduction section?
@NikiC sorry, I don't want to end up in the ninth circle of hell :-P
@Andrea I can't imagine any examples where people wouldn't say "that's obvious"…
 
Wes
\o
bwoebi did you get "used" to the logo? worth finishing it? suggestions?
 
@Wes I'll decide tomorrow … too tired to give you meaningful advice now; sorry
 
Wes
no probs. had an exam?
 
today? no … but awake for 18 hours…
 
7:04 PM
@all anyone know how to check that file structure matches against a predefined array?
 
Wes
@bwoebi lol, you should sleep more at your age :P
 
@Wes oh, I'm sleeping enough.
I expect to sleep at least 8 hours this night…
 
Wes
that's actually the minimum amount :D
 
It's just a side effect of ensuring that I'll actually be awake at 7 a.m. yesterday
 
Wes
lol
 
7:13 PM
so … slept a bit at weird times ending up awake at midnight yesterday
had an exam at 8 a.m. yesterday^^
 
Wes
:D sounds familiar
 
And … it's not that a great idea to sleep while the exam is going on ;-D
 
Wes
i woke up about 2 hours ago, after 6 hours sleep in several stints (got woke up by clients at least 3 times. had to answer phone and talked as a zombie) :P
 
good that I need/have hearing aids and thus my sleep won't be interrupted. Sorry future clients :-D
 
Wes
lol
 
7:25 PM
hey guys
 
posted on March 03, 2016 by nlecointre

/* by Thom */

 
so I have a common opinion question.I have only used 1 framework in php and that was codeigniter. Am looking to learn how to build rest apis with php so am wondering which frameworks would be recommendable. I've seen mentions of slim, lumen, laravel and some others. So weighing learning curve vs usefulness of what I would learn what would you guys recommend
 
@GotaloveCode ahem
 
@Patrick hi dude.I created a github account finally let me fork that so I dont lose it again.Thanks again
 
7:42 PM
no need to fork, just star it. then you can find it again
forks are creating a copy of the repository
 
user986408
7:55 PM
how would you model a changelog of a certain model to be later used as notifications?
 
o/
 
user986408
i.e. creator of an event changes the event title and you want to notify all participants of the change
 
@codepushr I predict you will be searching for "event sourcing" in the very near future.
I haven't watched this - but the guy is reasonably good verraes.net/2014/03/practical-event-sourcing
 
user986408
@Danack cool. will check that out, thanks!
 
user986408
it sounds like a lot of refactoring tho
 
8:10 PM
cool thanks
kind of already did
no harm though
 
@Danack since I suspect he's using an ORM, he will search for that term, but then move on to something ... emm ... more familiar
 
Is there a specific reason why you indicate that your tut is for php 5.5 and above @Patrick
 
also, @codepushr, what you were referring to is not "a model"
 
user986408
actually i'm not using an orm
 
hmm ... then there is still a hope for you
 
user986408
8:17 PM
it's golang. plain DAOs and DTOs and mongodb behind
 
user986408
but anyway
 
user986408
what do you mean by "is not a model"?
 
PHP 7.0.4 released and says there are security fixes, but I don't see any CVEs in the changelog. How do I know which fixes were security related and if it effects me? I really don't want to have to read each bug report.
 
8:44 PM
Good morning all
 
@Orangepill E_MORNING
 
@Orangepill Yo
 
9:03 PM
@crypticツ Not every security fix gets an cve assigned
Wrong window \o/
 
maybe the changelog should note which fixes are security related then? Even something as simple as an asterisk next to it would suffice.
 
any phpunit-travis experts here?
 
@crypticツ Just assume anything with memory / segfault in it a vulnerability
 
@PeeHaa that's against our policy, we're supposed to get a CVE for each security issue D:
 
Hmm seems like many indeed get one assigned cvedetails.com/vulnerability-list/vendor_id-74/product_id-128/…
@Andrea BTW PHP and disclosure is a joke
 
9:17 PM
@PeeHaa :'(
PHP and stability is a joke
 
That too
:-)
 
updated PHP on my server and suddenly segfaults, segfaults everywhere
 
eeeew
 
PHP broke my todo app. Now I can't organise myself. PHP IS LITERALLY RUINING MY LIFE
9
 
hehehe
You came from .3?
 
9:18 PM
@PeeHaa there is the where you can download the PHP source file through built-in server. Yeah, you don't use it in production, but people use it as a quick way to demo stuff to clients, and other devs.
 
@PeeHaa I don't know if I was going .2 -> .3 or .3-something to .3-somethingelse
I'm using Ondrej's Ubuntu PPA
 
My policy (yay I am actually in that position to do this) is to wait 2 weeks and install to update @crypticツ
That is unless shit is broken which is what the two weeks are for
 
Wes
my policy is blaming someone else. a good aspect of not having to deal with sysadmin stuff
 
Blame should be on whoever was last to login to the server. He touched it last.
 
\o/ We have color!
 
Wes
9:27 PM
now needs just some ascii art!
 
I am thinking about whether it's going to have ascii art or not
 
throw some cowsay in there
 
perhaps at least the welcome message
 
or ponysay, perhaps even better
 
I only know cowsay
 
ty
user image
2
 
@Wes do you know of anyone working on a struct type for PHP?
I recall seeing some discussion on that.
 
Wes
bwoebi and levimorrison
 
K thanks
 
Wes
9:45 PM
i'm writing an rfc. right now. hide yo wives and yo kids
 
I'll bring them along to vote.
 
Wes
lol
 
@rtheunissen Struct meaning..?
 
Something with fixed properties that isn't an object?
Basically a C struct, in PHP. Haven't kept up with discussion on this at all, was just curious.
 
Wes
there is a rfc already, afaik (or was that enums?)
 
9:53 PM
Good good, forget I asked :)
 
10:06 PM
PeeHaa has stopped a feed from being posted into this room
3
 
Good bye not funny ad whore
 
@Patrick so I read through the tuts 2 hrs and sth later and its just as tasking learning about all this packages and reading their documentation.I skipped that part especially.In the end creating your own framework seems like so much more effort than you spend learning a new framework.
I think I will try do this in a weeks span.
 
@GotaloveCode what you learn from that tutorial will be far more valuable to you than just learning another framework
 
so more time but definitely more value
Learning it over a span of time will help
 
Wes
10:13 PM
@PeeHaa you could add cyanide and happiness though. these are more likely to be funny, even if not related to programming :P
 
I will keep at it Kevin
 
@GotaloveCode :+1:
 
I should make my blog have an RSS or Atom feed so it can be linked to by room 11 :p
 
@Wes Yeah I like them
Cannot find the rss feed though. So either you have to gimme or I have to wait till I am sober :P
 
Amin Yashed lol
 
tnx
 
PeeHaa has made a change to the feeds posted into this room
posted on February 28, 2016

New Cyanide and Happiness Comic

posted on February 29, 2016

New Cyanide and Happiness Comic

3
posted on March 01, 2016

New Cyanide and Happiness Comic

posted on March 02, 2016

New Cyanide and Happiness Comic

posted on March 03, 2016

New Cyanide and Happiness Comic

 
Wes
@Feeds haha
 
See ya all @ rebecca o/
 
10:45 PM
hi guys how to import .opt .frm .myd ,mid files to MySQL?
 
11:14 PM
I have no idea what any of those file extensions are.
 
binaries file
 
@undefined stackoverflow.com/questions/5745221/… did you at all search SO?
there are lots of posts about the topic.
 
guys how can i remove the color blue with preg from this code
<m style="color:red;">"(update<m style="color:blue;">=</m>)"</m>
 
@ChrysUgwu why use preg? just use str_replace
 
nah i want if its withen the ""(qoute)
like remov color from any tag inside the quote (" ")
 
11:22 PM
so any color:XXXX you want to strip out so it's style=""
 
yeah like i may have this case
" <i style="color:green;"><i><i style="color:blue;"><i><i style="color:pink;"><i>"
i want to remove all colors from tag inside (" ")
 
@ChrysUgwu why not use DomDocument?
 
dont knw jst that i have been using preg all along, cant preg do it?
 
thats Dom
 
11:30 PM
aaand tiny avatar.
 
no way around??
 
11:51 PM
There is no sane, clean way to perform the operation you want to perform with regexes. Oh, you might try and even think that you've succeeded, until it blows up in your face like all attempts to process HTML with regexes do. Just use the DOM, or a wrapper around it.
 
Wes
@rtheunissen you'll be the first reading it :P i think you'll find it interesting
 
k hw can i do it with DOM
 

« first day (1965 days earlier)      last day (2980 days later) »