« first day (2892 days earlier)      last day (2055 days later) » 

3:43 AM
Night all
 
Night
 
Hello
#1044 - Access denied for user ''@'localhost' to database 'bakery'
This my sql problem when trying to create a new database of cause there a over a hundred solutions for this but none of the 100 is for Android
Am using KSWEB on Android and i can't import or create a new data base
 
you are using localhost\phpmyadmin url?
 
That's my current URL
How do i set the privileges?
Or is their another way i should log in
 
4:02 AM
When I try to localhost/phpmyadmin in xampp it works fine but in mysql.exe it doesn't
 
No am not using xampp, am using an andriod web server KSWEB but the principle should be the same
But the problem with access denied is not letting me do anything
I don't mind messing with the conf file or .ini files if i only knew what to mess with
 
hmmm
 
You need to make the user for the DB first, but it seems that line of code is looking for no user. See if you can call for a 'root' user somehow.
And be sure to assign it to the DB, whatever you make and name it.
 
Can I use preg_split to split by something like ||, only if it is followed by a certain character, however without actually splitting on the certain character just the double pipes?
<pre><?php
$test = '$test_var||$file/path.htm||"some string"';
print_r(preg_split('/\|\|(?:\$|\&|\"|\')/', $test));
For example, that will split on ||$, ||&, or ||", but I was to keep the third character.
 
Do you always know the certain character? You could avoid preg completely and just explode()
 
4:15 AM
Yes, but strings will can be something like $foo||&file/path.htm||"some || string"
So I don't want to split withing "some || string"
I figured checking for the special indicator string will be a good-enough-lazy-solution
 
@VaelVictus @Webdev how do i call for a root user i have tried everything i know (which is quite little) if there is a better php/sql/phpmyadmin combo server for mobile please tell
 
I'll probably just ignore this issue for now, make a note of it, and tackle it when it becomes a problem
 
@Shea loooooool
 
If you're looking for ||d, for example, you should be able to explode on ||d and then, set your value to "d".$value[0]. I may be misunderstanding you.
Regex chat would probably be more useful if you really need to use preg.
 
Yeah I think so, I thought this would be a preg_split behavior though.
explode seems like it'll be good enough for now
 
4:20 AM
@Sayra Well, somewhere this is looking for a database called bakery. So you're setting a config somewhere that has "bakery" in it, and there, I'm guessing you can also set it for a user called 'root', which may already exist. To be safe, I would make a user called 'bakery_user' and assign it to your bakery db.
 
@Sayra I written a document to solve this prb, Now I seeking the document for you
 
I would agree with @VaelVictus. explode is probably your best option.
 
4:38 AM
@Sayra However in xampp I remeber that I had this issue and I solved it by issue like stop mysql and apache services, and edit .ini file .
best wishes
 
4:56 AM
@Sayra I solved my prb with these instructions
-Go to your xampp\mysql\bin\ folder
-Edit my.ini and insert skip-grant-tables below [mysqld]
-Restart MySQL
-Set new password for your root user by running UPDATE mysql.user SET Password=PASSWORD('new_password') WHERE User='root' in phpMyAdmin in the mysql database (or just leave it like this if MySQL cannot be accessed from remote hosts
 
 
1 hour later…
6:22 AM
Okay will try it thanks
 
 
1 hour later…
7:35 AM
posted on September 16, 2018

New Cyanide and Happiness Comic

 
user5534204
im using xpath to get contents inside particular div class . $text = $imageXml->xpath("descendant::div[@class='block-image-text']"); here is my code. but this doesnt work if the content has both html tags and texts with non html tags. can anyone help me?
 
8:00 AM
tunesmith Informal. a person who composes popular music or songs.
 
8:22 AM
Hi, I don't know if I arrive to the correct place... I have a question about cakephp+ postgres+ cyanaudit, I'm trying to set the user_id of php login with the cyanaudit.fn_set_current_uid(userId) and it is not working, Can anyone help me with this?
 
9:10 AM
morning
 
9:24 AM
@DaveRandom same, maybe @NikiC can enlighten us?
you can do foo(...$args1, ...[$args2]); otoh
@kelunik o/
 
@Ekin \o
 
How to force restart any iOS device with just CSS? 💣 Source: https://gist.github.com/pwnsdx/ce64de2760996a6c432f06d612e33aea IF YOU WANT TO TRY (DON’T BLAME ME IF YOU CLICK) : https://cdn.rawgit.com/pwnsdx/ce64de2760996a6c432f06d612e33aea/raw/23f2faa0aadb4babbfd228c8bb32a26a8c51c741/safari-ripper.html
 
9:57 AM
@Ekin The description in that commit is still applicable
Not that it would be particularly hard to support. E.g. we could insert an extra opcode when going from an unpack to a positional arg, which checks that there is enough stack space
And yes, these issues are not really relevant to the array case
There the top of the array will be tracked by the array
 
alright, I see
 
11:03 AM
morningish
 
12:37 PM
@Wes Nice
Although the 4 signatures being exactly identical looks a bit suspicious
 
1:00 PM
morns
 
@waltertross @DavorKunc @Wikimedia This image was made as pun after he really signed himself as chairman and his son as vice chairman.😑
Morning.
 
1:36 PM
PHP Startup: Unable to load dynamic library 'php_curl.dll' – #76888
 
2:29 PM
Although I just started with this project to practice TDD and it has almost nothing, could someone check it out if there's something I should change about its structures or ideas? github.com/2Dsharp/phypes
 
@2dsharp use strict types
 
checkdnsrr.phpt fails – #76889
 
@PeeHaa Like enforce strict types on every file or actually use strict types where I have missed?
 
Both
Also use strict comparisons
Also __toString is weird to have
Unless you only target string types
 
@PeeHaa Alright. Thanks!
@PeeHaa Any other comments?
 
2:40 PM
not right now nope
 
Thanks :)
 
np
 
@PeeHaa If I have to apply a type to the interface's function Validator::isValid($type, ...) , I cannot allow for any other data type. For example, if I require the parameter string $type, I won't be able to allow integers in the classes that implement this interface and require an integer. Is a way of method overloading available for me to solve this problem?
 
@PeeHaa Strict types are not good for validators
In fact, validators are partly type guards
 
@MadaraUchiha He is trusting php's type juggling using magic
 
2:49 PM
@PeeHaa Ah. Yeah, don't do that.
 
Which is bad for validators
 
... so, verdict?
 
3:05 PM
Morning
 
 
1 hour later…
4:18 PM
@MadaraUchiha hmm?
 
@Danack A validator almost always accepts "any" and returns "boolean"
For example, isNumber($param) if you had had a type guard on $param, the function would serve no purpose
 
oh....I don't do that.
> [$articleGetParams, $errors] = GetArticlesParams::createOrErrorFromVarMap($varmap);
so returning an object specific to that validation, or an error.
 
@Danack Sure, but you still accept any
 
Sure, but that doesn't stop me from using strict types.....there's just a bit of extract casting at the boundary.
> Failed to clone the git@github.com:sebastianbergmann/phpunit.git repository, try running in interactive mode so that you can enter your GitHub credentials
anyone know what to do about that in travis?
 
@Danack Yeah, no I misremembered what strict types do
I had in my mind that it forces you to specify a type hint, which is wrong.
 
4:30 PM
Don't give Ocramius ideas.......
 
@Danack Can it reasonably be done?
Say if I had a magic wand that caused PHP parsing to fail when you didn't specify an incoming type, would you be able to reasonably represent any type in PHP?
 
Probably not without union types - even basic stuff like number = int|float would cause too much pain.
 
@MadaraUchiha nop
 
@2dsharp Sorry was gaming
 
unless someone implemented 'mixed' as a type, which some people have proposed, for the same reason - to allow code checkers to make sure that all function parameters have a type, rather than having been forgotten.
 
4:33 PM
@MadaraUchiha They are
@2dsharp It's ok I guess :)
 
5:03 PM
is it possible to release an application with docker?
this has the advantage that the user will only need to install docker and not all the other things
but I have never seen something like this being done
 
Wes
5:33 PM
@PeeHaa ferrari committed harakiri again, they were leading +8 points, now they are -40 points behind
 
Hi guys.
What's the point in making methods for database queries instead of allowing raw queries? for example get(...)->where(...). Guess1_ We're repeating ourselves otherwise(DRY) ---> I don't think this is a good reason because this way, it will still be repeated inevitably. Guess2_ By using methods we have the benefit of avoiding typos! ---> Typos could happen on methods too! Guess3_ By using methods IDEs can help us write queries faster! ---> Sounds like a good reason, but still I'm not sure.
Guess4_ They are more readable!
 
Graphs on GCOV don't reflect the actual results – #76890
 
6:08 PM
Guess5!_ Some parts of the queries could be omitted and replaced by some more abstract bindings, and they also become more concise in some cases, for example: $books = Book::selectAll();
Sorry for spamming :D
 
6:26 PM
What these symbols called :: =>
 
Hi guys
 
{{ }}
 
Does anyone know why this path:
https://3almap.com/public/storage/properties/property_0552aeaa4b036387e41345f4661764ebDh8S82m1Z4cnHKy7gtIWvH2SzrMuoG7H5PI29XuDul6CiVoT93/IyqhJEM0vFy9Eo9SYxKpHyhcdeXu4k58W9mfYV0MzcGCtWLgr0tbn6r5srXX.jpeg
works on Chrome
but not on Firefox or iPad?
Anyone?
 
evenin
 
Evening
The path paths are exactly same
but working on 1 browser and not the other
 
6:38 PM
evening
 
Any help would be really appreciated
 
@ZahidSaeed "Sorry, the page you are looking for could not be found."
 
@Danack Exactly, if you open the same link on chrome
It will show up the image
That's really strange
 
that is in chrome.
 
But I can load up the image
oh
the link is cached
and I was viewing the old image
 
6:48 PM
Anyone know of a good online version of the board game GO?
 
6:58 PM
@StatikStasis I think @Fabor plays
 
online-go.com seems to be pretty simple
@MadaraUchiha I'm just learning.
 
Yeah, I wish I had more time to devote to it XD
I think kyu 9 or 8 was the highest I've gotten, which is pretty good given the relatively miniscule amount of time I put into it
 
@Webdev scope operator, second one is used in array assignment, not sure if has another purpose than that, last one is used with the twig templating engine, used to output (escape) variables
 
or blade templating engine
 
who cares about laravel :P
 
7:14 PM
!!dad
 
Did you hear about the cheese factory that exploded in France? There was nothing left but de Brie
 
@Tiffany :: just I should say scope operator?
@Tiffany me
I am care about Laravel
It's the framework no 1 in php
 
Just call it פעמיים נקודותיים like nature intended.
 
well
 
7:29 PM
Easy, right?
 
@MadaraUchiha lol
I used google translate but realized I shouldn't need to
"twice and two points"
Paamayim Nekudotayim
@Webdev you may be the only one in this chat
 
@MadaraUchiha give me easier
 
@Tiffany Nekudotayim directly translates to "colon" but GT isn't know for 100% accuracy.
 
@MadaraUchiha "two points"
 
Hebrew (sometimes) has a third form in addition to singular and plural, double. Nekuda = dot, Nekudotayim = 2 dots
 
7:41 PM
I guess similar to how "los dos" translates to "both"
 
Arabic has a much more robust version of this. In Arabic, every noun is either singular, double or plural.
 
what if it's unknown/abstract?
 
Nightmare to translate, too.
@Tiffany I'm not sure, my Arabic isn't that good :D
 
3v4l doesn't allow readline? :< I guess that makes sense though...
potential for abuse
is there a function that allows me to stuff values into an array based on a function? e.g., I want to have an array of three random numbers, using $randomNumbers = [ mt_rand(), mt_rand(), mt_rand() ]; feels uncouth
 
8:01 PM
You can make an abstraction for it, but not worth for one usecase.
 
@Tiffany let him be a laravel-developer. Think on how much good it will do to you and every other developer with some clue
look at it as a public service, since you are a member of a public and it would be a service for you
 
@MadaraUchiha but I'm trying to overcomplicate my boyfriend's homework
@tereško couldn't that lead to technical debt?
 
@Tiffany yes, but not to you
 
How's it a public service encouraging stagnation?
 
when someone realized, how much shit the code is, you might get paid for rewriting it
my point is: there is no gain in enlightening laravel developers
the already know the "right way" and all your attempts will only lead to frustration
 
8:08 PM
I suppose
 
if worse comes to worst, the company will just switch to Rails
 
@MadaraUchiha his homework practically calls for an if/then/else, and I'm trying to modularize it. But to be fair, it is Java which is OOP, and he's stuffing procedural soup into it
 
FYI, java is as much oop as php is
 
java is more oop
 
But that's typical of intro programming courses... sigh
@tereško each program starts with a class in Java, there's no way not to
 
8:11 PM
that does not make it OOP :D
 
Fitting a square peg into a round hole
 
class in javais a son of object
 
Hi,
 
^ looks like Venezuela is not going to recover in this century
 
is there any way to propose a new feature to php beside an RFC ?
i'm not really good at English to write an RFC and i don't have enough experience in php core to implement it.

https://gist.github.com/azjezz/e174bb34a23d298fea4b9b25ff0ca8ca
 
8:15 PM
@azjezz if it's a language changing feature, RFC is the only way
 
yea, that's what i though, but as i said, i don't have enough experience with C and the php core, and i can't even name the gist file, let alone writing an RFC .... .
 
That's where you start learning :D
You can at least start writing it up, and ask people here to critique it
The English, the C code, etc
 
thanks
i might do that
 
Even if it doesn't pass, you'll at least have learned some valuable skills, it's a win-win situation
 
well, i'm a high school senior and i don't really have much time to spend on doing that so it would be taught
 
8:26 PM
@azjezz my many years in adulthood have taught me "you have to make time, otherwise it's not important enough to you"
 
I am building an e-commerce website, but I am confuse how the client will choose multiple items and add it to cart programmatically
 
as much as i would like this feature to be added to php, i think going to collage is more important 😂😂
 
Checkbox?
@azjezz it might be a good addition to a college application, though
 
guys, any idea will be hidden-contents indexed in the google? (the contents that are exist in the html but have display:none property in the CSS)
 
Having good grades isn't the only thing necessary
 
8:30 PM
depends on the country
 
@Tiffany checkbox is nice idea
 
@Shafizadeh don't call it "the google," it sounds really weird and silly
Unless that's the intention, to be silly
 
@Tiffany what? well what should I call the greatest search engine then?
 
@Shafizadeh just "Google"
 
Oh you're talking about the word of "the". ok, thx for the heads up
 
8:32 PM
e.g. "indexed in Google"
 
@Tiffany i'll try to make time for it, i'll start looking for online tutorials about php core now and see how it goes
do you have any resources that could help ?
 
@Tiffany got it .. also you should use "i.e." :-) because this question is already asked in my website
 
@azjezz there are a couple, but I'll have to find them. nikic and Sara and I think Andrea have some stuff?
@Shafizadeh no, it's e.g. "example given"
i.e. roughly translates as "that is" because they're both from Latin
 
@Tiffany oh you're right, it is mentioned in the link I provided as "Example Granted "
 
8:36 PM
I see, thank you
 
I'll try finding the others when I'm at my computer
 
@Tiffany THANKS
 
Explains z_val which is used in a lot of php core code
 
thanks, i'm reading the first one and it seems really good
 
Something else that might help is using the lexer to get an idea of php's code, but it's worth noting that it's like going down a wikipedia or TV Tropes rabbit hole because the code is hyperlinked
For example:
!!lxr mysqli_connect
 
8:44 PM
@Tiffany Nothing went wrong but I couldn't find a suitable definition
[ /ext/mysqli/mysqli_nonapi.c#303 ] PHP_FUNCTION(mysqli_connect)
 
Or whatever php function/class you want to look up
 
9:00 PM
@azjezz github.com/ThomasWeinert/php-extension-sample check out the branches for how to implement stuff.
 
thanks @danack
 
hmm seems like i have a lot of reading to do uwu
thanks
 
9:35 PM
How can I prevent PHP from timing out because of inactivity? I have a 0 timeout on a php chatbot I'm running. All works fine. But if nothing happens for 12 hours, the script just stops anyway. Is this some kind of setting in php.ini?
 
@icecub that's not a great idea......you almost certainly want to be using something like supervisord to restart it when it exits, and only making it run for like 10 minutes at a time.
 
put a switch-case into a foreach loop, is it possible?
 
@Danack Hmm. It should be possible to do that with a simple Cron and some Bash script as well, right?
 
you could - but supervisor is really nice.
 
Right. I'll have a look at it. Thanks a lot :)
@Sabrina Sure, why not?
 
9:57 PM
@Sabrina yes, but you sure you want to set it up that way?
 
10:08 PM
@Danack Thanks a lot for that tip. Supervisor works great!
 
 
1 hour later…
11:16 PM
Output SVN output on build process – #76891
No mapper found for 'funcparams' – #76892
 
11:45 PM
Evening
 
hello
 

« first day (2892 days earlier)      last day (2055 days later) »