« first day (674 days earlier)      last day (4274 days later) » 

10:03 AM
@PeeHaa Sorry to be asking you this. But are you a gal? or a guy?
I happened to see this one day.. and hence I wondered.... I always assumed you were a guy.. cos of the name (yes.. I'm simple minded)
 
he is a gal
 
i always wonder , why would it matter in chat ...
 
Greetings
 
10:20 AM
@webarto 'he' is a gal??? :P
@tereško doesn't matter.. just wanted to clarify that since I saw the above image..
 
PH are initials of Pieter Hordijk, you are out of luck today...
 
@webarto ?
 
@PeeHaa he is seeing Petra in chat, and thus the confusion... (he doesn't know about gender Friday)
@PeeHaa sorry if I insulted you in any shape or form
 
@webarto hehe no way. Just wondered who you were talking about. Just noticed there is a tiny avatar ni chat :)
 
@tereško omfg
 
10:30 AM
What could be reasons for error: could not connect to host? Connection data are correct, because it creates tables needed for that payment system. MySQL connection closing is also added, so no extra long connections there. What else? Code is simple, but I can't find any errors, although server throws this error.
 
@PeeHaa apparently I don't know what the hell @webarto just told.. gender Friday? And I just wanted to clarify... doesn't matter.. I ain't gonna ask you out.. :P
 
@DanielsPitkevičs can connect to the server from shell ?
 
@tereško I can't try, because mysql host is localhost although on public server.
 
you are having trouble connecting to localhost or what?
 
10:45 AM
@webarto No connection is to other remote server.
 
Mic
11:16 AM
goodevening :)
 
@webarto bye bye :)
 
Am I the only one who hates it when his pisture pops up on somebody's facebook page?
Considering the fact I really really hate facebook and want nothing to do with it?
 
Mic
@PeeHaa, you gate facebook?
*hate
 
@Mic ofc I do. Every person with common sense hates it
 
Mic
11:24 AM
@PeeHaa, sorry to hear that, but me, I love fb, but very rare to open my account.
 
People who love FB are idiots (sorry about that, but true story). It's one of the worst company ever
 
The only reason I use face book is cos I can know everything abt my clg mates thru it... they basically live to update their status on it..
I had stopped using fb for a month and I had no idea where or what the hell my mates were doing...

I hate mobiles and phones too...
ya.. fb is addictive and stupid... but it has its uses.
 
@PeeHaa Facebook is the worst thing to happen to individual privacy since gov't :P
Except it's really worse
 
@ShyamK it's not addictive
 
@Lusitanian It is. I always prevented having anything about me on it, but I guess you cannot prevent other people uploading your personal data. I mean: c'mon wtf!?
 
11:35 AM
they suck (:
Seriously they have a dialect of SQL specifically for getting peoples' personal data
0
Q: Declare one class variable via another

kontursorry for the vague title... I have a problem with a php4 class that seems hard to put to words. My class has a "possibleValues" array, that holds information on what kind of values are acceptable for certain attributes that can be changed from the outside. In my pseudocode example below you ca...

 
@tereško Everyone has different addiction thresholds. For me, I rarely use Facebook too, only when needed.
@Lusitanian
 
exactly
 
@Whisperity When does one need facebook?
Never that is
 
yeah that doesn't make any sense :D
look at the first answer to that question i referenced...
 
@Lusitanian You beat me to it :D
 
11:42 AM
var $this->colors wtf
 
@tereško not for you maybe.. but I have friends who practically live just to update their status..
every other minute its one crazy status or another
they seem to use it somewhat like twitter...
'Woke up late today' ..... 'Gonna take a nice hot bath' .... 'Breakfast got burnt today :('

Statuses like this throughout the day...
and you say its not addictive?
 
@ShyamK And Twitter is like Reddit for me... the balloon...
 
12:04 PM
to each his own.. lets leave it at that :)
 
github.com/webarto/facebooker/blob/master/jquery.facebooker.js a simple script which gives info of are you currently logged in in facebook, no JS SDK, no app_id, etc...
damn @Shyam, you are no better than "them" when you write like this "I use face book is cos I can know everything abt my clg mates thru it" :)
 
@webarto I never said I was any better :)
 
mkay :)
 
I get addicted to fb.. so I try to reduce my usage..
 
12:22 PM
is there a way to set timezone in php console?
 
php -i | grep timezone ?
 
nvm. i used the wrong name for timezone
 
I don't know why people think they need big framework for big apps...
 
12:42 PM
heh all cloud app hostings have php < 5.3.3
 
that is so passé
 
damn .. i can never remember what was the result of [ 1 => 1, 2 => 2 ] + [ 2 => 4]
 
but ruby is always the latest version
 
1, 4
 
@webarto Do you like design? I was thinking of converting a PSD template into html/css/javascript for themeforrest but would like to know if you think it's quality enough.
 
12:48 PM
you sure ?
 
array_merge and + discussion we had
array (size=2)
  1 => int 1
  2 => int 2
 
@webarto , nope : 1,2 - viperpad.com/aReeOp
 
I suck
 
as i said .. i just know that it was counterintuitive
 
12:50 PM
> The + operator returns the right-hand array appended to the left-hand array; for keys that exist in both arrays, the elements from the left-hand array will be used, and the matching elements from the right-hand array will be ignored.
 
array (size=3)
  0 => int 1
  1 => int 2
  2 => int 4
array_merge()
 
That is useful. Very unreadable, but useful
 
@webarto Only with numeric keys
 
@webarto , i cannot recall when (or even if) i actually used that function
 
my life was a lie
 
12:56 PM
how to match comment only between script tag using regex. Not outside of that
`<script>
// this is comment
// This is another comment
function () { ......
</script>
// this is outside comment not to match`
 
what have you tried?
 
@Nile I like to design for myself, but not for others... go for it... you have nothing to lose.
 
many combinations but not working. like (?<=<script>) --- IM CONFUSED HERE ---(?=</script>)
 
Homepage – http://localhostr.com/file/7cpEjG9yPZ7t/bebold.png
Contactpage – http://localhostr.com/file/utftmQht6WSs/bebold-contact.png
Any page – http://localhostr.com/file/PC2O3InnAtRc/bebold-company.png
Responsive mobile page – http://localhostr.com/file/930/QSmMz9pvUvUy/mobile-bebold.png
 
topics like this makes me want to change profession ..
0
Q: Access model from another controller

user1611626We have a small mvc we have built, we want to access models from different controllers. i.e class Controller { function A() { } } class Search extends Controller { function B() { $this->model->doSomething(); } } class Profile extends Controller { function...

 
1:01 PM
@BasicBridge I'd go with two steps : extracting scripts, and then extracting comments from them
 
@webarto can you take a look at those links to the images?
 
I can't go that way. Only can use preg_replace. That's the main problem
so looking for regex.
 
@BasicBridge do you need this in a single regex, or could you use multiple?
 
@creativedutchmen major preference is towards single regex.
 
@tereško really, really sad
@Nile needs a lot of polishing to get accepted, that mobile version or whatever is a plus...
 
1:14 PM
@webarto where would you suggest polishing? i've tried to submit it to the PSDs but it got rejected, so I figure submitting it to html with more features, documentation and alignment would be better.
 
in JavaScript, 7 mins ago, by rlemon
GIF KILLER Bookmarklet to replace annoying gifs on the page.
 
or press ESC to stop gifing
 
@BasicBridge my attempts have failed. And I don't have time enough to really dig deep. Sorry!
 
@creativedutchmen it's ok thanks for trying.
 
np. Good luck!
 
1:22 PM
Is it possible to store image in mysql blob field via image address or some similar way, without using form?
 
Why do so many people want to know how to store images in a database? Whose giving you this idea?
 
@MikeB converting them to base64 is best option for that
 
@MikeB Doesn't matter. Just - is it possible to put image by address inside mysql.
 
L ... O ... L
 
I see people ask about it on a very consistent basis, and no one eever wants to tell me what gave them that idea :(
 
1:25 PM
;(
 
they read sql antipatterns book probably
@MikeB that might be a good idea if he's creating an intranet app
 
why?
 
@DanielsPitkevičs Of course it is. What do forms have to do about it? Ultimately all you need is a variable with the image's path. It can come from a form, url, environment variable, cookie.. anything
However, if you expect the file to be uploaded from the user, it needs to respect w3.org/TR/html401/interact/forms.html#h-17.13.4.2
 
@webarto speed doesn't matter and storage is cheap, no need to maintain integrity manually..
 
1:42 PM
still can't find any good sane use case...
 
there's none
why would you ever want to store files in a database
data base, file system. how many times must i say that
 
Bah, I chased him off
 
lol
            $misMatched = false;

            foreach($actualReturns as $k => $return)
            {
                if( round($return, 2) !== round($inputReturns[$k], 2) ) {
                    $misMatched = true;
                    break;
                }
            }
            if( $misMatched ) {
                $showreturns = true;
            }
 
Good morning
 
morning @ircmaxell
 
1:50 PM
@rdlowrey Thanks for the pull request. I added you as a collaborator so it's easier to do next time :)
 
Mic
hi guys, goodevening :D
 
anyone who hasn't played around with dojo is missing out
 
CAM
Anyone familiar with Mongo?
 
yes
fanboy of it
 
CAM
im lookin to query an array and match 2 criteria of the document
here is my error
error: { "$err" : "Unsupported projection option: $in", "code" : 13097 }
the first Query is fine
 
1:56 PM
@ircmaxell is that some jQuery plugin?
 
@CAM needs moar braces ;)
 
@ircmaxell Does look interesting.
 
CAM
@Lusitanian can you plz specify db.users.find({'_id':1},{ 'companies-visited': {$in:["stocktwits"] }})
 
one sec
db.users.find( { {'_id':1, { 'companies-visited': { $in:["stocktwits"] } } });
should be your query
 
because otherwise you're not querying the same object, see
that's the wrong way of phrasing it :P
 
so if you want a new job, check in headers...
 
@webarto no
 
CAM
@Lusitanian cl.ly/image/0r293a3H0q3h ['fail']
 
o.o
 
CAM
2:07 PM
running 2.*
 
@ircmaxell I meant Dojo in what context, Dojo JS?
 
@webarto i hurd it like jquery butwithoutmoarjquery
 
vanilla jquery
 
@ircmaxell morning
 
@webarto i love that un iversal greeting time
 
CAM
2:13 PM
@Lusitanian I'm stumped, you?
 
@CAM I'll look again later somewhat busy atm
 
CAM
np
thx
 
@webarto yes
 
@Lusitanian "Now, instead of spending time figuring out what time of day is it for every member of the channel, we spend time explaining newcomers benefits of UGT." ^_^
 
btw @ircmaxell, did you get that mail from philip?
 
2:16 PM
@ircmaxell , some of us prefer native JS instead of every 3 month learning the "new revolutionary JS library"
 
Mic
Goodnight guys :)
 
also , if it's the same DojoJS that i think of , last time i used it was 0.6 version and it was awful
then again , i might be confusing it with some other lib
 
Hi all
in JavaScript, 4 mins ago, by Neal
http://stackoverflow.com/q/12039262/561731
 
nuff said
 
@webarto eh?
 
2:25 PM
jQuery is animation library these days... unrelated to your message...
 
@NikiC which one was that?
@tereško have you worked with an AMD based library before?
 
@ircmaxell on internals docs
 
not knowingly
 
@NikiC ?
@NikiC yes
@NikiC: I get a shit-ton of email. It's easy for something to slip by, or me to not notice it...
 
@ircmaxell I fwded it
 
2:31 PM
Ah, no I missed that
(I got it, but skimmed over it and didn't think anything of it)
 
yeah me too, but i remembered it just now ;)
 
@tereško Then don't bash it until you tried it. You may prefer native JS, but AMD provides a lot of really nice things. And it's not a fad, but a useful tool...
 
i go by rule : it's a crap until proven otherwise
since you are a developer too , you might see where i am coming from
 
2:47 PM
that doesn't mean don't try it
 
ok ... review time: pastie.org/4556706 .. does anyone see glaring problems in this code
@ircmaxell , i will .. when i have time to spare
 
ah @tereško, you're developing your framework?
 
Auth extends view for one
 
it's more like side effect
@PeeHaa , this is what it extends : pastie.org/4556719
why would it be a problem ?
 
@PeeHaa It's namespaced code. Think of it is as AuthenticationView ;) Also confused me at first ^^
 
2:53 PM
That may be, but it still sounds strange :), but you're right
 
i personally don't like the respond() method
but i don't know what else to do with it
 
@tereško The code feels non-obvious.
 
which parts
and don't say "all of it" , thats not helpfu;
 
@tereško That would be my response :D Because I have a hard time getting it
E.g. what does that compose method do (or why is it named that way?)
And generally, what does Recognition do?
 
recognition service - authentication
 
2:59 PM
okay, never heard that term used for it
 
(4:48:41 PM) github: !build helix_core now branch=origin/bugfix/invoice_not_closed
(4:48:41 PM) jenkins: github: job helix_core build scheduled now
what is this "process" called
 
@tereško kinda related: Did you name it "Transfare" on purpose?
 
no , it's a typo which have not got around to fix
 
kk
 
header( 'Location: ' . $_SERVER[ 'REQUEST_URI' ] );
could this be wrapped up in some method or something... and sendHeader is actually sendLocationHeader or how they say, redirect...
 
3:01 PM
@tereško Does $this->serviceFactory->create( 'Recognition' ); always return the same object?
 
yes , the services are cached in factory
 
i see
 
@NikiC the compose() method essentially request status from one or more services , and based on the response , fills out the templates
it's a bad names ... suggestion are welcome
 
I was confused because onerror creates Recognition again instead of accepting it as a param. but if it's shared it doesn't really matter
 
my general impression is that the class is clumsy =/
 
3:06 PM
yes :P
oh, btw, onErrors is a bit buggy ;)
$messages can be undefined
at least in theory ;)
though practically it probably can't happen, right?
 
your right .. its a mistake
i think the whole IF there is just unnecessary
 
yeah
 
the whole compose() seems like bad try at make an observer .. hmm .. that was not the intention
ok .. now that everyone who cared has taken a look at that code ... any suggestions ?!
 
@NikiC I disagree. Since I started following the list, anyway.
 
morning @Levi :)
 
3:16 PM
'morning :)
 
@PeeHaa morning
we've been lazy with oauth ):
 
@ircmaxell how far is the pdo prepared statements thing?
 
@Lusitanian I know... :( drinking is a good habit although it doesn't help when you need to do stuff.
 
hi
 
........
i have to write technical documentation ):
 
3:27 PM
which is better wordpress or static
 
wordpress is awful
 
@xtremer Needs context
 
why?
we have a software website
i want redesign
 
@NikiC not. ran into some major test issues and put it on hold
 
should we go for wordpress
 
3:35 PM
What field of work are you in @xtremer?
 
@tereško I cannot suggest because I'm not competent enough.
 
@tereško What are the messages in generateMessages()?
Error message of form?
 
3:53 PM
error messages from User domain object
but yes , you could say that they are from form
as for that method , i am not sure if it should be a part of View
 
@tereško I think it is (at least it looks) out of place there
 
I hijacked this thread
 
thing is that $name = $field . '_' . $type; in that method is based on variable names in templates
 
interface A {
        function gen();
}

class AImplementation implements A {
        function gen() {
                for($i = 0; $i < 10; ++$i)
                        yield $i;
        }
}

class ADecorator implements A {
        private $a;

        function __construct(A $a) {
                $this->a = $a;
        }

        function gen() {
                return $this->a->gen();
        }
}

$a = new ADecorator(new AImplementation());
foreach($a->gen() as $v)
    echo $v, "\n";
@NikiC So . . . interfaces and generators.
 
4:05 PM
@LeviMorrison that example actually makes a lot of sense ;)
in my eyes
 
Would that compile?
I would think return $this->a->gen() would have to be a yield* or something?
That's the latest example on the mailing list, btw.
 
Hello, I am wondering why this stackoverflow.com/questions/12040990/… is getting downvoted? I thought this was SO type question
What is going on here?
 
@LeviMorrison nope
 
@Phil You haven't done your research. There are questions very similar to yours.
 
@LeviMorrison You could also do a yield* there (if it were implemented). But in that situation the return works just fine
 
4:13 PM
Yes I have. The one guy commenting linked me to three USELESS articles from 2007
stackoverflow can be so stupid sometimes
I guess you have to ask the question when the right users are on
 
mysql_real_escape_string() is safe... but the way you write queries might be unsafe... (something will probably pass through)
also, look at the source code of CI... you'll find your answer...
 
@Phil oh, sorry, I didn't realize you were special
 
my point exactly @SomeKittens you are the user that I want to avoid when I ask questions
 
also, Enthusiastic lover of Jesus ... is Jesus some new framework? Why are you saying that on technology based website?
 
@LeviMorrison This is the second time in two days I try to explain someone on the #php.pecl channel that one should not commit failing tests...
 
@PeeHaa Too late
 
@NikiC Have you already voted to reopen this: stackoverflow.com/questions/12026842/…?
 
@NikiC . . . seriously? Someone who should know better is committing code with failing tests?
 
@PeeHaa Yes
@LeviMorrison just failing tests
It seems that some people don't seem to agree that tests should pass at all times unless there are regressions
 
4:30 PM
PHP :)
 
@NikiC Funny, it seems that school administrators feel the same way...
 
tnx @LeviMorrison for the rov
 
I was unsure on whether or not I felt it was different enough from the other one, but since it already had 4 other reopen votes I did it.
Besides, if it is decided that it should be closed again, I have faith in the !
 
@LeviMorrison I want to to be the canonical answer. So I can just cv dupes without verifying the contents of the linked question :) I"m lazy ;)
 
@NikiC which is fubar
 
4:39 PM
 
@MikeB ?
 
I thought we had this conversation last week
 
@MikeB It is a dupe. Now I've hijacked it to make it into a canonical :)
 
There are already some good answer out there about this, but I couldn't find the one with all the info in it. So I hijacked it
 
4:41 PM
Hi guys, I have 2 arrays
$name = array('name1','name2','name3');
$email = array('email1','email2','email3');

I would like to call a for loop and want to select elements with same index.
So for example $name[1] and $email[1] must be called together in 1 forloop and so on.. How is it possible? Thanks in advance! :)
 
@MikeB Is what? Hijacking a thread? Or that answer?
 
Well, your question seems like a dupe of stackoverflow.com/questions/3613589/php-email-validation to me. However, your answer is definitely more helpful and complete than Artefacto's answer
Shouldn't you add your answer to that question and have everyone upvote it?
Maybe I'm nitpicking..
 
@ircmaxell it is.
 
Could have done that, but in that case I needed 35 upvotes. I took the easy way out. ;) @MikeB
 
4:47 PM
in JavaScript, 9 secs ago, by Neal
http://stackoverflow.com/q/12041680/561731
 
@KuldeepDaftary What have you tried?
 
@KuldeepDaftary what have you tried?
 
have you tried this , @KuldeepDaftary : php.net/manual/en/control-structures.for.php
 
hey everyone
 
4:50 PM
@AndyPerlitch ola!
 
0
A: Send variables to view in MVC

user1477388In my MVC (or my interpretation of MVC) PHP app, I get variables into my view like this: class controller { function myFunction() { $var1 = 1; $var2 = 'string'; $vars = array('var1' => $var1, 'var2' => $var2); return $this->View('myView.php', $vars); } function V...

oh , the internet
 
Looks like my answer still isn't complete on the emailvalidation:
> * Only resolvable, fully-qualified domain names (FQDNs) are permitted
508 * when domain names are used in SMTP. In other words, names that can
509 * be resolved to MX RRs or address (i.e., A or AAAA) RRs (as discussed
510 * in Section 5) are permitted, as are CNAME RRs whose targets can be
511 * resolved, in turn, to MX or address RRs. Local nicknames or
512 * unqualified names MUST NOT be used.
A records are also valid
 
I'm not very strong with arrays so I'm really confused. Though I have tried
$toemailfriend = array('test1@gmail.com' => 'test1','test2@gmail.com' => 'test2','test3@gmail.com' => 'test3');

foreach ($toemailfriend as $to) {
//Things to be executed for each user
}

but It dosent seem to work.

So m trying to apply this new method and hence asking it here..
in the above example can how can I print just email id and not the name?
 
@PeeHaa dig the spanish... fyi though: hola = hello, ola = wave (noun). I know, its ridiculous because they are pronounced the same.
 
@KuldeepDaftary , i directed you to man page about for not foreach
 
5:02 PM
@Neal ping
@Neal Shut up and take my money: firebug in jsfiddle -> how?
 
@PeeHaa lol wadya mean?
 
lol nvm
never seen that checkbox :P
 
@PeeHaa haha its only when you pick jQuery(edge) :-P
No idea why...
 
Very useful nonetheless
 
True True.
Hidden, but useful
 
why is this code not working every thing looks fine.
here is regex match http://regexr.com?31ssv
and here is code text http://codepad.org/Ud0ZAVuN
preg_replace not replacing
 
@BasicBridge Use the DOM, not regex.
 
@LeviMorrison i don't have parser the page. Just have replace <script src=""></script> with this regex
 
lolwut
 
looool
he probably needs it for an XSS filter :D
that makes it even funnier
 
5:16 PM
@NikiC htmlpurifier is best for that.
@NikiC this is something different. It's replacement via input areas and not using purifier in this case
 
i think i need to add this user to ignore list
now .. this is much better
 
@tereško He hasn't said anything.
lol
 
5:32 PM
:D
though the "htmlpurifier is best for that." of it makes sense ;)
Why do people come up with that idea again and again? Isn't it obvious that benchmarking frameworks by outputting "Hello World" is rather ... stupid?
 
5:52 PM
because there are tards who will consume this "content"
 
Man, that Andrew guy just doesn't get it...
 

« first day (674 days earlier)      last day (4274 days later) »