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

00:29
Mornings
00:40
Namespaces in core … what's this bullshit RFC. And no, I don't want to decide on all those questions now.
00:53
@bwoebi OCD is a hell of a thing.
 
1 hour later…
02:17
@Danack If only we could stop wasting time on the wrong things.
02:54
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!
04:00
Morning
04:19
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…
05:38
Stop abusing flags.
05:52
What's been flagged?
What @Wes said, who has now been suspended, for what I thought was not a flaggable statement
06:10
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"
06:58
posted on June 04, 2017

New Cyanide and Happiness Comic

 
1 hour later…
08:04
mornin
morning
08:37
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?
08:48
@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
09:04
@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
????
09:19
@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
09:24
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
09:31
What's AI ?!
artificial intelligence
actually, it should have been referred to as "machine learning"
Anyone can take care of my PRs in github.com/php/web-doc-editor/pulls ?
09:50
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
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
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
@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
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
I still don't understand it..
user924016
@Linus hill areas is a word play on hilarious
A thanks Ronni :)
bob
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
bob
@DaveRandom no, was unable to format it or repair it with diskutil
11:07
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
bob
@DaveRandom i was using terminal
What program?
bob
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
bob
11:09
@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
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
bob
@littlepootis I erased the disk with diskutil and then use the above command. (yes, erasing it not required)
11:11
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
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
@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
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
@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
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.
user924016
npm install X ?
I did install the dependency.
It's Bootstrap.
user924016
and now its in node_modules
How do I use it in the public folder now?
Since the node_modules cannot be addressed
user924016
why, can it not be "addressed"?
user924016
okay, well that makes sense, mostly you dont want the node_modules in the public
Yeah.,
*Yeah
user924016
Most peeps use tools to bundle the js files and what not
user924016
tools like gulp, grunt, webpack etc
12:05
Oh, so can I use grunt to like
Move the files I need to the frontend?
user924016
also looks like theere is a webpack file right there
Yeah, it's by default from Laravel.
I'm using Grunt.
user924016
Well, you need to learn to use grunt, gulp or etc to compile/bundle your assets
user924016
I recommend making a new project, focused only on this task
I am learning Grunt right now.
lol
user924016
12:07
just so you get what it is you want to do, and then apply it in the hellaravel
user924016
Grunt has almost been replaced by Gulp or most people I know migrated to it
Really?
I thought Grunt was better. ;l
I'll try Gulp next time.
user924016
Yea try it out next time
Wtf do I do now
Use a copy library to move the files I need to public?
user924016
well kinda.. that is what gulp/grunt is used for also
user924016
12:09
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.
user924016
Np
Btw
What are some other tools that I should check out
user924016
Personally I mostly use webpack
user924016
and babel
12:11
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?
user924016
if babel and webpack is the same? no (=
Webpack and Grunt
I know Babel is a transpiler
user924016
nope grunt is a task runner
user924016
webpack is a module bundler
12:12
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.
user924016
sure
Would I be able to get all this done with Webpack?
user924016
yes, but it works differently then grunt/gulp
I'm totally in for it then. Fuck Grunt.
@RonniSkansing You helped me before with a param query, would you mind having a look at my question if you get a chance ?
12:15
Any good tutorial you know for Webpack?
user924016
@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"
user924016
yes
All I need my friend.
Any good tutorial you recommend?
user924016
I dunno bout tutorials, bout maybe their webpage might be a good place to start webpack.github.io/docs/tutorials/getting-started
12:16
How did you learn?
user924016
Reading the docs (= and a few blog tutorials on specifics
user924016
@Bradley I dont understand the question
user924016
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
user924016
yes a foreign key?
12:24
yes, just an ID that relates to another id in the brands table
user924016
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
user924016
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)) {
user924016
I cant read whatever you just wrote, please format it
12:30
yo
user924016
yo
what's up
user924016
Chillin
user924016
What you up to?
got back from cycling through woods and general countryside ... for like 3 hours
12:31
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"
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?
12:33
@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 ?
user924016
@HassanAlthaf build two different applications
user924016
Laravel well be the API backend
user924016
Angular4 will be a frontend project, that only talks with the backend via API calls
user924016
12:33
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.
@Bradley gimme a sec to read that question
What's a good alternative?
user924016
12:36
I worked with it for about a year (from ang2 stable)
@tereško Thankyou
user924016
up to angular4
user924016
Had BC underway, but no disasters
BC? Breaking changes?
user924016
yes, meant to say backwards compatibility breaks
12:36
@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 ..
Is there a way to bump up a question to get more people to look at it
12:42
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.
user924016
Which libraries don't even have proper docs?
I have come across many
But not really in my head right now.
user924016
12:45
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
@Bradley why?
12:48
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
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
12:53
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
13:04
@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
13:09
@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.
13:11
@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.
13:17
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 ?
user924016
Are you joking?
I just want it solved
user924016
put it on a freelance site for 5$
user924016
13:20
Teresko had it right earlier, you need to look into joining
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] . "%"));
user924016
stop solve this in SQL only first
13:44
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
Wes
14:33
are people from london ok?
14:44
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.
15:05
evenin room
15:28
o/
\o
Add a Namespace Map Option to the SoapClient – #74698
Wes
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
16:14
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.
16:29
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…
17:46
\o
user924016
o/
e'nin
my arms are so sore
user924016
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
user924016
oh I see
user924016
17:56
Such handcraftmanship
user924016
Looks nice, gj
thanks :)
00:00 - 18:0018:00 - 00:00

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