« first day (1693 days earlier)      last day (3255 days later) » 

12:08 AM
@MarceloCamargo nice :-)
 
Anonymous
12:55 AM
@ircmaxell do I get any cookies for being exactly your 1K-yth follower? :P
 
Anonymous
that 999 was causing me to twitch
 
1:13 AM
@samaYo nah, the 999th one gets these.
 
Anonymous
oh :(
 
Anonymous
/ unfollows ircmaxell
 
Anonymous
:P
 
Morning.
 
@MarceloCamargo morning? you're in here all the time already?
 
1:20 AM
Yeah, I do.
In home, in enterprise...
All the time I'm in computer. About ~16 ~20 hours / day.
My record is 96 hours. No sleep, no food... (no bath).
The consequence was my second depression crisis. :P
 
1:34 AM
What time is it there?
22:34 (10:34 pm) here.
 
Anonymous
3:34 am
 
@samaYo 1kth follower?
 
Anonymous
yeh
 
where?
 
github^^
 
Anonymous
1:37 AM
github
 
oh
/me doesn't use github's social features
 
Maybe some day I reach there. I have only 89.
 
closing in on 9k twitter followers tho, 8934 right now...
and climbing fast
 
@ircmaxell Do you have any talk video?
 
I have lots
what specifically are you asking for? Any of them? Or specific talks?
 
1:41 AM
Is there any specific about PHP 7?
 
not yet
I will be giving one in a few months at PacificNorthWest PHP
 
Did you already come to Brazil in any event?
 
yes, many years ago (2008 or 2009)
 
 
1 hour later…
3:08 AM
Hmm. I know a context menu won't work on an element whoms contents continuesly refresh. But I wonder if the same goes for a div element continuesly updated by a websocket?
 
3:32 AM
@ircmaxell Just now I got the PNWPHP email saying I was not selected. Finally, the wait is over.
 
 
1 hour later…
4:33 AM
@tereško I just can't find time to order the parts I need.. this is total bs, and I hope I won't have to look for different ones. + my sony xperia z's touchscreen broke, I was phoneless a couple of days, I really hope to be able to order everything before Ligo so I would have time to dedicate to build it
time and money
 
@LeviMorrison sorry to hear that :-/
 
omfg
how do i get laravel to work on my ubuntu webserver.
works completely fine on localhost
but this is what I get in my webserver: vexato.com
 
@HassanAlthaf what do your error logs say?
 
5:08 AM
@HassanAlthaf turn on error reporting explicitly
 
Surely solving the wrong problem will yield the desired outcome.
Quite a poetic abstract for a conference session: blackhat.com/us-15/… -- very scary, though.
 
6:21 AM
@ircmaxell It's okay ^^
 
Good morning
 
@SergeyTelshevsky you around?
 
@MarcelBurkhard yes?
 
@SergeyTelshevsky does "darwin" ring a bell? :D
 
6:35 AM
I don't think I can say anymore due to discretion ..
not here anyway
 
6:47 AM
Not seeing rebecca on starred list
its friday right?
 
is there a way to get all the list of province in wiki then insert it to database table ?
 
Didn't get accepted for pnwphp, didn't expect to tbh :-) I'm just not a fan of spamming random conference CFPs that you don't actually want to go to just to get to speak, which sadly seems to be the way to do it these days
 
select * from properties where ( ((raw_min >= '2222222.22222') or (raw_min <= '2716049.38272')) and ((raw_max >= '2222222.22222') or (raw_max <= '2716049.38272')) ) and location like '%old madras road%' is giving me property of 5600000 to 9600000 pl help me in correcting it
 
7:10 AM
http://phpfiddle.org/lite/code/pugm-ck41 I can't seem to get it to work :/ Anyone mind taking a quick look?
 
Goooooooooooooooooooooooooooooood friday morninigningignign!
 
No one? :(
 
i changed [query][1] to $qry_props="select * from properties where (raw_min BETWEEN '{$min_price}' AND '{$max_price}') and (raw_max BETWEEN '{$min_price}' AND '{$max_price}') and (location like '%{$this->request->data['location']}%')";
its now showing no results
[1] => http://chat.stackoverflow.com/transcript/message/23706367#23706367
 
stackoverflow.com/questions/30613900 Can anyone help with this?
 
7:28 AM
I'll have to try harder then.
 
7:39 AM
Cannot redeclare class phpmailerException

I've googled for the issues but really couldn't find any help...

http://stackoverflow.com/questions/10734397/phpmailer-exception-error
https://www.drupal.org/node/919958

If any body could help me out
http://pastebin.com/FsjqAf6t
Thanks
 
user3323092
hi
 
user3323092
<?php
$host     = 'localhost';
$username = 'root';
$password = 'nxsolteam';
$db       = 'theartaffair';

$conn     = mysql_connect($host,$username,$password)

if(!$conn)
{
   die("Connection failed: " . mysql_error());
}
else
{
  echo "sucess";
}
mysql_select_db($db); or die ("Unable To Select Databse");
session_start();
?>
 
user3323092
this is my connection
 
@Prashant please use pdo or new mysqli for that mysql_connect is deprecated
 
user3323092
i cant echo error or sucess msg
 
user3323092
7:43 AM
me never use that
 
user3323092
can u tell me how to use
 
you can get it from here
http://www.w3schools.com/php/php_mysql_select.asp
 
user3323092
still same
 
@Prashant You might want to change your password now
@user2736704 Please don't direct readers to that piece of shit
 
user3323092
7:52 AM
@PeeHaa means
 
hey @PeeHaa [= Started enjoying the friday?
 
@PeeHaa hmmmm :)
 
user3323092
@PeeHaa if me use mysql than is that anything wrong with that
 
Couple of hours work to go, but at least it is 31°
 
7:54 AM
oh nice
 
You don't like w3schools @PeeHaa?
 
@Epodax Nope. Its's a site full of vulnerabilities and bad practices
 
@Epodax I do not like w3schoolss
 
/me whistles innocently
 
ah vagrant works great when you have a windows box
 
user3323092
7:56 AM
@PeeHaa thanks
 
user3323092
@PeeHaa can u please point out wer is my mistake in config file
 
what would cause incoming connection to work but not outgoing connection to work? (Unable to ping or anything.. traceroute shows * (single star) for all hops....
 
firewall
 
yeah what exactly in firewall? outbound policy is set to allow always
what else in firewall?
 
8:08 AM
Hey guys.
I have a fucked up Laravel
It doesn't work in my VPS.
While works right in my localhost.
Any idea what is it acting in that way?
 
look up the logs. It's probably some extension missing.
 
Oh, where exactly are the logs
 
@HassanAlthaf answer please:
3 hours ago, by Sergey Telshevsky
@HassanAlthaf turn on error reporting explicitly
 
depends on your environment
 
I am on apache2
ubuntu
 
8:09 AM
@SergeyTelshevsky well, not necessarily on prod
 
@SergeyTelshevsky oh, how do I do so?
sorry, im shit at this apache stuff
lol
 
this is a php config
 
209
Q: How to get useful error messages in PHP?

CandidasaI find programming in PHP quite frustrating. Quite often I will try and run the script and just get a blank screen back. No error message, just empty screen. The cause might have been a simple syntax error (wrong bracket, missing semicolon), or a failed function call, or something else entirely. ...

 
oh laravel is on
debug on mode
 
@FlorianMargaine I think if the site is down then it won't be a problem :)
 
8:10 AM
nah the site is up
 
@HassanAlthaf Laravel is on, career is off
 
@HassanAlthaf not laravel. php.
 
@HassanAlthaf you really should do that.
@HassanAlthaf stop trusting some framework. turn the errors on and make sure they are not turned off anywhere
 
Is that right?
Hey guys, is that php.ini right?
 
@DaveRandom If you haven't booked yet, I got a tpexpress email saying all advanced tickets bought this month get 25% off
 
8:14 AM
I'd do that in index.php using

error_reporting(-1);
ini_set('display_errors', 'On');
 
Alright.
I'll do it, gimme a sec.
done
I dont get anything still
 
looks like your best new pal framework turns them off somewhere
 
there is some testing environment variable
try setting it to true
 
oh it works now.
I had to chmod.
storage directory requires 777 permission.
Finally.
and yeah
i have set that to true already
Opinions on the design? vexato.com
 
8:20 AM
it's... familiar
 
haha, i had a problem with it
bootstrap stuff
i came here for it
i think u saw it then
Hey guys, when it comes to programming jobs
what qualifications are the best to have?
 
@HassanAlthaf Able to get down on fridays
 
get down from what
 
@HassanAlthaf goo.gl/r6uqNf
 
I'm not even gonna be subtle about it this time. #Rebel#isitFridayyet?
 
8:24 AM
you asking me to take a break?
lol
wish i could
school starting on 15th
diploma course starting on 27th
its gonna be tough
so i decided to even work on sunday
 
@SergeyTelshevsky lmfao, that is hilarious.
lol loving how laravel doesnt require to code a lot of shit
 
posted on June 05, 2015 by kbironneau

/* by STC/HMD */

 
@HassanAlthaf this is what you are doing right now
 
@SergeyTelshevsky you wish. this is a clients software
lol
he wants me to do it in a universal way so that some other developer can understand this too.
 
8:37 AM
@HassanAlthaf every php developer understands php, not every php developer understands laravel. and even more, not every laravel developer understands php.
 
@SergeyTelshevsky lol
@SergeyTelshevsky i dont like laravel dude
@SergeyTelshevsky I am just using Laravel to meet my deadline
i hate frameworks
its over 4k files dude
where i barely use 20
 
@SergeyTelshevsky I would actually argue with that. So many frameworks provide so many crappy "helpers" that a lot of people who solely use the likes of Laravel don't actually know how to write "pure" PHP
Is the same kind of thing you get with JQuery and Javascript
 
@AllenJB lol ikr
it just spoon feeds u
i usually use pure php
well not that pure. i use packagist libraries ofc
 
@AllenJB so what are you arguing with then if I said exactly that?
 
@SergeyTelshevskyMy bad I skimmed the last part of what you posted. I read "PHP developer" as anyone who programs PHP or with PHP frameworks.
 
8:44 AM
Fair enough @AllenJB
Now a days most companies require you to work with frameworks.
 
I use frameworks, but I make sure I know what they're doing for me so I can avoid the shitty parts (like CodeIgniters db->result(), which pulls the entire SQL result set into an array for no good reason)
 
But they don't know how much they being hit with performance.
lol
 
use caching for performance
 
@RonniSkansing lol how? my first project with laravel
 
build your project, setup varnish or etc
 
8:50 AM
not my project m8
but i'll look at it
but doesnt cloudflare do it for u
 
dunno =/
 
Could anyone help with this question?
1
Q: Make PHP session persist between Safari and Web App

TugzridaI know there are a few questions already about this issue but none of them match my case exactly. I have a webpage that uses PHP sessions. I have modified session.gc_maxlifetime and session.cookie_lifetime to make the sessions expire after 24 hours rather than on browser close. This works fine o...

 
Please don't spam. If somebody is here and wants to help they will
 
Good moanings, and hippy Furdays :)
 
9:02 AM
s this chat based on XMPP
pp
 
Happy furdays conqueror of docs @salathe!
@Kannu No it is not
 
I do I do I do I do I do I do
 
@salathe you sneaky son of a goat.
 
:P
 
9:06 AM
:D
 
I even hovered over the link to be sure it wasn't.
God damn it
 
@Epodax You can never be sure (unless you have a plugin that can follow redirects and tell you the final URL)
 
I know that now.
 
For future reference: any links to salathe.co.uk will be Friday links. :)
 
Or just follow a new rule of thumb, what ever @salathe links, don't ever, ever, ever click it.
 
9:08 AM
@Epodax ... on Fridays
 
It (mostly) only applies on Fridays - and it's not just @salathe
 
@salathe ever
 
@Epodax hehe
 
@salathe this is what all of us want to do with you for that.
 
I'm not clicking that.
Not again, fool me once, shame on you, fool me twice shame on me.
 
9:09 AM
This one learns fast.
 
4 clicks recorded, guys, you click it - you star it
 
@SergeyTelshevsky Not every Rebecca link deserves stars. ;-)
 
@kelunik you make Rebecca sad by saying that
 
So this is the place where all the php freaks are? :p
 
No, just the freaks
 
9:11 AM
The star board would quickly get very boring on Fridays if every friday link was starred
 
@SergeyTelshevsky I hope so. :P
 
@PeeHaa I'm sorry, I didn't think posting a link after 2 hours on no responses would be classed as spamming.
 
No worries
 
@Wanjia No, they're over on PHP Freaks :) [NOT A FRIDAY LINK]
 
9:23 AM
totally friday link ^
 
@salathe Well the php freaks who are helping other people with php problems than :p
 
It's not nice to call people freaks :(
 
better than being called a worm :D
worms are more uglier
 
Do I have to choose between either? :O
 
There is nothing wrong with being a freak...
 
9:30 AM
You can have both
 
moin
 
Hey @DaveRandom
 
It just sais you do something more ofter than others which makes you more advanced on that topic ;)
 
@Wanjia fyi I'm not offended, just pulling your tail
 
the laravel community is so inactive.
 
9:36 AM
@Epodax Just if you were offended :p putting it out there that it's not my intention :)
 
@salathe anyway, I would like to have a room 1 elephpant.
 
@SergeyTelshevsky I'm not sure elephpants and sandboxes play well together
 
Does anyone know what $i % $DiscountEveryNumberTickets == 0 does?
 
@Wanjia Look up "modulo"
 
Is it the same as $i %2 == 0?
 
9:43 AM
when $DiscountEveryNumberTickets is 2, sure
 
Well if $DiscountEveryNumberTickets is 2 yes
Ninja'd!
 
which namespace should I use
 
42
 
to use the static method put in the Session class?
 
Oh ok, I see it now :p I got confused because of the space, thanks
 
9:44 AM
for Laravel?
 
The space is optional in both cases
 
I really find it hard not to be sassy when people ask bad questions and get mad when you don't wanna write their code :/
 
@Epodax Don't hold back on the sass, let it all out :)
 
10:00 AM
@salathe I fear it will end up giving me trouble :P
 
@Epodax Trouble is just another opportunity for more sassy responses. :)
 
10:13 AM
@salathe True :P
 
10:24 AM
@salathe You're good with graphics aye?
 
hmm .. the "thermaltake thing" is picking up the speed
 
God damnit Salathe, you and you're elephant.
Why did I not see it coming.
 
guys, how do i do a recursive closure?
function($x){ echo $x; callee()($x+1); }
$a = function() use ($a){ ....... }
(using php7, if matters)
 
81
Q: Anonymous recursive PHP functions

Kendall HopkinsIs it possible to have a PHP function that is both recursive and anonymous? This is my attempt to get it to work, but it doesn't pass in the function name. $factorial = function( $n ) use ( $factorial ) { if( $n <= 1 ) return 1; return $factorial( $n - 1 ) * $n; }; print $factorial( 5 );...

 
so still pass by reference?
 
10:35 AM
Or use a Y combinator ^^
 
@Fabor Welcome to the club.
 
@NikiC ?
 
That's interesting that it's a reference
 
In computer science, a fixed-point combinator (or fixpoint combinator) is a higher-order function y that satisfies the equation, It is so named because, by setting , it represents a solution to the fixed point equation, A fixed point of a function f is a value that doesn't change under the application of the function f. Consider the function . The values 0 and 1 are fixed points of this function, because and . This function has no other fixed points. A fixed point combinator need not exist for all functions. Also if f is a function of more than 1 parameter, the fixed point of the function need...
 
Do have any decent graphics guys in here?
 
10:37 AM
Aramaic (Classical Syriac: ܐܪܡܝܐ Arāmāyā) is a family of languages or dialects, belonging to the Semitic family. More specifically, it is a part of the Northwest Semitic subfamily, which also includes Canaanite languages such as Hebrew and Phoenician. The Aramaic script was widely adopted for other languages and is ancestral to both the Arabic and modern Hebrew alphabets. During its approximately 3,100 years of written history, Aramaic has served variously as a language of administration of empires and as a language of divine worship. It was the lingua franca of the Neo-Assyrian Empire (911-605...
same thing?
 
What the fuck is this
 
@Jimbo Looks like a plushie
 
@Jimbo an object of my desire
 
@Gordon Are there any rules about someone advertising themselves for hire in an answer i.e. along the lines of "This is the basics of how you would do it, writing a full answer would take 2 hours and these are my rates".
 
@Jimbo really? $30,000??
 
10:50 AM
@Fabor you ought to specify if you mean a designer or programmer.
 
Designer.
Nothing major though, just small stuff like logos
 
@Fabor @DejanMarjanovic is good at stuff like that, as is @salathe
 
Cool
 
heh
 
10:57 AM
@Danack hmm, SO is not for self advertisement
 
Yeah - that's my intuition as well....on the other hand I can't find a rule against it. Also I am getting slightly annoyed by answering questions in the Imagick section. Although fake internet points aren't worth much, the "time spent answering" to "fake points gained" ratio is really shite when people have highly specific questions - stackoverflow.com/search?q=user%3A778719+%5Bimagick%5D
 
posted on June 05, 2015 by kbironneau

/* by MonsieurLeMarquis */

 
@Danack ugh, I get unreasonably annoyed when I see accepted zero-score answers
 
@DaveRandom It's even more high-larious when the answer took 4+ hours to figure out...
 
a) there is an achievement for that
b) you at least get the 15 points for accepted
 
11:07 AM
@Danack well, we do contact people on excessive self promotion
 
it's worse when you get, "thanks, it works now" comment, with no accept and no vote
 
@tereško I got the achievement which I believe is at something like "25% accepted zero score votes". I think I peaked out at about 40% zero score accepted answers.
 
lol
 
@Jimbo holy smokes... +$20 just for shipping?! (or $40 for 5)
 
@NikiC One of my favorite articles. I use Y-combinator very often. :3
 
11:22 AM
@salathe Fancy a whopping $10 to turn this sketch in to a 112x112 pixel graphic icon? :P.
 
11:37 AM
@Fabor Aaaaaaaarrrrgh!! What the shit is that???
 
Destiny (game) helmet. Needs to become an emote for twitch
 
11:50 AM
@Fabor I'm completely unreliable when it comes to doing "work" for people... can I say, leave it with me over the weekend and let's see what happens?
 
What's the most organized way to keep documentation about settings and requirements
 
@salathe heh, there's no pressure or worry :P
Thanks though
 
for example if I need to enable extension on development to be able for the new implemented feature to work, it has to be enabled in production, and there should be some documentation for that?
 
@ziGi post-it on your monitor :P
 
@PeeHaa lol, I need to share it with my colleagues
 
11:51 AM
post-its on your colleagues' monitors
:-)
 
yey
hurray for temporary solutions
 
you all await this, right? (not rebecca)
@Fabor this reminded me of it :)
 
Oh yeah I saw. Pretty cool. All I want is lots of voice actors and lots of content
 
I want more content, ~30h without side quests.
 
@ziGi wiki
when I used redmine, we had one wiki per project
 
12:05 PM
@SergeyTelshevsky Fallout NV is like 200+
 
with all kinds of information related to the project
 
Skyrim is like 300
 
@Fabor yeah, I play this currently, it's amazing
 
It's a mod?
 
can't find info in any language but Russian, it's a full fallout 3 + NV on NV engine in one game
yes
 
12:08 PM
Gotta love the Fallout community
 
yeah, just like skyrims
 
Ouch. The only thing worse than SE Linux on a server is SE Linux on a smartphone
 
yh
lol
i wanna make it permissive
cant use a software man
 
Have you rooted your phone?
 
12:21 PM
Yea
 
I want a command line based OS for my phone :D
 
@Epodax You want MS-DOS for Smartphones
 
@Epodax Sounds like the kind of weird shit @Andrea would randomly do of a weekend :-P
@Machavity E_NOT_FRIDAY_LINK
 
@DaveRandom Was the MS April Fool's
I like it for the line "People told us we shouldn't do this and we did it anyways". For a second, I thought it was a backdoor mea culpa on IE
 
More errors occur on Friday than Monday
8
 
12:33 PM
@SergeyTelshevsky I am actually more interested in xcom2
 
@SergeyTelshevsky can't WAIT
 
Although still not impressed by the engine. Don't want to be a dick, but it's 2015 - I don't want to see moving lines on any object (look at the curtains) as the camera moves.
@tereško Procedurally generated levels, mods... WIN
 
Is there some smart way to find the offset of a record in mysql. I am querying some record based on the id and I want to know at what position the record would have been if I had removed the WHERE id = n
To prevent an XY problem. I have an id and I need to find out on what page (pagination) the thing is
 
@PeeHaa Presumably you would be doing ORDER BY id in that case?
 
12:43 PM
@DaveRandom And then what?
 
thinking
 
:)
 
@Machavity I'm not clicking any link that contains a youtubeu link, and I don't click any links coming from @salathe at all.
 
@Epodax That one is not Friday btw
But they only released it as a YouTube sadly
 
@Machavity I'll rather not take the chance :P
 
12:46 PM
2
Q: Sorting Table and get Position of row

java4everI have a Table with 3 rows. Player, Time, Server. Now, I want 2 things and I don't know how. For Server there are 3 worths available. 1, 2 and 3. Server and Player are a Primary Key together. User is a VARCHAR, Server and Time are Strings. I use 1,2 and 3 to make i easier to understand. 1st I ...

 
SET @inc :=0;

SELECT yt.*, i.pos
FROM yourtable yt
INNER JOIN (
    SELECT @inc := @inc + 1 AS pos, id
    FROM yourtable
    ORDER BY id
) i ON yt.id = i.id
WHERE yt.id = ?
@PeeHaa ^ (untested)
Basically, select the whole lot and enumerate them with a var, then join that result set onto the table to get the actual data for the target row
Oh wait
You can just SELECT * FROM (inner query) WHERE id = ? and have the inner query select * as well
 
Guys, I am trying to write a regex which checks if the string has only alnum characters, periods or dashes
If it has any other type of characters, it should return false
if(preg_match('/[a-zA-Z0-9-.]*/', $l)) {
    echo "hello";
}
That is what I have tried so far.
But, it seems to accept all characters
 
regex101.com <- Awesome tool for debugging regex
 
lol but i am noob in regex to even think of it
i just try random stuff on regex by looking at other regex
 
@HassanAlthaf You need beginning- and end-of-subject markers
 

« first day (1693 days earlier)      last day (3255 days later) »