« first day (642 days earlier)      last day (4305 days later) » 

jay
10:00 AM
thanks @jami
@jami yoy have knoweldge about my problem
 
@jam
 
sure ask me on stackoverflow and i will answer
maybe
 
jay
ok i ask stackoveflow then i give link ok and i will update your repo
 
3 mins ago, by NikiC
25 secs ago, by Greg
33 secs ago, by PeeHaa
10 secs ago, by webarto
49 secs ago, by Greg
1 min ago, by Greg
@jay If you have a specific question please ask it on http://stackoverflow.com, but it is very difficult to help you out if you don't actually present any information to us.
 
@jami,hi i'm new here,can you tell me how to reply someone's question here?..test
 
10:02 AM
STOP
dinnertime
 
you spin me right round baby right round
 
jay
@jami
 
Hi everyone
 
jay
hello @vishal
 
Can someone help me with problem.. based on smarty and MVC : stackoverflow.com/questions/11558180/…
 
10:03 AM
test..:4589020
 
@jami Are you Dutch?
 

Sandbox

Where you can play with regular chat features (except flagging...
 
jay
what do you want? @vishal
 
I have a problem with implementing some basic functions in smarty
 
10:05 AM
@PeeHaa no im german
 
jay
@Vishal
can u help me
my question is i have some problem in mail sending when i send mail but it's look properly in gmail but when i send to hotmail id then its not proper it is used html tag
 
@VishalKumarVerma smarty is not a mvc framework its a template engine
 
@jay I need to write a recursive function in a tpl file, so I m not sure how to do it
@jami sorry my mistake
 
@jami What is it with all those Germans in here. They are trying to take over the world (again)! ;)
 
@jay Your question needs to show what you've tried, what you expect, and what you get. Please read the FAQs and then post your question on stackoverflow.com - we will then be able to answer you.
 
10:07 AM
@jami just corrected my question
@jay can you post the link to your question
 
jay
@Greg @VishalKumarVerma ok
 
@vi
function outputCategories($categories)
{

foreach ($categories as $key => $category)
{
if (count($category['children']) > 0)
{
echo '<li><a title="'.$category['name'].'" href="'.$category['url'].'">'.$category['name'].'</a><ul>';
outputCategories($category['children'], $startingLevel+1);
echo "</li>";
}
else
{
echo '<li><a title="'.$category['name'].'" href="'.$category['url'].'">'.$category['name'].'</a></li>';
}
}
echo "</ul>";
return self;
}
function return self what is that mean?
a function can return use 'self'?
 
@RayCheng returning the value of the same class
I guess I'm correct
 
@RayCheng self is a reference to the current class.
Use $this to refer to the current object. Use self to refer to the current class. In other words, use $this->member for non-static members, use self::$member for static members.
 
jay
@Greg @VishalKumarVerma this is link stackoverflow.com/questions/11558579/…
 
10:13 AM
really?i thought self can noly used inner a class..
 
jay
@VishalKumarVerma please help me?
 
@jay you're funny。。。
 
jay
@RayCheng yes i am fresher
 
your questin still have no detail infomations.
 
10:16 AM
Hello everyone
 
@jay what are you doing?
 
jay
and in gmail Dear jay thakur

Your have received a reply to your message on Camperbug regarding a van called jay.
Please visit the Camperbug website to see the response.
You will need to Log in and will find the response in the Enquiries section
 
@jay sorry jay i'm having problem understanding the question or I'm not qualified much
 
Is it some kind of algorithm is generating wonderful stackoverflow avatars or it is just a set of predefined/generated images with different colors?
 
jay
10:17 AM
ok
 
@Kirzilla gravatar.com
 
@Kirzilla what deceze said
 
ty!
 
10:20 AM
@vascowhite thank you very much!
 
@vascowhite that was nice one... into my fav list..:)
 
Hi any Oauth api -php expert here?
 
Some one just gave a negative to my question, hope i receive a answer
 
jay
@VishalKumarVerma ye bahut kamne h sale mari -8 kar di
 
yaar mera bhi wahi haal hai...
 
@jay but sach bolu toh tumhar question clear nahi hai, problem samaj main nahi aa raha
 
jay
arey m kah raha hu visal ki maine mail send kiya tume thik k yadi tumahri gmail id h to tumhe mail proper dikhega with style sheet but
tumahri hotmail ki id h to html tag bhi sath m ja raha h
 
@VishalKumarVerma おい、ちゃんとした言語使え!漢字が無いとツマナイ!
 
jay
jaise ki
<span style="font-size: 10pt; font-family: 'Arial Unicode MS';"><br />
ab aya samjh m vishal
 
@deceze hmmmm ?????
 
10:28 AM
@VishalKumarVerma Exactly! >:-3
 
in Lounge<C++>, 3 mins ago, by danuker
Q: Why does Facebook suck?
A: Because it's written in PHP.
 
@deceze 申し訳ありませんそのために :)
 
I don't get it. If they hate it that much why can't they stop talking about it?
 
What does everyone think about Jeff Atwood's latest rant on PHP?
 
please any one help me to create a oauth api???
 
10:30 AM
@jay Brother better to speak in English, so that other can understand. Just got a warning from a moderator I guess..
 
jay
ok
thanks
 
Hey Vishal do u know auth in php
?
 
THOmas what do you need exactly?
 
<-- got mistaken for moderator. ROFL. v(^_^)
 
i want to create a oauth server and a client?
 
10:32 AM
@jay So your problem is that the Email format along with html tags and stylesheet is working properly for gmail, however it is not working the same for Hotmail. Am I correct?
 
@deceze I'll vote for you :D
 
@THOmas So thomas no idea on that
@THOmas i meant sorry
@deceze Hmmmm, :D
 
ok no prbmd
 
@webarto Dude, every moderator nomination time I'm thinking about it, but I really don't want to spend even more time on SO... :-|
 
@Krizilla i have downloaded this code.But it is not working.Giving some error?
 
@THOmas, I have to go deeper, never faced such problem
 
10:36 AM
can u help me to do that?
@Krizilla
 
I'm starting to hate word help ...
 
@THOmas, Sorry, I have no free time, but I'm ready to make it for some money
 
how much u need?
@Krizilla
 
@THOmas, depends on what you exactly need
and how soon
@THOmas, can you please contact me via skype: kirzilla
 
hi
can any one help me
i have a small issue
i am trying to echo some content
 
10:41 AM
@Krizilla wher u from?
 
but it gives me error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\proj\main.php on line 63
 
@THOmas Russia
 
@phphunger We have closed your question for a reason
 
i tried this code
 
@phphunger You still have a syntax error on line 63 that we cannot guess because the crystal ball is in the shop right now.
Show us line 63!
 
10:43 AM
means
@deceze what could be the reason
for closing
if you dont mind
let me know
 
@Krizilla have u worked in oauth?
 
@phphunger You serious have to ask that?
 
@phphunger How do you expect a syntax question to be answered without showing any code?
 
@THOmas I was dealing with Twitter OAuth and I undestand how OAuth server/client works.
 
@Kirzilla have one small doubt?
@Kirzilla in the client side we have specifying one url (fill with the url for the oauth service) which url i need to given their?
 
10:49 AM
this is like a monthy python show
 
@phphunger Do you understand what "invalid syntax" means?
 
@deceze do u know creating oauth api?
 
@THO Please don't ask everyone individually, if somebody wants to answer you they will.
 
@THO
@THOmas, sorry, but I can't understand your latter sentence.
 
@Kirzilla at the client side page we are specifying the consumer api key and secret key along that one url variable is also their what should i specify their?
 
10:53 AM
@THOmas, please check images from this article to see OAuth flow step by step formatix.eu/en/php-linkedin-api-zend-oauth.html
 
@Kirzilla no idea man?
 
@THOmas, beside api key and secret you should provide secret key generating method, I suppose
@THOmas, sorry I could be wrong, but I can't undestand your english clearly :(
@THOmas, please check code.google.com/p/oauth-php/wiki/ConsumerHowTo to see how this implemented in code step by step. It is really easy.
 
@Kirzilla i downloaded the full code and it is not working fine, because we need to specify one url in twolegged.php file?
@Kirzilla $url = "?????????"; // this is the URL of the request ???
@Kirzilla who is producing the Request Token?
@Kirzilla the client or server?
 
@THOmas, server
@THOmas, client is asking server for token (token = something like creating session)
 
11:08 AM
@Kirzilla do u know which url we need to specify in the $url parameter?
 
@THOmas, never used oauth-php lib , but please hold on
 
@Kirzilla thanks
 
@THOmas, talking about 2Legged OAuth we just have just pass url of api. 2Legged is just a simplified version of Oauth, I suppose.
@THOmas, hold on I will check the code
Damn, what am I doing here...
@THOmas, check 2 legged for twitter example: code.google.com/p/oauth-php/source/browse/trunk/example/client/…
 
@Kirzilla in twitter we are creating only client/
 
@THOmas, TWITTER_REQUEST_TOKEN_URL is request_token.php (see sever) etc.
@THOmas, twitter urls have even similar names like oauth-php server's controller files
 
11:19 AM
@Kirzilla can u tell me the exact functionality of oauth protoco?
 
hello how can i loop through all mondays from now on?
 
@THOmas, sorry it will take too much time. Find time to take a look at this image: formatix.eu/wp-content/uploads/2009/12/… It describes oauth flow pretty good. Also I highly recommend you to take a look at oauth-php samples (both server and client). They're pretty simple. Good Luck.
@sanders, first of all you should get all mondays from now on :)
 
Thank you @Kirzilla
 
@Kirzilla how on 5.2? strtotime?
 
@sanders, first use strtotime("next Monday") and then add week time and iterate until happiness :)
@sanders, I suppose strtotime is the best idea
@sanders, You can also hardcode monday mktime({known_moday_date}) + week + week ...
 
11:32 AM
Morning
 
morning irc
 
@kirzilla now i have a timestamp of the next monday. How can I get thext monday from that? Can i do? timestamp + 1 week?
 
morning!
 
morning @irc
 
@sanders, sure, or you can just use mktime('next Monday', $time);
morning @irc
 
11:34 AM
wtf happened on internals last night?
 
@ircmaxell wut? I miss something?
 
@ircmaxell Something happened?
 
morning
 
@NikiC The blow ups on that try/catch thread, and the two different spawned 6 threads (including the POOP one)
 
> Or you could simply remember that it is always haystack,needle for
strings and needle,haystack for arrays. Not that complicated.
 
11:43 AM
and not true
 
Sometimes he should just not get into discussions
 
Here I am trying to educate people to use curly braces news.php.net/php.internals/61463 :(
 
@vascowhite, you should use some kind of trigger to set before background process starts and unset when background process ends.
 
what?
 
11:51 AM
@ircmaxell which one is the POOP?
 
@ircmaxell Oh yeah
didn't read that one
 
:-D
 
((decl (main (echo (add (reverse (array (1 2 3))) (string ('h 'e 'l 'l 'o '\ 'w 'o 'r 'l 'd '\n)))) (phpinfo))))
Sounds good
 
11:55 AM
They have a nice image of @sehe in teh C++ room:
 
@NikiC you were saying?
 
lol
 
@NikiC @ircmaxell what about adding support for this in PHP6:
<?php
function foo()
{
	return array('something');
}

echo empty(foo());
 
@PeeHaa it's in 5.5
 
Ah great. I thought it was deferred :)
 
12:11 PM
@PeeHaa Uh, empty, my pet peeve. Why use empty there instead of !foo()?
 
@ircmaxell and:
$arr = array(
	'first' => null,
	'second' => null,
	'third' => 'value',
);

var_dump(array_filter($arr, 'isset'));
Also in 5.5?
 
no
that won't be, isset is a language construct, not a function
 
@ircmaxell Isn't empty a language construct as well?
 
yes
 
I know it's a language construct, but it would be nice to be able to use it as a callable in array_filter() etc instead of having to write a proxy function
 
12:14 PM
in that case, use is_null...
 
@NikiC :)
 
array_filter($arr, function($el) { return !is_null($el); })
 
I sometimes like empty() better @deceze
 
@kirzilla have written a function to get next monday but it doesn't work after the first iteration in the loop.
for($i = 0; $i <= 52; $i++ ){
if($i === 0){
$aDay = $aFirstDay;
}else{
$aDay = mktime(strtotime('next '. $dayname[$aData['dag_nr']]), $aDay);
}
echo(date('Y-m-d H:i:s',$aDay) . '<br>');
$aInsertData = array(
'medewerker_id' => $iMedewerkerId,
'start' => date('Y-m-d H:i:s',$aDay),
'eind' => date('Y-m-d H:i:s',$aDay),
);
$oDb->insert('medewerker_beschikbaarheid',$aInsertData);

}
 
Why do you have Dutch texts in your code?
 
12:24 PM
function fhash($algo, $password, $salt, $iterations, $memory) {
        if ($memory < 2) throw new Exception('memory too low');
        $memsize = pow(2, $memory);
        $array = new SplFixedArray($memsize);
        $state = $password . $salt;
        for ($i = 0; $i < $memsize; $i++) {
                $state = hash_hmac($algo, $state, $salt . pack("N", $i), true);
                $array[$i] = $state;
        }
        for ($i = 0; $i < $iterations; $i++) {
                $array[$i % $memsize] = hash_hmac($algo, $array[$i % $memsize], $array[($i + 1) % $memsize] . $salt . pack("N", $i), 
 
MVC they say...
 
Hey guys
 
@Truth jo
 
12:37 PM
Question regarding the factory pattern
Should the factory be static or an instance?
And what's the reasoning?
 
does google crawl non-linked directories on a server (folders which havent been mentioned ever in any <a href> or anywhere else on the site) ?
 
@Yohann How would the crawler know about them?
 
@MikeB the reason im asking is that the folders i have are like /Auth/Login/ but im routing them to /login
 
@Truth instance
to avoid tight coupling
 
@tereško Is it possible that I would ever need 2 factory instances?
 
12:43 PM
can you show an example of instance factory pattern?
 
@webarto @tereško and that too :p
 
@Truth , depends on your implementation .. i can imagine example where you use tow factories , which create the same types of objects, but each inject different things into them ( like two different database connection instances ) .. though this is not why you should used factories as objects
the main advantage comes from polymorphism
 
@tereško static classes can also enjoy polymorphism, to an extent..
 
lolwut
static classes enjoy as much polymorphism as plain functions
 
@tereško Why? Can't a class with static functions extend another?
Can't it override already defined static functions?
 
12:48 PM
lol .. and ?
go on ..
 
Isn't that polymorphism?
 
no
but please continue
 
@tereško What do you call polymorphism than?
 
polymorphism is based on multiple objects implementing same interface (either explicitly defined or not)
 
@Truth I never use static classes mainly because they are a pain to test, but I'm sure there are more technical reasons.
 
12:51 PM
@tereško okay..
 
@Truth I read this recently, it might help. misko.hevery.com/2008/12/15/…
 
Well fellas, my battery is almost dead
 
@webarto , something like this : stackoverflow.com/a/11369679/727208
 
@tereško We'll continue the conversation later :)
 
sure .. why not
 
12:53 PM
This is not polymorph because the class name is part of the signature
so static function or class method can't be polymorph
 

« first day (642 days earlier)      last day (4305 days later) »