Computing desk | ||
---|---|---|
< November 29 | << Oct | November | Dec >> | December 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. |
A few minutes ago out of curiosity I clicked on iGoogle at the top right of the Google screen, as I wondered what it was. Now whenever I a) click on my desktop shortcut to Google, or b) type google.co.uk or c) type google.com I get redirected to http://www.google.co.uk/ig?hl=en where I am invited to "Create your own homepage in under 30 seconds". I am not interested in doing this! How can I stop getting redirected to this unwanted page and instead just get plain google.co.uk as before please? I have used CCleaner to delete all cookies, but it still does it. I am using WinXP and IE7. Thanks. 78.144.244.16 (talk) 00:28, 30 November 2008 (UTC)
Hello all. Over the last little while, I've been running into issues that may or may not be related. When I click on video files, they don't open and if I try opening the same file again (sometimes I don't double-click quite fast enough, you know?), I find that WE is not responding. I heard the fans running pretty hard, opened Task Manager and saw WE was chewing up 50% of my CPU resources. I restarted the computer and was asked to click on a user name to start Windows, which I've never had to do. I shut the box down completely, gave it a good dusting (just in case the fans were really fuming due to gunk build-up) and re-started. Again with this "Click on User Name" thing and vids still don't open. I've been running Avast! for quite some time and never found anything on board. The only software I've installed recently was Roxio Easy Media Creator 9, but it's a full, legit, program and actually apparently working as of the last time I checked. The internet also seems to really be dragging, but obviously that could just be traffic. Any of this making sense? If I heard someone else having these problems I would assume some kind of malware, but Avast! says no and I haven't been doing any high-risk behaviour. Could it be the hardware? Any help would be appreciated. I'm running Windows XP sp3. Matt Deres (talk) 00:48, 30 November 2008 (UTC)
I have two or more SELECT statments of the form:
mysql> select dayofweek(date), count(*) from games where tag="GOOD" group by dayofweek(date); +--------------------+----------+ | dayofweek(date) | count(*) | +--------------------+----------+ | 2 | 120 | | 3 | 127 | | 4 | 109 | | 5 | 152 | | 6 | 133 | +--------------------+----------+
and
mysql> select dayofweek(date), count(*) from games where tag="BAD" group by dayofweek(date); +--------------------+----------+ | dayofweek(date) | count(*) | +--------------------+----------+ | 2 | 58 | | 3 | 69 | | 4 | 57 | | 5 | 62 | | 6 | 61 | +--------------------+----------+
What does my query have to look like to get output like this: The column headings aren't as big a deal. I mostly just want to get the results all together. Thanks.
+--------------------+----------+---------+ | dayofweek(date) |count BAD|count GOOD| +--------------------+----------+---------+ | 2 | 58 | 120 | | 3 | 69 | 127 | | 4 | 57 | 109 | | 5 | 62 | 152 | | 6 | 61 | 133 | +--------------------+----------+---------+
Thanks in advance. --Rajah (talk) 00:51, 30 November 2008 (UTC)
ERROR 1140 (42000): Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
when I do that. can you recommend a tutorial where I can read how to build up a join like that? --Rajah (talk) 01:23, 30 November 2008 (UTC)You might also try something like:
select dayofweek(date), count(case when tag='GOOD' then 1 else null end) as countGood, count(case when tag='BAD' then 1 else null end) as countBad, from games group by dayofweek(date)
This works in Microsoft SQL server. I'm not sure about mysql, but looking at its documentation, it looks like it should support the above syntax. The value 1 is arbitrary. The count will count any non-null value. Also, the "else null" part is technically not needed, since null is the default value for the case expression. -- Tcncv (talk) 02:10, 30 November 2008 (UTC)
select
dayofweek(date),
sum(tag = 'GOOD') as countGood,
sum(tag = 'BAD') as countBad
from games
group by dayofweek(date)
true
becomes 1 and false
becomes 0. —Ilmari Karonen (talk) 21:37, 30 November 2008 (UTC)I recently made the switch from Opera to Firefox. One of the features I loved in Opera was Speed Dial and its ease of use; a simple gesture of the mouse made it magically appear. Browsing around the add-ons for Firefox, I saw Firegestures and Speed Dial and had to try them out. They work quite well, but the only thing is that I can't get Firegestures (I have no scripting knowledge) to open Speed Dial in the current tab, emulating Opera. I can get it to open Speed Dial in a different tab, but not the current one. Can anyone with scripting knowledge help me? I searched around google but couldn't find anything that worked. Thanks! --71.117.47.180 (talk) 03:50, 30 November 2008 (UTC)
Here's the source:
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
long long int m = 2; long long int c; cout << "Enter a number to check for primality." << endl; cin >> c; if ( cin.fail() ) { return 0; } loop: while ( m < c) { if ( c % m == 0) { cout << c << " is divisible by " << m << endl; return 0; } else { m++; goto loop; } } if ( m >= c) { cout << m << " is prime." << endl; return 0; } return 0; }
(Written in and for Linux) I have several large composite numbers (16 digit pseudoprimes) and the program compiled from this code will tell me that they are divisible and what will divide them very quickly. However, I have several large probable primes (such as 7237443274373237) and the program hangs indefinitely and will not say if they are prime or not. However, for small primes (such as 61) it will very quickly tell that they are prime. So, how can I make this program stop hanging up? Thanks, Ζρς ι'β' ¡hábleme! 05:21, 30 November 2008 (UTC)
Number of checks ---------------- 7237443274373235 Checking every number from 2 up to the target-1 85073164 Checking all numbers to the square root of the target 42536532 Checking 2 and odd numbers to the square root (estimate) 5000000 Checking primes to the square root
I've made a remote thread injector at [2] which can either get the command line of a process (1) or force the process to start any program I want (2). However, both functions only seem to completely work when I'm either debugging it using Visual C++ or OllyDbg. Using the Release build crashes the injector for both (1) and (2). Using the Debug build works for (1) but crashes the target process when trying (2). Additionally, when using IDA Pro, the injector crashes for both functions at wprintf.
I think this may have something to do with me running COMODO Firewall - in a Windows XP VM without any security software, (1) always works with the Release build but (2) crashes the target process. I'm running Windows Vista. Any ideas? Thanks in advance. --wj32 t/c 05:56, 30 November 2008 (UTC)
Hi!currently i am some troubles, i downloaded a game from (Nokiasymbianthemes.com)which is Star War,the force unleashed.it is in .rar format and i have Nokia N82 Mobile. I posted the a query on the same website but nobody answeres yet.please any tell how can i extract the .sis file from this.Any idea please, Thank you.
Yes Wj32, I know that but when i extract the file through winrar it comes with a .zip file and yes this too a compressed file again by extracting the .zip file it gives me .ro1 etc like file format , so what next i do?
.r*
files and open the one named *.rar
. --wj32 t/c 05:41, 1 December 2008 (UTC)I have a Mac, but I'm curious about Linux. When I want a new version of software (like OpenOffice.org 3.0, for example), I can just download the latest binary and install it. And on the download page, there are Linux binaries right next to the Mac and Windows binaries. Yet, apparently, Ubuntu users are frustrated because Ubuntu 8.10 only includes OOo 2.4. According to our reference, they can get OOo 3.0 from a PPA or from the Backports repository (neither of which I know anything about). But why can't they just download the .DEB file sitting on the OOo download page?
Again, these are just examples... if I were interested in OOo 3.0 or Ubuntu in particular I'd be asking on their forums. But I think I'm missing something basic about how software distribution works on Linux. Thanks for any help! --Allen (talk) 07:38, 30 November 2008 (UTC)
dpkg -i openoffice.deb
. But it may be that dpkg warns about unmet dependencies, in this case you need the Backports repo. Backports is a repo where new packages get compiled using older libs, so systems using these older libs can run the new package w/o problems. HardDisk (talk) 13:55, 30 November 2008 (UTC)
Hi all,
what plugin for VB6.0 do I need to be able to create applications for a Windows CE 2.0 device?
Thanks, HardDisk (talk) 13:23, 30 November 2008 (UTC)
Hi all,
again a coding question, this time on WM6-based devices...how do I create Today screen plugins within VB.NET? The only things I found in Google are for eVC and C.net :(
HardDisk (talk) 13:37, 30 November 2008 (UTC)
When my broadband connection goes down I'm told to unplug the router from the mains electritity for 20 seconds, then plug it in again. This usually works, but what is happening during those 20 seconds? Why, given the high speed of electricity along a copper wire, does it take so long?--Shantavira|feed me 17:33, 30 November 2008 (UTC)
Hello all - Am writing a simple Java program to display an i*j character matrix but have been having a big headache with handling non-integer input. I'm trying to get a catch block to restart a do loop in the following way, on testing given a deliberate input mismatch exception it just ends the whole program rather than restarting the do:
import java.util.*;
//...
int i, j;
do
{
//...
//...prompt to enter ints...
try
{
i = sc.nextInt(); j = sc.nextInt();
}
catch(InputMismatchException io)
{
System.out.println("I/O error: please enter integer values.");
continue; //was expecting this to restart do loop
}
//...
}while(i*j !=0); // data terminator
//...
I'm having real trouble finding the error in the logic here - could anyone point me in the right direction? Any help gratefully received. Psymun (talk) 18:40, 30 November 2008 (UTC)
Hmm, first of all, I don't get what the i and j in the loop's condition are. They can't be ints declared earlier because that would make the (int i, j;) line illegal - also they can't be the very same i and j because the ones declared inside the loop are local to the loop. Also note that the "continue" will make the thing check the loop's condition before restarting it (not just restart it blindly). I'd advise separating the "checking user input" bit (fiddly and annoying and not very interesting) from whatever you're trying to do with the numbers entered. -ie write your own MyScanner with a safe int nextInt() method.
continue
goes to the end of the current iteration of the loop, evaluates the condition, and then if true, goes on to the next iteration. The problem is that the condition evaluates to false. i
and j
are initialized to 0 (the default value for ints), so if at least one of the inputs fail, then at least one of them will still be 0, and i*j
will be 0, and the condition will fail. --71.106.183.17 (talk) 19:52, 30 November 2008 (UTC)
i
, j
to 0, so necessarily the do
was ending. Implemented the following:import java.util.*;
//...
catch(InputMismatchException io)
{
System.out.println("I/O error: please enter integer values.");
i = j = 1; //while now evaluates to true
continue;
}
//...
}while(i*j !=0);
//...
Hi - I'm installing a printer driver, and have got to the point where it's asking me what port I've plugged it into - I have to choose from a list of about 15. I've plugged it into one on the left side of my compaq laptop - what does that correspond to in the list?
Thanks, and please forgive my ignorance.
Adambrowne666 (talk) 21:49, 30 November 2008 (UTC)
Thanks all - I tried it again, and this time the Install Wizard kicked in and did it for me. Adambrowne666 (talk) 10:56, 1 December 2008 (UTC)