« first day (271 days earlier)      last day (4902 days later) » 

01:31
Hoy hoy
 
1 hour later…
02:31
hey
03:00
sup?
03:30
@Gordon SO has bad rep in some circles?
 
2 hours later…
05:07
is there any benefit of including table name in front of the column name in SQL?
05:57
lol
@Phelios do you know what sql JOIN is ?
yes, i see a benefit.. if the same column name is present in another table, it makes easy to differentiate them, by adding the table prefix before the column name. Also it can be a boon in join queries. But if the table name is too large, it could be a pain to write the column names in queries
CMON BRO HOW DO YOU NOT KNOW THAT
jk
well, I know that one
i keeeed
I just don't understand why some people put prefix everywhere
even no join or same column name
@dskanth , well , if you make tables with names prefix_account_member_transactions_2011_07_13 , then you require some beating
why is that gem
because it's long and messy
:/
you know what angers me about php, the use of "$" before every variable
@lazeR that's actually good thing - because you should keep your variables at minimum :-P
06:06
sure, but what if you're using that variable frequently
$$$ $ $$ $$$$$$$
especially in large programs
then you should stop bitching about language , and learn how to write a better code
I don't follow - nobody forces you to meta-program, but it's good thing to have this option
in this sense, php is much more powerful than java
whoa im not going that far to argue what language is better
im just saying, i dont like "$" before every variable ;p
yeah.. people get sensitive about this topic :)
and we say: then use different language
06:09
i do
thanks teresko
whats the stars on the right hand side?
the comments with the stars
something like vote up
oh its starred for "interesting" ?
gotcha
or funny :-P
funny how "PHP sucks" is voted the highest
yeah, but comments like this do have different meaning around here :-P
06:11
I just notice that LOL
and it's from salathe
wow
yeah i understand, im sure its voted up as a joke
why wow? whos salathe
php developer
@lazeR no , you do not understand the context
gotcha
alright fellas im off to bed
have a good night
I've just woke up :-D
gn :)
06:15
im of for work
07:34
@Gordon ping
@edorian pong
Robert C. Martin - The Last Programming Language talk
@Gordon irc?
@teresko Already saw it? I wanted to look at it this weekend, worth it?
dunno ... intro seems to be same as in one other of his talk
@edorian bob just tweeted it. have it open in a tab as well
08:03
@Gordon yay
Jez
Jez
haha
'PHP sucks' starred by 13
it's funny because it's true :)
08:26
uuuh, nice. we have a php.net/manual/en/class.v8js.php extension - didnt know that
you have a php.net/manual/en/ extension? What does it do? LOL
But yeah, saw that a few weeks ago.
Certainly opens new possibilities :D
@salathe do we have a stream wrapper for system/exec calls?
@Gordon not built in, there's likely at least one been written though
repeats last statement
08:36
reasks last question to throw @salathe into an endless loop
2 mins ago, by salathe
repeats last statement
@Gordon Expect isn't problably what you want
2
@Artefacto ok.
thanks both
you'll have to write a wrapper around proc_open if you want one
@edorian finished watching ... well , he did not tell anything new
08:41
isnt that what expect_popen — Execute command via Bourne shell, and open the PTY stream to the process does? confused
well if I'm not mistaken a pty would have the advantage (over the pipes in proc_open) it is bidirectional
I was just wondering because the description for the stream wrapper says Streams opened via the expect:// wrapper provide access to process'es stdio, stdout and stderr via PTY
yes, but many programs behave differently then
ah.. not so important I guess. thanks again
09:04
Sup?
09:16
@Gordon Ever considered using PHP's undefined-constant-converts-to-string feature with function names? Example:

function MyFunc(){ }

register_action(MyFunc); // instead of "register_action('MyFunc');"
 
1 hour later…
10:23
eiw
Hello @ircmaxell
morning
Hello @NikiC
Hello @Robik :)
11:22
@ChristianSciberras why would i want to do such nonsense?
@Gordon Maybe he is a JS fanboy and wants to JSize PHP...
Morning
I added some documentation
posted on July 14, 2011 by Horde news

This is the 2nd part of my adventures through the Horde authentication code. As promised, I'm covering transparent authentication and verification of existing authentication this time.

(I won hackMe 3.0 !)
@Robik gz
11:32
Nice
Maybe I could translate it for english? ^ ^
any magento developer ?
Going to drive. Later
@Robik What is hackMe 3.0?
hello!
11:44
W simple web game, page where you have to hack :P
did anyone of you work wit facebook credits?
@Robik If you want to hack, try this: nikic.lima-city.de/hackMe :P
I was playing other game :P
No ethernet connection? :(
@Robik No idea. That's some free space, so it could well be that it doesn't have curl ;)
@Robik "cURL support enabled" hm... ^^
@Robik: Curl doesn't return the resuls in curl_exec ;) I forgot that curl was that unusable thing with the messed up API, which people for some reason prefer over good old file_get_contents
I forgot :p
11:52
why is it that people use curl?
I never really understood that
Enable set_time_limit pls :)
@Robik Can't ;) Free hoster :(
@Robik PS: The show_source and hightlight_file functions aren't blocked ;) So that people have a chance ^^
@Nikic Try more:
:)
I got your source :P
@Robik Yeah ^^ That's intentional. Otherwise I wouldn't allow show_source :D
@Robik You only win if you could get the source without show_source/highlight_file :P (Or do some other bad thing)
12:08
Look Now :P
@Robik At what?
@Robik :P
12:32
@NikiC Could you lease print results of last pasties instead of source? :P
@Robik :P Trying XSS or what?
:)
12:52
@NikiC uhuh :(
13:05
@Robik wtf are you trying to do with the unserialize?
I have a problem in installing imagick in windows7. does anybody can help me
@Nagarajan not yet
@Gordon hi do u know the solution
@Nagarajan yeah, it's 42
13:18
@Gordon sorry i don't understand. what do u mean by 42
@Nagarajan why? its the answer to your problem
42 is solution to everything :-P
@KamilTomšík i don't know what is 42
56 secs ago, by Kamil Tomšík
42 is solution to everything :-P
42 (forty-two) is the natural number following 41 and preceding 43. The number has received considerable attention in popular culture because of its appearance in The Hitchhiker's Guide to the Galaxy as the "Answer to the Ultimate Question of Life, the Universe, and Everything". In mathematics * Given 27 same-size cubes whose nominal values progress from 1 to 27, a 3×3×3 magic cube can be constructed such that every row, column, and corridor, and every diagonal passing through the center, comprises 3 cubes whose sum of values is 42. * Forty-two is a pronic number and an abundant num...
13:22
@Gordon thanks for your reply, anyway i didn't get the answer. i need to look for some other solution, without wasting time in chatting
@Nagarajan how about describing your problem then? :)
@Gordon oh. i am trying to run a sample code in PHP which uses imagicK. I have installed imagemagic and downloaded the dll and put it in the extension. but still it didn't appear in the php info
i am not able to run the program
the class imagick is not found. fatal error
@Nagarajan Did you restart the server?
first i restarted the apache and then i restarted my machine itself
i tried with all the dll in “valokuva.org/builds
but none of the dll works
i use php 5.3
and wamp server 2.0
@Gordon is my problem is descriptive? can u help me now
13:31
@Nagarajan yes, but sorry. no idea
@NikC :)
@Gordon thanks for your time
@Nagarajan did you enable the dll in php.info?
@Gordon how do i enable it in php.info. i changed the settings in php.ini alone
which settings?
13:37
i added this line ;extension=php_imagick.dll
remove the ;
^^
@Nagarajan ; is a comment in php.ini ;)
i removed it and restarting the wamp
still it not visible in php.info
hey guys, how do I exit a while loop?

while( $row = mysql_fetch_assoc( $defect_data_qry ) ) {
if( condition ){
//exit loop here
} else {
// do something else here
}
}
@sadmicrowave add a break;
13:41
really
The main good news is imho the ability to set the response code without dirty hacks: docs.php.net/http_response_code
Though "Zend Signal Handling" could be nice too if it is what I think it is
intersting the function was only added in 5.4
before that the best way to send a status code was ... err ... :
@Nagarajan any error messages in your error log?
1
Q: How to send a status code in PHP, without maintaining an array of status names?

NikiCAll I want to do, is send a 404 status code from PHP - but in a generic fashion. Both Router::statusCode(404) and Router::statusCode(403) should work, as well as any other valid HTTP status code. I do know, that you can specify a status code as third parameter to header. Sadly this only works if...

@Gordon no
@Nagarajan no idea then. sorry
13:56
@Nagarajan those DLLs are for PHP 5.3 compiled with visual studio 9
@Nagarajan Put this in the same folder as php.exe and then run it: nebm.ist.utl.pt/~glopes/misc/printbuildid.exe
1st arg is the path to the DLL
2nd arg is whether dependencies of the DLL should be resolved
if you give any 2nd arg it will attempt to resolve the dependencies
so first run with a 2nd argument and check whether build id matches with any other extension you have
and then without it to see if the dependencies are found
14:26
is there a single word for "something that will be reversible" ?
14:40
@teresko "reversible"?
i need a verb
@teresko revert
actually i used a different term ( i was looking for a class to put on a link with javascript'ish behavior )
15:17
hello
15:30
undo
16:23
posted on July 14, 2011 by Liip

I am very proud to announce the first release of the proxy-object. Initiated by Thomas Weinert and me back in 2008, this library was just a first draft with all the functionality we needed at this time. Working with it and using it, proxy-object got grown up. Finally Liip sponsored me some time to do necessary changes and best of all writing unit tests. The outcome is this little library maki

found new operator in PHP: ==$_=& :)
16:41
@NikiC wat
Anonymous
wha?
16:56
@NikiC w3schools lies!
17:21
i'm new to php, i want to know is there any pre written small php scripts insted of writing it everytime
Which script?
17:37
@ChamaraDenipitiya You mean framework? :P
@ChamaraDenipitiya , if you are new to PHP , then you should stay away from "pre-made" scripts , and instead you should concentrate on learning the language
18:24
posted on July 14, 2011 by Zend Developer Zone

A number of potential BC issues were identified in the 1.11 series, and specifically in the 1.11.8 release, and as such, the Zend Framework team is releasing version 1.11.9 just one week following 1.11.8. It is available for immediate download: http://framework.zend.com/download/latest

 
2 hours later…
19:55
(Up to just a hare shy of 90% coverage), and the non-covered bits are still very unstable
20:38
@ircmaxell You're a coverage junkie :)
@ircmaxell I'm getting unit test failures, though
one on 5.4 and four on 5.3
21:06
I'm really stuck guys
I got the following question, no answers. It is to do with a SOAP service. Could someone have a look please :) stackoverflow.com/questions/6684772/…
21:34
posted on July 14, 2011 by Michelangelo van Dam

PHP Lint PHP Lint is probably the easiest way to validate your code on syntax errors, but it's also the most overlooked feature of PHP on command line. Provides a convenient way to perform only a syntax check on the given PHP code. On success, the text No syntax errors detected in is written to standard output and the shell return code is 0. On failure, the text Errors parsing in addition

21:50
Simplest little Q.... MySql ORDER BY, is it ASC or DESC by default? This isn't even for a script, so I'm not going to go test it. I'm sure someone knows it by heart. I should really
my guess is ASC
would be my guess too
though I don't know either, I always specify it explicitly
yeah me too, thanks anyway
user1385191
To sort in reverse order, add the DESC (descending) keyword to the name of the column in the ORDER BY clause that you are sorting by. The default is ascending order; this can be specified explicitly using the ASC keyword.
22:05
Sorry @Matt think you misunderstood. I know what they do; just wasn't certain which was default. Doesn't matter anyway.

And this is why I asked: https://plus.google.com/118130105161936026782/posts/F2MkhptCu6E
@AdamLynch You probably missed the "The default is ascending order; this can be specified explicitly using the ASC keyword." part in @MattMcDonald post ;)
Hi. Is there a way to make wordpress use different database tables (of another wordpress site) for posts, comments and users?
@NikiC yeah, I must have skimmed it/read it a block of text instead of line by line
22:21
Hey, would somebody mind taking a look at my question and giving me their advice? stackoverflow.com/questions/6700404/…
22:37
Wordpress: How To Get Posts, Users, Comments from Another Database or db table? If someone knows how to, please help: stackoverflow.com/questions/6700755/…
22:51
guys, does anyone use redis here?
23:13
@Dan you there?
23:44
hi
i hav a mysql relted ques i asked on SO
can sumbody help here is the link stackoverflow.com/questions/6622726/…

« first day (271 days earlier)      last day (4902 days later) »