Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/sessions/model/_session.class.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/hemmi3/public_html/blog/inc/sessions/model/_session.class.php:215) in /home/hemmi3/public_html/blog/inc/sessions/model/_session.class.php on line 222

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/items/model/_itemquery.class.php on line 628

Warning: Cannot modify header information - headers already sent by (output started at /home/hemmi3/public_html/blog/inc/sessions/model/_session.class.php:215) in /home/hemmi3/public_html/blog/inc/_core/_template.funcs.php on line 59
Tutorials http://www.blog.hemminga.net/index.php/tutorials/ en-US http://blogs.law.harvard.edu/tech/rss 60 Playing with jQuery http://www.blog.hemminga.net/index.php/tutorials/?title=title-15&more=1&c=1&tb=1&pb=1
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Sat, 24 Jan 2009 05:08:09 +0000 admin Images Programming 279@http://www.blog.hemminga.net/ <p>While playing with the upcoming B2evolution version I ran across an ancient piece of javaScript. And I thought I could do better in jQuery. That's what I thought.<br /> Yes I made it several lines shorter but I still used the original logic and a major slash of that code.<br /> Here is the problem. When you write a post you have a title. You would want to dynamically have that title in the top bar of the browser. In (X)HTML you use the &lt;title&gt; tag in &lt;head&gt; for that.<br /> javaScript can edit the title with document.title. And that's what was used. An event listener checks if the title is changed (keyup is hte best event for that, so when you lift the finger from the key. Keydown is before the key is pressed so you lag one character. onchange is way to late. That will only happen when the inputbox looses focus.)<br /> I'll present the jQuery code and run through it:</p> <pre title="code" class="jscript:firstline[1]">jQuery(function(){ var generateTitle = function() { currentPostTitle = jQuery('#post_title').val() document.title = document.title.replace(/(Poster dans le blog\:).*$/, '$1 '+currentPostTitle) } generateTitle() jQuery('#post_title').keyup(generateTitle) })</pre> <p>We make a function because we call it twice - and repeatedly when the title is changed. <img src="http://www.blog.hemminga.net/rsc/smilies/icon_wink.gif" alt="&#59;&#41;" class="middle" /> The variable currentPostTitle is filled with the contents of the textfield. That's the proposed title. Then in the next line the document.title is changed, basically the latest content of currentPostTitle is appended to what is already there. As you can see this is the most powerful line of all. And I took it from the original javaScript. I Googled the net and found this:</p> <pre>$(this).attr("title", "Your text goes here")</pre> <p>But it didn't seem to work. All other bits of advise point to document.title.</p> <p>Of course jQuery is better. I have the event easily attached to the inputfield where Francois needed to create the event and the listener. My code can go anywhere. The old code needed to be placed after the textfield. All in all it's progression.</p> <p>I put up a simple version for you to play with. Have fun.</p> <form> <input type="text" name="Title" id="title"></input><br /> <input name="reset" type="reset" value="reset" id="reset"></input> </form><div class="item_footer"><p><small><a href="http://www.blog.hemminga.net/index.php/tutorials/?title=title-15&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div> While playing with the upcoming B2evolution version I ran across an ancient piece of javaScript. And I thought I could do better in jQuery. That's what I thought.
Yes I made it several lines shorter but I still used the original logic and a major slash of that code.
Here is the problem. When you write a post you have a title. You would want to dynamically have that title in the top bar of the browser. In (X)HTML you use the <title> tag in <head> for that.
javaScript can edit the title with document.title. And that's what was used. An event listener checks if the title is changed (keyup is hte best event for that, so when you lift the finger from the key. Keydown is before the key is pressed so you lag one character. onchange is way to late. That will only happen when the inputbox looses focus.)
I'll present the jQuery code and run through it:

jQuery(function(){
	var generateTitle = function()
	{
		currentPostTitle = jQuery('#post_title').val()
		document.title = document.title.replace(/(Poster dans le blog\:).*$/, '$1 '+currentPostTitle)
	}
	generateTitle()
	jQuery('#post_title').keyup(generateTitle)
})

We make a function because we call it twice - and repeatedly when the title is changed. ;) The variable currentPostTitle is filled with the contents of the textfield. That's the proposed title. Then in the next line the document.title is changed, basically the latest content of currentPostTitle is appended to what is already there. As you can see this is the most powerful line of all. And I took it from the original javaScript. I Googled the net and found this:

$(this).attr("title", "Your text goes here")

But it didn't seem to work. All other bits of advise point to document.title.

Of course jQuery is better. I have the event easily attached to the inputfield where Francois needed to create the event and the listener. My code can go anywhere. The old code needed to be placed after the textfield. All in all it's progression.

I put up a simple version for you to play with. Have fun.


]]>
http://www.blog.hemminga.net/index.php/tutorials/?title=title-15&more=1&c=1&tb=1&pb=1#comments http://www.blog.hemminga.net/index.php/tutorials/?tempskin=_rss2&disp=comments&p=279
Testing dp.SyntaxHighlighter plugin http://www.blog.hemminga.net/index.php/tutorials/?title=testing-dp-syntaxhighlighter-plugin-1&more=1&c=1&tb=1&pb=1
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Mon, 06 Oct 2008 10:08:34 +0000 admin Images 261@http://www.blog.hemminga.net/ <h5>c#:firstline[1]:nogutter from plugin settings</h5> <pre title="code" class="cpp:firstline[1]:nogutter"> /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.Run(new MyClockForm()); } private void MyClockForm_Load(object sender, System.EventArgs e) { // Set the interval time ( 1000 ms == 1 sec ) // after which the timer function is activated timer1.Interval = 1000 ; // Start the Timer timer1.Start(); // Enable the timer. The timer starts now timer1.Enabled = true ; }</pre><div class="item_footer"><p><small><a href="http://www.blog.hemminga.net/index.php/tutorials/?title=testing-dp-syntaxhighlighter-plugin-1&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div> c#:firstline[1]:nogutter from plugin settings
        /// 
        /// The main entry point for the application.
        /// 
        [STAThread]
        static void Main() 
        {
            Application.Run(new MyClockForm());
        }

        private void MyClockForm_Load(object sender, System.EventArgs e)
        {
            // Set the interval time ( 1000 ms == 1 sec )
            // after which the timer function is activated
            timer1.Interval = 1000 ;
            // Start the Timer
            timer1.Start();
            // Enable the timer. The timer starts now
            timer1.Enabled = true ; 
        }
]]>
http://www.blog.hemminga.net/index.php/tutorials/?title=testing-dp-syntaxhighlighter-plugin-1&more=1&c=1&tb=1&pb=1#comments http://www.blog.hemminga.net/index.php/tutorials/?tempskin=_rss2&disp=comments&p=261
Kubuntu http://www.blog.hemminga.net/index.php/tutorials/?title=kubuntu&more=1&c=1&tb=1&pb=1
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Sun, 21 Sep 2008 17:01:23 +0000 admin Images 254@http://www.blog.hemminga.net/ <p>Seriously thinking of moving over. This is Kubuntu 8.10 Intrepid Ibex alpha 6 in VirtualBox</p> <div class="image_block"><a href="http://www.blog.hemminga.net/media/blogs/tutorials/Kubuntu.png"><img src="http://www.blog.hemminga.net/media/blogs/tutorials/Kubuntu.png" alt="" title="" width="843" height="653" /></a></div> <p>Hardly any disk space left for a dual boot install. Need hardware. <img src="http://www.blog.hemminga.net/rsc/smilies/icon_razz.gif" alt="&#58;&#112;" class="middle" /></p><div class="item_footer"><p><small><a href="http://www.blog.hemminga.net/index.php/tutorials/?title=kubuntu&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div> Seriously thinking of moving over. This is Kubuntu 8.10 Intrepid Ibex alpha 6 in VirtualBox

Hardly any disk space left for a dual boot install. Need hardware. :p

]]>
http://www.blog.hemminga.net/index.php/tutorials/?title=kubuntu&more=1&c=1&tb=1&pb=1#comments http://www.blog.hemminga.net/index.php/tutorials/?tempskin=_rss2&disp=comments&p=254
Greasemonkey http://www.blog.hemminga.net/index.php/tutorials/?title=greasemonkey&more=1&c=1&tb=1&pb=1
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Sun, 10 Aug 2008 22:42:06 +0000 admin Images 247@http://www.blog.hemminga.net/ <p>A long time ago I installed <a href="https://addons.mozilla.org/en-US/firefox/addon/748">Greasemonkey</a> and with the latest upgrade it survived after transition to <a href="http://www.mozilla.com/en-US/firefox/features/">Firefox 3.0</a>. <br /> Greasemonkey allows you to run javaScripts that you created yourself on somebody else's sites. That's the short explanation. Anyway, the script does not need to be included in the source as you might expect from a normal javaScript. You may want to change the background colour or the font size of an arbitrary site you often visit. Those are common uses, together with removal of certain elements most notably adds. You can completely restyle a webpage.<br /> The main site <a href="http://www.greasespot.net/">Greasespot</a> holds a huge collection of scripts. Installing a script is easy. If Greasemonkey is installed you only need to click the link to the Greasemonkey script to trigger an installer. You will see at the end of this post how that goes. Unfortunately I didn't find the <a href="http://en.wikipedia.org/wiki/Killer App" title="Wikipedia (en) - Killer App" class="wikipedia_link">Killer App</a> there. I don't believe there is. So the use of Greasemonkey is in practice limited to things you make cy yourself. Luckily the huge script library is of great help there. You are bound to find a script that does 'almost' what you want.<br /> In the Greasespot site you find a link to the Open Source (downloadable) book <a href="http://diveintogreasemonkey.org/">Dive Into Greasemonkey</a> which is an excellent guide to get started apart from the fact that most of the examples don't run. The book is simply outdated. But worth a glance anyway.</p> <p>For the B2evolution forums I wanted some hacks. One of them is available as Greasemonkey script. That is <a href="http://userscripts.org/scripts/show/2679">phpBB No Stretch</a>. If a post contains a code with a very long line as can be the case with an URL the post itself becomes very wide rather than wrapping rhe long line. The phpBB No Stretch plugin for Greasespot does just that. It wraps the long line.<br /> A very impressive plugin is <a href="http://userscripts.org/scripts/show/21977">IMDB Pirated Version</a> It adds a bar with links to torrents of the particular movie from the page you're at. Have a look at this picture:</p> <div class="image_block"><img src="http://www.blog.hemminga.net/media/blogs/tutorials//IMDB.png" alt="" title="" width="409" height="390" /></div> <p>The line just under the film title is added by the script. If you click it it Ajaxes to the sites it gets its information from. Actually, this is a kind of Killer App.</p><div class="item_footer"><p><small><a href="http://www.blog.hemminga.net/index.php/tutorials/?title=greasemonkey&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div> A long time ago I installed Greasemonkey and with the latest upgrade it survived after transition to Firefox 3.0.
Greasemonkey allows you to run javaScripts that you created yourself on somebody else's sites. That's the short explanation. Anyway, the script does not need to be included in the source as you might expect from a normal javaScript. You may want to change the background colour or the font size of an arbitrary site you often visit. Those are common uses, together with removal of certain elements most notably adds. You can completely restyle a webpage.
The main site Greasespot holds a huge collection of scripts. Installing a script is easy. If Greasemonkey is installed you only need to click the link to the Greasemonkey script to trigger an installer. You will see at the end of this post how that goes. Unfortunately I didn't find the Killer App there. I don't believe there is. So the use of Greasemonkey is in practice limited to things you make cy yourself. Luckily the huge script library is of great help there. You are bound to find a script that does 'almost' what you want.
In the Greasespot site you find a link to the Open Source (downloadable) book Dive Into Greasemonkey which is an excellent guide to get started apart from the fact that most of the examples don't run. The book is simply outdated. But worth a glance anyway.

For the B2evolution forums I wanted some hacks. One of them is available as Greasemonkey script. That is phpBB No Stretch. If a post contains a code with a very long line as can be the case with an URL the post itself becomes very wide rather than wrapping rhe long line. The phpBB No Stretch plugin for Greasespot does just that. It wraps the long line.
A very impressive plugin is IMDB Pirated Version It adds a bar with links to torrents of the particular movie from the page you're at. Have a look at this picture:

The line just under the film title is added by the script. If you click it it Ajaxes to the sites it gets its information from. Actually, this is a kind of Killer App.

]]>
http://www.blog.hemminga.net/index.php/tutorials/?title=greasemonkey&more=1&c=1&tb=1&pb=1#comments http://www.blog.hemminga.net/index.php/tutorials/?tempskin=_rss2&disp=comments&p=247
Manipulating the title with a plugin http://www.blog.hemminga.net/index.php/tutorials/?title=manipulating-the-title-with-a-plugin&more=1&c=1&tb=1&pb=1
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Tue, 25 Mar 2008 09:12:16 +0000 admin Images 205@http://www.blog.hemminga.net/ <p><a href="http://www.tilqi.com">tilqicom</a> came with a problem. He wanted some specific changes to the title of a post automated. At first I got it wrong, thinking that he wanted some text replacement in the body of a post. That's fairly easy, use the RenderItemAsHtml function in a plugin. When I finished that I heard that he specifically wanted to automatically change some text in the title. We are talking about a change like the input '[date]' to 'Tuesday March 24 2008'.</p> <p>That caused some serious problems because I hadn't seen it done before. </p><div class="item_footer"><p><small><a href="http://www.blog.hemminga.net/index.php/tutorials/?title=manipulating-the-title-with-a-plugin&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div> tilqicom came with a problem. He wanted some specific changes to the title of a post automated. At first I got it wrong, thinking that he wanted some text replacement in the body of a post. That's fairly easy, use the RenderItemAsHtml function in a plugin. When I finished that I heard that he specifically wanted to automatically change some text in the title. We are talking about a change like the input '[date]' to 'Tuesday March 24 2008'.

That caused some serious problems because I hadn't seen it done before.

]]>
http://www.blog.hemminga.net/index.php/tutorials/?title=manipulating-the-title-with-a-plugin&more=1&c=1&tb=1&pb=1#comments http://www.blog.hemminga.net/index.php/tutorials/?tempskin=_rss2&disp=comments&p=205
Vista in Ubuntu (VirtualBox) http://www.blog.hemminga.net/index.php/tutorials/?title=title-3&more=1&c=1&tb=1&pb=1
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Wed, 09 Jan 2008 12:31:32 +0000 admin Images 140@http://www.blog.hemminga.net/ <div class="image_block"><img src="http://www.blog.hemminga.net/media/blogs/tutorials//Schermafdruk-Vista-2.png" alt="" title="" width="440" /></div><!-- Creative Commons License NEWSTYLE license:by-sa nation:3.0/nl display:new --><div class="item_footer"><p><small><a href="http://www.blog.hemminga.net/index.php/tutorials/?title=title-3&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div> ]]> http://www.blog.hemminga.net/index.php/tutorials/?title=title-3&more=1&c=1&tb=1&pb=1#comments http://www.blog.hemminga.net/index.php/tutorials/?tempskin=_rss2&disp=comments&p=140
Ubuntu on Acer Aspire 7520 http://www.blog.hemminga.net/index.php/tutorials/?title=ubuntu-on-acer-aspire-7520&more=1&c=1&tb=1&pb=1
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Sat, 15 Dec 2007 17:24:08 +0000 admin Images 132@http://www.blog.hemminga.net/ <p>I will write quick on this page and polish things later. This is supposed to become a HOWTO of installing Ubuntu on my laptop. <a href="http://www.dev.hemminga.net/acer.html">Here</a> is a description of the laptop. The Acer Aspire 4520 seems to have the same or at least similar specifications and problems.<br /> <br /></p> <!-- [adsense:] --> <p><br /><br /> I started with three problems and later on the list grew <img src="http://www.blog.hemminga.net/rsc/smilies/icon_rolleyes.gif" alt="&#58;&#114;&#111;&#108;&#108;&#58;" class="middle" />:</p> <table> <caption>Acer Aspiron 7520-5A2G12Mi</caption> <tr><th>Function</th><th>Status</th><th>Solved</th></tr> <tr><td>Freezes on startup</td><td>Bug</td><td><img src="http://www.blog.hemminga.net/media/blogs/tutorials/circle_ok.gif" alt="goed" title="OK" height="16" width="16" /></td></tr> <tr><td>Low resolution on screen</td><td>Driver setting</td><td><img src="http://www.blog.hemminga.net/media/blogs/tutorials/circle_ok.gif" alt="goed" title="OK" height="16" width="16" /></td></tr> <tr><td>No sound</td><td>Driver setting</td><td><img src="http://www.blog.hemminga.net/media/blogs/tutorials/circle_ok.gif" alt="goed" title="OK" height="16" width="16" /></td></tr> <tr><td>No WIFI</td><td>Driver setting</td><td><img src="http://www.blog.hemminga.net/media/blogs/tutorials/circle_ok.gif" alt="goed" title="goed" height="16" width="16" /></td></tr> <tr><td>No hibernate / sleep</td><td>Bug / driver</td><td><img src="http://www.blog.hemminga.net/rsc/smilies/icon_confused.gif" alt="&#58;&#45;&#47;" class="middle" /></td></tr> <tr><td>Webcam / mic</td><td>Driver setting ??</td><td><img src="http://www.blog.hemminga.net/media/blogs/tutorials/circle_ok.gif" alt="fout" title="fout" height="16" width="16" /></td></tr> <tr><td>Bluetooth</td><td>??</td><td><img src="http://www.blog.hemminga.net/rsc/smilies/icon_question.gif" alt="&#58;&#63;&#58;" class="middle" /></td></tr> <tr><td>Card reader</td><td>??</td><td><img src="http://www.blog.hemminga.net/rsc/smilies/icon_question.gif" alt="&#58;&#63;&#58;" class="middle" /></td></tr> </table> <p>Installing Ubuntu only works in the safe graphics mode or with the alternate CD. This CD is pure text based. Installation itself never gives problems.</p> <!--noteaser--> <p><strong>sound</strong></p> <p>OK, I found a truly remarkable easy solution for the sound. It's just installing Backport in Synaptic. You find the packacge with a search. You install linux-backports-modules and it will find the dependencies. Now restart the computer (mayby logging out is enough) and there is sound.</p> <!--noteaser--> <p><strong>screen</strong></p> <p>Okay, I've got the correct screen resolution, 1440 x 900.<br /> What went OK? After setup, hit the restricted driver setting and allow NVidia. Restart the system. What went wrong? When selecting the screen start with the 'Widescreen' tickbox. I didn't and so the correct screen resolution never came up. This does sound silly but I didn't waste much time on the screen, because I knew that was the least of the problems. And it was.</p> <!--noteaser--> <p><strong>Boot</strong></p> <p>The startup problem is in another stage. This is the <a href="http://ubuntuforums.org/showthread.php?t=632151">post I wrote</a> in the Ubunto forum:</p> <blockquote><p>I somehow got a step further. From the suggested post I recognized at least the splash error so I did:</p> <!-- codeblock lang="" line="1" --><pre><code>sudo nano /etc/usplash.conf</code></pre><!-- /codeblock --> <p>I changed the splash settings from 1280x1024 to 1024x768. The screen is a 17" wide 1440x900. After saving I did</p> <!-- codeblock lang="" line="1" --><pre><code>sudo update-initramfs -u</code></pre><!-- /codeblock --> <p>This should and could solve some problem, but not the startup at boot error. Whereas It first gave notices about splash screen sizes tried and failed, it now reports:</p> <!-- codeblock lang="" line="1" --><pre><code>Check root= bootargs cat /proc/cmdline or missing modules, device: cat /proc/modules ls /dev ALERT! /dev/disk/by-uuid/9c183c8d-2249-4669-974d-dd4deb9c5241 does not exist. Dropping to a shell! Busybox v1.1.3 (Debian 1:1.1.3-5ubuntu7) Built-in shell (ash) Enter 'help' for a list of built-in commands. (initranfs)</code></pre><!-- /codeblock --> <p>I sincerely hope some one can help with this.</p> Tx</blockquote> <p>== UPDATE ==<br /> I tracked it down to this <a href="https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/67256">bugreport</a> as a likely source of the problem. The question now is if there is a solution.</p> <p>== UPDATE ==<br /> from the bugreport I did:</p> <!-- codeblock lang="" line="1" --><pre><code>sudo update-initramfs -u -k 2.6.22-14-generic</code></pre><!-- /codeblock --> <p>If it works or not, I don't know yet. If it does, I'll be surprised. What changed with this line?</p> <p>== UPDATE ==<br /> It is reported to this as well:</p> <!-- codeblock lang="" line="1" --><pre><code>sudo update-initramfs -u -k 2.6.22-14-386</code></pre><!-- /codeblock --> <p>On my laptop it cannot find "/lib/modules/2.6.22-14-386".</p> <p>I will now carefully examine if this can be a temperature related issue.</p> <p>== UPDATE == <br /> I installed Sidux as a reference. It sure was am ye opener. In Sidux I experienced exactly the same problems as in Ubuntu. For the bott issues: their forum aslo reports this and they are focussed on temperature issues. Further reading: <a href="http://sidux.com/PNphpBB2-viewtopic-t-4091.html">Sidux forum</a>. No solution here.</p> <p>== UPDATE ==<br /> I think I founf the solution. I looked at some links in this post and so I accidentally discovered an answer. Tho problem is that at boot the harddisk is not always recognised. The solution is: add all_generic_ide to the startup command at boot. Most easily that is done by editing grub:<br /> <code class="codespan">sudo gedit /boot/grub/menu.lst</code><br /> The line is "kernel" at Ubuntu 7.10, kernel 2.6.22-14-generic. I have high hopes, but time will tell.</p> <!--noteaser--> <p><strong>WIFI</strong></p> <p>For the WIFI I need to do this: <a href="http://madwifi.org/ticket/1679">Ticket #1679 (new enhancement)</a> from Madwifi. There is a solution. That's the good news. Now getting it on my laptop. That's another point. The other solution would be Nsdiwrapper, but I tried that and didn't get it running. Both solutions are reported to work on the same or a similar laptop, so I'll eventually work my way through this problem.</p> <p>== UPDATE ==<br /> I got WIFI working with Madwifi patched with the AR5007EG driver. This patch is only a few days old. It works beautifully. I will take some time to describe what went wrong during installation. it was a nightmare.</p> <p>== UPDATE ==<br /> Here is my version of the HOWTO to install the correct driver:<br /> 1) Disable / remove ndiswrapper<br /> 2) Download: <a href="http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz">http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz</a><br /> This is Madwifi with the driver for AR5007EG patched<br /> 3) Follow this manual: <a href="http://madwifi.org/wiki/UserDocs/FirstTimeHowTo">http://madwifi.org/wiki/UserDocs/FirstTimeHowTo</a><br /> Do not download the packet as suggested there, but use the one I mentioned in 2)<br /> I ran into two issues. First where it says<br /> Code:</p> <p>./madwifi-unload.bash</p> <p>do<br /> Code:</p> <p>./madwifi-unload</p> <p>Second more serious. I couldn't compile and got errors.It turned out (this took me two days) that C++ is not installed.So fire up Synaptic and search for G++. With that package installed it should work fine.</p> <p>One thing to remember. When you installed ndiswrapper you needed to disable madwifi and some components. I think installing again brings them back, but there maybe traces of the removal left in the blacklist. That's located here: /etc/modprobe.d/blacklist<br /> A fresh install of Ubuntu before you start should prevent issues here</p> <p>== UPDATE ==<br /> I found this site: <a href="http://www.ubuntugeek.com/atheros-5007eg-with-madwifi-on-i386-platform.html">http://www.ubuntugeek.com/atheros-5007eg-with-madwifi-on-i386-platform.html</a> that discusses this solution. This code is easier to understand.</p> <!--noteaser--> <p><strong>Acpi</strong></p> <p>The hibernation issue is still under investigayion. I installed acer-acpi. Acpi is the way the computer handles extra buttons, leds and hibernation stuff. Due to compatibility issues, errors occur. For the Acer laptop there is a specific Acpi.<br /> Open system -> ?? -> Synaptic. Go to Settings -> Repositories -> Third Party software and add: "deb <a href="http://www.mumblyworld.info/ubuntu">http://www.mumblyworld.info/ubuntu</a> gutsy main" In the Synapyic main menu (after hitting refresh) you can now search "acer-acpi" and install it.</p> <p>I once used the &lt;Fn&gt; &lt;Zz&gt; option and it went to sleep, but had difficulties to wake up. It did, but the screen was less bright than I was used to. I rebooted.</p> <p>Under investigation.</p> <p>== UPDATE ==<br /> The acer_acpi driver is the best we can do. Acer has a flaw in the acpi. That's the bios talking to the OS and sending signals like WIFI, temperature and extra button actions. The team from acer_acpi does all it can, but it's a black box type situation. They will never get it completely right. Still the driver is a must have. Many things do work and probably even more in the future.</p> <p>==UPDATE==<br /> There is a new version of acer_cpi presented through autoupdate. I noticed no difference though.</p> <!--noteaser--> <p><strong>Webcam</strong></p> <p>The driver dor the webcam is uvcvideo. It is compiled in Ubuntu and recognised with:</p> <!-- codeblock lang="" line="1" --><pre><code>locate uvcvideo</code></pre><!-- /codeblock --><p>.<br /> I use Cheese to test the webcam. No show so far. Latest thing I tried was:</p> <!-- codeblock lang="" line="1" --><pre><code>sudo su modprobe uvcvideo</code></pre><!-- /codeblock --> <p>It has a low priority.</p> <p>== UPDATE==<br /> The webcam is working. I actually did two things, so I cannot tell you which one did the trick.<br /> First I recompiled the uvcvideo drivers again. I did so with the help of <a href="https://help.ubuntu.com/community/UVC?highlight=%28uvcvideo%29">the tutorial on Ubuntu</a>.<br /> I read somewhere that the Acer Crystal Eye only works with a specific protocol, from memory that's MPEG. Knowing this I downloaded a few video playing software programs hoping to catch the correct driver. And I did. I think this is what makes it happen "out of the box" ny many users. First thing they do is playing a video <img src="http://www.blog.hemminga.net/rsc/smilies/icon_wink.gif" alt="&#59;&#41;" class="middle" /><br /> It works. Tested in Cheese. I didn't test the mic.</p><div class="item_footer"><p><small><a href="http://www.blog.hemminga.net/index.php/tutorials/?title=ubuntu-on-acer-aspire-7520&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div> I will write quick on this page and polish things later. This is supposed to become a HOWTO of installing Ubuntu on my laptop. Here is a description of the laptop. The Acer Aspire 4520 seems to have the same or at least similar specifications and problems.



I started with three problems and later on the list grew :roll::

Acer Aspiron 7520-5A2G12Mi
FunctionStatusSolved
Freezes on startupBuggoed
Low resolution on screenDriver settinggoed
No soundDriver settinggoed
No WIFIDriver settinggoed
No hibernate / sleepBug / driver:-/
Webcam / micDriver setting ??fout
Bluetooth??:?:
Card reader??:?:

Installing Ubuntu only works in the safe graphics mode or with the alternate CD. This CD is pure text based. Installation itself never gives problems.

sound

OK, I found a truly remarkable easy solution for the sound. It's just installing Backport in Synaptic. You find the packacge with a search. You install linux-backports-modules and it will find the dependencies. Now restart the computer (mayby logging out is enough) and there is sound.

screen

Okay, I've got the correct screen resolution, 1440 x 900.
What went OK? After setup, hit the restricted driver setting and allow NVidia. Restart the system. What went wrong? When selecting the screen start with the 'Widescreen' tickbox. I didn't and so the correct screen resolution never came up. This does sound silly but I didn't waste much time on the screen, because I knew that was the least of the problems. And it was.

Boot

The startup problem is in another stage. This is the post I wrote in the Ubunto forum:

I somehow got a step further. From the suggested post I recognized at least the splash error so I did:

sudo nano /etc/usplash.conf

I changed the splash settings from 1280x1024 to 1024x768. The screen is a 17" wide 1440x900. After saving I did

sudo update-initramfs -u

This should and could solve some problem, but not the startup at boot error. Whereas It first gave notices about splash screen sizes tried and failed, it now reports:

Check root= bootargs cat /proc/cmdline
or missing modules, device: cat /proc/modules ls /dev
ALERT! /dev/disk/by-uuid/9c183c8d-2249-4669-974d-dd4deb9c5241 does not exist. Dropping to a shell!

Busybox v1.1.3 (Debian 1:1.1.3-5ubuntu7) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initranfs)

I sincerely hope some one can help with this.

Tx

== UPDATE ==
I tracked it down to this bugreport as a likely source of the problem. The question now is if there is a solution.

== UPDATE ==
from the bugreport I did:

sudo update-initramfs -u -k 2.6.22-14-generic

If it works or not, I don't know yet. If it does, I'll be surprised. What changed with this line?

== UPDATE ==
It is reported to this as well:

sudo update-initramfs -u -k 2.6.22-14-386

On my laptop it cannot find "/lib/modules/2.6.22-14-386".

I will now carefully examine if this can be a temperature related issue.

== UPDATE ==
I installed Sidux as a reference. It sure was am ye opener. In Sidux I experienced exactly the same problems as in Ubuntu. For the bott issues: their forum aslo reports this and they are focussed on temperature issues. Further reading: Sidux forum. No solution here.

== UPDATE ==
I think I founf the solution. I looked at some links in this post and so I accidentally discovered an answer. Tho problem is that at boot the harddisk is not always recognised. The solution is: add all_generic_ide to the startup command at boot. Most easily that is done by editing grub:
sudo gedit /boot/grub/menu.lst
The line is "kernel" at Ubuntu 7.10, kernel 2.6.22-14-generic. I have high hopes, but time will tell.

WIFI

For the WIFI I need to do this: Ticket #1679 (new enhancement) from Madwifi. There is a solution. That's the good news. Now getting it on my laptop. That's another point. The other solution would be Nsdiwrapper, but I tried that and didn't get it running. Both solutions are reported to work on the same or a similar laptop, so I'll eventually work my way through this problem.

== UPDATE ==
I got WIFI working with Madwifi patched with the AR5007EG driver. This patch is only a few days old. It works beautifully. I will take some time to describe what went wrong during installation. it was a nightmare.

== UPDATE ==
Here is my version of the HOWTO to install the correct driver:
1) Disable / remove ndiswrapper
2) Download: http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz
This is Madwifi with the driver for AR5007EG patched
3) Follow this manual: http://madwifi.org/wiki/UserDocs/FirstTimeHowTo
Do not download the packet as suggested there, but use the one I mentioned in 2)
I ran into two issues. First where it says
Code:

./madwifi-unload.bash

do
Code:

./madwifi-unload

Second more serious. I couldn't compile and got errors.It turned out (this took me two days) that C++ is not installed.So fire up Synaptic and search for G++. With that package installed it should work fine.

One thing to remember. When you installed ndiswrapper you needed to disable madwifi and some components. I think installing again brings them back, but there maybe traces of the removal left in the blacklist. That's located here: /etc/modprobe.d/blacklist
A fresh install of Ubuntu before you start should prevent issues here

== UPDATE ==
I found this site: http://www.ubuntugeek.com/atheros-5007eg-with-madwifi-on-i386-platform.html that discusses this solution. This code is easier to understand.

Acpi

The hibernation issue is still under investigayion. I installed acer-acpi. Acpi is the way the computer handles extra buttons, leds and hibernation stuff. Due to compatibility issues, errors occur. For the Acer laptop there is a specific Acpi.
Open system -> ?? -> Synaptic. Go to Settings -> Repositories -> Third Party software and add: "deb http://www.mumblyworld.info/ubuntu gutsy main" In the Synapyic main menu (after hitting refresh) you can now search "acer-acpi" and install it.

I once used the <Fn> <Zz> option and it went to sleep, but had difficulties to wake up. It did, but the screen was less bright than I was used to. I rebooted.

Under investigation.

== UPDATE ==
The acer_acpi driver is the best we can do. Acer has a flaw in the acpi. That's the bios talking to the OS and sending signals like WIFI, temperature and extra button actions. The team from acer_acpi does all it can, but it's a black box type situation. They will never get it completely right. Still the driver is a must have. Many things do work and probably even more in the future.

==UPDATE==
There is a new version of acer_cpi presented through autoupdate. I noticed no difference though.

Webcam

The driver dor the webcam is uvcvideo. It is compiled in Ubuntu and recognised with:

locate uvcvideo

.
I use Cheese to test the webcam. No show so far. Latest thing I tried was:

sudo su
modprobe uvcvideo

It has a low priority.

== UPDATE==
The webcam is working. I actually did two things, so I cannot tell you which one did the trick.
First I recompiled the uvcvideo drivers again. I did so with the help of the tutorial on Ubuntu.
I read somewhere that the Acer Crystal Eye only works with a specific protocol, from memory that's MPEG. Knowing this I downloaded a few video playing software programs hoping to catch the correct driver. And I did. I think this is what makes it happen "out of the box" ny many users. First thing they do is playing a video ;)
It works. Tested in Cheese. I didn't test the mic.

]]>
http://www.blog.hemminga.net/index.php/tutorials/?title=ubuntu-on-acer-aspire-7520&more=1&c=1&tb=1&pb=1#comments http://www.blog.hemminga.net/index.php/tutorials/?tempskin=_rss2&disp=comments&p=132
Mosaic image effect in GIMP http://www.blog.hemminga.net/index.php/tutorials/?title=mosaic_image_effect_in_gimp&more=1&c=1&tb=1&pb=1
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Tue, 06 Feb 2007 16:47:29 +0000 admin Images GIMP 72@http://www.blog.hemminga.net/ <p>This is a Gimp adaptation of a technique described for Paint Shop on the site of <a href="http://www.designspice.com/main/tutorials/tut_mosaic_AI.php">Design Spice</a>.</p> <div class="image_block"><img height="369" width="274" title="" alt="Queen of Hearts pixelized" src="http://blog.hemminga.net/media/blogs/tutorials/queenheart4.png" /></div> <div class="image_block"><img height="220" width="314" title="" alt="Formula 1" src="http://blog.hemminga.net/media/blogs/tutorials/f1.png" /></div> <p>To create a nice image effect using GIMP I did the following. 1. To start I had an image of a playing card. Here it's displayed half the original size:</p> <div class="image_block"><img height="369" width="274" title="" alt="Queen of Hearts" src="http://blog.hemminga.net/media/blogs/tutorials/queenheart2.jpg" /></div> <p>For this effect to be succesfull, it's best to start with a large picture; you can always scale it down. Furthermore the picture shouldn't be too detailed. You'll see why if you grasp the idea of this effect. 2. First this picture is blurred through: &lt;Image&gt; -&gt; Filters -&gt; Blur -&gt; Pixelize.</p> <div class="image_block"><img height="156" width="299" title="" alt="Pixeleren" src="http://blog.hemminga.net/media/blogs/tutorials/Pixeleren.png" /></div> <p>I took 15x15 px as a measurement. In the next step we are going to make a pattern, with a circle in it. In Gimp some circles are predefined as pencil stroke: 1x1 through 19x19 (odd numbers only). Actually, we are making a dot with these predefined sizes. In that step you want a 1px white border, so take your Pixelize setting odd also. If possible, take the original measurement of the picture in account as well. This is how the picture looks after Pixelization (picture half size):</p> <div class="image_block"><img height="369" width="274" title="" alt="Queen of Hearts Pixelised" src="http://blog.hemminga.net/media/blogs/tutorials/queenheart3.png" /></div> <p>3. Now we want to make a custom pattern. I addressed the issue of size earlier, but these are the steps.</p> <ul> <li>create a new image size 15 x 15 px. This 15 x 15 px is specific for this image because that is my setting for the pixelization. In your picture you would want this canvas setting to be the same size as the pixelization.</li> <li>Add an alphachannel &lt;Image&gt; -&gt; Layers -&gt; Transparency -&gt; add Alphalayer.</li> </ul> <p>Draw a circle (dot) in black that is 2px smaller as the canvas size:</p> <ul> <li>Set &lt;Main&gt; Pencil -&gt; Circle (13x13)</li> <li>Set the size (view) of your canvas to 800% and draw the dot</li> <li>Now &lt;Image&gt; Select -&gt; Select colour and select the inner circle (black)</li> <li>&lt;Image&gt; Edit -&gt; Remove (&lt;ctrl&gt;+K)</li> </ul> <p>This leaves a white border with a transparent circle, like this one (blown to 800%):</p> <div class="image_block"><img height="285" width="288" title="" alt="Circle" src="http://blog.hemminga.net/media/blogs/tutorials/circle.png" /></div> <p>4. Now save this thing in the map patterns (GIMP_2.0 -&gt; Share -&gt; GIMP -&gt; 2.0 -&gt; Patterns) as 'circle.pat'. It will ask for a pattern name. Choose 'circle 15x15' (don't leave the default 'Gimp pattern').<br /> Nearly done. 5. Go to the image of the playing card. Add an invisilble layer (&lt;Image&gt; Layer -&gt; New layer -&gt; Invisible)</p> <ul> <li>In &lt;Main&gt; choose the Bucket Fill icon. Choose Pattern Fill Coose pattern (your 'circle 15x15').</li> <li>In &lt;Image&gt; Activate -&gt; Layers. Choose the new transparent layer.</li> <li>Do &lt;Image&gt; Edit -&gt; Fill with Pattern (&lt;ctrl&gt;+;) and now you you are ready (picture size reduced to half):</li> </ul> <div class="image_block"><img height="369" width="274" title="" alt="Queen of Hearts pixelized" src="http://blog.hemminga.net/media/blogs/tutorials/queenheart4.png" /></div> <p>6. Well done. You might play around with these effects. Make changes in the pattern, like a new white 7 x 7 dot in the alpha circle like so:</p> <div class="image_block"><img height="285" width="288" title="" alt="Circle fill" src="http://blog.hemminga.net/media/blogs/tutorials/circle_fill.png" /></div> <p>This way the fllowing effect is created:</p> <div class="image_block"><img height="369" width="274" title="" alt="Queen of hearts hollow circle" src="http://blog.hemminga.net/media/blogs/tutorials/queenheart5.jpg" /></div> <p><p>Have fun and let me know if you liked it and if you have any suggestions. <br /><br /> Thanks to all those wonderful sites out there that give me inspiration. &nbsp;</p><!-- Creative Commons License NEWSTYLE license:by-sa nation:3.0/nl display:new -->&nbsp;</p><div class="item_footer"><p><small><a href="http://www.blog.hemminga.net/index.php/tutorials/?title=mosaic_image_effect_in_gimp&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div> This is a Gimp adaptation of a technique described for Paint Shop on the site of Design Spice.

Queen of Hearts pixelized
Formula 1

To create a nice image effect using GIMP I did the following. 1. To start I had an image of a playing card. Here it's displayed half the original size:

Queen of Hearts

For this effect to be succesfull, it's best to start with a large picture; you can always scale it down. Furthermore the picture shouldn't be too detailed. You'll see why if you grasp the idea of this effect. 2. First this picture is blurred through: <Image> -> Filters -> Blur -> Pixelize.

Pixeleren

I took 15x15 px as a measurement. In the next step we are going to make a pattern, with a circle in it. In Gimp some circles are predefined as pencil stroke: 1x1 through 19x19 (odd numbers only). Actually, we are making a dot with these predefined sizes. In that step you want a 1px white border, so take your Pixelize setting odd also. If possible, take the original measurement of the picture in account as well. This is how the picture looks after Pixelization (picture half size):

Queen of Hearts Pixelised

3. Now we want to make a custom pattern. I addressed the issue of size earlier, but these are the steps.

  • create a new image size 15 x 15 px. This 15 x 15 px is specific for this image because that is my setting for the pixelization. In your picture you would want this canvas setting to be the same size as the pixelization.
  • Add an alphachannel <Image> -> Layers -> Transparency -> add Alphalayer.

Draw a circle (dot) in black that is 2px smaller as the canvas size:

  • Set <Main> Pencil -> Circle (13x13)
  • Set the size (view) of your canvas to 800% and draw the dot
  • Now <Image> Select -> Select colour and select the inner circle (black)
  • <Image> Edit -> Remove (<ctrl>+K)

This leaves a white border with a transparent circle, like this one (blown to 800%):

Circle

4. Now save this thing in the map patterns (GIMP_2.0 -> Share -> GIMP -> 2.0 -> Patterns) as 'circle.pat'. It will ask for a pattern name. Choose 'circle 15x15' (don't leave the default 'Gimp pattern').
Nearly done. 5. Go to the image of the playing card. Add an invisilble layer (<Image> Layer -> New layer -> Invisible)

  • In <Main> choose the Bucket Fill icon. Choose Pattern Fill Coose pattern (your 'circle 15x15').
  • In <Image> Activate -> Layers. Choose the new transparent layer.
  • Do <Image> Edit -> Fill with Pattern (<ctrl>+;) and now you you are ready (picture size reduced to half):
Queen of Hearts pixelized

6. Well done. You might play around with these effects. Make changes in the pattern, like a new white 7 x 7 dot in the alpha circle like so:

Circle fill

This way the fllowing effect is created:

Queen of hearts hollow circle

Have fun and let me know if you liked it and if you have any suggestions.

Thanks to all those wonderful sites out there that give me inspiration.  

 

]]>
http://www.blog.hemminga.net/index.php/tutorials/?title=mosaic_image_effect_in_gimp&more=1&c=1&tb=1&pb=1#comments http://www.blog.hemminga.net/index.php/tutorials/?tempskin=_rss2&disp=comments&p=72

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/sessions/model/_hitlist.class.php on line 127