« first day (624 days earlier)      last day (4550 days later) » 
00:00 - 15:0015:00 - 00:00

15:08
just fixed that in a separate commit and hope that it won't happen again ^^
hrmn, odd
 sapi/cli/php -derror_reporting=-1 -r 'function foo(int $a) { return $a; } var_dump(foo("123")); var_dump(foo("1 ab")); var_dump(foo("ab"));'
int(123)

Notice: A non well formed numeric value encountered in Command line code on line 1
int(1)

Catchable fatal error: Argument 1 passed to foo() must be of the type int, string given, called in Command line code on line 1 and defined in Command line code on line 1
sapi/cli/php -derror_reporting=-1 -r 'function foo(boolean $a) { return $a; } var_dump(foo("123")); var_dump(foo("1 ab")); var_dump(foo(fopen("/tmp/123", "a")));'
bool(true)
bool(true)

Catchable fatal error: Argument 1 passed to foo() must be of the type boolean, resource given, called in Command line code on line 1 and defined in Command line code on line 1
@ircmaxell I could live with that. But still not sure whether notice is the right thing for "1 ab"
@NikiC it's the same notice that zpp gives
15:15
@ircmaxell i know
convert_to_long_safe(ppzv) -> _convert_to_long_safe(ppzv, 0)
convert_to_long_safe_ex(ppzv) -> _convert_to_long_safe(ppzv, 1)
15:32
refactored zpp to use convert_to_*_safe_ex instead of the hard-coded implementation
Actually, bringing inline with zpp, would require a warning, not E_RECOVERABLE_ERROR
then again, on arg parsing errors, core functions return null, which isn't possible in user functions
@PeeHaa I'm hungover like a boss.
I'm finally getting among the living again :)
user895378
If I'm doing content negotiation for Accept-Encoding headers, should I bother with supporting older browsers who lie about encodings they can understand? Like how apache's mod_deflate does:
user895378
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
congrats @ PeeHaa
15:40
:)
@rdlowrey well that's why you normally leave that stuff to the webservers, the projects have more domain knowledge.
If you write a new implementation, you should first do what the standards say.
When your customers complain, you start with the fixing.
user895378
Yeah, that's what I was thinking. I have a standards-compliant implementation currently ... If someone is using Netscape 4 they can go f$%# themselves, IMHO.
user895378
@ircmaxell I think you meant for "by of the type string" on line 644 to be "be of the type string"?
15:44
@rdlowrey reload
user895378
eureka!
> I am trying to allign 3 tables side by side
> im still learning advanced css and html.
:P
@rdlowrey Well, I'll try with mosaic first gg
user895378
hehe
@ircmaxell: Btw the thinkpads that can carry 16gb work quite well with 8gb, too. I have no complaints ;)
user895378
15:51
For the life of me I can't understand what goes through the minds of browser vendors. Why in the hell would you send Accept headers explicitly saying "I can accept gzipped content" and then not be able decode gzip compressed content?
@rdlowrey Well you know, software. Has bugs.
If you want to learn how netscape came to live, I suggest reading the founders at work book. And the coders at work. Nice stories.
user895378
That's a reeaallllllly easy one to get right, though. "Oh, the Content-Encoding header says gzip. I had better decode it from the gzip format, since I promised I was able to do that"
user895378
There must be more circle-jerking per-capita in browser development shops than any other area of software development.
Imagine some coder left in some string. He wanted to implement it one day, already put the string in. But then the version shipped. And nobody noticed.
Can be really trivial how these things happen.
So better put your stuff under test ;)
user895378
There is no way to test; testing is the way.
user895378
15:56
And if this is true:
user895378
2 mins ago, by rdlowrey
There must be more circle-jerking per-capita in browser development shops than any other area of software development.
user895378
Then the IE offices must be like a freaking snow-globe.
user895378
Hehe ... it's a bit vulgar for polite conversation.
Thank you! 9,895 questions tagged
and I have not run updates lately: 643 packages to go
I hope this fixes on shutdown bug I have
user895378
16:08
@hakre lol that's the PG-13 definition ... I was talking about the obscene definition. Imagine a group of people in a circle, with each person doing the other part of the colloquialism.
Ah, okay, that's how the circle fits in.
@hakre lol
user895378
I usually try to avoid explicit swearing and vulgarity in chat ... you know ... for the kids.
4 messages moved to bin
1 message moved to bin
ok, I'm out for the day
later
yay, reboot is fixed! no more dracut warnings.
user50049
16:20
@rdlowrey I'm quite certain that kids working with PHP are rather well versed in vulgarity and colorful metaphors, but thanks for the effort :)
user895378
@TimPost lol
16:32
Vulgarity is in the eye of the beholder.
I'm starting to play around with ExtJs, reminds me on visual basic a bit.
I think Google translate is broken drunk:
But it had better if got secure way with code. — Pawan Kumar Mar 17 at 10:38
16:57
thanks, its help me. — Pawan Kumar Mar 17 at 10:37
@PeeHaa and all close to DE: PHPUnconf HH 2012 tickets second round is opened: php-unconference.de/2012/07/01/…
If you don't have tickets yet, grab yours.
Gordon will be there, too ;)
> Die gewünschte Seite existiert leider nicht (mehr), oder ein Tippfehler verhindert den Aufruf.
ja, naturlich
de.amiando.com/phpuchh12.html <- take this one (no scam ;))
I think it breaks on the ö
Hamburg :(
@PeeHaa okay, I thought you were close. And yes HH = Hamburg.
drinking coffee without sugar is like reading spaghetti code
yuck
17:19
Lovely. :(
Coffee = serious business.
Also, woot, they finally finished it. teamfourstar.com
@hakre Do we also have speakers there or only attendees?
@PeeHaa It is an unconf, so all are attendees and ideally speakers.
those who want to speak offer theirs at each morning, the audience then votes.
@hakre Ah kewl. So it's like drinking beer and talking about our favorite topic with like minded?
@webarto , lol .. first coffee in the morning must always be hot, black and bitter
@tereško all coffee should be like that. Otherwise you should start drinking tea ;)
17:34
well .. i do drink mostly tea
me too ^^
@tereško life bitter :D
turkish heritage :D
@hakre new tickets for phpuchh are available
@Gordon I got mine just some minutes ago.
@hakre yay!
17:40
@PeeHaa yes, but you have 4-5 sessions in parallel
@hakre there is cruise days at the same weekend in hh so you should try to get a hotel room soonish
@Gordon Well I have a very comfortable room in HH always, so no need to rush.
But thx for the hint.
@hakre :)
17:54
@Gordon since you work with ZF, could you share your opinion if rewriting medium applicaton from ZF1 to ZF2 is a wise thing to do, application is almost constantly updated.
@tereško: Is there a way to tell opera it should display application/json?
in what way ?
you mean pretty-formated json ?
something like that yes. and right now it downloads it temporarily and opens my editor.
i don't want that ;) thought you are fluent with opera, so maybe there is some dragon fly json view or whatever
not sure
i think there was ability to see formated json in the drafonfly's request view
but i would not bet on it with my own money
<zombor> because phpunit sucks?
<zombor> stable is like "scale", they are both pointless words
@zombor reminds me of @tereško
18:07
sounds like a guy from ##php
#kohana irc.freenode.org
@tereško could you explain what is ##php ?
what do you mean ?
what does "##php" stands for :)
php channel's name on freenode
community channels are with two ##, official support channels have one #
@webarto Note to self, if I ever find myself in a situation of needing to build a PHP team, he's not on the list.
18:14
@tereško I thought so, but ## confused me, I see now "#php unable to join channel (invite only)"
yes , #php is unavailable
@GordonM yeah, I know what you are saying :) woody gilk aka shadowhand is very cool guy
but he is working in deviantArt, and Kohana development goes quite slow I think, so future is somewhat questionable... ZF, on the other hand has Zend behind it, so I see myself working with ZF, not that anybody should care, just thinking out loud...
@webarto i have no experience with ZF 2 so I cant tell
@webarto , that's a pretty strange logic there
you are assuming that just because a framework has official backing from some company , it makes it better
@webarto must i remind you that CodeIgniter is developed by a company too ?
@tereško you've convinced me... I will try to contribute to Kohana :) @Gordon I saw somewhere you commented on ZF2 topic, sorrry
18:49
posted on July 01, 2012 by PHP-GTK Community

this is a simple card game; PHP: 5.2.5 cli GTK: 2.12.9 OS: Windows nt read more

@Feeds Broken link is broken.
19:04
It's not broken. It's a singleton, so only one person can view it at a time.
19:45
56 mins ago, by Feeds
posted on July 01, 2012 by PHP-GTK Community

this is a simple card game; PHP: 5.2.5 cli GTK: 2.12.9 OS: Windows nt read more

Broken :(
Wondering if php gtk is still alive
I wonder that every time I see the project ^^
20:44
hi.. im having a problem with variable scope, I've asked the question on here and made changes based on what people have suggested but I still get warnings .. Will anybody have a quick look at my code please?
That was the first enjoyable football match in this EM :)
would be better if it was Italy vs Deutschland
nah
Spain was just awesome
@tereško installing program languages and libraries - incl. compiling those - is okay on SO. just sayin.
 
1 hour later…
22:02
I'm getting this error whilst in a foreach loop..Notice: Undefined index: id in C:\Apache24\htdocs\index.php on line 16.. could anybody help?
there is no index with name 'id' in array you are iterating, show some code...
<?php require("include/functions.php");
$articles = displayArticles();
foreach ($articles as $article) {
?>
<h2>Recent Articles</h2>
<ul>
<li><?php echo htmlout($article['id']) ; ?></li>
<li><?php echo htmlout($article['title']) ; ?></li>
<li><?php echo htmlout($article['summary']) ; ?></li>
</ul>
<?php } ?>
il show you the function if thats okay...
// connect to the database
require("include/db.inc.php");
$query = "SELECT id, title, summary FROM articles" /*order by ". $order . " limit 10"*/;

// query the database
$result = mysqli_query($link, $query)
or die("Error: ".mysqli_error($link));

//loop through storing values into array
while($row = mysqli_fetch_array($result)){
$articles[] = array('id'=>$row['id'] , 'title' => $row['title'] , 'summary' => $row['summary']);
return $articles;
}

if(is_array($articles)){
foreach($articles as $article){
try mysqli_fetch_all with the proper result type (MYSQLI_ASSOC) and you can remove some of code.
as i typed the code i realised what happened and now it works fine.. I was returning the article object inside a while loop.. very stupid of me
$articles[] = $row;
would do, and yes, you have return...
22:10
so could i put..
while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
$articles[] = $row;
22:22
hey hey
I dunno whether somebody is still online. but go spain! and;
Or star it so that I know for sure I've been doing it wrong
You naughty naughty boy/girl. Just install the stack on your own server. And upload your personal project to that. — PeeHaa 7 secs ago
Did I already tell you to vote: github.com/PeeHaa/php-net-tutorial/issues/5?
Well do it!
voted
ok, you've sounded like commercial
Damn you @webarto!
Here I was thikning I was talking to myself
:-)
yeah, this is my second day today, on Sunday... migrating doctrine 1 to 2, they said it will be fun.
@webarto I feel your pain brother
Not really, but I'm drunk so I feel everybodys pain
:P
vamos espana :P
22:37
:-)
@hakre @tereško @GordonM @Gordon @rdlowrey @TimPost @ircmaxell @Bracketworks @CharlesSprayberry @salathe @everybody who has an opinion: github.com/PeeHaa/php-net-tutorial/issues/5
mega ultra super ping
Looks like I've been doing it wrong all the time though
I hate that. Than again: Progress!
onebox motherfucker! do you speak it
@hakre lurking... do you speak it? ;)
@PeeHaa , where is my option ?
@PeeHaa wooot?
also .. wtf with new array ?
goddamimnit I shouldn't do this stuff right now
@tereško refresh. and 3rd option is yours right?
22:48
yes
and the spacing in 1 and 3 is off now
@tereško Ty. I need people like you :)
it's nice to be appreciated
what are some good arguments to prefer php?
we like ones about oop principles and "mvc" frameworks
btw , it looks like only i and @PeeHaa prefers "strange" array definitions
@tereško Looks like we both have a very strange taste :)
22:55
$array =    ['key1' => 'value',
            'key2' => 'value' ];
it's the variation on "option 3"
i still think that writing php-5.4 oriented tutorials is WAAAAY to soon
I am agree... as I found out moments ago that building something with ZF2 is also too soon.
@coder works better than cold fusion.
@webarto This indeed is (expect the 5.4 syntax) @tereško way of formatting arrays
expect ????
@hakre, why do you say that?
23:00
@webarto , wasn't ZF2 stable already ?
@PeeHaa: Please make the tutorial with a code style switcher, so one can choose the variant.
@coder because cold fusion stinks.
i recall it was in the sate of perpetual beta , but then i lost all interest
@hakre I don't disagree. why bring up coldfusion
@coder because it was the reason I started writing in PHP years ago.
so you were asking for an argument, that's mine.
@ha
23:01
which one is yours?
@hakre I was more thinking about this is what you should use (unless you have a really good reason to not use it)
to get away from cf?
@coder , because PH in php stand for physics
or, personal home page
but, whateva
also .. i think , cold fusion was debunked
23:02
@tereško 2.0.0beta4 apparently
lol, debunked?
If this tutorial is going to be "the official tutorial" ™ it better be consistent
gotta leave. cu folks.
cya @hakre
23:03
ah, cold (space) fusion lol
what is "space fusion" ?
@PeeHaa Sorry for the slow reply. If you're asking which I prefer I tend towards 2
... i think i need to check his profile , to see if am talking to an american and need to use shorter words
@GordonM You're not that slow... Please vote on the ticket. Looks like I'm indeed a moron and doing it wrong all this time :)
23:06
@tereško Just throw in some Oooohhhmm my gawds and you'll be cool
@hakre laters
@tereško wow, that article is from 1989..
yes , it was debunked more then 20 years ago
doesn't mean hot fusion can't save the day
lol
@PeeHaa 3 looks more like how I call functions that take a big params list
@webarto , i has been in development since 2010th .. well , at least that's when first public release happened
@PeeHaa See, I told you that everybody uses option 2 ;)
how long has everyone been doing professional software development (as in, getting paid to program)?
@NikiC Damn. Why are you still awake? ;) I didn't even ping you
:D
23:11
@PeeHaa I am always awake to watch over you!
@NikiC You sure you want that kind of responsibility? ;)
@tereško yes, some say it's "Java like"... and for small applications it is overkill to use ZF w/ Doctrine, when you for example have Kohana and it's mediocre but simple and reasonably fast ORM (which is considered as antipattern?). Not to mention speed of development and deployment...
@ircmaxell blah to you to
@ircmaxell blah
23:14
good blah folks
/me ordering Code Complete 2
what's going on
@PeeHaa :-D
Code Complete 2: Code complete-er
To be followed up with Code Complete With a Vengence.
23:15
hehe
And the less said about Live Free or Code Complete, the better.
@webarto , as a kohana user you might know that ORM is not a mandatory part of application in kohana, and is not even enabled by default
Anyway, off to bed. Night.
@GordonM nite
I'm also off. Thanks for telling me "You're doing it wrong" (I mean that). Cya all tomorrow
Code Complete , followed by Code Complete 2: Revenge of something
i am too lazy to expand that joke
23:19
lol
Revenge of the syntax
mostly i could not think of good name for prequel
... unless i could use World of Code Complete
@tereško yes, I tried to propose some changes to it, but they say it's PITA to do anything with it. Friend of mine managed to increase performance by 100% somehow, will ask him...
which might be kinda hard to catch reference to
@webarto, also you should know, that kohana's "orm" is actually a glorified query builder and not a full ORM
@tereško pokit.org/get/img/1959cfd9907c2c58f668732113f33088.png which is exactly why this doesn't make much sense to me... and you can't extend it, because ORM model is somehow "reseting" itself... (I was trying to use methods from model, and all I needed is id and title, not everything)
Hi, i need some help about a tutorial i'm watching now. He is sending an e-mail from in a controller but i'm a bit confused because i think writing e-mail codes in a model will help me to re-use them when i need them in another controller otherwise i will need to re write them for another controller too.
so he is doing right?
23:31
sending of email is a service functionality. As such it belongs in the model layer...
@draconis Jeffrey is a smart guy, but he can't be expert in everything, so I would suggest you refer to manual as much as you can... or just don't use CI. Or use it and when you get to know things, try Kohana :P
@webarto yes he is telling good but as i said i just confused when he write e-mail things in a controller.
@ircmaxell thanks
@webarto i will learn other frameworks too but someone suggested CI to me as starter, he said because it's simple.
he probably didn't paid much attention to where is appropriate to put email things, you got answer from @ircmaxell
@draconis documentation is good, so that would be a big plus to you.
hrm, thinking of getting a mac mini as a home build server
since my laptop doesn't appear up to the task anymore
i have been thinking of buying a micro server for that purpose
23:37
@ircmaxell no
just no
@tereško that is nice
@NikiC can you elaborate?
23:40
@ircmaxell apple is evil
I use Lenovo S10-3 w/ Debian
I agree with that
consequently you can't buy a mac mini ;)
but I want a high performance CPU in a small, power sipping format
prlog.org/… < bought this few months ago, i7, 6GB RAM, about $700... but I don't think there is 13" (or whatever mac mini dimensions are)
23:44
@tereško mobile CPU. I want a full CPU
looked at this list : zotac.com/… , but seems that they too have poor CPUs
@tereško all mobile...
yeah
apple is the best
$1100 for a mac mini with an i7 and 8gb ram... overkill
23:49
how about : Intel® Core i3™ 2100T
static.pik.ba/galerija/2012-02/… $100 used, but 1.43 and 1GB... haven't seen this Mac Mini until now...
i would be careful of buying as "server" which comes with "win7" as extra
why?
I don't care, I'm going to format it as soon as I get it anyway
first of all , because you have to pay extra for it
not much , but there is a bit of added cost for something that you wont need
00:00 - 15:0015:00 - 00:00

« first day (624 days earlier)      last day (4550 days later) »