« first day (2167 days earlier)      last day (3006 days later) » 

00:25
@Sherif Instead of trying to flag 16k posts, please just post a flag on one, with links to a few examples so we (the moderators) can investigate. If it's really that bad, we're going to need to involve the developers, rather than handling it one flag at a time. Thanks.
@Ekin heh. was just about to ask you what the script was for really, then actually read it properly
Replaces (s|m|h|d|w|mon) with strtotime compatible abbreviations
... which also reminds me how much I hate HEREDOC and NOWDOC. sorry @people
yep :-) that's the first one. although it currently won't work with 5m3s foo alikes
let me not be lazy
@EdCottrell I was being facetious when I said that. I wasn't going to flag them all myself. I could provide a dump of the ctph hashes if you'd like.
oh yeah it doesn't check the order of them @Félix, good point, however 3v4l.org/vqiTa
00:35
@Sherif Something like that would be awesome. If you could raise a custom flag somewhere, mention my name in it, and give us a link to the dump, that would help tremendously. Thanks.
bass drop 2 d bare
heh ^^ sorry for double ping
that was actually a pertinent edit, and mention ;)
so bass drop is to be the next mic drop?
:D I'd have no objections
@Ekin so I am just messing around with the clear intent of breaking it, but I would have a question. Here I'm not sure about the difference between the two arrays.
I would expect 5day 4hour 3min 2sec to be the first recognized value in the second array
00:45
2nd one requires there to be a trailing string, not just a time specified, also it doesn't accept leading strings
ohhhh.... /me feels dumb, as this is probably written right there in the regex
there, it has to start with integer, and the trailing string is required for the Reminder plugin I was working on, since otherwise there'd be nothing to remind
:-)
 
1 hour later…
01:55
\o
dat feeling of emptiness after finishing an awesome anime....
Also, @sjon ... or whoever manages the 3v4l site, some module loading warning are popping up like:
PHP Warning:  Module 'gmp' already loaded in Unknown on line 0
PHP Warning:  Module 'iconv' already loaded in Unknown on line 0
 
1 hour later…
03:52
@NikiC Groovy, thanks :)
o/
morning Fabor
04:39
\o
o/
04:55
!!commands
Wes
Wes
05:24
\o
gm every one
06:23
Good morning you sons and daughters of a two legged creatures.
06:33
@Fabor you won't believe what they found in the cannibal's shower!! They found Head & Shoulders!
06:58
Morgen
indeed
@Epodax my wifes father had no legs ...
had?
he died when she was young ...
diabetes took his eyesight, then legs, then life ...
good morning
afk school run ...
moin bob && wave
07:13
Ah at least I get waved :-)
:) out
@JoeWatkins ah sorry, didn't consider that possibility when I was being pedantic :x
morning
Just installed lamp + phpmyadmin on a new vagrant box. I configured it so that I can login to root without a password on phpmyadmin. But I am seeing two localhost on /phpmyadmin. One that I can login without a password, one that tells me that I need to set a password. Is that normal?
07:30
65
A: Can anyone confirm that phpMyAdmin AllowNoPassword works with MySQL databases?

DondeEstaMiCuloI'm going to check the obvious first and ask if you remembered to copy your config.sample.inc to config.inc. in most cases on linux you will find config files here: /etc/phpmyadmin/config.inc.php Second, if you are trying to log in as root, you should have the following lines in your config: $...

Wes
Wes
morning phpeeps \o
@JoeWatkins Sounds like my dad although still alive (I think)
@Wes Mornigni wesman
@SagarNaliyapara thank you :)
Do you by any chance have an explanation why I got those two localhost in the selection option?
Wes
Wes
@PeeHaa that's an horrible thing to say :B go call him...
@Wes I probably should at some point, but meh
Wes
Wes
07:38
do it now :P
/me hasn't got dad anymore :(
Hi i need an ajax file browser I want to show my directory in my webpage
any simple code
??
morning
morning kelunik
Wes
Wes
\o
07:41
no one have not ajax file browser ???
@Wes Starting next Monday, I don't have any exams this year anymore. And next semester starts mid October, so plenty of time. \o/
Wes
Wes
\o/ great :D
Learning for this last exam is fun at least. :)
Wes
Wes
what is it about?
Human Computer Interaction, mostly usability, user studies, human memory and recognition, ...
07:44
kinky
yo cross
@DaveRandom o/
@PeeHaa no
mornings!
07:46
That said, I dunno how much time I will have during those three weeks ... have to do a move and build a new kitchen. ^^
Wes
Wes
looks nice kelunik. morning dave
@DaveRandom It's ok. Was testing the new twitter client and pebkac
ahh k cool
Well I have semi-started implementing invites
@DaveRandom Invites?
@DaveRandom Nice
@kelunik inviting of the bot into a room
07:49
Unfortunately in order for the to work we need global event handling so more re-engineering of the back end \o/
(only minor)
@PeeHaa OH, nice.
@DaveRandom hahahahahahaha yea rite
When you say minor it's only a metric used for the number of commits and that's about it :P
Good morning 11
bro how I can show utf 8 directory naming
08:02
Bro?
<?php
$root = __DIR__."/files";

function is_in_dir($file, $directory, $recursive = true, $limit = 1000) {
$directory = realpath($directory);
$parent = realpath($file);
$i = 0;
while ($parent) {
if ($directory == $parent) return true;
if ($parent == dirname($parent) || !$recursive) break;
$parent = dirname($parent);
}
return false;
}

$path = null;
if (isset($_GET['file'])) {
$path = $_GET['file'];
if (!is_in_dir($_GET['file'], $root)) {
$path = null;
} else {
$path = '/'.$path;
}
}

if (is_file($root.$path)) {
(see full text)
Wow
in this code I want to show utf-8 directories
Please don't dump walls of code in chat
ok sorry
08:05
yomin v2
@PeeHaa @DaveRandom Did you already thing about adding StatsD or something like that to @Jeeves to monitor it?
Anyone know why I would get an out of range exception when using SplFixedArray and looping over it with foreach? O.o
@kelunik That's what the embedded aerys server is for
not really anything more than a PoC atm but the infrastructure is there
Nvm. I'm dumb
@DaveRandom Why write all the metrics collection and aggregation again?
08:10
@kelunik oh wait, maybe you are talking about something else
@Trowski, did @DaveRandom answer all your questions about pq?
The built-in Aerys app is fine as a control panel then, but I don't think it should cover metrics other than uptime or total count of messages sent.
Is it possible to take a look at the php file once everything is included? So I can see where what parts have been inserted and that kind of stuff. For a better understanding.
@kelunik It's AFAIK an API to get raw JSON data
@DaveRandom I'm talking about send attempts, send failures, command process times, loop blocks, etc.
08:11
ah
@m6w6 I think it was minor pebkac combined with E_MAGIC in ext/pgsql (it has an opaque connection pooling layer)
@kelunik ah right, then yes if there's something I can feed raw stats into and get shiny aggregated data out of then I'm all for it
@DaveRandom okay, fine
@DaveRandom We use StatsD (collection + initial aggregation) + Graphite (storage + aggregation once data gets older) + Grafana (graph interface) at work.
anybody using trusty on Travis-CI?
strange things are going on ... I can't see krakjoe.ninja domain on godaddy, can't login to the vps provider I thought I was using ...
why can't I just remember stuff like a normal person ...
Anonymous
08:24
mornfiarg
@JoeWatkins hehe
You sure you didn't just forgot to pay their bill?
wtf, I've got two godaddy accounts
@JayIsTooCommon He bieber
Anonymous
<3
Anonymous
!!wotd
08:25
afflatus: inspiration; an impelling mental force acting from within.
it lapsed last february, and I seem to remember just logging in and fixing it ... it probably is because of changed card details (lost my card about a month ago) ...
grrrrr ...
@JoeWatkins Should I get my pitchfork?
yes, also, fire ...
kk
I assume you just found out why we tell people to not use godaddy for anything ever? :)
I'm not sure how I got two accounts with the same email address and name ... iirc they had a deal on ninja domains, I always use namecheap ...
looks like vps is down, but can't figure out where the damn thing is ...
08:35
@JoeWatkins I heard the php team is looking for somebody to manage their servers ;-)
Hey everyone. I'm looking into taking a Microsoft certificate and have some questions / want feedback. Where would be the appropriate stack site to ask about certification stuff?
meta or programmers?
what is an microsoft ?
lol
@Chris Neither probably
certainly not meta
oh rly?
08:37
because that's for.. meta stuff about the site
right
But it somewhat depends on the actual question you are going to ask
perhaps on the relevant chat then
chat would probably give you the best results
kewl. thanks bud
well, looks like I will never be able to login, it's definitely at vpsnodes.com, so says whois of dns a, but the last time they sent me an email was months ago ... so I dunno ... if I ignore it, it might go away ...
hehe
I wish I had an assistant/whipping boy/whipping girl ... this feels like it should be someone else's fault ...
Yeah I totally agree. Probably @DaveRandom
08:44
haha
note to self: ZSTR_VAL_P is not Z_STRVAL_P and whoever came up with that naming should be flailed
no no no
the naming is obvious if you think about it for a minute ... stop saying that ...
You are all crazy
I protest, I've been evaluated ...
08:46
:P
Anonymous
@PeeHaa tweet2?
hopefully tweet2 destroys the first tweet, and forbids the discussion of it's content ... and burns anyone who agreed, really hard ... in the eye ...
Anonymous
Burning someone really hard, nice
Wes
Wes
@PeeHaa :B
08:48
ZSTR_VAL_P isn't a thing, that's just made up ... ZSTR_ means zend_string, Z means zval ...
Anonymous
I can't look at Jeeves code right now.. My self esteem is too low
Wes
Wes
joe, accept it, it's crazy. you need a superior memory and intelligence to understand php-src
@JayIsTooCommon I just dropped this in it
@JoeWatkins It is made up by somebody in @Gordon's team
no you don't, I have the very opposite of that, I don't remember anything, including my own name ...
Anonymous
Don't use. Let me first test it in production.
Anonymous
08:49
brilliant XD
I won't accept it, ever ...
The strange thing is that it actually works somehow
Wes
Wes
@PeeHaa i know right :D
@JoeWatkins C'mon George
Wes
Wes
ahaha
08:50
nope
hehehehe
Wes
Wes
:P
Moorgen
Wes
Wes
\o
08:52
o/
@kelunik regarding http://externals.io/thread/308#email-12140
long running php scripts usually use the cli sapi dont they? if so we could use a different default when cli sapi?
a compile option isn't really appropriate ...
when php is built for apache (so as dso), the same object files are linked for dso and php-cli binary ...
same for fpm, same objects ...
you'll have to think of another way, and it can't really be a conditional jump, is too high frequency for that to be realistic, I think ... I haven't read most of this thread, so dunno what other ideas are floating around ...
@staabm ^
the simplest thing is probably just moving the hash function to the sapi (as callback in sapi module struct), if it is to be sapi dependant ...
09:25
posted on September 21, 2016

New Cyanide and Happiness Comic

@JoeWatkins What's the exact issue?
@staabm That might be another option. Could you post a message to internals?
@Feeds hate it!
@Feeds Pathetic
Anonymous
o/
mrgrfhh
hi
I have a doubt regarding functions in php
I have a function structure as this gist.github.com/kamlekar/…
the thing is every function in my code has the same structure
and the place where I highlighted will have different code
is there anyway, I can make it as common all over the functions, all over different classes?
09:55
o/
\o/
any idea?
get a callable as a param for that function and run it at that place. Then in all the places you will call it, you call this function and pass also the bit of logic that is different for each case
that is what I am unable to understand. I presume that is called as "callable".. searching...
@Mr_Green what is the functionality in between?
code related to getProjects function
the code which I shown is like skeleton structure to all functions
I should be able to use the "$result" variable inside the functionality
something like lexical scoping of JavaScript
10:05
hi all , we have 2 different php sites with different databases for each site. 1st site is e-commerce shopping site, so that we saved some order related information in "order table". we dont copy "order table" from 1st site to 2nd site. we need to display those order information in 2nd site dashboard using APIs. is this possible ?
you say "we need to display those order information in 2nd site dashboard using APIs." and "is this possible ?"
so you already solved your problem
Anonymous
The answer is yes
@AdilIlhan i dont know is that possible or not
@Mr_Green Sorry that's a bit too vauge for me to give you any meaningful answer
Food time \o/
Anonymous
10:07
@nsdlfefinedieicbe Yes it is possible
@JayIsTooCommon do you prefer displaying order information using 1)API or 2) is it better to copy "orders table" from 1st site to 2nd site and than display in dashboard using 2nd site database ?
you have to provide a bunch of functions as example @Mr_Green
@nsdlfefinedieicbe api is better
ok I am on it
Anonymous
@nsdlfefinedieicbe API probably
because you have to move the data from 1st server to 2nd server constantly
it is risky
you may connect to 1st website's db from 2nd website
if you working on local network
10:09
@AdilIlhan @JayIsTooCommon its on server , means also wastage of space in database right ?
if they work on different c class ip addresses then you shouldn't think connect through network
@nsdlfefinedieicbe are they working on same network?
^ they are purely examples
Anonymous
@nsdlfefinedieicbe data will be out of date, you're repeating data, depending on the size copying will be resource heavy etc.. etc.. I would go for API.
@AdilIlhan i didt got about network, both are different sites with diferent domain name and hosted on different server
ok use API then
10:12
@JayIsTooCommon @AdilIlhan Thanks a lot for both.....
Just when you think you grasp RegEx, it throws you a curve ball >_>;
@Mr_Green i would use dependency injection for your dependencies that in functions.
As a user I actually expect external links on this site to open in a new tab, they are usually a reference to read alongside whatever answer/question I'm looking at. I find it annoying to have to consciously remember to open them in a new tab. — James P 23 mins ago
it's not enough for SO to spoon-feed people code, now it has to handle basic browser interaction for people too
So Fo#o matches against #^Fo[\#]o$#` but not against #^[A-Za-z0-9\s~!"@\#$%'\(\)\*\+,\-\./:;=&;\?\[\\\]_\{\}\^£&]*$# Argh.
10:24
@PaulCrovella The search I'm working on has a checkbox option to enable opening result in new tabs... because people...
you sure a checkbox isn't too much effort for them? I mean they have to click it - who has that kinda time?
@kelunik Aye, it works in regex tools, I think it's a delimiter problem
@Sean Also, unnecessary ;
And &, but it's not my regex, it's copied over from an API spec, just want to get it working first :p
The # is escaped in the regex though, so I have no idea why it's failing.
10:28
Do you have PHP code?
$pattern = $this->getPattern();
if(preg_match($pattern, $string) !== 1) {
public function getPattern()
{
    return '#^[A-Za-z0-9\s~!"@\#$%\'\(\)\*\+,\-\./:;=&;\?\[\\\]_\{\}\^£&]*$#';
}
Just spotted that single quote in there. Might be that actually.
\\\'
and \\\\
actually ignore that, you shouldn't need to escape it in the regex
I think that was it @Leigh
probably just the \\\\
\' to \\\' and \[\\\] to \[\\\\\[
Working fine now, thanks for the fresh eyes. ^^
10:32
so many slants
probably don't need it for the quote
Yeah, quotes might just be able to be taken literally without escaping
Aye, works without escaping the quote.
there's a lot of stuff in there that doesn't need to be escaped
Mm.
@Gordon wurst kase scenario, german jokes about sausages and cheese
4
sorry, late to the party :/
Anonymous
10:42
lol
Wes
Wes
nice, 1pm and i basically did nothing today
@Wes lol
take a rest :)
Wes
Wes
i'll stare at phpstorm for 6 more hours
or a week
anything can happen
good morning
10:57
!!dad
Wanna hear a joke about paper? Nevermind, it's tearable
Raj
Raj
11:10
session varible not passing between in php pages on lunux ubuntu server
can any one suggest me ??
@Raj are you starting the session at the top of each page?
Raj
Raj
ya
i have shifted website from my godaddy server to linux ubuntu
server
before shifting everyting workign properly
same PHP version and ini files?
Raj
Raj
ya
5.3
did you create a question or do you have your code posted some where?
11:13
@Raj 5.3 ? wth? do yourself a favour and at least install PHP 5.6
Raj
Raj
@bassxzero no
@Saitama that project was developed before two years one years ago
ok... but what does 'two years one years ago' mean? like, 2 or 1 year(s) ago?
Raj
Raj
@Saitama it was tying mstk 1
oh, np :)
Raj
Raj
@Saitama ok
11:19
Do you have error reporting on? and do you get any errors/warnings?
Raj
Raj
@bassxzero error_reporting(E_ALL);
sessiob variable value not passing
5
Q: Session variables are not persisting between page loads

user520300Can someone tell me why the session vars are not passing between pages? They were working up to 2 days ago. Now its not? There is a third party system that logs users in based on the third party system. I direct users to the login page with the return url. The third party system logs a user i...

19
Q: Developing a government that can hide an immortal ruler (and their secret to immortality)

skeletimSomeone has discovered the secret of immortality (whoa, awesome!), but it requires what amounts to a human sacrifice and their spirit overtaking the deceased body (not as awesome!). Technically, it's more like possession than immortality, but it will be referred to as immortality since it's the s...

Apocalypse?
Raj
Raj
@bassxzero thanks but i have checked this before but not helpful
@Raj post code?
Raj
Raj
11:25
<?php
session_start();
error_reporting(E_ALL);
$posted=$_POST['posted'];
$unm=$_POST['uname'];
$pass=$_POST['pass'];
try{
if($posted=='y')
{
require 'functions.php';


$flg=0;
$sql="select * from u_details";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
if($row[0]==$unm && $row[1]==$pass)
{
$_SESSION['loged']='y';
$_SESSION['eid']=$row[3];
$role=$row[2];
mysql_query("update u_details set st='on' where id=$row[3]");

$flg=1;
break;
}


}

if($flg==1)
{
if($role=="Em")
{

redirect('employeehome.php');
(see full text)
<?php
session_start();
$loged=$_SESSION['loged'];
$message =$_SESSION['loged'];
echo "<script type='text/javascript'>alert('$message');</script>";

if($loged=='y')
{
require 'top.html';
require 'connection.php';
}


?>
go into your DOS terminal and look into the package manager man page — NDM 3 mins ago
I can't tell whether they're trying to make a joke.
@PaulCrovella that guy has 5k rep
@Raj create two simple pages page 1
<?php
session_start();
$_SESSION['a'] = 'blah blah blah';
?>

page 2
<?php
session_start();
var_dump($_SESSION);
?>
@Saitama I've seen worse from people with much more
11:32
@Raj go to page 1 then to page 2 and see what the output is
@PaulCrovella :|
Raj
Raj
@bassxzero i did that but same issue
Do you reckon it's healthy to cycle longer projects, like monthly or bimonthly?
I get burned out if I work on the same thing for an extended period.
if you're getting burned out then something should change, sure
@Sean for me it's just a matter do i enjoy the feature I'm working on. If not then I get burned out.
11:37
@kelunik I am not subscribed to internals
feel free to post the idea
@Sean I hate working on large projects like that. I just mentally chop it up into smaller projects instead and work on those
It often results in smaller isolated libraries which is only good
Raj
Raj
@bassxzero can anything wrong in my php configuration pashium.com/reports/es.php
thanks for the.. info.
@Raj yes
you are running an unsupported php version
( ͡° ͜ʖ ͡°)
Raj
Raj
11:42
@ok but my other sites are working fine on this server
!!giphy it's fine
1 message moved to Orphan GIFs
swing and a miss
is /var/lib/php5 writable by the apache user?
Y wordpress????? pashium.com/… /cc @Raj
11:56
wurst kase scenario, german jokes about sausages *and* cheese
when will it be over ?
wordpress or German jokes? or just civilisation in general?
^ me
I think the former is probably a sign that the latter isn't far off
just the day, if it happens to be the end of german jokes or wordpress then so much the better
I think you mentioned that yesterday ...
11:59
Oh I did? Sorry then. :(

« first day (2167 days earlier)      last day (3006 days later) »