« first day (1252 days earlier)      last day (3921 days later) » 

00:03
@PeeHaa mringin sunshine
Jay
Jay
00:47
Anyone help me with my sql issue?
Jay
Jay
@Wes I asked it a while ago. Didn't think anyone saw
user652649
8 hours ago, by Jay
guys lets say you have a jquery dialog box open. Inside that box you can click another link to open a new dialog box. But it opens the new dialog box inside the current dialog box. How can you get it to open over the old dialog box?
user652649
and how is that related to php? :P
user652649
are you using a plugin? probably it uses an iframe
01:21
What would you all recommend for sending a lot of arguments over to a mtSQL connection class, as variables, or as a big array?
Or is there a better way?
My arguments will consist of mostly string/varchars variables, but there will be two very large blobs from jpg images and a couple of integers.
Jay
Jay
@Wes sorry not that question. Its the sql one
@ircmaxell Do you approve? :P
Actually, screw it, Diesel.
lol
dafuq man
> My kid's appointment at the pediatrician can wait, I need to get this commit in.
Guys, I want to make a code and distribute it to customers and, if I want to update it, I only have to update it on server and the changes would propagate to the customer's code - What's the name of this function? Auto-update?
and php is the best language to do it? or java?
user895378
02:07
@LeviMorrison I did. It didn't have any real impact on my server benchmarks -- there are too many other bottlenecks that have a much greater effect there. I'm not sure it's worth pursuing at this time.
I'm trying to get a textarea to become disabled if a certain radio button is checked. This code isn't working. Any suggestions? function displayType() {
if (document.getElementById('Male').checked) {
document.getElementById('dressTextArea').disabled;
}
}
user895378
I find it cute that the new Facebook programming language even copied the website I work on for their docs. Even use the tools I created :D
user895378
Facebook: keeping it classy since ... well ... never.
02:52
haha
 
1 hour later…
user652649
03:56
how does that work tho? is it a fork of php or is it something like coffeescript?
user652649
morningevery1
Good morning, first time in chat
04:35
@Wes it is a fork of php which is targeted for HHVM
@LeviMorrison but without allowing null, that would be really difficult to use right?
user652649
05:03
@andho i have to say that something is interesting...
05:17
Hi, please anyone help me out to solve this problem that i am working in oscommerce site and i add payment methods to it from its admin and they work well for 1 day after that they automatically removed from my site. please anyone suggest me what is the problem.
user652649
@LeviMorrison why not function ?MyClass myMethod() ? would be easier to read when arguments list is lengthy...
06:51
Empty room :/
only insomniacs left
Morning
user924016
07:17
Mooornings
07:32
Morning.
user924016
=] time for strong coffee
mornings
Good evening
It's always morning in Room11!
oops my bad, first time newb here
user924016
07:36
=]
thanks read it
I had a horrible experience with GoDaddy yesterday night
outtage again?
@user3148070 nope
07:38
@iroegbu what was it then?
they are running < PHP5.4.0
@iroegbu i was using go daddy for 1 company till they had a region outtage and there was nothing i could do but tell them the hosting went down =/
user924016
they host the kkk
user924016
find another provider
if you're on they're new cpanel linux hosting, you can actually select the PHP version you want. I'm on 5.5
their*
07:44
I'm not interesting even if they use PHP6
I was helping a friend with site... at some point I gave up... Everything I wrote on local machine had to be rewritten... NO PDO!
what framework are you using?
they most definitely have PDO
if you've been a customer awhile you're stuck on the old hosting, and I agree. it was lacking. best thing i ever did we end that account and create new one. their new hosting is much better
@Jimbo ping
user924016
@AndrewBrown why did you not change company?
@AndrewBrown I'm not their customer
07:51
I helped some clients set up new accounts, and I saw the new features. just called them one day, and they helped me cancel the old, and setup a new one.
user924016
ah
@user3148070 what framework are you using?
@iroegbu codeigniter for now , thinking of moving on to laravel
I swear that's what came to mind!!!
but I didn't think Laravel
man you must be psychic
08:16
You should consider dropping both
@LeviMorrison you want a patch for return type hints, or you doing it ??
user924016
@cspray looks like my old dog
user924016
(avatar)
Morning
user924016
09:11
^ Morning
Happy Rebeccaday
@salathe The other comments have -20/-28? That seems kind of unlikely...
@DaveRandom I'm assuming the link made it around to some nodejs fanboy site or something
@salathe I'd have thought they would upvote it
@DaveRandom ok, a php fanboy site then :P
09:18
@LeviMorrison Nice. The question is, do you want to allow people to use multiple return types
For example, functio whatever() : array|bool { //FALSE on error
@salathe lol
@SecondRikudo I'd rather have array|false for that common return idiom
(yes I know false isn't a type)
@salathe (I'd rather not allow it at all)
@SecondRikudo (I'd rather be having a beer)
But I'm asking this because of the suggestion to introduce the ability to return an optional null aside of the noted type.
Why would you need to return a null instead of whatever it is you said you would?
09:29
I refer null to false
I have chrome extension for me that replaces text in textareas and inputs. I was thinking about publishing one. Do you need that kind of stuff? I.e. does it worth to publish?
Note: does not work with dom.
private function getName() {
    return isset($this->name)? $this->name: null;
}
null
@SecondRikudo Because that's how C programmers think
It also makes sense in some OOP situations, where you can't create an object to return but it's not actually an error
(accessor to uninitialised property, for example)
good morning
09:34
Morning @AlmaDo
@Leri did you overcome your firewall? :p
@AlmaDo Yep, boss became available
^ boring
BTW, what do you think about my plans with publishing extension? I don't want to publish not useful stuff..
which extension?
09:36
@Leri Why? Everyone else does...
in any case: it's better regret of things that were done than regret about things which were not done
5
@DaveRandom Because I am a cool guy. :D Seriously, I am planning to develop actively for (web) store(s), so I don't want to start with bad/nonuseful apps.
@Leri what exactly does it do?
@Leri my though: do it
@iroegbu Replaces text within textareas and inputs. You can use regex as well.
09:39
@Leri Pingback
@Leri As PHP extension?
Sounds more client-side...
@AlmaDo Agreed.
@DaveRandom Nope, chrome extension. pure js
@Leri Oh right, makes more sense
@DaveRandom In that case, I'd much rather have a Null object rather than the weird typeless faceless null. That Null would be passable to every object hint.
@Leri so do it. only then you'll know if this extension is useful or not, good or not
09:41
@Jimbo Morning. I have two questions 1 is okay another may be stupid.
Which one do you prefer to hear first?
@Leri find and replace within webpages... will be useful to some people.
:D
@Leri I'm in a good mood today, I'll take the good one first lol
@SecondRikudo Wholeheartedly disagree. The NULL pointer already is valid pseudo type, and it does make sense in PHP. The only issue is the cloudyness that PHP has brought to the party with isset()
however, ask in this room is you'll stuck :p we'll always try to help
09:42
And even that's not a problem in itself, the issue that there's no varexists()
@DaveRandom The fact that you can't pass null to a hinted parameters ticks me off though.
@AlmaDo, @iroegbu So I'll make few screenshots, maybe write a video and publish it to the world. Thanks.
(: good luck!
@SecondRikudo Why?
09:42
@Jimbo Which torrent client should I have installed on windows?
It would make most sense to pass Null objects in tests and whatnot when you don't need everything.
It would make most sense to pass in Null loggers or ErrorRenderers if you don't need them, for instance.
@Leri transmission, it's the only one supported atm. Aim in the future is you can write your own code to get data from your chosen client, change a config variable, and it'll just work.
@SecondRikudo That's a different issue. You just don't make the parameter optional if you require it
@DaveRandom What do you mean?
$something = new Something(Foo $foo, Bar $bar, Logger $logger);
Why can't I today do something like new Something($foo, $bar, null)? If I don't need a logger in a test environment?
@Jimbo Cool and now the second question comes. How is it possible to let end user seed just by opening seeder in web browser without installing anything? sorry if I missed whole technical point
09:45
@Leri I think you'll want this one
@Jimbo Thanks, bookmarked.
@SecondRikudo You can, just change the signature to __construct(Foo $foo, Bar $bar, Logger $logger = null);
@Leri Oh, I don't write any actual peer to peer code. That's handled by the client. The aim is you have a seedbox somewhere or I host a big one, point all this to it, and it's just a "front end" for the client - except you can download the files from the server in-browser, convert them so they can be streamed in-browser
It's just a big, elaborate front-end for your seedbox
@DaveRandom But I don't actually want to allow null in production.
That's a valid usecase for a test, where I want to indicate that "in this test, if anything goes wrong, it's definitely not the logger because I haven't even put in one".
@SecondRikudo Not relevant. Your code shouldn't care what environment you are running in, only the bootstrap should.
Either the logger is optional, or it isn't. If it isn't, it must be mocked in tests
09:49
@DaveRandom You are forgetting that this is OOP, we're talking reusability and whatnot, and that is a faulty API, because if you do indeed pass null (because it's allowed, right?) in production, the whole object might fail.
@Jimbo And how do you think would not p2p seeding make sense (well, server will be just bridge...)?
@DaveRandom Not necessarily.
Passing null (even if the object is required mind you!) in a test indicates that the null parameter has nothing to do with the test, and allows you for quicker debugging of what caused the problem.
@SecondRikudo So don't pass null in production. This is what I mean, it's the production bootstrap's responsibility to make sure a logger is passed in
From a reusability point of view, having the object care whether this is the production env is wrong. It should only care whether or not it has been given a logger.
@DaveRandom Sure, I won't pass null to production. But if you take my Something code, and you see that the API allows for null to be passed to the logger, aside from a comment or docs, what's preventing you from passing in null in whatever environment you want?
@Leri How do you mean? Torrent-data wise, I'm just pulling the data that the torrent client "sees", and displaying it in the browser instead
09:51
@SecondRikudo If you allow null to be passed, the object should work without that thing, it just won't log anything
Your code's primary function is to perform its primary function, not to be tested.
You should make you code testable, but that doesn't mean that the code itself should worry about how it is tested
@Jimbo I'll elaborate on technical details later. I think that's future of that project..
Logging just becomes a no-op if no logger was passed :)
^ that
@Leri Prob best get it working first :P
Well, I need to look at security restrictions, we'll face when doing that. Otherwise it's doable.
09:55
btw @Jimbo I really am going to write a transmission SDK at some point in the very near future, just got a couple of things to deal with and I'm going to pick it back up again
@DaveRandom In C?
@Jimbo No, in PHP
Unless you especially want it as an extension, but even so I'd write it in PHP first
@DaveRandom You got a different way of doing it than I am? I could only do it in this awfully hacky way by debugging the output via STDERR, stripping everything until the JSON is given, then parsing the json
@DaveRandom That'd be awesome, I've never done RPC stuff before. I remember seeing that and being like.... uhhhhh.. nahhhh
10:03
@Jimbo It seems to be pretty well specified, it's written in quite an RFC-like manner, so it should be pretty easy (famous last words)
@DaveRandom Would it involve this: php.net/manual/en/ref.xmlrpc.php
@Jimbo I doubt it. It would probably just involve Artax and a wrapper around the DOM.
I just got told I'm allowed to publish things I write for work !!!
how fucking cool is that ...
Unless it's trashy novels I'm not interested
:-P
no but seriously, my job is allowing me to publish code they paid me to write ... that's never happened before ...
anyway .... back to work ... lata :)
10:08
@JoeWatkins Is much of it useful to people outside your organisation?
Ahh, I remember when I thought MVC meant each layer had to be separated by calls over the HTTP protocol :')
It was like "do a post request to this controller, which does cURL request to retrieve data from the model layer"
:D
@JoeWatkins it's very fucking the cool!
> strtotime(): It is not safe to rely on the system's timezone settings
FUFUFU
@DaveRandom right now I'm working on a test_helpers replacement that is compatible with opcache, we can't run unit tests with opcache loaded because test_helpers faults, because it's written in a way that doesn't make sense ... so that's useful ...
@Jimbo Actually a lot of our code does kinda work like that if you look at the application as a whole (with a pretty hefty memcached layer, obviously).
@Jack Derick makes the most awesome decisions, I have no idea what you are talking about.
Who's Derick? ;-)
10:15
No I idea, some dude. I believe he hangs around with that Tony Ferrari guy
Writing deployment scripts is fun :)
Hello, I need Help
Who can help me?
I don't need help with a code
I have general question
10:27
not sure if there are generals in the room.
Ten hut!
Shit, I've just uploaded a few hundred items and then found out they weren't added to the database, because .... empty function =(
E_NOT_ENOUGH_TESTS
Or E_TOO_MUCH_TESTS. :)
I'm pretty sure that's not the case
Jay
Jay
E_YOU_IS_LAZY
10:35
FFS GUYS
E_
I have a perfectly good theory why the nose of the sphinx is missing ... aliens!
@Jack It involves the Stargate.
Probably sent off for a nose job and never came back.
hi
Anyone who can help me with Server sent events
10:55
@Jimbo E_REBECCA
@HamZa looks like a trolling attempt (c) you
@AlmaDo wow you got 17K rep. I didn't even notice :O
11:17
lol. That Deal With It is awesome.
@tereško You keeping up with Naruto manga? I forget.
@JoeWatkins @salathe screwed up.
@LeviMorrison @bjori @webarto @salathe fix it fix it fix it ...
@SecondRikudo Lies!
@NikiC ... got minute, pick your brain ?
11:37
/me hates being in unsupported region.. all the time...
@JoeWatkins zOMG they broke my Holy Book
inorite, bitches ...
@JoeWatkins sure
thnx
I want/need to turn exit into a function call, so I used op array handler to turn ZEND_EXIT to ZEND_JMP to jump to a newly created ZEND_DO_FCALL which calls a user function to determine if exit should really be invoked, like test helpers exit overload, if the user function doesn't want to exit then I set the opline back to where it should be ... without opcache loaded this all works fine ... but it screws up jumps, I'm not able to turn ZEND_EXIT into ZEND_FREE or ZEND_DO_FCALL directly
can you see a sensible way to do this ?
@JoeWatkins where are you doing this conversion? zend_compile or some post-processing in an ext?
11:49
post process zend extension, op_array_handler
so before opcache optimizes, I'm not allowed to patch php, gotta be an ext ...
@JoeWatkins And just hooking into the exit opcode won't do?
no, the user opcode handler won't allow a graceful overload either, thats how test_helpers is doing it ...
why doesn't it allow a graceful overload?
Who here actually types correctly? I have been doing it with two hands for 12 years but not the correct way and can do it fast enough. Does you think it greatly speeds up your coding?
because o+ optimizes away the dead code after the ZEND_EXIT opcode ...
so if you leave a ZEND_EXIT in there you loose everything after the exit ...
11:52
ahhh
brb shops, I'll be back ... any thoughts mucho appreciated ;)
@David As long as you type what you want, you type correctly. :)
I also tried jmp either side of fcall, again works without opcache but crashes opcache at
0x00007fffef722931 in zend_jmp_optimization (block=0x7ffff7fcf000, op_array=0x7ffff7fccfc8, blocks=0x7ffff7fce830, tsrm_ls=0x1259770) at ext/opcache/Optimizer/block_pass.c:1330
@JoeWatkins What is it that you actually want to achieve?
i.e. why do you want to change the exit to an fcall?
11:54
overloading exit like test_helpers does, I use fcall to invoke an internal function by name, which in turn invokes the closure set by user ...
brb
@Leri do you do it the formal way like the way books and stuff teach it?
i want to learn CS-Cart .
Then what is best way ?
@JoeWatkins Okay, my tip: Disable the dead code elimination flag in opcache ^^
modifying the op array sounds all kinds of crazy
@David I have no idea what you are talking about.
I mean, it's not like you need super crazy perf for running tests ... and it's not like removing code after exit is going to give that anyways
12:01
@Leri You know the way some people type with one hand staring at the keyboard with their index finger to hit the keys and some people use two hands but still just use one or two fingers per hand. I'm talking about the correct way to type with all fingers with your two index fingers starting at F and H on the keyboard
F and J*
can someone help me with something real quick? need replacement for mysql_result. moving from mysql to mysqli and i found somewhere i absolutely need to use it because while row is not possible i don't think.
I'm using the OOP syntax, is it possible to get the key/value from the stored result like $query->some_table
@HamZa rep. farming till 15k. from 15k I became slacker, thus, only occasionaly answering on tririal questions - and mostly trying to find some good questions :p
@David As a programmer I don't care about that. My job is not to type fast/correct. :)
@Leri But I'm starting to think maybe it would speed up my programming even more
Descent IDE and experience is what really speeds up your development. Seems like your doing microoptimization.
12:14
you aren't a typist, are you?
No but I came across a video on youtube of this programmer who could type correctly with all 10 fingers and the speed he was coding was frightening so I said I need to have a go at this!
I type with fingers, but I don't consider that special... If the ide shows me the function or variable by the third letter I can deceive you into thinking that I can touch-type
@r3wt 3v4l.org/PgDED But this is awful. :)
@David Big code does not mean good code. I.e. if type speed really decreases dev type you are doing something wrong or weird.
@NikiC well I suggested we disable the optimizations at first, but apparently we want the optimizations production has so that tested code is as close as possible to production code ...
@Leri My typing right now is extremely quick but I only utilise 2 fingers from each hand so there is 6 just left there doing nothing!
12:21
@David They do but goes unnoticeable. I am pretty sure, you actively use them to press shift, control and enter. :)
I'm starting to see it like playing the guitar. Some people just won't use their pinky finger so they are only utilising 3 fingers instead of 4. It takes some practice and work but once you strengthen the pinky it is well worth it. I have 6 fingers I don't use while typing even though I can do it quickly but 6 fingers extra could really help
@JoeWatkins Your tested code will be closer to production if you disable an optimization, rather than introducing hardcore oparray hackery ;)
Well there's good thing about it. You don't have to worry if you lose 6 fingers. :D
guess we could have the optimization disabled in production too ...
@Leri Thats true. I am learning from this site for free. I am still on the 8 main keys across the middle of the board. My max is 31 words per minute. Progress is slow...
@Leri I just thought also when setting up linux servers through the terminal it would speed up typing out commands
12:26
@David IMHO, you are investing your time wrongly...
Jay
Jay
anyone got a good link about making pagination work with folders that are inside folders, not data from the database
@David Yeah, it has huge impact if your server will be up 1 second later or earlier. :)
@Leri I'm not spending ages on it though. I started this morning and I have done it for about 10 minutes 5 or 6 times with breaks in the middle.
@David learning dvorak?
It looks more professional too I think. When you go out to fix a network or fix a computer and there is nearly always at least one person staring down on you while your working. If I put in 30 mins a day by 6 months I should be decent enough
@andho Is that a person or ?
12:30
@David a person and a keyboard layout named after that person
@andho Is he some extremely fast typer or something?
@David no, he developed the dvorak layout, which according to people, is more efficient than the QWERTY layout
I must check this out
I am in the process of learning it. Will let you know how it goes once I'm done
@andho But the thing is if you learn it is it not useless to have that skill when you don't have that keyboard
12:32
@David I just took some online test and it's: Words per minute (WPM) 54. Per their statistics it's better than 3/4 and sometimes I look at keyboard. Honestly, I hate that academical stuff...
user895378
morning
@Leri Link me I want to have a go
@rdlowrey Why do you wake up at 9am-ish when you don't have to go to work :P MORNINHG
Sleep until 12, like normal people.
user895378
E_OLD_AGE
12:35
^ unfortunately, OLD_AGE isn't "E_" because couldn't be fixed
@AlmaDo Stop reminding that we are getting old. -.-
@Leri Wow I did better than I thought. After doing that I noticed I never looked at the keyboard once which is a surprise. I got 76WPM 75 correct words and 2 wrong. Better than 90.75% it says. Fuck the correct way to type I don't need it now
@Leri we all doing it. every day, every hour. In fact, I've became older on 20 seconds just during typing this message. Past is in the start of it and present - in it's end
Since I don't use all fingers I do have to do big jumps around the keyboard to hit certain keys which slows me down I'd say
But my accuracy of landing back on the correct key without looking is good. I'd say I won't bother learning to type with 10 fingers for a while anyway
What is Python used for in web/applications?
@Duikboot programming the web/application.
@AlmaDo nice
Best error message evah:
OSSEC HIDS Notification.
2014 Mar 21 01:08:58

Received From: pieterhordijk->/var/log/secure
Rule: 1002 fired (level 2) -> "Unknown problem somewhere in the system."
What a lovely error msg.
Is it good if you have knowledge of python as programmer?
Good evening friends.
12:54
@Duikboot it's especially good if you're a python programmer.
I have no knowledge about Python but I was think if it can have a ++ value learning it.
9am is the best time to go the the gym too.
@Duikboot learn it, and find out.
I win
[joe@localhost nopz]$ php -dopcache.enable_cli=0 test.php
[SKIP]
array(0) {
}
in callback
[WORKED]
[joe@localhost nopz]$ php -dopcache.enable_cli=1 test.php
[SKIP]
array(0) {
}
in callback
[WORKED]
[joe@localhost nopz]$
I'm a web developer. I want to host my web application on https. However, there are many subdomains in my web application, I only want one particular domain to be over https. When searching for various SSL certificates that I can buy, I came across "wildcard" certificates. I guess they are for having SSL over all your subdomains. (and they are costly). Since I just want SSL on single subdomain, can I purchase a single website SSL ?
12:58
Why not just SSL the whole thing?
It's cheap enough.
If you are going to pay anything, why not secure your whole domain for the (small) extra cost?
SSL for whole thing.. wildcard ?
actually it's my requirement.
SSL over other subdomains is not required
I just require SSL for one sub-domain.
but why would you not?

« first day (1252 days earlier)      last day (3921 days later) »