« first day (2002 days earlier)      last day (2946 days later) » 

1:03 AM
Hey guys, quick question. Is there a way I can grab an array (from a different php file) in php?
 
1:19 AM
I'm guessing you want something other than including the file
 
Not necessarily. I think it's ok if I use include. I
am new to PHP and I'm just trying to figure out how to get it working. I figured I'd get a fast response here.
 
Well, if file a.php contains an array at the top level (i.e. not in a function, class, etc.) you can access it from b.php if you include a.php into b.php
 
1:34 AM
Alright, thanks. I'll look into it.
 
1:54 AM
Got it working :) Thanks for the help
 
2:10 AM
@tereško Remember that SQL book (or was it DB) book you recommended to Shrek?
 
Morning
 
Wes
3:09 AM
mornin
 
3:21 AM
mornean
 
mrnging
 
3:45 AM
Hi handsome i was wondering if you can help me of something
3
how do you add a class on the li with some color if <li class="red"><li class="gray"<li class="gold" <li class="red" <li class="gray <li class="gold and soon
 
Wes
@tereško should i try watching en.wikipedia.org/wiki/Divergent_(film) ? the poster is totally saying "this is a teen movie, avoid it like fire"
 
4:01 AM
@MaryDaisySanchez this isn't HTML/CSS room
 
●/
 
@littlepootis you can php on these also
 
Wes
\☻
 
<li class="<?php echo$%i ==2 ? 'shit' : 'none';?>
 
Not sure if serious or trolling
 
4:23 AM
:P
 
and php has nothing to do with html. they just are often used together
 
posted on April 09, 2016

New Cyanide and Happiness Comic

3
 
5:18 AM
moin
 
mornin
 
Wes
\o
 
Hi handsome ... wtf is that ...
 
:P
 
Wes
i laughed so hard
he/she is a troll, imho
 
5:21 AM
recognize username
 
Wes
May 14 '15 at 10:01, by boyee
i'm not a girl i'm a lesbian
same person
 
is it really
 
Wes
always fun though :D
yes it is?
 
:'D
 
yeah, is
 
Wes
5:25 AM
to be fair i'm not sure if a troll or just "accidentally that way", but hella funny every time
"handsome" reminds me a south park scene i can't really post :D i'm a bad person
 
:/
 
I don't like it ...
someone just asked me to comment on a lunchpad thread, something to do with ubuntu and apcu ... but is s several pages long ...
4.0.2 has a bug where it frequently causes a fatal error when attempting to iterate keys: https://github.com/krakjoe/apcu/issues/60 The 4.0.6 build from utopic is stable
php-apcu (Ubuntu)
Undecided / Confirmed
someone who has been awake longer than 20 minutes could read that for me and tell me what the gist is ...
I'm meant to be doing something ...
 
Wes
i have no idea
 
me neither ... looks boring :D
 
Wes
i'm reading but i'm not understanding
 
5:39 AM
mornin
 
nin'
 
as far as I can work out, they are debating which broken version of apcu to ship ...
or backport
I dunno ... but all of the version numbers they are talking about are broken, if you use <4.0.10 you're going to get strangeness ...
 
so, why not go with 5.x ?
 
that's only for 7
 
oh, and it's ubuntu, so you are locked to to specific versions
 
5:44 AM
yeah
I don't really get how LTS works
 
@JoeWatkins I think they have released an instructional video for that: imdb.com/title/tt0051418
 
I mean I don't know what their criteria is for including a package ... but it looks like their criteria forces them to use old unstable versions of code ... I can't think of a time it's okay to deploy old, broken code ... but that seems to be what LTS distros are for
lol
 
@Wes no. The book is bad and the movie is worse.
 
Wes
and they also made two sequels?
 
I've watched those
wife likes them, I have to keep asking what is going on ...
 
'nin
insurgent and something else, I think the names are maybe
 
@AnmolRaghuvanshiVersion2.0 'n
 
yeah says something about sequels on the page there ...
 
I just finished the force awakens
 
impression?
I mean, aside from:
 
5:55 AM
:D
It was just meh imho
 
that about sums it up, yeah
 
I'm not too opinionated, specially at 3am but it does sum up I guess
 
Wes
any scifi movie suggestion?
 
Intersteller? The Martian?
 
they're both good ...
 
Wes
6:05 AM
they sucked :B
 
thinking of stuff is too difficult ...
the martian book was good ...
 
yep, the book was better than the movie imho
 
I liked the film too, books are always better ...
it would have been impossible to make the film like the book was written ...
 
true dat ^
 
but they are too heavy..
 
6:07 AM
The MDN command seems like working
 
cool
 
@Wes watch Expanse series
 
@Ekin I didn't actually read the paper book, I listened to audiobook on school runs ...
 
Yay for the audiobooks
I got 5gb fresh of them all for this week
But i have been leaving my books everytime I move just because I can't carry anymore
 
I can never find time to actually read, love audiobooks though ... spend hours in the car every day, and otherwise just have to listen to kids argue about nonsense
 
6:12 AM
heh :)
It's also not easy to find books in English for me... and if I order they never make it
 
no amazon ?
 
I just torrent them, from the site I liked previously
 
Failed to find me two times -_-'
 
books are a dying market tbh ... I worked in that sector for many years ...
A fixed book price agreement (FBPA) is a form of resale price maintenance applied to books. It commonly takes the form of an agreement between publishers and booksellers which set the prices at which books were to be sold to the public. An example of an FBPA was the former Net Book Agreement in the United Kingdom. The key idea of an FBPA is to promote non-price competition between booksellers in order to promote the sale of little-known, difficult or otherwise culturally interesting books rather than catering only to blockbuster readers. To do so, an FBPA is deemed to ensure that the booksellers...
 
I actually made an account on Audible, but it turned out that most of books are not sold for Latvia (fucking region locks)
 
6:17 AM
Well, I have these CS books I've been carrying around for 3years
 
But, the Millenium series was awesome, except the last one, which was.... okay-ish....
 
@Saitama and Pretender
 
I scrape interwebs for pdf books
 
Filled an old hard drive with books
 
6:18 AM
@Ekin I have a cupboard for those ... I buy a new book about every year ... big reference ones particular to a language or subject ... but I rarely sit down to read them, mostly they are reference ...
 
They can also be used as a decoration.
;D
 
Mine include all "required" books for every university i eventually left :p
 
@JoeWatkins you need this one as decoration at work: barnesandnoble.com/p/c-for-dummies-dan-gookin/1102553814/…
 
I actually read them all, but in the order i plan to
 
@tereško hehehe
 
6:23 AM
Can you use SocketIO in PHP?
 
@Ekin yeah a lot of them have been read, long ago ... the recent ones I can remember buying weren't bought to be read entirely, like I bought a huge book about assembly while I was working on jitfu, but only needed to read a few chapters because it's been so long since using any asm at all ...
 
@HassanAlthaf no, socket.io is javscript (node.js in particular)
 
@tereško So, is there any alternative for sockets in PHP?
 
I'm using Laravel btw
Thanks @tereško
 
6:25 AM
I think you mean WebSockets
 
I think he does not know what he means - he's one of those RDD users
Reddit Driven Development
 
@JoeWatkins assembly... shit...
 
no no
I used these SocketIO in Node
 
@tereško :P
 
So wanted to know an alternative to this
in PHP
 
6:27 AM
that's not what you asked
 
yeah
Can you do socketio in php
 
@HassanAlthaf do you know how socket.io works?
 
no, you can't
 
@Saitama You broadcast on something on the server
In the client side, you listen for that event
 
Effing alien device..
 
6:28 AM
lel
I don't know the technical depth of this...
 
@Ekin :)
@Saitama I can read and write assembly, though I'll have to look stuff up sometimes ... but C is the lowest level at which everything make sense, I'm not at all comfortable with assembly ...
 
Just now here.. it's pretty hard to find good ones in english
 
to some extent you had to know assembly when I learned to write in C ...
 
i see.... ;-)
 
(should I explain anything?)
has anyone got an old version of php that uses the old apc still ?
 
6:44 AM
 
7:05 AM
... at 4am my guardian wants to go outside
Behind him there's the end of the forest :p
 
7:29 AM
@JoeWatkins How you become so pro coder
 
Don't ping random people ...
 
He isn't random... I just pinged him and asked him a question..
 
@Leigh will do :)
 
7:52 AM
@HassanAlthaf I work hard :)
 
@JoeWatkins Like, you read books or what?
 
@HassanAlthaf some books yeah ... there's no magic answer to the question "how to become a better programmer?" which is essentially what you're asking me ...
 
@JoeWatkins Uhm, can you recommend me stuff to do in order to become better? Learn more things?
 
well okay, that's a sensible question ...
learning new things is really required for you to keep your job, over the course of your life time as a developer ... every single one of your peers is doing at least that much ... the things you can do differently are work hard, which I already mentioned - put as many hours in as your body is able to cope with would be my (probably terrible) advice ...
 
what makes me, or equally bob, nikita, or anthony stick out among our peers is that we have taken the time to understand things that our peers think are practically impossible to understand, or not worth understanding .... I dedicate nearly as much time, in the long term, to the persuit of understanding, as I do to working on things I already understand ...
 
he's misleading you
 
who is ?
 
clearly the "step 1" is: shave your head
 
lol
 
8:06 AM
@tereško :P
And never forget the beard ;)
 
see, @Saitama, is already working at the step 2
 
oh yeah, you'll need a beard ...
 
don't give up shaved head and long beard makes you better programmer...
 
... from this you should also infer, that I am purposefully handicapping myself
 
fun reading that guy, named Tudor's comments :P stackoverflow.com/questions/209774/does-php-have-threading/…
 
@Saitama arguments start very quickly whenever threading in php is brought up ...
 
that's the thing i don't get actually.....
 
if a fact stays unchallenged in your head for long enough, it gets promoted to a kind of core belief, a thing that helps you to make sense of the world ... when a challenger comes along, it is much easier to rebel against new facts than it is to change your perception of what is ...
I am totally tired of trying ... I was up for it then ... not so much any more ...
 
hmm
If people don't try to understand, then it's really futile
 
everyone knows that php is not suitable for multi-threading ... and they have endless "facts" to backup their beliefs ... there is no arguing with that ...
 
8:21 AM
fighting against people suffering from Dunning–Kruger effect is pointless
 
!!wiki Dunning–Kruger
 
The Dunning–Kruger effect is a cognitive bias in which relatively unskilled persons suffer illusory superiority, mistakenly assessing their ability to be much higher than it really is. Dunning and Kruger attributed this bias to a metacognitive inability of the unskilled to recognize their own ineptitude and evaluate their own ability accurately. Their research also suggests corollaries: highly skilled individuals may underestimate their relative competence and may erroneously assume that tasks which are easy for them are also easy for others. The bias was first experimentally observed by David...
 
he was wrong, and argued the case poorly, but at least brave enough to try ... so many people of the people that have come across that posts, or posts like it, will be sitting there saying "this guy is mad" ...
there's even one guy who blogged about how mad I am ...
 
@JoeWatkins :P
btw do ya have the link to the blog
:P
 
Next RFC is going to turn #PHP into Java ... no big deal ... you all saw it coming, right ?
 
Which RFC?
 
!!rfcs
 
@HassanAlthaf does it matter ?
 
8:41 AM
@JoeWatkins Just got curious to see what's gonna be coming.
 
wasn't really talking about an rfc ...
 
I see.. would you be able to recommend me any content to take a look at.. or a language or whatever.
@JoeWatkins I see.
 
@Wes I am a Bischeri and I find that offensive
 
I'm from a third world country.. and there is little to no help for me to move ahead. xD
God knows how much trouble I had take just to learn a HTML and CSS a few years back.
lol
 
Wes
@littlepootis are you from the 14th century?
 
8:43 AM
@littlepootis lel you must be ancient...
 
Is "Bischeri" an ancient word?
 
@Wes Nah, 19th. But my grandfather, Gravel Poot, married Antonia Bischeri.
 
Wes
lol
 
My grand father's Italian, father's American and I'm russian.
 
Wes
can't tell if serious :D
 
8:48 AM
Damn
 
I totally am. Although my father was born in Dzhugdzhur Mountains, Khabarovsk Krai, he's worked in US military.
 
@littlepootis Nice website
 
@HassanAlthaf Which one?
 
@littlepootis erik.js.org
 
ah
thanks
 
8:54 AM
@littlepootis <title>{{ page.title }} | Erik Royall</title>
You using Twig or what
 
@HassanAlthaf Liquid
 
@littlepootis Thanks man.
 
in JavaScript, Jan 25 at 3:45, by Willem D'Haeseleer
Sup folks, I'm looking for a font where all the glyphs are actually empty ( a space if you will). I want to use it to put invisible text behind actual text so that I can have more control over exactly what will be matched on a web page by the default chrome search functionality.
 
:'D
 
9:12 AM
... 5mins I leave and my dog takes my phone
 
9:42 AM
> Chuck Norris invented black. In fact, he invented the entire spectrum of visible light. Except pink. Tom Cruise invented pink.
 
@Saitama neither of those are spectral colors
 
ikr, I just got it from icndb.com/api , and thought of sharing it :)
 
I have tried many youtube PHP web projects but all are using mysql. But now i come to know mysql doesnt support php7. Any links for complete PHP website projects for beginners
 
@Ayaz 'mysql doesn't support PHP 7'??
PHP7 does support mysql
and just the mysql_* methods were removed
you can surely use PDO, or mysqli_*
 
@Ayaz don't learn from youtube.
 
9:57 AM
^^
 
not universal truth
 
@JoeWatkins I'm generalizing but yeah
 
10:15 AM
@littlepootis can you please advise website which has complete website projects with PHP, Mysqli PDO
 
Why not books?
 
Thanks for that MIT user share Saitama.
Looking great.
 
Hello everyone :)
 
10:36 AM
@Saitama which books you recommend
 
Any beginner books for PHP, or any subject you want...
^ that can be a good one, but it's a lil' bit old
 
i want something with practical projects not basics syntax, variable, functions etc.. stuff
i have PHP7 dont support mysql_
 
morning
 
@kelunik 'nin
@Ayaz there are "practical projects" in that book :)
 
but it may have mysql not mysqli
whats the solution of it
 
10:42 AM
buy a book OR read a nice tutorial
 
Morning
 
i have to find some new book and also some tutorials on net
evening here
 
Aren't there any good books on PHP?
 
@PeeHaa nin' PeeHaa
 
10:46 AM
@Ayaz Most of the tutorials are obsolete
 
i have seen some 2015 tutorials
 
@PeeHaa o/
 
@PeeHaa who is the author? i want to give him some cookies. :'D
 
I only know the publisher O rly
 
@Saitama Pieter Hordijk
 
10:48 AM
@PeeHaa 🍪
^ dat unicode char is a cookie
 
\o/
 
@PeeHaa still uses mysql_*
So the answer to my question is... none
?
@PeeHaa The book that goes by that name is horrible.
 
'nin
 
@littlepootis ?
@JoeWatkins hey joe
 

Jeeves' Playground #2

Seems like Jeeves is getting more and more playgrounds day by ...
@PeeHaa check that out
the two new commands are !!chuck and !!mdn
 
11:01 AM
 
!!chuck gives a random Chuck Norris Joke
 
and !!mdn you know, searches mdn and gives the result
I haven't still commited it yet
 
Quick question... when the healing item is consumed by a player.. would you restore a fair percentage of their max health or just add a fixed amount?
 
@Ekin a fixed amount
 
11:04 AM
Damn I didn't know spacex attempted a landing again tonight
\o/
 
@Ekin the later?
@PeeHaa is the think okay?
 
Haven't seen the code but the commands seem to be fine \o/
 
wait, i am committing it..
 
Hello
 
that's what I have but was considering whether the former would allow me to do some different stuff later or not
●/
Guess I should just stop for a while
It's dang tomorrow already
 
11:12 AM
@Ekin Sometimes the player might be under some effect that reduces the health he gains from health packs.
 
> Chuck Norris doesn't need garbage collection because he doesn't call .Dispose(), he calls .DropKick().
 
Tnx. Will review and test in a moment and deploy afterwards
lgtm
 
kk
 
11:26 AM
> I just need an source or link
> I am not requesting for the SOURCE CODE
 
Wes
11:39 AM
so yeah, it was a 2 hours long deja-vu youtube.com/watch?v=H5MCFxcMslQ
how can one copy intentionally a bad movie
 
At least it doesn't have Jennifer Lawrence.
 
Wes
isn't she cool? i always read funny memes with her, regardless of the shit movies she makes
 
When Hunger Games came out, people said it was a Battle Royale ripoff.
 
!!version
 
11:53 AM
tnx @Saitama
 
Wes
never heard of that @littlepootis
 
WAAAAT!?
Go back to the torrentosphere and educate yourself
 
@Wes You should watch that.
 
Shame on you
6 messages moved to bin
 
Wes
i can't stand japanese stuff. they are melodramatic about everything
 
11:57 AM
If you were one of those children you too would be melodramatic about it :P
 
!!chuck
 
Chuck Norris once went skydiving, but promised never to do it again. One Grand Canyon is enough.
 
Wes
@PeeHaa children?
 
!!imdb battle royale
 
Wes
i'm taking of this kind of melodrama img.memecdn.com/first-tsubasa-problem_c_921383.webp
 
11:58 AM
[ Battle Royale 3-D ] 2000, Kinji Fukasaku
 
@Wes Yes, that movie is about children killing each other.
 
Anonymous
has anyone seen gods of egypt?
 

« first day (2002 days earlier)      last day (2946 days later) »