« first day (2485 days earlier)      last day (2689 days later) » 
00:00 - 15:0015:00 - 00:00

15:00
I am just starting out
but I want to read it all
notsureiftrollorseriousanymore.gif
I don't work on anything, and I am able to do it now
I have time, don't have to pay the bills
for now
I'm gunnu go with half troll half serious
Felix Gagnon - where are good exercises for php?
they don't state that - the w3resource.com, but this is what I found as #1 thing on google.com (not the top result, but the best)
I may look deeper later on, when I finish that
ok
so what could be the final answer to that:
return array_chunk($n[0], 1);
a mistake?
it depends on what is contained in $n[0];
which you will only discover at runtime.
15:04
@AaronSmith the examples work, it is not a mistake. in them $n[0] is itself an array. if you're getting an error then you've missed something
$n = array (1, 2, 3, 4, 5); - something like this, this needs to be sorted
but with bead-sort
ok
I will look at the code above it
thanks!
<?php
function columns($uarr)
{
$n=$uarr;
if (count($n) == 0)
return array();
else if (count($n) == 1)
return array_chunk($n[0], 1);
this is the lines above it and that line
$uarr is an array, could be a multidimensional one, if that's what this is, but there was no info about that
Input array of the example is this: Input array : Array ( [0] => 5 [1] => 3 [2] => 1 [3] => 3 [4] => 8 [5] => 7 [6] => 4 [7] => 1 [8] => 1 [9] => 3 )
there is info about that, look at what is calling that function
one dimensional array, and then that code
this is what this is
that is not the input being given to columns()
so count produces a multi dimensional array?
I will be turning off the pc now
15:09
no
so I would be coming back to this after like 2 hours or so
and since we are talking about it...
else if (count($n) == 1)
return array_chunk($n[0], 1);
ok
it is good to know that it is not a mistake, so I will figure it out
In a single point of entry application if I am routing all traffic through domain.tld/public/index.php would I just make a .htaccess to rout all traffic there? I am a bit confused on that.
if you could give me info, this would be good too
this does not work:
function columns($arr) {
if (count($arr) == 0) {
return array();
}
else if (count($arr) == 1) {
return array_chunk($arr[0], 1);
}
}
$arr1 = array(1);
$arr2 = array(1,2);
$arr3 = array(1,2,3);

echo columns($arr1) . "</br>";
echo columns($arr2) . "</br>";
echo columns($arr3) . "</br>";
Warning: array_chunk() expects parameter 1 to be array, integer given in ... on line ...
I got the same error
15:17
you're not paying attention to what is being passed to columns() in the example
@yessure your trophy and certificate signed by Rasmus is in the post
I've been thinking that this is suppose to be the input array
Input array : Array ( [0] => 5 [1] => 3 [2] => 1 [3] => 3 [4] => 8 [5] => 7 [6] => 4 [7] => 1 [8] => 1 [9] => 3 )
this needs to be sorted (bead-sort), this is the goal of the task
you keep saying that as if I'm the one not paying attention
you understand it
I dont
15:19
is it homework ?
no, I am learning by myself
reading in the morning, practice in the afternoon
thought about reading whatever you were reading again ? some chapters I have to read a handful of times, and then continue to reference in the future ...
ok, so what would be what I don't understand?
I am tired of reading now, I am not able to
tomorrow morning I will continue
and I do the exercises
as this is ok
I am reading php.net (whole), books, websites
take a break ... there's no reason to think you will understand the explanation of normal programmers if you don't understand the material you were reading ...
a lot of reading planned, just one month plus of that so far
I understand the material
I don't take shortcuts, if I don't understand I stop, and possibly come back to it too
no shortcuts here (like sometimes you think about something else when you read a book) - I don't do it here
15:22
the only people who should be reading all of php.net are ... nobody, nobody should be reading all of php.net ...
the quality of learning -> the quality of skills, I am thinking
evening room
I go over the exercises too, I try to understand it all
morvningingev
this moves me forward, in practical things
I can already see a progress
15:23
what exercises are you talking about ?
o/
I am on Arrays now
@Paul Crovella - can you tell me what this is?
this would be helpuf, I don't want to be wasting time
if not, that's ok, I will come back to it later on
go and buy a good book
@JoeWatkins o/
15:25
@Joe Watkins - I am still "breaking through that crust" of PHP
like learning to write and read Chinese
but I am better at this point than I was one month plus ago
3 months - 6 months - 9 months, increments of 3 months
should be good progress points
I will read the books too
I am doing NetBeans, Eclipse, phpStorm first, tools
this should be a good angle too, to know
actually I couldn't name a good book ... there used to be so many, just in any high street book store ... now there are no high street book stores ... people who wrote a website (non-subscription) are doing it for the possible ad revenue, or kudos ... people who write books are highly qualified, disciplined individuals that get well compensated for their work ... tl;dr book > website
this is not an issue, I will find what is needed
ok, thanks for now, I will be taking off
evenings v2 o/
15:54
I miss my book collection, maybe I will have them brought over. So heavy though
@Ekin Fancy a spelunk?
man, you're a bit addicted aren't ya
I just want friends :(
Lawdy lawd, Alison Brie
She can be my friend ( ͡° ͜ʖ ͡°)
doubt she wants any friends from the internet at the moment
15:59
:P
16:09
should I parse markdown realtime or should I store it in the database
if you mean, store the resulting html in the database, no, you should store the markdown, itself, exactly as written.
(for instance, when people want to edit it again. going back to markdown from html sounds like a fun endeavor actually I have no idea, I've never tried, but it just sounds wrong)
"going back to markdown from html sounds like a fun endeavor"
I guess i should store it as is then parse it on display
Anonymous
16:27
16:41
Looking for feedback on a patch for this bug bugs.php.net/bug.php?id=75035 (See 3rd comment)
it will be more likely reviewed i think, but unsure
Ack, I usually do that but this one breaks an existing test
@adsr How is that a reason to not submit a PR?
I don't actually want it to get merged
16:45
@adsr Why do you want review then?
posted on August 05, 2017 by kelunik

Upgraded to Amp v2.

it will be reviewed / changed first
Alright I'll throw it on github
wait for @kelunik to confirm what i just said :B
@WesStark I don't get what you mean with that.
brb
16:47
i thought maintainers can commit into pr
make changes themselves before merging
I think I actually have php-src karma
How often do people push to master without code review I wonder
not often i hope
lol
regular contributors usually push directly to master
@WesStark Yes, but php-src PRs are merged manually anyway, not via the GitHub interface.
17:00
Haha do they run tests beforehand at least?
No, they force us users to do that.
@adsr Unfortunately CI is pretty intermittent lately, because Travis became shit at some point
AppVeyor is stable, but for Travis it's a dice-roll as to whether the build is going to take 25 minutes or is going to time out after 50
@NikiC Probably rather because php-src runs too many tests. :P
@kelunik both ^^
I mean, we never had this problem until they presumably did some kind of infrastructure change
17:40
anybody here now?
17:51
!!dad
Dad, I'm hungry. Hello, Hungry. I'm Dad
hi, can somebody look at this:
<?php
function columns($arg) {
$n=$arg;
if (count($n) == 1) {
return array_chunk($n[0], 1);
}
}
$arg = array(1);
columns($arg);
?>
Warning: array_chunk() expects parameter 1 to be array, integer given in ... on line ...
somebody here told me that the code is good, but it does not work
this is the whole thing here, an exercise from w3resource.com - w3resource.com/php-exercises/php-array-exercise-10.php
I did not tell you that code is good. I told you the example you got it from worked fine and you were missing something.
- the examples work, it is not a mistake. in them $n[0] is itself an array. if you're getting an error then you've missed something
- there is info about that, look at what is calling that function
- that is not the input being given to columns()
- you're not paying attention to what is being passed to columns() in the example
I got these answers from various people, so far
well, the example can work as the array is not one element long, so it passes that
but if it would be, the code does not make sense, but I am not sure
I am analyzing this, the whole thing will probably work if a passed array is not ==1
if it is it would issue a warning
so I am trying to figure this out
no, the example works because the array passed to columns() is an array of arrays
17:59
the code above is what I wrote, it is testing this scenario, and it does not work, I get a warning
so I am looking for an answer to this, a mistake? incorrect code in this example?
no
Input array : Array ( [0] => 5 [1] => 3 [2] => 1 [3] => 3 [4] => 8 [5] => 7 [6] => 4 [7] => 1 [8] => 1 [9] => 3 )
this is from this example, this is a non-multidimensional array
this is what they want people to ude
that is not being passed to columns()
use
I guess the code may be written for multidimensional arrays, but the ones used in the example happens to be one-dimensional and this would be the answer?
like I said, I am learning and I am not moving to the next thing before I understand this
ok, so what would be your explanation?
you are not agreeing, but you are not telling what is what too
:)
I'm telling you to read the code. Look at what that input array is actually being passed to, what's being done with it, and what is actually being passed to columns()
what is passed to the columns() is a one dimensional array with 10 elements / key - value pairs?
if == 1 it ends and returns
and if == 1 it does not work
<?php
function columns($arg) {
$n=$arg;
if (count($n) == 1) {
return array_chunk($n[0], 1);
}
}
$arg = array(1);
columns($arg);
?>
try that code
you will get a blank screen and a warning
that's not the code in the example
here's a hint: bead_sort(array(5,3,1,3,8,7,4,1,1,3))
18:04
maybe you can tell me? :)
I've told you enough and you've ignored it, just as you've ignored half the code in the example.
maybe someone teaching you how to debug is more important than someone helping you fix this problem? :)
I did not ignore it, I just cited it, like 2 hours later or more
I have it written down and I was going over it again, before asking here
you copy and paste it, but don't listen to it
I don't understand something here
I see it as working from top to bottom and left to right, the code
if the top lines until the line in question don't work, I stop at that, and return prevents it from going to the next line too
I am not arguing as I am not understanding something, but I cant figure it out
I will be checking this for hours
I am not that bad in that, I am not a 100% novice, but I am a beginner
18:08
@Gordon So I assume today is international "have a mouth that tastes like ass, a dull but persistent headache and be annoyed with everything that emits noise" day?
I am not sure whether the suggestions I get are good
the whole code does not work, the exact copy of what is there, I get the same error
as with the shot testing code
so you say that it is good, but it does not seem to be good
for $test_array = array(1);
I run columns($test_array) and I get the same warning
so the code does not work
Warning: array_chunk() expects parameter 1 to be array, integer given in ... on line ...
actually it does work 3v4l.org/GDfQt
thaks for taking a look at that
I did something like this and it did not work
please see the bottom part
I deleted some bottom lines and added the 2 new lines
I
no shit it doesn't work, because you've ignored the rest of the example
I'm not bullshitting you, but I am getting tired of you dismissing my help. You're repeatedly insisting that the flat input array of integers is being passed to columns() after I've told you it isn't, because it isn't. It's really that simple.
ok
I may be tired too, I've been pushing to the max
I will indent the code, it may help too, better readability
is there a good tool for indenting or a method?
I am not wusing NetBeans 8.2
I know that Notepad++ does it
or some plugin for it
I can do it by myself too, as it is short
18:21
If I told you you wouldn't use it then claim it was broken.
beta.phpformatter.com - this does the "work"
@DaveRandom yes, PeeHaa day
ok, I understand now, the code is on the top, but it does not mean that it will be run first
ok, thanks :)
@Andrea @NikiC "count(): Parameter must be an array or an object that implements Countable" could/should this error msg also tell what was passed, e.g. "Int", "null" or similar for better DX..?
18:41
evenin
@AaronSmith you should probably start by learning how to do indentation
"they was" ?
I think you meany "they were"
or probably "he was"
Anonymous
19:04
Maybe @FélixGagnon-Grenier is speaking ebonics
@samayo you must watch "Hidden Colors"
uuuuugh
@DaveRandom I figured out why my initramfs wasn't booting
testing, but it's obviously so broken that it's no wonder it never worked
I used scp -r to send a simple root filesystem to my small VM
it doesn't send things like symlinks... e.g. /lib64/ld-linux-x86-64.so.2...
Anonymous
I would but I don't want to read/see another slavery story or how black people have been done wrong..
IT BOOTS!
it was working all this time!
19:20
@samayo naah, that one is about how to activate you melanin and superchage your pineal gland
@WesStark Here's the ISO 8601 5+ digit year overhaul github.com/php/php-src/pull/2672
already saw that one
@tereško what I meant there was "SQLQuery" not "DatabaseConnection" — Daniel Oliveira 1 min ago
Anonymous
Don't be too harsh on the beginners
19:35
@tereško perhaps his Car is a query to determine which seat he can take
@DaveRandom the cpio is just as slow on my beefy laptop. Looks like I'll have to dive in kernel.org/doc/Documentation/early-userspace/buffer-format.txt if I want to get faster stuff.
19:51
@samayo care to explain the whole subject to the said newbie? Getting a bronze badge in might be good for you.
@DaveRandom got it, it's not cpio, it's gzip -9...
if I use pigz, I get from 1 minute down to 10s
(and it takes half a second if I don't compress)
 
2 hours later…
21:56
.
 
1 hour later…
23:15
G'd Evening PHP
23:27
fucl twitter
23:38
What's wrong with twitter
I still don't have a twitter
23:51
I think I have that single point of entry down :B
00:00 - 15:0015:00 - 00:00

« first day (2485 days earlier)      last day (2689 days later) »