« first day (1566 days earlier)      last day (3375 days later) » 

10:00 AM
@DaveRandom because it has one function introduced that I use in one place in one project :p
 
@DejanMarjanovic still supporting some applications with php 5.2 and mysql 4.1
 
5.6.3 allowed me to cut like 6 lines of code!
 
@PaulCrovella orly? what function is that?
 
@DejanMarjanovic I'm on PHP 5.3.10, you looser
 
@DaveRandom gmp_random_range
 
10:01 AM
@DejanMarjanovic yeh but it's prob that "fake" 5.3.3 with the backported patches
 
ThW
Morning
 
@DaveRandom Correcto, Debian thingy one I think.
 
I think there is some security fix in 5.6.4 that's worth having actually, but as it stands I only actually require >=5.6.0 for splat
But if there is something I need from a new version I will happily bump the requirement
 
yeah as long as its compatible no reason to force a newer version, you don't have to tell the users of the library to secure their systems
 
@MarcelBurkhard That is true, but on the flip side you should maintain compat for the sake of it
 
10:05 AM
I enjoy deleting code too much to maintain compat if I'm not compelled to.
 
@DaveRandom "Provides components to achieve PHP version independence" don't get it :D
as in function_exists() ?
 
no more PECL http vote :)
 
@salathe I'm both happy and sad that failed. I want it broken up into smaller components, but it's a bit of a shame because Mike has put a lot of work into into it in recent weeks
 
Mormngin poepl
 
user image
2
^ Clamps
 
10:24 AM
just restructured a 400 line symfony controller to a dependency injected controller-service (first time ever after input from @Patrick yesterady) without missing anything and it just works,... awesome
 
congrats
 
@Fabor lol took me a few seconds to understand it :D
 
:).
Watching anything good these days?
 
@Fabor Parasyte mainly
And Aldnoah.Zero
 
hello
 
10:28 AM
hello
 
nice to see a group for php
is php the most easiest of all programming languages?
 
hmm I thought it was python or .net
 
No, php is the easiest
 
.net more difficult that PHP?
 
10:31 AM
Yes
 
ok thanks for the clarification ronnie
 
There is a speech for texas hold'em that would probably fit here as well: Easy to learn, hard to master
 
good mornings
 
@noob Your welcome. Have fun coding
and out of the langs you mentioned, just pick one, and get started =]
 
PHP isn't the easiest programming language... that should probably go to BASIC
 
10:33 AM
iroegbu I is really hard to say that it is easy or easier never the less easiest.. I just think it was the answer noob was looking for.
 
lol... what else to expect, asking in PHP room, answer will probably be JS in room 17
 
or should I concentrate more on php frameworks
 
no, focus on learning all the syntax while doing small assignments, then do github.com/PatrickLouys/no-framework-tutorial
 
@noob it depends on what you're planning to do
you don't do desktop development with php
 
lol benjamin I don't know!!
I want to do something good and hard
 
10:36 AM
=]
@noob windows user?
 
start with doing something good
 
@MarcelBurkhard awesome :)
 
or just something
 
people say php is easy..so what is worth challenging or learning?
 
noob learn all 3, python, php and C#, but only 1 at a time 0]
 
10:37 AM
@noob everything that you don't know yet is worth challenging and learning
and if you don't like php, you switch to a different language
 
yep @ronni..windows user..I live upto my name :)
 
most of the effort goes into learning abstract thinking etc
 
try C# then, make a few desktop applications, gives you results that make you feel good about yourself. If you start with PHP you also have to learn web development in general, which includes CSS, HTML, JavaScript and how browsers work etc
 
@noob good php ain't easy
@noob VB6 is easy :P
 
WPF is ez pz to start with
you drag & drop, which gives you an early feeling that you're making something
 
10:38 AM
is VB considered as a programming language?
 
and after that it all goes downhill
 
posted on January 29, 2015 by hakre

Just linked: Learning OOP in PHP Tagged: OOP, PHP

 
@noob start with something you want to make for yourself
 
hmm how different is C# from other oop languages?
 
ask for feedback
learn
it's very similar to java
 
10:40 AM
@BenjaminDiele only, y'know, good
 
@BenjaminDiele that's what I'm trying to figure out...I want to learn something good and useful not just for the sake of job or anything else
 
@noob stop asking and start coding =]
 
@DaveRandom eh, tastes differ. I do prefer C# over Java, but each has its uses
 
@rdlowrey Suggestions for why a certain site returns the correct HTML with Artax but not @PeeHaa's requestable. Guzzle also gets a different HTML return. We have done all the obvious proxy/header stuff. So it's just curiosity now. Can provide link when we're both online for pirate reasons.
 
@noob C# is a good place to start (IMO)
 
10:41 AM
@noob Just pick something and stick with it for a few months
It's never wasted time
 
@BenjaminDiele afaik the only use case Java has over C# is portability
 
damn I wish php was more like c# ... lol...
 
k thanks for your suggestions guys back to coding.. this time C# brb
 
@DaveRandom perhaps license costs play a role too
 
but yeh, that is not nothing
 
10:42 AM
@DaveRandom well not even that tbh, Java isn't as portable as you might think.
 
.Net went "opensource" some time ago If I remember right
 
@DaveRandom whereas you can cross compile C# with Mono to linux
 
@RonniSkansing me too. I've quit PHP professionally to start working in .Net
 
@RonniSkansing true that
 
@BenjaminDiele I hate working on windows.. =(
Maybe in 5-10 years if .NET open source is widely used
 
10:44 AM
@RonniSkansing It's not that bad. Especially W8
The nice difference with linux is that windows just works.
 
@DaveRandom I was working on eclipse scout (look it up if you're interested) and we had to test it on oracle jre, openjdk, mac, linux, windows and some used swing, others swt and so on, pain in the ass
 
BenjaminDiele it's not the design I do not like, its the terminal, how things work
 
No need to fuck around with config files and commands, etc etc
@RonniSkansing I haven't needed the commandline seriously in a long while for .Net
 
@MarcelBurkhard Yeh, I'm not sure I'd be prepared to put that into production yet though. Is mono still basically an IL interpretter/port of the CLR or is it compiling down to machine code now? I haven't looked at it in a while
 
Oh @DaveRandom I need your dad knowledge. May have put a hole in those radiator looking things in our fridge while trying to chip out ice.
 
10:45 AM
@BenjaminDiele makes me sad..
 
Recommendations?
 
@Fabor ping me please when you find out... now I am curious too
 
@Patrick Will do. People getting so curious I should start a SO question for rep :P
 
@RonniSkansing Why? Almost everything you need is accessible via GUI.
 
@BenjaminDiele the GUI is just a wrap over the cmdline
 
10:47 AM
@Fabor Err yeh, you probably need a new fridge. I suspect that unless you are a refridgeration engineer it would cost you as much to get that repaired as it would to just buy a new one
 
@DaveRandom freezer not fridge*
 
Yeah, it offers convenience
 
cmdline is much faster and more expressive
imo
 
@DaveRandom Suspected as much. Shame it's not compartmentalised.
 
and better for the shoulder
 
10:48 AM
@RonniSkansing cmdline requires a lot more knowledge as well. Very fun when you're working with an unknown system
 
It was making a nice fizzy gas noise yesterday. Naturally turned off now.
 
@BenjaminDiele yep =] that is why I have a hard time with Windows, I am not good with the cmdline
and I hate clicking around in a UI
 
@RonniSkansing Eh, just need some time to get used to it.
 
makes me feel like a wp dev
 
Whatever floats your boat man ;)
 
10:49 AM
clicking around a controlpanel =[
but yea, whatever floats the boat
;)
 
does anybody here know the max size limit for a mysql record (field) (data field sent from php to "insert into" query)
?
 
nice playthings
 
@Julo0sS max_packet_something
max_allowed_packet
1 message moved to Orphan GIFs
 
@DaveRandom I don't know 'bout that..., but with .NET going open source the future is bright
 
10:57 AM
if I want to post a autoboxed picture / gif on chat, do I just put in the link or should I add somekind of magic?
 
Man that'd be one annoying friend,
 
@PeeHaa Thanks
 
@RonniSkansing Just the link. Make sure it is not ssl and has an image extension because SO dev team is strange...
 
=] Thanks, well I am a dinosaur
 
Old
:P
 
11:01 AM
=p
 
1 message moved to Orphan GIFs
 
Back to redis ttyl
 
@Fabor I... I think he said vulva...
 
lol
 
11:05 AM
@DaveRandom mulva?
 
I love Seinfeld
 
11:24 AM
@Fabor there was a video with girl almost orgasming from dat base
 
I feel if I had a car I would like a good bass system. Feels awesome in your chest. Wonder how good it is for your ears though.
 
Basically, it's pretty bad
Cause you feel highs pretty sensitively, but lows no. So you are going to crank up the volume and it feel alright for, but your ears will cry
 
@Fabor I had a mildly thumping system for some years, then it got stolen. Ears are mostly okay despite it and other loud environments. I've no desire to get another one - the novelty is long gone.
 
what is Saas?
 
I'd enjoy the novelty for a while I guess then. I need a car first.
 
11:30 AM
*SaaS
 
@HassanAlthaf you can search that, there is no need to ask
 
=]
Nice video Fabor
 
@Fabor you can't into markdown :P
 
stupid markdown
 
11:32 AM
@Fabor thanks.
Time to code hard.
 
Hurry up Friday
 
lmao
Cant wait for the 20th of Feb
 
what happens on that date?
 
Nothing, he just can't wait for it.
 
=] hehe ... still giggling
 
@bwoebi for the record, I have no problem with the warning itself, I just think we should ship with a default value of UTC and get rid of it that way. It genuinely doesn't make sense to do anything date/time related without having a timezone set
 
@RonniSkansing Project showcasing at school. =]
 
@HassanAlthaf ah
 
Taking in Science and Technology Competition
Hehe
*Taking part in
 
Hm.. Whenever I enable xdebug and turn on debug listener in phpstorm, command like this segfaults: php -r 'echo "a";'
 
bah, it's a bit long :(
 
@PaulCrovella Remove the "fucking" and deboldify it
 
But if I use file, rather than -r argument, it's all fine
 
@HassanAlthaf are you gonna setup a demo somewhere so we can look into it?
is this: sourcemaking.com/refactoring/replace-method-with-method-object something you actually do in real life?
 
11:53 AM
unreal engine 4 is actually really realistic
 
@MarcelBurkhard Once this project will be done, I probably will. I'm not sure, it depends on how much time I have. Because I got my important exams in March. I got my Ordinary Levels in May.
 
@MarcelBurkhard I've been known to, but sometimes it doesn't make a lot of sense. There's no particular rule of thumb I can think of either. I suppose it depends whether the procedure can be broken down into discrete stateless tasks - I certainly think that the idea of "turning all local variables into fields on the object" doesn't sound like a great idea.
Sometimes you have a procedure. It doesn't make sense to oop-ify it for the sake of it.
 
yeah I agree
 
@SergeyTelshevsky Come back when you have actual gameplay when a game is released :P
 
12:03 PM
@PeeHaa reminds me of the HoloLens demo
@PeeHaa I'm quite sure its gonna be max 10% as cool as you will think judging from the video
 
Huh, WordPress actually updated their requirements page
Still, the wording needs further improvement
 
@AndreaFaulds Do they list "criminal insanity" as requirement yet?
 
@AndreaFaulds it's been mentioned before yes.
 
Their statement on why they support old versions is rather lolwp
 
@AndreaFaulds I'm not impressed that they "recommend" the oldest non-eol php version, they should require it. ^^
 
12:09 PM
> Why not the latest, greatest, bleeding edge versions?

> We’re very aware that the latest versions of PHP and MySQL aren’t right for everyone, and that sometimes hosts can be slow or hesitant to upgrade their customers since upgrades to PHP and MySQL have historically broken applications.

> While sometimes we as developers miss the whiz-bang features that might be in the newest version of something, we find that with just a little extra work we can usually accomplish what we wanted to do without placing the burden on you guys. Innovation is seldom hindered by platform.
 
@PeeHaa yeah, I doubt any pc/console would handle all the rendering, even the static version without any action going on
 
@MarcelBurkhard Yes, I've said the same: meta.trac.wordpress.org/ticket/802#comment:9
> While sometimes we as developers miss the whiz-bang features that might be in the newest version of something, we find that with just a little extra work we can usually accomplish what we wanted to do without placing the burden on you guys.
Oh no, the poor users might have to switch from 5.2 to 5.4 D:
 
@AndreaFaulds your wording seems very good, although the first sentence is a lie I think it would be better to write it that way
 
How will they ever cope with the removal of register_globals??!??!?????????
@MarcelBurkhard Well, from my perspective it's not quite a lie: 5.4 is what you need for WordPress realistically, you should only use 5.2/5.3 if you really have to
 
Using a fuzzer until it works
 
@AndreaFaulds yeah but it works, somewhat, thats my point
 
Danack which redis package/lib (in php userland) do you use?
 
☝︎basically that
 
12:20 PM
@AndreaFaulds did you choose to use/support wordpress or do you simply have to?
 
I don't use WordPress :p
But I do care about PHP security, and WordPress is an active threat to that
 
@AndreaFaulds ok
^^
@AndreaFaulds I hope a lot of people will start using drupal 8 when its ready
 
12:35 PM
thoughts on pecl_http ?
I'm not seeing a reason to move it from pecl, there doesn't seem to be any real reason to do it .... that we can isn't enough of a reason ...
 
@JoeWatkins The RFC was updated, but it didn't change anything important
 
yeah i just scanned it ...
 
> The RFC is an improvement in that it covers more of *what* pecl/http is, but it still doesn’t answer the most important question: why? It still doesn’t answer any of the following key questions:

> * Why do we need pecl/http?
> * Why should pecl/http be merged into PHP core?
> * Why should pecl/http be enabled by default?
> * Why should we have our own HTTP API and not follow PSR-7?
> * What does it offer over PHP’s existing HTTP capabilities?
> * Why should we merge this rather than, say, filling in gaps in PHP’s HTTP capabilities?
☝︎ how I put it
 
38 rep to go for my first 1k rep :P
 
12:42 PM
@JoeWatkins I'd be happy for some of it to be in core. I want it broken up into a few interdependent pieces, the core components (message parser and various value objects) make sense in core, other stuff like the client component probably shouldn't be there
 
@LeviMorrison Because the leaks only pop up when you do certain specific things. Things your tests didn't do.
@ircmaxell :)
 
someone just wen't through my stuff and upvoted it for me to reach 1k, while that is kind I didn't ask for this and think that person should undo it because that person didn't read my stuff before upvoting, thx. :D
 
@MarcelBurkhard It probably wasn't anyone in here, and also it will probably get reversed
 
@DaveRandom I'm pretty sure it was, i had 38 left to go and got 4 upvotes shortly after mentioning it in this chat room
^^
but whatever, doesn't really matter
 
@MarcelBurkhard If it was one of the regulars in here, they will have read the answers before upvoting them. If it wasn't one of the regulars in here there's a good chance they've already gone
 
Most of my time after deployment is spent on making emails work. Is it just me sucking at it? :-)
 
if you should become obsessed with any imaginary commodity let it be the souls of the damned, not internet points
 
Trolololo
 
@Leri No. It is email being the worst technology in the domain of the internet.
 
gets the job done quite well though
 
12:50 PM
srsly, we stopped using FTP and telnet like 20 years ago. Why the fuck are we still using email in its original form?
@MarcelBurkhard No. No it doesn't.
 
comfort
 
@DaveRandom I can't stress this enough, or explain to people.
 
12:52 PM
That just proves that the W3C cannot be trusted with the future of the internet.
 
W3C sucks.
The HTML validity checker has still not been updated with HTML5.
It says <!DOCTYPE html> is invalid.
 
@DaveRandom Because ordinary people are used to it, unlike ftp or telnet
 
@HassanAlthaf thats just not true, it is in experimental mode though
and HTML5 isn't finished I think
 
@Leri The UX for the average user doesn't need to change, we just need to come up with something less hideous than MIME-over-SMTP, something that will be trivial for mail clients to implement
 
@HassanAlthaf I'm pretty sure their validity checker was/is based on onsgmls, and html is no longer sgml-based so... things will need work.
 
It's the infrastructure that's wrong, not the whole concept
 
@PaulCrovella it's been there for ages...
 
I so want whoel to mean something ...
 
Wait nvm, <!DOCTYPE html> is now considered as valid.
 
12:56 PM
@MarcelBurkhard shows how long it's been since I've bothered with their validity checker :)
 
@JoeWatkins Sounds like the name of some kind of obscure rodent maybe
 
I was like 'fuck this!' when it showed '<!DOCTYPE html>' is not valid after a test like a year ago.
 
I only use it to detect unclosed elements
 
@MarcelBurkhard if you use a cute IDE, you wouldn't even bother using that for detecting unclosed elements.
 
IIRC its been there (with a warning about it being experimental) for 3-4 years
 
12:57 PM
facebook got some kinda product they are selling to companies that eliminates the need for things like exchange servers, it uses familiar facebook ui and features to provide a workflow toolset to non-tech and tech sector companies ...
 
@HassanAlthaf I don't need my IDE to be cute as I don't use IDEs for hugging...
 
so I guess the answer is, we have found ways to avoid regular email, but it takes a while for companies to embrace it ...
 
@MarcelBurkhard It was more sort of a metaphor actually. By cute I meant awesome.
 
@JoeWatkins many companies already use Microsoft Lync (which will be skype soon I think) for internal communication
 
we still use skype internally ...
 
12:58 PM
@HassanAlthaf Last I checked, W3C had an HTML5 conformance checker
 
perfectly fine I think
 
@BoltClock I went to that site like back in 2013
 
validator.w3.org <!DOCTYPE html><title>test</title> validates just fine in the text input for me
 
@BoltClock that discussion already took place, you're right.
 
12:59 PM
@HassanAlthaf Have you tried it now?
 
I don't much like it, I'm always getting friend requests from bigDongJohn or barbaraBigTits or whatever, it's annoying as fuck ...
2
 
man, talk about late to the party
 
Yeah, it accepts it now. @BoltClock
"Array ( [Addition] => Array ( [2] => Array ( [accountName] => Sales [accountBalance] => 2000 ) ) [Deductions] => Array ( [3] => Array ( [accountName] => Sales Returns [accountBalance] => 100 ) ) [Value] => 1900 )"
I am spending time on formatting an array with some account sorting.
-.-
Guys, I need some tiny help.
I believe you might have some experience with such an issue
Well, nvm.
 
@JoeWatkins prefer snake case?
 
@RonniSkansing Predis. There is an extension to make that faster but I don't currently need the extra speed. btw pings work better with @ signs.
 
1:10 PM
@JoeWatkins It's your fault for posting your skype on not appropriate places. :p
 
I believe @rdlowrey was working on something for redis.
 
@Fabor Unless you're rdlowrey you probably wouldn't need it. Also, there is an async redis client github.com/nrk/predis-async
 
I do some similar stuff to what he does just not at his ability :(
 
@Fabor No, I did that. github.com/amphp/redis
 
Oh that we go :)
 
1:15 PM
Looks like Predis has a really non-optimized parser, no wonder that it's slow.
 
@kelunik Yeah..it suggests installing an extension to speed that up.
 
@Danack sorry for today, I got invited like... 30 mins before your DM
 
@Ocramius np. btw I hate giving people advice (as they may take it) but you ought to take it easy and not try to do too much. Commuting every week is going to be exhausting long term.
 
@JoeWatkins Actually, Exchange's internal RPC-based protocol makes way more sense than SMTP. It doesn't make actual sense of course, but it's still a step in the right direction.
 
Good morning people. I really need help. Already 2 hours on simple stuff spent.
 
1:20 PM
Err... replying to wrong message
 
Please tell. I need to call another XMLHttpRequest() based on return data.. and so forth
it is a bit off topic - AJAX
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
@DaveRandom yes there i talked ...
 
@Danack aware of that, heh
 
Tereško here advised to use AJAX to split php process. This must be simple and you must be using this
 
1:22 PM
@Danack well worth the money for now
 
@Danack these changes made it ~25% faster IIRC. Just eliminate all unnecessary fcalls.
 
@animaacija They seem to have pointed you towards Promises, which is not a bad idea. Have you tried to implement it using promises?
 
But it only speeds up for PHP 7 that much, because PHP 7 inlines self::const at compile time, thanks to @bwoebi.
 
@JoeWatkins Every time I see your pic in your profile, I imagine I'm choosing you as a character in Tekken as the camera zooms out and you move to the praying mantis pose
Too srs :-D
 
tried. @DaveRandom, but since ... i could do it
all I've done in javascript is copy-paste :(
 
1:25 PM
Well that's not really the way to learn things...
 
yes it was hard to call my func via Promises because it is called by on click event first
 
I've been doing server set up LAMP and VM configuration all day. I was sure I'd hate it but it's actually really nostalgic
 
@kelunik woah, nice, @bwoebi!
 
@DaveRandom well i have even this one the capitalised letters says what is needed
 
Hopefully, his switch optimize will work soon for another improvement.
 
1:31 PM
@BenjaminGruenbaum got it all up and working?
 
Yes, thanks for the help in the morning :D
Instead of a dual Windows VM that costs 80$ a month I got it on a linux vm that costs 30, it's twice as fast and doesn't die randomly.
Was it worth my whole day? Not sure, but it was fun.
 
@JoeWatkins all of them named camelCase? no snake_case? :)
 
0
Q: PHP File upload script getting in the way

MarkTuI have this form If the first radio button is clicked, the textfield below it is enabled and if the 2nd radio button is clicked, the file upload is enabled and the former is disabled,vice versa. It works fine if the file upload option is chosen but if the 1st radio button is chosen and the fil...

^Where your money is in good hands
 
@thpl Let's pretend it's for a school assignment. Yeah, let's pretend.
 
Should I change a vendor for some open source lib if I want to take it over and change a lot of stuff there, or should I leave it as it were? They don't use any license and all they have is this: github.com/servergrove/ServerGroveLiveChat/blob/master/LICENSE
 
how can i install image.intervention.io in codeigniter
 
nice one @thpl
 
@Cody use composer?
 
on godaddy server there is no composer, then how to do that ??
 
1:51 PM
step 1: use google
step 2: there is no step 2
 
codeigniter doesn't use COmposer IIRC
 
@nikita2206 I think you only need to change it if two projects are being developed in parallel. I don't think there's going to be a clearly better decision - though not changing it makes it slightly easier for other people to switch to...
 
@Danack thanks!
 
You can still use Composer on CI projects
 
@Cody Use composer locally, and then send all the files to the server.
 
1:52 PM
@Danack ok let me try
 
@Cody is this a legacy project?
 
also, why the fuck are you hosing stuff on goDaddy ?
 
@Danack hm okay, thanks
 
cuz his mom no host, doug
 
@tereško my senior did it
 
1:54 PM
if you have even little bit ad sysadmin skill, you should be hosting on some cheap VPS
 
@Patrick yes
 
hmm
 
how are you deploying? you can just run composer locally and then upload the vendor folder with everything else.
Please don't tell me that you are working directly on the server
 
@Patrick using netbeans
and yes i am working on server
 
1:57 PM
@Cody ouch
 
@Cody where is your test environment, where is your backup?
 
I am not even going to ask about version control
 

« first day (1566 days earlier)      last day (3375 days later) »