« first day (1622 days earlier)      last day (3325 days later) » 

jtc
5:00 PM
I'm using bluehost as my server (I got a free year at OSCON last year)
 
@Danack Good stuff
 
@Fabor Hmm? You're aware that Chef and Puppet are the names of two very similar pieces of software?
 
I am, that's why I added (literal)
 
That makes no sense.....
 
As in vagrant builds the server based on the recipe from puppet.
Chef -> Recipe
Vagrant -> Puppet
 
5:04 PM
Or if you're using Chef, then "vagrant builds the server based on the recipe from Chef"
But it's also a poor analogy, as you don't have to use either puppet or chef.
You can just use vagrant by itself....
 
posted on March 26, 2015 by kbironneau

/* by BrodBen */

 
jtc
Is it pretty simple to move the symfony project from the vm to the bluehost server?
 
@jtc It depend how fancy you want to get. The easiest way is just to zip everything up and copy it to the server, then extract it.
There are better ways, but if you're just learning, that might be good enough.
 
5:23 PM
android is frustrating
 
jtc
@Danack thanks. I'm setting up a vagrant environment right now.
 
> Hack is merely PHP with poorly-enforced type hints
@Andrea Hah, I'm not sure that representation is entirely accurate ^^
 
@NikiC it's true to an extent :p
 
Everything's true to an extent :P
 
5:45 PM
16 hours ago, by Andrea
@bwoebi OOP isn't performant.
which is why we should make websites directly in machine codes
 
Machine code isn't performant
2
 
@NikiC Microcode is
 
user895378
Yes, but is Microcode webscale?
 
@rdlowrey better than that, it's Freescale
 
user895378
And can you shard with it?
 
5:47 PM
ducks
(that was a bad joke, I'm sorry)
 
It's not about the language it is written in.
For CPU-bound applications it's about being smart with your algorithm.
For memory-bound applications it's about optimizing memory access and writes.
 
user895378
NB: I was making jokes about webscale.
 
For network-bound applications it's about multiplexing and sleeping efficiently.
 
@rdlowrey Assuming microcode is cached on a CPU local level, I would say that yes, it indeed supports sharding
 
In DDD which layer should contain the separate validation classes? Are they part of the domain layer?
 
user895378
5:51 PM
Will it support sharding across my various CPU L2 L3 and L4 caches?
 
@rdlowrey Yes, I would recommend downloading more RAM for optimal performance
 
user895378
Good. I'll put my DevOps team to work creating a new strategic plan. We'll make Microcode sharding our primary action item. I'll need to send out some memos. Maybe even call a meeting.
 
@rdlowrey Make it mandatory during lunch time without a catered lunch.
 
user895378
That should be fine. My devs are all ninjas and rockstars. They hate work-life balance and like being pushed to the edge ... especially where food is concerned.
 
Call it "an initiative to fight workplace obesity"
Makes it sound like not having lunch is just you caring so much for everyone's health :)
 
user895378
6:00 PM
#ThinTheHerd
 
It will promote team building.
By being hungry together it will promote unity and camaraderie.
 
user895378
Shared hardship is the best way to foster closeness in a group.
 
Preach it, brother.
 
6:30 PM
Mutual hate too.
 
user895378
hmm ... for some reason I thought count was a language construct but it's not.
 
6:52 PM
@jemz sorry bout the late reply... I dunno really, try writting some small classes, and then add some tests for them =] try looking at code coverage while you are at it
 
TIL about mutable in C++
 
7:11 PM
oh god C++
people keep telling me I shouldn't be scared
template<class T,class...>class C{C<T*const,T,C>a;C<T,C>b;};C<int>c;
DO NOT TRY TO COMPILE THIS
YOUR C++ COMPILER WILL CONSUME ALL AVAILABLE MEMORY TRYING TO PRODUCE ERROR MESSAGES
THIS APPLIES TO BOTH GCC AND CLANG
 
The compiler is just punishing you for writing that code ;)
It's all in your interest
And yes, don't be afraid of C++
 
I HAVE NO CHOICE BUT TO FEAR THE BEAST
 
GOD I hate ARM
spent the past 5 hours debugging an issue with ARM v7a vs v8a
with vectorized math
 
7:27 PM
forget processors and use asm.js as a universal target :p
 
user895378
Everything really is turning into javascript ...
 
user895378
Thought: could javascript really end up being the C of the 21st century?
 
user895378
Everyone is compiling everything down to js for the web. I wonder if this won't be it ... like ... we're all just stuck with js forever because it was in the browser first.
 
is the web for the 21st century is a better question ...
probably not ...
not as it is ...
 
7:32 PM
@rdlowrey it's better than C
in terms of portability
 
C couldn't make any assumptions
 
Hello. I need to fold two dimensional array into multidimensional (i got this array by Selecting 3 joined tables MySql) notepad.cc/hoflare88
 
by the end of the 20th century, if you didn't have a website, you were a nobody. At the start of the 21st, if you don't have an app you are a nobody ... focus is probably going to shift to mobile devices, maybe wearables, where javascript has no real hold ... thankfully ...
 
You can see, that key[lapa] is the same everywhere - this should become firs dimension.. Where to begin ? ;/
 
7:36 PM
@Ocramius very much that
@Andrea oO
 
@ircmaxell ?
 
where are your snippets? sorry.. I think, this must be common thing ah?
 
@animaacija what did you expect?
 
At first i discovered there is no such "fetch_logical_accos" at PDO class.
Yes i expected mysql to take care of it.
 
@rdlowrey there were other things in the browser (java, flash), but js ended up winning
 
user895378
7:44 PM
True. Flash is was terrible.
 
Since it doesn't this must be done php side. But i'm too bright to see solution for my problem.. @RonniSkansing
 
@JoeWatkins you know, there are many things running nodejs on arduino
 
tnx ronni
@rdlowrey action script could have been a sane jabbascript though :)
 
Q> What do you imagine yourself in 5 years.

A> You know, I'm not really sure. I don't have 2020 vision after all...
6
 
7:58 PM
@animaacija You're using PDO? Look at the PDO::FETCH_GROUP fetch mode.
 
@salathe thx in my case this works almost like PDO::FETCH_BOTH , do i need to add something in sql syntax for using this fetch mode?
 
For those who have worked with .htaccess in the past, is it possible to create a virtual sub-directory inside another virtual sub-directory?
 
@salathe if i add to SQL a GROUP BY , result omits rest to single tuple =/
 
"@nypmetro: From the scene of the 2nd Ave building collapse http://nyp.st/1OBe7oQ http://t.co/jYrL491Dqo" #NYPD #FDNY
 
depressing, i cant get near any news the last days with the plane crash in europe
just makes me feel sad for hours
 
8:11 PM
@ircmaxell goddamnit
 
:-P
 
<?php
// THE FUTURE OF PHP
`sudo rm -f /usr/bin/php*`
 
E_FATAL
 
E_GOLANG
 
8:33 PM
@iansltx :)
was the arrayof thing rejected only because of perf issues and the generics syntax war?
Foo[] vs <Foo>[]
 
mostly
 
what's outside of mostly?
 
'Hard to capture the volume of emergency responders' #EastVillage Photo by peter radley http://t.co/53ZDAAh2Pa
@marcio internals being internals
also, there was another problem
 
(the lack of scalar type hints? We have STH now)
 
$a = 1;
$array = [1, 2, &$a];
function foo(array<int> $abc) {
    var_dump($abc);
}
foo($array);
$a = "happy!";
foo($array);
 
8:40 PM
its rather imperformant because you cant do lazy evaluation on it
 
I have question.

Could we make CMS to have button "Save All" that creates HTML pages for whole site, to be sent acordingly upon client request and not to run php upon each request, run php only when Admin makes changes an saves em and compiles updated HTML's.
 
but this has nothing to do with generics imho
i.e. Collection<T> could be checked effciiently for T being a part
 
@beberlei well, that's easy, it just makes type a parameter
 
@ircmaxell oh, all zvals would have to carry type information to restrict by ref changes. That could be catastrophic.
 
ah yes
that is a show stoppe r:)
 
8:42 PM
function foo<T>(T $arg): T {
return $arg;
}
^^ there's nothing expensive about that (in general at least)
 
no, but if you have array<T> again then there is
but i always forget about references
like that example you pasted above, i cant come up with this myself
permanently erradicated references in php from my mind :)
 
@beberlei you can do lazy evaluation if you attach type information to the hash table (used as a container), this could be used to restrict type mismatch on assignments and the typehint check would be just a single assertion to see if the array is typed... but that by ref change of array items break everything :(
 
@marcio i guess that is one reason why hack has built in collections, its much easier to enforce with generics
arrays are just blobs of data
 
by the way
I kinda wanted to make a generics library that did string replacements
as a giant but fun hack
With a special autoloader
 
shouldn't be too hard
 
8:48 PM
That'd detect MyList__int__ and generate that from MyList__T__ or something
 
ah, a pre processor :)
shouldnt it be possible to implement hack in php this way? :p
 
sure
 
argh there is always another THING, so as of now my list of things-to-learn (I'm sure I forgot something):
Clean oop (short functions, Low coupling, dependency inversion principle, SRP, Dependency Injection, LoD, etc.)
TDD (Unit testing, integration testing [selenium, fixtures and other stuff] )
Continous Integration (jenkins, ant, php tools [code coverage etc])
Continous Delivery (not so important for me)
advanced git usage (tagging etc.)
Node.js as build tool for frontend dependencies (with 'watch' and 'livereload' etc.)
It'll take me years, seriously :D
 
@Andrea that seems more doable than messing with zval structures + a pre processor would allow many other things :)
is it possible to have it as a PHP extension?
(not sure what are the limitations of php extensions)
 
@marcio generics could be done this way in PHP core
generating classes on the fly
i.e. not generics but templates
 
8:59 PM
well, since we have anonymous classes... :-P
 
where do I put .sass files and other things that are being "compiled" by a build script? up till now I only had php code in my src Folder since i started with the no-framework-tutorial
 
/assets
or /build maybe
not in /src
 
hmm ok
what about src/assets?
because its technically source of assets
:P
 
@Andrea well, I was going to spent most of my PHP 7.1 RFC time working on callable types but since @nikita2206 is already working on a proof of concept patch, perhaps I could try to make templates. It looks a bit hard to do, though.
 
@marcio you can technically do it with a stream wrapper, i.e. awesomephp://Foo.php
 
9:06 PM
@marcio cool
 
and as an extension, you can jsut overwrite zend_compile_file and do magic
 
@iansltx let me clarify: I'm talking about my own .sass files
 
I was guessing you were
Just seems like separating presentational stuff from logic in te dir tree could be helpful
(realizing that /src/assets does that to an extent, but it isn't how I'd structure things)
 
yes and I want to do that, but I always used "assets" for images/styles etc. when they were static
so assets would confuse people on my team If not even myself (that is /assets, /src/assets would be slightly better)
 
@beberlei you mean to include files through a stream wrapper?
 
9:13 PM
@marcio yes
 
@beberlei doesn't sound bad... other option could be a per file ''declare(preprocess=1)''
 
which would require a change to the parser to accomidate
 
/me enters javascript room
 
9:28 PM
@ircmaxell @beberlei yea, better go with the stream wrapper hack first and see what happens. Thanks ^^
/goes make vigil-php
 
10:21 PM
@beberlei hey, do you know by any chance, is there a bug with inserting DateTime values to datetime type of columns using Doctrine ORM in MS SQL Server database? It now fails saying it couldn't convert a string to a datetime
(using sqlsrv driver with ReturnDatesAsStrings defaulted to 1)
 
i have never used ms sql server
 
oh you're lucky
 
in that regard i am
 
@sam_io going to not repeat suspension this time? :-)
 
Anonymous
@bwoebi I'll do it again. Just not now :)
 
10:27 PM
@sam_io really …
Why?
 
Anonymous
the same reason I did it the last time. Less distractions.
 
@sam_io You anyway distract yourself by reading the contents even without participating…
 
Anonymous
But, I have some vampire-related things to do first :p
 
Anonymous
I am not on the same par with anyone in this room. I'd love to participate if I was as good as you guys. So for me, it is not very constructive to be here for more than 30 min a day
 
10:50 PM
Well… what we do isn't necessarily good… It's just perceived by others as good. Maybe you're good too, but nobody recognizes it? :-)
 
11:19 PM
@Ocramius How much of a BC break is it gonna be if I add a required Platform argument to Doctrine\DBAL\Types\Type::getBindingTypes()? I want to fix some stuff regarding Sql Server (for example right now using datetime as a parameter doesn't work because it doesn't specify a type it binds, but in case of datetimes seems like sqlsrv requires it)
 
@nikita2206 no-go
absolutely not
 
@Ocramius What if it's not required?
 
it's still a big BC break
 
mssql makes me sad
4
 
11:38 PM
mssql makes me mad
 
mssql makes everyone sad...
 
@nikita2206 juster overwrite thetypesif you areonly using mssql
wtf did i write there
 
did you pass that message through mssql, by chance?
it's missing [some][square][brackets]
 
11:54 PM
anybody familiar with the edit.php.net online doc editor and can tell me what it means when a file shows up red in the file browser? is it just that there's an existing change waiting around to be acted on?
 
@JohnFlatness can you link the page/file that shows that?
 
can I think things from there? at any rate, it's en/reference/imagick/imagick/mergeimagelayers.xml
 
\o/
 
and I can tell the docbook source there has already been updated by someone (else) vs. what's live on the docs
 
@beberlei yep I did, just wanted to push a fix if it's possible
 
11:59 PM
@JohnFlatness short version, yes apparently red does mean it's been edited by someone else. I saw your comments about the change not being totally correct - I'll just go in and try to do it.
 

« first day (1622 days earlier)      last day (3325 days later) »