« first day (2423 days earlier)      last day (2525 days later) » 
00:00 - 18:0018:00 - 00:00

12:29 AM
Mornings
 
12:40 AM
Namespaces in core … what's this bullshit RFC. And no, I don't want to decide on all those questions now.
 
12:53 AM
@bwoebi OCD is a hell of a thing.
 
 
1 hour later…
2:17 AM
@Danack If only we could stop wasting time on the wrong things.
 
2:54 AM
Hi everyone!
I have a question, can anyone entertain me regarding PHP and Javascript ?
I want to back trace a variable, how can I modify the value of someVar which is defined like this

<div id="someId">
{var name='someVar'}
</div>
Ok I found it, thanks everyone!
 
4:00 AM
Morning
 
4:19 AM
how do I get at the info in a php object? -- I'm using wp_count_posts in wordpress, but can't echo it (cause it's not a string, but an object) -- even var_dump doesn't give me any useful info (just "object(stdClass)[549]" )
 
 
1 hour later…
5:38 AM
Stop abusing flags.
 
5:52 AM
What's been flagged?
 
What @Wes said, who has now been suspended, for what I thought was not a flaggable statement
 
6:10 AM
I didn't remember what was written but Wes could not write something which is can be flagged, till someone take it personally..
 
Apparently somebody took offense to punks setting off firecrackers in a crowd, causing panic and possible fatalities being called a "motherfucker"
 
6:58 AM
posted on June 04, 2017

New Cyanide and Happiness Comic

 
 
1 hour later…
8:04 AM
mornin
 
morning
 
8:37 AM
I've got a git repository on github and I have to set up my branch so it points about 5 commits earlier, how can I do it?
 
8:48 AM
@brzuchal "I have got" means "I had" ?
 
@brzuchal Branches do not automatically follow the tip of other branches
You'll need to write a git hook to manage that
And also prevent others from pushing to your branch
Also, I would use a tag and not a branch, because tags can't be advanced by committing to them by accident, like branches can.
gtg, lunchtime :D
 
mornin
 
YO!
 
9:04 AM
@MadaraUchiha I'm talking about remote branch which has pull request #2080 to php-src and I had a patch prepared but later few commits were added to add a caviance patch to my object-types branch
I did something like git checkout to preffered commit and then git push -f origin HEAD:object-types and I think it worked, but I don't see any changes in PR
 
If you don't want tracking, you can just checkout whatever-branch~5 and create a branch there
 
It was an existing remote and local branch already
 
hello everyone, do you have any idea for final year project.
 
@codenut what do you mean by final year project?
 
college
college final year project
????
 
9:19 AM
@codenut something something machine learning something
 
@codenut Are you looking for a subject as your thesis' title?
 
it mostly depends on what your current level of understanding is
 
not thesis i am looking for some application to develop
i can code on java,python and created some websites in php
 
so ... "alternative genetic polymers as form of data storage" is not applicable
 
"alternative genetic polymers as form of data storage" what is genetic polymers
 
9:24 AM
make a site, where you can use a web UI to direct a "survey" of an area, track a progress of a drone (quadcopter) and retrieve the information
 
@tereško i was also tinking of something something python + AI
 
the issue with AI project is that you need to apply it to a specific problem domain and you need access to large set of data
as in, you will need a huge amount of "training data" and then have enough left for verifying
in sample, out of sample
 
so for what should i go for
 
@tereško lol! What'd I do to deserve this, this time? ;)
 
@Jimbo I just quoted the room's welcome message ... as you might notice, I am not a room owner and have no ability to change it
 
9:31 AM
What's AI ?!
 
artificial intelligence
actually, it should have been referred to as "machine learning"
 
ah ok
 
Anyone can take care of my PRs in github.com/php/web-doc-editor/pulls ?
 
9:50 AM
do you all have any ideas about trending domains about startup in computer field
i can say one is computer controlled electronic devices
like arduino
etc
 
AI is a large field, ML is a subset of that field.
Machine learning is fairly simple too. The most basic implementation I've seen was used to replace AB testing.
 
10:10 AM
Hello I am trying to connect oracle database with php
using instant client
This is my code :
I am getting this error :
Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\xampp\htdocs\a.php on line 4
How can I resolve this error ?
I have followed almost each and every post regarding it's solution
any idea ?
 
@W.Jack if you open a command prompt and run this: echo %path%
does the resulting set of paths contain a directory where the mentioned files are installed?
 
yes
my oci8 is also shown working in phpinfo
And my instant client is also functioning...
But strangely when my php tries to connect to the oracle using instant client it fails
 
10:28 AM
It's worth restarting Apache (and potentially even your whole computer), although tbh it seems unlikely that's going to fix anything when phpinfo() is showing that
it's also worth registering the oci.dll file manually with regsvr32
Windows dynamic library loading really suck though :-(
 
@brzuchal Assuming the branch you want is pr-2080:
 
is that the correct name for that file or did you rename it @W.Jack?
it seems kinda short#
 
$ git checkout pr-2080~5
Warning, you're in detached HEAD mode bla bla bla
$ git checkout -b mybranch-5-commits-behind-pr-2080
Created a new branch bla bla bla
The ~5 means "5 commits behind"
So you move your HEAD to 5 commits behind pr-2080, then create a branch there
Then you can push that new branch, and it would be 5 commits behind in the remote as well.
 
Which file you're talking about @DaveRandom ??
 
10:43 AM
@W.Jack oci.dll
You could use sysinternals process monitor to inspect which files the process is querying for
it may also be that it needs more than one
 
!!dad
 
Mountains aren't just funny. They're hill areas
 
You know it's a good dad joke when it makes you groan loudly irl.
 
That one is one of my favourites
 
10:58 AM
I still don't understand it..
 
@Linus hill areas is a word play on hilarious
 
A thanks Ronni :)
 
bob
Hey guys i know this is not relevant for php but thought id ask anyway. I try to create a bootable usb thumb drive using a mac, however damaged the volume. How can i do it without messing it up?
 
what do you mean by "damaged the volume"?
like, broke a flash drive?
 
bob
@DaveRandom no, was unable to format it or repair it with diskutil
 
11:07 AM
sounds like it's just a busted disk, unlikely that has anything to do with what you were trying to do with it, likely just a coincidence in terms of timing
it could be that whatever software you were using to create the image is borked
 
bob
@DaveRandom i was using terminal
 
What program?
 
bob
@littlepootis just terminal.
 
Terminal isn't exactly software in and of itself, it's just an interface for running other software
@bob what commands were you running?
 
bob
11:09 AM
@DaveRandom sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/disk02 --applicationpath /Applications/Install\ OS\ X\ Yosemite.app
 
Does that program require the volume to be formatted in a certain way?
 
bob
@littlepootis i followed this: support.apple.com/en-us/HT201372
 
Did you try zeroing the boot sector?
 
@littlepootis no it reformats as part of the process
 
bob
@littlepootis I erased the disk with diskutil and then use the above command. (yes, erasing it not required)
 
11:11 AM
I would say that you just have a dodgy disk
it's coincidence that this operation is the one that exposed that fact
 
@DaveRandom How's the DNS work going?
 
@kelunik I'm attempting to make a UML model of it
because I am really struggling with the complexity without it
 
@DaveRandom Because it's getting too complex now?
 
bob
@DaveRandom wait. I'm reading now that specific formatting is required. support.apple.com/en-us/HT202796
 
without TCP it would be a lot simpler
 
11:13 AM
@DaveRandom Why use TCP then?
 
I keep asking myself that question... mostly because the existing implementation does
could drop support for it in 2.0 with a view to re-introducing it down the line
However I feel like the main problem is inadequate separation of concerns anyway
hence the UML
 
I'd do that if it increases the complexity that much, as it's blocking the release.
 
OK
Are you around all day today?
 
Yes, probably.
 
OK, I have about an hour now and I will have a lot more time later, I will come back to you in a bit
 
11:18 AM
What's the current state? Is it pushed somewhere?
github.com/amphp/dns/blob/… should probably not extend ResolutionException, as you don't want to retry those.
 
@DaveRandom Whoa
If you need UML something is very, very wrong
 
@kelunik The current state hasn't changed much for weeks, several time I have sat down, written a load of code, and throw it away because it was just wrong.
user image
3
we are now nearing the end of that diagram
 
11:40 AM
@DaveRandom … you hope so, you think? :-D
@NikiC sometimes you just need such a thing to be able to realize what you've thought doesn't really work and just throw it away…
 
^ basically that
I need to visualise the relationship between the caching layer and everything else
 
Anonymous
@DaveRandom I wonder if that images holds truth for all typos of jobs, because it explains my work flow as a developer accurately.
 
Anonymous
It only takes only my first error to start the red line for me
 
12:00 PM
Hi guys, I'm using NPM.
And it's on the root folder of the project.
Now, I need a library for this project, which is to be used for the public view, i.e. public folder.
How would I go about including something in the node_modules folder?
the public folder and node_modules folder are in the same directory level.
And the website will point to the public folder being the root dir.
 
npm install X ?
 
I did install the dependency.
It's Bootstrap.
 
and now its in node_modules
 
How do I use it in the public folder now?
Since the node_modules cannot be addressed
 
why, can it not be "addressed"?
 
okay, well that makes sense, mostly you dont want the node_modules in the public
 
Yeah.,
*Yeah
 
Most peeps use tools to bundle the js files and what not
 
tools like gulp, grunt, webpack etc
 
12:05 PM
Oh, so can I use grunt to like
Move the files I need to the frontend?
 
also looks like theere is a webpack file right there
 
Yeah, it's by default from Laravel.
I'm using Grunt.
 
Well, you need to learn to use grunt, gulp or etc to compile/bundle your assets
I recommend making a new project, focused only on this task
 
I am learning Grunt right now.
lol
 
just so you get what it is you want to do, and then apply it in the hellaravel
Grunt has almost been replaced by Gulp or most people I know migrated to it
 
12:08 PM
Really?
I thought Grunt was better. ;l
I'll try Gulp next time.
 
Yea try it out next time
 
Wtf do I do now
Use a copy library to move the files I need to public?
 
well kinda.. that is what gulp/grunt is used for also
Again, learn to use grunt/webpack or whatever ships with laravel, take a tutorial or two and it should be more obvious
 
Haha got ya.
I am learning on the fly.
This is like a personal project where I am planning to learn SASS/Grunt.
Thanks for the advice.
 
12:11 PM
Btw
What are some other tools that I should check out
 
Personally I mostly use webpack
and babel
 
Im stuck with a php mysqli query, would anyone mind to help
0
A: Searching for MYSQLI record across multiple tables with AJAX

s3nzoMI have not tested this but it seems you need a JOIN, try this query $search_query = explode(" ", $_POST['search']); $model_search_query = $cameras_pdo->prepare("SELECT m.id,m.model,b.brand FROM models m INNER JOIN brands b ON b.id = m.brand WHERE (m.model LIKE :model AND b.brand LIKE :brand) O...

 
@RonniSkansing Is it the same?
 
if babel and webpack is the same? no (=
 
Webpack and Grunt
I know Babel is a transpiler
 
12:12 PM
nope grunt is a task runner
webpack is a module bundler
 
So lets say in this project,
I have these things to get done:
Transpile SASS to CSS
Minify the files.
And concatenate everything to form one huge file (lesser requests, better performance?)
Same goes with JS.
 
Would I be able to get all this done with Webpack?
 
yes, but it works differently then grunt/gulp
 
I'm totally in for it then. Fuck Grunt.
 
12:14 PM
@RonniSkansing You helped me before with a param query, would you mind having a look at my question if you get a chance ?
 
Any good tutorial you know for Webpack?
 
@HassanAlthaf but gulp/grunt can do some other tasks (which might actually just be npm scripts but..) anyways just know that webpack is different from gulp and grunt
 
Can webpack "watch"
 
All I need my friend.
Any good tutorial you recommend?
 
12:16 PM
I dunno bout tutorials, bout maybe their webpage might be a good place to start webpack.github.io/docs/tutorials/getting-started
 
How did you learn?
 
Reading the docs (= and a few blog tutorials on specifics
@Bradley I dont understand the question
Perhaps it could be simplified ?
 
Well I have 2 tables, one called models and one called brands
In the models table, the model name and model specific information is stored
In the brands table I store the brand name, ID and brand URL etc...
In the models table, there is is column named brand however it only stores the ID of the brand for that model
 
yes a foreign key?
 
yes, just an ID that relates to another id in the brands table
 
12:24 PM
Yes a foreign key
 
Currently the user can search the model name ... however they cannot search the brand name because I only store the brand ID in the models table
 
So you are looking to join the table on the foreign key or do two queries?
 
Well two queries was the approach I was looking at
or something along the lines of what someone answered, however it does not work : $search_query = explode(" ", $_POST['search']);
$model_search_query = $cameras_pdo->prepare("SELECT m.id,m.model,b.brand FROM models m INNER JOIN brands b ON b.id = m.brand WHERE (m.model LIKE :model AND b.brand LIKE :brand) OR m.model LIKE :model");
$model_search_query->execute(array(':model' => "%" . $search_query[1] . "%", ':brand'=>"%" . $search_query[0] . "%"));

while ($model_search = $model_search_query->fetch(PDO::FETCH_ASSOC)) {
 
I cant read whatever you just wrote, please format it
 
yo
 
12:30 PM
yo
 
what's up
 
Chillin
What you up to?
 
got back from cycling through woods and general countryside ... for like 3 hours
 
It was posted as an answer here :
0
A: Searching for MYSQLI record across multiple tables with AJAX

s3nzoMI have not tested this but it seems you need a JOIN, try this query $search_query = explode(" ", $_POST['search']); $model_search_query = $cameras_pdo->prepare("SELECT m.id,m.model,b.brand FROM models m INNER JOIN brands b ON b.id = m.brand WHERE (m.model LIKE :model AND b.brand LIKE :brand) O...

 
@Bradley why are you calling those "models"
 
12:31 PM
models as in camera models
 
oh
sorry
 
Im a bit stuck with a mysqli query
 
@RonniSkansing What is the best way to install Angular 4 on laravel?
 
@Bradley the "correct answer" is actually not to use SQL for search at all ... it's really bad at it
what you would need is something like Sphinx or Elastic (on top of you MySQL)
 
Don't use sql to search though phpmyadmin tables ?
 
12:33 PM
@HassanAlthaf build two different applications
Laravel well be the API backend
 
Ohhhh.
 
Angular4 will be a frontend project, that only talks with the backend via API calls
Oh yes
 
@tereško Is it possible in pure mysqli ? the query is used in a not popular section of the site, so I'm not particularly worries about efficiency
 
@HassanAlthaf laravel is a shitty server-side frameworks, angular is a frontend framework (that suffers from codebase changing faster than documentation being written for it and hello-world examples being uniformly shit ... just like in all other Google API docs)
 
That's true. Angular keeps changing.
 
12:35 PM
@Bradley gimme a sec to read that question
 
What's a good alternative?
 
I worked with it for about a year (from ang2 stable)
 
@tereško Thankyou
 
up to angular4
Had BC underway, but no disasters
 
BC? Breaking changes?
 
12:36 PM
yes, meant to say backwards compatibility breaks
 
@HassanAlthaf unless you are really good at javascript AND application architecture, there are no better alternatives
 
@tereško I'm OK with JS. I can catch up. Just throw the alternatives at me. ;)
I'm a noob willing to learn ;]
 
the alternative would be to implement it all your self, by assembling your application from npm packages
and a lot of custom code for data-binding
basically, a DIY
 
Ahh
That sucks lol
Guess I can stick with Laravel and Angular in that case
 
why the hell would you use laravel for anything ..
 
12:42 PM
Is there a way to bump up a question to get more people to look at it
 
no
 
I use Laravel because, everything I need is pre loaded with it
It has this cool Eloquent.
 
It makes me write way lesser code.
3
Be more productive
And of course, don't have to configure anything
laravel new AppName
That's it.
I'm tired of making my own micro-frameworks. Most of the libraries don't even have proper docs on how to use them.
 
Which libraries don't even have proper docs?
 
12:45 PM
I have come across many
But not really in my head right now.
 
But I am guessing you meant popular libs?
 
Yeah
Decently popular.
(1k stars?)
 
@Bradley what exactly is the reason, why you are mixing PDO and MySQLi code?
@HassanAlthaf .. none of which you can name
 
I coded last back in
December?
 
This is just how I have been doing it
 
12:48 PM
@Bradley why?
 
And gave up on them like a over a year ago. Switched to Laravel and happy.
 
I posted on the forums and someone said it was not an issue
 
Wait, I'll look through my old code and name a few.
I'll be back later today.
 
@Bradley well, then go back to those forums
because it is monumentally stupid
 
It works ? so whats the issue
 
12:51 PM
because you are using two separate connections and your application has to unrelated dependencies
that said, just go and learn how to use JOIN in SQL
 
It's not "monumentally stupid", eval($_GET['cmd']) is monumentally stupid.
But it's inconsistent API, it's harder to follow, and every developer following your footsteps (including you in 6 months) will ask themselves why you did it and whether you had a special reason
Consistency is one of the most important qualities a code can have after "it works"
Remember, code is written not only for computers, but for human readers as well.
cc @tereško @Bradley
 
1:04 PM
@tereško did you have a read of my question ?
 
I already answered you, @Bradley: learn how to use SQL JOIN
I am not going to feed you a complete answer
 
@MadaraUchiha Thanks :) I'm really stuck here and have been for a few hours, do you have any way I could go about this
@tereško do you know how to do it ?
 
if you want someone to write code for you, you should go to one of those "forums" that you mentioned
 
@tereško Alright, please be nice.
 
I don't want to sound like I'm begging for the answer but I am at a bit of a dead end here
 
1:09 PM
@MadaraUchiha I am being nice
 
the chat room says "Support group for those afflicted with PHP" but however nice I ask, there is no 'support' :(
 
4 mins ago, by tereško
I already answered you, @Bradley: learn how to use SQL JOIN
 
@Bradley you're free to ask, we're free to ignore you.
and being whiny doesn't make people more likely to help you.
 
whats the point of the chat room then, haha
 
to talk about things that are actually interesting.
 
1:11 PM
@tereško SQL JOIN won't work because one table only hosts the ID where as the user will be searching for the name
 
@Bradley It's a chat room. The point is to chat.
The main site is where you're more likely getting answers to your questions.
Also, you misunderstood what "support group for those afflicted with PHP" means
Lookup what a "support group" is
 
@MadaraUchiha I have posted a question on the main site and didn't get a response,
 
@Bradley That is a shame, it sometimes happens. Try figuring out what information might be missing from it and editing it in.
 
Can I pay someone to do it, it would probably take someone 5 mins and I'm at a dead end here
 
Alternatively, make sure your question is clear and the readers can tell what you're trying to do, what you've tried, and why what you've tried isn't good.
@Bradley Not on Stack Overflow
I hear that there are sites out there that offer this service.
 
1:17 PM
Can I just send you money ?
 
No, I'm afraid I'm not for hire at the moment. Don't think anyone here is either.
 
£200 ?
 
Are you joking?
 
I just want it solved
 
put it on a freelance site for 5$
Teresko had it right earlier, you need to look into joining
 
1:22 PM
Using JOIN I have come up with this
$search_query = explode(" ", $_POST['search']);
$model_search_query = $cameras_pdo->prepare("SELECT m.id,m.model,b.brand FROM models m INNER JOIN brands b ON b.id = m.brand WHERE (m.model LIKE :model AND b.brand LIKE :brand) OR m.model LIKE :model");
$model_search_query->execute(array(':model' => "%" . $search_query[1] . "%", ':brand'=>"%" . $search_query[0] . "%"));
 
stop solve this in SQL only first
 
1:44 PM
Morning
 
Morning.
 
I can't decide which one to get - this or this - for reading this month
Probably the latter is a better option as the former might be a bit outdated
(They were mentioned here)
 
Wes
2:33 PM
are people from london ok?
 
2:44 PM
Hi guys.. I have a question. I want to upload multiple files using ftp. In my localhost, the file is uploaded perfectly but when I transfer the project to the server, it takes time to load the file and sometimes it give an error, unable to connect to ftp. Do I need to make some settings on the server?
I already change the max_execution_time but problem still the same. If I upload a single file with small size, there will be no issue
 
@Bradley I can help you solve the problem for 200 quid. :D
and of course teach you why it happens and how to fix it.
 
3:05 PM
evenin room
 
3:28 PM
o/
 
\o
 
Add a Namespace Map Option to the SoapClient – #74698
 
Wes
@ircmaxell similarly, i would like constant fields, basically class properties you can set only once
public const $foo;
function __construct(Foo $foo){ $this->foo = $foo; }
thats actually more useful than static constants
 
4:14 PM
not really, since in PHP you would mostly use constants to alias values
in a functional language (like JS), that is not a commonly used style
@Wes I just think the usecase is too different
 
@Wes I had an idea to introduce readonly keyword
So properties would be set once, read only after set.
 
@brzuchal Like what @Andrea tried?
 
I don't know, havent seen it.
 
4:29 PM
Exactly
We (I and Silvio) had even implemented something like deep freezing in our immutables branch
In our immutables RFC it worked quite similar, because all properties were deeply frozen after constructor execution
 
 
1 hour later…
5:46 PM
\o
 
e'nin
my arms are so sore
 
slept on them or working out?
 
Not bad for a weekends work ... new television unit and table to match ... my arms hurt ... https://t.co/9qy6ZqYD9P
Stupid twitter cut off finished product images ... https://t.co/bHbIapZGvg
2
now I can get 55 inch television I wanted :D
 
oh I see
Such handcraftmanship
Looks nice, gj
 
5:57 PM
thanks :)
 
00:00 - 18:0018:00 - 00:00

« first day (2423 days earlier)      last day (2525 days later) »