The Linux Page

update

Removing the fold columns on the left gvim after using diffsplit

One thing that I find annoying in gvim is the foldcolumn parameter which is not reset once you are done with a diff process.

Of course, gVIM does not really know when you are done diff-ing, so its behavior makes sense... only it is still annoying.

To remove the fold (2 gray columns on the left used to hide areas that match in each file) you simply have to set the foldcolumn parameter to zero:

:set foldcolumn=0

Just in case, you enter a diff from within vim by loading two files, then using;

:diffsplit #

The diffsplit can specify any buffer number, I use the # as the other buffer (the ...

tripwire while updating the policy settings: Error: Policy Update Changed Object.

As I was trying to remove some annoying entries in my Tripwire policy, I started getting errors. The first time I did not pay close attention, but the next day the policy had not changed! So I looked at it closer and noticed that if a file changed since the last update, then tripwire refuses to update the policy. That is, if the secure mode is set to high.

So to update my tripwire policy I was running:

sudo tripwire -m p -p /etc/tripwire/tw.pol --secure-mode low /etc/tripwire/twpol.txt

which now (at least since 13.04, maybe in 12.10?) means the secure mode is left alone and is marked as ...

Getting Ubuntu to playback DVDs

In order to playback a DVD you need to make use of commercial encryptions (also called codecs.) Actually Ubuntu calls them "non-free". The reality is these are patented and protected so people cannot just ripoff a DVD. Which is not true at all since pretty much any computer can play DVDs and thus can copy all the data. Anyway, because Ubuntu is by default for free software, it doesn't include all the necessary DVD stuff. This being said, they provide 100% of all the necessary code, pre-compiled and all you have to do is install it all with apt-get as follow.

(You must be root to ...

WordPress user "nicename" and spaces

Today I noticed that I had quite a few 404 errors on one of my websites. That one uses Wordpress that I got from someone else. Because I wanted to include a blog, I had to change the login name and Wordpress does not allow you to do that by default.

So to change the login and password, I directly edited the database makeing user 1 me, essentially.

I replaced the user_login and user_nicename with my own name. This worked just fine. At least at first it looked like everything was working right. Then I noticed that the author link had my name in it. The one with the space. Something like ...

1 New MS-Windows Installation Update for a whole week?

For a week now I have had a warning when shutting down saying that there was yet another update to install on shutdown...

I did not really check on it for that long, but today I decided to check the auto-update as I was running the computer. There was the installation ready to be run. So I clicked on the button to start the installation.

After a moment, the installation process stopped with a really weird error:

Error message: Code 13EC, it's an unknown error.

It's funny that any programmer would create an error that the computer cannot figure out... Way beyond me.

This being ...

Multi-level lists in MS-Word... The new way!?

Okay, it has been a little while now, but each time I just have to search forever to find out how to create a multi-level numbering list.

By default, a list will appear as this:

1. Chapter

    1. Section

        1. Sub-Section

Which may work for you, but in many cases you want to have all the list numbers appearing in your section and sub-sections as in:

1. Chapter

    1.1 Section

        1.1.1 Sub-Section

Okay, so that in itself it actually very easy, but it used to be that you could ...

MS-Access: Application-defined or object defined error

Today I got this weird error: Application-defined or object defined error.

Looking into it, I could not find the right answer.

The failing code was in a sub-form and when called it generated the error immediately. The code I wrote was:

Parent.NewSelection

And of course, in the parent I had the NewSelection function defined:

Private Sub NewSelection
    DoSomething
End Sub

The DoSomething would update a button as required...

For real MS-Access pros, you may already have noticed what the problem was. What's really annoying is that the error we get is not capable of telling ...

Updating your Drupal website from FCKeditor to CKEditor

As FCKeditor becomes old and the new CKEditor is started to get there, I'm updating more and more websites to make use of the newer version of CKEditor. This requires a few steps to make sure you don't lose the previous functionality.

Permissions

The update does not transfer the FCKeditor permissions to the CKEditor. This is because by the time you install the new CKEditor, the FCKeditor should already be uninstalled. In other words, those permissions are gone already. Plus, the scheme is slightly different in the new editor.

Roles

The list of roles who are assigned one ...

local delete, incoming edit upon update

Today I tried to move an SVN folder to another.

In my first attempt, I tried to copy the folder to a sub-folder that was not in SVN. The result is that the move failed, but nothing seemed to change in the SVN environment.

So I tried again, this time making sure that the destination folder would be an SVN folder.

The second time, however, it failed. The move instruction reported a conflict... Then the svn commit would not work. The SVN system was thinking that I changed something with the first svn mv as the failure did not clear the conflict.

svn mv a tmp/a-1.x        # fails saying tmp/ ...

Error: this.table.tBodies is undefined

Today I got this error which surprised me for a little while. I was pretty sure I had it before, but could not find a reference, so I decided to put it here for sure this time!

Error: this.table.tBodies is undefined
Source File: http://linux.m2osw.com/sites/all/modules/jquery_update/replace/tabledrag...
Line: 516

Whenever I create a table in Drupal and the elements can be sorted, I like to use the drupal_add_tabledrag() feature. This function first parameter is the name of the table to drag. I was totally sure I had it right but it just kept giving me that error, over and over again

Syndicate content Syndicate content

SMS From Me Logo

SMS From Me

To automatically start one on one conversations with your online leads.

     

Terms of Site Index

Find the page/content you are looking for with our index.