« first day (1213 days earlier)      last day (3961 days later) » 

12:08
Hi All, I have one application running on one server with mysql backend.... Now I have another application on other server.. in this second application need to access some data from previous mysql server... so i need to make first mysql server to be accessed remotely.. Do you guys know which settings i need to do on server for that
how do I assign a field of a json_encoded result to a variable. I have the following:
$jsonres = json_encode($result); //where result is an array holding fields including name (string), properties (object type or array)
I need to do something like:
$j=$jsonres['properties'] //fails
Morning
hi guys :). any help appreciated
@Kingsley , can you paste array?
morning @PeeHaa
12:11
ok. would paste using pastebin
@Kingsley json_encoded stuff is a string in PHP. You can't access it like an array/object. Decode it and do what you need to do.
@Fabien yes I would decode this but I need the result of a field exactly as it is before decoding. the field in particular is 'properties' field.
So decode, set $j then encode it again
or ideally set $j before encode of the original thing and encode them both
@Fabien, good idea. the thing is 'properties' field is of type objects (not string). so while i can do: echo $mongorow['name']; //name is string... I can not do echo $mongorow['properties']; //properties is object type
so can i do $j= $mongorow['properties']; before encoding $j?
Unsure what those weird var names are but going from your original text
$j = json_encode($result['properties']);
$jsonres = json_encode($result);
12:24
:-D
Morning @ircmaxell
@JoeWatkins nah, that's just business. Sounds to me like "We liked you, there's just no way we could afford you"...
thanks Fabien, you're a great mind :). all's not done yet but i've got the value of properties in json encoded format now.
Good good.
12:30
lord, I forgot what it was like to get ready for work...
Today is day 1?
Quick week off.
I wonder what an induction day at google is like.
@ircmaxell hehe
@Fabien I will tell you tomorrow or tonight :-P
heh. I look forward to it :)
dude you're going to work with google ? @ircmaxell
12:36
Hey all
/me wel jel ... I want one !!!
hi, @ircmaxell @Suhosin
Hey @Suhosin
moin @Suhosin
Aren't you in London soon?
12:37
Yeah
I'm happy to announce that next week I will be starting my next endeavour is as a Developer Advocate for Google! Looking forward to it! :-D
Thursday next week
@ircmaxell Congrats :D You're working for my least favorite company ever! But nice position.
Really @Suhosin? Worse than Electronic Arts? -_-
(note that was tweeted last week). Today is my first day :-D
@Fabien Yes, I can avoid EA
:P
12:38
heh
congrats, not been paying much attention to anything since starting new job ... totally missed that ... nice ...
@JoeWatkins If you want, I can maybe hook you up to overtake my job at zee Germans. I'm quitting today.
Why you quitting?
if you don't mind my asking.
No, it's too much work for me, I get paid the same amount on the other job working 3 times less (stressful).
12:41
@webarto my plate is full for now, I'm enjoying myself, not so bothered about the money tbh ... thanks tho :)
Hey everybody. Is there a way i can make doctrine:migrations:diff expose what exact entities are using enum types and somehow trace why am i getting this message "unknown database type enum requested". I dont want to just put this mapping config, because i fear there is something wrong will happen to entities, because some of them are probably using enums that are mapped to int, rather than just string.
@ircmaxell looks like a pretty cool position ...
Hire us @ircmaxell :D
lol
There's a position open in London for one.
12:44
nice :-P
Sounds like a really great fit for you @ircmaxell
trying to decide what to wear. Currently in button down shirt, but feel "over dressed"
@cspray 'sup dawg?
You look great @ircmaxell :D
a little bit different than that, but...
12:46
I dress according to my financial situation :D
full superhero gear, cape, a (magical) staff - if you can find one, and leather boots ... would be my suggestion ...
Just wear a cool t-shirt underneath and if it's relaxed undo some buttons. That's my smart-casual.
can't, wouldn't look right with this shirt and slacks
Well better too smart than not enough.
Put on a tux
12:48
Or if you own anything that says "Microsoft" that might do it...
I am business casual. Prior to a few weeks ago just casual. And when summer rolls around, streetwear.
I'd go with pink fishnets and a skin tight latex garment for the upper portion
lol
Maybe some bunny ears
It's all about making an impression! Be the talk of the town.
screw it, jeans and a polo shirt
12:51
This is definitely a first-day look
It Rubs the lotion on its skin
Ok, I am off, later
Enjoy.
Remember, stare everyone in the eye and don't look away first. Establish yourself as the new Alpha male.
12:53
@Fabien Thing is, you can never unsee that. If you ever meet me, you won't be able to get that image out of your head.
Pro tip: Focus on a single eye for extra intimidation.
Oh that's you? :P
You have nice legs. ;)
Perhaps you'd prefer this. Or this.
oh dear nsfw :P
Yeh lol, just realised
Those are some choice picks from my FB profile pics album
Private I assume for your employments sake.
12:55
tbh I have no idea, I never go on FB any more
I still lurk.
morning!
Yo @reikyoushin
so what's cookin?
@reikyoushin meth ;D
12:59
@webarto hey.. you're always busy nowadays.. tsktsk
I am 8 hours less busier as of today :D
Sorry for not replying.
Apology not accepted.
You need to make up the deficit
extra replies
Wear make up? What has this room turned into!
All gone mad because of there's no @tereško's voice of sanity.
:( Still hope he comes back
13:05
@webarto I guess this phrase is great sample of that reasons he left the room :\
13:23
Any one here please help me with this question please . Thanks in advance :)
0
Q: PHP/MySql merge same value with different data's separated respectively

jack7enI am doing a testing on event booking. I have created a VIEW, merging three tables(stage_info, show_info & show_time_info). Table1: stage_info columns(stage_id,stage_name) Table2: show_info columns(show_id,show_name,show_desc) Table3: show_time_info columns(show_time_id, show_time) ...

hi i have one bash file and i want to execute in php
@jack7en pls read git.io/chatroom-pact thanks 'in advance'
i have write exec('.bash blog_backup.sh'); like this
but it is not executing
if i run this bash file through shell it will execute
@reikyoushin oh sorry.. new here :(
can anyone tell me what is right way to execute bash file in php
13:25
what should i do now?
can't I delete it?
@Sandeep Have you tried with full path? Check permissions too.
13:39
@Sandeep why is the a dot before 'bash' ?
@crypticツ Hide All The Shells!
if you want bash to run the shell script and did not specify it in shebang line then exec('bash ./blog_backup.sh');
You don't need it to be executable if you are passing it as an argument to bash using above method.
13:59
@DaveRandom Hey, gonna invite you to a room for a quick minute
Sounds kinky
14:12
@DaveRandom saying you're a minute man?
What happened to cv-pls.com? :(
ooooh oops
sorry, I had did an update, and forgot to make the cache folder writable I'm sure.
@crypticツ I don't know, I usually black out after a few seconds wtf brain, what the hell are you doing to me?
@Qantas94Heavy ok up now
cv-pls: Docs, Backlog | Tools: Explain, phpdbg | Addons: [cv-pls], PHP Manual Linkifier | Snippets: ext/mysql | Reference: Errors, Operators
8
15:00
@RonniSkansing which one?
15:23
@PeeHaa y u break the build
@webarto Dropped a client?
@LeviMorrison Employer, too much work, you have to work 16 hours so it looks like 8 on paper (paid per hour), also, I was discriminated, so... bye, bye :) What's up? How's life?
@webarto site5?
@Lusitanian No, that was great :D Incloud dot de.
@webarto ahh. never heard of em
15:35
I wanted it to be an additional job, but it took more time than primary one.
(I work at Nexcess now, which is hosting company also, like Site5)
Life is going well for me. I think I'll finally be able to do some work using Artax, Auryn and Arya.
cool :O
is there anyone having good experience in laravel?
oh no you didn't
XD
@LeviMorrison Triple A software...
15:40
^^
Hello @all
*sad face*
triple sad face
Is it ok to have dependencies between class methods?
15:47
just use singleton
no no no
*less sad face*
@NikiC A* is a nice name?
str_replace ?
doesn't seems to work here OR?
<?php
$string ="'";
str_replace("'", "", $string);
echo $string;

?>
@samitha str_replace doesn't mutate $string. It returns the new value, IYKWIM
16:01
So how to do this?
assign the return value to a variable IYKWIM
clearly, he doesn't KWYM ;]
@andho i want to replace if apostrophe inside two apostrophes ? ex: 'sam's lane' .I want it like 'sams lane' ?
is that possible with string replace?
@samitha learn programming/language basic first
why?
16:06
does "return value" mean anything to you?
lol
problem with sqls
lol sure. but who's gonna fix it?
i have some update queries with values
@samitha yes it's possible. And I'm trying to tell you how you can find out for yourself
those values contains apostrophes ? i want to remove it and use \
@andho yes that return value get the result without apostophes ?
16:09
ah progress
well the problem now is, you have some apostrophes that you don't want to remove. and some that you do want to remove
but i can't use that query
yes :)
 ex: 'sam's lane' .I want it like 'sams lane' ?
where did all those values come from. You need to run the str_replace on those values, before putting them into the SQL
it's come up with binned sql
that's the problem
@DaveRandom Du you have @samitha on your ignore list?
16:13
Anyone know what happened to the big SVN -> Git question? The one that was structured like "I want to do X, here's how I would do it in SVN and here's the Git equivalent".
$str = "sam's lane";
$str = str_replace("'", "", $str);
var_dump($str);
/night
@MikeB stackoverflow.com/questions/315911/… maybe? Certainly git.or.cz/course/svn.html looks like it might be helpful for whatever you're doing
@bwoebi Previous offender has prior offences
@DaveRandom You're the man, ty!
@Lusitanian I'm pretty sure it was you :)
Want me to do a blame? :)
@Lusitanian github.com/Lusitanian/PHPoAuthLib/commit/… <- now put those bunny ears on your head dawg :)
^related :D
16:30
@PeeHaa oops.
@PeeHaa my fault for using the github web editor
should have just fixed it though
@Lusitanian Yeah the online webeditor just attracts mistakes :)
@PeeHaa installed phpstorm on new laptop. i have noe xcuse for using it anymore
Check out the shortcuts @Gordon linked. Starred in the side
as well as emmet cheat sheet
16:47
Well emmet is only useful if you do a lot of html/css
Why did HAML never really take off?
@Fabien No idea, his portrayal of Luke Skywalker was very convincing
lol
Last 35 minutes of work and I've been attacked by the motivation-vampire.
17:28
@Fabien Because it's a pain in the rear end to parse in PHP?
good point
17:56
Shitty build breaker. Trouble shooting a simple database import for three days now. It's just that the "pro" who even installed jenkins just forget to document how things are done as the database is not part of the integration nor seems to be the file-system.
18:22
hey men
guyz, am developing a php cms, i need your help to advice what features would my costumers may like it to have?
18:42
@scripter awesome idea. because a million available cms aint enough
@Gordon current CMS are just too good to use. I want something I cannot use.
So I have the following:
How would I go about trying to get an array with results for the team I want?
For example, there are 3 games, so 3 rows in the table. Now I want the results of team 1 in the following array format (W, L, L, W...) where W if team 1 won and L if team 1 lost.
anyone
@DemCodeLines You're looking for a CASE ... WHEN ... THEN ... ELSE. Nested ones, actually.
When hometeam is 1, compare the home score and away score, returning W when home score is higher. When awayteam is 1, compare scores and return W when away is higher.
19:00
Good afternoon all
19:39
Konnichiwa
@Charles Done that, now...need to figure out the win streak.
I have the array, for example (W, L, W, W)
last two were wins, so the team is on a two game win streak, but not sure how to show that.
But it's from 2008 and it skips those elements that have all W's in the array or all L's in the array.
Reverse the array, pop the first element, start iterating over the array incrementing a counter until the value no longer matches the first. That's your win streak.
Or loss streak, really.
s/pop/shift/
@Charles You could always pop and iterate backwards :D
@MadaraUchiha yeah, but mental effort.
@MadaraUchiha I object to closevoting just because of an old PHP version.
@Charles There's a reason it's called "Unsupported"
It means that there shouldn't be support.
19:46
@MadaraUchiha Unsupported by php.net. The user should be lambasted but there's no reason to close just because of that.
If you feel obliged, you can always answer the question..
I'm gonna. :p
Do we have a projected EOL date for 5.4 yet, or will that not be determined until 5.6 is released?
@Charles late july / early august
19:53
@salathe Thanks.
Iiiiit's election time! Who's not running this year? Me! I'm not running!
@Charles me either. definitely. me either.
I'd be the best, worst moderator ever.
I'd be the worst, best moderator ever.
20:04
I wrote community software for like eight years. Been running community for 15.
I know what does and does not work.
And I would be a horrible, no good awful moderator on SO.
You see, I like shadowbans.
I firmly believe that a level of supreme authoritarianism is required in certain places, and that kicking people out of the community, whether loudly or quietly, is the best way to maintain peace.
This is fundamentally incompatible with the way SO moderators work.
anyone running?
Well, that and I could no longer afford to be a new tag deletionist.
Deletionism only works because people can appeal my occasional stupidity.
@hakre You should run stackoverflow.com/election
@MikeB I'll be running again
Excellent, need PHP peeps to represent.. I don't trust the .NET minds fascists :p
6
20:15
+1 Mike B :D
In the context of pattern matching, such as PCRE or masks, what's another name for a "catch-all". Specifically, a symbol or object that represents a trailing "catch-all" in the context of string matching. Such as the file-mask "*", or the regular expression ".*".
"Wildcard" is the only other term that comes to mind.
@DanLugg "glob" might be appropriate under certain context-dependent circumstances...
@Charles as might "booger"
Snot it is.
SnotGlobSegment
@salathe If I ever write a programming language, I'll be sure to include a booger operator.
20:27
pick would be the operator; pick booger
@Charles q(*(oQ)*)p <~ this one?
@reikyoushin what is that I don't even
haha. lol that's a face
@MadaraUchiha new pic eh? too small to see. ;P
20:31
@reikyoushin Look closer :)
BALLS
@MadaraUchiha i see you having a discussion on the 2014 mod election room eh. haha. anti rep whore stuff?
@webarto Those balls are little nuclear warheads in sphere form.
I am not kidding.
@reikyoushin Sorta
Just found Neal there
besides gordon, who else is a mod on the room11 regulars?
20:35
@webarto let's make 'he who must not be named' mod! yipee! :P
@webarto it's all about the hat
^ the hair is jiraia's lol
@reikyoushin Nah, it's Rikudo Sennin's
Although he could use a little haircut
20:39
@MadaraUchiha Urk.
> I recently ended my military service, and so I have a great deal of experience with dealing with people of all ages, backgrounds and mindsets.
by shooting at them?
@Gordon Well, moderators do need a wide set of tools at their disposal. You can't say you haven't wanted to assassinate a user before, right?
@Gordon Nah, by dealing with them.
@MadaraUchiha then you dont qualify ;)
You get to deal with a shitload of people in the army.
@Gordon I shot at targets in a shooting range. Does that count?
20:55
@MadaraUchiha it helps somewhat
With an M16 :D
I am unsure what I am doing here
I will leave now
hi!
@Gordon Although I am Madara Uchiha, I've killed countless people.
@MadaraUchiha you know we modrators are just triggahappy monkeys wit guns
Madara vs the world
It's really ridiculous, 1 vs 2000 :D
@MikeB Do you like kicking people's dogs?
21:06
Type-hinted reference parameters are fucking useless.
@Gordon Are you running again or have you learnt your lesson?
@Danack the funny thing is that I can nominate myself
though I dont know what will happen when I submit
but I guess its not worth putting a check in
21:28
@Gordon please close your vote :-( wiki.php.net/rfc/automatic_property_initialization
@bwoebi What the funk...
yup………
@bwoebi you got wiki karma. stop complaining. start fixing :P
@Gordon that's your task to end the vote.
@bwoebi im playing minecraft. no have time :P
21:35
@Gordon shall I come online and hinder you from playing? Which server? :-P
@bwoebi private server
@Gordon paaah
user1607528
Currently, i send a link for unsubscribing when I send emails like this : index.php?unsubscibe=12&to=125, how can prevent someone else randomly putting numbers and unsubscribing others, note that the link comes from email,
user1607528
I was thinking about random hash, storing it in database and sending to url ?
user1607528
I got it just send a hash
21:47
Just use the email address unsubscribe/[email protected] and then send the user another email to verify their un subscription, this is by far way safer than using a hash
@Muhammet generate a random number (a guid will do) and store in your database along with the address to unsubscribe. Remove this record from the database after a week or so.
user1607528
No how about this, when their email is listed in db ( when subscribed) generate a hash and store, and send index.php?unsubscribe=hash and simply unsubscirbe
You could do that, but what's to stop someone from guessing hashes and unsubscribing users if they really wanted to?
@BenjaminGruenbaum Verrucas?
Does air?
I think you could use some sleep?
user1607528
@JoelMurphy hmm
21:52
@Joel yeah that's why I would create a guid when the unsub was requested. unguessable. and you can expire it after a week.
@ColinPickard that sounds like a better approach
Wow the new Facebook developer section looks so much nicer! How on earth do you set a callback URL for localhost though? I want to use localhost2/SocialMediaDashboard as my callback url, but Facebook says that this isn't a valid domain...
user1607528
@ColinPickard i didn't understand your way
@Muhammet For each outgoing email, create a UUID and store it in the database associated with the email. Use that UUID to unsub users when they click the link.

« first day (1213 days earlier)      last day (3961 days later) »