« first day (482 days earlier)      last day (4448 days later) » 

12:39 AM
ERLANG Y U SO STRANGE
 
why does my site load extremely slow (15s) when I type in www.mysite.com/subfolder/ but very fast when I go directly to www.mysite.com/subfolder/index.php ? can't pinpoint the issue..
 
sounds like a webserver issue , but that all i can tell at this point
( i am assuming that you have disabled mod_rewrite and alternatives to track down this problem )
 
@tereško not sure if I can disable it if I'm on a shared hosting account? thanks btw.
 
is the index.php file empty ?
if so , then report the issue to you hosting provider , because there is nothing you can do about it , except - change hosting
 
Hi guyz
 
12:47 AM
@tereško no, it's the main page of my forum script (IPB)
 
You got any idea What tbl type is best for chat system , in mysql , myIsam or innodb ?
 
@tereško tried with the provider, they said it's something I should solve on my own
 
try empty index.php file
 
can't afford to do that, it's a live forum with many users :/
 
did you try looking at results from dragonfly/firebug in the section related to loading of assets ?
 
12:51 AM
yes, that's the first thing I tried.. it's not the assets, the server connection takes up most of the speed
 
did you try to output, how long it takes for index.php file to be "computed" ?
 
@Adinochestva MyISAM worked well for a third-party chat system I used
 
( take time at the top of file, take time at the bottom , subtract latter from former and output in hidden div )
@Adinochestva never , ever use MyISAM
 
@Adinochestva but you should probably listen to @tereško :)
@tereško haven't tried that, will do.. thanks for your help
 
i doubt that this will give you any results
i still think that most likely candidates for the problem are bad mod_rewrite config and server itself .. in that order
@Adinochestva , for chat it would be much better to use some NoSQL thing
 
1:00 AM
@Adinochestva also, I used this one too css-tricks.com/chat2 no heavy db work
@tereško I've switched my hosting providers recently
and just now I saw that my .htaccess file is empty
and it wasn't on the previous hosting server.. that could probably be the issue
 
hi
any1?
 
Hi!
 
hi
is there any way that my query will check if that value is on table already, it wont insert it
that value's columb doesnt have index or primary key
so ignore wont work :S
i need an alt way.
 
SELECT `valuecolumn` FROM `table` WHERE `valuecolumn`='value'
Check if there are any rows returned.
 
yea but i will use that query in a forach loop, and everytime that array will have min 15 values
so 15 queries everytime will be sux?
 
1:10 AM
ok, then just SELECT valuecolumn FROM table and store the results before running your loop.
and check against each result in the array.
 
hmm ok
 
it's tedious, but at least that way its only 1 DB call.
Of course, this all assumes I understood your problem correctly.
 
yea you did.
i will search a bit more if i cant find anything i will use this
thanks
 
I realize it is faux pas, but can someone take a minute for a CI question?
in routing...
$route['foo/bar/(:any)'] = "bar/$1";
$route['foo/bar/(:any)/(:any)'] = "bar/$1/$2";
can i condense that into a single line? I know the system accepts regex, but where to begin.
 
@Malixxl no problem :) Good luck!
@rlemon I don' t know anything about CI, but logic says to me that the second line makes the first line redundant. If you passed an empty parameter to $2 wouldn't that just be bar/$1/ ?
Unless of course.. a default controller is specified in which case my point is null
 
1:31 AM
i would do foo/bar(/:any(/:any)) , but i doubt that CodeIgniter can do it
 
user1385191
@StefanT CSS-Tricks is a terrible resource for anything beyond CSS
 
user1385191
the guy behind it even admits he's clueless with JS
 
user1385191
so not much hope for PHP either
 
even some CSS related stuff there is quite suspicious
gonna take a nap
 
user1385191
is creating wrapper classes for HTTP header creation too much?
 
1:41 AM
depends on how much it does
 
user1385191
I'm making one for the Allow header right now
 
if it contains only a single method , then it could be part of Response class
 
user1385191
it's basically parameter checking + implode
 
dunno .. it might be useful to keep in separate class , especially if you could face situation where replacing it with a different class ( of the same interface ) is a good option
 
user1385191
I was thinking of something like a header factory
 
1:44 AM
try to make some usecases , before you settle with that solution
if you you find any situation where that API will be hard to use or understand , drop the idea and start from scratch
what is the responsibility => how would i use it => how would i implement it
and at each stage , the mandatory question "does it look like crap?"
 
2:05 AM
i hate holding webinars to show idiots how to click a login button.. ciao
 
 
2 hours later…
4:17 AM
Yo.
 
G'day
 
Finally got a job offer
 
congratulations! what sort of things would you be doing?
 
PHP / js
Probably more PHP, with some algorithms, at regpack
 
nice, custom or using a particular framework?
 
4:23 AM
Honestly, I don't even know. It was kinda strange that I got a same-day offer
They didn't mention any frameworks.
 
so, you are going to be the PHP overlord there (they have a nice website already). It looks like it would be interesting work. If they need anyone from Australia drop my name.
 
I doubt they'll go overseas, and if they do I bet they'd go India. Nonetheless, I'll keep you in mind.
 
RRB
5:22 AM
hi
good morning every one
i want to write script for implementation Apple iphone push notification
anybody have idea how i write it?
any sample code?
 
can someone look at this pastebin and tell me why my last <li> returns and error?
 
oh my god, terrible code
 
lol I dont know what im doing
 
firstly you should have done
for ($x=0; $x < 10; $x++)
$album[$x] = get_post_meta($post->ID, 'album_' . $x, TRUE);
also, make sure to escape with html_entities
 
so my custom fields would just be 1,2,3,4 etc?
why does it show a string error on the line with echo '</li>'?
I don't get how I enter multiple album_ entries that need to be in a certain order that way and produce multiple list items.
 
5:43 AM
@PolluxKhafra you need to learn more before you try to solve any problems. Learn about arrays and loops, spend 1 day trying to learn PHP before you start writing code. Come back after a day if you have questions.
 
best place for php tutorials?
 
@PolluxKhafra That is a good question.
 
5:59 AM
@PolluxKhafra w3schools.com is a much hated site due to their lack of interest in ensuring that their information is accurate. I'm sure there is something better out there, but their PHP tutorial looks reasonable for a beginner. w3schools.com/php
@PolluxKhafra Don't read the mysql section of their tutorial, it is complete junk.
 
 
2 hours later…
7:56 AM
morning
 
8:11 AM
morning
 
8:54 AM
Hello
In My database i have an escaped string : d\'assurance. However, when i try to look for it on the database it return to me no result.
 
9:15 AM
@Malek well, you either don't have an escaped string : d\'assurance in your database or your code is wrong.
Sincerely yours, Colonel Obvious.
 
OT, but March, 3rd is going to be awesome. cant wait for ME3 to be released.
 
or it wont be awesome , because my laptop will go "meh"
currently playing "Bastion"
 
@col. Shrapnel: should i use the mysql_real_escape_string() function?
 
no , you should use "prepared statements" .. look it up
 
@tereško uuh, just found out it wont be available on steam. wtf?
 
9:29 AM
iirc , EA has own online game market-thing , they just cannot admit defeat
its like EMI going "no we wont sell this on iTunes , we have oven shop , now give us your money"
 
@tereško f*cking annoying. that likely means no ME3 for me then.
@tereško thats probably also the reason why da2 vanished from steam
 
9:51 AM
How can make this list have the item with the lowest key appear at the top? pastebin.com/24ydbtvS
 
@PolluxKhafra , are you _trying_ to punish us ?
that code is unreadable
 
I suck at life..let me try to clean it up
 
Hello Everyone
is there any one who worked on C2DM
 
I have values set to "001,value" "002,value". I need the list start with the lowest value
 
i want to make on webservice for sending notification to android device
 
10:10 AM
11 messages moved to bin
 
hey .. it was a very deep thought
 
@tereško best i can offer next to your idea ;)
 
was my second pastebin readable or should I exit off my balcony?
 
@tereško: have you worked on C2DM service?
 
@PHPMAN stop bugging people please
 
10:12 AM
@PolluxKhafra: have you worked on C2DM service?
@Go
@Gordon : i am not bugging. i am just asking
 
StackOverflow chat - best tool for shattering your last hopes for humanity since 1960s
 
if anybody know than please let me know. i can pay for that
i can pay upto $400 for this push service. if anybody interested than let me know otherwise i am leaving my room. IT;s very urgent for me
 
Col. be awesome and help me
 
@Gordon: if you don't want to answer than let me know. You are very rood and due to your type of developer all php developer are ambased
same on you
i am just asking for help and you send me free lancer website link
it's not proper way to ans some one
 
10:17 AM
no , you are not asking for help
 
@PolluxKhafra Right now I am working with the problem code right on my job. Name a reason for which I have to drop it out and get on yours
 
you are using marketing terms and asking for "make code for me"
 
i am not saying that make a code for me. if you know than help me in some way
 
@PHPMAN you are not asking for help. you are aggressively bugging people. this is not a support channel. and ive politely asked you to quit bugging people. if you want to have it done urgently, hire a freelancer
 
isn't there a "crowdban" feature?
 
10:19 AM
there should be
 
i have already made the code but i am getting error so i asked you people
 
@Col...I dunno because you probably know the simple answer
 
@PHPMAN open a question on the main page if you have written code. no one currently in here apparently can/wants to help you with your problem.
 
ok. i an putting code on that
 
10:20 AM
@Gordon , but his code is secret
 
it's not secret
i a mdeveloper so i can give it to you
one developer can help other i am not selfish
i am putting code on main board and if you have qulity than ans that question
let see
 
sbi
Can you guys please stop getting on our nerves with your stupid flagging wars?
 
.. and what's his problem now ..
@sbi , do you want to learn php or something ?
 
Really quick question: Why does this return false? codepad.org/yabBeVQt
 
10:26 AM
@sbi you dont have to click the flag indicator if you dont want to participate in moderating.
@dukevin because position 0 is equal to false.
 
sbi
@tereško Every time you guys flag something, all 10k+ users across the whole chat are asked to validate a flag given only a context free message and a link to the chat. That is terribly annoying.
 
@Gordon is there a way to fix this for this purpose?
 
@dukevin yes. its explained in the php manual.
 
sbi
in Lounge<C++>, 11 mins ago, by sbi
@jalf I can't. That button popping up irks me to no end. It's like a phone ringing, I cannot concentrate on anything else, and just have to pick it up.
 
@sbi , if there is no option to disable it , then there should be one ... complain on meta
 
10:29 AM
I second @tereško. I wont stop flagging just because you think its annoying. the user was bugging people and that's what flags are for.
 
@gordon I don't see anything in the manual. Setting offset to 1 doesn't fix codepad.org/FJhM3Xrk
 
@dukevin , strpos returns number
false if there is no fragment in string
 
thought this was for getting answers...more like a sad hang out
 
Hello all!
 
@dukevin hint: big fat red warning in manual has the solution
 
sbi
10:30 AM
@tereško Can you give any reason why the über-gods on meta would even consider letting us opt out of flag validation? That would just put all the burden on the mods, after all.
 
@dukevin , if(stripos("reloaded@forums","rel") !== false )
 
ahh thanks heaps
 
@PolluxKhafra this is not for getting answers. its just a chat. the main page is for getting answers. see room description please.
 
@sbi , you should not be forced to moderate chat community in which you do not participate
 
@sbi well, the chances for getting an opt-out are zero if you dont ask at all.
 
10:32 AM
Darn it. HttpRequest class is now in repo too.
 
sbi
@Gordon I didn't mind the first three or four flags, all about one user. I have seen such patterns in the C++ room (where I hang out), too. But when flags for other users popped up it got exasperating. (And what do you think the regulars in our room thought about you guys when you flagged my complaint??)
 
Thanks goron and teresko for your help
 
sbi
@PolluxKhafra There is a Q&A site somewhere on the web perfectly suited for getting answer. Now if I could only remember it's URL...
 
@sbi tbh, i dont care what they think about me. waltzing in here and shouting at us is offensive and rude. hence the flag.
2
@dukevin you're welcome
 
one more really quick question if you don't mind. If I have a string in $obj[$i]->name and wish to return string, I can just $$obj[$i]->name?
 
10:35 AM
${$obj[$i]->name} .. but that is an extremely bad idea
 
alright, thanks for the advice
why would it be a bad idea?
 
sbi
@Gordon LOL!
 
@PolluxKhafra if the question is an interesting one then often there will be a lot of people willing to help here. The important thing is that people here are under no obligation to help you. If they do it, it is because they want to. I enjoy helping people when there is an interesting question and I have certainly been helped many times here.
 
sbi
Anyway, I outta here. Have fun. And please don't flag unnecessarily anymore.
 
@dukevin it becomes almost impossible to debug content of such variable .. how will you know when it changed
 
10:40 AM
i see.
 
10:52 AM
hi
 
@Gordon @Sbi was not rude in any way. He simply asked you all to stop being so quick to flag every post
 
Ram
hi all
 
@thecoshman we wasnt quick to flag. i asked the offending to stop bugging people first. he didnt listen. so thats a flag then. and coming in here putting a bold chat message telling us our stupid flags are annoying is pretty the wrong choice of words.
 
@thecoshman calling something stupid as a first statement is rude
 
but flagging wars are stupid. There is no sense in flagging some one just because yo think think they are wrong or might have flagged you.
 
11:02 AM
Talking out of turn - that's a flaggin. Looking out the window - that's a flaggin. Staring at my sandals - that's a flaggin. Flagging the chat flagger - you better believe that's a flaggin!
 
I (luckily) do not have to have to deal with flagging, so I can't vouch for how much flagging is going on. But from what I know of @sbi he is not going to complain come here to complain about the quantity of flagging on a whim
 
@thecoshman there was no flagging war
0
Q: Opt-Out for chat flags

GordonToday, we had a user in the PHP chat bug people by repeatedly asking the same question. The user would ping individuals with the same message. I've asked the user to please stop bugging people and moved the messages to bin (message trashcan). OP continued, so I started to flag his messages (about...

 
Again, I have no access to see the flagging. Though I fail to see what you hope to achieve by flagging every annoying post a person makes. Unless I am mistaken, room owners can apply a temporary ban on some one. That would sure as hell stop some from annoying you
 
@thecoshman you are mistaken. temporary bans are archieved through flagging only. there is no way for me to put a ban on someone.
and given that a single flag is indeed context free, flagging multiple messages is the only way right now to have some sense of what was going on.
 
@Gordon In that case, just ignore the user
Flagging is not for annoying posts, it is for offensive and spam posts, and beign annoying is not spam
If you find your self annoyed with a users posts, ignore them
 
11:10 AM
@thecoshman What is the difference between spam and bugging?
 
@thecoshman repeatedly bugging people with the same question is offensive and spam.
plus the flagging only happened after politely asking the offending to stop and moving his messages to bin didnt make him stop.
 
spam would be posting links to items such as fake viagra or links to ebay auctions. Buging is what a little kid would do to you when they want a sweet. Repeatedly bugging people is not offensive, an example of being offensive would be to tell someone "fuck off you inbred nigga", and there is no need to flag that, it's and example.
 
@thecoshman i disagree with your opinion. but feel free to add yours to the meta post i just opened.
 
@Gordon oh I still agree people should be able to opt-out of seeing flags, especially for rooms they are not in. What I am talking about is what constitutes a flag worth post
 
any line which would earn a /kick or /ban on IRC
if someone is repeatedly asking "can any1 help me, plz !!" , it is a good reason to flag
it constitutes flooding , thus - is punishable by /kick
 
11:17 AM
as an example, Lounge<C++> a person started asking inane questions that where very hard to decode from here Engirsh. As far as I am aware, she was never flagged. She was eventually ignored by every one, and as far as I am aware has not been since, of course, I wouldn't know as she is on my ignore list
@tereško no it is not, that is a good reason to ignore some one
Sadly, chat lacks kick functionality, but that does not mean you need to tell every person on SO who has over 10K rep that you didn't like a post
 
is an option if someone is pestering you ... but such people are hrmful to chatroom in general
 
it is much easier to opt out from the chat itself
 
@ColShrapnel you propose to just leave the chat room because someone is being annoying?
 
@thecoshman i didnt tell everyone i didnt like the post. i flagged the five offending questions to illustrate the OP's offensive behavior. given that there is no context in a single flag, this is the best you can do if you want to achieve an immediate temp-ban.
 
can any1 help me, plz !!
 
11:23 AM
@Gordon do you not understand that when you flag, you are shouting out all the a lot of the users that for some reason you do not like a post?
Ah, is the person in question?
 
@thecoshman lol, that one would only get starred, not flagged
 
@Paul oh, it's some one being clever is it. well played @salathe, well played
 
@thecoshman no. not all. when i flag i am saying this message needs to be reviewed because it is offensive/inappropriate/spam. just like it says in the tooltip. it has nothing to do with whether i like the message. its about the general quality of the message in context.
 
@Gordon yes, and annoying is not that list
 
sbi
@tereško With that I agree (contrary to @thecoshman), but IMO in this case you should flag for a moderator not for the 10k+ users.
 
11:26 AM
@thecoshman we are going in circles. the flagged messages were due to inappropriate behavior.
 
well then, now we are really debating what is meant by 'inappropriate' you have added in behaviour, which using the meaning I can see why you feel the need to flag. Taking that word (inappropriate) by it self makes it hard to work out what that means
 
sbi
@Gordon Again (and this is the last time I will repeat that): I was not complaining here about you flagging that one single person repeatedly — even though I consider this the wrong way to deal with this. I was complaining after other users started getting flagged, which reeked of a flagging war.
 
@thecoshman im not interested in that quibble. i think i handled the situation properly. feel free to disagree.
@sbi yes, thank you for clarifying that. it didnt get across when you came in initially. lets hope something positive gets out of the meta post.
 
@Gordon I wouldn't hold your breath, this has been a long running gripe
 
@thecoshman maybe. but asking on meta is the most constructive thing i can offer on this issue
 
11:33 AM
In the mean time, would you try to be more restrained with your flagging? I am tried of hearing that people are tired of seeing shit loads of flags to sort through.
 
sbi
@Gordon Really, I fail to see how this could have failed to get this across.
@thecoshman FWIW, I called on a mod to step in and stop this stupid flagging.
 
@sbi yes, you are right. i probably overread it in the heat since it was addressed to teresko
 
>_> someone is a rebel here
 
Yeesh, if you don't like the flags look away. Quit making a mountain out of a complete non-issue.
 
sbi
@Gordon Actually it was a reply to one of your messages.
 
11:37 AM
@sbi hm. true. divided attention is divided. sorry again. i will add that to my meta post.
 
sbi
@Gordon I already pointed it out in a comment to that question.
BTW, thanks for that posting on meta. Not that I think something will come out of it, but "Ceterum censeo Carthaginem esse delendam." :)
 
@sbi updated meta post
 
sbi
Anyway, I gotta leave now. Bye!
 
@Gordon I noticed that you are too busy checking on lots of questions, I don't think it is bad or good, I just find it funny how you take all this things seriously and you have plenty of time to do so :D
 
@MelvinProtacio i dont know what to answer to that so i wont
 
12:30 PM
how to redirect page in joomla?
 
if only i have the close vote privilege already, i'd be glad to help :D
 
12:57 PM
oh ... opera's rss reader rulez
 
1:09 PM
hi
what is going on here? why are there so many c++ intruders in the log?
 
heh
php and c++ just don't work together ;)
in no way. even not in flagging ^^
 
Hello
 
hi @Donut
 
@Gordon can room owners do anything other than move messages to the bin?
 
1:23 PM
@salathe schedule events, control access, manage feeds, message admin
 
btw, do we want to add php developer back?
 
@Gordon but nothing with regards to problems from a user?
 
@NikiC not sure. it gave me this recently:
http://PHPMaster.com: Using Traits in PHP 5.4: On http://PHPMaster.com today there's a new tutorial about using a... http://bit.ly/wJ9EI7
@salathe nah, control access can only be used to make the entire room a gallery. id have to assign voice rights to each use individually then.
 
@Gordon Doesn't look that bad. Sure, has been discussed to death already, but not entirely bad either ^^
 
@Gordon maybe that's a good thing *evil grin*
 
1:27 PM
@NikiC i didnt read beyond: hey, look traits. lets build a singleton
 
@Gordon right ^^ but as in my mind traits are inherently evil per se, I think it's hard to find better examples than that ^^
 
@salathe yeah, maybe, but i dont want to manage each and every new user. i just want them to behave :)
 
@Gordon new users, pah. just let the regulars chatter :)
 
@salathe :)
 
@Gordon it doesn't help when Rasmus does the same
 
1:31 PM
@salathe
@NikiC i added a critical comment to the blog post up there but it didnt get through moderation.
 
the code may get messy using traits :D
it's like we're including another functionality from somewhere or adding additional codes somewhere
 
Traits > Multiple Inheritance
 
yes but confusing because it is not part of the class declaration signature
it is used on the class body and at first glance, you won't have an idea if a class is using trait
 
Is anyone here? Can anyone help? :D
 
what if the use <trait> is put at the end of the class body?
 
1:38 PM
Mention that class uses triats in class comment
 
the main reason why the extends and implements are being used as class declaration signature is to immediately have an idea of the class inheritance
 
@Gordon I might be able to help with that
 
@salathe how? are you moderator there?
 
maybe it would be better if the signature is like this class <concrete> uses <trait1>,<trait2>
 
@MelvinProtacio How would you resolve confilcts then?
 
1:41 PM
@Gordon not on phpmaster.com directly, I'm a non-moderating staff member of Sitepoint.
 
traits - then next big thing for noobs to abuse
 
@tereško What cannot be abused by noobs then?
 
@salathe interesting. didnt know. but thank you. i didnt post under my real name anyway so i dont mind it not getting through.
 
you declare it on the body like this: gameplay as Game::play
if you have to put an alias
 
@Donut .. dunno .. a brick
 
1:43 PM
@tereško I recently saw some guy that "abused" print function
 
for conflict resolution, it might be trait1::function1 instead of trait2::function2
but all those particulars are defined on the body of the class just like when you define the methods of the abstract class or implements a function of the interface
hope you got the over all picture of what I'm pointing out :D
 
additionally , here is the deal , @MelvinProtacio , each time you use a static method call , you have to do 20 pushups
 
I would suggest 50 :P
 
they are not static functions
 
( naah .. 20 seems reasonable )
 
1:45 PM
they are function references
:D
i don't know yet how to resolve that by the php but maybe by the class signature
trait::function should resolve to the function reference if and only if the trait is used on the class signature
 
@Gordon lol you are really quick on checking questions that deserves close vote :))
 
@MelvinProtacio unfortunately, gives you lot of opportunity to practise that skill
 
i honestly suspect that has this problem
 
it seems that traits may be exploited :( any programmer may no longer know the difference between interface, trait, and base classes and use traits for all of them for the reason of having polymorphism
 
1:50 PM
@tereško bricks are dangerous...
 
i don't think it is a good idea to introduce the trait
 
@Gordon how do you browse SO? just keep refreshing stackoverflow.com/questions/tagged/php every 5 seconds?
 
@salathe yes. make it minutes though ;)
 
@Gordon I always hoped there was some trick that I'm missing to keep up to date with the freshest/active questions quickly.
 
1:58 PM
how i wish i have lots of time to scroll over and answer some more questions so that i could perform more privileges should someone vote for the answers :D
 
@Gordon developed a heuristical algorithm that automatically finds bad questions and generates a . that's the only viable explanation.
 
@NikiC yeah, i used fann.sourceforge.net/fann.html for it
 

« first day (482 days earlier)      last day (4448 days later) »