« first day (2177 days earlier)      last day (2757 days later) » 

12:08 AM
"Peehaa, what's your mums name" ... "gary the goat"
9
It's been an odd evening
 
@bwoebi it took me longer to make useful contributions. :p
 
@Leigh not sure if just star or pin
 
notsureifserious.wms
 
Go home @PeeHaa, you're drunk
 
"but my home is faar.."
 
12:22 AM
Awàaày
Wow much unu inuco deish
 
Wes
is he as a legendary beer drinker as mythology narrated and musicians sang?
@Leigh i've found a video of which i think can only be @PeeHaa youtube.com/watch?v=O6hOWtqFd2M
 
Pretty spot on
 
Wes
1:06 AM
so cute
 
 
2 hours later…
2:36 AM
@Madara ping
 
 
2 hours later…
4:28 AM
Hey Hey Hey
 
hey hey hey hey
 
5:09 AM
posted on October 01, 2016

New Cyanide and Happiness Comic

 
5:31 AM
mornininin
 
6:26 AM
,mornininings
 
6:57 AM
Allo
@Leigh He literally was. It was great.
 
7:23 AM
@Ekin pong (sorta)
 
7:48 AM
mornsadfas\
 
Moiesgrhrdhdrh
 
good mornings lads and gents
 
\o
 
8:06 AM
Mornwings!
 
Finally doing a wordpress site again !
 
congrats
guess it was time to harvest $$$ again
 
oh it's even sort of non-profit but hopefully does harvest mucho dollares for a friends project
 
8:43 AM
=)
 
8:55 AM
!!dad
 
I just watched a program about beavers It was the best dam program I've ever seen
 
@Jeeves are you drunk?
 
@Linus Screw you human!
 
Hi
Is it possible to manage modem WiFi in php
I want to run account service on my WiFi which user can buy internet
Is it possible in php
Give me a topic to search about if it is simple or can be found on google
 
9:11 AM
no
Also, that's crazy
 
why would you say that's impossible ?
it's very possible, and may in some circumstances be a good idea ... I doubt we are looking at those circumstances .... the kind of thing I'm thinking about is in remote places where connections are expensive, you hear about ad-hoc networks in those kind of places ...
you would just need two networks, the first is public and limited to one site/domain/whatever, stick a registration thing on that domain and instructions to connect to encrypted network which uses decent open hardware ... the management of bandiwdth and whatever is not directly doable in php, but interact with the system acting as a switch isn't, it's just going to be a lil nix box
there's even some dedicated hardware, I forget the names of it, but for those remote places ... I remember reading about it and thought it was a great idea, one connection does a whole village, and even when the hardware is powered down, the ad-hoc network stays alive so everyone can still get online ... very good idea ...
if you just want to share with your friends, then it might be a bit crazy to go to all this effort ...
 
9:27 AM
=)
 
Morgen
 
\o
you still sober?
 
Still? Again
Gary is pretty fucking awesome @Wes
 
9:46 AM
o/
Don't worry, I'm here!!
 
O/
 
I probably should go buy some food
 
10:20 AM
morning
 
Anonymous
10:39 AM
Moinsgsj
 
o/
 
gimp is hard
 
10:54 AM
Hello!

I've been programming in PHP for a year now, finished 1 big (in my view) project. I was using a procedural style, and now I am getting into object-oriented programming. Also, now I am looking for a new job — one potential employer, where I was interviewed, uses a PHP framework Yii. (I never worked with any PHP fraemwork before.)

My question: Is it worth learning OOP *and* this fraemwork at the same time? Should I just focus on learning OOP? Thanks!
 
why did you write that in fixed font? Oo
 
your face is a fixed font
 
@Gordon Sorry, my mistake. First time here.
 
Sick burns
 
@PeeHaa your mother is a fixed font
 
Anonymous
10:58 AM
@Sean where you at?
 
@Archer PeeHaas mum makes it look easy
 
Lol
 
@JayIsTooCommon track 3. Couldn't find you all at the break
 
@Sean :P
 
Anonymous
@Sean I tried to shout you :P we were behind you at the bar. We're at track 1, see you at lunch o/
 
11:00 AM
@IgorRusinov Is it worth learning OOP? Yes, but it will take a long time to get it right. Is it worth learning Yii? Well, depends on whether you want to be a Yii developer in the future.
I'd base the worth on the applicability of the learned. OOP can be used with mostly any language. Yii can be used with… well… with Yii projects. So learning OOP should be much more worth. Although it will also be much harder than learning Yii. And if you know today that your next five projects will be Yii projects, then learn Yii. You will also learn some OOP along the way nevertheless.
 
@Trowski I think I've fixed the outstanding php-uv issues … if there are any left, please tell me
 
@Gordon Thanks for answer. I was worried about beginning learning Yii because I just started learning into OO recently. And yes, I don't know if my next projects will be Yii projects.
 
11:16 AM
Hi there,
I have an issue with forgot password. Can we decrypt the password to send to user's email who forgot their password?
 
@RasikaWadibhasme no, it's bad practise to have encrypted passwords. You should hash them. When a user forgets a password, you send them a link to their email address with a one time access token to change their password
 
Oh no... so there is no way. :'(
anyways thanx Gordon. Will work on reset password then.
 
12:01 PM
@bwoebi Why does the badge say that the build is passing while travis says it's failing?
 
@IgorRusinov if you have to learn a php framework (for employment purposes), I would recommend Symfony instead.
 
Hi Everyone.
 
@NikiC lol, don't know.
 
0
Q: Mysql Fetch Records Based on Multiple Cases

Vikas SharmaI do have merchant_credit_history table where I am storing merchant credit,debit and transaction type. I want to SUM of CREDIT or DEBIT based on transaction type. Records I Tried this : SELECT SUM(ABS(debit)) as dealer_credit FROM merchant_credits_history WHERE transaction_type='premium_de...

 
12:18 PM
@JayIsTooCommon Outside the Garden now (:
 
Wes
12:28 PM
i heard there's also darth vader at phpnw
 
@Wes true.
 
@Wes we wantes to take a picture but bob refused
 
Wes
is bob darth vader? i knew it :B
 
@PeeHaa :-P
 
Wes
y u no tweeting photos
 
12:48 PM
^
 
12:58 PM
@Wes to annoy you all :-)
 
:-(
 
Wes
:'(
 
1:25 PM
@Wes because it didnt happen. they are making it all up obviously.
 
evenin
 
Wes
lol.
 
that whole phpnw is a hoax
it's a conspiracy.
but they wont fool me. The giveaway for me was that they claim @PeeHaa to be there. That's impossible. His mum doesn't let him travel and given his constant level of intoxication he would never make it to Manchester alive anyways
 
@Gordon rofl
 
@Gordon lol
 
1:36 PM
<<<< to smart for ya! deal wit' it!
 
Dealing with it...
 
Hahaha
!!dad
 
Why don't skeletons ever go trick or treating? Because they have no body to go with
 
2:31 PM
0
Q: Show custom product attribute in product listing page with Mana dev filter in Magento2

Murali RajI want to filter products in product listing page(i.e.,Category page). I am having new attributes other than colour like size,legth, etc. So I want to filter with multiple attribute values. So I installed Mana dev multiple select filter module. Now, Multiple select values are working. But only de...

 
3:02 PM
@Gordon heeheheheheh
 
Ha, @Wes:
// prevents the callback to be called twice. temporary
// solution until further investigation is done
From the jQuery animate docs:
> A function to call once the animation is complete, called once per matched element.
You are animating 'html, body'
That's why it is called twice :D
 
Anonymous
@Sean we're at bar if you're around
 
make php.net material design
material all the things!
 
@Archer I investigated this in the early days of material, actually.
 
how did the end result turn out?
 
3:10 PM
We're not an app so we don't really benefit from it. And at the time our supported browser requirements were too low.
 
getmdl.io <- is good
 
Wes
3:21 PM
@LeviMorrison yeah :P
i didn't touch that because i didn't want to break other things, but scroll should happen on <html> only
 
But I couldn't find out specifics.
@Wes People claim it's better to do html, body because some browsers scroll html and others body.
 
Wes
no, it's html for sure. they eventually agreed on that
it just took 20 years
in fact just now chrome is fixing the annoying problems it has
 
Then we probably need it for compat if they are just fixing it.
 
Wes
chrome on this is the less standard of the lot
no, it's some strange problems
 
It doesn't work for me if I don't target body; this is latest stable chrome
 
Wes
3:33 PM
like you can't have body being fixed or absolutely positioned within html
yes there are problems with the dom api
wait
Object.defineProperty(HTMLHtmlElement.prototype, 'scrollTop', {non enumerable, configurable i don't remember the syntax });
with:
get function(){ this.ownerDocument.defaultView.pageYOffset; }
set function(v){ this.ownerDocument.defaultView.scrollTo(this.scrollLeft, v); }
and invert for X axis
iirc this is needed only in chrome, other browsers behave that way already
 
Hmm. My function is working but it breaks the back button
document.body.addEventListener('click', function(e) {
    if (e.target && e.target.nodeName == 'A') {
        var href = e.target.getAttribute('href')
        if (href && href[0] === '#') {
            var hash = href.slice(1)
            var target = document.getElementById(hash)
            if (target) {
                e.preventDefault()
                e.stopPropagation()
                PHP_NET.scrollElementIntoView(target, null, function() {
                    window.location.hash = hash
Seems I need to do something with onHashChange.
 
Wes
no, use history api directly, which covers hash change functionality as well
 
3:49 PM
It has the same issue.
Pressing back doesn't take you to previous hash location.
 
js is hard :V
 
I think I know how to fix it; it's just annoying.
 
Wes
@LeviMorrison can you set up a ftp account or something? tried already fixing this in the console but as it involves page changes it's not really easy
 
I think I'm going to attempt to remove the need for this in the first place; surely there has to be another way of getting the header to not cover the content.
 
Wes
no there isn't
 
3:55 PM
I remember finding several different methods, none of which worked for us because of various reasons.
I will at least research this.
Re-implementing the browser's functionality for a site as simple as PHP.net seems like it shouldn't be necessary.
 
Wes
why does so chat search suck so much? it doesn't work at all
there is actually even a css proposal exactly to solve that issue which is otherwise currently unsolvable sensibly
basically you'll be able to tell which elements are considered pieces covering the client area / viewport
so that scrollIntoView and similar functions can tell where to scroll so that contents are actually visible
 
@Wes I re-discovered why you were removing the id and putting it back.
 
Wes
i don't remember anything about that except that if i did some other way something else broke
and i didn't check further the reason that happened
 
Basically if you prevent the default and propagation then you have to re-implement the browser history and scrolling.
But if you don't prevent it then it 'flickers' before scrolling.
 
Wes
yeah indeed
if you give me some minutes i will make a clean example that works properly, possibly even commented
 
4:06 PM
I'm pretty sure I'm there already.
 
Wes
don't be proud :P
 
document.body.addEventListener('click', function(e) {
    if (e.target && e.target.nodeName == 'A') {
        var href = e.target.getAttribute('href')
        if (href && href[0] === '#') {
            var hash = href.slice(1)
            var target = document.getElementById(hash)
            // temporarily disable the id="" attribute from such element so that UA's default scrolling is prevented
            target.id = ''
            if (target) {
                PHP_NET.scrollElementIntoView(target, null, function() {
 
Wes
you aren't covering some cases. you sure you don't want me to do it?
 
What's not covered?
 
Wes
just give me some minutes.
 
4:14 PM
(this isn't the code that handles on-page-load scrolling)
(just handles anchor elements)
 
4:25 PM
Could put together the regular room 11ers and it would make a pretty convincing metal band
 
Wes
lol
 
wow mdl is pretty nice
 
4:45 PM
Hi all
I have heard that "singleton is not an object-oriented pattern" .is that correct?How is that?
 
@Exception because it is a global variable wrapped in a class
 
Wes
@LeviMorrison waaaaait for it. still on it, fighting DOM
 
@tereško is it because only one object is created at a time(per class) and it increase load over object when too many requests come?
 
@Exception do you understand why use of global variables is bad?
 
Evening room
 
Wes
4:51 PM
@LeviMorrison how stupid is that html.spec.whatwg.org/multipage/… ?
 
:33212194 global variable definition I know is syntax is like-
global $var;
if you wanted to use this variable you need to again call the same variable in each class method wherever you need it in the same as defined above
global $var;
 
I got interesting report about memleak report when exception thrown in php 5.6 interactive shell in OS X - github.com/pdezwart/php-amqp/issues/246
 
Wes
not news, it's an old thing, just sharing some dom-frustration
 
@Exception so, the answer is: "no, you do not understand"
 
It looks like a bug, but can someone with better internals knowledge give it a look, please?
 
Wes
4:52 PM
there is no way to differentiate between empty hash and no hash
 
while I got report in php extension, it reproduced with vanilla php with no extension loaded
 
@tereško can you please help me?
 
no
try a different hobby .. maybe gardening or macrame
 
@Wes I am fairly certain we can fix this with flexbox.
 
@tereško okay different way.. can you give me some reference link ?
 
4:53 PM
es6 is actually good
 
However, it is the content that will scroll (not the "page")
Is that acceptable?
 
Wes
yes if you want to do that we don't even need flexbox
just two elements, with the bottom one having overflow:auto
@Archer yeah. that isn't acceptable
it sucks. just like getAttribute() returning empty string for non-existing attributes -__-
 
@pinepain yeah leaks on 5.6, but not on 7
 
@NikiC is it needed to fill a bug (if no any yet) about that? Is it supposed to be this way?
 
5:02 PM
@pinepain nah, don't bother
 
Does anyone know what user I need to give write permissions to on IIS for session_start() on the C:\Windows\temp directory? I'm getting this error..

PHP Warning Permission denied (13) on session_start()
 
@NikiC ok, thanks!
 
I have given it to IIS_IUSRS but still no luck.
 
@tereško As per my understanding global variables can be changed from any place of the code,if we are using 2-3 libraries in the program then there maybe collision in the name and global variable may defeat modularity.
Am I correct?
 
is there a way to slide down a fixed div from off screen?
 
Fixed it, just had to restart IIS website xD
 
What's the difference between :: and -> ?
 
@yessure :: indicates scope resolution operator and -> indicates current object / any other object which you have defined before
 
5:24 PM
@Wes so using flexbox has downsides as well, of course.
Anchors don't work at all because they try to move html/body which are 100% height (nothing to scroll)
 
Wes
default anchor behavior goes deep into overflow:ing elements, if we reimplement scrolling and we do it only on documentElement, then yeah it's not gonna work
 
Such nerds
 
Wes
@LeviMorrison jsfiddle.net/x74377a2
 
Anonymous
@Sean @Danack @Jimbo @Leigh we're upstairs in the restaurant btw
 
Wes
@PeeHaa bob and dave, right?
damn @bwoebi get rid of that teenstache :D
 
Anonymous
5:32 PM
I think it's hot
 
Wes
<3 bob
 
@Wes Google solves this in their material design apps by leaving a large space above each section and putting the id attribute on a hidden element above the header.
 
wb
 
Wes
@LeviMorrison i'm doing something similar, so that we can we use native scrolling instead
but clearly if we aren't using fixed covering headers we can avoid that
 
@DaveRandom is it fixed yet?
@DaveRandom
 
5:45 PM
@Wes I can fix this... but not necessarily for all anchors.
 
Wes
yeah we are looking for a definitive solution here :P
what are you doing now?
i was wondering why we make position:fixed headers rather than just overflow:auto scrolling body
 
@Wes I want to have it grow a little bit more …………
At least try it out
 
Wes
:P
omg the ellipsis-es
:D
 
You have to know … I've never shaved me…
 
@bwoebi that's what she says
 
Wes
5:49 PM
ahaha
 
@PeeHaa
@PeeHaa @PeeHaa
@PeeHaa
 
@PeeHaa
 
Wes
@bwoebi you'll eventually hate shaving :D
 
@Wes I'm expecting that.
Hence I don't even try right now :-P
 
Wes
@LeviMorrison i think because in old mobile browsers overflow:auto didn't actually work
and because scroll on html is optimized
does that help?
 
5:53 PM
We used to employ this technique.
 
Wes
scroll on html is 0 repaints, just viewport offset adjustment, while overflow:auto involves repaints and it's the reason it's slow on mobile
 
I'm don't recall why we moved away from it.
(the technique by placing whitespace above it)
 
@DaveRandom
 
Wes
i'm not understanding what you mean, can you explain it? i don't think that'll work
 
posted on October 01, 2016 by bwoebi

amphp/file v0.1.3

 
5:56 PM
@DaveRandom
 
@PeeHaa no.
 
Wes
here's another teenstache :D
 
@Wes Also btw. for me it's a twentiesstache :-)
 
Oh goddamnit
 
@Wes Here:
#layout *[id]:target:before {
    display:block;
    content:" ";
    margin-top:-56px;
    height:56px;
}
That will place invisible space above the target.
 
Wes
5:58 PM
margin-top:-50px;padding-top:50px; but that won't work everywhere
 
It will but ther'es another issue:
 
@DaveRandom food is go
 
it places on top of whatever is above the target.
 
Wes
it won't work everywhere! margin has no effect on display:inline elements
 
It's display:block
Not inline.
Anyway, the goal isn't to work everywhere necessarily.
 
Wes
5:59 PM
i'm not a fan of that though
 
It's what Google does.
Not sure you can get more robust than that...
You also have to add extra whitespace so the "before" content doesn't prevent interaction for whatever is above it.
 
Wes
forget it
hm
 
Basically this is a common thing to want to do and no-one has figured out a robust option.
 
Wes
damn that's actually interesting
 
Every technique has downsides that make it unsuitable in some contexts.
 
6:03 PM
hi guys i have a question
why i cant use ON DELETE SET DEFAULT in mysql
i found here that its because of the innoDB
5
Q: Can't create foreign key with ON DELETE SET DEFAULT

fjcklsI can't create foreign keys with ON DELETE SET DEFAULT, but if i use ON DELETE CASCADE then all works here is my sql CREATE TABLE person( customer_id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) UNIQUE ); CREATE TABLE habits( customer_id INT AUTO_INCREMENT PRIMARY KEY, ...

But how to change the innodb?
this is my code
CREATE TABLE items(
id INT PRIMARY KEY AUTO_INCREMENT,
name TEXT,
saleprice INT,
buyprice INT,
code VARCHAR(20) UNIQUE,
categoryid TINYINT ,
storeid TINYINT ,
quantity INT,
smallestamount INT,
moreinfo TEXT,
FOREIGN KEY (categoryid) REFERENCES itemcategories(id) ON DELETE SET DEFAULT ON UPDATE CASCADE,
FOREIGN KEY (storeid) REFERENCES itemstores(id) ON DELETE SET DEFAULT ON UPDATE CASCADE)
ENGINE=InnoDB DEFAULT CHARSET=utf8
DEFAULT COLLATE utf8_general_ci;
 
Anonymous
@Feeds @bwoebi sort it out
 
Wes
@LeviMorrison
*:target{
  position:relative;
}
*:target::before{
  content:'';
  position:absolute;
  height:50px;
  top:-50px;
  /* for debugging, remove them: */
  width:5px;
  background:red;
}
would still do with js i think though. but i'm a known wheel reinventer
tried it, levi?
 
@MadaraUchiha I haz a question for when you have a some time
also mornns
 
Wes
\o
 
o/
 
6:13 PM
no answer?
 
42
 
Wes
can someone photoshop a mohawk to @bwoebi? no? ok i'll do it
:P
 
!!wiki mohawk
 
Mohawk may refer to: == Related to Native Americans == Mohawk people, an indigenous people of North America (Canada and New York) Mohawk language, the language spoken by the Mohawk people Mohawk hairstyle, from a hairstyle once thought to have been traditionally worn by the Mohawk people Mohawk people (Oregon), a band of the Kalapuya Native American tribe in the U.S. state of Oregon == Places == === Communities === Mohawk, Arizona Mohawk, California Mohawk, Indiana Mohawk, Herkimer County, New York Mohawk, Montgomery County, New York Mohawk, Oregon Mohawk, Tennessee Mohawk, Virginia ...
 
@Wes why?
 
Wes
6:14 PM
it matches the teenstache :D
still waiting for the ginger cowboy's photos
still unsure he actually exists
 
lol
 
Anonymous
Prepare yourself @Wes
 
Anonymous
user image
5
 
Wes
but he's not even ginger
and he doesn't even have a cowboy hat
so disappointing :P
that is his personal glass of beer, right :B
 
@Wes just ask your mom.
 
Wes
6:20 PM
ahaha
 
@Wes btw. I've discovered that @PeeHaa is his own mom … He transmuted himself into the abomination we know today as @PeeHaa
(But that's really obvious … no moms could give birth a being like him…)
yep
 
Anonymous
6:42 PM
!!version
 
Wes
6:55 PM
user image
2
 
clear point of division by zero
 
7:16 PM
wizzup
@PeeHaa not at phpnw ? :D
 
@Ekin Sure
Sup?
 
I want to have it grow a little bit more …………
 
VICTORY!!!!!11111oneoneoneleven
 
@DaveRandom aren't you supposed to be drinking booze now?
 
@Traxstar sure I am
 
Anonymous
@PeeHaa how's the flirting going?
 
Anonymous
7:59 PM
@Leigh are you alive?
 
@JayIsTooCommon is that you?
 
Anonymous
@Linus no, @PeeHaa :)
 
8:14 PM
:)
 
8:40 PM
back to slaving in the salt mines of javascript ... sigh
 
Wes
@LeviMorrison news?
i don't feel well. i ate too much pizza
 
Anonymous
9:02 PM
So it turns out @PeeHaa's mum is actually called Gary..
 
-1
Q: Getting text in HTML tags by PHP and translate then Alternative again

NabiI want translate my text in HTML without disruption Tags. I don't need a translator! I just wanna get Text parts on html and after translate them(REPLACE) Again Alternative them In the same place Please simple solutions, Like preg_match ** I still have no idea to do <?php $html = '<b>Hello</b

Hi
 
Wes
@JayIsTooCommon the story grows more intricate
 
@Wes Hi, can you help my question
 
Anonymous
@Wes apparently the weird Dutch pronounce it 'Gaghry' but it's spelt Gary. But yes @PeeHaa's mum is called Gary.
 
Wes
@JayIsTooCommon lol
 
9:30 PM
@PeeHaa @JayIsTooCommon in track 3. Slideshare kareoke
Pretty sure @bwoebi just said "lynch the evil chickens"
 
Anonymous
@Leigh I just got food, so can't come in :(
 
"The most important thing about chickens is they flap. If you hold them up, they flap a bit"
 
Anonymous
I'll rush my food..
 
9:54 PM
@Leigh was I that funny?
I didn't feel so... but if I did.. Good.
 
Wes
 
Anonymous
10:42 PM
Haha, that's awesome
 
Wes
you guys need to get jeeves that level of neural network idiocy :P
 
11:07 PM
@JayIsTooCommon @DaveRandom you left PH behind
 
Anonymous
11:36 PM
@Leigh oops? :P
 
11:51 PM
@Wes Took a break. Not sure which option is best going forward.
I think for now I'll commit a JS fix unless you oppose to it:
document.body.addEventListener('click', function(e) {
    if (e.target && e.target.nodeName == 'A') {
        var href = e.target.getAttribute('href')
        if (href && href[0] === '#') {
            var id = href.slice(1)
            var target = document.getElementById(id)
            // temporarily disable the id="" attribute from such element so that UA's default scrolling is prevented
            target.id = ''
            if (target) {
                PHP_NET.scrollElementIntoView(target, null, function() {
 
Wes
wait so you are trying to fix actual php.net?
 

« first day (2177 days earlier)      last day (2757 days later) »