« first day (2248 days earlier)      last day (2926 days later) » 
00:00 - 15:0015:00 - 23:00

15:05
@samayo pong
@littlepootis better now?
@Patrick In small screens, overflow-x: auto for the code blocks is probably better than wrapping
@Patrick looks like this at 928px. i.sstatic.net/E5QPf.png
@MadaraUchiha hmm reddit does this, but it makes it really annoying to read if you have to keep scrolling forward and backwards every line
damn, why can't those templates just work out of the box? :D
@Patrick The alternative is worse
(imo)
15:22
hmm if i do it with whitespace nowrap then it put everything on one line. otherwise it does nothing :x
@Patrick Get rid of word-break and word-wrap, and give it white-space: pre and overflow-x: auto
(I'm talking about the pre elements)
Also
Anonymous
Do you use hyper-v or virtualbox?
@samayo Who, me?
Anonymous
Yeah
Neither
I don't really have a need for either
Anonymous
15:29
I thought you used hyper-v and needed to ask something
@samayo Nope, wasn't me.
Anonymous
What are you using then?
Anonymous
I've been out of the loop, I don't know what people are using anymore
I use a plain linux machine for most of my services.
Anonymous
dual booting then?
15:30
I don't have anything fancy enough to need containerization/virtualization/clusterfuckization
@samayo On my work PC? Yeah
And I generally use Windows just for gaming :P
Anonymous
I recently about dualbooting vs virtualization and I'm not sold on dual booting superuser.com/questions/1154964/…
Anonymous
But I find Virtualbox annoying these days. I want to try something else
If apache (www-data) is proxying through to php-fpm (site-example), and a PHP script created a file, would it belong to site-example or www-data?
@samayo Well, you're better off dual-booting Windows and Linux.
@Sean it should be site-example.
15:34
Use Windows for gaming, use Linux for everything else... gradually.
Thought so, just means I need to add my site groups to www-data.
Cheers @Danack
Anonymous
@littlepootis Yeah that seems to be one way to do it, unless this hyper-v thing is better
@MadaraUchiha thanks a lot. fixed it :)
@Patrick Well, now the entire page scrolls horizontally
I was thinking of making just the code box scrollable, but if that's what you want, that works too
15:39
it works out ok on my phone, I can zoom out or scroll
i think if it's just the box zooming wont work
Oh, I think you've forgotten a ; between the overflow-x: auto and background-color:
pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 1rem;
  font-size: .8rem;
  line-height: 1.4;
  white-space: pre;
  overflow-x: auto
  background-color: #f9f9f9;
}
yeah... I suck :x
Gah. Problem.
fixed
Anonymous
@littlepootis do you know of any good tutorial for dual-booting?
15:42
May have to have two directories between the public dir and the site dir
Something like /srv/apache/[site]/site/public
@rdlowrey You didn't push any tests yet. ^^
@samayo not sure. You just shrink a drive, leave free space, boot a nice distro's live cd, and let it take care of stuff for you.
Anonymous
I have created a free space and stuck at this part youtube.com/watch?v=zevaaGsfFPw how is he booting the pc with centos?
Anonymous
I have the ISO image
Why CentOS of all distros?
Anonymous
15:50
Nothing. I am just used to it, plus there is nothing bad about it tbh
Anonymous
ubuntu is too mainstream. I may consider arch linux, but that will take a while to get used to. Right now, I need to dual-boot and finish some projects asap
CentOS is primarily for servers
For PCs use the more PC friendly version, redhat
Also, nothing wrong with "too mainstream"
Especially since you can get something that's working, then mess around with the alternative until you like it.
Anonymous
Yeah. I plan to keep working with CentOS for now, and I will play around with other distros.
16:18
Doctrine vs Propel?
Anonymous
Doctrine
Hello everybody
any specific reason?
@BasheerAhmed "not activerecord"
@tereško so data mapper is good approach then...
16:26
@BasheerAhmed anything that doesn't violate the single responsibility principle is a good start
@Patrick how are you up to?
@Patrick Do you have any plan for using Doctrine in noframework?
No, maybe DBAL if I ever get to it
but it doesn't really matter what you use as long as you use an interface and the wrap whatever you are using in your implementation
@Patrick I'm bit confused as how would it be possible to change to different ORM later when we don't need it. Like we all ready have some implementation of Renderer in noframework..
how long will it take to complete the book?
@BasheerAhmed no idea, a year? ^^
16:42
I'll try to blog a little in the meantime...
4
17:21
hello
@Patrick in case of noframework the HttpRequest has one specific implementation which can not be changed to different Http Component later with just changing implementation. Am I confused or Am I right?
18:10
@BasheerAhmed I think you are taking this idea a little too far. The templating was just an example, that is not something where you would switch the implementation often in a realistic scenario. same with a http component
It is more useful in like switching a filelogger to an emaillogger, or trello to jira api, etc
18:23
@FélixGagnon-Grenier you might enjoy: vid.me/Z7Bm
then again, it probably would apply to out UK visitors in general
@Patrick I would actually argue that all of SOLID principles are mostly misunderstood
@tereško can't really disagree with that after spending some time on reddit :)
oh... so that's what an aggregator is?
@tereško what's the actual name of the show?
@tereško They're abstract principles, of course they're misunderstood.
@FélixGagnon-Grenier no idea
18:56
@FélixGagnon-Grenier An "aggregator" is something which aggregates
@Patrick well, if you dig deep enough, reddit also misunderstand holocaust, astronomy and photoshop
@MadaraUchiha indubitably :P. It was in relation to @Patrick's blog post though. I theoritically knew about aggregators, seeing a real life useful example kinda connected dots.
@FélixGagnon-Grenier Fair enough
19:25
hi
I having 1 year experience in php. Could you please give me tips to improve my programming.
Please
::)
@sanju 1 year doesn't tell us much.
What libraries do you use? Do you know the basics of OOP?
@
Madara Uchiha thanks for the reply.
I have experience in codeigniter,laravel, and in wordperss..
Yes I know oop..
Please give me the tips so I can improve my skills with the time.
@sanju Well, I'd start digging deeper into OOP, learn about design patterns and OO abstraction
But most importantly, code, code and code some more
ThW
ThW
@sanju build things, look at other os projects and help out
And get your code reviewed.
Reading about stuff in books and articles, and actually putting them into practice, learning when to use what and what are the drawbacks of each tool you have are two different things. That's what you should be focusing on.
19:39
Thansk Sir @ThW and @MadaraUchiha ... suppose I write some code. is there any way to review my code. I mean any software or anything.
Guys, how do you manage your emotions? I have to present a project tomorrow, I cannot sleep :-(
@sanju Posting your code here to review is one possibility.
ThW
ThW
@sanju Well, if you help out other OS projects the people will review your contributions
Also, that ^
ThW
ThW
I don't do that enough, actually :-(
19:40
In case you were wondering, OS stands for "open source"
2
Take the libraries you use, codeigniter, laravel, wordpress, and see if you can contribute something to them
most project maintainers are extremely helpful and will help guide you towards making a successful contribution.
@MadaraUchiha ok I will try this on git hub.
Oh yeah, @sanju there's one more thing you can do, for the long term game
You can hang around in chatrooms and just talk to people
While you actively learn, staying in a room and talking to people who know more than you is extremely valuable.
And for the record, this is the best PHP chatroom around
3
(as in, on the internet)
^^
Ok sir @MadaraUchiha ..one more qustion.. is doing freelancing good or bad for me..like i have 1 year experience..
@sanju That really depends on your area and competition
But I don't see why not, if you feel you can.
All experience is good.
19:46
Yes I have done some projects on upwork.. here is my profile. upwork.com/freelancers/~01a629d5ce05f0b2f5
But someone told me that freelancing is not good me for startups. so I am asking.
I dont know why he says like this..
Like I said, all experience is good. Even if you don't do well as a freelancer, the things you'll learn from it will never be bad.
ok sir @MadaraUchiha thanks for the help. I really respect person like you..
:)
@sanju You're welcome 😀 Good luck!
20:05
@Patrick Minor code typo:
public function add(Logger $logger) : void
{
    $this->loggers = $logger;
}
^ That should be $this->loggers[] = $logger;
for some odd reason PHP can't delete a file in temp folder (windows):
Warning: unlink(C:\Users\Me\AppData\Local\Temp\myfile584da39d68b22.tmp): Permission denied

Did this happen to you too?
This is my code:
```if(file_exists($file['path']) && is_writable($file['path'])) {
unlink($file['path']);
}```
Hello can some one help me to check more keywords in google. For now i can check one keyword position in google but i want to make cron that will check it for me.
    // Include the phpQuery library
    // Download at code.google.com/p/phpquery
    include("phpQuery-onefile.php");

    $country = "pl";
    $domain = $_POST['domain'];
    $keywords = $_POST['keyword'];
    $firstnresults = 50;

    $rank = 0;
    $urls = Array();
    $pages = ceil($firstnresults / 10);
    for($p = 0; $p < $pages; $p++){
@funerr well // this is why you shouldnt develop on a windows machine
@tereško, this is for a client :(
I'm more of a debian dude
ThW
ThW
20:28
@tereško works fine for me :-)
@ThW well ... let's put it this way: you shouldnt "deploy" the development code on windows machine
:| not shit
I hate my life
ThW
ThW
of course
but I mostly develop without a dedicated webserver, too.
the integrated server in phpstorm or php are enough, sqlite for the dev database
lately I deploy my dev-code on a VPS
ThW
ThW
I have stage/preview systems that get deployed by the ci
20:33
some one could help please ?
ThW
ThW
@kuchar wrong library (for me) :-)
and your question is to broad
I want to make script that will check for me more than once keyword position in google search. For now im only able to check position in google only for one keyword at one time. Here is my code

<?php
session_start();
// Include the phpQuery library
// Download at http://code.google.com/p/phpquery/
include("phpQuery-onefile.php");

$country = "pl";
$domain = $_POST['domain'];
$keywords = $_POST['keyword'];
$firstnresults = 50;

$rank = 0;
$urls = Array();
$pages = ceil($firstnresults / 10);
for($p = 0; $p < $pages; $p++){
5 diffrent keyword, 5 diffrent possitions
i have no idea how can i make it :(
my rates are 50$/h
@tereško h = hectoyear? fine.
ThW
ThW
21:13
@kuchar again, this question is to broad - you're asking for a coding job.
im asking only for some clues to solve it
so you simply should loop through an array of keyword
Why cant I use geoip_isp_by_name
Call to undefined function geoip_isp_by_name()
ThW
ThW
@AbrarAhmed because you don't have the geoip pecl library?
@LeviMorrison Remind ne what were the arguments against multiple arguments to partial functions (if we actually discussed it). e.g. $f = foo($1, "bar", $2); $f(42, 3.14);
Apologies for multiple competing use of "arguments", am on phone and it's really cold at the dog park.
21:22
@ThW after installing it I receive
HP Warning: geoip_isp_by_name(): Required database not available at /usr/share/GeoIP/GeoIPISP.dat
*PHP
I think you might need that file.
ThW
ThW
@AbrarAhmed pretty self explaining message
But it should be preinstalled
Evidently it's not.
I cant find where to download it
ThW
ThW
21:24
why? it's a pecl library not a php standard lib.
I think here is even an php implementation for it
have you tried to google for the .dat file?
I can find other data file from dev.maxmind.com/geoip/legacy/install
But cant find this file
Ok i change my code as you told me and its works ;) But it have to take so much time to get result, is there any way to speed it up?

<?php
session_start();
// Include the phpQuery library
// Download at code.google.com/p/phpquery
include("phpQuery-onefile.php");
$keywords = array("wieńce wiązanki powązki", "kwiaciarnia powązki", "kwiaciarnia wieńce wiązanki powązki", "kwiaciarnia warszawa", "kwiaty pogrzebowe warszawa");
$country = "pl";
$domain = 'camelia.waw.pl/';
$firstnresults = 50;
Is there any possible way I can get information about a ASN isp?
22:07
That I dont know , cant really tell you
maybe the server causing the delay ? @kuchar
00:00 - 15:0015:00 - 23:00

« first day (2248 days earlier)      last day (2926 days later) »