« first day (2143 days earlier)      last day (2795 days later) » 
04:00 - 19:0019:00 - 00:00

4:37 AM
Aggg this language may well drive me crazy ... No, its too late; I am now certifiably insane ...
How do you debug; Is there any way to set breakpoints; Any tips for a php noob?
 
Zend-certified insane PHP dev?
 
Thanks for the pointer!
var_dump, you have to write into the code all over, right?
 
5:00 AM
o/
 
Mornin, + timediff % 24
 
 
1 hour later…
6:07 AM
hey guys
 
6:37 AM
hi guys
can I create database in an editor like creating tables and so on?
in the web directory
 
@iain Yes, in PHPDBG you can set break points.
 
7:08 AM
@kelunik Oh, that sounds promising; thanks a lot. Could be a superb reason to get the *f out of netbeans and back into vim.
 
<3 vim
 
tying to get along with Jvi in netbeans, but it is just not happening ...
 
7:23 AM
Is there a way to put the php doc into the linux manpages? c is in there natively so I haven't needed to look at this yet.
oh, that is what wget is for?
 
@littlepootis we cannot be friends.
 
CLI now this looks more like it :)
 
Wes
7:46 AM
roarning
 
morning
 
@Saitama vim is awesome.
 
posted on August 28, 2016

New Cyanide and Happiness Comic

 
8:03 AM
mornin
 
@littlepootis vim + unix just is :)
morning
 
Morning
 
never found any other soft that is able to correct my atrocious spelling; vim is the only editor up to that job.
 
morning all
 
8:26 AM
hello
 
9:07 AM
@Sherif why hate for all functional languages?
 
9:18 AM
he's probably just experiencing a normal rejection reaction from close contact with Java culture
 
:P
 
@tereško If you have a second; Is there a way to display which flags were used when a package was installed?
 
packages usually do not get installed using specific flags
what exactly are you trying to do?
 
so if I want --with-readline with php
 
@iain you should be able to see that in phpinfo()
those are the flags that php (in your package) got compiled with
 
9:30 AM
oh of course, yes Id forgotten about that command ... should work from the terminal too, I suppose.
 
php -i
if I recall correctly
ir on your case: php -i | grep readline
 
/etc/php/7.0/cli/conf.d/20-readline.ini,
So ini file is parsed?
 
probably
I dont know
havent used ubuntu since it was 5.10
 
And what I am trying to do is get my head around php, its in a while loop when on a page of html?
 
wat
your english sucks
 
9:39 AM
Yes a Unix man, I have to admit that I am curious about bsd
 
if you meant about how php website works on a server:
 
Sorry I am using colloquial engllish there, and bing lazy with it ...
Yes exactly.
 
PHP is a tumor that's attached to Apache or Nginx
 
Yes when a page is generated by apache
 
@MadaraUchiha lol
 
9:40 AM
computer gets are request, webserver starts up php runtime, loads the code, sends the output to browser and then php runtime gets destroyed
 
When Apache (or nginx) gets a request (from the OS network interface) it will match it against its rules
If it matches a rule that says "go run this PHP script", it will find the correct PHP script (usually, by directly mapping to .php files on the server)
It will then fill the $_GET, $_POST, $_REQUEST, $_FILES etc superglobals, and invoke the script.
 
the submit button in the browser is a function that interrupts a while loop?
 
Whatever the script outputs to STDOUT (with echo, print() etc), Apache captures, and returns to the client as the response.
 
@iain there is no "while loop"
 
^ dat
 
9:42 AM
@iain No. Apache will spawn a php process whenever it gets a request
(By default)
 
Figuratively I mean, the browser page when loaded, pauses the program.
 
@iain Pauses which program?
 
@MadaraUchiha what are the main triggers for this?
 
@iain An HTTP request, on the port Apache is listening to, matching the rules configured to it.
 
Ah, tinnitus, my old friend.
 
9:45 AM
It doesn't even have to be a browser, I can invoke a request to a PHP script from the command line with curl.
 
ok, I think I am with you
 
@iain when you load the link, apache starts a programm, when the page is loaded, the program gets destroyed
 
So the browser submit sends a signal to the apache port
 
there is no "loop"
 
to tell it to continue with the variable given
 
9:46 AM
there is no "continue"
 
I was imagining a while loop in the apache code ...
as it parses the php / html
 
also, there is no "spoon", but I digress
that would be a common misconception for someone with java background
 
so I was wanting to be able to stop the code at specific lines to get a better idea of what is actually happening; this my investigation into phpdbg or something similar.
 
@iain You want a debugger.
phpdbg should do fine.
 
Yes looking at installing phpdbg at the moment
 
9:49 AM
@iain you can always do it the poor-mans-way: var_dump($variable); exit;
 
I was looking to see if --with-readline option was set, I think it is
That drops the specified varible into the terminal at the given line I presume?
ah and exit jumps out.
 
no, "jumps out", it just "kills the program"
 
would need phpdbg I suppose for that.
 
look at it as the backup option, if you dont get phpdbg set up
 
Good to know.
I hate landing in netbeans with a new language and not having any idea how it all connects
 
9:53 AM
there is also an option to call error_log(), which will just write something in your /var/log/apapch2/error.log
 
Scary as hell for php ;)
Oh thats really cool
noted
 
@iain the difference is that with php you dont have to compile anything
you just fiddle with it, save the file and press F5
 
the runtime is hard to follow at first, I guess untill it becomes familiar.
@tereško I need to do more fiddling ... me thinketh.
Sorry my English is more than a little abstract there ... Thanks for the pointers guys, I am going to play around with those tools.
 
10:10 AM
Hi all, have anyone who is know about wordpress?
 
no
 
Wes
woke up with the "british grenadiers march" stuck in my head. and it's still there
po po po po pororo po po po poroporopo
 
@Wes You alive?
 
Wes
yes. you wish eh :B
 
10:16 AM
Heard the earth farted on you or something of that sort.
 
lol
 
Wes
that's incorrect
Aug 24 at 9:07, by PeeHaa
What did you do @Wes?
Aug 24 at 9:07, by Wes
i farted
 
I see.
 
@MadaraUchiha you mean that "weather bomb" thing?
 
@tereško I have no idea what that "weather bomb" thing is.
 
10:18 AM
earth farted, japan got shockwaves
 
I see
 
sou ka
 
google will help with details
 
That author ONE guy is amazing, his, Mob Psycho is cool af as well
 
10:21 AM
@Saitama and he hasn't released a real chapter in about 3months or so
 
well... true dat... but still...
 
And he draws like a 12 year old that's still in the 1st grade.
 
Could anyone tell me the pagination of gallery page .current css is not working when i go to 2nd page of pagination? arproducciones.mx
 
@MadaraUchiha well, I guess, that's a feature...
 
4 mins ago, by Madara Uchiha
user image
 
10:23 AM
@ChoncholMahmud you were already told to try at wordpress.stackexchange.com
 
:P
 
@tereško thanks.
 
@NikiC what would be the best approach to implement the following functionality internally?
public function pluck($key): Sequence
{
    $sequence = new self();

    foreach ($this->array as $value) {
        is_array($value) || $value instanceof ArrayAccess
            ? $sequence[] = $value[$key]
            : $sequence[] = $value->$key;
    }

    return $sequence;
}
 
@Linus mostly out of frustration.
 
10:32 AM
\o/ duplicate of my question
 
@NikiC One issue I've found is to determine whether an object supports array access. It's not sufficient to check if its an instance of ArrayAccess because, like all the ds structures, you can support it without explicitly extending ArrayAccess. But how do I check that? Checking if the read_dimension handler exists isn't enough because eg stdClass has one but it doesn't support array access.

Also, what is `rv` in the context of these handlers? I've never been able to figure that out.
 
@rtheunissen uhm… you can support read_dimension… but I don't think you shouldn't, without implementing ArrayAccess.
the proper way to check this is really ArrayAccess
 
@bwoebi Hmm okay, so I should then also implement the arrayaccess functions to work if you were to call them directly?
No problem in doing that.
 
@rtheunissen Yes, but that's trivial, it's just forwarding to the read_dimension handler
 
Exactly, it's no work at all.
Cool cool, that makes things easier.
What's rv?
 
10:50 AM
@rtheunissen it's a pointer to a zval you'll need to write your value to. Look at the ArrayObject impl for example: php-lxr.adamharvey.name/source/xref/master/ext/spl/…
(rv is for read value)
 
11:05 AM
@nikita2206 I'm never used the rv. What is the value being returned then if the rv is where I'm writing my value to? Or is it only for read contexts?
 
11:30 AM
Yo guys.
I'm currently reading this book PEAA.
There's this sequence diagram I do not understand.
Would anyone be able to explain this to me?
vs.
Will highly appreciate it.
 
11:47 AM
!!? orange anime
@JEEVES Y U NO WORK? :<
 
@rtheunissen I don't really know the answer here, but by the looks of php-lxr.adamharvey.name/source/xref/master/Zend/… it looks like you just need to write the result to rv and also return rv;, at least it looks like the straightest way here
Try looking at more code in zend_execute.c that calls read_dimension to understand how it should behave
 
12:48 PM
morning
Happy Sunday
 
Top of the morning to ya ...
 
blue elephant where are you :( ?
 
@Jeeves is dead, for good.
 
1:03 PM
He is not dead he is on holiday..
 
any game devs?
 
@CharlesCraft50 Game devs in PHP?
 
@HassanAlthaf browser games obviously…
 
Wes
1:19 PM
po po po po pororo po po po poroporopo
 
:P wes
 
guys whats the different between this:
`
class m
{
public $k = 'hey';
}

class k
{
function __construct($c)
{
echo $c->k;
}
}
`
and this:
`
class m
{
public $k = 'hey';
}

class k
{
function __construct(m $c)
{
echo $c->k;
}
}
`
still dont get y i need the second method
 
1:35 PM
Hello guys what are the best practices to secure a comment system with laravel
 
1:46 PM
?
 
1:59 PM
Im gonna use captcha by google
 
Wes
user image
2
 
2:17 PM
@Monk yes, the link is working
 
Ekn
2:29 PM
mrnings
 
Wes
\o
 
Wes
2:46 PM
@PeeHaa add it add it add it berkeleymews.com/?feed=rss2
 
3:01 PM
@tereško omg, thank you soo much, cookie for you!
 
@Wes meh
 
Wes
they are fun.
 
 
1 hour later…
4:42 PM
 
@Sherif ... how is wikipedia related?
 
Or <insert source of knowledge on the Internet here>
 
ah fine
 
4:58 PM
Anybody here use Reactjs for modules in your PHP apps
I'm looking into it
 
@DaveRandom you've inspired me to write better code
 
PC sold \o/ and as the guy came to check it out he bought my TV too \o/
 
@Sherif $this == (bool) $hit … uh, always true?
 
@bwoebi duh!
You didn't get the joke eh?
 
@Sherif I did, but decided to ruin it.
 
5:08 PM
boo!
you suck
 
It was such an obvious glaring flaw that I had to point it out!
 
Welcome to PHP!
 
:-)
 
if (1) { /* you lose */ } else { /* you win */ }
 
that's a nice PRNG…
 
5:17 PM
@bwoebi Of course, it's based on a fair roll of the die.
 
exactly
 
5:35 PM
hmmm
so ... usually when I make a mapper it ends up containing methods store(), fetch() and remove()
I think I need to add another to this subset: count() or estimate()
 
@bwoebi @Trowski @rdlowrey gist.github.com/kelunik/df71680c298ac9e17aa663ada6ed075d < if somebody wants to write some docs.
 
emm ... guys
does any of you have a solid understanding of repositories are?
 
@tereško well… there's not real unique definition of it … a way to separate getting data from a backend from the logic
 
@tereško are you talking about those bags with a bunch of queries?
 
what I am currently looking at would be a class, what would contain that would generate entities, using a dynamically injected mapper based on injected conditions
kinda like "collection", but with lazy loading and an aspect of factory
I am just not sure whether that would count as "repository"
 
5:48 PM
@tereško is that naming important?
Also, to my understanding, no, not really
 
somewhat important - I need to figure out what namespace it should be in
 
@tereško Just name it by what it does… "EntityGenerator" or such
 
yeah , I was thinking about calling it "generator"
anyone else willing to chime in?
 
genny, is a common english abbreviation of generator, it is perhaps a little more 'friendly'.
 
@bwoebi wouldn't it conflict with yield related concepts?
 
5:57 PM
@tereško I personally wouldn't necessarily expect Generator objects to be involved there
for a function entityGenerator, maybe yes. Classes… nah
 
ok ... Model\Generators\Entry it is then
 
Bon jour!
 
Salut
 
Heil!
 
6:24 PM
@Sara Bonjour is maybe derived from these two words, but even in French it's still written as one ;o)
@tereško Uhm.
 
did I spell it wrong?
 
@tereško No… except that you AFAIK aren't a neonazi… [i.e. "Heil!" as greeting is still associated to the nazis]
 
according to RT, there are only two types of people in Latvia, poor oppressed russians and neonazis
 
@tereško then you must be a poor oppressed russian?
 
:D
I went with 'heil", because I couldnt remember in time "ave"
 
6:30 PM
hi everyone.
hey just a question. I'm looking for a job. I do PHP. php, js, apache, css, html and some more. what do people want these days? how can i get a job?
 
your country should have online jobs boards
look there, send out some CVs
that's how you will find the opportunities for getting a job
as for "how to actually get it" ... well ... you need to pass the interview
 
Same as every other job usually
 
well I actually looked for jobs on Persian websites (I'm from Iran). Send my resume to almost all of them. Had just one interview. Went very well until they asked me if I could make a website like amazon by myself. and they were serious. and I said fuck it. they didn't know what they were talking about.
@tereško could you tell me a little about your current job? where? what?
 
lol. Did you ask them if they knew how many developers amazon has?
And services
 
Wes
why? @Milad making a website like amazon is a possibility
making it work is another story, though
 
6:40 PM
I tried to explain it to them. But they just kept asking. Like answer me. CAN YOU? YES/NO?
well NO sir.
 
Meh. Probably not a company you want to work for anyway. Red flag.
 
@Milad I would have also added taht, if they get answer "yes" from someone, then that person is lying
 
@Fabor not at all.
 
maybe your resume is just really bad :D
 
@tereško they most likely don't need that one to say yes. referral dude!
@tereško you wanna look at it? seriously. just 10 seconds. I really appreciate it.
 
6:43 PM
I cant read Persian
 
It's english.
 
sure, show me
 
thanks. let me upload it somewhere.
@tereško I think I just published it to the world! but here, take a look: scribd.com/document/322392266/PDF
 
are you applying for junior developer positions?
 
I'm applying for whatever PHP job possible.
what do you think about it?
 
6:50 PM
it's missing the most important part: experience
you could create some small project to showcase your skills
also linking to your github profile (with some code of yours) would help
 
@tereško well in all this time I was trying to make my own website. trying to make the next facebook. I've created a few website but they didn't work out.
 
... and the "hobbies" section is useless
 
objectives are also completely useless
 
@Sherif for a junior dev - not really
 
@tereško I just don't work with git. didn't need it. I should think about it. yeah. upload some of my codes there.
 
6:53 PM
For any dev.
> The Right Sections: No objectives (they're useless). Summary sections can be okay, but they're usually not (after all, if your resume is short and concise, then you don't really need a summary section). quora.com/What-are-the-best-formats-for-a-resume
 
@Milad also having experience in some some version control software will be extremely useful
 
@tereško but how about the skills? are those what is needed in today's websites?
 
> All an objective does is state, in a wordy way, what position you're interested in. The company already knows that because you applied for a particular position.
 
If all else fails, slip a few notes of the local currency in the resume.
 
6:55 PM
:P
 
@Milad yes. But I dont trust your assessments of "proficiency level"
 
@tereško I commit my own codes. that's all I know about git. but I didn't work with anybody. so, didn't need to know more (like branch, ...)
 
Skills sections are alphabet soup. Just as useless as objectives.
 
@Sherif bullshit. If he removes all the parts that you are not interested in, he will be left with name and education.
 
@tereško lol. you shouldn't. that the Persian part. In Persian I'm considered expert in comparison to others. but not you definitely.
@Fabor sorry, what's that?
 
6:58 PM
@tereško That should tell you something.
 
@Sherif you probably would also recommend to remove the education, because that too doesnt tell you anything
 
@tereško When did I say anything of the sort?
 
... I am extrapolating
 
04:00 - 19:0019:00 - 00:00

« first day (2143 days earlier)      last day (2795 days later) »