« first day (1654 days earlier)      last day (3285 days later) » 

1:32 AM
Well, fuck. I won't have hot water for a few days...
 
maybe I should troll PHP by coming back, getting : void into PHP 8, and immediately quitting again...
 
Add multiple inheritance RUNS
 
q.viva64.com I got 12/15...
2
 
@Ocramius BAD marco!
 
Ey, I try doing my job here, I never said that I wanted anything like human salvation :P
That stuff is a scam sold since a few thousand years anyway
 
2:20 AM
all about PHP
 
2:35 AM
@ircmaxell days..?
 
 
1 hour later…
3:50 AM
Morning
 
 
1 hour later…
4:54 AM
moin
 
5:24 AM
moin moin :)
 
 
1 hour later…
6:33 AM
hello
i was wondering i can i have some opinion on how to post a php sdk on my friends wall but make it private
currently my php facebook sdk can on public but can't make it to private
 
@boyee I'm not fluent at all with the facebook API, this is some Q&A material I could find but some days older: Posting to a friends wall on facebook privately using graph api - it says it's not possible (which makes sense to me but as written I'm not profound with facebook at all).
 
thanks @hakre
 
moin
 
PHP Anthem !?!?!?
5
awesome pic by the way, lyrics included
and good mornin
 
6:57 AM
@SergeyTelshevsky Wow...fabulous
 
Good frigging morning
 
mornin
 
eh... can't even say what's on the mind when it's Monday morning, Ah yeah, @Gordon is watching (:
but next time better remove message rather than silently edit it.
 
It's not morning before the first cup of coffe
 
7:20 AM
good mornings
 
on related note: I managed to trigger caffeine withdrawal on sunday, because I spent entire day playing games
mean headache
 
hi.
I have a problem related to mysql Query:
How to search Punjabi regional language keyword in mysql
http://stackoverflow.com/questions/29881417/how-to-search-punjabi-regional-language-keyword-in-mysql
 
7:35 AM
Have you tried to echo the query in php and then copied it into phpmyadmin and execute the query there?
 
yes,..working fine.. But why not working with PHP its Problem .
 
hello, is there anyone for help regardless htaccess?
 
Well, the first thing that comes to my mind is that perhaps the query is executed with a different charset, although i'm far from sure that this is the reason.
 
.. hm may be you are right. Is there any fixture for this ?
 
I have this rules in my htaccess file and this have redirect loop :(
RewriteRule ^settings/$ settings.php [NC,L]
RewriteRule ^settings /social_media/settings/ [R,L,NC]
 
7:40 AM
@PuzzledBoy php.net/manual/en/function.mysql-set-charset.php Although, I should (if you don't already know) remind you that mysql is deprecated.
 
who will answer my question? :(
 
RewriteRule ^settings$ for the 2nd rule
or settings.php falls in ^settings too
 
I hate mondays ...
 
@FlorianMargaine the 2nd rule fails :( the redirect into redirect loop
 
7:53 AM
@JoeWatkins Don't we all?
 
no, just me ...
 
me too..
 
only those who goes to work or school colleges :P
 
Any person being cheerful on a monday morning should be swatted with a rolled up newspaper.
 
imo tuesday is the worst day of the week
 
7:55 AM
@Epodax monday is the best day
 
why?/
 
is any person is talking about anybodies problem?
 
everyone is sorrowful, you can be cheerful in the middle of everyone
 
on tuesday it's when you realize all is lost for 3+ more days, on monday you're still in the mood of weekend
 
@FlorianMargaine :(
@Florian :( ????????????
 
7:56 AM
looks like dmitry will finish anon classes today
 
@FlorianMargaine not friday?
 
@FlorianMargaine Don't make me swat you, I will do it!
 
oh please please please, somebody help me :( ;'(
 
Anonymous classes in PHP:
- Hi class, my name is John and I'm a PHP developer.
- (All together) Hello John!
 
I'm not sure what is going on ...
 
7:58 AM
@hsn0331 Help you with what? regarding your .htaccess issues plenty of suggestions has been made
 
what just happened @SergeyTelshevsky ?
 
what?? @Epodax
 
if you have a question, ask it @hsn0331
 
why this rule RewriteRule ^settings /social_media/settings/ [R,L,NC] fells into redirect loop?
 
like anonymous drug addict classes
 
8:00 AM
oh oh Classes Anonymous is what we should have called it ...
@hsn0331 we can't answer that ...
 
I think this room is not for off topic chats
 
this room is almost exclusively for off-topic chats ... what I mean to say is there is not enough information in the question to provide you an answer ...
 
@hsn0331 then why are you asking about rewrite rules in the php room? ;)
 
anyone whom u knows ? @JoeWatkins
 
8:01 AM
I don't know what that means.
 
@Patrick because I already get some help regarding htaccess in this room
give me someone htaccess room
 
Morning
 
@hsn0331 but you do realize that it is as much off topic as anything else? :)
 
moin fab
 
@Patrick no this is something related to that topic, not as much off topc :P
 
8:12 AM
 
meurning!
 
@MarcelBurkhard Nope, I don't test my DB... I mock it out and pretend it returns the stuff I can expect
 
moin
that's a silly name for that thread ...
 
Why, @JoeWatkins , why kill time on reddit morons ? (: Person like you can invest it to something much more useful fr the community
 
Gotta remain current and let them know whose boss ;)
 
8:26 AM
Ticket: Category page is not working
Once you dig into it: the article count is wrong...
 
lol
@Patrick Make you'll be in heaven half an hour before the devil knows you're dead (:
 
Morning guys, any magento experts around? :P
 
magento is a color of sh*t, btw
 
@AlmaDo they're not really morons, that's the name of the thread (Moronic Monday) ...
 
8:30 AM
@JoeWatkins eh.. didn't read, to be honest. Have a forbidding rule for reddit
 
I am indeed subscribed :P well if you guys know about get functions with regards to pdf, look kindly at this topic :P stackoverflow.com/questions/29852699/…
 
http://thecodinglove.com/post/117504279404
The coding love
Realizing that the intern has left compile errors before leaving on week end
kbironneau
1430123420
 
8:48 AM
@Jimbo when I first saw github.com/J7mbo/Aurex/blob/master/lib/Framework/… before opening the file I thought you had made it possible to create forms in yaml
 
8:58 AM
Don't give him any ideas
 
haha
 
someone knows a simple javascript/jquery editor forkey-value table? Like I have a table key->value, and want to have a dynamic form that has editing, deleting and adding rows functionality?
 
-1
A: remove selected 'a' tags and change tag name in php with DOM or simple php parse

Mujahed AKASyou can also do it using ajax. put your tag in in a div with id. <div id="chage_h2"><h2>header</h2></div> following is your script <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $.ajax({ cache: false, asyc: false, ...

 
@SergeyTelshevsky You mean the ability to add rows and remove rows simply?
 
yes, I'm just lazy to write it myself :)
 
9:01 AM
How does this look:
// Point to a table you have in the DOM
var table = new AJAXTable.Table('js-table');

// Update the row with the id "one"
var row = new AJAXTable.Row('one');
row.addCell(new AJAXTable.Cell('new id'));
row.addCell(new AJAXTable.Cell('new value'));
row.addCell(new AJAXTable.Cell('ignored cell'));
table.addRow(row);

// Add a new row with the id "two"
var row2 = new AJAXTable.Row('two');
row2.addCell(new AJAXTable.Cell('brand'));
row2.addCell(new AJAXTable.Cell('new cell'));
row2.addCell(new AJAXTable.Cell('ignored cell'));
Enjoy, wrote that ages ago, might be of use but more than likely not
 
I'll have a look
oh, sorry, I need to be able to edit it
 
@Jimbo where is DI?
 
@FlorianMargaine DI is dead. PHP Laravel killed it.
 
will have write my own then
gosh, I'm sure it's somewhere out there
 
Not at all what you want? :-)
 
9:06 AM
yep, functionality like: import json -> build table with editable rows -> user makes changes -> export as json
and don't even mention monsters like jqGrid :)
 
You should make it and open source it
You'd think there'd be something already out there, not terribly hard to do
 
It's really simple, like when you edit a table in any web based MySQL editor, you can add columns, edit their name etc.
 
You'd think there'd be something already out there, not terribly hard to do
 
hi all
I am actually converting svg files to png files using html5 canvas features
 
hi!
 
9:14 AM
Cool
 
BUT
(why i'm here)
svg elements (svg container) may have critical sizes
like 40000 x 24000
placing it into a canvas + converting it to png, retsults in a png file with such sizes... so it is a png file tha could be 45Mo or even more
need a trick to set the png file size manually
 
I need to perform php login validations on the same page instead of redirecting to a new page and then showing error. Can anyone share some useful links ,resource?
 
9:31 AM
anyone who can help in htaccess?
 
@Jimbo thanks
 
10:01 AM
hi
 
Hello
 
hi
how can i see this obfuscated javascript sourc code?
http://m.uploadedit.com/ba3c/142989642734.txt
i need deobfuscated source to malware analyzing.
8->
 
@sami first link on google -> ddecode.com/hexdecoder , which is only partial, youll need more decoding
 
@sami Welcome to the php room..
 
@hsn0331 gist link
wut?!
 
10:04 AM
@Patrick: tnx can u help me?
 
@iroegbu what?
 
@sami There is a javascript room in case you didn't know...
 
@hsn0331 check if the link will be helpful to you (should be)
 
oh thanks, @iroegbu let me check
 
Hey all SO is not allowing me to ask questions but I am having a problem with using array in mysql WHERE IN CLAUSE . Can someone help me figure out why my statement will not work
 
10:11 AM
\o
hey
 
Why isn't SO letting you ask a question? :o
 
banned for asking questions that were to isolated to my needs
too
 
@Naruto: this is not hex code ... i cant found algorithm of encode.
 
@sami it is indeed not full hexcode
 
this is javascript code that obfuscated by some algorithm like base64
 
10:17 AM
I have a bunch of arrays and I am using match_gender_sql = implode(',',$match_gender_sql); and statement is SELECT mem_user_name, mem_age, mem_county, prof_pic_name, mem_Ethnicity, mem_body, mem_mat_status FROM lidMemberProfile WHERE mem_gender IN ('$match_gender_sql')
I have tried everything I can find on the web but nothing has worked
 
@CornHoleLI Have you tried actually printing your query and running it in the mysql, to see what your error is? And nothing has worked, what doesn't work, the php, the query,... ?!
 
@Naruto: this is javascript code that obfuscated by some algorithm like base64
 
Yes the query and the query will work if I use Female instead of arrayt and before the implode is this $match_gender_sql = array($rows['match_gender']); This is just a sample most arrays can have 15 entries in them
 
Anyone know of any automatic syncing solutions between JS / php?
 
Guys is it possible to do Php Unit testing on legacy code that literally consists of no objects?
 
10:32 AM
@Brunaldo No, that'd be integration testing. Unit testing is testing individual objects on their own merit. If there's no OOP, you're not unit testing
 
@Jimbo you can perfectly unit test a function
and the unit as such isnt limited to objects anyway
> Object-oriented design tends to treat a class as the unit, procedural or functional approaches might consider a single function as a unit. But really it's a situational thing - the team decides what makes sense to be a unit for the purposes of their understanding of the system and its testing. Although I start with the notion of the unit being a class, I often take a bunch of closely related classes and treat them as a single unit. Rarely I might take a subset of methods in a class as a unit.
 
unit-testing can be applied to any isoleted entities (aka units) and they are not limited to object-oriented development
 
So, they have to be isolated, correct
SRP and all that?
 
basically, no
 
lol the majority of the code here is functions calling other functions that call the db to get the data, then the former echo's out the html. I'm gonna cry.
 
10:40 AM
it is related in the way - good class design will be much easier to test. But that does not mean that unit-test have some kind of magic which will prevent you from bad architecture. You can test even poorly designed entities if they are enough isolated
 
@Gordon This is fine, until you let the team decide. From my experience they choose the easiest (and likely most rubbish) path
It's better to enforce good OO principles as a requirement for unit testing imho
 
@Naruto are you still with me?
 
Rules are rules. You are expected not only to follow them, but also to understand when you can break them
 
@Jimbo the team? they? aint you part of the team?
 
@Gordon If the team, including myself, goes for the easiest path, then - I'm still part of the team, but the majority makes the choice.
In the UK, devs are much less intelligent than German devs in my experience
It's a different culture here
 
10:44 AM
@Jimbo then why don't you convince them of a better way?
I take they dont enjoy shooting themselves in the foot
 
@Jimbo you're mistaking then. I'm working in German company, and you know - we have > 50 devs here, from which only 3 are actually German. Others are French/Italian/Russian and so on
 
@Gordon I do, but it's a constant battle. It's working where I currently am, I never said I wasn't doing that ;-) They take the easiest path regardless of future foot loss. Over two companies this is what I've seen. Most aren't bothered about best practice, just "what works"
 
@Jimbo You don't have a CTO?
 
It's not easy to find people who care about what they do more than "just a job". Those that do, like me, tend to make more ££ but also want to inspire others. Eventually it honestly just comes down to people who aren't too bothered
Our CTO doesn't get involved with code. He's all infrastructure from what I see. Our head of development knows principle names and what they mean.
June = "Solutions Architect" at new company, possibly, so no complaints :D
/mini-rant
 
11:03 AM
Beers on Jimbo
You coming to PHPSC?
 
@Fabor Yeah man, I got the ticket, and I'm staying on @Danack's couch, although I haven't asked him yet... :D
 
Sweet. Doesn't seem too far away now.
 
11:18 AM
@CornHoleLI Occasionally works needs to be done, did you fix it yet?
 
moin
 
@Jimbo maybe the "battle" is the problem then. People resist being coerced (which is what fighting is about, right? Making people bow to your will). Convince them instead :)
 
@Jimbo Nah, it's just you bringing the average down that gives that effect.
oh no he didn't
@SergeyTelshevsky wtf
 
it's not me :)
 
moin @DaveRandom
 
11:32 AM
J-Wat in the hizouse
 
Morndom
 
@Naruto No I've been working on it for days
lol this is more important than real work :-)
If I do a var_dump on $match_sports_sql I get - array(1) { [0]=> string(9) "A,B,D,H,J" } So I know the array is not empty but why is it not matching anything?? I know for a fact that the "A" should be a match!
 
As I said before, if you dump your query and run it in your mysql, what does that give you?
 
No results
 
Then your query seems to be wrong, make an sqlfiddle with some test-data and give the query you are trying to execute
 
11:41 AM
@DaveRandom I sense this was for me ... hai :D
so ...
when I jumped off that bike last year, the misses gave up on the idea of having a bike, then a week ago, she asked me to get it out the garage and start it up ... now she's riding to work ... so for about an hour and a half every day, I'm a nervous wreck ...
do we think this will go away ?
 
give me some time
 
@JoeWatkins It wouldn't for me. I realise this is not what you need to hear, but for me motorcycles on public roads is Darwinism in action. Sorry.
It's one of those really tricky things where you can't exactly tell her what to do but...
Ugh, I suck at typing, sorry
@ircmaxell Simultaneously good and v. annoying, in that I scored 6 but I got 5 or so more than that correct, I just didn't click on the correct symbol (for ex. for repeated conditions in an elseif tree it wan't you to click on the first instance, I clicked on the second and it considered that wrong).
 
well I'm still all right on bikes too, intend to do full license this year .... so I can't tell her not too ... I intend to do full license this year, but with more than 10 years road experience and 4 years riding ... she's got none, can't follow her because she gets more nervous when I use the car, and don't have another bike at the minute ...
 
Well it's also more about other drives not being aware.
 
without rose coloured spectacles, there are motorcycles everywhere on the island, you can't drive down a road on a sunny day without seeing one, I think there is a heightened sense of awareness on the island ...
 
11:55 AM
@JoeWatkins put here in a suit like this and it will all work out :P
 
it's been a week now I think, worry hasn't subsided yet ... I just wonder if it does ...
 
$ php -r 'echo(PHP_EOL.ucfirst(join("", array_map(function($x) {return chr(mt_rand(ord("a"), ord("z")));}, array_fill(1, mt_rand(3, 8), "a")))).PHP_EOL);'

Wow
 
I wonder if I'd be as worried if she were in a car ...
 
It trolls me ..
 
I'm going to stay out of this conversation as I won't be useful. I'm pretty sure that if you search the transcript a bit you can find opinions on motorcycles if any particularly wants them.
 
11:59 AM
well motorcycles is only part of the concern ... but fury muff ...
 
We don't we have php interpreter inbuilt to chat command line ..
 
Jimbo used to ride, I think
 
It's true, I do have a furious muff.
 
afaik still does ..
 
the only vehicle I can move are my legs
 
12:02 PM
I think I'll just go with her a few times, need another bike anyway ...
 
not even a regular bicycle @iroegbu ?
 
not even a bicycle, I can only jog and walk (I don't think I can still run)
 
the first day I rode, I rode into the back of a van, in the first year I had dropped a bike twice, once standing totally still, couldn't do anything with an ounce of grace for the first year ... you don't have to be very good to be better than I was, if she's better than I was problem will go away I think ...
 
@JoeWatkins Yeh, that's another valid point, you of all people should probably not be in charge of anything more powerful than a pony :-P
 
s/pony/elephant
 
12:06 PM
Ponies can kill people too.
 
everything can kill people too
 
death by spoon
 
@Patrick ...heroin overdose?
 
@Naruto sqlfiddle wont let me use an array in query
 
Bubblewrap is 100% safe
 
12:08 PM
It's not a very effective mode of transportation though
 
No, but you won't see any road rage.
 
@DaveRandom i was thinking more along the line of youtube.com/watch?v=9VDvgL58h_Y
 
I really want a magic carpet made of bubblewrap now
 
@DaveRandom I did improve, specifically after I done the training again in year 3, she got nearly two full days of training though when she done hers last week ...
 
@Patrick lol forgot that existed
 
12:09 PM
@JoeWatkins Yay! I'm enjoying the 600RR at the moment but I have my eyes set on one of these.. on PCP they're £149 per month!!
 
jumping off that bike was bound to happen, wasn't motorcycles it was humans, I shouldn't have ridden in those conditions, nobody should walk in those conditions ...
 
^ pretty sure that doing PCP and riding a bike not a great idea
 
@DaveRandom You're right of course, for newbies anyway. Get crash bungs put on if you do lol
 
hehe
I can't wait to get a big bike ...
 
I've already dropped my CBR on a roundabout, had to buy new chinese replica fairings for about £500
 
12:11 PM
So, I want to rename the team. Tried to use this - now thinking about - how to justify my choice
<font color = '#BADA55'>Hordes of Lurd</font>
 
@Jimbo pretty sure they can copy that without doing it terribly ...
if you dropped a chinese motorcycle on a roundabout, I'm sure it would just disintegrate ...
 
@CornHoleLI No it allows you to re-create your db...
 
Kit I bought, repsol :P
 
is nice
I found the guy who is gonna do my training ... same guy who done her CBT ...
 
i have to build an online marketplace where people can sell and buy products the deadline is only two weeks. not sure if i can complete it on my own using ZF2 or laravel. i've checked magento but it's really huge. do you know of any good small open source solution that i can easily customize ?
 
12:15 PM
it's 550, that's for as much tuition as you need, all the costs of the ferry for module 1, and everything else but the theory (which is 25 quid) ...
gonna pay the dude this month ... hopefully be done before end of summer so I don't have to do cbt again ...
 
@Naruto I did that and ran a statement = SELECT * FROM mytable WHERE sports IN ('A');
That works
but that doesn't help with using an array in the WHERE IN clause
 
is there someone who can explain in ~two words how the fek paypal auth->capture works?
 
@Jimbo go for the diavel instead ;)
 
@PeeHaa are you around?
I still need a place to stay for the sunday night after mysteryland. Do you have a place that you can recommend? :)
 
@CornHoleLI You are passing a PHP array to an SQL query?? instead of looping it and creating ('A', 'B', 'C', .. ) ?'
 
12:20 PM
@Patrick wow, I can't believe I just watched all of it
 
@Naruto yes it's a very long statement $query="SELECT mem_user_name, mem_age, mem_county, prof_pic_name, mem_Ethnicity, mem_body, mem_mat_status
FROM lidMemberProfile WHERE
mem_gender IN ('$match_gender_sql')
AND mem_Ethnicity IN ('$match_Ethnicity_sql')
AND mem_county IN ('$match_county_sql')
AND mem_Faith IN ('$match_Faith_sql')
AND mem_body IN ('$match_body_sql')
AND mem_hair_color IN ('$match_hair_color_sql')
AND mem_hair_style IN ('$match_hair_style_sql')
AND mem_body_art IN ('$match_body_art_sql')
 
Lollipop
 
@CornHoleLI you can't pass an array to an sql statement...
 
@CornHoleLI thats a lot of duplicate lines...
 
12:25 PM
@Patrick going to mysteryland? ^^
 
@Naruto jup =)
 
@Naruto before the statement is this $match_gender_sql = implode(',',$match_gender_sql);
$match_county_sql = implode(',',$match_county_sql);
$match_Ethnicity_sql = implode(',',$match_Ethnicity_sql);
$match_Faith_sql = implode(',',$match_Faith_sql);
$match_body_sql = implode(',',$match_body_sql);
$match_hair_color_sql = implode(',',$match_hair_color_sql);
$match_hair_style_sql = implode(',',$match_hair_style_sql);
$match_body_art_sql = implode(',',$match_body_art_sql);
$match_eyes_sql = implode(',',$match_eyes_sql);
and before that is
$match_gender_sql = array($rows['match_gender']);
$match_county_sql = array($rows['match_county']);
$match_Ethnicity_sql = array($rows['match_Ethnicity']);
$match_Faith_sql = array($rows['match_Faith']);
$match_body_sql = array($rows['match_body']);
$match_hair_color_sql = array($rows['match_hair_color']);
$match_hair_style_sql = array($rows['match_hair_style']);
$match_body_art_sql = array($rows['match_body_art']);
$match_eyes_sql = array($rows['match_eyes']);
$match_Smoking_sql = array($rows['match_Smoking']);
 
@Patrick WHAT. THE. FUCK.
 
@Naruto BTW I am new to all this and I may be missing something in the line of JUST comparing the columns of one table against another and pulling the rows that match ????? That thought just acured to me
But one table is just going to have one of A B C or D... and the other may have all of A B C D .... in each column
 
12:44 PM
@FlorianMargaine don't forget about the interactive adventure
 
@Gordon A lot of people like that and the monster, but I'm more a fairing fan
 
@Jimbo i'd like to get a bike, too recently. but I am aiming for the harley nightrod.
 
@DaveRandom You know those 26 beers I said I owed you? You're now on 25.
 
@Gordon I know what you're saying about coercing, which I don't do. I am very tactful, I just know a lost cause when I see one after 6 months. I'm not a senior like yourself yet, the ability to do this will only come with time and experience
 
12:59 PM
@Jimbo heh, dont overestimate me. I'm human, too. And it's a lot easier to preach "the right thing" than to do it ;)
 
@Gordon hence speakers who give talks on PHP ;-) trololol
 

« first day (1654 days earlier)      last day (3285 days later) »