« first day (1996 days earlier)      last day (2967 days later) » 

9:01 PM
idk about the above but I'm getting somewhere with include
 
locate template returns the name of the template file, IIRC either in the theme or child-theme. It works by the basename of the template. Take care with the PHP syntax, the code as you've pasted it in here won't work, it's syntactically broekn already.
just go with include. when you got that working, you can consider to change it to theme based templates.
it will still work with include, just the template file is placed in the theme
 
I need to be including my js, img files, everything necessary for the player in my shortcode function?
 
well that starts to become more complicated if you have got linked assets. perhaps is best you just try to get it working for the first time.
and then optimize about how to make use of JS links in the <head> section etc.
 
I have it embedding via shortcode, it's just broken
seems like javascript isn't loading im trying to figure out now
 
Define broken ;)
You get red entries in the javascript console in your browser?
 
9:09 PM
nope
no php errors
I'm going to try to add a console log to the top of my main js file and see if it's loading but I'm sure it's not
 
the javascript console will never contain PHP errors. PHP errors should be written into the PHP error log.
 
Wes
@bwoebi have you guys considered implementing Generator's rewind() so that it internally calls the function with yields in it again?
 
they show up on the page?
I had some before
like a second ago, above the player
I didn't mean in the console
 
@Wes what should happen with the function that is currently running?
 
@Wes a big problem is PHP not preserving the original arguments
 
9:11 PM
I think I may not have had my files where I thought doh! checking if that fixes it now
 
@hakre be aborted (like if it'd be unset)
 
@AlexGray that is with display errors, but better is to log as well and follow the log. display errors is fine for development, but sometines the errors are hidden / eaten in the HTML so it's not always working well.
 
Wes
@bwoebi do we care of that? i mean, as long the behavior is well defined...
 
i see, good to know. thanks
 
@bwoebi does that happen when you break out of the loop?
 
9:13 PM
@Wes well, yes … we'd recall the generator with ther arguments possibly
@hakre hmm? which loop?
 
<?php
//[player]
function player_embed_func( $atts ){
	include "audio_player.html";
	include "js/main.js";
	include "js/jquery.js";
}

add_shortcode( 'player', 'player_embed_func')
?>
am I misunderstanding how the include looks for path?
 
Wes
@bwoebi it's not that important imho, but i'm probably missing something
 
foreach ($gen() as $value) {
var_dump($value);
break;
}
 
@hakre In the way that the wiki api understands it :P
But perhaps it should rather use google
 
@PeeHaa like %20 instead of space?
 
9:15 PM
Dunno :P
 
@hakre nah, that's unrelated
 
!!wiki pony+express
 
@PeeHaa Sorry I couldn't find that page.
 
@bwoebi really?
 
@PeeHaa error has been logged. Fix it fix it fix it fix it.
 
9:16 PM
foreach ($gen() as $value) {
    var_dump($value);
    break;
}

foreach ($gen() as $value) {
    var_dump($value);
    break;
}
 
@PeeHaa Sorry I couldn't find that page.
 
typically reset rewind is the invocation of the generator
 
oh, got it … then yeah @hakre
 
I could use an includes folder?
and make use of include-path?
 
I wouldn't depend on the include path
 
9:19 PM
@AlexGray you could but it's done automatically. the way you include in chat.stackoverflow.com/transcript/message/29731619#29731619 is not working btw. because it will output the contents of these files to stdout (that is going to the browser, view source there), which is not what you want at that place.
you want the browser to request the .js files and includes them in the frontend program.
 
aha I see
XD
so why isn't it doing that automatically the same as it would if the html was there?
 
it will only do what you tell the browser to do.
you command the browser with the HTML output.
 
XD i see
or at least I have an idea i'm going to try
 
can't find what is default user and pass for Redis
Is "redis://:@localhost:6379" valid connection string for redis? (if user and pass are empty strings by default)
 
got it
sometimes its the simple things lol
thanks guys
seems like using includes path could take some time. Seems better to be as specific as you can so the program doesnt waste time looking, even though it's probably still really fast
 
9:29 PM
There is an English term which means kinda like "please". that term is something like "for good sake", anybody knows what's that?
 
can you be more specific at all?
like try to put it in context or something
 
context: "for good sake, did you even read the question?"
 
for goodness' sake?
 
I don't know, maybe, anyway thanks for your attention.
 
ah for goodness' sake!
thats what it is
I see what youre asking and that's it
 
9:33 PM
good :-)
 
are relative vs absolute paths what I need to look into to make the plugin universal? so it knows a certain file to look in regardless of the rest of the users paths?
 
@AlexGray within the frontend (that is inside the HTML), wordpress normally makes use of absolute URIs. For the include on the PHP side however you normally use (but must not) relative paths (not URLs !). There is also a constant in wordpress that gives you the path where you have the wordpress directory on the server, so you can also create absolute paths instead of relative ones.
 
@hakre So I guess I will have to do a specific ticket for my issue :/ ? Is it strange ? There is only 2 issues :/
Plus shall I consider fixing every howbrew doctor error ?
 
@Srle Oh, nice, that's it. tnx
 
?
is that what you were referring to
nvm i found it
 
10:23 PM
@Baldráni I'm not a Mac OSX user, so don't ask with that much detail. But I normally understand it the way, that if you find an error, you own it. It's you taking care or someone other. But if you don't take care but complain that nobody else does, you've missed a point ;)
 
@hakre I will have to take care of it anyway :) Just find it strange that nobody else as ever encounter this problem :(
 
@Baldráni indeed. I bet there are literally thousands of users making use of brew mysql.
 
But on the other hand I manage to break most of the systems I touch.
Looks like creativity is a limited resource.
 
Wes
that seems to be a good sake according to its reviews
 
10:31 PM
@Wes na dann sag ich mal prost!
 
Wes
the only word i recognize is prost. he is a former F1 driver
 
Haha
 
Wes
how can google translate not translate german to english? bah
 
@Wes here goes a word-by-word translation: Well, then I'd say cheers!
 
Wes
lol thanks
 
10:38 PM
$dir = plugin_dir_path(__FILE__);
define('rich_player_path', $dir);

add_action('wp_head','hook_css');

	function hook_css() {

		$output='<link rel="stylesheet" type="text/css" href=" ' + rich_player_path + 'css/style.css" ';

		echo $output;

	}
why does that output a 0
I guess something to do with how im defining the variable?
 
@bwoebi That looks too complicated to me
I don't think we should do it like that
It should behave as $a ?? $a = $b without the double eval
Only partially redoing the write fetches depending on where exactly it was first null only makes this more complicated than it already is
(Should we two not agree on how this is supposed to work, I will require a revote with complete specification)
 
11:00 PM
yield from ... is generator delegation, isn't it?
 
@hakre yes
 
I'll have to try it to see how complicated it really is … at least I prefer these semantics as they're consistent
(with += and other assign ops)
 
@bwoebi Heh, one of those cases where we both feel the other way is more "consistent" :)
@bwoebi Will you be working on an implementation?
 
@NikiC well, with what would ??= be more consistent in your opinion? there's no precedent for doing it like $a ?? $a = $b
@NikiC I'm going to have some free time next week, can give it a shot, yes
 
@bwoebi You can't make it consistent to normal compound assignment operators anyway. That would at least make it consistent to a) other languages and b) would keep the behavior consistent within the language
I.e. not do fetches on different levels depending on where exactly it becomes null / non-existent
 
11:13 PM
@NikiC My way is actually consistent to ruby … just as yours is. The point is that ruby has no such dynamic getters causing potential issues
@NikiC also … we cannot make it consistent to normal compound ops??
 
@bwoebi Nice. You're a more generous person than I am. I got fed up with Midori's attitude.
 
@NikiC Oh, what is she doing wrong?
 
@bwoebi We can't use the same fetch sequences
 
user1694691
I'm executing a SQL query that I know will always return 1 row. That row will always have one value and that value will always be 0 or 1. If any of these statements is false then something that is (or should be) impossible has occurred. Should I still explicitly handle each theoretic failure condition and throw detailed exception messages or just throw one exception that says unsupported behaviour has occurred?
 
@NikiC yeah, internally not … but that's an implementation detail
 
11:18 PM
@bwoebi And I don't think we should be doing the assignment in case the value is already non-null
 
We can though make it externally consistent
@NikiC agree
 
Which already makes it inconsistent with how normal compounds work
 
@NikiC well, that is the behavior of ?? though
 
@bwoebi It is?
 
yes, the part on the right of the ?? is ignored if the value is non-null
 
11:19 PM
It's the difference between $a = $a ?? $b and $a ?? $a = $b. That has nothing to do with ??s behavior itself, it's a totally different desugaring
 
and the = is clearly on the right of ?? in ??= ;-)
 
We could still always be doing the lhs assign in all cases, even with the lazy evaluation of ??
@bwoebi Are you implying that $a += $b is really $a + $a = $b? :P
 
@NikiC sure not :-P
 
@bwoebi Ignore any feedback she got, the only response being a link to some ruby documentation without any further comment?
 
@NikiC I had a chat last night with her for two hours
She seemed to be understanding though
@NikiC I've not looked much at internals TBH … If you judge from there, I can understand you
 
11:24 PM
@bwoebi Yes, I judge from there
Which is why I'm saying, if I don't like the semantics of the implementation, I'll call for a new RFC and a new vote.
 
If she were really to push the current impl through, I'd immediately support you with that.
 
gotta go now
I'll just see what you come up with :)
 
good :-)
and good night
 
If it's "good enough", the exact details aren't super important
@bwoebi for courtesy, we should also discuss it with hhvm before deciding on a specific way
 
@NikiC any reason why?
 
11:28 PM
they'll also have to contend with implementing this and they have different ways of handling the whole variables stuff
oh just saying it would be good to know whether some semantics would be more problematic for them than others
 
I definitely have no idea what fetching restrictions their engine imposes
 
@bwoebi good morning around here
 
@NikiC oh, not in Europe?
 
@bwoebi in japan
 
Just visiting or anything specific?
 
11:30 PM
@bwoebi me neither ... only vaguely familiar with their "minstr" business
@bwoebi just visiting mostly
 
@NikiC enjoy it :-)
 
@bwoebi thanks
 

« first day (1996 days earlier)      last day (2967 days later) »