« first day (2108 days earlier)      last day (2840 days later) » 

9:01 AM
yo
 
ThW
Use an absolute path as the target. It says that it can not find the target directory.
 
okay I'll try this: C:\wamp\www\images
it's not helping
 
Gon
I would suggest you to take a break for a while...
 
your icon.png die not exist jhonny
use realpath("yourimg.png") to get the correct path to the img
then you can do whatever you want
 
ThW
@StefanHövelmanns images/icon.png is the target for move_uploaded_file(), not the source.
 
9:11 AM
then mkdir(dirname($target),0777,true)
 
it's the image I'm trying to upload it to images/
@StefanHövelmanns where I write this permission command
 
its not a permission command
you create the directory if it doesn't already exist
 
ThW
@JohnyNassar again, that is not an error description.
 
therefore it should be written before you try to move the picture to a folder
which does not exist
 
the directory did exist
images/
 
9:14 AM
where is ./
 
www/images
 
normally that would be relative to the position where the file lays
 
in the web directory
 
ThW
@StefanHövelmanns That's why I asked him to use an absolute path. But he has not posted to error message after the change.
 
yeah but for the script it might be /scripty/lib/whatever/Upload.php
 
9:15 AM
in the same directory you mean?
 
@ThW well ... xD
i need resources for plugin systems in php, does anyone has something good for that?
 
ThW
@StefanHövelmanns Composer :-)
 
@thw i mean oop classes :> i'm writing my own framework
 
Wes
i hate when the tests are a million times more complicated than the tested code... aw...
 
ThW
@StefanHövelmanns Still just use composer, define interfaces in the core and some registration. You can use the composer autoloader to register the plugin classes at the core.
 
9:21 AM
meh, no way, i have my own psr autoloader and i dont need core registration
 
ThW
@StefanHövelmanns Here is a small example: github.com/FluentDOM/HTML5/blob/master/src/plugin.php
 
the system should be able to let users define their wanted plugins
to give you a brief overview of what i'm doing
 
I did put them all in www directory but it's failing again
 
ThW
@StefanHövelmanns composer install plugin/package :-)
 
@thw i have a engine which turns a file into a dom and noes for templating
i have a large number of events within that logic and a user should be able too hook on those
therefore you can create your own nodes and your own language parser
the thing is that i need sort of a container to switch between languages
 
9:24 AM
morninininigs
 
When I hear php framework I think .. bootstrap, router, dispatcher, IoC, Request, Response, abstract services
 
ThW
@StefanHövelmanns What you do with the class is not really relevant for the plugin system. Just that the core has some way to know about the classes and their api.
 
man, its kinda hard to explain without writing pages.. xD
i guess its a very specific problem of my concept
 
ThW
@StefanHövelmanns No, you just put to many problems into one package.
 
9:29 AM
not really, i'll try to explain it
 
ThW
btw I wrote a DOM based CMS several years ago.
 
its not a cms
i have a template engine which dispatches an event to create nodes, those nodes depend on what "plugin/language" is loaded for the FILE, therefore i need to register all languages at a single place to be able to call them for each individual file.
 
ThW
You're translating content files into an output
 
no im not
 
ThW
"i have a engine which turns a file into a dom and noes for templating"
 
9:31 AM
template engine
no content files
its a bridge between php and "html"
 
ThW
But again not really relevant for the plugin system
 
ill make a diagram...
that happens for each file which is getting included or extende
and i have to handle the loading of the plugins within the core but the logic inside of the language plugin
 
ThW
So define an interface for the tag handler plugin in your core, define a static class where the plugin can register itself, develop the plugins in separate composer packages and implement the interface. Use the composer file autoloader to register the plugins at the static class in the core.
after that your core knows the plugin classes and can call them depending on the tags it finds.
 
9:47 AM
the static class is what im trying to implement, but i don't know how, my background is js, so bare with me :)
i need to be able to do $core->registerLanguage(new blaLang()) from anywhere in the code
are there some resources where i can read about how to do that?
 
ThW
No
 
ThW
\YourNamespace\PluginLibrary::register($type, $callbackThatCreatesAPluginInstance)
Static call, you don't have objects at this point, only classes.
 
so the method is static and the callback would be a class(name?) of the a language with an interface right?
 
ThW
The plugin autoloading file would call something like `
\YourNamespace\PluginLibrary::register(\YourNamespace\PluginLibrary::TYPE_LANGUAGE, function($pluginParameters) { return new \PluginNamespace::Plugin($pluginParameters); } );`
 
9:56 AM
okay, i'll see what i do with that :) helpful input, thx
 
ThW
The nice thing is that composer takes care of all the install, versioning, dependencies, repository, ....
 
@StefanHövelmanns consider github.com/Room-11/Jeeves/blob/master/cli/run.php#L154-L167 also, but instead of passing in instances (which are expensive to create and may not be needed for a given request), you pass in factories, the callbacks that @ThW was describing
 
yeah, i already have kind of a factory, just was not sure how to load them individually, thx for the input guys
 
One year experience in PHP with core + ajax + jquery + cakephp 2.x next should I move to laravel or phalcon framework or any other suggestions ?
 
ThW
@DaveRandom I wrote my first (sample) extension :-) Wasn't that existing about a simple function implementation for years.
 
10:13 AM
my vacation is..
over
=[ buuh ;( ::suchSadFace
 
Gon
aww...
 
@ThW gratz!
 
Wes
10:39 AM
do you know of a nicer print_r/var_dump i can use that outputs text only? i've found many but they all output html
 
echo ? xD
 
ThW
@Wes var_dump() outputs text, xdebug changes it to html (here should be an xdebug option to disable that)
 
Mogoringz
 
Gon
morgen o/
 
Wes
@ThW is the output... readable?
was looking for an userland thing, though
yo peehaa
 
Wes
are you trolling me? :B
> do you know of a nicer print_r/var_dump i can use that outputs text only? i've found many but they all output html
 
ThW
ahh sorry
 
Wes
ha :P
print_r would be ok if it printed "null" instead of empty string, etc. :\
 
11:13 AM
Ifi I asked you which framework you think is GOOD to work with in all aspects then which framework you will suggest?
I know most of you will tell me to create your own, but still which framework you guys will suggest?
 
Anonymous
Afternom
 
Gon
aftermom o/
 
Wes
i just had a dejavu
i live in the matrix. the only possible explanation
 
Gon
:P
 
Anonymous
11:18 AM
@Exception Like you say, creating your own is probably better but if I HAD to use a framework, it would be symfony
 
Anonymous
@Wes an r11 dejavu?
 
Wes
yep
 
@JayIsTooCommon ok. I think laravel uses symfonys components
Is that true?
 
Gon
choosing something is the hardest of all in pr0nhub...
 
Could somebody link me to the rfc which automagically set class properties witouth having to $this->foo = $foo it?
 
Anonymous
11:22 AM
@Exception it uses some of them, but laravel is a framework that though popular, is frowned upon by experienced developers. Most frameworks are frowned upon but laravel more so. It's personal preference, use whatever seems fit for your current situ :)
 
I'm pretty sure we had one of those at some point
 
Anonymous
@Gon #thuglife
 
@Wes ^ seems like the kind of thing you have been following
ha!
 
Gon
/me puts on sunglasses
 
Wes
11:24 AM
@PeeHaa it's incorrect. i follow all rfcs :P
 
WHy did it fail @Gordo?
I see there is a split between imo sane people and not so sane people in the votes
 
Wes
i think it was about matching hacklang
 
WHat does hack do?
 
Wes
which also allows function __construct(private $this->foo) or something
 
What does the visibility do there? Does it actually create properties?
 
Wes
11:32 AM
shortcut for
private $bar;
function __construct($this->bar);
 
I don't think I like that
 
Wes
but that imho was a bad idea. i'd have properties declared in one way only
however i liked what gordon proposed
and, in fact, i would extend it to all methods
 
Yes me too
Only without the empty body
 
Wes
private $foo;
function setFoo(Foo $this->foo);
function getFoo(): Foo $this->foo;
 
Unless a body is actually needed
 
Wes
11:33 AM
or at least the setter
 
I don't care that much about setter I think. Mostly useful for ctors
 
Wes
yeah. private $foo; $argFoo; $this->foo = $argFoo; "foo" appears 4 times
just... too many
challenge of today is not falling asleep during hungarian f1 gp. i don't even know why i keep watching that stuff
 
I'm not even watching it :)
How's max doing?
ow hasn't started yet
 
Wes
fine. but not a fan. and not even his fault, they are pumping him like he's the new senna but he has a lot to demonstrate yet...
he could win this race though. on slow circuits redbulls are strong
but if a redbull is going to win, i hope it is ricciardo's :B as he is 1/4 italian
 
@JayIsTooCommon ohho I used laravel in my current project because of its popularity and huge support
 
Wes
11:44 AM
i wrote a 100ish lines stuff that looks easy but it is not. and i have no idea how to test it properly
 
Anonymous
@Exception popularity doesn't always mean good ;) but if something is secure and is currently working for you, there's no great rush to change it. But maybe in the future, look for other options :)
 
 
pce
Good Morning!
 
you'v ever seen such a nice exception ? :D
 
@JayIsTooCommon yes I will.. thank for the advice
 
Anonymous
11:51 AM
@Exception no worries :)
 
The app you're working is called.... underware?
@ceed what editor/color scheme?
 
php storm
 
It looks nice, but.. underware?
 
colorscheme is custom
the panties of your frontend
well, working title i guess :)
 
@littlepootis I'm uploading a screenshot to the server, php failed to do so: imgur.com/a/SnJWQ
 
11:54 AM
@JohnyNassar What is php?
 
you'r still on that upload problem johnny?
 
yes, it's so strange man
 
do you have teamviewer?
 
I made a similar one a week before
yes
 
i had a breaktrough atm so i have air
:D
 
Anonymous
12:01 PM
My money's on Ericsson :-)
 
12:32 PM
@JohnyNassar you should debug more what you do there next time :)
 
alright yes
thank u man
you saved me
 
np, cheers
 
Gon
@DaveRandom @PeeHaa ping
 
jo
 
Gon
How is the Jeeves front-end login gonna work?
Like having a list of admins?
Is it gonna be accessible to all?
Or just the admins?
 
12:44 PM
I haven't done anything on it since forever so you might want to ask W@DaveRandom. I would say the admins of rooms will be able to login and change things
 
Gon
So, we would let the user authenticate using SE? Or just have a list of admins along with their passwords in a dB?
 
Chris was working on / looking into integrating openid
 
Gon
Hmm....
 
!!should I play tormentum or work on webnews?
 
You should work on webnews.
 
12:52 PM
!!i need a new name for my engine
:D
 
I suggest George
 
why?
 
TIL PHP has a number type
 
No it hasn't?
 
12:54 PM
Read the title of what you just linked ;)
 
"used in this documentation"
I know, I know.
 
No the thing before that
The first word ;-)
 
Anonymous
@PeeHaa you ever play rust?
 
Yea I have it installed
 
Anonymous
Do you play much? Thinking of getting it but looks impossible solo
 
12:56 PM
Occasionally
Download it now I am in for a game :D
 
Anonymous
Okie doke :) Live in the sticks so may be a while
 
meanwhile discuss engine names :> ?
 
@JayIsTooCommon Shout at it to make it go faster
@ceed What's the TL;DR of what it does?
 
Anonymous
@PeeHaa Thanks. If that doesn't work I'll whisper threats at it
 
:P
 
12:59 PM
parse indeted templates into whatever language you wna
wnat*
want* dammit..
 
I am the worst for this kind of stuff
Rendar
 
i had temple
 
Reminds me of templeos :)
 
because template engine
and the first thing was "caramel"
buttery smooth .>
 
I kinda like that one
 
1:01 PM
couldn't think of a logo tho
 
I always delegate logos
 
well i am a frontend designer/full stack programmer and print designer xD
i can do it, but i just didn't like any of them
 
@ceed Jack of all trades master of none
I have done print too somewhere in my life
 
salt in the wound
 
Not designer mind you
 
1:05 PM
a caramel cube is just to simple
:D
 
and I am the evil twin of santa clause
 
Anonymous
@PeeHaa not too long, should be done in 30
 
\o/
 
i also had this :D
 
Gon
o/
 
Anonymous
1:37 PM
@PeeHaa Ok, just setting it up now :)
 
kk
 
Anonymous
What's your steam?
 
Gon
 
errrrr. Where do i see that? :P
1cbf6aa12a
I think
Screenname is *****
Don't know which one you need
/me doesn;t understand steam
 
Anonymous
Alright, i'll try find you
 
1:43 PM
@Gon red and pink is meh ;)
 
Gon
:P wait then... lemme compile the sass with another theme
 
@JayIsTooCommon steamcommunity.com/id/1cbf6aa12a if it helps
 
Anonymous
@PeeHaa cool, 2 secs
 
k
Your dog is awesome btw
 
Gon
@PeeHaa purple & deep-orange?
 
Anonymous
1:55 PM
dog?
 
Anonymous
oh dp
 
Anonymous
ikr :D
 
@Gon ?
 
Gon
14 mins ago, by PeeHaa
@Gon red and pink is meh ;)
 
orange / reddish and pink / purple are all awful imp
 
Gon
2:00 PM
'kay got it..
 
Anonymous
Ah, forgot you have to find people in this game. You by any landmarks?
 
Nope. No idea yet where I am. And it's pretty fucking dark right now :P
I'll let you know once I know where I am
 
Anonymous
ikr :P Okie doke
 
Where do I start... When a link is clicked on my website I want it to redirect user once the link has been loaded
 
cmon gimme light
 
2:04 PM
Hey guys, can you have a look at: stackoverflow.com/questions/38551603/…
Maybe someone can share with me what his opinion ?
 
@JayIsTooCommon you found something yet?
 
Anonymous
@PeeHaa A rock and a tree? :P I'll try get to a high place and see if I can see anything
 
No worries. I also still haven't got any clue where I'm at
 
Anonymous
OK, i've found the big cylinder thingy in the distance, I can head towards that
 
@JayIsTooCommon is that that dome thing?
 
Anonymous
2:14 PM
@PeeHaa Yeah that's it
 
k. Just remember where it is so you can get back there once I have found it where the hell I am
 
Anonymous
kk
 
Hey guys any news for me?
 
@MyLibary *Library
 
Yes I know :)
 
2:23 PM
:)
 
I think I know where I am. Trying to get to the dome thingy now. I'll let you know when I see it @JayIsTooCommon
 
Anonymous
ok, I'll just loot around the dome :)
 
what is the meaning of OS in this context? "XAMPP for OS X"
is that mean MAC ?
 
Unix
MAC for instance
 
ah .. so it can also be "linux" or "wondows" ?
 
2:29 PM
Can't be Windows
OS X is MAC :)
 
Which OS do you have?
 
win
 
Download this
In case you're looking for XAMPP for windows
 
Anonymous
@PeeHaa I tracked the guy who killed you back to his house... Gonna try and kill him. Emphasis on try
 
2:39 PM
@MyLibary thx buddy - just how many bit is it? 32 or 64?
 
@JayIsTooCommon We will get back to him later :-)
 
Anonymous
@PeeHaa Yeah.. they had AKs.. I'm in middle of no where with no cloth so if you find any, i'm happy to spawn on you instead
 
@JayIsTooCommon kk. Let me grab some stuff
open console rust
and kill
 
Anonymous
@PeeHaa Okie, i gotta way 100 seconds
 
Anonymous
2:59 PM
@PeeHaa There is a bear near you.. Very angry, he has my limbs.
 
@JayIsTooCommon oh lol
 
Hello
 
Gon
o/
 
can you explain me - should behat tests test things end to end
or is it ok to test a repository class for example?
0
Q: Is it ok to test repository with behat?

Darius.VI want to test functionality of adding user. I wrote the following scenario: Feature: Add users In order to have users As an admin I need to be able to add users to database Rules: - User has a name Scenario: Adding user with name 'Jonas' Given There is no user 'Jonas' Whe...

 
hmmm .... what should I play
 
Anonymous
3:13 PM
@tereško rust
 
dont have it
I think I will give Apotheon a quick try
 
Does anyone know how to specify a return type of "self" internally?
 
3:44 PM
The above photo is one of d best photos in d world. See once, then turn down ur cell, then see again...
And then please tell me which one is the real car and which on is the shadow?
 

« first day (2108 days earlier)      last day (2840 days later) »