« first day (2538 days earlier)      last day (2409 days later) » 

1:03 AM
I say this from a place of love, one bi man to another.
I got my new hire packet today. This comes after a background check and drug screen. It's the kind of situation where, even though I've never been arrested, seen the inside of a courtroom, or used drugs (in any recent memory), in worries I just forgot about that time I did a bunch of meth and shot a cop 2 days ago.
8 days of current position left. And I have a very ambitious set of projects on my plate for that time. And I refuse to disappoint.
 
1:22 AM
 
Good site, phpthewrongway.com
 
Wes
1:58 AM
\o
 
2:15 AM
I'm getting "Could not determine access type for property" in Symfony.
 
 
1 hour later…
Wes
3:38 AM
i laugh at your lack of synonyms for "event", english
is it possible to use "manifestation" as synonym-ish of "occurrence"
 
4:12 AM
More context please
 
Wes
"upon the manifestation of such type of event the function returns true"
the sentence doesn't make sense, it's just an example
 
Are you just trying to avoid saying "When this event occurs, the function returns blah blah" more than once? If so, don't. Don't be cute. Just document.
If it really bothers you, make a table
 
Wes
i know i can write that in a simper way. i just want to know if manifestation would be correct if used like that :B
what i'm actually doing is naming a class.
ManifestationsCount
OccurrencesCount
HappeningsCount
do these sound weird?
 
Wes
 
5:23 AM
morning
 
5:38 AM
MORNINGSINGSGSGNSIOG o/
 
\o
 
Wes
so energetic today, did you watch a million new animes?
 
probably :B
nah, just watched Koe no Katachi
it was one of best movies I've ever seen :B
 
Wes
that's just because it was one of the few movies you've seen :B
 
@Wes :P
 
5:43 AM
:/ I've a fair amount of anime movies tbh
 
Wes
how about regular movies :B
 
umm, only the ones with like imdb rating of +8.5
except the godfather series
 
Wes
did you watch forrest gump?
 
@Saitama how can you not have watched the godfather series? whats wrong with you?
try the AFI top 100 or the BFI top 100
oh well. or at least the top 10
 
@Wes umm.... no :P
 
Wes
5:50 AM
he only watches animes
 
and only when it involves tentacles
 
@Wes read
 
Wes
ya
 
@Gordon meh, I read the synopsis and concluded that it wasn't my type of thing
@Gordon mm, tentacles <3
 
Wes
read the synopsis = best way to ruin a movie
just watch half an hour, if you like it continue watching it, otherwise quit
 
5:52 AM
@Saitama that's like one of my former coworkers saying he didnt watch star wars but he roughly knows what it's about
 
oh, I haven't seen star wars, nor star trek, nor game of thrones as well :D
 
@Saitama here is your homework: afi.com/100years/movies10.aspx
 
Wes
it's ok to not like things. i don't like star wars. but i have watched it :B
it's hard to overcome prejudices. i didn't watch the lord of the ring for years because i thought i would never like fantasy
 
@Gordon I've at least watched 5 from the list there :P
@Wes so.... did you like it?
 
Wes
i wouldn't say it's among my fav movies but it was a good movie
 
5:59 AM
@Wes well, LOTR it's not just fantasy… it's basically the definition of fantasy in that sense
 
Wes
i might even watch them again
 
@Saitama which?
 
I've read the LOTR books but not the movies. Was quite nice..
 
@Wes the novels I mean. The Tolkien books are basically laying out the basis for all the high fantasy settings. there would likely be no Dungeons and Dragons without LOTR
 
Wes
6:01 AM
this must be the oldest movie that i know. i think everybody should watch it
 
@Wes you've probably seen gone with the wind. one year earlier.
 
The Shawshank Redemption
Schindler's List
ROCKY
Saving Private Ryan
Titanic
Toy Story
 
Wes
oh yea
but not a fan of that one
imdb.com/title/tt0017136/?ref_=nv_sr_1 i've always found this curious. but never watched it
 
@Saitama I knew it would include toy story :P
 
Wes
watch inside out if you like new animation movies
it's even better than toy story
actually a nice movie
 
6:04 AM
@Gordon well, I liked it very much as a kid
 
@Wes I tried watching that. But it's a silent movie and requires a lot of attention. I had a crappy version and then fell asleep
 
user5876173
i have one clientadmin so that clientadmin create one accesscode and he gave it to his users..

so his users take that accesscode and by using that they registered

so clientadmin can see all his users in his dashboard

so he has option to make one of his users to clientadmin

till now its working..
-------------------------------------------------


what iam trying to do is..when he make his user to clientadmin he can able to get all permissions of that particular clientadmin..

but now what happened in my application when i make the user to clientadmin
 
I'd rate Inside Out 5/7
 
and then some random user comes in and pastes some wall of text with gibberish
 
Wes
it's very profound considering it's a kids movie
 
6:07 AM
any Laravel developer here?
 
any expert or good knowledge of encryption cipher?
 
Wes
@BilalAhmed not me but try asking
 
I encrypt everything with rot-14. it's like rot-13 but better better because 14 is more.
4
 
thanks. codeigniter.com/userguide2/libraries/encryption.html . Have you any idea about this class>
?
@Gordon thanks. this is my complete question stackoverflow.com/questions/46440538/…
 
from the docs you linked for $this->encrypt->set_cipher():
> By default it uses MCRYPT_RIJNDAEL_256.
 
6:13 AM
i used this class in some one project. but i need justify and provide the documentation on this . as per PHP manual it's useless and as per Codeigniter it's good
 
you are asking the wrong questions
 
@Gordon MCRYPT_RIJNDAEL_256. this cipher is good or not? can i rely on this?
 
Wes
@BilalAhmed extension is deprecated and removed from php
 
secure for what?
 
Wes
it's not just "a comment on php.net"
so, secure or not, it's going to stop working soon
 
6:16 AM
@Wes i know but he got 31 up votes.
 
Wes
i'm pretty sure the official documentation is worth a bit more than 31 upvotes :P
 
@Gordon what you mean wrong question? sorry i don't understand. please explain
 
Wes
the comment is from a php official maintainer, so it's the same thing
but what the comment doesn't say is that the extension doesn't exist anymore in php 7.2
 
@BilalAhmed whether something is secure (enough) depends on context
 
@wes i am also confused. my client give me reference of this comments. and client say it's not secure.
 
Wes
6:21 AM
evidently the extension was removed because it's not secure
but regardless of that, if you have code relying on the extension, again, secure or not, it's going to stop working eventually
 
@Gordon you are right. i am trying to satisfy the client
@Gordon thanks your good feedback
 
moin
o/
 
Wes
\o
 
o/
 
@bikash.bilz I dunno why you invited me, so I am not coming
 
6:38 AM
 
@Saitama he is genious ..
 
Wes
6:54 AM
@Gordon the trap was innocuous tho :B
 
7:04 AM
posted on September 27, 2017

New Cyanide and Happiness Comic

 
maybe useful for someone github.com/yangshun/tech-interview-handbook - have just been linked to this. didnt review yet.
 
0
Q: PHP function that can handle ../ or ./ and returns a real URL path

AnnaLAI would like to create a function consisting of 2 strings. The first is a full link to the source file. The second string is the abbreviation expressed by "../" or "/." And so on (an example is attached) in the very purpose that the function will know how to deal with each situation also with ".....

some one of the mice boys here can help me pls?
 
@Ocramius do you have any experience with making commands and queries available through an API?
 
@Patrick for commands, I've seen someone use some reflection mumbo-jumbo, but unsure how effective that is
for queries, that's what we mostly do: gluing together some frontend to spit out nice output :P If you use the query bus you can't automate it that much due to lack of return types/generics
@Patrick I'd suggest tweeting this to the prooph folks - they may have automated something
 
7:22 AM
anyone used phpmailer? I need to send a text in hebrew but after a test in spits out gibberish
 
how to access only specific values from array of json ? in following array of json i want to display only values as mother, clothes
<?php
$json_string = '{"error":false,"data":[{"jb_product_category_id":"1","jb_product_category_name":"Mother","jb_product_category_prefix":"jbpm","jb_product_category_delete_status":"0","jb_product_category_created_on":"1501500876531","jb_product_category_updated_on":"1501500876531","subCategory1":[{"jb_product_subcategory1_1_id":"1","jb_product_subcategory1_2_category_id":"1","jb_product_subcategory1_3_name":"Cloths","jb_product_subcategory1_4_delete_status":"0","jb_product_subcategory1_5_created_on":"1501563015164","jb_product_subcategory1_6_updated_on":"1501563015164","subCategory2":[{"
 
@DennisStr it's probably an encoding issue. But except for @MadaraUchiha and you, no one here is able to differentiate hebrew from gibberish
 
7:39 AM
anyone can give direction for my last post ?
 
mornin
 
@Ocramius that's what I was thinking about doing. But backwards-compatibility could be a little tricky if something gets refactored
would be nice if all commands and query would be available to the API automatically
 
@amarghodke I dont get what you are asking and I dont feel like going through that badly formatted snippet of yours
 
<?php
 $json_string = '{"error":false,"data":[{"jb_product_category_id":"1","jb_product_category_name":"Mother","jb_product_category_prefix":"jbpm","jb_product_category_delete_status":"0","jb_product_category_created_on":"1501500876531","jb_product_category_updated_on":"1501500876531","subCategory1":[{"jb_product_subcategory1_1_id":"1","jb_product_subcategory1_2_category_id":"1","jb_product_subcategory1_3_name":"Cloths","jb_product_subcategory1_4_delete_status":"0","jb_product_subcategory1_5_created_on":"1501563015164","jb_product_subcategory1_6_updated_on":"1501563015164","subCategory2":[{
@Gordon : now is it formatted ?
 
better than before but you know, you could just expain what you are trying to achieve.
 
7:50 AM
@Patrick should be easy to do with a reflection-ish middleware
the only issue with this is reflecting the return type of a query pushed to the query bus
 
@Ocramius why is everything you say smelling of evil magic?
 
But if you put a clear return type on the query itself, and it is not a query DTO but rather the actual query, then it is trivial to reflect this
@Gordon because we're talking about SOAP without explicitly saying that it is SOAP
 
@Gordon i want to display only certain values not all values eg jb_product_category_name":"Mother" i tried this $list .= "<li>$value->jb_product_category_name</li>"; but not worked.
 
note: I love SOAP, it works, except when it is ext-soap, which is a sausage fest
 
7:54 AM
@amarghodke you told json_decode to convert to everything to array, so there won't be any objects you could access via ->. Also there are only two values with the key jb_product_category_name.
 
@Patrick just stole that
 
@Gordon still, is there any way I can encode the message correctly?
 
@Gordon : i only want to display this jb_product_category_name , i don't want rest part to be displayed.
 
@DennisStr IDK. Try to set the encoding to UTF-8 or something
@amarghodke that's as simple as doing …
 
isutf8 should work too
 
8:01 AM
$iterator = new RecursiveIteratorIterator(
    new RecursiveArrayIterator(
        json_decode(file_get_contents('data.json'), true)
    )
);

foreach ($iterator as $key => $value) {
    if ($key === "jb_product_category_name") {
        echo $value, PHP_EOL;
    }
}
 
$json = json_decode(file_get_contents('data.json'), true);
array_walk_recursive($json, function($value, $key) {
    if ($key === "jb_product_category_name") {
        echo $value, PHP_EOL;
    }
});
would work, too
.oO( so I apparently rendered him speechless… )
so can we go back to movies now?
@Saitama in general I can recommend most of the bigger name movies with Robert de Niro in it
also I tend to like Scorcese movies especially when they have de Niro in it
 
Wes
8:17 AM
i haven't watched many movies in recent years. there are so many and all the ones i tried to watch weren't that good, so i stick to the old stuff
 
@Wes that would work well with my recommendation above
 
Wes
interestingly all the recent movies i liked were scorsese's
inception shutter island departed, aviator
 
see
 
Wes
and tarantino's
 
@Wes wolf of wall street
 
Wes
8:22 AM
nah
not a fan of that one
 
I liked that one a lot
 
Wes
i hardly find very memorable stuff these days
predestination was very good
minority report
but that's already almost old
 
@Wes I loved this one!
And yes, it is old
I Robot and Swordfish too
 
@Gordon : thank you , what if i want "jb_product_category_name":"Mother" and "jb_product_subcategory1_3_name":"Cloths" to be displayed ?
 
@Wes have you seen the original Bladerunner yet?
 
Wes
8:32 AM
@Gordon are you suggesting that i am like saitama :B
 
@amarghodke then you need to add additional conditions to your if obviously
@Wes :)
 
Wes
and can't wait for the new one
i hope it's good. the original god. absolute perfection
 
have you seen angel heart? it's not scifi though. more like occult mystery thriller. one of my favs.
if you haven't, do not read anything about it before watching it. just watch it :)
 
Wes
i don't even watch trailers :P
i hate spoiling trailers
 
!!imdb angel heart
@Jeeves you dead again?
 
8:37 AM
@Gordon Nope. Not that I know of...
 
!!version
 
@Jeeves why don't you give me the imdb link I asked you for?
 
@Gordon Of what?
 
@Jeeves of the movie Angel Heart
 
8:39 AM
@Gordon See whenever I out smart you, you change the subject.
 
@Jeeves you didnt outsmart me. you refused my command.
 
		function build_list($array) {
		  $list = '<ul>';
	         foreach($array as $key => $value) {
					if ($key === "jb_product_category_name") {
				        echo $value, PHP_EOL;
		    }
		}
	    }
	    $list .= '</ul>';
	    return $list;
	}
		echo build_list($array);
 
@Gordon No I asked don't you know what a question looks like?
 
Wes
will watch it tonight. i think i've seen it already tho
 
@Jeeves lol
 
8:40 AM
@Linus Do you exist.
 
Wes
a recent movie i liked a lot was edge of tomorrow. it's not an epic movie, but i like that kind of movies :P
and btw, also mission impossible movies were all pretty memorable. tom cruise is crazy but knows how to make a good movie
 
@Gordon : i updated code as above it displays nothing ...
 
@amarghodke this is not using the code I gave you. I cannot be bothered to go through your self-made recursive function. PHP has built-in stuff for that kind of work. Use it.
 
@Gordon: which is that ?
 
@amarghodke see the two snippets I gave you
 
8:46 AM
mornings o/
 
is it smart to spam the IDF with emails?
 
Hi guys
Anyone have time to look at my question? stackoverflow.com/questions/46443052/…
 
ill send you a few files try using them instead
not sure how to fix what you did though
 
Did i do something extemely stupid?
 
@FélixGagnon-Grenier Yea I followed it live on the reddit thread
 
8:59 AM
// get posted data
$data = file_get_contents("https://www.kevinit.nl/school/fontyskart/php/test.php");
 
I dunno, a little bit "meh" about this one, it was more done out of opportunity than "years of planning"
 
use these three
 
@KevinTinnemans you are not actually treating the data that is sent to you. maybe read stackoverflow.com/questions/8207488/…
 
@KevinTinnemans edit the config to the params you set on database.php then edit add upload as you want
 
9:03 AM
Returnvalue from strtotime doesn't always return false on errors – #75265
 
OH GOD
WHAT HAVE I DONE! I AGREE WITH LESTER!
 
@Ocramius WAT?!
 
@pmmaga So I deleted the file_get_contents line and used $_POST['Naam'] and so on
Now I get undefined Indexes though..
 
@KevinTinnemans still recommending to use these:drive.google.com/open?id=0B0hD1a71BMwVamZVam95dU9ZYzA
 
@KevinTinnemans you are sending them on the querystring so it's not in $_POST. Try to see if you understand where they'll be
 
9:09 AM
mornings
 
@Ocramius Already tried getting some medical aid? :-P - Well, everyone happens to be sometimes right…
 
@pmmaga I fixed it with get, probably have to read in to this beacause I don't know why. Thanks for your help
 
@bwoebi I should indeed seek medical help
 
@Ocramius however in real world there are always some queries which will work with some backends, but not with others… I'm aware that's an user side issue from a purist perspective, but practically every larger project employing PDO cannot really substitute backends without running into issues with some queries (exposing vendor-specific extensions/behavior).
 
Anonymous
nings
 
9:20 AM
that reminded me of this one :D
 
Could someone help me with this stackoverflow.com/questions/46443692/…
 
@bwoebi yeah, except that I'd prefer it to be on the interface and have backend polyfilling
because otherwise the polyfilling is just left to the next poor bastard
 
Wes
9:36 AM
@Gordon mickey rourke when was pretty lol
 
@Wes yupp, long before he turned into Marv from Sin City
 
Wes
Louis Cypher wat
 
hash_algos doesnt work properly for listing HMAC algos – #75266
 
Wes
lunch break over, i'm gonna finish it tonight :D
 
@Wes whaaaa… you are ruining it. watch it in one go you barbarian
 
Wes
9:50 AM
i've watched like 2 minutes. i doubt i've ruined it :B
 
10:03 AM
php-7.1.10/ext/opcache/Optimizer/zend_dump.c:693: possible &/&& mixup ? – #75267
 
moin
 
why is !!imdb not working?
 
@Gordon Sorry I couldn't find that page.
 
Wes
after some hard procrastination that lasted months i might have finished some work today. i just need a ui now
 
!!wiki Gordon
 
10:11 AM
Gordon may refer to: == People == Gordon (given name), the masculine given name Gordon (surname), the surname Gordon (slave), escaped to a Union Army camp during the U.S. Civil War Enlistee in the British Gordon Highlanders infantry regiment == Education == Gordon State College, a public college in Barnesville, Georgia Gordon College (Massachusetts), a Christian college in Wenham, Massachusetts Gordon College (Pakistan), a Christian college in Rawalpindi, Pakistan Gordon College (Philippines), a public university in Subic, Zambales Gordon College of Education, a public college in Haifa, Israel...
 
Wes
which also will take more months :B
 
@Gordon No results for: look @‌DaveRandom it aint working
 
!!annoy gordon
 
Wes
\o
 
omg wat who unaliased that :-/
 
10:13 AM
hmm. I am sure we had an imdb plugin
 
oh that's why
 
ok
 
9 messages moved to Trash
5 messages moved to Trash
5 messages moved to Trash
 
Anonymous
@DaveRandom @PaulCrovella went power mad.
 
Anonymous
oh
 
10:24 AM
err lol
fail
 
Anonymous
oh yeah, the API lost it's license I think
 
Anonymous
so.. we'll have to scrape imdb or just scrap it
 
Anonymous
scrape or scrap, all in the 'e'.
 
ffs
 
9 messages moved to Trash
 
Anonymous
10:26 AM
you suck in every way minus the good ways.
 
@JayIsTooCommon what do you mean by "lost it's license"?
 
Anonymous
10 messages moved to Trash
 
I could just pay the $1
its $1/mo...
 
@DaveRandom nah
not worth it for a few requests a month
161 messages only and most of it is just discussing it
 
10:33 AM
Well if the rate is that low, scrape is not a bad option
 
@Dereleased hahaha
also, morning all
 
I'm generally not a fan of scrapes because people who want you to be able to access their data provide APIs, but if it's literally just a few reqs/mo (or less) then I'm OK with it
scrapers can be a pita to maintain though :-/
imdb do provide limited data dumps that would probably contain all the stuff we need, but we'd have to load it up into a DB
 
I say not worth it. but feel free.
 
we really should make jeeves properly DB backed instead of flat files :-P
@Gordon yeh I can't really be fucked
but someone else can knock themselves out
 
Anonymous
11 is dying anyway... it's all dying. We might as well stop now
 
10:42 AM
@JayIsTooCommon you can go dying your hair
 
10:54 AM
morning
 
Wes
@JayIsTooCommon bad day?
 
Anonymous
@Wes bad month
 
Wes
year?
 
Anonymous
year has been acceptable
 
Wes
only so far
:B
 
11:24 AM
@JoeWatkins you worked on anon classes right?
 
11:59 AM
EVeninGS o/
 
12:14 PM
Mornigins
 
Wes
good morning pieter
i mean, yo bitch
 
Wesley sir o/
 
Wes
flag in 3 2 1
 
It's like twitter. If it's newsworthy it's allowed
 
Wes
:B
 
12:20 PM
:P
 
can @Madara see how many times a user flagged stuff in chat?
just wondering
 
@Ekin We can see all the posts a user has ever had flags against
 
umm, would putting a 50 MB image in my site as a banner, be a overkill?
 
think the only flags I used were on questions
I see
 
12:35 PM
@Gordon Oh bugger.
 
any wordpress expert here?
 
@MadaraUchiha very freudian
 
:(
I didn't even find any room for wordpress
 
@moiduldargahi they prefer to meet anonymously
you know… stigma and shame
 
no I don't
 
12:38 PM
there is wordpress.stackexchange.com though it doesnt have a chat
 
@Gordon isn't this the chat for it: chat.stackexchange.com/rooms/6/the-loop
 
@Danack isn't that for react and event looped stuff?
 
@moiduldargahi you dont need a wordpress expert
 
@Gordon The way wordpress 'processes' requests is called the loop
/the goggles.
 
hahaha, it was a trap. Look @moiduldargahi… @Danack finally revealed himself as a wordpress expert
you need to lure them out of hiding
 
12:54 PM
I can't think of wittier reply than, fu.
 
<3
 
hahahhah
On a serious note, I really need some help :(
got stuck since 2 days
 
@moiduldargahi what do you need help with?
 
I just wanted to know, wht is this error? prnt.sc/gqbr4j My site was working yesterday very fine, then don't know today why its showing me this message
 
last couple of weeks PHP has really been bringing me down :( I used to love writing dirty hacks to get things working, but now I'm missing being able to implement things cleanly
 
12:58 PM
:B
 
@moiduldargahi Chandelier by ElatedCore is apparently a commercial theme. Just shoot a message to their support team.
maybe the theme got updated and now you are stuck with some leftovers or it's just bugged
 
1:15 PM
o/
assuming that someone may use PHPStorm in here... is there a way to automatically make the IDE propagate changes in an Interface to classes that implement it?
 
@GNi33 refactor submenu in context-menu?
 
@GNi33 Refactor > Change signature or just Ctrl+F6
 
hm, that doesn't seem to do anything
 
@GNi33 I just tried it. Defined an interface Foo with a method fn and no argument. Then created FooImpl implementing Foo and fn. Then Ctrl+F6 and added one argument $arg. Both Foo and FooImpl would then have $arg
 
1:30 PM
ah, now I see, I've just been using it incorrectly. Cheers!
 
Thank you @Gordon and others who replied on my question. I think you guys are right. I should talk to their support team once
 
1:47 PM
@Dereleased if you are working on a computer program with a million lines of code, and it's even possible for you to fail at brace matching, I have no sympathy for anyone involved.
 
@Leigh I need you
 
Sure, I have a minute
 
How did you transfer you phpnw ticket?
Did you let @pmmaga just change delegate 1 or did it involve phpnw people?
 
There's an account management thing
Check the emails they sent when you originally got it
 
1:50 PM
Yeah am looking at the management thing now
Was wondering whether changing the delegate was enough
 
So I changed the delegate details
Sure, it's like you're buying for your employees, you bought it, but the delegates are not you
 
k cool
Thanks <3
 
@PeeHaa yeah, after you change the details there, if you download the ticket it will have the new data there :)
 
Does the delegate get the new ticket or the buyer?
nvm there is a download ticket button :P
 
it's not sent automatically AFAIK, download it and send it
 
1:52 PM
yep forgot I can read myself :P
Thanks
 
:P
 
@PeeHaa lies
If you could read, your would be able to read your calendar and see that this weekend says "go to phpnw"
 
I know :P
Sorry bout that
 
He's coming with me instead
I have to attend a "formal dinner"... need to find a plain black tshirt and some jeans without any rips...
 
I opted for sexy time with leigh instead
 

« first day (2538 days earlier)      last day (2409 days later) »