[Bug 725367] Re: primes returns composites
Erm, the previous was obviously solution c), not b) =) Anyway, here's d), it uses the sieve recursively to init itself. This should allow full 64-bit range to be traversed (and potentially larger, if there is a native integer type). ** Patch added: "725367d.diff" https://bugs.launchpad.net/ubuntu/+source/bsdgames/+bug/725367/+attachment/2365772/+files/725367d.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/725367 Title: primes returns composites To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bsdgames/+bug/725367/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 725367] Re: primes returns composites
The attachment implements option b) add some to primes table (max 2^17) and limit range to achieve approx. 2^34 bit result range. ** Patch added: "Solution b" https://bugs.launchpad.net/ubuntu/+source/bsdgames/+bug/725367/+attachment/2360524/+files/725367b.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/725367 Title: primes returns composites To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bsdgames/+bug/725367/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 725367] Re: primes returns composites
Indeed, the primes program uses Eratosthenes sieve using pre-calculated array of primes up to 65537, leading to possible errors (and, in this case real errors, as 65539 is also a prime) when range hits (65537+2)^2. There are a few possible fixes, that I can think of: a) don't support 64-bit numbers, set upper limit to UINT32_MAX b) support 64-bit numbers, but set upper limit to (MAX(primes) + 2)**2 - 1 c) add some number of pre-calculated primes to array, and repeat b (supporting the whole 64-bit range would take 203280221 primes (which could be stored in a 4-byte uints, leading to ~800 megabytes of memory) d) recursively use the sieve to prime itself to reach unlimited range (this adds computation time and algorithm complexity) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/725367 Title: primes returns composites To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bsdgames/+bug/725367/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 705112] Re: the menubar with appmenu-gtk is 1px tall
This patch fixes a couple of coding style issues and simplifies gtk_menubar_show and _hide. ** Patch added: "Re-re-try of the fixed patch using map/unmap" https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/705112/+attachment/1910444/+files/043_ubuntu_menu_proxy.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/705112 Title: the menubar with appmenu-gtk is 1px tall -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 705112] Re: the menubar with appmenu-gtk is 1px tall
As discussed with Cimi on irc, this one now uses unmap/map to avoid setting the GTK_VISIBLE flag, so that the notifications come through correctly. ** Patch added: "Re-try of the fixed patch using map/unmap" https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/705112/+attachment/1909982/+files/043_ubuntu_menu_proxy.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/705112 Title: the menubar with appmenu-gtk is 1px tall -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 717358] Re: nautilus puts a menu bar at the top of the desktop
This rather obtrusive patch seems to fix the issue, not sure if it breaks something though; some applications may expect that ::show is not called multiple times without ::hide in between (or vice versa). This is the best/simplest solution I can think of right now. Uploaded a package with this patch to my ppa if someone likes to test. ** Patch added: "043_ubuntu_menu_proxy.patch" https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/717358/+attachment/1854469/+files/043_ubuntu_menu_proxy.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/717358 Title: nautilus puts a menu bar at the top of the desktop -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 717358] Re: nautilus puts a menu bar at the top of the desktop
The updated patch doesn't fix cases which do _show() ... _hide() (where hide is called before local_notify). I wrote some findings in bug 705112, but in short the problem is that gtk_widget_hide() only calls GtkWidget::hide if the widget was visible. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/717358 Title: nautilus puts a menu bar at the top of the desktop -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 705112] Re: the menubar with appmenu-gtk is 1px tall
Found the problem to be that GtkWidgetClass::hide is only called if the widget was visible, thus if the call order is: 1. show() 2. hide() 3. local_notify(local = 1) the menubar remains shown, but if the call order is: 1. show() 2. local_notify(local = 1) 3. hide() things work correctly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/705112 Title: the menubar with appmenu-gtk is 1px tall -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 705112] Re: the menubar with appmenu-gtk is 1px tall
The updated patch helps with the issue, but some kind of race still prevails. The updated test program sometimes shows and sometimes hides the bar. Upping the priority to G_PRIORITY_HIGH_IDLE shows the menubar (nearly) every time. ** Attachment added: "lp705112-regression.c" https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/705112/+attachment/1853534/+files/lp705112-regression.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/705112 Title: the menubar with appmenu-gtk is 1px tall -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 705112] Re: the menubar with appmenu-gtk is 1px tall
The patch breaks applications that don't want to show a menubar on startup (I noticed it with gnome-terminal). Attached file shows broken behavior: even though menubar is explicitly hidden, it still shows up when run. ** Attachment added: "Sample application showing regression with the patch" https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/705112/+attachment/1851524/+files/lp705112-regression.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/705112 Title: the menubar with appmenu-gtk is 1px tall -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 644606] [NEW] Qt mobility MultimediaKit does not work with maverick version of Qt
Public bug reported: Qt Mobility MultimediaKit uses own version of QObjectPrivate (don't know why), and due to patch 0209-prevent-qt-mixing.diff in qt packages does not work. Every time a program using the multimediakit is run, it exits with error "Cannot mix incompatible Qt library (version 0x40700) with this library (version 0x1040700)". (Try, for example, the camera example from qtmobility-examples. If built with the same + 0x100 as in the patch, the library works just fine. ** Affects: qtmobility (Ubuntu) Importance: Undecided Status: New -- Qt mobility MultimediaKit does not work with maverick version of Qt https://bugs.launchpad.net/bugs/644606 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 379328] Re: Browser crashes when opening page with large gif animation
It works just fine if I open the image directly, not the page it's on. Also it does not crash on other platforms. -- Browser crashes when opening page with large gif animation https://bugs.launchpad.net/bugs/379328 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 379328] [NEW] Browser crashes when opening page with large gif animation
Public bug reported: When I open http://aasi.ebm.fi/4185/Cat_invisible_pet_door.gif in firefox, firefox promptly dies (closes all windows). When starting the browser the next time, there are curious open-close-open-window events. The bug seems to be reproducible with other browsers too (midori, opera, chormium-browser), but I didn't know better place to report. Using: Ubuntu 9.04 firefox 3.0.10+nibinonly-0ubuntu0.9.04.1 ** Affects: firefox (Ubuntu) Importance: Undecided Status: New -- Browser crashes when opening page with large gif animation https://bugs.launchpad.net/bugs/379328 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 129240] Re: Vte doesn't underline spaces
** Attachment added: "A simple patch that fixes the issue" http://launchpadlibrarian.net/8606364/70_fix-underscore.patch -- Vte doesn't underline spaces https://bugs.launchpad.net/bugs/129240 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 129240] Vte doesn't underline spaces
Public bug reported: Any vte-based (since vte 0.14, I think) terminal doesn't show underlining on whitespace. This totally breaks my irssi "theme". Steps to reproduce: 1. launch terminal 2. run echo -e '\e[4mfoo foo\e[0m' Actual results: Two underlined foos are echoed Expected results: Two foos with one underline should be echoed Other: I've reported this also as gnome bug #434230, but there's been no activity in 3 months. Noticed this again when doing an apt-get upgrade and my hand-crafted package got replaced by new version. ** Affects: vte (Ubuntu) Importance: Undecided Status: New -- Vte doesn't underline spaces https://bugs.launchpad.net/bugs/129240 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs