RSS

Category Archives: Tips

Use Kompozer to create your posts for WordPress

Use Kompozer to create your posts for WordPress

Kompozer is a nice and free (wysiwyg) HTML editor.
We can create our posts with it rather than with Worpress’ web interface.

Why ?

Because WordPress’ visual post editor has several weaknesses:

  • It is slow.
    Much slower than a HTML editor as Kompozer.
  • Semantically, it is catastrophic.
    For example, you can not set a paragraph as a Title, with a defined hierarchy level.
    So when the indexers as Google, Bing or Yahoo try to analyse your post, they will have great difficulties to know where is a title, what is your text about, what is important or not, etc..
    So your post could obtain a bad rank and could stay unknown to your potential readers.
  • I personally had difficulties with the text formatting, which sometimes insert line breaks or line feeds when it thinks it’s necessary but I don’t think !
    I want to control my post, and I don’t want to reformat it by hand each time Worpress’ editor takes strange decisions.

How ?

Needed tools

We need:

  • The visual HTML text editor:
    Kompozer
  • An advanced pure text editor:
    Notepad++, for example.

Procedure

Since Worpress has some limitations (no CSS for example) and some bugs (we will see one of them), you have to do the things in the right order.

Typically:

  1. Upload your images and other media to WordPress.
  2. Create a HTML page with Kompozer.
    Attention: do not use Styles (internal or external by CSS), unless you have a corresponding paid account on WordPress.
  3. In Kompozer, you can insert images, using the address of your media already uploaded to WordPress.
    Do not use your pictures directly from your hard-disk, as they would not appear later, on WordPress.
    You need to use the link of your media on WordPress (see in your media library page).
  4. In Kompozer, display the Source code tab.
  5. Copy the body of your text.
    That means you select all the text between <body ….> and </body>, and you copy it.
  6. Workaround a bug (*) of WordPress:
    1. Paste your text in an advanced text editor.
      We need an editor which can replace line feeds.
      I personally uses Notepad++.
    2. Replace each line feed by one space.
      In Notepad++, open the “Replace” dialog (Ctrl-H), select “Advanced mode (\n, \r….)“, then enter “\r\n” as the text to search and only one space (” “) as the replacement text, then click on “Replace all“.
    3. Copy the whole text.
  7. In WordPress, create a new post.
  8. Open the HTML tab (find it on the right of the page).
  9. Paste your text.
    Attention: never click on the Visual tab, as it would modify your text formatting !
  10. Save your post and preview it.
  11. When you are satisfied, publish it.

(*) The workaround is due to a bug in WordPress, which replaces all line feeds in the HTML source text by a real HTML line feed (<br/>). It is a violation of the HTML rendering rules and causes a bad formatting of the post.

Conclusion

This method should allow you to work a more productive way, and ensure you manage the appearance (and the internals) of your posts.

It is not always so practical, in particular when you have to make small corrections in your text.
It would be so nice if WordPress’ visual editor is (much) more advanced. But for now I see no easy solution.
So.. enjoy this one.   🙂

Advertisements
 
3 Comments

Posted by on 2012-05-17 in Tips

 

Tags: , , , ,

Install the VirtualBox’ Guest Additions in Windows 8 Consumer Preview, and avoid the black screen

I had no problem to install the Windows 8 Consumer Preview under VirtualBox 4.1.10 until I tried to install the Guest Additions of VirtualBox. Unfortunately I needed them to share files.
The problem lies in the video adapter driver: during the installation of the Additions, and after a system reboot, a horrible black screen appears.

The solution

With this solution, the Additions work, except the video driver (we have to disable it).
But you can share files, at least.

First step: Activate the safe boot menu entry

As many know, Windows 8 doesn’t show this menu entry by default, even with F8. Fortunately, there is a procedure to activate it.
The safe boot mode is compulsary here, so before reading the following procedure, please follow the instructions on that site:
http://www.addictivetips.com/windows-tips/how-to-enable-windows-8-safe-mode/

Second step: Install the Additions

(I’ve done the procedure on a French installation, so I had to translate the texts here, they can be slightly different on an Engligh installation)

  1. Ensure the configuration of your virtual computer uses the 3D acceleration and uses 128 MB video RAM.
    I’m not sure these two settings are necessary, but the procedure works with them.

  2. Run your virtual computer and Windows 8 in normal (not safe) mode, then open an administrator session.

  3. Start the installation of the Guest Additions of VirtualBox.
    You can notice the installation of the experimental Direct3D driver cannot be unchecked.

  4. When Windows asks you, for the first time, if you want to install an Oracle driver, tickAlway trust the drivers from Oracle” (or something similar to that text).

  5. The installation goes on until the screen goes black.
    From here, wait a few minutes (maybe two) to let the installer enough time to conclude its job, because it is not frozen, even if we cannot see it working.

Third step: disable the VirtualBox’ video driver

  1. Now reboot the virtual computer by force.

  2. Start Windows 8 in safe boot mode.
    The first time, Windows reboot one more time, it’s ok.

  3. In safe mode, open an administrator session.

  4. Open the hardware settings panel:
    Windows+R and the name
    DEVMGMT.MSC

  5. In the Video adapter section, right-click on this video driver: “VirtualBox Graphics Adapter (Microsoft Corporation – WDDM)“,
    and click on Update driver.

  6. On the next panel, select Find a driver on my computer.

  7. On the next panel, select Find in a list of peripheral drivers on my computer.
    The description says those drivers are compatible with our hardware.

  8. A list with two drivers appears,
    the normal driver “Microsoft Basic video adapter”,
    and the driver “VirtualBox Graphics Adapter (Microsoft Corporation – WDDM)“.
    Select the first driver (the basic driver) and validate.

  9. Reboot Windows 8 in normal mode.
    It should start normally, as it was before the installation of the Additions.

But now you enjoy the Additions (except in the video field), notably the file sharing.

I hope it will work for you as fine as it did for me.   🙂

Sorry for my poor English-talking.  😉
I thought this doc could be useful.

 
6 Comments

Posted by on 2012-03-29 in Tips

 

Tags: , , , ,