Computing desk | ||
---|---|---|
< September 29 | << Aug | September | Oct >> | October 1 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Hi, need some advice about preg replace.
Where can I find out the best way to have php replace /n in a file with "< BR>", but only if the /n is found NOT within an html tag? Thanks Duomillia ( talk) 01:17, 30 September 2013 (UTC)
I type what I am looking for, hit search,when the results come up,i am asked "did you mean so and so". for example I type in u.s.s.cairo and get "did you mean Uss. cairo, or usS. cairo". what is going on. — Preceding unsigned comment added by Rmh1066 ( talk • contribs) 05:11, 30 September 2013 (UTC)
What is the term for this technique to keep the viewers in suspense about which number was chosen? I have seen it in both TV and programs.
var chosen = Math.ceil(Math.random() * 10);
var shown = document.getElementById("display");
var keepguessing = window.setInterval("keepguessing()", 200);
function guess()
{
var try = Math.ceil(Math.random() * 10);
shown.innerHTML = try;
if (try == chosen)
{
window.clearInterval(keepguessing);
}
}
— Preceding unsigned comment added by 219.74.249.39 ( talk • contribs)
I've searched WP and Google for this but found nothing. I'm pretty sure that I owned an unusual type of printer for use with my BBC Micro. It was similar to a dot matrix printer but printed only one dot at a time. It had a fluted, spinning drum instead of a smooth platen behind the paper and a spinning toothed wheel in front of the paper, with a ribbon in between. When the ridges on the drum and the wheel intersected at the right place, a solenoid would bang the wheel against the ribbon and paper, marking a single dot. The result was similar to the output of a single-character dot matrix printer but much noisier and slower. The advantage was its low cost, because there were few moving parts. Does anyone remember who made this and what the technology was called? -- Heron ( talk) 15:14, 30 September 2013 (UTC)
VIC-1525
(manual, dated 1982,
HERE). Some of the diagrams(2.6, p.10) are exactly the same as the DMP-100 manuals' (Figure. 6, p.8). -
220
of
Borg 20:06, 30 September 2013 (UTC)Computing desk | ||
---|---|---|
< September 29 | << Aug | September | Oct >> | October 1 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Hi, need some advice about preg replace.
Where can I find out the best way to have php replace /n in a file with "< BR>", but only if the /n is found NOT within an html tag? Thanks Duomillia ( talk) 01:17, 30 September 2013 (UTC)
I type what I am looking for, hit search,when the results come up,i am asked "did you mean so and so". for example I type in u.s.s.cairo and get "did you mean Uss. cairo, or usS. cairo". what is going on. — Preceding unsigned comment added by Rmh1066 ( talk • contribs) 05:11, 30 September 2013 (UTC)
What is the term for this technique to keep the viewers in suspense about which number was chosen? I have seen it in both TV and programs.
var chosen = Math.ceil(Math.random() * 10);
var shown = document.getElementById("display");
var keepguessing = window.setInterval("keepguessing()", 200);
function guess()
{
var try = Math.ceil(Math.random() * 10);
shown.innerHTML = try;
if (try == chosen)
{
window.clearInterval(keepguessing);
}
}
— Preceding unsigned comment added by 219.74.249.39 ( talk • contribs)
I've searched WP and Google for this but found nothing. I'm pretty sure that I owned an unusual type of printer for use with my BBC Micro. It was similar to a dot matrix printer but printed only one dot at a time. It had a fluted, spinning drum instead of a smooth platen behind the paper and a spinning toothed wheel in front of the paper, with a ribbon in between. When the ridges on the drum and the wheel intersected at the right place, a solenoid would bang the wheel against the ribbon and paper, marking a single dot. The result was similar to the output of a single-character dot matrix printer but much noisier and slower. The advantage was its low cost, because there were few moving parts. Does anyone remember who made this and what the technology was called? -- Heron ( talk) 15:14, 30 September 2013 (UTC)
VIC-1525
(manual, dated 1982,
HERE). Some of the diagrams(2.6, p.10) are exactly the same as the DMP-100 manuals' (Figure. 6, p.8). -
220
of
Borg 20:06, 30 September 2013 (UTC)