« first day (972 days earlier)      last day (3981 days later) » 

12:01 AM
Why do people think its clever to write crap like this?
 
@vascowhite I'm not even sure what they're trying to do there
 
@vascowhite I can't tell if I can't read that because it's too stupid for me to understand, or if it's so complex that I'm just not up to the task of figuring out what the fuck they're trying to do
Why is this chat dead? :( It was lively last night just as I left work
 
In fact, I'm 58 upvotes away from qualifying for gold, but don't even have silver because not enough answers
 
12:42 AM
Anybody knows a good website explaining how to make php work with mssql server express 2012 (install, configuration, etc)? I've been having difficulties for the past few days and don't know where to turn to anymore
 
1
Q: CodeIgniter TankAuth ajax forms

TwhylerI am using the lastest version of CodeIgniter and TankAuth and all functions work properly such as login, logout, email and register. Currently when a user needs to login, you are redirected to a separate page, which is, /auth/login. What I am experimenting with is loading the login page in a mo...

 
What would you guys recommend for sanitizing inputs? I'm using mysqli with binding for inserting into a db, and this function for sanitizing input: function sanitize($str){
return (strip_tags(trim(($str))));
} .... However if I post a love heart <3 my css will screw up as the comment displays as nothing
 
@JoelMurphy can you be a little bit more specific?
 
12:58 AM
Yeah sure. I mean when posting form data (e.g a comment form) which PHP functions should I use to prevent XSS attacks, and prevent HTML from being submitted? The function I'm using right now won't allow strings such as '<3' to be posted (gets replaced with nothing)
by nothing, I mean an empty string is being added to the db
 
@JoelMurphy htmlentities()?
 
hi
Does somebody know how to change the keybindings of third party plugins in sublime text?
 
@Nile Ah yes! That's the function I was looking for. I have used it before in another project, just couldn't think of the name of it! Thank you :D
 
np
 
Ah found it
 
haha that's bad...
 
@Nile htmlspecialchars() actually.
You rarely need htmlentities().
 
0
Q: Submit not working

C_plus_plus_RookieI'm trying to display 2 rows from my database but I want it to be that when I click the 1st row radio buttons the 1st row updates. This is not happening, when I click the 1st row the second row updated. Check it here, http://albsocial.us/seria.php <?php include("connect.php"); $query =...

 
@Jack both are fine, though, right?
 
@Nile You could use both, but htmlspecialchars() is simpler, maybe faster too.
htmlspecialchars($str, ENT_QUOTES, 'UTF-8') is the typical code for that.
 
1:59 AM
hmm, okay.
 
any help guys ...
 
2:15 AM
@ircmaxell You've answered 4x more questions in than me, but with 13x the rep gain lol
^^ imo lookarounds are not the right tool for the job.
 
2:35 AM
@Jack why all are 20k :(
morning
 
3:02 AM
Today i got offer to be a director
 
user652649
3:17 AM
@Jack Y U NO BARNEY STINSON AVATAR YET? xD morning
2
 
hi All, I have problem with cakephp. When I echo $this->webroot it doesn't show me my address. Tell me why? my address is http://xample.localhost/post/
 
@YogeshSuthar thankyou ...i think now its complete stackoverflow.com/a/17100777/1723893
 
@NullPoiиteя welcome. :) switched to codepad.org lolzzzz
 
@YogeshSuthar atlest its working :P
 
am i wrong here ?
 
4:11 AM
I don't think so you are wrong here, but the accepted answer is having more info.
 
4:26 AM
@Wes lol
morning all, though it's noon here :)
@NullPoiиteя No, but it's a bit of an elaborate comment rather.
As in, yeah, you can't load stuff with ajax if you're not running it on a server.
Personally I wouldn't vote it down, but I wouldn't vote it up either ;-)
 
@Gordon could you convert this as comment stackoverflow.com/a/16556403/1723893 ?
@Jack thankyou ...
 
4:48 AM
why my comment get more upvote then my answer :P
 
Any MNCs Working on PHP??
 
morning
 
@JackLB Zend ?
 
its happening with everyone , because it doesn't increase reps :P @NullPoiиteя
@Mr.Alien morning
 
@Mr.Alien hia
 
@YogeshSuthar Got my message?
@NullPoiиteя ayo~
 
@YogeshSuthar what are we reviewing about it?
 
@crypticツ pew pew
 
hug(@crypticツ)
 
@Mr.Alien *dies*
 
4:54 AM
nooooooooooooo
 
x . x
 
@crypticツ Is it well explained or not.
 
@crypticツ prepare for reanimation :D
 
@Mr.Alien yes. but you are going to send me mail.
 
@Gordon could you convert it to comment stackoverflow.com/a/16556403/1723893 its mine answer
 
4:56 AM
@NullPoiиteя no. it would look broken as a comment since it will lose all formatting then
 
@YogeshSuthar I personally would mark it as too localized since it is a really simple mistake and will effect only like nobody who has knowledge of basic HTML
 
@Gordon np thanakyou
@crypticツ hiya
 
ha! the cat came back
 
hey hey hey =oD
 
she wasnt really goner
now why is @Mr.Alien not coming back?
 
4:58 AM
@crypticツ okk. :)
 
Does anyone have an idea of when the new close vote changes will hit SO?
 
@crypticツ soon
 
@Gordon I gotta update pretty much the entire cv-pls docs =o( Also looks like we are going to get new acronyms now lol
 
@crypticツ
 
UWYA, TB, POB will be the new ones. Too bad there is not BYOB
 
5:03 AM
@crypticツ what are the UWYA TB POB BYOB ?
 
@crypticツ hahaha
 
@NullPoiиteя i.stack.imgur.com/ITdMa.png acronymns for those new close vote reasons
 
@crypticツ oops
 
So what does typo questions fall under now? OT?
 
all question are too L :P
 
5:05 AM
woo woo set a bounty on another question just for the badge xD
1
Q: PHP - DI vs Interfaces - Multiple Inheritance

wfpkhcI have questions about the code below: namespace MyCode\Function; { class Logging { public function InsertLog($paraStr_LogDescription) { #comment: insert log here and return message; return 1; #note: this would be the id returned from database; ...

 
@DaveChen I'm not that generous yet =oP
 
haha, I'm going to set a bounty on my own question...but I can't because every time I post a question, a good answer shows up :(
 
@DaveChen woo woo removed a bounty on another question. just because the question is NC xD
 
what!
 
@DaveChen question is not constructive
 
5:09 AM
lololol
 
I kinda wanna know the answer though :(
well at least I got the bounty back, ty gordon
 
dont waste rep on bad question :P
 
not really a bad question, I've been creating classes like $user = new user($db_connection), and it looks clunky, it would be nice to know that either that is the best method, or there's others out there
 
@Gordon Yea am back :p @YogeshSuthar Was late yest, will be mailing you by eve
 
user652649
5:12 AM
morning :o
 
@Wes again :P
 
@DaveChen it's a really bad question actually. DI vs Interfaces is unrelated and the note at the bottom simply means the OP didnt understand DRY nor the rule he was given
 
oh I misunderstood his question then~
 
@DaveChen $user = new user($db_connection) is perfectly fine DI if you ignore that a user usually doesnt need a database connection
 
like $printer = new printer($paper)
 
5:16 AM
@DaveChen no, that's different. a printer needs paper, so injecting that as a dependency is okay.
 
without the usage of arrays, how would I send paper to 100+ printers of the format $printer_1 = new printer_1($paper) $printer_2 = new printer_2($paper)?
 
why cant you use an array?
but it any case, if you need to create objects, consider a factory or builder pattern
 
I mean like, initializing the class with

$printer_1 = new printer_1($paper);
$printer_2 = new printer_2($paper);
$printer_3 = new printer_3($paper);

Is technically the best way, but is there a way to get rid of `$paper` and have like a `PaperFactory` in `Printer`?
 
Factories are for complex object graphs.
so unless your paperFactory requires inserting Trees, Water, Chlorine and stuff and can produce unbleached and bleached paper of various sizes, I'd say you don't need a PaperFactory here. Maybe a PrinterFactory though.
But tbh, the entire example makes little sense to me. Sorry. Maybe if you can rephrase it with a more practical example?
 
suppose a lot of my classes have the dependency of a database connection, is my only option sending the database connection to each and every class?
 
5:22 AM
@DaveChen If you want to do DI, then yes. You pass the DB to the classes that need it.
 
makes sense, thanks for the advice!
 
the alternative would be to insert a Registry or Service Locator and pull the db from inside the class, but then you have a dependency on the Registry or Service Locator which hides that your class needs a Database connection which will likely cause confusion at some point.
 
that's so silly, but I love the example!
 
@DaveChen yet another alternative would be to use an IoC Cointainer. Containers allow you to define the wiring of your objects and then create instances ad hoc from it. Examples would be stackoverflow.com/questions/9348376/…
 
@Gordon How do I handle multiple tabs...they are messing up my session vars
 
5:35 AM
@Mr.Alien E_MISSING_CONTEXT
 
@Gordon am having a session['arr']['one']..two...so on..for advance search, so when user sets the parameters I throw him the results accordingly, but if he opens the form in another tab and if the params are set again, the previous tab messes up
 
@Mr.Alien i never see anything like session['arr']['one']['three']['four']....... :P
@Gordon have you ?
 
@NullPoiиteя Use lil common sense, its session[var][one], session[var][two], session[var][three], so now have you seen them or still no?
 
anyone knows how to create xml to xsd in c#.net
 
5:42 AM
@Mr.Alien :P
 
@NullPoiиteя ;)
 
haha
 
@YogeshSuthar what do you want to do?
you want to generate xsd from xml?
 
@Jack have you tried to parse html using xmlworker in java ?
 
5:51 AM
@NullPoiиteя Java? You're asking me about Java?!
 
@Jack Read the question above and lemme know if you've any thoughts on that
 
@Jack Yes ?
 
@Mr.Alien The question about sessions?
@NullPoiиteя Why would I know anything useful about Java? :)
 
@Jack yap
 
@Jack sorry :(
 
5:53 AM
Nah, it's okay, my Java answers won't help in 99% of the cases lol
 
@Jack yes xsd from xml in c#.net
 
@YogeshSuthar You realize that there's no 1:1 conversion right?
Because schema and data are different things.
@Mr.Alien Not sure, but surely both tabs use the same session?
 
@Jack I don't have knowledge of xsd. My friend want to do that, and he is asking me.
 
Java really sucks more then any other languages
 
@Jack Obviously, same forrm, same sessions, I think I should use random root index
 
5:56 AM
@YogeshSuthar xsd is what defines the "shape" of an xml.
 
@Jack means we can't create xsd from xml?
 
@Mr.Alien Yeah, but you can't really tell when someone opened a new tab :)
 
or can we?
 
@YogeshSuthar aRE you at a wrong place?
 
@YogeshSuthar Maybe there are some conversion tools, but it won't be very useful imho.
 
5:57 AM
@Jack Each submit creates a new random string, how about that?
 
@Mr.Alien xsd and xml are as much php as any other language ;-)
 
@Mr.Alien may be or may be not.
 
@Mr.Alien I don't have enough background to advice :)
 
@Mr.Alien change from session params to get params
@YogeshSuthar why do you need to do that programmatically? cant you let your IDE handle it?
 
@Jack thanks.
 
5:59 AM
@Gordon am not using that cuz limitation may exceed, they are heavy forms
 
@Gordon its client requirement.
 
@YogeshSuthar SO you are working on C# or PHP?
 
@Mr.Alien well, sessions are for persisting state so the tabs having the same state or interfering is just natural
 
@Mr.Alien i m on iOS.
 
I work on project<client requirement> in <client requirement> language :P
 
6:02 AM
hahaha
 
4
A: Printing numbers in between 5 and 10

Ignacio Vazquez-AbramsStart with 6 instead of 5. The initial state is always inclusive.

 
@Gordon than I think the I should randomize the session base index on each submit, like session['random_id']['param']
 
Everyone can give C answers apparently =/
 
@Mr.Alien no. you should use GET params :)
or break your forms apart
 
@Jack lololol
 
6:04 AM
or use bitsets to group params although that requires JS on the client then and is fiddly and wont work for free text input
 
@Gordon aaa have to re program things :( will do it, thanks for your help..
@Gordon Nah nah I'll stick to get, though am tempted to try randoms, but wil use get anyways...
@YogeshSuthar You are an iOS dev?
 
@Jack have you got stuck in switchwation like that ever ? :P
 
@Mr.Alien yes
 
@NullPoiиteя A switchwation? ;-)
 
@YogeshSuthar Thats cool
 
6:08 AM
@NullPoiиteя oh, situation ... ehm, maybe, at one point, but they didn't have SO back then ... and I didn't have an internet connection inside the womb!
 
The next Apple OS will be called Mac OS Lolcat
 
That brings me to an interesting theory ... would babies be somehow affected by Wifi "radiation"?
 
the only thing I love about apple os is graphics.,,
 
@Jack there is studies about wifi radiation
 
6:11 AM
I'm sure there would be.
 
grrr. I hate the nagging payroll overlay at HBR. It takes me <10 seconds to remove with my dev tools. registering takes longer. So guess what I do each time.
 
grr ... sorry my writing skill is worse ...and the ridiculous laptop i am using now
 
@Gordon Yikes, those results are scary =S
 
@Jack depends on which camp's results you are looking at ;)
 
6:15 AM
They're comparing Wifi with having a phone mast in your living room lol
 
and there is also studies about laptop which are more scary :)
 
@Mr.Alien Yes iOS developer, but working on Titanium Framework , not native developer. But I will be one day native iOS developer.
 
Oh, I don't have a laptop, I have a Macbook ;-)
 
but both uses same parts :P
 
You don't say :)
 
6:18 AM
@YogeshSuthar I'll be trying phonegap
 
@Mr.Alien But it creates website kind of app , not actual app.
 
I formatted my phone like 7 times in a week :p probably will be 8 today
@YogeshSuthar yes, I want to stick with a single stream.
 
oh ok
 
:)
 
6:32 AM
and if Ms Rebecca aint your cuppa tea, try open.spotify.com/track/19rJNWxuplUGwhoqIwn45R for some mellow electronica
 
Rebecca black
 
@YogeshSuthar posting Friday on Fridays is a time honored tradition in this chat
 
hahaha
 
@Gordon you get holidays on the weekends, and we don't, so here's what we watch
 
6:51 AM
good mornings!
 
mornin
 
morningz
 
@JoeWatkins morning (you know what you can merge now :-P)
 
@hakre Heh, I remember telling someone that they shouldn't do all those echo statements to build a document ... they got very upset about that, I'm not sure why :)
 
6:56 AM
@bwoebi done
 
I wanted to know what AES_ENCRYPT() uses in MySQL .. turns out it uses ECB block mode :)
 
Anyone might like to clean this question?
Any buddy (Anybody) - I love my country
 
@JoeWatkins and what about integer cast of the keys?
like normal arrays in PHP do?
 
I merged for now to fix the bug, I'll have a look into it further ....
 
okay
 
0
Q: php quickie: regex to extract partially an array stored in a file

iim.hlkIf i have an array properly structured stored in a file like this array.php <?php return array( 0=>"a", "x"=>$timestamp, "y"=>array("nested"=>array(1,2,3)), "z"=>function() use (&$VAR) { return $VAR; }, ); ?> what kind of regex i should do to get an array like this?? $array...

Err ehm ...
@Jack There is a Beauty World Beyond simples if/else statements, when developing apps (( i mean frameworks, libs like jQuery )) you should do crazy* things like this, otherwise you will not accomplish your goal. — iim.hlk 37 secs ago
 
@Jack wow! and +1 for the ´doing it wrong´ comment :)
 
7:09 AM
marked it as dup already*
 
@DaveChen Eh? Oh, you've flagged it ;-)
 
can't cv yet :D
 
yeah :)
 
even @ a high rep, it's not like you can just kill questions on the spot
 
@DaveChen If we start killing, site will be left with few open questions
 
7:14 AM
@kaᵠ You've cv'ed the wrong question :)
 
@Jack i cv-ed both
self-duplicator
 
You can't cv both questions as dupe of each other =p
 
yeah I read the question, so silly
 
I mean, you technically can, but you shouldn't.
 
lol why
one shouldn post the same question again.. but tehnically one can
:P
 
7:15 AM
Because dupes are not self reflective lol.
One will be older than the other.
 
you'll have two questions that redirect to themselves
 
exactly
 
@kaᵠ And you don't see anything wrong with that?
 
and loop eachother so people can comment, improve, delete,close, answer, edit where they should
bring traffic :P
 
hahahahahah
logic = 1/0
 
7:17 AM
what is this logic i hear about?
 
Either you're not getting it or you're kidding us.
 
is it new?
 
Right, never mind.
 
hehe
 
@Jack Dear JackTroll*, as is possible that a 'senior web developer' can't distinguish the linked 'possible duplicate' question IS NOT THE SAME. — iim.hlk 2 mins ago
hahaha
 
7:17 AM
wadda?
 
haahahha
wow someone is on a voting spree
 
hey everyone ...
 
hi @user2206616
 
i having slightly problem with codeigniter
 
@Jack wow either you ninja-changed your nickname to jacktroll or he got the word "troll" sent by mistake
 
7:20 AM
hey @DaveChen
 
@kaᵠ I'm sure it was a "mistake" :)
 
  public function calculate_time_lap() {
        $formate = "%h:%i";
        $checkin = $this->input->post('checkin');
        $checkout= $this->input->post('checkout');
       // $checkin = $this->add_time($times);
       //$checkout = $this->add_time1($times1);
        $datetime1 = date_create($checkin);
        $datetime2 = date_create($checkout);
        $interval = date_diff($datetime2, $datetime1);
        echo $interval->format($formate);
        // echo  $inter1;
        // $times = array($inter1, $inter2);
i have made this function in controller
 
code dump on codepad pls
 
hmmm
 
i'm sorry i am new here ...would you please help me know how can i do on codepad??
 
7:22 AM
so what's the issue with the code?
 
@Jack hahah lol
 
the code looks fine codepad.org/P3hr6ES9
 
@kaᵠ actually, all it needs is some formatting. it's not like its a wall of code
 
the post checkin , checkout is in an array...i need to find the difference of checkin[0] and checkout[0] randomly .
 
user895378
7:24 AM
@Jack apparently that's his "philosophy" ... He advocates similar stupidity in the Answer I just commented on here:
 
user895378
If you need to do this ... well ... you're doing it wrong and you need to refactor. Readability isn't something you "hack" into your code by abusing language constructs; it's a self-evident byproduct of well-written code. — rdlowrey 1 min ago
 
@user2206616 in your own words, what's the responsibility of a controller? what is it for? what is the purpose of a controller?
 
to con troll
 
its to calculate time of checkin and checkout ...
 
@rdlowrey You're right, wow! It's the crazy mantra.
 
7:26 AM
@user2206616 wrong. the purpose of a Controller is to handle input and delegate it to the Model. Calculating time of checkin and checkout happens in the Model. Not in the Controller. You want thin controllers and fat models.
 
its in a array of timr
i'm sorry but i'm trying it in controller ..using ajax
 
user895378
And two years later I just learned how to do backticks on the ipad keyboard!
 
does cv-votes review have like a timeout (ex. 17 hours)?
 
you want big fat transaction scripts and not taking care about MVC at all :)
 
What to do with that?
 
7:28 AM
@DaveChen yes, closevotes fade away after some time. not sure at what time exactly, but they do
 
no like, when I review 20 suggested edits I need to wait before I can review more, is it the same thing for CVs?
 
How did this answer get upvoted?
@DaveChen That's the daily limit.
CV's for you are tied to mod flags, which are limited also.
 
@NullPoiиteя does not equal knowledge. not at all.
 
@rdlowrey HOW? Tell me! And don't say copy-paste lol
Oh wait ... must be long press something.
 
too bad votes aren't publicly shown stackoverflow.com/users/22656/jon-skeet?tab=votes
 
7:32 AM
@Gordon agree there might be exception but i found most of high rep user have good knowledge
 
Oh gawd! It's long press on quote ... =/
 
or it's a user that finds the easy questions/duplicates and gets cheap +1s
 
4
A: What is the benefit of reputation on Stack Overflow

GordonThe benefit of reputation is increased privileges. Apart from that it has no concise representable meaning due to the way it is gained, except for maybe high reputation means you spend too much time on this site. It does not equal knowledge since you usually gain the most reputation by answerin...

 
+1 on that
high reputation can get you a t-shirt really? I wanna get a SO t-shirt
 
@DaveChen may be but 100k get you gift (@Gordon) from so
 
7:35 AM
I think mostly, high rep == too much time on SO :)
2
 
good mornings
 
good mornings (2:36AM)
 
while(good luck)
high rep == too much time on SO
 
hey, i am "battling" versus a *legendary* badge user who is selectively deleting my comments, what i can do? keep quiet? of course NOT. — iim.hlk 1 min ago
I can't get enough of this fella.
 
are you deletin' his comments?
 
7:38 AM
Of course not! I'm not a mod, but he apparently has high expectations of me now :)
 
mornig
 
morning
 
Goeiendag~ :)
 
@DaveChen either mod/op or user with legendary rep-whoring badge can delete comment :P
 
haha
 
7:40 AM
@PeeHaa埽 hola
 
You can leave that "goeie" out of it :(
:P
 
But it's Friday .. how can that not be a good day?
 
@Jack Have been working till 10 yesterday. Came home did some coding. Was 3 before I went to sleep. Came in the office -> again shit busy day :(
 
Yikes.
 
The only good thing today is that it's the birthday of one of my colleagues and I was asked to make a fool of myself tonight
 
7:43 AM
woo woo friday, just finished all my exams too -- 11th grade here xD
 
Good morning! :-)
 
good morning @Duikboot
 
no Rebacka black :(
 
oh gosh adblocked
 
7:45 AM
@NullPoiиteя I already linked her earlier on
 
@Duikboot: \o/
 
@hakre, i do it, but i can't find what i need, please research and tell me if you found something* — iim.hlk 6 mins ago
 
7:59 AM
Nice!
I like the "(click again to undo)" part of your comment @hakre
 

« first day (972 days earlier)      last day (3981 days later) »