« first day (2483 days earlier)      last day (2690 days later) » 

19:00
I mean, it's completely understandable why she has it. But yeah, Berserk is pretty dark.
@NikiC little knowledge is a dangerous thing
perfect for mbstring then
Thankfully 7.2 only so I can still fix all this crap
kicking it to pecl?
19:13
btw, how about expanding intl, so that we can get rid of mbstring?
there are tons of stuff in icu that aren't in php
like documentation
Did you just say icu and documentation
Those two words don't go together
it's better than intl's
Intl's approach to documentation is "go read the ICU documentation"
19:16
Which is not very useful
well, yeah... why not?
i could find anything i was looking for on the icu site (perhaps looking at c or java's documentation)
How to use variable to secure this from injection? $test = DB::getInstance()->query("SELECT password FROM users WHERE email= '[email protected]'");
also, use dependency injection instead pf global variables (through statics)
i tried ...WHERE email= '".$email."'"); but it's not working, and when i type my email like i show above...it's working
@PaulCrovella Maybe you know what is going on here, I am trying to start JAAS and it is giving me Error code 127, which I found online can happen if a file is not executable. But I can execute the file using php /path/to/file/jeeves :s
19:20
@Monk read the article
@Monk Imagine someone asked you how to send a message via the postal service. They wanted help getting it done. And you say to them "Why don't you just email them?".

Postal services = mysql_*.
email = PDO.
This is not about speed but technology. I recommend you do what @tereško says.
... while I am slowly getting drunk
We need a better analogy for that. Thoughts? Something that is outdated because of security that has a modern replacement which isn't speed based.
$stmt = $handler->prepare("SELECT * FROM users WHERE email=:email");
$stmt->bindValue(':email', $email, PDO::PARAM_INT);
$stmt->execute();
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo $rows->password;
This is ok right?
@Fabor in case of prepared statements, it is not about the speed only because mysql is shit
@Monk fetch() not, fetchAll()
19:29
$stmt = $handler->prepare("SELECT password FROM users WHERE email=:email");
$stmt->bindValue(':email', $email, PDO::PARAM_INT);
$stmt->execute();
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo $rows->password;
yesm that's better
@Monk Press up arrow to edit last message. 2 minute limit
.. no ... waut
FETCH_ASSOC gives you an array, so it would be $rows['password'], @Monk
@fabor sry
@tereško indeed. I'd like an analogy that doesn't use speed because it'll confuse people
19:31
also "row" and not "rows" :P
You know what INT is short for too right?
@Fabor can't you just use eval() as analogy?
ah, yes, @Monk - emails are not integers
you should use PDO::PARAM_STR instead
@tereško :P we need it for laymen
@Fabor either you are a developer or you are a layman
there are different expectation for people who write code
hell ... in IQ test, if you select that you are a developer, you get a -10 or -20 by default
@tereško We get many non-devs in here :P
19:35
Thank you guys, learned something new today :)
@Monk watch this video: youtube.com/watch?v=nLinqtCfhKY
it's about MySQLi and not PDO, but the basic principle stay the same
(PDO has some additional features, like names parameters and better API)
Hmm, SO delete chat history after a certain time?
Browsing for the older-mean tereško but can't find it. I did find you using "loosing" instead of "losing" though.
older ?
do you know how time and aging works?
19:43
That would be older-tereško.
> I hope we'll be able to exchange a couple of PHP-specific ideas here. :)
glorious first words in this chat
Hey guys, quick question, how could I go about trimming an array down to a multiple of 3 in length?
Is there an easy way to do that, or would posting a question on SO be better?
1. that vague
2. sounds like XY problem
ThW
ThW
@MattCowley count, calc, array_slice()
!!docs array_chunk
19:54
[ array_chunk() ] Split an array into chunks
ThW
ThW
floor(count($array) / 3) * 3 something like that
Anonymous
@Alesana run composer install :)
@JayIsTooCommon I did :s. I must have messed something else up because I downloaded a fresh install and redid everything and it ran now.
So I am one step closer to getting this to work haha
what are you actually trying to do, @Alesana ?
@tereško Get Jeeves to work from a virtualbox using my handle so I can test plugins
20:08
ah, bot
I have never liked chat bot
... hell, the one in JS room is even in my ignore-list
Why not o.o
they always end up being annoying
at least the php's bot has an option to delete crap (and a general policy being to user it)
Yeah they can be annoying but they can be useful too
Now I just have to figure out how to open a web socket
@Alesana the bot shouldn't be something that requires actually research and effort
It wouldn't require much effort if it had some documentation
20:18
.. the story of most of the php project
that reminds me that I should improve the docs of my own published project
@Alesana huh?
@PaulCrovella Which part?
Why is it that I never her room-owner rights here for more than a week? Had I ever abuse mod powers? Or are people just scared?
user924016
@PeeHaa you watching ball?
@Alesana why are you trying to "figure out how to open a web socket"?
20:20
this wiki document
user924016
heh yea not exactly what I meant (=
@Alesana that is not stuff you need to do to run jeeves
@PaulCrovella Oh maybe I didn't set something in my config then. I have him running but it doesn't seem to be working.
@Alesana want to do something productive - make a good tutorial for concept of "front controller", and single-point-of-entry in general
20:28
@tereško I didn't think there were a lack of tutorials for it :P
there is actually an acute lack of those
at least any at least slightly correct ones
"single point of entry" is one of the more important things a PHP developer as to learn to cross the fake line of beginner and intermediate levels
I understand the concept but I haven't implemented it in any project yet
then you have a project :D
:D I am going to make a text-based mmo when I am finished with my current project and I will learn to implement it with that
@tereško isn't a room owner?
@tereško Time to drink some water BTW :)
20:35
is my English already failing?
Yes. :P
hmm ..
you might be right there .. repeating "project" in the consequent sentence was a bad style
@tereško I did not see any English mistakes o.o
I am confused
.. different levels of expectations
When did you repeat project though
20:40
fuck, also "consequent" was the wrong word :(
8 mins ago, by Alesana
I understand the concept but I haven't implemented it in any project yet
7 mins ago, by tereško
then you have a project :D
here, @Alesana
While consequent isn't common I think it is the right word there, it means following
I just thought you meant that you had used it twice instead of me using it then using it :P
My point about drinking water still stands.
also, if you are wondering why would anyone give a flying fuck about his/her english skill - you write code in english, you name your variables in english and the names of variables actually have enormous impact on your architecture
There wouldn't have been any other word you could have used to refer to project, even though I had used it :B
11 mins ago, by tereško
then you have a project :D
should have been
> then that should be your next goal
or something along those lines
20:46
Maybe so :P
I'm a bit annoying, when it comes to natural languages
A stickler.
:38489747
> My point about drinking water still stands.
I second that :P
I still have a half of glass of wine :P
I give up on Jeeves
I am going to work on my main project
20:52
is it opensource?
No, the coding is pretty bad as well
But, it works
because in any decent job interview, the team lead will want to look at you github profile .. or maybe SO profile
My next project, the MMO, will be
I might faint if an interviewer saw the coding in my current project, I started it almost a year ago when I knew almost no PHP
MMO?
A game :D
Like, mafia wars, but not so obnoxious
20:55
mafia is not a MMO
it is a cow-clicker
/me googles cow-clicker
Mafia wars was mmo though
Unless I misunderstand what an MMO is
lol
What would classify as a text-based mmo if not mafia wars?
@tereško Where are you from?
latvia (a small, poor, post-soviet country)
Ah ok :B
21:02
They do good pastries though, Latvia that is
it's a northern-ish country, making good food is a requirement for survival
And there's an awesome pub called "Ala" there
"ala" (translation: cave, made by small animal) is actually quite a nice pub
I want to travel the world more :|
here is what a "text based MMORPG" looked like in 2005, @Alesana
..well .. at least one that I played
21:10
I think they have advanced in the past 12 years
:P
Well maybe I am using of the wrong word here, but I am thinking of an adult version of neopets
@Alesana actually, they have not
the game died
but, if you can do this for mobile market, you have a potentially profitable project
(I really suck a spelling)
buuuuuuuuut
to get there, you need to get better at PHP
so, get cracking at that "single point of entry" problem, @Alesana
:D I am going to do it more for practice than profit
@tereško cool!
21:15
I want to get into mobile app development but I think that you would not use PHP for it?
@Alesana the app-store sales model is dying off
these day everyone uses mobile browser apps
Is that right?
I would think it is the opposite
@PeeHaa chat scroll problem apparently made it to chrome stable meta.stackoverflow.com/questions/354431/… so hopefully someone will care now... as an aside how the crap does a gold badge holder in javascript not recognize that it's a dup
Wouldn't you need to improve CSS skills to make it for the mobile market?
As apposed to PHP :P
@Alesana no, because you dont' need to know everything
I am fucking scared of filter bubbles
21:31
I would watch it but my computer doesn't have sound
:|
Is there anything insecure about putting $_POST/$_GET variables into a header? Such as... header('Location: ' . $_GET['url']);
buy wireless headphones
I need to buy a new computer
But I am broke
@Alesana depends. It can be abused by 3rd part hackers to do CSRF and XSS style attacks
I would put some validation/sanitation rules on it, just to discourage your everyday script-kiddy
I don't have any authentication on the script so not too worried about those attacks
without seeing the code, it is hard to make an assessment
but you have user input directly being used in a redirect
21:36
I am just redirecting from https://www.something.com/out.php?url=websitethatsavesheaders.com to http://out.something.com/out.php?url=websitethatsavesheaders.com, then to https://websitethatsavesheaders.com
So I can lose all header information
not sure you would need to redirect int the first place
I am specifically trying to lose refferrer header information, I was thinking the only way to do that was to go to a https site to a http site.
Does anyone propose a starting point for learning PHP? Like a website
Thanks. Have you anymore websites?
21:44
@OhYesBaby your best bet would actually be getting some book
random turorials on internet as somewhat , .. em .. unreliable
That's why I'm asking lol. I don't know which books I should buy, I don't want to buy one and I've wasted my money. Recommendations?
but it;s really outdated
it dos not have nay bad content, but it also wont have any of the latest features
#ping @PeeHaa, @Gordon can you guys suggest any good books for @OhYesBaby ?
... I am way too drunk to be helpful
Stream php://temp incorrectly implements A+ mode – #75031
22:00
@Andrea I am Jack's lack of surprise
@tereško same
stackoverflow documentation was a terrible idea and SO should feel bad
^ so much that
they should feel bad for keeping it around so long, not for trying
I have a feeling, that they were trying to fix an issue in .NET community
also, no I am official drunk
well . maybe both .Net and Java documentation
22:04
.. it's from "common sense"
Well ... if you'd like an alternative for a " documentation ": tutorialspoint.com I've tried using this, but I wanted some professional advice on where to learn PHP, so I gave up
yeah, but
This is pretty accurate. See alsoShog9 ♦ Feb 14 at 20:48
that's from Shog
you think they're wrong?
I thin that Shog is the worst mod in SO and CommonSense is the worst user with gold badge in php
22:06
that doesn't answer the question
true
< drunk
gimme a second to actually read
> This site was designed to be the authoritative source of knowledge
^ NO
IIRC it was designed to be one place where all PHP programming questions and answers could be found
I suck
Thanks lol
the "Documentation" was design to placate the senior users, who were fed up with "too trivial" questions
and, yes, @Alesana, about 3 years about, "too trivial" was a legit reason to close a question
it was designed for "RTFM, here is the link" posts
basically, StackOverflow was faced with "help vampire problem" and they failed
if they were interested in placating senior users they wouldn't have set the rep requirements so low for docs.. and would've at least acknowledged what those users had to say about it all
22:15
the management went with a solution, that maximizes "new IPs" instead of "persistent users"
@DaveRandom ping
@PaulCrovella docs was a bandage on the problem they caused themselves .. then again, yo are relatively young to this chat :D
any more it seems like the minor moderation powers given out are there to placate - SO gamifies the behavior they really want with rep (and a lesser extent badges)
@DaveRandom do you know if it's possible to incrementally add into a cpio archive?
@tereško oh, absolutely. and it was a bad bandage at that
I did watch SO start, and grow.. it just wasn't 'till later that I decided to play too
22:19
I wish I cared more about rep, I might have more
it's true that 363 is very low.
Thank you for the clarificaiton :P
@Alesana these days getting rep is actually an issue
the only way is to feed help vampires
That's what I've heard
Well, I am not active on SO
22:21
alternatively, you could write major posts, that are awarded with bounties by old users
Only the chat really
Anyone know why someone would do this?
and a post would count something along the lines of "minor post about use of data mappers in PHP projects", @Alesana
json_decode(json_encode(($someObject));
if you do it right, @Alesana, you would earn at least 100 fake internet points
buuuuuuut ... you need to get it right
22:24
@Allenph Maybe as a poor way to escape strings in an array?
@JayIsTooCommon somewhat.
@Allenph maybe it's encoded twice to begin with
@Allenph I've most often seen shit like that when someone doesn't know how to handle xml and want to "make it array" - that someObject is a simplexmlelement
@bwoebi too busy watching GoT?
22:25
I think it would do that :s
(there'll also be true thrown in as the second arg to json_decode)
@FélixGagnon-Grenier it's encoding then decoding, not decoding twice
7 hours ago, by Félix Gagnon-Grenier
I can't read.
@PaulCrovella Nah.
No second argument.
... I should stop posting stuff
Plus, joke's on them then...the data we're concerned with is already parsed as an array within the XML object by simplexmlelement.
Also, they proceed to set a new variable to the array we're looking for by referencing the property of the object output by the json_decode();
22:29
@Alesana yeah, well, here is the funny part - when ever you play around in this chat, you are on average talking to 3 php core developers ans 2 other people who are skilled enough to shoot shit with them
simplexml doesn't make shit into an array, it pretends shit's an array and does so poorly.. it's a goddamn awful api
@tereško What an apt description of The Gods.
@PaulCrovella I digress. I just checked the type and it's cast as an array.
@Allenph I notice, you are not saying, that I am wrong
oh hey @tereško, since you're drunk, got a thing for you to sign up for meta.stackoverflow.com/questions/353845/…
@PaulCrovella I already have to apprentices online and one IRL
22:37
@tereško And I am in neither of those groups :P
no, you are not
hmm.. not quite drunk enough yet
@tereško Thanks for the clarification :P
@Alesana I am not entirely sure whether you should be thankful for that or not
@PaulCrovella I am from north-east europe
I don't know what it is with people reassuring me that I was correct about my low self-evaluation
22:42
that reminds me - I should start working on the wiki for "palladium"
Hey all, is this correct formatting? if(!$_SESSION){ session_regenerate_id(); session_start(); }
my experience today with amphp/artax was something of a wake-up-call\
Is that a way of saying artax should have a better wiki?
YES
it a complete shit
let's put it this way - I ended up using Guzzle
ran that code on two separate servers, works on one, the other outputs an error.

Warning: session_start(): open(/home/content/05/5290705/tmp/sess_eef05kovlen26vu3qjuebvehd1, O_RDWR) failed: No such file or directory (2) in /home/content/05/5290705/html/test.php on line 4

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

I assume this is the hosting company's issue at this point, but they're saying nope, it's a wordpress plugin. It's a f***ing empty raw php file...
at the base of the site, outside of the environment
22:46
if I didn't know, that guzzle exists, I would have ended up using cURL, @FélixGagnon-Grenier
Ugh
Glad you didn't have to
am I right to assume something's iffy with the hosting's base php.ini file?
@Darius are you on some VHost?
shared hosting at godaddy (client's server)
fuck
22:49
yup
fuck godaddy with a spoon
pitch fork sir
@Tiffany I would pick a spork
You're too kind
Hello guys again. I'm making "forgot password" function for my website, and i made all but i have a problem getting my input email adress. It sends to my email but if you open my github and page reset.php on line 6, that code is not working, that's the code i use to get email from input, but on line 7 when i type my email, everything is working fine. I upload all files there seperately.
22:51
I could go with @tereško's famous insult and say "shove a shark so far up their ass they can hear Jaws' dunna dunna dun dun"
lmao, i haven't heard that one
@Darius it's actually stolen from this guy: youtube.com/channel/UChS9wazLlTUHSTeKVG39hZw
well I guess I code until delivery gets here
@Monk is it just me, or it looks like Laravel?
@tereško Nope
22:58
you can't answer with "yes' or "no" to a question, that contains OR.
empirical evidence suggests otherwise
@PaulCrovella fuck you and you little dog too
@tereško I'm just trying to make it with PDO
Wait do headers get lost when you send from HTTPS to HTTP or the other way around? Now I am confused..
23:01
@IROEGBU That's not the point. I'm working on my project more then a year. I'm not gonna throw it away and download others scripts...
@Alesana you seem to be confused as to what headers are
@FlorianMargaine I mean to ask, the referer header
It seems that it is when a request is sent over SSL to a non secure website (ie a redirect from a https to http) but it is happening both ways for me
@PaulCrovella quote was from youtube.com/watch?v=D_KT7zoBTAA
@Alesana When I think about it, it would make sense that headers would be lost when going from HTTPS to HTTP because it goes from encrypted to unencrypted
but I'm still learning about headers so...
@Tiffany Yeah, well the browser should remove the information but I guess not all do
23:13
mmm nachos
What do you call cheese that is not your own?
nacho cheese
nothing, it's still my cheese
o.
:P
I feel bad for stealing @Jeeves job and telling a dad joke..
!!dad
What did one snowman say to the other snowman? Smells like carrots.
23:16
@tereško I'd assumed wizard of oz
@Alesana Why?
:D
sorry , I tend to play around common mortals :P
@Jeeves Why do you hate me
@Alesana 0.
oh fuck, the last sentence was mean for you @PaulCrovella
23:22
i followed, you're fine
:(
gimme 20 min, I'll be back in usable conditions
what's your trick? cocaine?
it's one of those "now you are breathing manually" things
hyperventilation, making hipsters think they know about meditation since 1649
no
just a fuckload of water am some additional oxigen
and I did not say "sober", just "usable"
@FélixGagnon-Grenier also, i would just like to note, that meditation is bullshit
@tereško All medication?
Or you mean a particular medication
23:33
> medication
Oh I can't read
I need to sleep
oh well rolls up sleeves
I am a child of a doctor
I trust in medication
phew, I thought you would say some bs like "hence I know about meditation being crap"
@tereško I think you misinterpreted what a glass means when your doctor parent told you "A glass of red wine a day is healthy"
23:35
@tereško I just went and mixed up a drink, we'll bridge the gap
I also have a cousin, who is into homeopathy ... it's an ongoing issue
what do you mean, by meditation, btw? spiritual business with chakras and stuff, or general relaxation of body sometimes acoompanied by particular breathing techniques?
What went wrong there?
In the US homeopathic medicines are required to say they don't work on the label
23:43
@FélixGagnon-Grenier if you have not seen that video, you might enjoy it
@tereško that "cutting" tone he has ;)
that's somewhat of an enjoyable watch
@FélixGagnon-Grenier it must be a teacher-thing
that class must be scary. imagine your teacher literally and figuratively tearing your paper to pieces publicly?
especially the "this isn't the stupid part, is it?"
@Alesana I thin they are required to say, that they don't contain any active indigents

« first day (2483 days earlier)      last day (2690 days later) »