#zftalk.dev on 2008-08-19

Time Nick Message
08:44 Ergo^ hello
08:45 anyone alive here ??
08:45 Marthin Ergo^: hi
08:46 Ergo^ i was wondering what new components ppl would consider most important
08:47 in my opinion that would be zend_cart , zend_payment_modules, zend_jabber
08:50 zomg I think payment things could prove to be useful
08:50 Ergo^ well it would boost many things
08:51 also jabber support would rock IMO, it would open the ability for communication with all better knows IM protocols + many more non-IM services
08:55 zomg: zend payments , at least for paypal, google and maybe 2-3 of biggest processing companies widely used would really help ZF adoption
09:01 Marthin Ergo^: paypal proposal was there, but it was not accepted
09:02 Ergo^ Marthin: yeah i remember, payment proposal was there too
09:02 somehow i feel that important things are left out
09:05 zomg Ergo^: indeed
12:40 DASPRiD Freeaqingme, :)
17:31 Freeaqingme !issue ZF-3719
17:31 issue ZF-3719
17:32 DASPRiD, wasn't I supposed to get a link to that issue now?
17:35 DASPRiD no
17:35 but btw, added ETA and stuff to progressbar
17:35 from my side it is finished now
17:36 Freeaqingme nice
18:24 DASPRiD Freeaqingme, tested it? :)
18:48 http://www.dasprids.de/blog/2008/08/19/zend-console-progessbar-in-incubator
19:04 norm2782 DASPRiD: why do you have a german gui : (
19:20 DASPRiD norm2782, because i am german :x
19:20 better question
19:20 why can you regognize a german gui? :P
19:21 norm2782 because I can read german?
19:21 or at least... to an extend
19:21 DASPRiD heh
19:21 norm2782 still... any self respecting programmer should have an english ui :D
19:22 DASPRiD :P
19:22 i dont respect self, i prefer $this
19:22 =P
19:22 norm2782 ACTION hates a dutch gui. ... or any localized gui for that matter
19:23 DASPRiD why is that?
19:24 norm2782 I just can't work with it... and most stuff sounds just plain silly in dutch
19:25 I've been using an english ui since the moment I knew how to use a computer
19:25 so I fail at any non-english ui
19:41 DASPRiD norm2782, show me some silly stuff
19:42 norm2782 haven't got silly stuff handy atm :p
19:43 DASPRiD norm2782, i have
19:44 norm2782, http://www.travelphotos.in/thumbs/lrg-361-img_2952_dikdik.jpg
19:44 norm2782 naneau!
19:45 DASPRiD nah i thought i make you look like a silly dikdik :x
19:45 |thomas1 Good evening boys :-)
19:45 DASPRiD hi thomy :)
19:45 norm2782 hey there thomas
19:45 |thomas1 I am no "majonaise" :D
19:46 DASPRiD oh :(
19:46 then miracel whip?
19:46 |thomas1 Tom or thomas
19:46 DASPRiD tom is fine
19:46 |thomas1 or blacksheep
19:46 DASPRiD as short as ben ;)
19:46 blacksheep: http://www.dasprids.de/blog/2008/08/19/zend-console-progessbar-in-incubator
19:46 |thomas1 I knew... I saw the commit
19:46 DASPRiD but there is screenshot :x
19:46 |thomas1 I added the new Zend_Translate implementation today :D
19:47 DASPRiD uh nice :)
19:47 .. which new?
19:47 |thomas1 My new
19:47 norm2782 what's new?
19:47 |thomas1 It allows caching of single files... which speeds up things when having multiple languages
19:47 naneau that is a dikdik, indeed :x
19:47 DASPRiD oh thats nice
19:48 |thomas1 It now caches also options which allows you to set languages in the mid and not only at initiation
19:48 naneau http://madoqua.org/dikdik.jpg is a better example though
19:48 norm2782 the other one is cuter :x
19:48 DASPRiD naneau, but there, dikdik is in the filename
19:48 which is a spoiler
19:48 also your dikdik t here is a punk
19:48 |thomas1 And the progressbar likes windows console ? ;-)
19:49 DASPRiD |thomas1, i'm still searching for some windows guy with php-cli -.-
19:49 norm2782 who cares about windows
19:49 Freeaqingme nobody
19:49 except for morons maybe
19:49 |thomas1 No time... I have over 40 opened issues... my problem is that I have too much new ideas :-/
19:50 Freeaqingme DASPRiD, no, not tested it, I had a deadline yesterday, so I'm busy :P
19:50 DASPRiD |thomas1, dito :>
19:50 Freeaqingme where are all people from Zend btw?
19:50 DASPRiD |thomas1, but as my finished components are bug-free, i can fully take care of new ones ^_^
19:50 |thomas1 Meeting-Time ?
19:50 Freeaqingme ah, could be
19:51 norm2782 |thomas1: how about integrating Google Translate with Zend_Translate?
19:51 that would be awesome :D
19:51 no more manual translations :p
19:51 |thomas1 Good joke DASPRiD... the more bugfree, the less people are using it :-)
19:51 DASPRiD :P
19:52 |thomas1 norm, then you would have translation like "How are you doing" ... "Wie bist du tun" :D
19:52 norm2782 haha
19:52 well true
19:53 but it would still be awesome :D
19:53 DASPRiD hm
19:53 i just thought about installing php-cli in my virtualbox :x
19:53 |thomas1 Not for me... Google = Zend_GData
19:53 norm2782 integrating GT into blogging software for example
19:53 ah ja... GData...
19:54 forgot it existed :x
19:55 Freeaqingme imho, with 2.0, it should be moved to zend_service_google, anobody agrees with me on that?
19:55 anobody = anybody
19:55 |thomas1 Hmm... ich muß auch noch eine Biographie schreiben... am Freitag ist Schlußtreffen wegen der neuen Zertifizierung =-O
19:55 Freeaqingme ah ja, aber wir sprechen keine Deutsch
19:55 |thomas1 Du nicht, aber ich :D
19:56 Freeaqingme :P
19:56 ich hasse es
19:56 |thomas1 Warum ? Ist doch nur eine Zertifizierung
19:56 Freeaqingme I hate the language, not the certification
19:57 |thomas1 Google Translate .... I hate = Ich hatte = I had
19:57 Freeaqingme :P
19:58 |thomas1 The beta tests where successfull
20:00 45 issues... oh my god...
20:00 norm2782 ACTION pets Freeaqingme
20:00 German is not that bad
20:00 Freeaqingme I blame my teachers...
20:00 |thomas1 I would be happy if I understood more than two languages
20:00 norm2782 I don't regret that I chose German at school
20:01 German festivals are teh shit :D
20:01 and at festivals you need to be able to order beer
20:01 Freeaqingme you dont have to know any german for that :P
20:01 norm2782 you do need to know German in order to pick up German chicks?
20:02 naneau german \ó/
20:03 DASPRiD norm2782, |thomas1 just tested, works on windows
20:03 just there it throws a funny PHP Notice
20:06 |thomas1 I didn't knew that there are "FUNNY" PHP notices at all :p
20:07 DHager Unexpected T_PAAMAYIM_NEKUDOTAYIM?
20:07 No, that's not a notice...
20:08 |thomas1 This means there is a parsing error
20:11 zomg No it doesn't
20:12 it means there's an extra :: somewhere I think =)
20:12 or something like that anyway
20:12 but it's not a general parsing error =)
20:13 |thomas1 In my eyes an extra "::" leads to a wrong written php file
20:14 Some collagues meant that a missing constant definition or undefined variable should also result in an error in php... but they are java purists ;-)
20:18 zomg You could probably roll your own error handler which assigns them a higher level =)
20:20 |thomas1 For PHP itself, but not for Eclipse where no parsing error is shown. ;-)
20:38 DHager ...
20:39 I know exactly what it is, and I am not having any problems at all... I just thought it was a good "funny" PHP error/notice
20:39 zomg: I wish there was a PHP option to wrap all runtime "errors" into actual exceptions
20:40 zomg Yeah
20:40 DHager Yeah, I know, a custom error handler'll do it
20:40 But the principle of the thing...
20:40 zomg I recall throwing exceptions from custom error handlers cause more errors :P
20:40 DHager Heh
20:41 Someone did that once in our company
20:41 The error handler had an error/warning (array index not defined) that only manifested when it handled another kind of error Joy.
20:42 You know, that PHP laziness of doing $array['foo'] and just relying on it to evaluate false if the 'foo' index doesn't exist
20:42 I'm one of |thomas1's "java purists" in that sense :P
20:43 Anyway, it was the massive fun of an infinitely recursive error handler.
20:43 "Out of memory!? WTF?"
20:44 Ergo^ |thomas1: hello
20:44 i saw you commited some work on caching and translation adapters
20:45 |thomas1 Yes... I worked the last 3-4 days on it
20:46 Not finished, but in a state where I was able to commit what I've done so far
20:46 Ergo^ well its not working
20:46 but i submitted a patch :p
20:46 |thomas1 Say's who ?
20:46 Ergo^ http://framework.zend.com/issues/browse/ZF-3992
20:46 says me :P
20:46 a small issue maybe
20:46 but it was providing illegal characters to the cache id
20:47 and the cache threw exception at you
20:47 |thomas1 That's not possible in my opinion
20:47 Ergo^ you are using $data - and it appears it contains the path to filename
20:48 |thomas1: my app broke the moment i used todays nightly
20:48 |thomas1 Line 437 which you mocked about reads: $id = 'Zend_Translate_' . preg_replace('/[^a-zA-Z0-9_]/', '_', $data) . '_' . $locale . '_' . $this->toString();
20:48 There are no illegal characters in there
20:48 Ergo^ yeah
20:48 but in your solution you have
20:48 |thomas1 Which are failing ?
20:48 Ergo^ $id = 'Zend_Translate_' . $data . '' . $locale . '_' . $this->toString();
20:48 |thomas1 No
20:48 Ergo^ maybe i was unclear in ticket
20:48 yes ? ;-)
20:49 |thomas1 No :-)
20:49 Ergo^ yes ;-) dont make me grab the nightly again :P
20:49 |thomas1 The line in trunk reads: $id = 'Zend_Translate_' . preg_replace('/[^a-zA-Z0-9_]/', '_', $data) . '_' . $locale . '_' . $this->toString();
20:49 Ergo^ hm... you changed that today ?
20:49 |thomas1 I just did not reply to the issue because I did not finish the tests on the new caching for now
20:50 Ergo^ cause this morning my time there was no preg replace
20:50 |thomas1 I am changing every day something... today I made about 4-6 commits for now
20:50 Depends on your timezone :-)
20:50 Ergo^ ah ;-) so we just changed that simulatoneusly i guess
20:50 |thomas1 10 hours ago I made my last commit related to Zend_Translate
20:51 Ergo^ btw. you mentioned a filter for manipulating upload filenames ?
20:51 |thomas1 Yes
20:51 Ergo^ any chance it gets commited soon ? ;D
20:51 |thomas1 Don't hurry... I just added a ImageSize validator ;-)
20:51 Ergo^ YAH i saw it
20:52 hehe, my app breaks without mutation of filenames ;-) (pkey clash in db :P )
20:53 btw. very good idea with that validator
20:54 |thomas1 One validator is missing for now
20:54 Then I will go ahead with the filters
20:54 Ergo^ something particurarly interesting ?
20:54 |thomas1 ContentType
20:55 Detecting file content based on the first read bytes... independent from mimetype
20:55 But this one i a little bit tricky :-)
20:55 Ergo^ yeah, im not expert on security but this one can be tricked
20:56 |thomas1 But necessary... you can't rely on mimetype or file extension
20:56 Ergo^ btw. do you know if there is any progress on zend jabber ?
20:56 |thomas1 don't know... ask in the proposal for it
21:11 DHager Hrmmm
21:11 |thomas1 Hrr or Hmm ? ;-)
21:11 DHager I've got some contributed code. I'm not sure where to put it. I've sent in the corporate CLA (no response)
21:11 And Fisheye doesn't show anybody else committing things on my behalf...
21:12 And I have no clue what credentials I ought to use even if there was a branch or incubator or whatever for the code.
21:12 http://framework.zend.com/issues/browse/ZF-3369
21:13 |thomas1 Without accepted CLA no way to commit code
21:13 DHager I did the personal CLA a lonnnnnng time ago
21:13 And sent in teh corporate CLA (for this project) back on the 8th
21:13 (11 days ago.)
21:14 I don't recall ever getting a confirmation on my first CLA either, just an abrupt change in my issue tracker status
21:14 |thomas1 Ask Wil Sinclair why there's no response until now
21:14 They are a little bit busy as 1.6 is coming
21:14 Normally you will get a password and a short reply
21:15 DHager Yeah, I don't anticipate this being anywhere near ready for 1.6 (even if Google fixed problems on their end)...
21:15 It's just the 'Story Of The Project's Life": delay, delay, stupid delay, delay :P
21:16 |thomas1 Too less people
21:17 It's not only coding... most people think they can code some 100 lines and that's it... they lack unit tests, documentation and all thins things must be done by others... so all is delayed
21:19 DHager Oh, I know it needs unit tests and docs, it just seems like if I can't point at the code it's hard to ask people questions about it.
23:26 DASPRiD |thomas1, tested again, doesnt work correctly on windows -.-
23:26 seems to ignore \x08
23:30 Freeaqingme is that \n?
23:30 On windows you need to use \r\n afaik
23:35 DASPRiD nope
23:35 problem is following, just saw it
23:35 80 chars + cursor = 81 chars for windows, so it does a linebreak
23:35 but i guess i can fix it ;)
23:36 norm2782 bleh.. windows
23:36 DASPRiD hm nope doesnt work -.-
23:36 i could surely check for windows S
23:36 OS
23:37 and in that case reduce width - 1
23:37 for authomatic recognition for sure
23:39 Freeaqingme isn't that like making it os dependent? :P
23:39 DASPRiD if somebody sets it to fixed 80, it's his problem, not mine anymore
23:39 nah
23:40 it doesnt depdent on a specific os for functionallity
23:41 Freeaqingme you can check if `start mspaint` returns 0, if it does, you run windows :P
23:42 DASPRiD lol
23:42 k fix works
23:42 and on windows i even dont need a window width recognition
23:43 when you make the window tinyier, it gets scrollbars :D
23:44 so it is always 80 char width ;)
23:44 now i only need some recognition for *nix
23:47 |thomas1 Why don't you simply use the constant PHP_OS to detect the os ?
23:48 DASPRiD uhm
23:48 there is a constant? :x
23:49 |thomas1 In every PHP compilation since PHP3.0 :p
23:49 DASPRiD i always do print_r($GLOBALS); to find out stuff, but sadly i cant see constants there :P
23:49 where is that one documented?
23:49 oh, what about php 2.9? :P
23:49 |thomas1 Predefined Constants
23:49 ZF minimum requirements 5.1.4
23:49 DASPRiD if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
23:50 i c :P
23:50 |thomas1 Jup
23:50 DASPRiD well with stristr i do ut
23:50 substr + strotupper is tupid :)
23:50 *stupid
23:50 |thomas1 Works always
23:50 DASPRiD yeah does, but two function calls instead of one :)
23:51 |thomas1 This is the way the developers propose to use
23:52 DASPRiD |thomas1, as you are a win-guy, you have no idea about the // @todo, right?
23:52 |thomas1 I think two function calls on a simple 10 chars string is acceptable :-)
23:52 DASPRiD ;)
23:52 |thomas1 Todo ?
23:52 Just Do it :-)
23:52 DASPRiD / @todo Make some window-width-determining method and default to 80
23:52 that's the only thing left
23:53 |thomas1 Width ?? Always 80 chars
23:53 DASPRiD nope
23:53 *nix terimals can be resized
23:54 |thomas1 Windows not
23:54 DASPRiD ya
23:54 i'm only talking about *nix for in that todo
23:54 |thomas1 When you resize, then you will have a scrollbar and still 80 chars
23:54 DASPRiD thats on windows yeah
23:54 thats why i can default to 79 there
23:55 |thomas1 When you ask me about Windows and Window-Width-Determinating I think of Windows-Width determinating :-)
23:55 DASPRiD well i didnt ask you about both in the same linek ;>
23:55 hehh
23:55 btw
23:55 should i comment why i default to 79 on windows?
23:56 Freeaqingme yes
23:56 DASPRiD inline or in the docblock?
23:56 *method docblock
23:56 Freeaqingme either one of them :P
23:56 I mean, it isn't obvious, so people will wonder about it
23:56 DASPRiD well method dogblock is quite huge yet, i do inline then
23:56 Freeaqingme good plan, it's a bit overkill to get listed in the api docs etc
23:57 |thomas1 Make the width configurable with default 80
23:57 DASPRiD the width IS configurable
23:57 |thomas1 when you can't detect it
23:58 DASPRiD but the default is 80 (on windows (79)
23:58 if windows isnt detected, and there is no window width recognition possible, it defaults to 80