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.
]]>///]]>/// 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 ; }
Hardly any disk space left for a dual boot install. Need hardware. ![]()
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.
]]>That caused some serious problems because I hadn't seen it done before.
]]>
]]>
I started with three problems and later on the list grew
:
| Function | Status | Solved |
|---|---|---|
| Freezes on startup | Bug | |
| Low resolution on screen | Driver setting | |
| No sound | Driver setting | |
| No WIFI | Driver setting | |
| No hibernate / sleep | Bug / driver | |
| Webcam / mic | Driver setting ?? | |
| 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.confI changed the splash settings from 1280x1024 to 1024x768. The screen is a 17" wide 1440x900. After saving I did
sudo update-initramfs -uThis 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.


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:

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.
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):

3. Now we want to make a custom pattern. I addressed the issue of size earlier, but these are the steps.
Draw a circle (dot) in black that is 2px smaller as the canvas size:
This leaves a white border with a transparent circle, like this one (blown to 800%):

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)

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:

This way the fllowing effect is created:

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.