<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ponton&#039;s site &#187; linux</title>
	<atom:link href="http://www.ponton.srednikpe.org/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ponton.srednikpe.org</link>
	<description>blog głównie matematyczno-informatyczny (nie chce mi się pisać o życiu)</description>
	<lastBuildDate>Mon, 18 Jan 2010 22:23:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Glade vs QT Designer</title>
		<link>http://www.ponton.srednikpe.org/2009/05/31/glade-vs-qt-designer/</link>
		<comments>http://www.ponton.srednikpe.org/2009/05/31/glade-vs-qt-designer/#comments</comments>
		<pubDate>Sun, 31 May 2009 22:45:23 +0000</pubDate>
		<dc:creator>ponton</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Polskie]]></category>
		<category><![CDATA[glade]]></category>
		<category><![CDATA[gtk+]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[qt]]></category>
		<category><![CDATA[qt designer]]></category>

		<guid isPermaLink="false">http://www.ponton.srednikpe.org/?p=228</guid>
		<description><![CDATA[Ostatnimi czasy miałem okazję bliżej przyjrzeć się dwóch narzędziom do projektowania interfejsu. Postaram się w skrócie opisać, co mi się w nich podobało, a co nie. Na początek Qt Designer, bo jego wcześniej się nauczyłem. Interfejs jest podobny do GIMP-a, czyli dużo niezadokowanych okienek: z kontrolkami, z właściwościami, ze slotami, z hierarchią kontrole i oczywiście [...]]]></description>
			<content:encoded><![CDATA[<p>Ostatnimi czasy miałem okazję bliżej przyjrzeć się dwóch narzędziom do projektowania interfejsu. Postaram się w skrócie opisać, co mi się w nich podobało, a co nie.</p>
<p>Na początek Qt Designer, bo jego wcześniej się nauczyłem. Interfejs jest podobny do GIMP-a, czyli dużo niezadokowanych okienek: z kontrolkami, z właściwościami, ze slotami, z hierarchią kontrole i oczywiście okno naszego projektu. Glade natomiast to w całości jedno okno. Wiele osób narzeka na ten &#8220;gimpowy&#8221; interfejs, jednak w tym przypadku Qt Designer ładnej wygląda, chociaż może niestaranności wykonania Glade&#8217;a (głównie chodzi o okno z właściwościami, które, jak to trafnie pan w video tutorialu ujął, <em>it&#8217;s never wide enough</em>).</p>
<p>Wśród kontrolek Designera mamy pełen zasób biblioteki Qt (w tym np. kontrolka przeglądarki WWW opartej na WebKicie), jednak są to tylko stricte widżety. Nie będziemy mogli zdefiniować modelu dla *View (TreeView, ListView, etc.), a na tych kontrolkach miałem oparte oba interfejsy projektów (w sumie obie były pewnym interfejsem bazy danych). Glade potrafi tworzyć modele (o ile oczywiście wybierzemy projekt GtkBuilder, ale libglade nie jest już rozwijana, więc wybór tego pierwszego powinien być jasny), jednak chwilę musiałem pogooglać, jak to się robi. Jest to póki co mało intuicyjne (przynajmniej dla mnie). Natomiast w Designerze łatwiej udało mi się ustawić &#8220;sortowalność&#8221; kolumn (w sumie to w Glade jeszcze do tego nie doszedłem, choć próbowałem).</p>
<p>Ogólnie lepsze wrażenie sprawia jednak Designer. Jest bardziej intuicyjny, pozwala przenosić kontrolki myszką (nie trzeba ich wycinać albo zmieniać albo wpisywać pozycji we właściwościach) i edytować je na oknie. Od razu mamy także podgląd naszego okna. O wiele prościej się też moim zdaniem obsługuje kontenery, choć na początku miałem trochę trudności. W Glade trzeba trochę się namęczyć, żeby stworzyć pożądany efekt na okienku, żeby wszystko było równiutko.</p>
<p>To, co mi się jeszcze spodobało w Designerze, to sloty, chociaż to bardziej kwestia Qt niż samego Designera. Sloty bardzo ułatwiają podpinanie sygnałów. Możemy np. sygnał &#8220;clicked()&#8221; przycisku podpiąć pod slot &#8220;show()&#8221; okienka bez pisania żadnej procedury obsługi. Natomiast sygnały niestandardowe, które wymagają odrobiny naszego kodu, trzeba podpinać ręcznie (w kodzie). Glade potrafi zapamiętać nazwy naszych handlerów i automatycznie je podpiąć (w Pythonie trzeba jednak podać mu słownik odwzorowań nazw na funkcje jako argument).</p>
<p>Kiedy już stworzymy interfejs, nadchodzi etap programowania. Sama obsługa naszego interfejsu lepsza jest jednak w Glade. Tworzymy obiekt GtkBuilder i ładujemy nasz plik *.glade. Następnie wywołujemy funkcję, której podajemy nazwę widżetu, a ona zwraca nam wskaźnik (w Pythonie referencję) do niego i już możemy go używać. W Qt Designerze musimy odpowiednim narzędziem skonwertować nasz plik *.ui na kod źródłowy z klasą, od której nasze okno dziedziczy (lub enkapsuluje jej obiekt).</p>
<p>Co zatem jest lepsze? Oba programy są dobre. Na obu oparto potężne środowiska graficzne, zatem oba nadadzą się do stworzenia Twojego projektu. Każda ma swoje mocne i słabe strony, więc wybór w tym przypadku będzie indywidualny i często przypadkowy (tzw. kwestia gustu).</p>
<p>UPDATE: Glade jednak potrafi przenosić kontrolki, a Qt dynamicznie ładować interfejs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ponton.srednikpe.org/2009/05/31/glade-vs-qt-designer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HP Pavilion dv6780el on Debian Squeeze</title>
		<link>http://www.ponton.srednikpe.org/2009/05/29/hp-pavilion-dv6780-on-debian-squeeze/</link>
		<comments>http://www.ponton.srednikpe.org/2009/05/29/hp-pavilion-dv6780-on-debian-squeeze/#comments</comments>
		<pubDate>Fri, 29 May 2009 01:07:49 +0000</pubDate>
		<dc:creator>ponton</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux on laptop]]></category>

		<guid isPermaLink="false">http://www.ponton.srednikpe.org/?p=214</guid>
		<description><![CDATA[Recently I bought a laptop HP Pavilion dv6780el. It was shipped with Vista, but was used only once for download Debian Testing snapshot: two horrible hours for searching CD burning program for Windows (this is shareware, this is demo, this is adware, oh, this is freeware, but actually it can&#8217;t burn CD image onto DVD [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I bought a laptop HP Pavilion dv6780el. It was shipped with Vista, but was used only once for download Debian Testing snapshot: two horrible hours for searching CD burning program for Windows (this is shareware, this is demo, this is adware, oh, this is freeware, but actually it can&#8217;t burn CD image onto DVD disk *sigh*). In the end I copied the image to my old laptop and after 5 minutes I&#8217;ve got a CD ready to install.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">lspci</span>
00:<span style="color: #000000;">00.0</span> Host bridge: Intel Corporation Mobile PM965<span style="color: #000000; font-weight: bold;">/</span>GM965<span style="color: #000000; font-weight: bold;">/</span>GL960 Memory Controller Hub <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 0c<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:<span style="color: #000000;">01.0</span> PCI bridge: Intel Corporation Mobile PM965<span style="color: #000000; font-weight: bold;">/</span>GM965<span style="color: #000000; font-weight: bold;">/</span>GL960 PCI Express Root Port <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 0c<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:1a.0 USB Controller: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> USB UHCI Controller <span style="color: #666666; font-style: italic;">#4 (rev 03)</span>
00:1a.1 USB Controller: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> USB UHCI Controller <span style="color: #666666; font-style: italic;">#5 (rev 03)</span>
00:1a.7 USB Controller: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> USB2 EHCI Controller <span style="color: #666666; font-style: italic;">#2 (rev 03)</span>
00:1b.0 Audio device: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> HD Audio Controller <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 03<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:1c.0 PCI bridge: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> PCI Express Port <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 03<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:1c.1 PCI bridge: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> PCI Express Port <span style="color: #000000;">2</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 03<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:1c.5 PCI bridge: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> PCI Express Port <span style="color: #000000;">6</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 03<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:1d.0 USB Controller: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> USB UHCI Controller <span style="color: #666666; font-style: italic;">#1 (rev 03)</span>
00:1d.1 USB Controller: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> USB UHCI Controller <span style="color: #666666; font-style: italic;">#2 (rev 03)</span>
00:1d.2 USB Controller: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> USB UHCI Controller <span style="color: #666666; font-style: italic;">#3 (rev 03)</span>
00:1d.7 USB Controller: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> USB2 EHCI Controller <span style="color: #666666; font-style: italic;">#1 (rev 03)</span>
00:1e.0 PCI bridge: Intel Corporation <span style="color: #000000;">82801</span> Mobile PCI Bridge <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> f3<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:1f.0 ISA bridge: Intel Corporation 82801HEM <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8M<span style="color: #7a0874; font-weight: bold;">&#41;</span> LPC Interface Controller <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 03<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:1f.1 IDE interface: Intel Corporation 82801HBM<span style="color: #000000; font-weight: bold;">/</span>HEM <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8M<span style="color: #000000; font-weight: bold;">/</span>ICH8M-E<span style="color: #7a0874; font-weight: bold;">&#41;</span> IDE Controller <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 03<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:1f.2 SATA controller: Intel Corporation 82801HBM<span style="color: #000000; font-weight: bold;">/</span>HEM <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8M<span style="color: #000000; font-weight: bold;">/</span>ICH8M-E<span style="color: #7a0874; font-weight: bold;">&#41;</span> SATA AHCI Controller <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 03<span style="color: #7a0874; font-weight: bold;">&#41;</span>
00:1f.3 SMBus: Intel Corporation 82801H <span style="color: #7a0874; font-weight: bold;">&#40;</span>ICH8 Family<span style="color: #7a0874; font-weight: bold;">&#41;</span> SMBus Controller <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 03<span style="color: #7a0874; font-weight: bold;">&#41;</span>
01:<span style="color: #000000;">00.0</span> VGA compatible controller: nVidia Corporation GeForce 8400M GS <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> a1<span style="color: #7a0874; font-weight: bold;">&#41;</span>
02:<span style="color: #000000;">00.0</span> Network controller: Intel Corporation PRO<span style="color: #000000; font-weight: bold;">/</span>Wireless 3945ABG <span style="color: #7a0874; font-weight: bold;">&#91;</span>Golan<span style="color: #7a0874; font-weight: bold;">&#93;</span> Network Connection <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 02<span style="color: #7a0874; font-weight: bold;">&#41;</span>
06:<span style="color: #000000;">00.0</span> Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E<span style="color: #000000; font-weight: bold;">/</span>RTL8102E PCI Express Fast Ethernet controller <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 01<span style="color: #7a0874; font-weight: bold;">&#41;</span>
07:<span style="color: #000000;">09.0</span> FireWire <span style="color: #7a0874; font-weight: bold;">&#40;</span>IEEE <span style="color: #000000;">1394</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: Ricoh Co Ltd R5C832 IEEE <span style="color: #000000;">1394</span> Controller <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 05<span style="color: #7a0874; font-weight: bold;">&#41;</span>
07:<span style="color: #000000;">09.1</span> SD Host controller: Ricoh Co Ltd R5C822 SD<span style="color: #000000; font-weight: bold;">/</span>SDIO<span style="color: #000000; font-weight: bold;">/</span>MMC<span style="color: #000000; font-weight: bold;">/</span>MS<span style="color: #000000; font-weight: bold;">/</span>MSPro Host Adapter <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> <span style="color: #000000;">22</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
07:<span style="color: #000000;">09.2</span> System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> <span style="color: #000000;">12</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
07:<span style="color: #000000;">09.3</span> System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> <span style="color: #000000;">12</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
07:<span style="color: #000000;">09.4</span> System peripheral: Ricoh Co Ltd xD-Picture Card Controller <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> ff<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>I installed <strong>Debian Squeeze amd64</strong> and almost everythinng worked out-of-box, except few things.</p>
<p><strong>Wi-Fi</strong><br />
I had to install binary firmware for Intel 3945 since non-free packages are not in default Debian installation.  Fortunately I was able to connect with wire:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> firmware-iwlwifi</pre></div></div>

<p><strong>NVIDIA drivers</strong><br />
The default X driver is <emph>nv</emph> which performance is poor. Again, I had to manually install non-free software. Just googled &#8220;nvidia drivers linux&#8221; and followed the instructions. The good news is that the quailty of the official NVIDIA drivers for X server is very satisfactionary.</p>
<p><strong>Muting speakers when headphones are plugged-in</strong><br />
This is one I haven&#8217;t solved yet. I just mutted the front speakers in ALSA Mixer, but that&#8217;s only a workaround.<br />
UPDATE: It works after updating <emph>alsa-base</emph> to version 1.0.20</p>
<p><strong>ACPI</strong><br />
I noticed that when I tried first time to exhaust the battery it didn&#8217;t show any notification like &#8220;Low battery level&#8221;; it just died out of energy. Maybe it&#8217;s just a GNOME setting, dunno.</p>
<p>What I haven&#8217;t tested is fax modem and card bus.</p>
<p>The battery works for 2h15m which is quite short time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ponton.srednikpe.org/2009/05/29/hp-pavilion-dv6780-on-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
