« first day (2853 days earlier)      last day (2320 days later) » 
02:00 - 15:0015:00 - 00:00

02:29
Pls tell me what is wrong in this code :
preg_match('/[0-9]+)\ Followers\,/',$data,$followers);
preg_match('/([0-9,]+)\ Following\,/',$data,$following);
Here is the text :
<meta content="239 Followers, 1,559 Following, 13 Posts />
Following is working, but not followers
Uhh you're missing an open (
I'm so tired of seeing this one same ad on youtube about realty services (worked on a realty website), it's been going on for about a month now and it's 60% of all the youtube ads I see
02:46
Is there any way where I can receive php related newsletter of stackoverflow?
I made the mistake of clicking "I don't want to see this ad anymore > It's too repetitive", then it started showing up twice as much
What a dick, Google
It was a trap the whole time
Wes
Wes
morn
03:04
\o
03:32
Nn
morn
 
2 hours later…
05:16
@Jimbo I see, ok, so you mean using Silex is better than Lumen?
05:48
posted on August 07, 2018

Announcement Time: Don’t Hit Save will be switching to one comic a week starting next week. I have several stressors in my life that are impacting everything. Since this comic is a thing, it’s included in the word everything. I do not know how long that new schedule will last. News Time: Remember that skunk incident... [read more]

06:06
@Shafizadeh no, he means: use sf 4 instead
06:18
well I never worked with symphony framework and learning its syntax takes a while I guess
I choosed Lumen because I know Laravel as well and it's pretty much similar with lemun
you dont need to justify yourself. I am just clarifying what he meant.
06:49
morns
@Gordon I see, thank you
@mega6382 YO!
07:02
web-bugs (bugs.php.net) repository: Contributor aids / Readme improvements – #76720
calescent growing warm; increasing in heat.
08:22
mornings
good moaning
mornng
09:16
Hi
I am facing the issue in laravel-snappy pdf of content.
My Q.A server and localhost system working fine. But On production server it's not working. i have check the premission it's 777. When i remove the fonts style it's working correct.
How can i identify the error of fonts it's not showing
$pdf = PDF::loadView('merchant-agreement', ['post'=>$post]);
return $pdf->download('terms-and-conditions.pdf');
Wes
Wes
that's medium yeah
just close it
I am not sure when was the last time I read a message as unconvincing as this
Where i can add error log in download
please see
09:20
Hey @Gordon what's issue with images here?
somethings breaking it
how should I know? Probably your adblocker or whatever. I dont care. Sorry.
@Gordon @Wes how can show the error log in download function
@RaheelAslam sorry, no time.
@Gordon thanks no issue
@Gordon something went wrong!
Anyways after long time @Gordon @PeeHaa
did you remember or not @Gordon @PeeHaa
?
09:26
uuuh, can you please stop pinging us? thanks.
@SagarNaliyapara try refreshing
@mega6382 still doesn't work
!!
maybe your internet is bad
no
i'm able to see images of some users only
looks like an issue with imgur... in my console I have a bunch of errors for imgur
name not resolved, too many redirects
09:30
event images i'n uploading here are showing that Image not found
you guys can see it?
I can see icons fine
so what? it still has the names. who cares for avatars?
but I also probably have icons cached too
we NEED to get to the bottom of this
ascii shrug
2
@Gordon it has names because of alt attribute
you dont say
Have people seen the new CoC of SO? stackoverflow.com/conduct
09:32
started reading some of it
did they finally fix the 404 on that?
@Gordon nope
dude. stop pinging me.
ufffffff
same issue with you after more than year too!!!!!!
because you're being a little annoying, dude
09:35
we are old friends @Tiffany what you say @Gordon
?
didn't we?
or old enemies :P
@SagarNaliyapara I think if Gordon felt that you were friends, he wouldn't have asked you repeatedly to stop pinging him
@SagarNaliyapara ok. I asked you twice. once polite and once more blunt. I am asking you one more final time to stop pinging me with your random issues. Let me put this very straight: I dont care if your icons are broken or not. Ok? Now please leave me alone. Kthxbai.
@Tiffany haha he is just not in mood right now
no, you're being a dick
stop assuming how he feels
and I need to stop white knighting
@Tiffany he has some ego issues he don't answer to random people
09:38
thanks @Tiffany. I can help myself but much appreciated you stepping in ;)
he is using this kind of room just for fun instead of helping community
@SagarNaliyapara nobody likes to answer to random people, especially if they are busy.
Wes
Wes
i remember
Aug 1 '17 at 5:57, by Sagar Naliyapara
@ChiragDaxini everyone here are just egoistic, have knowledge but not for sharing and those are active in this room are just doing their personal team stuff in this group
@Gordon yeah i know you will kick me off from room anything else?
@SagarNaliyapara he's helped me loads of times
09:39
@Wes yeah dude
Wes
Wes
gtfo @SagarNaliyapara
@SagarNaliyapara Not true at all, and you are definitely just trolling at this point.
nope. nothing else. /kicked
Wes
Wes
why can't people just be normal
#drama
09:40
@Wes difference of cultures, personalities, mental stuff
it's always disappointing when I hear the "ding" and it turns out no-one wants me and it's just someone being kicked. :(
@Wes exactly same thing i would like to repeat
Wes
Wes
no it seems to me that he joined just to make a mess in the chat
@salathe you like pings directed at you?
09:43
anyways you guys have any remote work for me?
@Danack only if the ping means I can be useful or contribute in some way, not just a ping for ping's sake :P
@SagarNaliyapara I do remember suspending you myself several times
Wes
Wes
i offer 10 dolla if you leave :B
2
I was hoping after the third, 30 day suspension, you'd improve.
Mar 15 '16 at 7:09, by Madara Uchiha
@SagarNaliyapara Take a month off of chat, you should really use this quiet time to reflect on how to use chat, Stack Overflow, and internet communities in general.
@MadaraUchiha well, it's 2018. I guess he reflected but didnt come to a conclusion… or all the wrong ones.
09:45
Guess you can't win them all vOv
!!> 61 * 24
@MadaraUchiha echo
09:45
Damn you PHP
!!> echo 61 * 24;
@MadaraUchiha does that still only allow input in hours? :D
@MadaraUchiha already missing JS
09:47
@MadaraUchiha Thanks :)
@SagarNaliyapara Take two months this time. You should seriously rethink your approach here. You're being told you're not being reasonable by several people, and getting suspended yet again.
thanks @MadaraUchiha
though it's very obvious you got the same issues than everyone else. just using this chat for your own things and never to help anyone ;)
Yeah, like doing (and failing at) basic arithmetics 😃
09:49
been there. done that.
why it accepts hours only is beyond me. by the time a mod steps in its usually 24+ anyways.
at least it was back in my time iirc
Yup, still the case.
would it be worse to use unix timestamps?
@Tiffany To enter durations?
about the same I guess. Still need to calc
09:52
How do you enter a duration using unix timestamps?
I was going ot make a joke, but I don't know if people like unix timestamps
@MadaraUchiha end date of suspension
@MadaraUchiha you just enter the end data as the timestamp
Sure, but that's not a duration
from now until the end date
The actual thing sent to the server is irrelevant though
It's a question of how it's represented in the UI
09:52
(possibly) bad joke I was going to make: It could be worse, it could be unix timestamps/epoch
It would be 3 lines of code to replace with an input that does * 24 before submitting the form
With extra linebreaks
@MadaraUchiha submit feedback to SO engineering team?
@Tiffany Too lazy XD
@MadaraUchiha there can quite easily be an extra field a dropdown, with duration type and listing, hours, days, weeks, and months. And you just enter the value and select the type and be done
It's normally small enough to calculate easily in your head. 24, 96, etc.
It takes a special case for me to whip out a calculator
It's quite the occasion, really.
09:56
@MadaraUchiha no wonder it's still hours-based, lol
@mega6382 Not enough space on the UI for that I think
Even so, going from 1 input to 2 inputs just for that isn't justifiable IMHO
nevermind
...
I say we just use ISO 8601
P3Y6M4DT12H30M5S
Simple.
p = period?
@MadaraUchiha it's inconvenient, but handing out a prolonged suspension shouldn't be too convenient I guess
10:01
I hate it when I think of a solution to a problem I'm having, but at the time, not at my desk to try the fix... and hours later I forget
oooh! I remember now
yay
do any of you have a 4k monitor? Trying to see if there are any websites that use the full 4k resolution of a monitor.. like... responsive design for 4k
T_PAAMAYIM_NEKUDOTAYIM – #76721
and whether or not i should try to make a site respond up to 4k or 1920 and call it a day
I have 1440p, but I don't maximize my browser window unless I'm watching streaming something (and don't want to full-screen it)
that's what i've read (in terms of habits of people with larger screens). mkk
10:05
I have a high resolution so I can have multiple windows in viewing range
@Jeeves I agree with this but it wont get fixed
Morning 11
Tokonatsu was wild \o/
@Gordon I thought it kind of was?
but I think you have to flip an INI setting for it
@Sean so many cons
@Tiffany I am not sure. I thought I remembered something, too but then decided I am just old and confused
I know there was an internal discussion of it, and it was more of a circle-jerk of "JFG it's so easy!" instead of it being poor language design
10:06
@Darius I exchanged my 4k with a fhd after uprading to ubuntu 18 ruined the experience
@Tiffany Done for this year, and next year will also be super dry with the summer party con not there
@Tiffany Write it down
@Gordon ctrl-f "double_colon" it would help if I provided a link...
Ahh, that's interesting to hear.
@MadaraUchiha when I was trying to remember it, I thought I had figured out the answer while I was falling asleep last night, but it was actually during the work day yesterday, so yeah, I should've
10:12
@Gordon I remember seeing a comment by Rasmus Lerdorf on this topic, completely disagreeing with removing it.
@Gordon it did get fixed, we specify the characters that were problematic in the error message (in this case, two colons) and the token name is just there in parentheses as an aside. Having "(T_DOUBLE_COLON)" gives no more information than currently, it's just people see the "strange jumbled words" and ignore the useful part of the message that literally tells them the "::" is the problem.
@Tiffany yes, exactly this one.
@Gordon Meh, it's an easter egg
also with a single google search of T_PAAMAYIM_NEKUDOTAYIM , you can find what it means
10:14
@mega6382 it's not the point though
Like the stick in the mud who made PRs to a bunch of server libraries to remove support for 418 HTTP status code because it wasn't in the real standards
As a result, it got added to the real standards :D
Aug 3 at 14:09, by PeeHaa
That shows PHP developers are smarter right? They don't need to search shit
PHP is full of contradictions
@Tiffany The only thing consistent about PHP is that it's consistently inconsistent.
I know it's there for historical reasons and kind of an easter egg and what not, but eih…
@Tiffany lol
10:15
@Gordon as it's been pointed out, easter eggs should be invisible in userland
unless you really dig for it
@Tiffany if you have to google the meaning of what is supposed to be a descriptive, plain-text, understandable, error message, we've done something wrong. We're not doing "ERRROR 110982BABAKJ" here.
oh, well. if you use double colons you did. you sure did.
what @salathe said exactly
@Gordon No, no. The crappy stdlib function names are there because historical reasons
my lunch is here. more important. l8ers
10:17
and it's 5am here and I haven't had breakfast...
There's absolutely nothing stopping PHP from changing that error to T_SCOPE_RESOLUTION_OPERATOR or whatever
But that name is so meaningless to any reasonable user, that it's not an improvement over the joke name we have now.
It's not scope, not resolution, and can only be called an operator in the most technical pedantic way.
T_DOUBLE_COLON exists and can be used but on output we keep using the T_PAAMAYIM_NEKUDOTAYIM
Sorry it's probably been mentioned like a thousand times, but what is the case to keep T_PAAMAYIM_NEKUDOTAYIM in? Just BC?
@Sean "easter egg," "nostalgia," "historical reasons"
10:30
@Sean Stupid jews cc @MadaraUchiha
I mean... errmmm.. morning
you're so going to get flagged
I checked the first line of avatars before hitting enter :)
😛
Wes
Wes
lol
10:44
@PeeHaa saw only the friend;y faces and thought, now is my time :P
It should be T_DUBBELE_DUBBELE_PUNT
Nope. T_DUPLA_DVOTAČKA :D
Hello::all()
Wes
Wes
11:04
T_DUE_DUEPUNTI
What's next: writing floats with comma? :P
ok, so the solution is obviously to localize it
Hahah.
T_DOPPELTER_DOPPELPUNKT
@NikiC git going ^
heh, I ping Niki and Kelunik appears. This chat is obviously broken.
Tell that to Sagar. :(
11:09
Is anyone knows Why i can't got most of the npm packages like this npmjs.com/package/moment
@Priyank seems error on their server side I'd say.
@Priyank this is php room, try the js room, better chances of fining help there regarding this.
@mega6382 thanks for your valuable answer
It gets worse - the Github code I posted two tweets up (including creds) is their integration to Yodlee, which allows access to 70% of US bank account data. https://resources.yodlee.com/case-studies/voatz-case-study
this thread is fun
11:17
@Priyank are you being sarcastic?
@Gordon That whole thread is nuts
@mega6382 I know this is a php room and the question is about js, but as far as my knowledge we have some brilliant guys who could know the answer that's why i have asked here.
Also i am very curios to know why my avtar is not showing in stackoverflow
Here we go again. :D
@Priyank Status page of npmjs says there were some problems yesterday. Probably not 101% fixed.
@Priyank so, thats a yes?
@Gordon I'm going to guess that it's intentional that it's matching part of name instead of at the start of the name
11:34
@Gordon oh wow..
If you had to name THE most horrible part of this code, what would it be? 👀😑 #programmingHorror #JavaScript
2
@Leigh that it's JS
@Tiffany I half-jokingly want to build an IoT teapot that accepts a type parameter on the /brew endpoint
And when anything except 'tea' is entered, return HTTP 418: I'm a Teapot
11:54
please tell me why this is used in php <?= ?>
@Vinay Shortcut for <?php echo ... ?>
If you're embedding PHP in some HTML, <div><?= $text ?></div> looks nicer than <div><?php echo $text; ?></div>
WordPress has really cool features! You can uninstall it, for example.
10
Good morning
ohh now know thanks. i was wondering why <?= this->a ?> print a
never used that before
12:15
@MadaraUchiha do it!
you could probably sell it to programmers
@Vinay it's a mirroring of classic ASP syntax, which used <%= %> and did the same thing... Response.Write or something
12:36
Wes
Wes
LOL
Great looking jersey though. :)
12:56
@Tpojka That's hilarious.
@Leigh I can show you worse
PL/SQL vendor code, Oracle providing support for generating HTML in the language doesn't help. I had a lot of snippets that were JS.
However, I will say that authenticating a user using password in clientside JS is pretty fucking bad.
pfft unit testing is for noobs...
I'm kidding- don't stone me!
13:13
@StatikStasis Filthy Windows casual.
when D: is no longer a DVD/CD-ROM
DVD ROM? What is that...? Is that like the floppy drive?
Hello!
In all honesty I wonder how much longer until those join the floppy with everything being downloadable now or using a usb drive.
I have a question, we made a little registration website with a webform. We have send this to about 1000 people. ( So it's pretty private. ).
Why do I get in my registrations a user with [email protected], company Google. It's probably a bot but is there a way to prevent it?
13:17
@Duikboot PHP?
Bots will find your site no matter what. You have to validate the webform to filter those out.
How did you send this out to 1,000 people?
if (!in_array($request->email, $arrayOfThousandEmails)) {exit;}
good ol' captcha?
13:20
^That would be an option.
@StatikStasis Mailchimp. Meh captcha :(
captcha is easy nowadays
or put a math problem in it
When I don't index my website,... what then? Yeah it's not really about easy or not. The client doens't want it on his form. :-D
like "What is five multiplied by 2?" or something obscure. I dunno.
Then tell the client to delete those emails they don't want from the MailChimp list.
13:22
I don't know how secure those are against bots anyway
No no it works the other way around,
someone on the mailchimp list forwarded it to someone who isn't
in this case, it's more likely a bot
@Duikboot an easy way is have him receive emails associated to that form, so every time a bot fills out, he has to deal with the email... he may eventually cede to allowing captcha
When you send stuff through MailChimp there are a ton of other systems that it runs through- when we send out an email blast through mailChimp our server load spikes and it isn't from those recipients checking the email right away. Who knows what all of those systems record or where it is recorded... who knows. BUT- most likely I would think it's just a bot that has stumbled across your webform.
Hello,

Is there any way to simulate php fwrite error "PHP E_NOTICE: fwrite(): send of 10 bytes failed with errno=32 Broken Pipe"?

because i want to try catch it and translate it. And i was curious if the getCode() of the exception is equal to 32?
What about @Tiffany suggestion? Have the webform give them a random math problem. It could be one of the fields they fill out- it could be simple and would help in minimizing some of that stuff.
Have them solve Ulam's packing conjecture.
13:30
or solve a fractal
!!wiki Ulam's_packing_conjecture
Ulam's packing conjecture, named for Stanislaw Ulam, is a conjecture about the highest possible packing density of identical convex solids in three-dimensional Euclidean space. The conjecture says that the optimal density for packing congruent spheres is smaller than that for any other convex body. That is, according to the conjecture, the ball is the convex solid which forces the largest fraction of space to remain empty in its optimal packing structure. This conjecture is therefore related to the Kepler conjecture about sphere packing. Since the solution to the Kepler conjecture establishes that...
That'll keep the bots out... and hoomans.
@Tiffany Indeed maybe I can check the 'entered' email with the invited one. but it's not 100% sure a user will use his business or private email...
OMG- yeah why did you just not put their email addresses in the database and basically have them activate it by doing something similar to an email for resetting the password.
13:34
@Duikboot I see that as being open to too many errors to be worthwhile, but whatever works for you.
You could have had a field for "Preferred Email Address" so that it would use the preferred if they provide one or otherwise it would use the default one.
Indeed :-D will a 'math' problem be water-proof? :)
It will be better than what you have now.
While building it, honeypot empty input field would be additional idea too.
You're my user now! - But I never regist--- SHUT UP, USER
13:38
I have never heard of this- I like this idea. solutionfactor.net/blog/2014/02/01/…
@pmmaga Whenever I unsubscribe to an email I sometimes wonder if on some of the shady ones if I am registering for 5 others.
@pmmaga I can visualize young John Cleese in that scene. :D
"HHVM JIT: a profile-guided, region-based compiler for PHP and Hack" Ottoni, PLDI'18 http://blog.acolyer.org/2018/08/08/hhvm-jit-a-profile-guided-region-based-compiler-for-php-and-hack #themorningpaper A look at how Facebook squeeze every ounce of performance out of PHP and Hack.
Has anyone seen the prices on the Intel i9 processors... wow.
> At runtime, HHVM combines a traditional threaded interpreter and a JIT compiler. An important feature of the JIT design is its use of side-exits which use on-stack replacement (OSR) so that compiled code execution can always stop at any (bytecode-level) program point and transfer control back to the interpreter, the runtime system, or to another compiled code region.
13:53
would making use of the OSRs negatively affect performance?
I mentioned this the other week but I am enjoying this podcast so much I wanted to share it again. If you're interested in writing fiction- this podcast is REALLY good. storygrid.simplecast.fm/episodes
Hmz what's it called again to keep the URL in the address bar when you have multiple domains?
@Duikboot can you be a bit more specific?
www.site.com = main site (dutch)
www.domainname.fr = same website but should go to www.site.com/fr/ but keep domainname.fr in the addressbar.
I wanna say sticky but I can't tell if google agrees with me
OH
URL Rewrite
it depends on what web server you have, they all do it differently
14:02
I can change it in the .htaccess yes.
Not sure how to do it again.
!!? url rewrite apache
Search for "url rewrite apache -site:w3schools.com" (https://www.google.com/search?q=url+rewrite+apache+-site%3Aw3schools.com&lr=lang_en)
• How To Rewrite URLs with mod_rewrite for Apache o… - 25 jan. 2017 - Introduction. In this tutorial, we will activate and learn how to manage URL rewrite… (https://www.digitalocean.com/community/tutorials/how-to-rewrite-urls-with-mod_rewrite-for-apache-on-ubuntu-16-04)
• Redirecting and Remapping with mod_rewrite - Apac… - Spring naar Canonical URLs - On some webservers there is more than one URL for a … We do an externa… (https://httpd.apache.org/docs/2
@Duikboot Is there an actual good (business) decision for wanting the .fr domain at all times?
When you are french and you open a french domain name and it changes in a dutch one with /fr at the end looks bit weird no?
No
It's not a dutch one. It's .com
14:05
@Tiffany This kind of routing will most likely be done on the app level based on the server directive
It's a dutch one sorry.
Was just sayig that as example.
@Duikboot same difference if going to a UK website from the US... usually get something like domain.co.uk/en-us/
It's .be and .fr
Still even if it's a dutch one still better than having to share the google juice between two domains
@Sean how would you ensure that the address bar sticks to one domain, instead of a different one?
excluding whether or not it's a good business decision
14:06
Unless the business people actually thought it out and have a good reason to not use the single domain I would stick to it
Stick Stickly
fwiw I would totally understand if that would be the case as both parts of belgium feel more important as the other part
:-D Thanks, btw I totally agree with you.
And the french part is smelly
woah, if you move google maps around now, it moves like a globe
14:09
Flat earth debunked
Google is part of the round earth conspiracy
They are evil enough for it
14:27
ffs
The url stays but once I click an other its not changing fcourse
wha
14:42
Um. Just stumbled across some new code.. one of the devs has decided to use an ENUM data type in the database, then has a method to pull the options for a dropdown box.. by querying INFORMATION_SCHEMA columns for that table / column, substring-ing to strip the type and braces, then exploding on ','.
@Sean smells like shit, I wouldn't touch it
If by not touching it you mean wiping it from the face of the code base, that's exactly what I'm going to do
@Sean How innovative of them! =D
Hello all
JavaFan? PHP question?
14:46
Hello all
JavaFan? PHP question?
I think we have a recursion error.
bbiab
I think I should rename my name to phpfan
@Sean that's what you do with shit, you wipe it off ^^
@Sean I have used enums in databases only sparingly; what's the proper way to query all possible enums?
@LeviMorrison You don't. You create a separate table and a link table
14:59
Then I approve of the original technique if changing schemas is not feasible.
That seems better than hard-coding it in your application as well.
02:00 - 15:0015:00 - 00:00

« first day (2853 days earlier)      last day (2320 days later) »