« first day (1841 days earlier)      last day (3113 days later) » 

10:00 AM
I think I am wasting my time here
 
what does "use php buy" mean?
 
chat is here to waste time btw ( and some times get some help )
 
its a "but"
 
I didnt get any help yet lol
 
@ELOISSIFIAhmed you were told (some time ago already) that you need to set write permissions on your upload forlder
have you done it?
 
10:02 AM
yes Ive done it
 
@ELOISSIFIAhmed What does $file->move return?
Can you var_dump that, and also the value of $file after the move?
 
Do you have any error messages? What have you tried for debugging?
 
@tereško no error msgs
@rtheunissen ok
 
9 mins ago, by rtheunissen
@ELOISSIFIAhmed what's the content of Input::file('image')?
 
meh: E_STRICT: fBGE_FrontController and Game_ResourceApi define the same property ($applicationResources) in the composition of Game_FrontController. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed
the flipping property "$applicationResources" get implemented by the SAME freaking trait.
 
10:04 AM
@tereško it's an image get the image form the input
 
@chozilla lol at traits with properties.
@ELOISSIFIAhmed have you confirmed that it's definitely set, and the image data is there? Did those var dumps show anything strange?
 
@rtheunissen I var_dumped $file->move() it shows nothing
 
/me pokes head in
 
@ELOISSIFIAhmed I don't care what you think it contains. What is being asked is: what does it actually contain
 
@rtheunissen oh man it always gets worse and worse with this cleanup. now i need to implement a getApplicationResources() function in everything that uses the trait?
 
10:07 AM
morning, Joe
@chozilla just stop using traits
 
@rtheunissen i mean its just another layer so it should be fine. but it really feels like it will break again later.
 
@tereško I var_dumped it and it shows nothing
 
@tereško give me code generators and i will stop using traits.
 
morning @tereško
 
morning @JoeWatkins
 
10:09 AM
i will not have 5000% code duplication because you dont like traits.
 
@ELOISSIFIAhmed "shows nothing", shouldn't it show something?
 
Hey @JoeWatkins, whats up?
 
@ELOISSIFIAhmed if it contains nothing, then your if (Input::file('image')) will fail
 
@chozilla you shouldn't like traits, they are in direct conflict with S from SOLID ... if a class's responsibilities are so complex that there is justification in breaking them down into smaller units, then your class is obviously doing too much .... they are a broken, incomplete, kind of inheritance that there are really good reasons for avoiding ...
 
@rtheunissen if I am not mistaken, Input::file() is a shitty wrapper around $_FILES .. so, "nothing" probably means that form-post does not contain that field
 
10:12 AM
in the original paper, for Scala, where they were first introduced, a trait is able to implement an interface, this is a key difference between what is accepted as traits and what we have ...
 
@tereško That's what I was trying to sniff out.
 
i know .. why do you think I quoted you earlier
 
TL;DR avoid traits until they are finished ...
 
@JoeWatkins i am creating a complex application. nothing a sane person would do, so can we skip the "your doing to much" and get a solution...
 
you can solve complex problems without creating complex solutions ... and it's what you should aim for ...
 
10:14 AM
@chozilla just because application is complex, it does not mean that you have to dump all the logic in a single class
 
in the project I am involved, trait is used like a way to avoid copy paste
 
@VamsiKrishnaB FYI, traits are just interpretator-assisted copy/paste
well .. at least for now
 
@tereško why explain it to me then?
Traits are useful for tests.
 
not really
 
@rtheunissen we don't speak about the things we do for QA ....
 
10:16 AM
@JoeWatkins the Trait is a API implementation, it is to Access all objects from different layers of the domain. it is split into Application, Realm, Game, Session and Entity layers. But i do not want to implement everything that the single layer has all the time again and again. i do not want to implement 7 getters in every class that implement an API.
 
@tereško what should I do ? the input contains no value
 
there aren't use cases that allow you to break basic rules, it doesn't matter what you are doing ...
 
@ELOISSIFIAhmed start by checking if the file is actually submitted (check the "network" tab in your browser's devtools)
 
what freaking basic rules do you talk about
 
@chozilla OH nvm ...
 
10:18 AM
@tereško I did its not subbimtted
@tereško where is the problem bro
 
@ELOISSIFIAhmed then the problem is in your HTML/JS
and please dont call me "bro"
 
hehe
 
@tereško lol ok I used in the view {{url($article->image)}} but it shows myapp.dev/theupdatedImage.png why its not moved to uploads foder ?
 
@JoeWatkins he's the same guy who few weeks ago was here with code where Entity extends Session which in turn extends Game, which then extends Realm, which is a child class of Application
 
so everyone says "you have to clean it up" but noone says how to do it. I work with PHP for 13 years now, and never ever have I seen a project that is "clean".
I however have seen a lot of php projects that where successful without being clean.
 
10:22 AM
 
yea. one day you will do something that lasts...
 
@tereško plz help me
 
I cannot help you, it seems that you have no idea what you are doing
 
@ELOISSIFIAhmed You are not passing the image data (of the new image) correctly back to the controller. Input::file('image') should contain your image, and it's doesn't.
 
10:26 AM
@tereško Im just a beginner
@rtheunissen and what should I DO ?
 
@chozilla just because you have been banging rocks together for 13 years does not make you an expert mason
8
8 mins ago, by EL OISSIFI Ahmed
@tereško I did its not subbimtted
then find why it's not getting submitted
 
@ELOISSIFIAhmed where is the HTML that's supposed to send the image?
 
<img class="media-object" src="{{url($article->image)}}" alt="{{$article->title}}" width="150" height="90">
 
@tereško no but in oder to do something for that long of a time you have to have the feeling that you improve yourself and learn things (about the rocks if thats what you think php is) that no one who reads books about rocks or hears people talk about rocks ever would have known.
 
@rtheunissen <img class="media-object" src="{{url($article->image)}}" alt="{{$article->title}}" width="150" height="90">
 
10:29 AM
@ELOISSIFIAhmed that's not for uploading images
 
@ELOISSIFIAhmed Should have a <form> somewhere.
 
@chozilla .. so congratulations. You have learned to feel the rocks and talk to the rocks
 
@tereško sad to see that you do not have the philosophical capacitys to understand why this is the only way to improve one self.
you do not much programming right? only talk about programming? not banging the rocks?
 
forums.phpfreaks.com/topic/… <- this thread made me wake up in a topkek mood
 
himalayan pink salted passwords . ^^ made my day
 
10:38 AM
@chozilla omg, you have seen through my smoke screen. You have figured out that I am not a developer.
 
@tereško @rtheunissen I used this <h4 class="modal-title custom_align" id="Heading">Edit l'article : {{$post->id}}</h4>
</div>
{!! Form::model($post,['method' => 'PATCH','route' => ['articles.update', $post->id]])!!}
@include('partials.postForm')
<div class="modal-footer ">
<button type="submit" class="btn btn-warning btn-lg" style="width: 100%;"><span class="glyphicon glyphicon-ok-sign"></span> Update</button>
</div>
{!! Form::close() !!} and
<div class="col-md-12" style="padding-top:10px;">
 
and now you could go and learn about SOLID
 
@tereško i figured out you are a troll 20 minutes ago..
 
@chozilla he's not trolling you ...
you really should learn about SOLID ...
 
i freaking know all about SOLID
 
10:42 AM
really ...
 
I have code, it is not SOLID. there is no way to make it SOLID.
 
@chozilla that's somewhat impressive claim
 
@chozilla so when you start working on some legacy code, do you just blindly repeat the mistakes, adopt the same patterns, or do you try to improve it ?
it's a bit defeatist to say "it can't be done" ... it's also untrue ...
 
@JoeWatkins where / how can I find where $array[] = ... is handled?
 
E_TOO_MUCH_AMBIGUITY
phpdbg -p* test-script.php
 
10:47 AM
@rtheunissen this is why we use OOP :)
 
Heelo
hello*
 
+-rr to run the code ... but if you just wanna look at what's being executed, then use above ...
or vld, or gdb, or whatever your chosen poison ...
 
Heh that's awesome.
Thanks
 
@rtheunissen help me plz
 
lxr zend_vm_def.h, prefix opcode name with ZEND_ in symbol search should usually yield handler ...
 
10:50 AM
@ELOISSIFIAhmed I don't know Laravel well enough :/
 
this is going to be the longest weekend ... waiting for bike to be released ...
 
@tereško help
 
@ELOISSIFIAhmed don't ping random people asking for help, ask your question and wait for a response ...
 
@ELOISSIFIAhmed you would get much more help if you were somewhere people actually used Laravel
 
@JoeWatkins Im in conversation with people that i ping
@andho laravel is a php framework
 
10:56 AM
@ELOISSIFIAhmed doesn't change anything in my point being made
 
@ELOISSIFIAhmed please don't argue with me, if people want to help you they will, they don't need to be pinged ...
 
Not sure which is better... banging rocks or being the laravel tech support of this channel...
 
ZEND_CALL_TRAMPOLINE wut
 
@rtheunissen omg, don't even ...
__call
it's really horrible to work with, don't go anywhere near it ...
 
@JoeWatkins please dont play with me im here to get help if u cant help just shut up
 
10:58 AM
@tereško I have a desktop machine that is slow in loading some games like Biohazard Revelations and Modern Warfare 3 to Ghost. It's slow in the black screen before the game starts even. Once the gameplay starts it smooth as rocks (in the river). Any idea why this could be?
 
I don't often kick people, but when I do ...
 
@andho are you by chance loading them from HDD instead of SSD?
it takes time to load textures in the VRAM
 
@JoeWatkins Trying get to nested read_dimension working, feels like I'm reaching for a lightswitch in the dark.
 
@tereško yeah I'm using an HDD. But also did try with a RAM Disk
 
@JoeWatkins when you do ... you kick it softly.. ;)
 
11:00 AM
Also tried with the lowest graphics configuration. And still the same thing.
 
@John hehe, yeah ... but it gets harder ...
 
I'm trying to figure out what component I should upgrade. Graphics or Motherboard.
 
@andho naah. First upgrade should be an SSD. Though, actually knowing your hardware setup wouldn't hurt.
 
@JoeWatkins eventually ..
 
hey
 
11:02 AM
@rtheunissen depending on what kind of magic you are doing, you might need to implement your own guards ...
 
@tereško hmmm wouldn't hurt yeah.
 
Im outtie
 
I guess you're overflowing, right ?
 
@tereško crappy FM2+ motherboard. A6 5500K CPU. HD 6570. and 16 GB value RAM. Let's add the crappy HDD to the mix.
 
Hmm nope just getting "Indirect modification of overloaded element of ___ has no effect in..."
Thinking I should maybe make the return value a reference? This is for something like $c[x][y] = $z;
 
11:06 AM
how did you determine why you are getting that message ?
 
@andho if you change mobo, you will also have to change the CPU (FM2+ socket is only for AMD's APUs)
 
@tereško I'm thinking next buy an AMD A10 CPU, after the mobo upgrade
 
dunno
APUs are not really meant for gaming systems
 
Because $c[x] returns a copy, so trying to write to it doesn't make sense, as it would just update the returned copy which isn't assigned to anything.
Wooo ZVAL_MAKE_REF ftw
 
@tereško yeah.
 
11:11 AM
@rtheunissen :)
 
That's BP_VAR_R and BP_VAR_W passing. For BP_VAR_IS, not sure what I should be returning if the value doesn't exist. As in $c[x][y], it's reading the x, which if exists make reference, but if it doesn't... undefine it?
EG(uninitialized_zval) kapow
 
One question
what value do I have to put inside the brackets of $_POST?
the id or the name of the input?
I have a mess in that point
 
11:26 AM
name
 
@tereško thanks
@tereško Still, after use name I get Undefined index on that input o.o
 
just try var_dump($_POST) and see what you are getting
 
@tereško gonna try
@tereško null, it doesn't make sense
 
are you actually posting the form?
 
I wrote text inside
yes
 
11:33 AM
what method have you set for the <form> ?
 
post
it uses ajax
All the rest of the vars are using the same methods, I mean, the same way to be declared
and this input is the only one which output that error
 
what is the code, that submits the form?
 
lolwhat?!
 
what's wrong?
 
11:38 AM
everything
 
D:
well, I changed the code, I forgot to tell you
I'm not using id anymore and things like that
that I just asked you
 
that is nothing to do with MVC, your code is vulnerable to SQL injections, the JS is a disaster and you are keeping plain-text passwords in the database
 
I'm using the name, but if you say that everything is wrong.
I know, I'm not handling sql injection yet
well, security in general
I just want to stablish connection, perform inserts, and then I'll take care about those things that you say
 
@ITProGuy No, you won't care then.
 
It's the first time that I use mvc, so it's a little bit abstract to me
@kelunik better I will do, trust me
 
11:42 AM
that is not MVC .. you have separated templates from DB logic , which, while good thing to do, is not "MVC"
 
@ITProGuy Actually I don't care what you do, as long as I don't have to use anything you created. It's just an advice.
 
I thought that I was in the correct way, now I see that not.
View- html, controller- handler of petitions, function calls and model - functions and stuff
 
no
 
I see..
Then, even if that's not mvc, is there some way to perform the insert or..?
 
what are you asking?
 
11:47 AM
@ITProGuy check the Network tab in the Chrome developer tools to check if your Ajax request is sent correctly. MVC is separation of Model (business logic) -> View (presentation logic) -> Controller (application logic).
 
I'd like to insert the data from the form to the db, using all the files, supposed to be mvc
 
@andho wrong, controller just handles user input to alter the state of model layer. "Application logic" is what happens in the service layer.
 
with ajax, of course.
the main problem is that the value of my input "pass1" is null
and I don't know why
 
by the looks of it, you are doing the "ajax" part wrong
that's why the $_POST is empty on the PHP side
 
but it just happen with that input
the rest of the inputs takes the values
 
11:50 AM
@tereško there are Application Services and Domain Services. In the Application layer and Domain layer.
but the Controller does handle user input.
 
@andho what are you talking about? Domain layer is what contains domain objects (in other literature called "business objects" or "model objects"): c2.com/cgi/wiki?DomainObject
 
@tereško Domain is made up of Entities, Value Objects, Services and Repositories.
> usually represents a logical entity in the problem domain space
 
not services
Services are what deals with interaction between domain layer and persistence layer
you seem to be using different definitions
 
Yeah. I have differentiated between Domain Services and Application Services
But I suspect you're not a fan of the DDD bandwagon
 
I read DDD stuff, but I am not a blind believer
also, your link seems to be based on .NET stuff, by the feel of it
they have spent at least 5 years trying to prove that "ASP.NET MVC" has anything to do with MVC
 
11:56 AM
some hint about my problem?
That input is the only one that doesn't take the value
 
7 mins ago, by tereško
by the looks of it, you are doing the "ajax" part wrong
 
Yes, you told that but it's too abstract. I mean, thanks, but could you be more specific? I'm not an expert like you, that's why I'm trying to get some light
 
hi
i want to send data to different pages..
Like user name and password on page one, and Email address address on other page..
But i collect it from one page..
How it is possible??
any idea..
 
> check the Network tab in the Chrome developer tools to check if your Ajax request is sent correctly
@ITProGuy ^
 
@SajjadKhan you can do something like that using XHR, but you really shouldn't because then you will also have to deal with race-conditions
 
12:02 PM
@andho it works properly (or it seems)
 
i use php mailer class to sent mails but content is passed on one page and email id is passed on php mailer class page??
 
@ITProGuy i would like to see that
 
@andho of course, wait
here you have
 
@SajjadKhan why exactly can't perform both operation using same destination?
 
where does this url point @ITProGuy url: "../controller/register.php",
 
12:05 PM
@tereško I'm guessing he is much wiser now in 2015 even if I linked to 2008.
 
@RonniSkansing from ../js/valReg.js
 
b/c content is saved on another page which is formatted and the email is passed to mailer class page.. I know it can be done to transfer the data on the same page.. But i personally thought it makes my code large.. and also messy..
 
why do you have ../ I think you would be better of writting the absolute path
 
@RonniSkansing it worked to me always, that's why
maybe I have to consider to use absolute paths
 
Hi guys,
 
12:08 PM
I do not think it's your issue, but at some point spend 10 min on the difference with absolute and relative paths
 
@tereško also when sending mails using mailer class it require app password.. but not every body email is allowed to recieve mail form unautherized application??
 
Hi @HassanAlthaf
 
hope you get what i try to convey
 
I'm participating in a competition and the theme is "Integrating Education into Technology" and I am really out of ideas onto what I should really create. Any ideas?
 
12:09 PM
@RonniSkansing Long time no see. :P
 
@RonniSkansing I'll consider
@andho some light?
 
@SajjadKhan it looks like you are still doing the "include oriented programming"
you problem is caused by issues in your code structure .. you should really look into learning OOP
 
@ITProGuy so if you do a var_dump($_POST); die; in the php file.. do a ajax request.. look in the network tab at the response of that XHR, does it say null?
 
yeah.. i am not using OOP concept
 
@ITProGuy what about the response and request headers in the ajax?
 
12:11 PM
@RonniSkansing In the network tab I get the values but the output of var_dump is null
 
and when you are looking a the output of the var_dump, are you looking at the response to the XHR in the network tab?
 
@tereško but tell me about app password generator??
 
Is Node.js > PHP?
 
I am kinda in the middle of making food
 
mail account not recieve mail from Not Authorized app?
 
12:14 PM
:26606043
and in the response tab appears null
 
when you say appears null
 
@SajjadKhan I have no idea what you are asking there.
 
does it have nothing
or the specific word null
 
@ITProGuy sorry, also need to see the part above that
 
the specific word
 
12:16 PM
@tereško php mailer class?? the mail account deny to receive mail form not autherized app..
 
@andho that's all what I have (?) puu.sh/l4gPt/74e1e5edd0.png
 
and php mailer is not autherized so you need to create app password?
 
gods below!
 
Password to use for SMTP authentication
 
you are using words in english but they are not making sense
 
12:19 PM
@ITProGuy can you copy/paste the source from your original pic. From the post body
looks strange that you get null. Did you try var_dump('sdfsf');exit;?
 
@marcio I know what you mean… that's fine to leak md5 hashed passwords, but pretty inefficient to leak big data… and after all, we assume knowing the table layout etc. …
 
@andho which source you mean?
@andho yes -> null
 
@ITProGuy var_dump('sdfsf');exit; gives you null? Then the var_dump('sdfsf'); is not getting executed and your null is coming from somewhere eelse
 
@andho sorry, that code, as you wrote it give str len 5
I mean, is being executed
what code do you want ? The handler?
or form?
 
@marcio assuming you don't have permission to read information_schema obviously…
 
12:27 PM
morrrning
 
@ITProGuy no I have no idea how to debug that. I would probably strip it down to the simplest form. For example, just submit a normal form to that url.
 
I'll probably post a question
it's too messy
 
12:52 PM
@ITProGuy since you are using jquery, you might benefit from this snippet:
var paramObj = {};
$.each($('#myForm').serializeArray(), function(_, kv) {
  paramObj[kv.name] = kv.value;
});
that should let you compose the data part of your $.ajax() call
 
1:03 PM
o/
 
hi every one
Best PHP IDE for Mac? Preferably free!
Any suggestion?
 
@ShanXeeshi PHPStorm is the darling it seems, but it costs. There's some free ones. NetBeans? There's probably a list somewhere
 
Yes PhpStorm is very good I have used this one but its paid
 
NetBeans is free, you might want to try it
I can't remember the other free ones, hmm
 
1:19 PM
ok Thanks! let me try this for Mac
I have use Netbeans on Windows for Java
 
ah :)
 
PhpStorm only costs money if you value your time at less than about 10 US cents an hour.
 
I tried it very briefly for PHP (I generally don't use IDEs). The code quality checker bugged me, but I like that it has proper auto completion and such
Here's a list of the most popular IDEs: sitepoint.com/best-php-ide-2014-survey-results
@Danack is the extra expense really worth it, though?
 
Yeah....just having a debugger, code completion, reasonable code quality checker in one thing makes me program a good 5% faster than I would otherwise. Which over the course of a year really adds up.
 
@ShanXeeshi do you really need a full IDE?
 
1:23 PM
yes
 
And with DynamicReturnTypePlugin when I type $obj = $injector->make('SomeClass'); it knows that the object created is of that type, so the autocomplete works....
 
@Andrea self-reporting and half are just editors
 
For people who fiddle with databases, the integrated DB stuff is very useful as well - though I don't use that myself.
 
my main issue with PHPStorm is the UI
it feels .. emm .. off
 
@Danack yes, but free IDEs can do this
@tereško interestingly enough, yes
 
1:27 PM
there's a difference between 'can' and 'can do well'.
 
though the difference between an editor and an IDE is mostly just plugins :p
 
the "self-reporting" is the more important part
because majority of php developers are not "active"
they are more in the "dark matter developers" category
 
yes.
OTOH those kind might not even be looking for IDEs
 
well .. they were having editors in that "survey"
from my experience, majority of developers are actually using notepad++ and netbeans
 
editors are painful for dev
 
1:30 PM
@ShanXeeshi have you used Atom, Brackets or Sublime Text?
 
then you have no idea what you are talking about
 
i am using netbeans am i doing wrong??
 
There is only one advantage for me to use editors if you are multitasking editors will not use more resources of system
 
@AnmolRaghuvanshiVersion1.0 depends. Did you choose it because you researched the available options or because that was firs one you were suggested?
 
1:36 PM
@Anmo Are you using on MAC?
 
first one i was suggested teresko.
@ShanXeeshi no
 
Need some help guys,
 
@AnmolRaghuvanshiVersion1.0 then you probably should try researching what's out there
 
I'm using fastroute.
And,
I get error access forbidden in the / URI
and when I use /lol URI I get 404
I have clearly defined them, but still.. :/
I use Apache btw.
And I have created an .htaccess file, which is meant to work fine
Any help?
 
Ok if you are referring and prefer Atom then i can use.
 
1:40 PM
[Sat Oct 31 19:08:46 2015] [error] [client ::1] Directory index forbidden by Options directive: /Applications/MAMP/htdocs/StudentNetwork/
I get that error btw
nvm fixed
 
I'm using Sublime Text 3 on my macbook...you can use it for free and it's highly customizable!
It has a PHP Syntax Checker!
 
Does It make you system hot if you do multitasking
 
it's really light
it's a text editor
anyway
text editors usually don't eat many resources
 
oh ok
2
 
Argh, this Auryn
fails
to make a class
HassanAlthaf\StudentNetwork\Controllers\ViewController does not exist
While it clearly does.
 
2:05 PM
codez?
 
@RonniSkansing The problem was that i forgot to run composer update xD
@samayo Damn, thats freaking horrible.
 
2:23 PM
=)'
 
Abe
o/
 
Ahoy hoy
 
Abe
afternoon
 
@NikiC I don't suppose you could give me a few pointers on what I'm doing wrong? I'm trying to create a simple `create_var` function, so that executing `create_var('test', 'str'); echo $test;' outputs "str", but it doesn't seem to add the variable to the symbol table:
**PHP Notice: Undefined variable: uest in** (Note the **uest**, rather than **test**)
Also, what happened to `active_symbol_table` for the current scope? (Reading Extending and Embedding PHP, so all code examples are outdated...)
 
@samayo that's sad
 
2:37 PM
o_O
 
Abe
2:55 PM
@ircmaxell i've read your articles about mvc and i have a dumb question :D what do you exactly mean with "logging"? logging as being a facility for monitoring and debugging, or being an actually required functionality for the application to work?
like - providing feedback to the user of what their request changed in the model?
 
3:40 PM
Anyone have an idea why only one process would receive connections when creating a socket server in multiple PHP processes using the so_reuseport option?
 
@Ocramius those with the green busses? IIRC they have Symfony as part of their stack.
And yeah, async deluxe :D
I'm not that much online the last days.
 
@Trowski the best option would be to ask @rdlowrey
 
3:56 PM
Yeah, he would probably have a good idea why that might be happening.
 

« first day (1841 days earlier)      last day (3113 days later) »