[Bug 572607] [NEW] Incorrect answer in the 'cube' task

2010-04-30 Thread Gregory Bonik
Public bug reported:

Binary package hint: gbrainy

The 'correct' answer in the 'Cube' problem is indeed wrong. The task
reads:

"How many cubes do you count in the figure below? (not counting the
figure)",

and the picture of a big cube subdivided into n^3 small cubes follows
(see attachment). The number n is either 4, 5, or 6. GBrainy says that
for each n the correct answer is n^3 (i. e. 64 for n = 4, 125 for n = 5
and 216 for n = 6), but obviously that's wrong.

There are also sub-cubes of sizes 2x2x2, 3x3x3 and so on. For example,
in the case of n = 4, one can find 99 cubes:

8 = 2^3 cubes of size 3x3x3,
27 = 3^3 cubes of size 2x2x2
and 64 = 4^3 cubes of size 1x1x1.

So, for an arbitrary n the correct answer is 1^3 + 2^3 + ... + n^3. In
particular, the answer for n = 5 is 224, the answer for n = 6 is 440,
and, as already mentioned, the answer for n =4 is 99.

** Affects: gbrainy (Ubuntu)
 Importance: Undecided
 Status: New

-- 
Incorrect answer in the 'cube' task
https://bugs.launchpad.net/bugs/572607
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 572607] Re: Incorrect answer in the 'cube' task

2010-04-30 Thread Gregory Bonik

** Attachment added: "brainy.png"
   http://launchpadlibrarian.net/46709648/brainy.png

-- 
Incorrect answer in the 'cube' task
https://bugs.launchpad.net/bugs/572607
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 572607] Re: Incorrect answer in the 'cube' task

2010-04-30 Thread Gregory Bonik
@Kamus, what?

If rows = columns = deepth = 4, then ans becomes 4*4*4 = 64. But that's
not the correct answer, neither is 96. The correct answer is 99.

'Deepth'" (should be 'depth' of course) is not the number of faces. It's
the number of cubes in the third dimension.

The correct code should be

n = random.Next(max_random)
ans = 0
for i in xrange(2, n + 1):
  ans += i**3

Alternatively, one can use the closed-form formula to compute the sum:
n = random.Next(max_random)
ans = (n*(n + 1) / 2)**2 - 1

It should be noted that in the case of unequal dimensions (i. e. rows,
cols and depth differ from each other) the task gets a bit harder.

-- 
Incorrect answer in the 'cube' task
https://bugs.launchpad.net/bugs/572607
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 572607] Re: Incorrect answer in the 'cube' task

2010-05-01 Thread Gregory Bonik
@Jordi Mas, yes, that will be OK but not too interesting to solve. I
think almost everyone can easily guess, that he should just raise the
number to the power 3. The game you noted is better, because it features
boxes and not only cubes, thus taking some time to perceive an image.

-- 
Incorrect answer in the 'cube' task
https://bugs.launchpad.net/bugs/572607
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 572607] Re: Incorrect answer in the 'cube' task

2010-05-01 Thread Gregory Bonik
Yes, I think that wording change from comment #5 will do. But is it an
easy fix? Don't forget about i18n. If we consider a short-term
maintenance series, maybe it's easier to fix the answer as suggested by
me in the comment #4.

Some thoughts about 1.5x version:
1) Easy level:
"How many single small cubes do you count in the figure below? Answer using a 
number"
The figure is always a cube.
2) Medium level:
Same question, but the figure is any box.
3) Hard level:
"How many cubes do you count in the figure below? (not counting the figure)"
The figure is a cube.

-- 
Incorrect answer in the 'cube' task
https://bugs.launchpad.net/bugs/572607
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 580683] [NEW] Load_Cycle_Count increases rapidly on Asus UL30Vt

2010-05-14 Thread Gregory Bonik
Public bug reported:

Binary package hint: acpi-support

While running on battery, hard drive clicks approximately two times per
minute. Load_Cycle_Count increases by one with each click. When plugged
in, there is no such problem.

I am using 64-bit Lucid on Asus UL30Vt laptop with "ATA WDC WD3200BEVT-
22ZCT0" hard drive.

The "hdparm -B 254 /dev/sda" workaround seems to fix the problem, but I
have to run that each time when I unplug the power cord.

Not sure about the package.

** Affects: acpi-support (Ubuntu)
 Importance: Undecided
 Status: New

-- 
Load_Cycle_Count increases rapidly on Asus UL30Vt
https://bugs.launchpad.net/bugs/580683
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 82083] Re: evolution hangs on big multipart attachments

2010-11-20 Thread Gregory Bonik
I can reproduce this as well. Today I received a mail with 20mb
attachment and evolution hanged for ever while showing "Formatting
message". This is quite annoying.

-- 
evolution hangs on big multipart attachments
https://bugs.launchpad.net/bugs/82083
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 41301] Re: Mouse clicks stop working sporadically

2010-11-29 Thread Gregory Bonik
My friend has this weird problem too. Mouse clicks stop working randomly
without any apparent reason, while he can still move the pointer.
Keyboard works, but Alt-Tab stops working too, so that it becomes
impossible to switch between windows. Looks like a problem with window
manager, but this happens both with metacity and compiz. If I connect to
his desktop via VNC, I cannot click anything either, Alt-Tab doesn't
work for me too. Xev doesn't show any mouse events, event mouse movement
over the window. If the mouse is re-plugged, everything starts working
again.

Using 64-bit Ubuntu 10.04 and latest (260.19.21) NVIDIA driver installed
by hand (just becuase GeForce GTX 460 isn't supported by any driver
available in Ubuntu repos). Otherwise the system is untouched.

-- 
Mouse clicks stop working sporadically
https://bugs.launchpad.net/bugs/41301
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs