@Fabien my guess is that Chrome doesn't have an internal mechanism for handing off a request from the textual/gui object rendering process to the video rendering process. When you request an object directly it spins up the gui renderer (which expects HTML or plain text) while it makes the request in order to maximise the apparent speed of the page load.
Just set an appropriate content type and send it.
// xhr is an instance of XMLHttpRequest which has been open()ed and had event handlers set on it already
xhr.setRequestHeader("Content-Type", "text/x-yaml");
xhr.send(string_of_yaml_formatted_data);
Note, that most server side languages won't p...
Then it finds that the content type of the response data is something that renderer doesn't understand, so instead of doing a bunch of complicated backtracking an IPC is just aborts the request, fires up the correct renderer and attaches the new request
@DaveRandom Fair enough. Either way a 200 OK instead of 206 is the initial issue which I assume is resolved now. Once the site is fixed hopefully a video will show :P
I think it's because SVN basically treats the entire server as one giant repo (as git would see it) and things like submodules are basically just directory level symlinks, not commit level pointers (if that makes sense)
So a single commit can span multiple "repos" because they're all kind of one repo
1. self is a reserved keyword than how we can create object of it ? 2. Your solution gives error " Notice: Undefined variable: this in /opt/lampp/htdocs/info.php on"
I don't get the point of community questions and answers if a question that is targeted at having an answer contributed from the community will be closed as too generic for one guy to answer
@rdlowrey can we suppress the E_DEPRECATED for CN_match in 5.6 when the value exactly matches sslsock->url_name? Since you have to specify CN_match in order for the name to be validated in <=5.5, you can't write secure, cross-version error-free code without a version check, which is kind of wanky
@bwoebi Of course, so if you're using it in multiple places to be used my multiple classes somehow, sure. But if it's one spot, I'd prefer to do $o = new Test; - that's just me though. It's probably literally opinion based I guess
Actually, if you extend the class, but inherit the method that returns new self, when called from the extended class does it return a new instance of the extended one instead of the parent?
> YAML has the ability to reference other items within a YAML file using "anchors." Thus it can handle relational information as one might find in a MySQL database.
Drupal 6: PHP 5.2.x only. Warning: support for PHP 4.x has been dropped. PHP 5.3 and later may produce errors or unexpected behaviour. Drupal 7: PHP 5.2.5 or higher (5.3 recommended). Drupal 8: PHP 5.4 or higher.
@DaveRandom Production doesn't. This is staging.
I have been becoming more familiar with Docker to support multiple environments. Not there yet though.
and actually for what you are talking about disable-all is probably less necessary anyway because it doesn't matter so much if there are differences between versions because they are being used for different things
The point of the disable-all in multi is (afaict) to level the playing field so you don't hit any oddities in behaviour because of different default exts
but since you are not doing cross-platform testing, the playing field doesn't need to be level
@ircmaxell Morning. Are you aware of any good RNG for php? I'll be using one for slot alike games. There for RNG seed is the most important, so that players playing at the same time don't get similar number sequences.
If not what should I read to implement one properly?
@ircmaxell Thanks. I've got one (probably, silly question): What is the chance that the end-user reverse-engineers the process i.e. predicts future sequence.?
Great. And you mention that medium and high strength generator consume resources. Well, those games will have multiple simultaneous users, so I guess, I'll be using medium.
So, how slow should it be with medium? imagine generation 3 digits long number?
I'll do own benchmarking, of course. I just want to know if it worth in the first place.
hm. What will be (nice) solution to: Given an input $array (like ['x', 'y', 'z']) and input number $number, where $number is between 0 and pow(2, count($array))-1, get result array, which contains only those items, which correspond to $number bit set. I.e. if $number is 5 for $array = ['x', 'y', 'z'] - we need to result in ['x', 'z'] ?
I have in mind solutions like base_convert() + array_intersect_key(), but they look ugly
public function testWhile() {
$from = new While_(
new Variable('a'),
[new Variable('b')]
);
$to = [
new Label('compiled_label_0'),
new If_(
new BooleanNot(new Variable('a')),
['stmts' => [new Goto_('compiled_label_1')]]
),
new Variable('b'),
new Goto_('compiled_label_0'),
new Label('compiled_label_1')
];
$this->assertEquals($to, $this->traverser->traverse([$from]));
}
@PradeepSaini can you please refrain from adding unneeded whitespace into your code samples? also, write code snippets in a separate message and format them as code by hitting ctrl-k or clicking fixed font. thanks.
@Japa PHP does not run in the browser. You need javascript. PHP can only write the javascript into the page you will deliver to the browser, which is then executed on the user's computer. by the time that happens, there will no php left in the sourcecode of the page.
@Gordon ok gordon, thank you for helping me...i´m trying to create a table that fetches info from my database...and then when the user selects a row or checks a check box...the content of the row goes to an input....do you know a good tutorial for this?
@AlmaDo Yeh indeed, I just though it was a little more readable (since you presumably end up with a count() - pow() to make it apply the mask in the right direction)
@PeeHaa That's not VB! You got me all hot under the collar then. I was literally reaching for my gun.
Is it possible to create a VB.Net application which users can just run without installing it first.
If not, is it possible in another .Net language.
If not, how IS it possible :)
PS: The application only has to run under Windows (>= XP).