« first day (1076 days earlier)      last day (3869 days later) » 

1:00 PM
lol
 
@Fabien I used to draw a tank on every piece of work I handed in at school. :P Those were the days.
 
@Fabien :D
 
lol. I hope it provided a minimal bit of relief for the poor teacher grading all those papers.
 
@NikiC yeah one code path can be revisited though ... so one place doesn't necessarily mean single use, in terms of the litetime of any single execution it's not single use ...
I done a bit on use cases, the bit that I think is worth giving examples for ...
I know you weren't keen on it yesterday but can you just have a read of my reasoning and see what you think ?
 
@JoeWatkins For the record, I disagree with Patrick :)
 
1:04 PM
who is patrick ?
 
Patrick Schaaf
 
oh the syntax guy ...
 
Yeah lol
 
@JoeWatkins github.com/php/php-src/pull/470/files#L6R2248 => why the ZTS guards?
@Jack @JoeWatkins That the syntax has to change is obvious, no question there.
 
@NikiC I literally have no idea, I done the patch in zts at first then yesterday went back to zts and found wierdness
why does it have to change ?
 
1:06 PM
I'm still on the "do we need it at all" question, but I'm slowly starting to lean towards "it might not hurt" :)
 
I think it makes sense to define first, and then "call"
 
like functions do
 
user895378
FWIW I like anon classes a lot for testing purposes.
 
like you generally have to ...
because we live in a universe where time progresses in a certain way ...
 
@JoeWatkins but interned strings should make its own zts check...
 
1:07 PM
actions should do the same if you want things to make sense ...
 
@JoeWatkins If you create an interned string in zts you just get a normal string back. That should not cause issues
 
@JoeWatkins What about being able to write new classname (or just class as an alias for stdClass) where your instance automatically extends classname?
 
@rdlowrey Could elaborate a little bit about that?
 
He just keeps giving. This must be some act
@KnightForRight, The truth: www.yhoo.it/X6EGGt
God did not send his Son into the world to condemn the world but... that the world might be saved through him ...whoever does not believe is condemned already
6.7k tweets, 1.3k followers, following 1k users
 
I know this, I've read the def of new_interned_string a bunch of times ... just wanted to shut it up ...
 
1:08 PM
how can u see tweets that other ppl sent to him?
twitter confuses me
 
@bwoebi if anyone wants to volunteer to change the parser, do it, I tried, it seemed more trouble than it's worth ...
 
@DarkAshelin Click on a tweet
 
@NikiC I've read the def of new_interned_string so many times and I know it returns arkey back, I have it open on my screen right now, I think that is what is left of messy changes to get it to work ...
will tidy later on today...
 
@PeeHaa then what?
 
while we are on the subject, just what is it that I am supposed to do with the damn name of the class to keep it happy ..
I've had to make changes in places I'm pretty sure I need not ...
destroy_zend_class iirc
 
user895378
1:11 PM
@Leri Say you're writing unit tests for code that uses interface typehints. You want to pass in a "mock" instance of the typehinted interface that has specific behavior so you can verify that the class you're testing does the correct thing when the injected instance exhibits behavior X. The ability to define an anonymous class inline in your test eliminates the need for a mocking framework like phpunit in that scenario.
 
user895378
That also keeps you from polluting the relevant namespace with lots of class names created specifically for testing (which is nice sometimes).
 
oh oh guys, apparently that Daniel guy is a disabled person
 
Libre > Open > iWork > StarOffice > Nano > Emacs > Works > MSOffice > Writing On Paper > Vim
^ Confused purpose possibly? :P Office and vim in the same comparison operator?
 
user895378
@Leri Anon classes also eliminate the need for most of the PSR-0 stupidity people attempt to apply even in their unit testing code because you don't have to autoload things like that in your tests.
 
Missing the Vim > ed > magnetic needle + steady hand
 
1:13 PM
And have no idea what that tweet is trying to say
 
@Starsong I think he means < when he writes >
 
@PeeHaa I'm still confused, how do I see all tweets that other ppl sent to him
 
everybody knows that vim is at the top of the foodchain
 
emacs is top of the CLI editor foodchain.
 
@NikiC vim eats all the other editors for breakfast? :)
 
1:14 PM
@Jack correct :)
 
@rdlowrey Thanks for clear explanation. Nice use-case also.
 
@Starsong this would imply that I can read *.doc files in emacs
 
@DarkAshelin For all message to the fucktwat a simple @name search would do twitter.com/search?q=%40KnightForRight&src=typd :)
 
@tereško That's what I was thinking :P
 
1:16 PM
@rdlowrey Hmm I normally configure a bootstrap for phpunit ... well, just points to Composer ;-)
 
@tereško or efficiently edit a .c file in OpenOffice
 
@Duikboot I did get it to work without sessions
 
Nice!
 
user895378
@Jack Yeah, so do I. But the point is that you don't have to deal with people complaining about your unit tests not matching their idiotic utopian directory/file layout.
 
user895378
(that's a secondary benefit anyway)
 
user895378
1:18 PM
Inline mocking/stubbing for tests is way better than something like phpunit IMO.
 
user895378
That's the real win. I'd use the hell out of anonymous classes. They're far better for writing explicitly readable test code than having to learn an outside test framework.
 
I don't think anon classes really replace most mocking functionality (because mocks usually also test something, like, which args were passed, how often called, etc)
Rather they replace test dummy classes
 
user895378
True, but sometimes things like that border on overtesting and testing the implementation details instead of the public interface.
 
@rdlowrey Unless you only write composer projects >D
 
Can anyone tell me what im doing wrong here:

Php file 1:
session_start();
<a href=profile.php?thread_username={$thread['username']}> {$thread['username']}</a></br>



Php file 2:

$thread_username =$mysqli2->real_escape_string($_GET['username']);
$sql_result = $mysqli->query("SELECT * FROM account_information WHERE username = '".$thread_username."'");

When I try to echo $thread_username It shows me nothing
 
user895378
1:20 PM
@Jack I disagree -- test file structure doesn't always fit neatly into the PSR-0 paradigm
 
@Starsong well ... this thing tells you nothing about better-ness of editors, but it lets you know that author used OpenOffice before he/she migrated to Libre, and the author also has hate vim.
 
@rdlowrey Hmm, I haven't encountered that problem before.
 
user895378
Fixtures are the prime example, but you also have integration tests in addition to unit tests. Nesting directory after directory and namespaces inside namespaces is idiotic.
 
@tereško I absolutely love vim as long as someone else is using it, personally. But me, I can't stand the thing.
 
user895378
PSR-0 tells me I need something like Aerys\Tests\Unit\Http\Parsing\MessageParserTest. Insanely nested dir structures like that make me vomit.
 
1:22 PM
When the Lady smiles
 
can i use my form post methode without type"button" but not type="submit"
 
@rdlowrey why would you want to use PSR ?
 
one solution is input type=hidden
 
You mean without <input type="submit" >
@Dave-88 What do you want to achieve?
 
any PSR ?
 
1:24 PM
@rdlowrey as tests don't need an autoloader there is little point in using PiSseR-0
 
user895378
@tereško I don't -- I think they're all a complete waste of time. I'm saying that anonymous classes mean I can keep the PSR people happy in my src/ directory without making a mess of my test/ dir.
 
@Duikboot yes of course
i have a form
 
Provide us some code snippet and we will look into it.
 
user895378
@NikiC I agree, but then I get people sending PRs that butcher my test directory in the name of PSR-0 compatibility (this has actually happened).
 
@rdlowrey not sure how those are related?
 
1:25 PM
that use jQuery.ajax request
 
@NikiC dunno .. I think test need to have the aotoloader of the application that is under test .. and maybe ability to autoload Mocks
 
and the second step is to run php script
 
@tereško yes, sure, the application still needs autoloading. but the tests don't
 
and i use a submit
 
user895378
@NikiC They aren't intrinsically related, but it makes it easier for me to load dummy classes in my tests and still keep the PSR cult happy.
 
1:26 PM
@rdlowrey ah, okay
 
What does it do already,
Waht is it not doinging
How can we help you to make it work?
 
user895378
(without ad nauseum nesting and pointless extra files for one-off dummy classes inside my test/ dir)
 
@rdlowrey actually PHPUnit recommends your test dir to mirror the app dir, so that would be the same for any coding standard you use
 
user895378
And as exhaustive as phpunit is, sometimes you have to test something that's extremely specific to the problem domain at hand and you have no choice but to use a dummy class for this behavior. Anonymous classes just make that easier.
 
user895378
@Gordon That's what I do -- but then I run into the problem of multiple kinds of tests -- integration, unit, etc. Integration tests don't work that way because you aren't testing one class, you're testing the system as a whole.
 
user895378
1:30 PM
And what if I have fixtures?
 
user895378
Basically the abstraction breaks down when you want to do all these things in a single phpunit run.
 
@rdlowrey test/unit/[mirror of your app structure]. then do test/integration/ or test/regression or whatever for the other stuff. fixtures usually go in the the same folder as the testcase, so if you fixtures for SomeFooTest you put them into a _fixtures folder in the same directory
 
user895378
@Gordon I do that -- but it doesn't play nice with PSR to have libs and data (such as fixtures) sharing directories.
 
and needless to say: in the end just do what works for you
 
user895378
test/unit/[mirror of your app structure] <-- starts to get pointlessly nested.
 
1:35 PM
@rdlowrey if that is pointlessly nested then that is true for your app directory structure, too. isnt it?
 
hello everyone
 
user895378
Aerys\Parsing\MessageParser is not ridiculous. But Aerys\Test\Parsing\MessageParser for the sake of autoloading is just stupid.
 
user895378
Basically what I'm saying is that PSR is the problem. And anonymous classes make it easier for me to keep those nutjobs happy without making a mockery of sensible directory structures.
 
user895378
Because if you have to follow PSR even in your tests to keep people from freaking out then the PSR abstraction really breaks down for any non-trivial test suite.
 
@Gordon:- hi
 
1:37 PM
why would you have tests in a different namespace ?!?
 
user895378
For this reason:
 
user895378
13 mins ago, by rdlowrey
@NikiC I agree, but then I get people sending PRs that butcher my test directory in the name of PSR-0 compatibility (this has actually happened).
 
oh
 
@rdlowrey but its not PSR mandating that. It's PHPUnit that say mirror the structure
 
it's more of a case of "people do not understand unittests"
 
user895378
1:41 PM
@Gordon But then _fixtures doesn't work.
 
@rdlowrey why not? just throw the folder in there
the whole idea of mirroring the app structure is just so you can easily find the test for a class
if you need to put other stuff into the test folders then just put them there
 
user895378
Which doesn't work for integration tests.
 
+1
@rdlowrey I just have integration tests in a different NS
 
@rdlowrey thats why you put integration tests in tests/integration and not into tests/unit
 
user895378
@Gordon But introducing a Test\Integration namespace and a Test\Unit namespace is idiotic.
 
user895378
1:43 PM
Which is why the PSR is still the problem.
 
@rdlowrey oh wait. we are talking namespaces here?
you dont put any tests in their own namespace
 
@JoeWatkins actually quickly trying something
 
user895378
@Gordon Yeah -- I'm complaining about people telling me I need PSR-0 in my test structure.
 
user895378
I don't. No one does.
 
@rdlowrey tests go into the same namespaces as the sut
 
1:45 PM
IIRC test of a class should be in the same namespace as the class which is tested
 
exactly
not that I know why. but that's what everyone keeps telling me
 
user895378
So do you guys put your test classes in the same directories with your library classes?
 
no
 
who said that classes from one namespace cannot be in multiple directories ?
 
1:47 PM
@rdlowrey nope. I actually never do that but with a coding dojo. then I have the class and the test in one file.
 
user895378
@tereško They totally can. I don't even know what we're talking about anymore tbh.
 
user895378
I think everyone here agrees on all these points (myself included).
 
well .. everyone here also agrees, that PSR is a bad joke
5
this room is NOT representative subset of php community
 
I never thought there'd be the day I'd star something from @tereško but I just did ;)
 
I seem to have acquired PSR-2 coding standards without having ever read them previously.
 
1:49 PM
one problem might be with autoloading when PHP tries to resolve a qualified class name against namespace and multiple imports.
 
Attention!! Cute Cat with Mouse Picture INCOMING!!!!!
user image
2
there you go
totally photoshopped though
 
I am eating marble cake.
 
I would hope it's photoshopped otherwise that cat has a hard digestion time ahead.
 
What was again that joke with marble cake?
 
@JoeWatkins I see the problem. Getting 5 shift/reduce conflicts with reference_variable '{' expr '}' syntax. But this is not a problem. It just tries to check for a $variable{expr}. Which is no problem as variable class names etc. shouldn't be supported. (If you need to, feel free to use eval(), like we already do.)
@JoeWatkins What is expected:
$ /sapi/cli/php -r '$a = "stdClass"; new $a { public static function a() {} };'
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in Command line code on line 1
 
2:01 PM
@Fabien dunno ... with that jaw strength it might not be your major issue (it's a kitten and mice are not so light compared to a kitten).
 
xy_
Hello
 
is there any way to upload folder through uploadify?
 
@tereško heh. They're sharp, I will give them that.
 
xy_
I need advice about normalized database design with cakephp. I think cakephp model selects all related tables sametime. So does it makes sense to split tables if it would join them again?
 
lol
 
2:06 PM
no, it does not
 
@xy_ the average cake application does about 50+ queries per request so don't bother ;)
 
xy_
:) you mean it doesn't matter to normalize or not?
 
@xy_ if you want to optimize your DB structure "for cakephp", then you should be making a DB in which you never make JOIN statements
 
xy_
@tereško which is so hard to do :)
 
2:18 PM
@tereško best make a db with only a single table and 100 columns?
 
Ugh, paying the price for being a loner-noob now :(
Damn old code issues
 
xy_
If cakephp wouldn't have hasOne() belongsTo() functions, making no join could be OK but it has lovely functions for joins
 
@xy_ yes, it does so many queries due the ActiveRecord approach that any attempt at optimizing is likely pointless anyway
 
@xy_ I suggested that exactly because cake uses active record
 
xy_
So do you think it is a good practice to build a hosting company management app with cakephp (which app would manage products, clients, orders and also connect to plesk, cpanel and domain provider APIs)?
I am planning to prefer normalized db structure with or without cakephp
 
user2358261
hi
 
user2358261
what is the best way to store setting in database ? i can't speak en well, i found 2 way, 1- add all setting in one row and add columnfor each setting, 2- add 2 column one for setting name and one for setting value, then put each setting in one row2
 
xy_
@ALiAkbar go with 2 column
 
user2358261
can you explain me what is it the better way ?
 
xy_
2:28 PM
Wordpress cannot be wrong to store settings
 
user2358261
wordpress work with 2 column?
 
@AliAkbar is your settings key value pairs or is it heirarchal?
 
xy_
Yeah
Only settings table
 
user2358261
@Orangepill its key value paris , it's a array
 
@AliAkbar save it as two columns then...
 
user2358261
2:30 PM
ok , thanx, but if i want to update it, its take to much, isn't?
 
another option would be to use a bitset but unless you are limited in terms of db storage that's uneeded
 
xy_
No
Update would be better with 2 cols
 
user2358261
in 2 column if i have 40 settings, i must run 40 query, but in one row , i just run 1 query for all setting
 
user2358261
and should i put another column for id ? ( for auto increasment )
 
@Aliakbar you would run 1 query to retrieve the settings (it will return multiple rows) and then one query for each setting that is updated
@AliAkbar always put an autoincrementing primary key in.
 
user2358261
2:33 PM
ok thanx a lot for your help,
 
Sid
@DaveRandom Thanks dude tried it out and it works but has increased the run time from a few seconds to over 30 seconds! :(
@DaveRandom I'm working with array that has 5000+ elements.
 
@Sid That's the black magic of quicksort at work, I suspect. Try moving the == comparison below the two isset() checks
 
@Sid an alternative would be to use an SplHeap
 
Sid
@DaveRandom lol @ 'black magic'
 
@Sid Also with that number of elements, and that few elements that you're really interest in, It may actually be worth looping the array, splitting just those you are interested in into a temp array, sorting it, then glueing the two back together again. The nature of quicksort is that it will likely visit all the elements in the set several times for what you are doing, if you can narrow the set down to only those you are interested in it may make a significant difference
glueing? gluing? They both look wrong :-(
 
Sid
2:46 PM
@DaveRandom That sounds like a simpler approach. I'll give that a go.
 
PACE An automatic page load progress bar.
 
@DaveRandom joining?
 
bye all, see you
 
@AlmaDoMundo Hi and bye. :p
 
@Sid For specifically what you are doing, actually there is a slightly cheating O(1) shortcut: 3v4l.org/71an8 (actually thinking about it's O(1 and a bit))
 
@Leri Better. But I'm sure "glue" can be used as a verb
 
@DaveRandom translate.google.com/#ru/en/… turns out gluing is the correct form
 
interesting
 
@ircmaxell when do you arrive in the UK?
 
@Gordon I tried this with my cat, he didn't care.
iPad cat games though, he's all over them.
 
3:00 PM
@Fabien try laser pointers ;)
 
That sounds like a recipe for a broken iPad
 
@Gordon yeah most cats I have had loved them. Him, not so much. Give him a cable or a pencil and he'll go ape with it.
 
Other than to annoy me - why would someone use the extension .phps for a PHP file?
 
@Leri Dropping the e is the usual way, but English does love its irregularities. Neither of them looks right :-S
@Danack I've seen tuts that set up a handler for .phps to dump the highlighted source code instead of execute the file. Quite why you would do that though, I don't know.
 
@Danack why would you use *.php.incl? For the same reason: someone told you that it's the way to do it
 
3:04 PM
@tereško I'm thinking maybe their teacher had a really bad lisp.
 
Maybe someone thought they could only use includes if you pluralise the file extension
 
@DaveRandom Hmm... Sometimes I love my native language, you simply write what you say/hear.
 
There's an actual word for 'language that is spelt like it is spoken' but I can't for the life of me remember what it is. It's not phonetics.
 
Hi, I need little help on php, forms> I have a page with multiple forms. Its same form with parameters but different hidden value. On submit with jquery how to identify which for is submitted?
 
Ebonics
*coolface*
 
3:10 PM
negative -_-
 
@Fabien 'Onomatopoeia'? Or just 'not english'.
 
An Onomatopoeia is a word specific. This word referred to the whole language
Also Onomatopoeia is for words that sound like they're spelled in a different sense, not how they're written. Like "Sploosh"
 
A phonemic orthography is an orthography (system for writing a language) in which the graphemes (written symbols) correspond to the phonemes (significant spoken sounds) of the language. Languages rarely have perfectly phonemic orthographies; a high degree of grapheme-phoneme correspondence can be expected in orthographies based on alphabetic writing systems, but these orthographies differ in the degree to which they are in fact fully phonemic. English orthography, for example, though alphabetic, is highly non-phonemic, whereas Italian and Finnish orthographic systems come much closer to b...
?
 
Close enough. Maybe that is it. I could've swore it was one word though. But that's the same meaning.
 
3:18 PM
in my document i have: "$_SERVER['REQUEST_METHOD'] != "POST", and if this not method post then i have redirect to homepage", i need here print window, it's possible to setup this, because, if i click on print icon then i can print only homepage and not site with my results
 
@MirkoSimic E_AWFUL_EXPLANATION However, I bet the answer is: yes, it's possible.
 
dunno, Leri, at this point answer: "no, puppies do not go to the heaven" is just as likely
 
Sid
@DaveRandom Thanks for your help dude.
I learned quite a few things too.
 
@Sid faster? (I presume, can't imagine it wouldn't be)
 
Sid
3:25 PM
@DaveRandom Yeah much faster! :)
 
Off to home, see you later.
 
MVC = Me Very Confused
 
So my mate asked me, "Is PHP::PDO 100% safe from SQL injections, if you use it correctly?" - Althrough I know nothing is safe, but is it?
 
Using NoSQL is safe
 
3:33 PM
@JonyKale allegedly the only gotcha is that it defaults to emulated prepared statements which need to turn off. But yes, if you only use prepared statements it's 'safe' - for large-ish values of safe.
Nice: Someone wants to help me on a project. Bad: They said "and dont use 5.4 array syntax "$arr = []" please. Im working on 5.3" OMG: This is the PR "Showing 41 changed files with 1,218 additions and 199 deletions."
fixed bug #21 … 81fa379, fixed bug #33 and #35 f6d962d, fixed bug #30 added hasOwnProperty for foreach … e984b6f, fixed global scope. when you use global var, then keyword "var" is no… … 51d4f33, added tools directory … fa61167, updated jsphp 401b493, fixed multiline values 0fd05cd, fixed multiline f51376e
 
If I want to echo a string: "VJ_18-2-_-y11-1-5-02" into a PHP document (specifically JavaScript where I'm injecting it into), how can I do this because it has special characters and currently doesn't work if I just import it raw?
 
@JoelKidd Those words individually, I understand. Arranged like that - it's not clear what you're doing or asking.
 
Sorry, it's hard to explain
Like this one moment
 
@Starsong did the music keep playing while I was afk?
 
$.getJSON("../api/v1/get/stops/?operator=<?php echo $_GET['operator']; ?>&service=<?php echo $_GET['service']; ?>&journey=<?php echo $_GET['journey']; ?>"
All of them work about from $_GET['journey']
because it has special chars it screws it up
 
3:38 PM
He means that the chars gets replaced in the URL bar, he wants to prevent it - I think.
 
Get operator and service both work fine
Just journey buggers it basically
 
@JoelKidd You need to encode stuff that you're passing as get parameters - w3schools.com/jsref/jsref_encodeuricomponent.asp
/er with the correct function.
 
odd, w3schools isn't loading for me
 
@DarkAshelin idk I went to lunch and didnt reopen it
@JoelKidd Try the other URL for W3Schools.
 
I reopened my laptop and the music just continued playing lol
 
3:41 PM
You could either encode it in PHP or Javascript, but yes, the special characters won't get through without encoding.
 
@DarkAshelin Better than when my boss opened his laptop and porn continued playing.
 
@Fabien :D
 
Whatevers easiest, what's the topic called so I can google?
just encode special chars php?
 
@JoelKidd Use the link I sent you. It's really helpful for people who like w3schools.
 
@JoelKidd uriencode
 
3:41 PM
@Fabien wahahaha
 
@Starsong Hillarious :p
@Danack Thanks, trying it now
Odd, &journey=<?php echo urlencode($_GET['journey']); ?> isn't working
I get a JavaScript error when doing it, "Uncaught RangeError: Maximum call stack size exceeded"
 
hi frds i am working on bidding site and not able to find a proper jqeury php auction clock script which works on server any helps !!!!!
 
@JoelKidd You have a function calling itself, or a loop doing the same thing. If you're using chrome, time to fire up the debugger.
 
@Danack I've got it open
@Danack Doesn't make sense though, if I don't echo the PHP
@Danack And just replace it with the URL param, it works
The moment I enter the PHP echo it has the call stack error
 
@JoelKidd Yes - a lot of bugs don't make sense, because by their nature, the computers doing something you didn't expect it to do.
 
3:47 PM
@Danack Well I know the call stack error is because caused by jQuery's $.getJSON
@Danack And I know it's do wo with the $_GET['journey'] value because $_GET['service'] and $_GET['operator' work fine
 
oAuth Sliders Everything oAuth
 
@JoelKidd So what do you see when you step through the code?
 
Ahhh I give up
This is by far the weird bug i've come across in years of web dev
weirdest*
 
Just so you know: The introduction of DateTimeImmutable created a shitton of bugs
The owner of this website (funnymama.com) does not allow hotlinking to that resource (/ajax/order).
 
3:57 PM
Grammar: It's the difference between knowing your shit and you're shit
 
Single PR - "Showing 124 changed files with 10,768 additions and 1,610 deletions."
2
/how about no?
 
@Sid I think it should have a pretty low memory footprint as well, there shouldn't be any COW provoked, but it might be wise to check that if you are going to throw huge data sets at it
@Danack ummm... wat?
 
@DaveRandom I have a new friend in Slovakia. He doesn't speak English very well but he's great at adding random stuff to a project being enthusiastic.
 
I would take being "critical" over "enthusiastic" any day
 
4:03 PM
@Danack That's like a month's work though. I really hope that's at least a squash of shitloads of commits and a misunderstanding about why you squash, rather than actually keeping a load of stuff untracked :-S
Maybe he just likes living on the edge
 
@NikiC rly? I never understood for what it was good for anyway.
 
@DaveRandom No - it's not that much work - he basically copied a load of his own project files into something that's a library, and duplicated/mangled files that were already in there.
 
@DaveRandom the additions might be simply from converting spaces to tabs , ya know
 
@tereško I thought that at first (or line ending fail) but they would be matched with deletions
 
@DaveRandom that would be: "removing all those commented out sentences in the code"
 
4:07 PM
@hakre good for nothing really
 
@tereško No I mean that if you convert spaces->tabs or LF->CRLF or whatever on a line, you get 1 addition/1 deletion, the numbers would balance instead of 10000/1600
 
hmm
true
 
@DaveRandom there is a copy of jquery.js in the project to allow the examples to run without installing any dependencies. He copied jquery from where it was, mangled it a bit, and then put stuck the copy in a different directory.
I know most things need moar jquery - but there are limits.
 
lol, at least include jquery.min.js
Right, I'm heading out, catch y'all later
 
laters.
Oh is that the time - quarter past beer o'clock.
 
4:40 PM
this might be useful
 
5:04 PM
 
5:24 PM
I just got an invite to codementor.io. Looks interesting. I think I'll try that.
some more info on them: techcrunch.com/2013/08/01/codementor
 
hmm ...
 
0
Q: validating in cakephp model compare two fields

indagoI have a model Interesttype where i want two fields to be validated one should not be more than the other and none should be less than a particular set value. Here is my model. class Interesttype extends AppModel { public $primaryKey = 'int_id'; public $displayField = 'int_...

 
am I only one who get the impression that this is just a "rent a debugger" project ?
 
@tereško so what? I will debug their code if they are willing to pay my rate.
 
true
 
5:34 PM
yeah i also see it as a "rent a coder" thing
but it will help alot of people
 
given than I put a reasonable rate for european standards, I doubt I'll see too much crap
 
@Gordon that's 250€/h? :-P
 
@bwoebi nah. I put $100/h into the box. Let's see what happens
 
@Gordon if you would have be occupied full-time there you'd earn a lot :-P
 
@bwoebi well, I actually applied to the new Google Helpout service two weeks ago offering programming help and code reviews. I didn't hear back from them yet. This CodeMentor thing is basically the same, just that the people are already there and they asked me to do it.
 
5:42 PM
I would have placed something like 10€/h for few days , to see what actually is the general experience
 
@tereško I guess I'll find out soon enough if my rate is affordable
 
I would assume that it isn't really .. at least not for anyone outside of Top20 HDI list, maybe even top10
 
I see you're already talking about codementor.io, I just came to see if anyone else got one
Wondering how they chose people and more to the point, where they got emails from...
 
Gooooooooood almost friday evening
 
Speak for yourself, you're not looking after 2 2yeat olds by yourself
 
5:52 PM
How would you answer the question "Describe the steps to optimize mysql query"?
 
@DaveRandom you got an invite, too?
 
@DaveRandom It was your own choice yo
 
user895378
@DaveRandom Good news: I added full TLSv1.1 and TLSv1.2 encryption support today. My secure TLS RFC is going to be really sweet.
 
@DaveRandom yeah, I wondered where they got emails from, too. Especially since they mailed to my php.net address
 
Oh they did? That'll prob be it then they crawled people.php.net
omg chat on android is so difficult
 
user895378
5:55 PM
autocomplete === chat embarrassment
 
I havr no reply links either, @rdlowrey that's awesome
 
@an1zhegorodov step 1: look at the query, step 2: add EXPLAIN, step 3: make sure it uses indexes, step 4: look at the EXPLAIN again, step 5: see how you can restructure it
 
@PeeHaa I actually volunteered for this as well. I am an idiot.
 
Yes. Yes you are :D
 
Speaking of whish, back to work...
*which damn it!
 
5:58 PM
@DaveRandom Did you make you progress on your interview thingy yet?
 
that's not even a word
@PeeHaa yes, but later. Have to deal with this
 
hehe k
 

« first day (1076 days earlier)      last day (3869 days later) »