« first day (2075 days earlier)      last day (2879 days later) » 

1:53 AM
Guys i got a php job interview tomorrow can someone tell me what to expect?
 
2:10 AM
to be asked about something you probably not know, but then maybe show how have you learned what you already know and/or how do you apply it in order to make do with the task at hand
 
mornin room
!!should I sleep more or go to walk
 
2:27 AM
You should sleep more.
 
has anyone worked with opentok php sdk?
opentok as in tokbox
 
 
1 hour later…
3:38 AM
@Jeeves <3
 
@AnmolRaghuvanshiVersion2.0 I love you too :-)
 
hello, anybody flying with phalcon?
 
 
1 hour later…
4:53 AM
any help regarding this question would be highly appreciated. any heads up?
 
Wes
@PaulCrovella yes, but johnny snow got sucked into the provocation like a noob, attacking alone against an entire army... then to save him half of the army died
 
moin
 
Where should I place a cron job file so it cannot be publicly executed?
 
Wes
hey joe, hey ronni theon \o
 
5:04 AM
@AbrarAhmed outside the webroot
 
Wes
anyway, who is always winning is that lil shit baelish. he is the best game of thrones player, no doubt
 
=)
gotta go to work
 
Wes
have a good day ronni
 
Thanks =] you too @Wes
 
Moin
 
5:10 AM
Can I use $_GET in php through local cron jobs? (outside the webroot)
 
only if you call the script through the webserver, e.g. curl or wget.
 
AFAIK you cannot use it, but if you want it badly... then stackoverflow.com/questions/4186392/…
 
CLI Sapi doesnt have $_GET, which is one of the reason why your code should not depend on superglobals
 
Wes
yo peeps
 
o/
 
5:19 AM
Thank you very much! :)
 
Wes
phpstormers: do any of you know what this guy is talking about? youtrack.jetbrains.com/issue/WI-32198
 
posted on June 21, 2016

New Cyanide and Happiness Comic

 
@Wes I'm not a phpstormer, but yeah.
He doesn't want the entire lines indented, just the block he selected.
 
Wes
i meant the answers
can't find such "Clone caret" thing
 
6:22 AM
Good morning you beautiful people.
 
6:39 AM
aww... Moin \o
 
@Wes he wants to line up the right part using the column selection, actually, what he should be doing is cloning carets without selection
 
Wes
@SergeyTelshevsky yeah solved now
 
actually until this was implemented in phpstorm, I used ST only because of the multiselect.
 
Wow. Multi-fucking carets
You can consider my mind blown
 
Wes
6:57 AM
i don't understand php voters. multiple catch yes, union types no
!!flip table
 
^this
@FélixGagnon-Grenier I'm surprised you didn't know, this is a super productive feature and I don't know how to work without it anymore :)
 
@SergeyTelshevsky tbh atm I'm not exactly sure how I would actually use that, but I will sure as hell try it out tomorrow
heavens, right now, what am I saying
 
well, multiple uses, like editing arrays, sql queries, html
 
hmmmmmmmmmmmmm
the question now is to find a mapping which is not already used. the folks at jetbrains have quite a number of those used already
 
I remap usually to ctrl+shift+up/down arrow for clone and ctrl+k -> ctrl+f for selecting next instance
 
Wes
7:20 AM
@FélixGagnon-Grenier except the classics ctrl+c ctrl+v etc, the rule is: if a functionality is useful, then it'll be mapped to keys that require at least three hands to activate it
 
My whole life. My whole life I've been considering caret as the one immutable thing in the universe.
@Wes heh. grow one, what are you waiting for :)
 
Wes
@FélixGagnon-Grenier do you know of multiple selection ranges, at least? :B
 
Alt + drag down also works to insert multiple carets if you are like me and forget shortcuts easily. I can just about remember that alt switches to block selection mode.
 
actually alt + click is exactly what I wanted
multiple carets, exactly where I want them
 
or window drag mode :/
@FélixGagnon-Grenier actually you'll need also the "Add selection for next occurrence"
 
Wes
7:25 AM
do you know that double click + mouse move selects words rather than letters? :B
afaik not many people know that
 
@Wes Did you know that triple click selects the whole paragraph?
 
well it's the let's blow my mind night
 
Wes
@MadaraUchiha yes...
 
multiple ranges, multiple carets.
 
@FélixGagnon-Grenier In what OS?
 
7:26 AM
didn't know you could double/triple-click drag too
 
@MadaraUchiha windows..
it spawns carets
 
Windows has multiple carets?
TIL
 
phpstorm has
not windows
 
7:27 AM
Yeah, that much I know
But that's not what's presented in @Wes's gif
 
Wes
indeed
 
which is also not multiple carets :)
 
Wes
that's multiple ranges
 
phpstorm already has every feature anyone will ever need, they just announce a few of them each time they bump the version number so people become aware of them
 
7:29 AM
monring
 
@MadaraUchiha but the point is that just now, one part of prograsmming I hate most (formatting code and machinal stuff) just got easier and faster. life is quite good.
and yeah, I know of the auto formatting tools of phpstorm, I see you coming @Wes
 
Wes
i never use them tbh, i just write already formatted code :D
 
that sounds skeetish
 
Good Morning, is somebody here who can handle Symfony ? I really need some help...
 
Wes
@FélixGagnon-Grenier this will blow your mind too i.imgur.com/YEB5lm3.gif (probably)
 
7:32 AM
hahahah
took me a second. how do you actually make gifs that fast/easily (if it is?)
 
Wes
LICEcap, it's a tiny program
:|
i hate when people do thaaaaat
 
:p
how is that js library doing?
 
Anonymous
@Traxstar Just ask your question, somebody will help if they can :)
 
Anonymous
Good morrow
 
Wes
7:34 AM
@FélixGagnon-Grenier wut
 
my q ? :D
@JayIsTooCommon
 
Anonymous
Question :)
 
@Wes forgot already? you bragged about doing some user script to still see the message even after they're removed the other day
 
Wes
ah, don't care enough, so yeah, already forgot
:D
 
Ah :D my bad ;D @JayIsTooCommon I got a controller that fetches data from a database to an array. I pass this array to my view, but i actually got no acces to the array in my view..
 
Anonymous
7:37 AM
@Traxstar Dump your controller code in a pastebin :)
 
@Wes If we were playing chess, that would be the move where you threaten two pieces at once.
 
Wes
lol
 
@JayIsTooCommon here it is: pastebin.com/hLgysWz3
@JayIsTooCommon i am passing the data towards list.html.twig.
That is including macros.html.twig and there i need to acces it.
 
ok... sorry for barging in @Traxstar, and this is not the real intent of your question, but I can't help it. remove those or die(). mysqli and php already tells you all of this, in great details, if you only listen to them
 
@FélixGagnon-Grenier ahm..okay - that means php handle this by itself ?
 
7:41 AM
yeah, kindof! you just have to set the error_reporting level and tinker with the display_errors settings
 
Okay.... thanks !
 
for learning it, you probably want to do error_reporting(E_ALL); ini_set('display_errors',1); at the top of your script, to get rid of those die()
afterwards, you may want to learn about set_exception_handler and set_error_handler
 
Okay, i will test this after may solving my problem :D
I stuck into this for about 8 hours and now idea what to do..
 
Morning 11.
 
Anonymous
@Oldskool o/
 
7:44 AM
@Traxstar well, just from what you pasted it's hard to tell. the problem could lie in the template itself, or in the mysql results being there or not
 
Okay i create a new paste with all neccessary data - give me a few secs
 
in the macros the part i need is @ id == 15
thats my code
it got called in list.html.twig at poolMacros.showPagesBodyCell
@FélixGagnon-Grenier u can see in list.html.twig that i call {{% for cache in moto %}}, there i got the acces....
but not later any more
 
I... am not exactly sure how to help you but just recalled I am two episodes late in GoT.
but my first tought was this: I have very little absolutely no clue about twig, but here macro showPagesBodyCell(tableOption, page, type, previousPageId, moto) something seems to expect different parameters. are they given by something else somewhere?
and on this, may ramsay get what's coming for him. see yall later
 
have fun :D
 
7:55 AM
:)
 
Hey
Can someone give some help for cron task on ftp server :p
 
Ooh, PHPNE tonight
 
@samayo I instead used the npm-based toolchain with webpack
 
0 2 * * * php -f /www/script/file.php
is it okay ?
 
@Sjon o/
 
8:12 AM
\o
 
@Oldskool u are fit with symfony ? :D
 
@Traxstar "fit"?
 
can u handle it? :D or have u ever worked with it ? ;D
 
I'm working with Symfony on a daily basis on my current project, yes.
 
8:17 AM
Can someone know something about cron task?
 
@Traxstar @user3206631 Please just state your specific issue instead of finding "someone", if anybody knows how to answer your question, they usually will.
 
@Oldskool okay, maybe u can help me?
I've got the Following code :
PageController: pastebin.com/hLgysWz3
List: pastebin.com/2GFU43wi
Macros: pastebin.com/zpRnBfnx

I am passing an array from PageController to List, which is inlcuding macros.
In List, i can acces the array - in macros then it is empty.. no idea why..
 
@Sjon sorry, I took a couple of days off last week, wasn't very well ... I will get round to the thing, hopefully this weekend ...
 
@JoeWatkins np; hope you feel better now
 
thanks ... little bit ...
 
8:22 AM
I have a php script on my ftp server name "script.php" ( www/script/script.php ), i would like to execute this script with cron task. Should i creat cron.php ( www/script/) and add those line <?php system("wget -q -O /dev/null 'http://www.site.fr/script.script.php'");
?>
and set the time details on my host
 
@Traxstar Assuming the id is 15, it should just list the moto data in the macro.
 
i will set the cron task from my host so i cannot add comand line but only file…
 
@Oldskool it doesnt... the moto data is empty .. but why
 
@JoeWatkins hi! thanks for popping in :)
 
@Traxstar Dunno, try backtracing. When is the last point it's not empty? Somewhere something is done to it apparently, or something in your macro doesn't add up.
 
8:26 AM
@malarzm hai
so, what's feature ?
 
@Traxstar You could try a {{ dump(moto) }} on the first line of the macro.
 
@Oldskool last point where it is not empty is in list.html before the table got called
 
@JoeWatkins long story short it's a way to allow user-added logic to empty($object)
@JoeWatkins I'm wondering whether it's worth submitting at all and if yes, what possible mistakes have I made :)
 
first, I'm always wrong about this stuff ... I can tell you how to do it, either way, but when I say "I like the idea", it doesn't mean anything ...
I like the idea ...
 
8:29 AM
ah, I haven't dived into source code yet, first I wanted to know if it's worth effort
and maybe have any initial feedback on idea from an insider :)
 
I can't tell what other people will think of the idea, no idea how humans really work ...
 
Only robots
 
ya, that's tricky
 
So. I have to translate a monsterous application to a secundary language. Old-skool would be the gettext approach. Are there more recent/better alternatives to gettext currently that I haven't heard of?
 
but out of your experience, would you suggest going down the magic method line or would it be better to pursue additional interface?
 
8:31 AM
Hello Everybody, Does anybody have any idea on long text issue in dompdf?
 
I think it should be the magic solution ...
 
@DamienOvereem gettext for web? Don't do it; you're in for a world of pain
 
localization is always a world of pain in legacy software ;)
 
I'm not sure you will get a clear signal from internals on that decision ...
 
but array-with-strings doesnt sound too awesome either
 
8:32 AM
it will generate a lot of noise to ask the question, if you can find an answer within the noise, you'll be lucky ...
what I would do, is implement the one you prefer, and start the conversation from there (either should be rather trivial) ...
 
@DamienOvereem you can still you .mo files; just build a simple parser; so it wont need random environment variables
 
@JoeWatkins ok, that at least gives me some confidence :)
 
it helps to keep the conversation focused if there is an implementation, even a crap one, from the start ...
 
ah, so implementation first
that was my next question, how to tackle whole process
 
8:34 AM
yeah, because you want the RFC to just describe how the feature will as a matter of fact work, what it will affect, and so on ... you don't want it to be full of questions by the time voting comes around, questions of any kind ...
 
ok, I thought the initial email is to measure whether there's interest in going for RFC at all
 
yeah sure, it is ...
you need to justify the way you are doing it, and deal with the arguments in favour of doing it the other way ... and it would be smart to deal with that at the start of the conversation ...
rather than throwing two ideas out there for folks to argue over, pointlessly ...
and they will argue, and it will be pointless ...
 
Morning room
 
ah I see, so a implementation, stronger arguments basing on it, and then initial email - is that right?
 
yes
yohaa
 
8:38 AM
@PeeHaa o/
 
morning
 
also, prepare to be wrong ... prepare to start over, several times ...
 
asking you was first step of preparation to be wrong :)
but know thanks to you I at least have a slight idea how to tackle submission process and what to expect, I wasn't following internals much
 
excellent ... hold that tentative position until the end of the process, it does no good to marry an implementation of anything before it is voted in ... keep eyes on the long term goal, rather than changing focus to getting the feature in a particular way ... there will be noise, and genuine refutations of your arguments against doing it other ways, you have to listen to the latter, carefully ...
 
morning
 
8:44 AM
I'll try implementing feature soon then, would you mind if I bother you with some questions if I encounter obstacles? this will be my first dive into PHP and that scares me more than fact I haven't used C in years :)
 
is fine
 
cool, I guess you're regular here or is it easier to catch you on IRC?
 
I'm usually here ...
 
When i include an file in twig - do i got acces to every var i've got acces in my one file ? For example i got data moto in list. list is including macros. can i acces moto in macros then ?
 
awesome. I'll get back to paid work for a moment then. Thanks a bunch for your time!
 
8:46 AM
yw
 
morning
 
'nin
 
:D
 
9:03 AM
mornin
 
Morning @Ekin
Back to the full nick eh?
 
yep :)
how's summer going?
I'm freezing here <_<
 
Had more rain in summer so far than a month ago
 
it's damn hot here
 
Yeah, summer sucks so far.
But it probably will be staying with us until October or so, so it still has time to prove itself.
Gotta love global warming :)
 
9:09 AM
I'll be in Thailand by then forcing summer on myself
 
heh :)
 
i hope i will be in UK soon
 
I'll be in Istanbul in august
otherwise I'd wait till december for summer here
 
my pals have published some videos about rainy UK :p
@Ekin Istanbul? August?
 
in germany weather sucks as well
 
9:11 AM
damp.. hot..
 
yeah :/ plus I hate the city
after 3 years here it's gonna suck
but well, I have to be with mom for a while.
 
it's all worth it :)
 
yeah
 
i have been dealing my passport stuffs
im gonna apply to uk for ecaa
 
mm, can someone point me in the direction what I've done wrong? pastebin.com/C40JN6tY
 
9:16 AM
@Ekin just be careful, when talking about Supreme Leader
 
Who is talking about me?
 
hell, just thinking of him makes me want to cancel all the plans
oops, not you :p
 
@Ekin I'm flattered.
 
:-D
 
9:19 AM
hehe we got plenty supremes
lol
anyways I plan to be around EU for about 6months then will probably head to NYC
if all goes as planned
 
hunter x hunter ftw!
 
hey that's indeed a good one leloutama
most people consider it childish at first.
 
yep...
reached to ep 63 atm...
 
9:51 AM
Why NYC?
 
Any simple mysql query caching in PHP?
method?
 
I have a chance to be part of the new office of a domain/hosting company @Fabor
 
Sweet, I need some free hosting :P
 
Hi, can someone help me on stackoverflow.com/questions/37830405/…
 
9:59 AM
heh :-D things are unclear still but I'll see how it goes
 
I'm kinda toying with the idea of finding a 2 day remote contract for when I leave. Would completely support me but unsure on how difficult that kind of thing is to get.
 
> Owl's about that?
 
Any suggestions for MySQL Query Caching in PHP?
 
I've got the Following code :
PageController: pastebin.com/hLgysWz3
List: pastebin.com/2GFU43wi
Macros: pastebin.com/zpRnBfnx

I am passing an array from PageController to List, which is inlcuding macros.
In List, i can acces the array - in macros then it is empty.. no idea why..
Can some of u help ?=
The last point before my var is accessable is in list.html.twig before table tag starts..
 
Wes
10:03 AM
why is england infatuated with this guy?
 
Why is America infatuated with the Kardashians?
 
Wes
touché
 
10:14 AM
Any suggestions?
 
Sup guys, rather than writing my own foreach() a million times, is there anything nice in PHP that can help me to sort an array of words in the order found in a sentence?
I was thinking usort() with my own function
 
@Jimbo usort and strpos?
 
@PeeHaa Yep jus found strpos might've been a good idea, literally just now :D
Sometimes helps just to ask - and you find your own way :-)
 
Rubber Ducky as a Service
 
RDAS, like REDIS
 
Anonymous
10:35 AM
@Wes it does not look like a bot to me. In fact I would have made a bet if I hadn't known better
 
Anonymous
I'm amazed if that's a bot
 
Wes
not a bot, just one that pretends to be an actor
 
Does anyone know of a system that beats gettext for web application translation?
Or is this 20 year old system still the best we have? :)
 
If often just use an array
In general i18n stuff is a PITA
 
Wes
11:05 AM
@DamienOvereem there's resourcebundle from ext/intl
but i personally use something super simple built over strtr
 
11:25 AM
Oh. First the important stuff: Happy birthday Wes ;)
And thx. I guess there is no box of sweet chocolate solution for localization. I so hate that stuff.
 
how to google this: I have an element(span with text) covering(pos:absolute) other element(button) I want the text to be uninteractible (clickthrough, mouseover-through) so when I place mouse over the text the button would receive the mouseover event, not the text
 
Wes
hodor \o (nsfw)
 
11:46 AM
@SergeyTelshevsky mouse pointer events
!!caniuse pointer-events
I totally thought that was a thing
 
Anonymous
Any 11ers work for DealDash?
 
Hi, anyone can give me some thoughts about fixtures when testing? I'm starting to write some tests for working application and everywhere people write that I should use fixtures to prepare database for tests. Should I do it even when I could just dump database from working site and test on real data?
 
Wes
@PeeHaa respect for your css knowledge :D
nobody knows pointer-events, except me and peehaa :B
it's such an underrated css prop
 
:)
 

« first day (2075 days earlier)      last day (2879 days later) »