« first day (2147 days earlier)      last day (2791 days later) » 

1:00 AM
oi
 
Ekn
io
 
Wes
oi
 
Ekn
1:06 AM
oi
 
Wes
io
oi
 
no... I can skip a step and still know what step we're at
:D
in any event, I am totally now combo breaking this place
 
Ekn
c-c-c-c-combo breaker
 
you...
I can't stop looking at it
 
Ekn
tehehe
 
Wes
aha
 
jesus that font rendering looks terrible
 
Ekn
 
you mean my heavenly looking hand writing?
@Ekn wat?
 
no, that's fine
 
Ekn
1:13 AM
yea, that was my reaction to your ss
 
internet is fascinating
@PaulCrovella how do you see?
 
@Ekn's ordering is right. @FélixGagnon-Grenier, you fucked it up
 
Ekn
\oXoXo/
 
pffff
!!swordfight
!!swordfight @PaulCrovella
how does this work^
 
Ekn
@Jeeves You fight like a Dairy Farmer!
 
1:16 AM
if that means what I think you're trying to say, it works by at least buying me a drink first
 
@Ekn How appropriate! You fight like a cow!
 
ok my connection is reaaaally laggy
installing titan quest as of now
@PaulCrovella oh, not that swordfight
 
Ekn
/me is watching sing street
 
I'm doing chess puzzles, and I've no idea what either of your things are.
 
Ekn
mine's a recent movie that pretty much goes like:
> A boy growing up in Dublin during the 1980s escapes his strained family life by starting a band to impress the mysterious girl he likes.
 
1:26 AM
how's that working out for him?
 
Ekn
not so well of course, so far
 
lol.
like... really fat? :D
 
Ekn
lol... something is messy with connection
keeps giving me the retry/cancel text, meh
 
I'm sure once they win the battle of the bands, or whatever, it'll all turn around.
 
Wes
!!should i go to bed or play simcity or pretend to work
 
1:29 AM
You should pretend to work.
You should play simcity or pretend to work.
 
Ekn
:D
 
Wes
that's not useful at all jev
 
it narrows it down at least
 
Wes
!!should i play simcity or pretend to work
 
You should play simcity.
 
Wes
1:33 AM
:(
i made a city shaped around a swastika. i didn't realize buildings were laid out on a swastika til i zoomed out :(
 
"where are all my bankers at *zooms out* oh.. ohhhhhh"
 
Wes
was doing a symmetrical design on both axis :B at the center come out a huge swastika
 
rotational symmetry on a square grid is a hazard like that
 
my modem and router were like 400 degrees
thinks of a viable way to put them in the fridge
 
when you mentioned your hard drive problem my first thought was the old freezer trick (but apparently that's not a thing anymore)
 
1:47 AM
seems funky... what's that?
oh... like. putting a drive in a freezer
someday, I'll get real smart, I assure you
 
yep, in a ziplock bag and into the freezer. worked great for some kinds of mechanical issues
you were supposed to do it then transfer everything off before it warmed up, but I had a roommate who didn't bother - he'd just keep throwing it back in the freezer when it stopped working
 
!!should I begin to watch spartacus or go to bed
 
You should begin to watch spartacus.
 
back in an hour, I guess
 
Wes
2:11 AM
i made a river
well it's actually a moat or something
 
That's how you music, people!
 
2:28 AM
HI
Good Morning
 
\o
 
Sherif.. I do have php conflict problem at my production server.. can you please help me around this ?
actually I accidently updated version and everything went wrong.. then I asked hosting company to restore but they had only few files back up like ..php.ini...my.cnf..
now SOAP is not working because there may be some conflict of libraries
 
2:52 AM
shiite. I was not exactly ready for spartacus.
@VikasSharma you accidentally updated version of what?
 
thanks for replying felix
it was 5.4.4 and I upgraded it to 5.6
but then I revert it back by removing packages..
 
What OS is your web server running on?
 
now php.ini is showing 5.3.3 but packages are of 5.4.4
centos
SOAP is not working because I guess its not finding the extension directory may be..
rpm -qa | grep php
php54w-5.4.45-1.w6.x86_64
php54w-gd-5.4.45-1.w6.x86_64
php54w-soap-5.4.45-1.w6.x86_64
php54w-tidy-5.4.45-1.w6.x86_64
phpMyAdmin-4.0.10.10-1.el6.noarch
php54w-cli-5.4.45-1.w6.x86_64
php54w-imap-5.4.45-1.w6.x86_64
php54w-process-5.4.45-1.w6.x86_64
php-php-gettext-1.0.11-12.el6.noarch
php54w-common-5.4.45-1.w6.x86_64
php54w-dba-5.4.45-1.w6.x86_64
php54w-mcrypt-5.4.45-1.w6.x86_64
php54w-xml-5.4.45-1.w6.x86_64
php-tcpdf-dejavu-sans-fonts-6.2.11-1.el6.noarch
php54w-bcmath-5.4.45-1.w6.x86_64
 
There should be a specifically to weed out the kids.
 
3:14 AM
Morning
!!should I sleep or more sleep
 
You should more sleep.
 
!!rebecca
 
@Linus Happy Prebeccaday!
 
3:33 AM
!!dad
 
What do you get when you cross a snowman with a vampire Frostbite
 
Ekn
3:48 AM
!!wotd
 
nodus: a difficult or intricate point, situation, plot, etc.
 
Wes
> comment : By using Database is not proper solution in my case.
sigh
 
5:35 AM
Hi @NikiC! Did any symbol table internal detail changed between PHP alphas? `$this` is behaving slightly differently on functions depending on `zend_rebuild_symbol_table` https://3v4l.org/9amF2

Somehow I can't debug it properly with gdb.
 
Wes
yo marcio \o
 
yo o/
I believe at least compact('this') case could be fixed, so it would always work regardless a dead statement like $this; is emitted or not. Not a big issue, but it's a bc break that perhaps wasn't noticed.
 
I'm voting to close this question as off-topic because it not on topic — Isaac 33 secs ago
I mean they're not wrong...
 
TIL compact() is really weird >.<
 
mornin
 
5:46 AM
can anyone help me with this? stackoverflow.com/questions/39262185/…
please
 
@marcio are you talking about changes because of wiki.php.net/rfc/this_var ?
the result for 7.1.0alpha2 and up look expected to me, but maybe I've misunderstood
 
@PaulCrovella oh, there may be the cause. But it still looks like the change I'm talking about was unexpected.
 
if(empty($userid) && $this->CI->uri->segment(1) != 'log_in'){
            redirect('/log_in');
        }else{
			echo "unseter";
		}
if(empty($userid) && $this->CI->uri->segment(1) != 'log_in'){
redirect('/log_in');
}else{
echo "unseter";
}

i have a question what that it echo the unsetter? even its empty?
 
hello php
i just installed php storm but then i set interpreter to php 5 but the problem is this url localhost:63342/example1/…
the last piece of it is so confused what is this talking about ?_ijt=lr4g5bml14chgeh0g0bsi0h2p1
 
@PaulCrovella 17 upvotes and so many answers still not staisfied :P
 
7:01 AM
o/
 
Wes
mornings
 
morning
@tereško I see we're forcing our answers in one question :) stackoverflow.com/questions/39246267/…
 
7:32 AM
@brzuchal forcing?
 
I have a new mission for room 11: stamp out the "core php" menace. I don't know where that term came from but it needs to die.
 
where are you seeing it?
 
o/
 
also: morning
 
7:35 AM
@tereško oh you won
 
but most recently (i.e. just now) here and here... which finally got me twitching
 
\o
 
Using curl via terminal works perfectly, but when using it in PHP I get an 403 permission denied ? (I don't have access to the destination server). Why would it not work with php ?
 
typically because you've made a mistake
 
morning!
 
7:40 AM
@Sandro surprisingly, no one can see an example running on localhost.
 
@Sandro you can ignore it. its just something phpstorm adds. should be easy to google for details
@PaulCrovella rename it to php vanilla framework?
 
@tereško I just don't understand why people are tending to solve easy problems like object instantiation with DIC which purpose is to handle creation of services - objects which have specific purpose and they exists only one per request
 
@brzuchal because what he was solving there was actually not an easy problem
 
given this doc block in the Zend Engine:
| Authors: Andi Gutmans <andi@zend.com> |
| Zeev Suraski <zeev@zend.com> |
| Nikita Popov <nikic@php.net> |
I propose we rename the Zend Engine into Zendki engine or Nizend Engine.
if it was for me, we could also just rename it into @Nikic Engine
 
Oct 8 '15 at 22:19, by Paul Crovella
I'm surprised nobody ever took to Zengine - it works particularly well if you use a sexy rawr kinda voice when saying it.
 
7:50 AM
@tereško but why not a simple factory ?
 
because what he asked was not simple
 
@PaulCrovella E_NEEDS_MOAR_NIKITA
!!wotd
 
!!wotd
 
peradventure: chance, doubt, or uncertainty.
 
@brzuchal he he was illustrating multiple classes where each had a different dependency
 
7:51 AM
I totally knew it was wotd, I envisioned myself typing it out, but for some reason I typed word
 
@Gordon that's the sexy rawr part
 
Stupid pre 9AM brain.
 
@Jeeves Please sir, I have a peradventure!
@Sean yes, it was your subconsciousness agreeing to my previous message
 
!!dad
 
I'm not addicated to brake fluid I can stop whenever I want
 
7:53 AM
!!urban addicated
 
whatchoo talkin bout willis
 
!!de addicated
 
hey guys have anyone worked on laravel?
 
yes
 
no
 
7:54 AM
morning
 
22 hours ago, by Sherif
Every time a question on StackOverflow begins with the words "So I am a laravel developer..." a puppy is brutally murdered.
@WaseemAkram think of the puppys before continueing
 
hey @AmirBar, i am stuck in a fetching data from eloquent tables. can u help me out with it?
i have Users, Projects and ProjectImages tables. when i find a user according to UserId i want to get projects and project related images from ProjectImages also to be fetched.
 
Anonymous
xD
 
Anonymous
moins o/
 
7:59 AM
Thought i am able to get projects according to userId i am not able to get ProjectImages
@AmirBar
 
@JayIsTooCommon Moin!
 
Anonymous
\o
 
can someone explain to me what zend_is_auto_global_str does? apparently its important, but I dont get why
 
user5189304
Is their anyone that want to talk about codeigniter?
 
> zend_register_auto_global(zend_string_init("_POST", sizeof("_POST")-1, 1), 0, php_auto_globals_create_post);
 
8:08 AM
@Danack so I need to call that in order to init a superglobal?
 
@Gordon It looks like it's for things like $_POST that are only initialised when first read.
(blah - been trying to post that for five minutes, and internet keeps going away).
 
@Danack how did you get from is_auto_global_str to zend_register_auto_global?
 
Use the force luke.
 
1632zend_bool zend_is_auto_global_str(char *name, size_t len) /* {{{ */ {
1633	zend_auto_global *auto_global;
1634
1635	if ((auto_global = zend_hash_str_find_ptr(CG(auto_globals), name, len)) != NULL) {
1636		if (auto_global->armed) {
1637			auto_global->armed = auto_global->auto_global_callback(auto_global->name);
1638		}
1639		return 1;
1640	}
1641	return 0;
1642}
 
8:10 AM
I'm a php newbie and I was thinking to switch to UUIDs instead of using auto increments in mysql. Should I still do a search through the db every time before I insert a new row to be sure It does not already exists?
 
@Danack I think I've clicked all the clickable things in lxr for this snippet
 
@Schoening no
 
@Gordon I searched for the global auto_globals which is the only var being referenced in that function, and then zend_register_auto_global is the only function that appears to write to it.
 
@Schoening no because the likelihood of conflicts with uuid v4 is very small. then again, why do you want to switch?
@Danack so that function basically just checks if a string corresponds to superglobal? but whats the inner if for?
 
@Schoening use UUID's
 
8:14 AM
@Schoening No, you should write your code to expect DB inserts to fail and to retry them....which technically you should be doing already as the network connection could go away and the DB connection be unavailable for a few moments.
@Gordon It looks like there is concept of "arming" - of whether the callback needs to be fired a second time. Looking at php_auto_globals_create_post has the line:
return 0; /* don't rearm */
So the callback for creating $_POST is 'fired' once, but then not re-armed.
 
Anonymous
@Danack Did you feel like a VIP last night? A South Coast twitter announcement that you are coming to Portsmouth :P
 
@JayIsTooCommon That was tuesday....and it was just a shout-out for beers...
 
@Danack thanks
 
Thanks for the suggestions. @Danack Yeah I was thinking to do some recursion if the insert failed. @Gordon because the terrible e-book we are using at my school wants us to learn to use oop. And it's really bad at describing it. Fortunately I already know oop pretty well. And I just wanted to give UUID a try, seems like a really good thing if I ever need to merge databases and I remember a video by Tom Scott talking about incrementing leading to some security holes. Sorry for the wall of text.
 
Anonymous
@Danack Oh my bad.. email delay.
 
8:21 AM
And I always feel like a VIP.
 
@Schoening for the record: I never needed UUIDs in any of my projects.
 
Anonymous
You should with that beard
 
@Schoening UUIDs are awesome if you do DDD, mainly because you have a valid entity before you persist it. But lately I've just been using tabledatagateways for most things...
 
That moment you hear that after you deployed a year's work of development, a record number of visitors has been achieved...
 
8:41 AM
That moment you hear someone deployed a year's work of development instead of doing continuous delivery
 
@Gordon When doing a complete rewrite of a very chaotic legacy system, then yeah.
 
@Gordon ... by uploading the new files using FTP!
 
If we'd have the legacy code work together with the new stuff, it'd have broken for sure.
 
@NikiC … via an old 56k modem
 
@Oldskool rewriting part by part works too, you know
 
8:44 AM
!!? branch by abstraction
 
theoretically
 
Search for "branch by abstraction" (https://www.google.com/search?q=branch+by+abstraction&lr=lang_en)
• BranchByAbstraction - Martin Fowler - 7 jan. 2014 - "Branch by Abstraction" is a technique [1] for making a large-scale change to a softw… (http://martinfowler.com/bliki/BranchByAbstraction.html)
• Make Large Scale Changes Incrementally with Branc… - 5 mei 2011 - Branch by abstraction: a pattern for making large-scale changes to your application in… (https://continuousdelivery.com/2011/05/make-large-scale-changes-incrementally-with-branch-by-abstraction/)
 
@Patrick It might, but all parties involved figured that wasn't going to be a very smooth transition early on in the project.
Would also create a lot of duplicate work as we'd have to rebuild the old frontend which we already knew was going to burn in flames. We're talking a legacy system where HTML, CSS and PHP are all in 1 file.
We'd have to "copy" that into the new system just to replace it with the new layout later. Possible, yes. Ideal, no. And that's just one of many reasons.
 
fair enough
 
Either way, we did a lot of testing and had a QA panel for the new site, so it all worked out in the end. The transition went fine and now visitor numbers are booming. So I'm happy either way :)
From here on out we're definitely doing CI/CD :)
 
8:48 AM
@Oldskool migrating a system like that as we speak (10 years old), but doing it part by part. Would take a couple of years otherwise and would require a feature freeze
 
@Patrick Well, it's a consideration for each project of course. We did have a (near) feature freeze. Only critical stuff was fixed in the legacy system, but it wasn't modified otherwise.
So that made the choice a little easier.
 
Yeah that works I guess. Never been in the position where that was an option
 
9:05 AM
Morn
how is it possible to call a php function via button click ?
I generated an AJAX request to my class, but how can i define which function of the class should be called ?
 
@Traxstar Just make a separate file that does that.
 
so my ajax call goes to that file and in that file i reference to the method of my class ?
@Oldskool
 
Yes, so do an AJAX call to a PHP file that does nothing more than: <?php $class = new Class(); $class->function(); ?>
 
@Traxstar are you using any framework? routing component?
or are you doing the one file per page like it's 1999?
 
@Patrick no, just standart php
 
9:09 AM
@Traxstar is this just a html site with a single php function call or a proper webapp?
 
its a propper webapp
 
@Traxstar then you must have some kind of routing in place already that maps urls to method calls?
If not, maybe give this tutorial a read, especially the routing chapter
 
no, i just creating my classes i need in header and then keep going
will read this, thy
 
@Traxstar you might find this useful: stackoverflow.com/a/19309893/727208
 
@Traxstar oh... I would not recommend this, this turns into maintenance hell pretty fast. In that case definitely give the tutorial a try :)
 
9:15 AM
Got this button:
<button id="updateDropdown" type="button" class="btn btn-primary glyphicon glyphicon-refresh" onclick="">Update Dropdown</button>

with this ajax:

console.log("Ajax Call");
$('#updateDropdown').click(function() {

$.ajax({
type: "POST",
url: "updateExternalDropdown.php"

}).done(function( msg ) {
alert( "Data Saved: " + msg );
});

});


why is nothing happen ?
 
define "nothing"
dont you get any activity in devetools network tab?
no error messages in console?
 
Hi guys, a simple question, first I was using preg match, but now I chave changed it to strpos (because I thought preg_match is slower than strpos)

$referrer = " ".$_SERVER['HTTP_REFERER'];
if (strpos($referrer,"mywebsite.com")) {
} else {
die();
}

is it a good approach ?
 
good approach for what exactly?
 
a better performance
 
no ... well .. kinda
it will make people to stop using your site quite quickly, which will lighten the load on your server
 
9:26 AM
stackoverflow.com/questions/3861769/… with the dupe given in the comments
 
haha nope, actually Its not the same, just an example
 
strpos() returns false if no match is found
 
ThW
@user3304007 if (FALSE !== strpos($_SERVER['HTTP_REFERER'],"mywebsite.com")) { no need for the string concat
 
it will also return 0, if the string you want to find is right at the beginning, which in that IF will evaluate as falsy
 
DNC
I am trying to show an array on html page, but it comes up as "Array"

$($test).load( "getValues.php" );
<ol id=$test></ol>
How can I show the content of the array?
 
9:44 AM
wat?
you mean var_dump($array); ?
 
ThW
@tereško I think that is why he added a space to the start of the string
 
DNC
I load the array with a script within the body:
$($test).load( "getValues.php" );
Than in the body I try to display the array with:
<b>array:</b>
<ol id=[$test][1]></ol>

But it shows up as:
array:
Array
 
@ThW miahahaha
 
DNC
it is not showing the contents of the array, instead it is showing "Array" @tereško
 
because you did echo $array; in your php code
I told you to use var_dump($array)
or you have to send it as a JSON (that would be echo json_encode($array); and parse it with javascript
 
9:50 AM
Hey guys i need help with aws certificate manager

I have a domain associated with ec2 instance when i access it with ip/ domain it works fine with http.(ubuntu)

Now i want it with "https" so i registered with aws cerificate manager and this registration sent me an email i approved it and it is showing in my dashboard as "in use "=>"no"...
I dont know what to do next...
Can any of you guys put some light on me
 
ThW
@DNC are you trying to replace an html fragment or to load an array?
 
I have gone through its docs already but could not figure out what i should do next
 
I think he's just trying really hard to avoid learning both javascript and php
 
DNC
@tereško Thank you, now it is showing up as:
array(12) { ["values_id"]=> string(2) "13" ["firepack_id"]=> string(5) "12312" ["accuspanning1"]=> string(5) "24.40" ["accuspanning2"]=> string(5) "24.30" ["laadstroom1"]=> string(5) "29.80" ["laadstroom2"]=> string(4) "0.00" ["brandstofniveau"]=> string(4) "0.00" ["koelwatertemp"]=> string(4) "0.00" ["waterdruk1"]=> string(4) "0.00" ["waterdruk2"]=> string(4) "0.00" ["runtime"]=> string(7) "-1h255m" ["valuesdate"]=> string(19) "2016-09-01 10:29:53" }
 
try learning php .. it should help
 
ThW
9:54 AM
@tereško I have used jQuery.load() before - just to add partial loading without changing the backend and keeping the frontend working without js.
 
@ThW he keeps asking us to give code to him, and I am quite determined to decline
 
@DNC try echo $test['laadstroom1'];
 
ThW
@DNC jQuery.load() is for loading html fragment, not for data
@DNC jQuery.get() is for data
 
DNC
@ThW Thank you, this is what I was searching for!
 
@tereško can you help me with my issue sir ??
 
9:59 AM
@PraveenKumar I have no experience with AWS .. also, dont call me "sir"
@ThW I am pretty sure he actually wanted just to print <li> elements in PHP
 
Yes i remember now you told me once before
 
@tereško I think he was just being polite with the sir part :-)
 
@Oldskool yes right sir :)
 
hi, i am trying to implement no of views for a project(No of times a project is viewed), i am doing this for the first time any ideas how can i achieve this?
 
10:14 AM
@Gordon another example but in Java & C# gist.github.com/hsyhhssyy/dd8ebfb6d3bb40c30da19139d2ef99f2
 
@Gordon First time ever I'm seeing escape sequences supported outside strings
Is that something anyone but Java does (not counting C++ trigraphs)?
 
@NikiC idk, you're the whizkid not me
 
Gordon is the whizgrandpa
 
@Fabor with dementia :D
 
heh
 
10:16 AM
who are you again?
 
Your worst nightmare!
 
ah, that guy
 
Reckon there's a significant performance hit for rerouting e.g. CSS assets through PHP, which would serve cached CSS or compile & serve from SASS if needed?
Pretty much the way something like twig or blade works, but for css
Never really keen on serving static assets via PHP but I've seen it done before
Though I guess you could use the !-f flag to serve static if cached, and compile & serve if not..
Then again, ideally you should be serving assets from a CDN, which makes compiling at run time not possible unless you have some CDN magic going on behind the scenes.
Continues rambling to himself
 
@Sean what you want to do is use a consistent naming convention for the generated CSS files, so that once they are generated once, nginx is able to serve them.
And also migrate from apache to nginx....
 
10:32 AM
@Danack Aye. On the "list".
 
moin
 
moin Sir
 
Hello guys
 
10:49 AM
late-mormornings o/
 
\o
 
morngings
 
Anonymous
yo pan
 
Anonymous
Anyone used Shibboleth before?
 
Anonymous
Because it's shit.
 

« first day (2147 days earlier)      last day (2791 days later) »