« first day (2269 days earlier)      last day (2905 days later) » 

18:00
@kelunik yeah same, I don't see anything obviously wrong ... other than I don't really like it ... but I don't like the alternatives either ...
@crypticツ you scared it away
@JoeWatkins and you are also to blame
I strongly refute that ... I'm always noisy ...
now ... what should I play
18:18
@JoeWatkins added a few comments
Have you an instagram's account? @tereško
@staabm ta
To be honest, I am not sure about those "new methods"... I work with the web sapi for ~16 years and never needed those.
@staabm I think you have to say: ". . . and never needed them"
Especially that the provided data will be part of _POST is kind of weird
@Shafizadeh ;-), guess you are right
18:27
:-)
@staabm this also makes me cringe ... but, adding more superglobals also makes me cringe ...
neo
neo
guys anyone knows oop well ?
@Shafizadeh nope. I tend to avoid Faceboook's infrastructure.
@neo some of us do quite a lot of Out-Of-Pocket expenses
Anonymous
@Shafizadeh yes.
Anonymous
18:38
You can tinker around fastpress
neo
neo
@tereško seriously dude,i can understand oop principle but can't solve an entire problem with oop concept
is there any good article that can help me with that ?
i am pretty sure i am missing some important topic in oop
Anonymous
I can teach you what I know
Anonymous
For small $$$
@staabm yeah I tend to agree
I didn't think about userland diy either ... that seems entirely more reasonable ...
neo
neo
@samayo i dont have enough money to pay
I think my issue is with dataflow in oop
Anonymous
18:42
No problem
Anonymous
I can do it for free
@neo do you actually have a question or did you just need a place to went ?
neo
neo
@tereško i dont have a question but my issue is i cant solve issue in oop approach
@tereško is there a topic called dataflow in oop
?
Anonymous
No
if you are looking for a good book, from which to learn OOP for beginners, then there is none
neo
neo
18:46
@samayo my problem is even if try to understand oop by reading some codes it get really complex i cant remember the intiated varibables etc
all the "beginner: literature is basically shit
@neo in OOP, you should not care about any variables, that exist outside a given instance
neo
neo
i am simply opening a bunch of php files and cant exactly understand which path is code getting executed
(also, a side note: if any given code contains static or global, change is - it's not OOP)
@neo the cheap thing you can do is writing echo "here"; die; line by line :-)
@tereško wrong .. static has nothing to do with OOP
neo
neo
@tereško lets say a variable is instantiated with a object.... and then in that object another variable is instantiated right ?
18:50
@Shafizadeh well, it implies existence of global mutable state, which mean that you are dealing with procedural code instead
@neo no
I dunno how you are making sense of any of this ...
neo
neo
sorry through that object and through a variable inside that object
@JoeWatkins sorry if this is stupid but i am newbie :D
Anonymous
Lol @Shafizadeh trying to tell @tereško about oop
@JoeWatkins was that directed at me?
@tereško nods
neo
neo
18:53
i just want to understand how php traverses through these oop codes and output is produced
@samayo that's not funny, @tereško isn't the king of oop
@Shafizadeh oh ... it was funny ...
@neo if you talk based on a true code. it would be easy for you
@JoeWatkins beer helps
@JoeWatkins :-) .. are you believe is he?
18:54
@tereško hehe
neo
neo
kk what you all guys think of my knowledge ?
Anonymous
@tereško s/beer/valium
neo
neo
fucking crap right ?
i don't think so
@samayo E_MISSING_TRAILING_SLASH
@neo I can't make sense of your questions
Anonymous
18:55
:)
neo
neo
@JoeWatkins true..even i cant understand what is my issue
maybe a language barrier rather than knowledge ... but that's the reason I'm not attempting to answer anything you asked so far ...
neo
neo
i cant solve an issue through oop approach
that's nonsense
it doesn't mean anything ...
show an example
neo
neo
18:57
do you guys have a small program like calculator or anything which solve issue through oop approach ?
yeah, code is a good idea ... the universal language of PHP ...
@tereško oh .. seems like a bug :-)
neo
neo
@tereško ??
@tereško i understood that code
@Shafizadeh no, it is not
@neo that should answer your question
19:00
good morning
yo bob
@tereško it is not if there be this $c->bar = 'kek'; in your code !
now I am confused
neo
neo
@tereško just like this intiate a bunch of object in variables .... compare/evaluate the variables take the wanted value ? thats all ?
@JoeWatkins I've seen you being active today … were you bored? :-D
19:02
@tereško no, you aren't confused ...
this makes sense, but yours is kinda strange for me @tereško
@Shafizadeh you missed the line 9
@tereško no, so what? initilizing is at line 11, so $c is still an object with null value for bar property
as you can see, oop is confusing... lol
@bwoebi I dunno what happened, just woke up and thought 300 and something open PR's is too many ... when most of them are crap ... 275 isn't much better ... but QA keeps stopping me every half hour because of API limits
19:04
@JoeWatkins In that case you maybe ought asking Nikita for write access to the php org (dunno if he has admin though… no idea who does), but Nikita should be able to see who does
@Shafizadeh take a look at the code again
I figure if I keep complaining, someone will fix it ... hint hint @NikiC ....
I dunno who does either ...
$c and $a are using same memory point
neo
neo
@tereško man you still there ?
@Shafizadeh your line 12 does not change anything, because in line 9 it is defined that "object C is object A"
19:06
@AdilIlhan nah, their value is pointing to the same memory address
@JoeWatkins talking of cleaning up....was there ever any progress in making a "needs RFC" status for bugs.php.net ?
when you initialize a variable (which contains an object) into another variable, both variables will be pointing to the same object ???
@Danack Suspended is the status used for that
@neo no, OOP is not just initializing a bunch of variables. You said at the beginning, that you understood the concept of OOP. Apparently that was BS.
@Danack there was some, but the status never materialized ... if someone can figure out how it's done, I have the karma to do it myself ...
19:07
@Shafizadeh yes. Hell, that's how "passing object in function as parameter" works.
@bwoebi That's very unintuitive.
@tereško interesting .. I didn't know that ..!
@Danack Don't complain towards me, just sharing some observation…
@bwoebi we did have a discussion about it, and are using suspended in lieu of a proper status ... "Needs RFC" is a push in the right direction ... if you're not one of about ten people, you don't know what suspended means ... also it makes it easier for someone who wants to work on something to find stuff that needs RFC ...
@bwoebi well, actually i meant this
i remembered this
19:10
wrong if the cup is an object ...
Honestly i never really understood OOP. I never really programmed anything that really needed to use OOP principles. Then again i havent done much so, dont take my word for it.
@AdilIlhan so in php objects are not passed by reference
ok .. so , what should I play? steamcommunity.com/id/teresko/games/?tab=all
@JoeWatkins well, actually, by-object would be equivalent to by-reference if PHP hadn't the concept of true references too
yeah we have a sort of pass-by-php-reference semantics ...
How do I transform this array:
Array
(
    [0] => Array
        (
            [0] => 1200
            [1] => 2541
            [2] => 2540
            [3] => 2539
        )
    [1] => Array
        (
            [0] => Television
            [1] => Monitor
            [2] => Car
            [3] => Bike
        )
    [2] => Array
        (
            [0] => Electrodomestic
            [1] => Computer Stuff
            [2] => Vehicle
            [3] => Vehicle
        )
)
19:12
I think actually most of this is wasted on current audience (no offence intended for current audience) ... I don't think it's helping them ...
Into this:
Array
(
    [0] => Array
        (
            [0] => 1200
            [1] => Television
            [2] => Electrodomestic
        )
    [1] => Array
        (
            [0] => 2541
            [1] => Monitor
            [2] => Computer Stuff
        )
    [2] => Array
        (
            [0] => 2540
            [1] => Car
            [2] => Vehicle
        )
    [3] => Array
        (
            [0] => 2539
            [1] => Bike
            [2] => Vehicle
        )
)
thanks for two walls of text ... pastebin is a thing ...
@LucasB with foreach
@tereško how about func (&$var)?
@JoeWatkins sorry, I thought it was going to shrink
There's a name for this kind of procedure?
19:13
@AdilIlhan if $var is an object, then you are doing it wrong
How do I google a solution for that array problem?
i tried to explain that the 'pass by reference' is possible in php
Both are multidimensional, right?
@LucasB technically: "pivot" ... I think, but it wont help you. What you need is to do a foreach and just translate the array yourself
it's simple
even @Danack could be able to do it .. eventually
also, hi
evening room
19:17
@LucasB could you write code that turns [4 ,3 ,1] into [[4,1], [3,1], [1,1]]?
@JoeWatkins basically: by-object is passing a value by ref, by-ref is passing a variable by ref
yeah ... I know :)
@JoeWatkins I've invited you into the php org
@JoeWatkins As usual: Don't merge anything on the web interface...
thanks @tereško, I'll see to it
19:24
@NikiC thanks, I can do closing on the gh interface, right ?
@JoeWatkins yeah
cool, thanks
neo
neo
guys how much complex do you think this series of videos are ? youtube.com/playlist?list=PL7A20112CF84B2229
don't watch them
neo
neo
@AdilIlhan why ?
19:27
you shouldn't learn oop through mvc videos
neo
neo
then from where ? can you help me ?
@AdilIlhan my concern is interconnecting all these codes and making a final output
@neo I dont care how "complex" or not they are. They are wrong.
the wrong word is too popular word on r11, lol
those videos are actively harmful, @neo
I skipped to a random video in that series and it was telling me to use unsalted md5 for hashing passwords
that's how bad it is
neo
neo
19:34
@tereško kk how about oop approach ?
i have seen a video of Robert C. Martin before
his classes are intresting but i felt like he is concentrating on topics on that video
like code dependency etc
not on actual code solving
@tereško ha
184
A: MVC for advanced PHP developers

tereško Links, that contain PHP-only materials, are marked with php for easier identification. You cannot even begin to delve into MVC before you have comprehensive understanding of OOP. That include OOP practices (dependency injection, unit testing, refactoring) principles (SOLID, SoC, CQS, LoD) a...

here, try this
neo
neo
@tereško i am sure going to try that
do you think i will get over all my doubts after learning all that ?
20:17
@AdilIlhan It depends on who says things. There are many things we disagree about, but which aren't really wrong. And then there are things which are really, really stupid to do or based on false knowledge, which we call just plain wrong.
20:57
btw @JoeWatkins github.com/php/php-src/pull/1196 probably ought to be pushed forward. The reasons I dropped it are because: i) SPL, and the last person who touched it is to blame rule, ii) The tests are scarily bogus. Cloning a DirectoryIterator or anything that has an open directory and reads which files are inside it is really not guaranteed to work.
@Danack my closing it really was meant to encourage you to pick it up, we can't do anything with a 5.5 patch now ... but please do move forward with it ... might I suggest that you do a separate pr with zend_call_method_params (using a va_list preferably) as I think that's a no brainer, and makes the patch that bit smaller ... also, these things aren't really related ...
@Sara when you changed some math functions to use fzpp, was there a reason you missed some out ?
not sure what is going on there ...
21:16
The funcs I skipped were all because "does X wierd", with a resolution to look at it later
fair enough
Though which ones do you mean? I don't see any in math
@neo if at some point you get over all your doubts, my humble opinion is that is a sign you are doing something wrong. Doubt is essential to continue learning.
21:19
omg
sorry about that ... I wish someone would maintain our own lxr properly :(
:)
Hey guys could I get some feedback on my dynamic progressive loading, js and php framework? It's on github github.com/JohanSundman/Dyfinit
Your code is vulnerable to directory traversal attacks
lawl dude, @PeeHaa was actually serious. what's wrong with 2017?
That dosn't sound all that great
21:30
Never directly use user supplied data to open / retrieve files on the local machine without sanitizing it
@PeeHaa Yea, could you recommend some method of sanitizing it?
You get something from here and use it here in an include
74
A: Preventing Directory Traversal in PHP but allowing paths

ircmaxellWell, one option would be to compare the real paths: $basepath = '/foo/bar/baz/'; $realBase = realpath($basepath); $userpath = $basepath . $_GET['path']; $realUserPath = realpath($userpath); if ($realUserPath === false || strpos($realUserPath, $realBase) !== 0) { //Directory Traversal! } e...

Why are you creating an "object" here?
I really don't know
No time to discuss
But thanks alot
wait wait, you just came and asked for feedback
...
21:32
don't ignore it ...
Aaaaand that was my time for feedback...
back to drinking ... er ... I mean life ...
21:45
@PeeHaa I'm sorry! I was suddenly forced shut down my computer. The reason I created an empty object was because creating a class would be too much text for that singel small object.
So you meant to type = [] and ended up with = new stdobject somehow?
As in: why are you not using an array?
@PeeHaa An array converted to json and then decoded in js would be.. An array, which I don't want
@JohanSundman That's not going to be an array in json ever
It's an associative array which becomes an object
Because js
JS doesn't have associative arrays
Associative arrays in PHP become JSON objects.
@PeeHaa Oh really.. I'm deeply confused now
21:51
oh yeah
@JohanSundman JS has not concept of associative arrays. So it can never become an array
@JohanSundman what madara just said ... or peehaa repeated ... that ...
an array in js can only be indexed array
@PeeHaa tbh, for all intent and purposes, an object can very well serve as associative array
it's horribly wasteful
@JohanSundman In JS, unlike in PHP, objects don't have classes, they're just objects
21:52
@PeeHaa I see, but are there any benefits over what I have now?
@FélixGagnon-Grenier Yes if you change the meaning of it :P
@JoeWatkins To be fair, an array is just another object
You can put named keys on an array
Wes
Wes
i'm so tired being sick. pffffff
Because js
@MadaraUchiha well, you know, there's this prototype thing, that can almost be seen as a class something something
21:53
@MadaraUchiha yes, but when you create an object you alloc a bunch of stuff which here, is totally useless
This also looks pretty odd to me @JohanSundman
@JoeWatkins Meh, it's heavily optimized.
function tables, constant tables and so on ... all of a fixed minimum size ( they will be allocated whatever )
@PeeHaa well you know, it's JS
Why are you looping over the thing and assigning it to the array
21:53
@MadaraUchiha I'm talking about in php ...
Ah, sure, you wouldn't want an object in PHP
in any event, converting an associative php array to json, can be natively used in js as a "associative object"
Or you will end up with broken tags at best
21:55
@Wes I think I told you already to feel better ... I hate repeating myself ...
<3
hmmm I just somehow killed an sd card
@PeeHaa how long was it in the beer ?
@PeeHaa Shooting it twice will do that.
lol
Wes
Wes
21:56
@JoeWatkins catch(JoeInternalMemoryException $e){ echo "thanks x2 :P"; }
@Wes Heh
Reminds me of the RichardIsAFuckingIdiotException
913
A: What is the best comment in source code you have ever encountered?

Tom Ritter //Code sanitized to protect the foolish. using System; using System.Collections.Generic; using System.Text; using System.Reflection; using System.Web.UI; namespace Mobile.Web.Control { /// <summary> /// Class used to work around Richard being a fucking idiot /// </summary> /// <...

<3
@MadaraUchiha this was quite fast. I suspect you to keep bookmark of that.
@FélixGagnon-Grenier Have the question in my favorites
From there's it's a short CTRL+F
Wes
Wes
i think i'm getting worse rather than better -__-
@Wes That would be the cyanide. Sit quitely and let it work.
22:01
that's brilliant
@JoeWatkins I know :D
Wes
Wes
sorry, can't be fun-cooperative. too sick to have fun of that
current level of discomfort is: i'm extremely thirsty, but if i drink i'll end up vomiting my guts
better to have something to throw up than nothing ...
Hi everyone!
I'm just looking for some help about grub2, is stupid question, I guess
grub as in grand unified boot loader ?
22:16
there's anyone bored?
yes
let me show you the link
0
Q: How to keep custom configuration of grub.cfg?

M. MariscalI have Linux Mint 18 KDE and I'm tired about set up multiple times this process: Code to repair Windows 10 boot What should I do to keep my grub2 custom configuration? It resets with every linux updating... Thanks you very much

its really stupid, but I dont know anything about grub2
well this is not really the place for that ...
tell me how you are editing the config, whole process ...
oh I know that, but if someone doesn't mind.. would be helpful
it's really simple, everytime I update linux mint
(5 level updates) the grub2 config always resets
what should I do to keep my custom grub2 configuration ?
you did not answer my question
sorry what do you need to know?
Just what I want to know is: how to set up askubuntu.com/questions/725290/… forever?
this is my real question (sorry for my bad english)
@Wes that's actually quite dangerous. I guess it's too late to get to the doctors today. You might want to try "a drink made with 6 level teaspoons of sugar and 1/2 level teaspoon of salt dissolved in 1 litre of clean water." and just start sipping that every few minutes.
22:24
5 mins ago, by Joe Watkins
tell me how you are editing the config, whole process ...
not drinking and chucking up is a great way to dehydrate.
^@Wes ... it really is better to drink, even if you throw 99% of it up ...
Wes
Wes
i'm drinking a bit, very slowly though
How long since you were last able to keep fluids down properly?
Stupidly, 'dehydration' also means salt imbalance.
@M.Mariscal in case of language barrier ... try putting custom entry in /etc/grub.d, this path should not be changed by update ... then run update-grub before reboot ... look at the memtest or some other file in there for example
(also, check README in that dir, it may be in your native language, not sure)
22:30
ok thanks you very much joe
sound good idea
Wes
Wes
@Danack didn't have stomach problems yesterday, and ate nothing except aspirin
is it flu or that norovirus thing ?
(winter vomiting bug, don't know if norovirus is colloquial name)
Wes
Wes
i don't know. imho it's just a cold
not usually accompanied by vomiting
22:39
Thanks you very much Joe, hope to be useful
things like the paper above makes me seriously think about finally going to school. I have the impression that by myself, I'll never catch up with all this stuff.
... then normally I'm around that in my train of thoughts when I start playing civilization
@FélixGagnon-Grenier agree
/me sleeps
nn
22:56
nn
23:11
posted on January 01, 2017 by kelunik

- Improved error messages

Wes
Wes
23:46
stopiiiit
Wes
Wes
23:59
i sneezed several hundred times today. i should keep a diary because i could gain a page on the guinness world records
@Ekin bar

« first day (2269 days earlier)      last day (2905 days later) »