« first day (1678 days earlier)      last day (3270 days later) » 

12:47 AM
good to know.
 
1:27 AM
someone using phpstorm 9 eap?
 
@rdlowrey Whatcha up to?
 
user895378
@LeviMorrison putting the finishing touches on amp -- @bwoebi and I have spent a lot of time getting it ready for 1.0
 
Noice.
 
@LeviMorrison he killed the Future :-(
 
user895378
lol
 
1:36 AM
@bwoebi ...noice?
 
NOICE
 
user895378
Everyone else on planet earth uses the term Deferred for what we used to call Future
 
The Future/Promise/Deferred/Awaitable naming discussion is one I've avoided.
 
user895378
So in the interest of shared terminology it was renamed to Deferred
 
I have no idea what to imagine behind a Deferred… while with Future it's absolutely clear we're talking about something happening in Future…
 
user895378
1:37 AM
I was really pleased though -- I was able to speed up generator coroutine resolution by ~40% -- not from name changes, of course :)
 
Noice!
 
user895378
And also ~30% improvement out of the combinator functions like all(), map(), filter() etc that operate on arrays of promises
 
user895378
I think the library really excels at mixing imperative techniques in with functional concepts to maximize speed under the hood while allowing people to write really nice coroutines on top without ever seeing a single callback.
 
user895378
But that all needed to be stabilized once and for all becomes the server is maturing rapidly and the underlying amp code needed to stop changing.
 
1:49 AM
@LeviMorrison yahoo!
i've reinstalled phpstorm 8. didn't go well
this is the stuff i'm getting -__-
 
a gillion of functions considered "types" for some reason. and breaks autocomplete entirely
also this.
and no automatic import using use function|const. it still adds the fqn inline. basically "full php 5.6 support" my ass
 
use function isn't in PHP 5.6 is it?
 
> All versions of PHP that support namespaces support three kinds of aliasing or importing: aliasing a class name, aliasing an interface name, and aliasing a namespace name. PHP 5.6+ also allows aliasing or importing function and constant names.
i'm setting up a vm so that i can try phpstorm 9 and spam their bugtracker
 
user895378
@LeviMorrison I think it is
 
1:57 AM
I guess it is.
> Showing 1 changed file with 41 additions and 62 deletions.
I love it when that happens \o/
 
@LeviMorrison yes it is
 
@NikiC I did a PR for the type compilation cleanup since void functions won't be going into master anytime soon: github.com/php/php-src/pull/1292
Tests passed locally, so as soon as we hear back from Travis to verify I think it's good to merge.
@NikiC Hmm. I did a fix and something went bonkers.
The PR is missing a commit.
It's in the branch...
There, I think I fixed it. Just waiting on Travis now.
 
2:28 AM
@LeviMorrison still lots of bugs in phpstorm 9
and no way you get "use const" automatically compiled
feel free to bug report tho, i don't have a youtrack account yet. i couldn't register the other day
 
After auto-complete can you right-click and see what options you have?
In IntelliJ there is a feature that will add the Java equivalent of the use line.
 
sorry was busy recording this @LeviMorrison
still bad news then
checking if the right click works
nope @LeviMorrison
 
 
1 hour later…
4:07 AM
hello
 
 
2 hours later…
6:01 AM
hi guys
is there any way to crop large size images in different sizes fastly?
 
@John do it on the client side using <canvas> when possible
 
<canvas> whats that?
is that any html5 tag
 
it's 2D graphics with javascript API
 
shall I use this while resizing the image?
 
what are you doing? image file upload?
 
6:12 AM
yes you are correct..
 
so with canvas you can resize the image even before it gets uploaded
 
I am uploading image file and for different devices I am cropping that image with several sizes
 
so you don't waste bandwidth, server resources
try searching for a "canvas image resize tutorial"
 
suppose I have 2 MB of image what do you suggest
whish is very large and I am uploading it to server with 16 different sizes
so obviously its taking too much time to upload all such images and resize as well
 
i suggest what i just said :P use canvas
 
6:31 AM
Morning
 
0
Q: How to get each element (parent child subchilds) name and their attributes -PHP -XML

RozeenaCHECK MY CODE HERE WHAT TO DO NEXT : http://3v4l.org/KAYVr I want to print it like print root element print (all root attribute if any) print child element (if any) print (all child attributes if any) print sub child (if any) print (all sub child attributes if any) this should be ...

 
6:56 AM
Hey guys, random question. I noticed on some websites, the css files in the <head> section have an ID, like src="js.js" id="main_js". Why?
 
@tereško so you say 600w is more than enough? I think I should go with the fully modular one
and good morning
 
@SergeyTelshevsky psu? ups?
 
@Worf PSU
 
more watts usually give you more stability (actually, better amperage does)
i have a 600 w ish psu with 6 hdd
so i guess it's more than enough
 
Hello everyone!
I have a problem whit namespaces, I've defined a function in the global namespace but when I call it from another namespace it says that the function wasn't found
 
7:07 AM
yeah, I was worrying only about OCing CPU and VGA
@Manulaiko show codes
 
@SergeyTelshevsky The full code is in cloud9: https://ide.c9.io/manulaiko1/alexya
A reduced version:

file functions.php:
function foo()
{
fuck
can you come to cloud9 so you can see the whole code?
 
yes, you should not post more than oneliners here
better post it on any of the paste services
e.g. pastebin
 
okay one moment
 
which file?
 
@Manulaiko I wish I could go to cloud 9, but the local crazy lady said I was going to hell.
 
7:14 AM
@SergeyTelshevsky The error is first given in models\Model.php, and the function in global namespace is declared in core\functions.php
@SergeyTelshevsky here's the output: alexya-manulaiko1.c9.io/index.php
 
write permission please
well
you don't include the functions file anywhere
 
yes, core\load.php
 
as you may see I placed a die('qwe') and it doesn't die anywhere
 
come to my location
 
Bump on my question, why does a Link element in <head> have an ID? what's the use.
 
7:18 AM
well it still doesn't show that as you load model earlier
 
Oh! I see the error!!
 
@Manulaiko you load model earlier than functions.php
 
@SergeyTelshevsky Thanks, now works :)
 
good, now remove permissions from me
 
if you ever want to take a look at the source again, just tell it ;)
 
7:21 AM
@DaveRandom I needed ssl config for nginx, but @kelunik already gave it to me
tnx anyway
Morning
 
@PeeHaa i heard you use phpstorm now. what happened to the "my php-fu doesn't need any ide"
 
Gave it a try
 
liking it?
 
Nope
 
why not :D
i mean, i agree, but it's the best that there is
 
7:28 AM
A quick question: Is it better to link the model, view and controller inside the controller? At the moment I have them linked in the model
 
It's slow. Think it is smarter than me. It gets in the way
 
lol
 
hi all
 
are you still using it?
 
@Julo0sS Hi
 
7:31 AM
Sometimes
 
anybody comfortable with cors things?
 
@Manulaiko you should check this out. /cc @Patrick
 
@SergeyTelshevsky Thanks, I'll take a look
 
@SergeyTelshevsky here is the thing : I was trying to stick with your chosen price range, but I am not sure if that's wise
if you buy RAM and it turns out shit, you plug it out and get it exchanged
 
sadly, you can't do the same with familiars u.u
 
7:40 AM
if you buy PSU and it turns out shit .. well .. there can be a lot of intetresting side effects
of the "there is smoke comming from my video card" type
 
@tereško yeah :) but this one looks ok, doesn't it?
 
I included that one only for comparison
 
how good are your PCs? Mine at home has 760MB ram DDR + Pentium 4 xD
 
there is quite a difference in feature set when you go from 60-70 price range to 80-90
 
@tereško damn, they say it's too loud :(
which one would you suggest?
 
7:47 AM
from that list: Corsair Builder CX600M
 
I like the fractal one, but gold is a win in the long run, isn't it?
 
but I also would but a PSU that is at least 10% of whole build
hell ... mine was 15% of the entirebuild value
 
450eur ???
 
250euro
 
do you have a power plant at home?
:)
 
7:50 AM
that's not how PSUs work
 
what are the benefits besides quality and warranty?
j/k
 
there actually are
it was kinda hard to find semi-modular PSU in 70 euro price range
 
Hi, am I allowed to link a question of me here? It hasn't been answered since yesterday and I need to fix it fast!
 
ok, what would be the price of a good semi-modular, silent and 80plus gold
@Synyster that's the way to go
 
oh .. you want silent too now =D
 
7:52 AM
0
Q: Laravel Sync method only sending the 2nd data

SynysterThis piece of code should be deleting all old data from the database and when add the new ones (using sync()) Now I have a project with users, and a user can be linked to a project with a checkbox. So on checkbox checked this function will trigger, but for example when I say that user 1 and us...

 
@tereško well.. not actually silent, but not a loud one :)
 
lemme check
 
@Synyster not many of us use laravel here, you'll get more help with it here: gitter.im/laravel/laravel
 
btw, when I was going through your build list, I noticed that my cpu+mobo combo is only +30euro
 
Thanks @SergeyTelshevsky
 
7:55 AM
@Manulaiko my phone has more power :P
 
@Synyster and you have been asked a question the comments of your question. You should answer that if you want anyone to help you
@tereško hm, what cpu and mobo do you have?
 
amd 8370 + asus sabertooth 2.0
 
Water cooling = silent ;D
 
Güd mönring, roomies
 
@Epodax nope, because you still have fans. The silence is gained from having extra surface for radiating heat
you cannot get that with a 140mm rad =P
 
7:59 AM
D'uh, of course, but without having to use foam to silence it water cooling is still the MOST silent option
 
@Epodax also there is additional price attached: an entry level close-loop cooler costs about the same (or even more) as premium Noctua air-colled unit
and custom loops cost 500$+
 
@tereško never said it wouldn't be expensive, water cooling is expensive, and unless you intend to overclock / strain the computer I wouldn't recommend it, because air cooling can do an' amazing job aswell, and with the right fans it can be somewhat quiet.
Although one benefit is the "daym" factor that is the sweet looks of water cooling in a computer, but that's just me.
 
emm , wat ?
the html 5 is not finished yet >:(
23 mins ago, by Sergey Telshevsky
do you have a power plant at home?
that's not how it works: PSU pulls only what the rest of PC needs
that's where the 80+ ratings come from - the efficiency
 
8:24 AM
@tereško yes, from what I understand the good gold ones are from 90eur range, right?
 
if you are looking at semi-modular + gold, then the answer is: most of them
that EVGA one was so cheap only because it's older than most, but unlike with cases cases (where 2 year old case cost half the price) the PSU prices drop really slowly
 
can you suggest a good one from them? I like that EVGA but I'm afraid it will be too noisy
 
I'm looking ..
 
posted on May 21, 2015 by kbironneau

/* by Woox46 */

 
morning
 
mogguh
 
my private key / passphrase works with pageant and git clone, but it doesnt work with ssh -i keyfile or composer
wtf? ^^
I googled but to no avail..
 
9:02 AM
anybody uses angular?
angular + php
 
@MarcelBurkhard Bet it something to do with permissions
 
@Jimbo doesn't seem like it
 
@MarcelBurkhard Yep, CLI permissions are different when using them from a php script. Bloody annoyin
 
9:18 AM
@Jimbo that doesn't explain why it wouldn't work with the ssh console command
on both a linux machine and a windows machine (user account and admin account)
It also works in putty btw
 
Is there a way to make switch(); compare types?
 
no
kinda
but no
 
so using swtich with true/false is a bad idea if you want to match exactly with the true/false?
 
yes
If you want to match a boolean why do you need a switch in the first place?
 
@SergeyTelshevsky added 4 PSU's which are nice in the 80-90 range
you will notice that they all seem to have un-even number for wattage
that's because they all use SeaSonic base
 
9:30 AM
@PeeHaa Because the function can return 2 different types, It either returns TRUE / FALSE or a string with "noaction"
 
@Epodax Crap API is crap
 
@PeeHaa No swtich(); it is :)
 
sorry .. 80-100 range
 
@Epodax A method that returns different types is an utter design fuckup
 
@PeeHaa It's a home brewed system when I started to learn php, so even though I really want to rewrite the entire thing, work won't allow me because of the "if it ain't broken, don't fix it". so when I want to add new code I have to adapt it to the old, and honestly 'fucked up code'
 
9:37 AM
Sucks to be you :P
 
Aye, it adds a lot of unnecessary work, but apparently not enough to let me fix it :/
 
Backup enitre system, start rewriting it and let work continue using the current system. Show work new system when done and voila, everyone happy
 
There's too many tasks for me to do for that, I need to allocate time from other tasks if I want to do it.
 
In the end it is all an trade-of. ONce it starts getting in the way too much you just have to rewrite (parts of it)
 
Aye, but it's not a "critical" system either, it's a side project for the company so they don't want to spend too much time on it. Since I'm the only IT guy / dev they got.
 
10:03 AM
So in that case, screw them. Tell them you can't work with outdated systems so they can either deal with the issues that come with it or allow you to upgrade it :)
 
@icecub but I made that "outdated system", and they are dealing with it, they don't have much of a choice, they just don't want me to upgrade it.
 
So, problem solved :)
 
Just say "Sorry boss, I can't fix that issue because it's related to the fact that the source is outdated." and move on.
 
@icecub They aren't complaining :) It sprung from me asking a question about switch(); and @PeeHaa said that the method I used was crap (the entire system is in fact crap) and it went from there :P
 
10:08 AM
:P
 
I know that, I can read :P
 
ooooh, now I get it, it's to get my boss to give me the time to update it.
Smart
 
Finally! He gets it! :D
 
Don't think I have the balls for that.
 
morning
 
10:11 AM
Morning @kelunik o/
 
Well if you're the only IT guy, you can get away with quite a lot. Losing you would mean a lot more trouble than just giving you some space to work things out. Also, most bosses have more respect for employees that dare standing up for themselves
 
@icecub That is true, it's not that I fear the consequence, because well, they can't afford to loose me. It's more that I'm incredibly conflict shy.
 
Well I could say "Man the f* up!", but that won't do you much good. If it's really an issue there are places that can help you with social trainings.
 
I, for one, genuinely hate the phrase "Man up".
 
I'll manage, while my boss may be time/money oriented he's far from a bad boss.
 
10:24 AM
@Jimbo Pfff man up dude
 
@PeeHaa Shit your tits
 
:P
 
@Jimbo Gosh, hating a phrase?! Man up!
 
@Jimbo Would you prefer "Woman up" ?
 
@Epodax No, I'm one of those dicks who complains about that being sexist. Human up.
*(joking, btw) - some people are actually like that
 
10:25 AM
hehe
 
Human up makes me think of "level up" just the real life version
@salathe Hehe
 
moin
 
Mogguh
 
murghhh
 
10:38 AM
@Jimbo or just admit that "man up/woman up/person up" makes you sound like shithead
:P
 
@tereško That's what I meant
(in a nice way, though, lol)
 
@PeeHaa Where means "so bad it's liable to give you tuberculosis", presumably
 
@DaveRandom Sounds about right :P
1 message moved to Orphan GIFs
> If possible please describe the role of each line using comments. Thank you.
.... 100 lines of code
 
@tereško this one, I think
@tereško you also should tell me what are your drinks of choice ;)
 
meh .. I am bored
 
Anonymous
 
Anonymous
fyi thats when I was a complete noob :)
 
11:01 AM
hey guys ...
 
@samaYo yeah, I was about to explain to you that you have no idea what unit tests are for
 
Anonymous
hehe
 
I said hello .. :(
 
Anonymous
hi ^
 
@SergeyTelshevsky it seems quite good, and the reviews are positive, the only downside is that it has a mix if japanese and chinese capacitors
 
SY.
11:03 AM
Hi; I'm developing an application in laravel and the command php artisan route:listdisplays nothing but a the following string: "e" ...
tried googling it, but nothing gives
what could that mean?
 
@tereško the vga needs 1x 8-pin, 1x 6-pin connectors, that PSU has the right ones? it says PCI-E: 4 x 6 + 2 PIN
 
SY.
it actually displays the letter e in double quotes, rotfl
 
sorry
yes, it has the right plugs
it actually can plug two of your cards in it
 
and the wattage will let you plug another such card in
 
11:06 AM
<- that's how unenlightened and ignorant you become when you use only notebooks for 10+ years.
 
I was the same in december
and then I spent 3 month digging through all this shit
btw, you might benefit from this one: youtube.com/watch?v=lXku-gsdyok
it would give you some basics
 
watching :)
 
11:29 AM
@Jay For as long as the POST data is inside your php file, you can do whatever you want with it. Send to MySQL, a file, anything you want and output it a textarea afterwards to.
@tereško Haha I laughed at his statement "You rarely need more than 500 watts on a single GPU".. tell that to my old HD5900XT that sucked up 250+ Watt on its own xD
 
@icecub he obviously was thinking of Nvidia cards when recording
 
Ghehe ye I guess so
 
Sergey's setup has 970th, according to specs it takes 150W (his specific card comes already overclocked a bit, which will mean a bit more)
I was calculating that the entire setup should eat 400W at peak + then you need some safety marin + you dont want to be at the edge of the efficiency curve
 
Plus 600w means less than 600w in output actually
I wonder if 970 is better than gtx780
 
That seems pretty nice. I've got a corsair 700 Watt in my system. It's not needed but at least I never need to worrie about it
 
11:39 AM
@nikita2206 nope, 600W means that to provide that 600, it will pull more from the wall
 
Currently I've got a GTX570. It's quite old already but still performs perfectly fine in anything I've thrown at it
 
I wonder what it would do if you throw my 3440x1440 monitor at it :P
 
Ghehe I've got no idea xD
 
... "sputter and die"
 
I've got a simple 27" 1920x1080 which is more than enough for me xD
 
11:41 AM
@tereško that's pretty large … at least compared to its height…
 
yes, yes it is
 
It should be nice for racing games
 
@tereško Wonder how my GTX 780 would do on that. I always intended to SLI it as I always have with older cards, but by the time I decide I want another card, I say screw it and just get one of the best single cards available
 
@nikita2206 it's actually nice for a lot of games. Including space sims and turn based strategies
oh .. and shooters
 
Hmm gtx titan x12.. which I could afford it xD
Though I'd have to upgrade my entire system to even be able to get the max out of that
 
11:50 AM
Wait, there's a Titan Z out
Is that better than the X?
 
@Jimbo No the X performs way better than the Z
 
@Jimbo that for competing fir Firepro
it's an answer to AMD FirePro W9xxx series (the original Titan was aiming for that market too .. but it fell flat and was pick up by gamers)
 
Nice, according to that chart the 970 is up amongst the best but is the cheapest, bang for buck
Might as well SLI 2x 970 for the same price as the 980
 
12:09 PM
Heh. That chart reminds me how dated my system is. I have a Radeon 4850
But if you're gonna drop $1k+ on a video card you'd better mine the crap out of Bitcoins or something because nothing else will fully use that much horsepower
 
And still massive
@Machavity My old PC had the 4870, cracking card
 
Is this the room for Symfony Questions?
 
@Machavity play Crysis
 
@NischalBachu Not specifically, that's what StackOverflow itself is for :-)
 
@FlorianMargaine I have. My 4850 did decently well with it. or do you mean Crysis 2?
 
12:11 PM
@Jimbo thnaks
 
@Machavity yes, the 2 of course
 
So, it looks like I have some support for becoming the new PHP documentation team editor :)
 
@Machavity Man, the GTX 780 struggles a little bit with Crysis 3.. even at the beginning with all the rain
(everything on ultra, AA etc of course)
 
Yeah, I've not played the sequels yet. I wait for Steam sales
 
12:26 PM
trigger_error("Connection with DB established", E_DEBUG);
^ something looks wrong
 
lol
lol
 
lol
lol​
 
I actually don't get the joke.......other than the "Yes, we have no bananas" style logic.
 
It's a stupid idea, one for which I will vote no if it ever gets that far. Errors are not synonymous with logging, a "debug error" is not a thing.
 
@Danack it's not a joke, it's a PR
 
12:36 PM
@DaveRandom a "notice error" is also not a thing
 
Someone advise on that above? It looks like it should be close voted but I'm really struggling to either answer or explain why it should be CV'd even though I feel it should. It's screwing with my brain :P
 
What that function does would actually fit the name log(), so if it had been called that in the first place...would the new constant be acceptable?
 
@salathe OK, a "debug-level error" is not a thing, then. Either way, PHP errors are not in any way suited to handling debug message logging.
@marcio That sort of sounds similar to "it's not a threat, it's a promise"
2
 
"No, it's a future."
@Jimbo I did not know this: stackoverflow.com/questions/30358583/…
 
I'm very reticent to add yet another level into the PHP errors buffet
 
12:40 PM
@Jimbo It really is too broad. To put the OP a different way "Why should I use private or protected variables in my class when i have a getter function?"
 
@Danack That's bs
 
@Danack That's not really true, though, because of E_ERROR being fatal and because it triggers custom error handlers. It introduces error state in the engine, we do have error_log() but that's a different thing for a different purpose (and shitty in other ways)
I'm not necessarily against introducing a logging framework of some kind built in to the language, but misusing errors for the purpose is not the right way to do it.
 
@DaveRandom true. Do you wish to have the pleasure of linking that function to the PR?
 
I'm just going to wait and see how it plays out for now, mostly because I don't have the time or the inclination to get into the lengthy argument that will ensue as soon as someone voices a negative opinion on internals or github.
 
A negative opinion? On internals? I thought everything was constructive on there!?
 
12:47 PM
@Jimbo "negative" is not diametrically opposed to "constructive".
 
@marcio We're talking about internals here...
 
@Jimbo this applies to internals too, but I'm not in the mood to play the Devil's advocate right now.
:P
 
:D
 
Guys, when using loggers, inside event handlers (I am talking about handlers that are called from EventDispatcher in Symfony) do you inject them? @Jimbo I know you use symfony so do you know?
 
@ziGi No idea, tbh I haven't touched the EventDispatcher - I write everything separate to the framework almost like a library then inject it
 
12:52 PM
Internals is like Communism. It's an idea that only works if you have perfect, altruistic people to run the thing
 
@Machavity anything works if you only have perfect altruistic people xD
 
Okay so, PHP >=5.5 we can use Foo\Bar\Qux; Qux::class for the FQN. In 5.3, however, is there anything that can be used that doesn't involve hardcoding the FQN string?
 
@SergeyTelshevsky btw, here is one more PSU video guide: youtube.com/watch?v=lqThn3C-zg4 (05:13)
 
@marcio I don't think a perfect altruistic person could make a Ponzi scheme work :P
 
@Machavity It's like communism in other ways, too. You hear so much scare-mongering about it that you think it can't be as bad as everyone says it is, then one day you decide it sounds like a cool idea and you want to get involved, but you swiftly discover that it really is that bad, then one day soon you are taken out back and shot because you said the wrong thing about the wrong person.
2
 
12:56 PM
@Machavity For example: If you only have "perfect and altruistic people" on a system, you don't even need passwords, just give people a username and they won't violate each others account.
Heck we should "fix" people instead of making cryptography stronger. <-- that's something Hitler would say nowadays
 
@marcio Only if everyone agrees on what needs to be done.....which doesn't always happen.
 
Is it possible that opcache keeps static instances in PHP 5.6 between different requests? Is there a setting for it?
 
@Danack we are talking about perfect and altruistic people, they will find room for consensus somewhere.
 
@ziGi "static instances"?
 

« first day (1678 days earlier)      last day (3270 days later) »