Computing desk | ||
---|---|---|
< June 7 | << May | June | Jul >> | June 9 > |
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. |
Given two scenarios, in the first the computer has to deal with tasks that require little time but full-power, and in the second there are the tasks that imply a long-processing time.
How can the computer know that the latter will take long to finish, so there is not point in giving it full-power, however, the first will take little time to finish, so give it full-power for a fraction of a sec, and you are rid of it.
Otherwise, how would the computer choose how much processing/memory each running process gets? -- Llaanngg ( talk) 00:27, 8 June 2015 (UTC)
Hello. Something is going on with certain fonts I see on some websites. Some special characters are showing up as the wrong character. For example, where I should see a ä, a ‰ appears. Ø shows up as ÿ, ñ looks like Ò, ë as Î, and so on. (I checked what the characters were supposed to be by copying and pasting the offending characters into Word.) It doesn’t happen with all characters; Basic Latin is unaffected, as are some lesser-used characters such as ă and ć. Cyrillic and Greek characters are also unaffected. And it is not apparent on an entire website. If the same character appears elsewhere on the page in a different font, it looks fine. What makes this happen? → Michael J Ⓣ Ⓒ Ⓜ 01:01, 8 June 2015 (UTC)
The following code works fine with GCC, but Visual Studio 2013 complains about "error C3074: an array can only be initialized with an initializer-list".
boost::shared_ptr<A> arrayOfA100 = boost::shared_ptr<A>(new A);
I do understand that my code is wrong w.r.t the C++ standard, but is there a better way than repeating boost::shared_ptr<A>(new A), boost::shared_ptr<A>(new A), boost::shared_ptr<A>(new A)... one hundred times? I could write a loop to do it, but then that would cost three lines per array, and I have numerous such arrays. I asked a related question previously [1]. My other car is a cadr ( talk) 10:52, 8 June 2015 (UTC)
// Custom subclass of shared_ptr
template<class T>
class my_shared_ptr : public boost::shared_ptr<T> {
public:
my_shared_ptr() : boost::shared_ptr<T>(boost::make_shared<T>()) {}
};
// Custom array of standard shared_ptrs
template<class T, size_t n>
class my_shared_ptr_array : public boost::array<boost::shared_ptr<T>, n> {
public:
my_shared_ptr_array() {
for (size_t i = 0; i != n; ++i)
(*this)[i = boost::make_shared<T>();
}
};
// Helper function for standard array of standard shared_ptrs
template<class T, size_t n>
void initialize_shared_ptr_array(boost::shared_ptr<T> (&a)[n]) {
for (size_t i = 0; i != n; ++i)
ai = boost::make_shared<T>();
}
I am looking to set up an 'internet radio' station, a website that broadcasts a set program of pre-recorded music and other content. I have created a number of other websites for different purposes before, but never anything of this nature. I imagine it would involve a lot of differences to what I am used to, some specific programming to get it to run as intended (though I would not be surprised if it was as simple a matter as downloading existing software and hosting it on a server), but have no idea where to even start looking for instructions.
Thank you,
86.24.139.55 ( talk) 14:50, 8 June 2015 (UTC)
Best storage medium for back up of 2TB of data? — Preceding unsigned comment added by 202.118.236.130 ( talk) 15:07, 8 June 2015 (UTC)
In Microsoft Word, Shift+F7 brings up the thesaurus, so when using the program in Windows 8 desktop mode, I'll often (without thinking) hold down the function key and press Shift and F7. This invariably leads to a weird situation, effectively holding down the Shift key: any letter I type is capitalised, if I click in the document, it highlights everything between that spot and the cursor, and commands don't work because it interprets Ctrl+S as Shift+Ctrl+S, which doesn't do anything. This affects the whole system; I always have to restart, because even mouse-clicking the start button (I use Classic Shell to give a Windows 7 appearance to the desktop) brings up the Windows 8 start screen, just as if I clicked it normally while holding down Shift. So my questions (1) What is the point of this feature? (2) Is there a way to turn it off easily, without restarting my computer, and ideally with a single button click or hotkey combination? Either knowing how to disable it entirely or how to undo it once I've enabled it would be helpful. A Google search for <"windows 8" function shift f7> brought up tons and tons of irrelevant pages, and I don't quite know how to narrow it down. I never use my computer except in desktop mode, so I don't know if this is a problem in other modes. Nyttend ( talk) 15:36, 8 June 2015 (UTC)
Computing desk | ||
---|---|---|
< June 7 | << May | June | Jul >> | June 9 > |
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. |
Given two scenarios, in the first the computer has to deal with tasks that require little time but full-power, and in the second there are the tasks that imply a long-processing time.
How can the computer know that the latter will take long to finish, so there is not point in giving it full-power, however, the first will take little time to finish, so give it full-power for a fraction of a sec, and you are rid of it.
Otherwise, how would the computer choose how much processing/memory each running process gets? -- Llaanngg ( talk) 00:27, 8 June 2015 (UTC)
Hello. Something is going on with certain fonts I see on some websites. Some special characters are showing up as the wrong character. For example, where I should see a ä, a ‰ appears. Ø shows up as ÿ, ñ looks like Ò, ë as Î, and so on. (I checked what the characters were supposed to be by copying and pasting the offending characters into Word.) It doesn’t happen with all characters; Basic Latin is unaffected, as are some lesser-used characters such as ă and ć. Cyrillic and Greek characters are also unaffected. And it is not apparent on an entire website. If the same character appears elsewhere on the page in a different font, it looks fine. What makes this happen? → Michael J Ⓣ Ⓒ Ⓜ 01:01, 8 June 2015 (UTC)
The following code works fine with GCC, but Visual Studio 2013 complains about "error C3074: an array can only be initialized with an initializer-list".
boost::shared_ptr<A> arrayOfA100 = boost::shared_ptr<A>(new A);
I do understand that my code is wrong w.r.t the C++ standard, but is there a better way than repeating boost::shared_ptr<A>(new A), boost::shared_ptr<A>(new A), boost::shared_ptr<A>(new A)... one hundred times? I could write a loop to do it, but then that would cost three lines per array, and I have numerous such arrays. I asked a related question previously [1]. My other car is a cadr ( talk) 10:52, 8 June 2015 (UTC)
// Custom subclass of shared_ptr
template<class T>
class my_shared_ptr : public boost::shared_ptr<T> {
public:
my_shared_ptr() : boost::shared_ptr<T>(boost::make_shared<T>()) {}
};
// Custom array of standard shared_ptrs
template<class T, size_t n>
class my_shared_ptr_array : public boost::array<boost::shared_ptr<T>, n> {
public:
my_shared_ptr_array() {
for (size_t i = 0; i != n; ++i)
(*this)[i = boost::make_shared<T>();
}
};
// Helper function for standard array of standard shared_ptrs
template<class T, size_t n>
void initialize_shared_ptr_array(boost::shared_ptr<T> (&a)[n]) {
for (size_t i = 0; i != n; ++i)
ai = boost::make_shared<T>();
}
I am looking to set up an 'internet radio' station, a website that broadcasts a set program of pre-recorded music and other content. I have created a number of other websites for different purposes before, but never anything of this nature. I imagine it would involve a lot of differences to what I am used to, some specific programming to get it to run as intended (though I would not be surprised if it was as simple a matter as downloading existing software and hosting it on a server), but have no idea where to even start looking for instructions.
Thank you,
86.24.139.55 ( talk) 14:50, 8 June 2015 (UTC)
Best storage medium for back up of 2TB of data? — Preceding unsigned comment added by 202.118.236.130 ( talk) 15:07, 8 June 2015 (UTC)
In Microsoft Word, Shift+F7 brings up the thesaurus, so when using the program in Windows 8 desktop mode, I'll often (without thinking) hold down the function key and press Shift and F7. This invariably leads to a weird situation, effectively holding down the Shift key: any letter I type is capitalised, if I click in the document, it highlights everything between that spot and the cursor, and commands don't work because it interprets Ctrl+S as Shift+Ctrl+S, which doesn't do anything. This affects the whole system; I always have to restart, because even mouse-clicking the start button (I use Classic Shell to give a Windows 7 appearance to the desktop) brings up the Windows 8 start screen, just as if I clicked it normally while holding down Shift. So my questions (1) What is the point of this feature? (2) Is there a way to turn it off easily, without restarting my computer, and ideally with a single button click or hotkey combination? Either knowing how to disable it entirely or how to undo it once I've enabled it would be helpful. A Google search for <"windows 8" function shift f7> brought up tons and tons of irrelevant pages, and I don't quite know how to narrow it down. I never use my computer except in desktop mode, so I don't know if this is a problem in other modes. Nyttend ( talk) 15:36, 8 June 2015 (UTC)