Archive for the ‘English’ Category

Enable and fix Lectora titles for the Opera browser

Friday, June 17th, 2011

Problem: If you publish a title with Lectora, and try to view it from Opera, instead of the title you see an error message

Your browser does not support dynamic html. Please download a current version of either Microsoft'" DESIGNTIMESP=18189>Microsoft Internet Explorer or Mozilla'" DESIGNTIMESP=18192>Mozilla Firefox and try visiting our site again. Thank You.

Solution: You have to modify trivantis.js in line 353 and line 355. The modifications are displayed in bold

this.ns = (name=="ns" && this.v>=4)||(navigator.userAgent.indexOf("Opera")!=-1)
this.ns4 = (this.ns && this.v==4)
this.ns5 = (this.ns && this.v==5)||(navigator.userAgent.indexOf("Opera")!=-1)

IMPORTANT: WordPress fucks up the quotation marks above, fix them by hand!!!

This tells Lectora's code to treat Opera like Netscape Navigator and its derivates. For the title we are developing for the WHO (ICF eLearning tool) it works flawlessly.

This fix is taken from this Lectora forum message, posted by ssneg.

(ssneg also explains why it is not possible to override this.min and set it to true – because Lectora only includes code for IE or NS to display the title contents, like buttons, later on. Thus we need for Opera to "pretend" that it is Navigator. The code works.)

Do you know any other browsers incompatible with Lectora? Please post a comment, and we might find a solution :-)!

 

spam fighting by automation …

Friday, June 10th, 2011

regexes are your friend. That, and mass page delete scripts for Media Wiki.

  • I copied the list of recent changes from MediaWiki
  • Pasted it into Notepad++
  • Did some regex-assisted search and replace to remove leading and trailing text surrounding newly created pages
  • Blanked all the lines not concerning newly created pages (again with regexes ^[^N].*$ => select the whole line which does not start with N)
  • removed all blank lines using Notepad++'s TextFX
  • removed N! before the page titles, using regex
  • scanned the list for pages I want to keep and removed them
  • copied it
  • pasted it into the mass delete form

That seems like a mighty complicated way to do it – but: like this, it is guaranteed that every undesired page has been killed, and it's more fun than stupidely clicking a lot of times and waiting for the browser.

Best of all – this way can be automated to give you a list of newly created pages. (Actually there is an extension called DPL which does precisely that, but DPL seems to have some security issues in the initial setup, thus I am still refraining from installing it).

Microsoft Security essentials and Microsoft safety scanner

Sunday, May 29th, 2011

Microsoft has just released a new "safety scanner", which anyone can download without restriction, to remove viruses, spyware and other malicious software. Security essentials on the other hand is only available for users of genuine Windows systems, and only free for home users and businesses with up to ten PCs.

But they both scan for viruses and spyware. What should I use?

If you already have Security Essentials you don't need the Safety Scanner. If you can't get Security Essentials, use the Safety Scanner.

This article has a very good overview of all Microsoft Anti-Malware Software:

http://securitygarden.blogspot.com/2011/04/understanding-microsoft-anti-malware.html

Don't touch these rocks

Sunday, May 29th, 2011

http://www.collectspace.com/news/news-052511a.html

A woman tried to sell a "moon rock" for 1.7 Million US-$. The "buyer" was a NASA agent, working to bust fake sellers, and retrieve back original moon material which had been lost.

The article goes on to give other examples of the group's work, and closes with a warning, that moon rocks are government property and people found in possession of samples could be prosecuted for theft.

An eulogy for physical media

Saturday, May 28th, 2011

http://dvice.com/archives/2006/12/shift_a_eulogy_for_physical_me.php

2011: Not there yet … but getting closer :-)

Being against something

Monday, May 23rd, 2011

Being against something is easy, voicing your opinion to your friends, neighbours, and any interested soul you come across.

"My boss is a pain in the **"

"Nuclear power plants are bad"

"Carbon dioxide is bad, people should fly less"

"Save the planet, stop wasting …"

"These companies are bad, soulless …"

"We are destroying the planet"

Sound familiar? Well, eventually you may even pluck up the courage to protest. In some cases, this is a viable solution. Think of Mahatma Gandhi and India. In other cases it may actually do damage – or have no effect whatsoever.

The main point is, why are these things the way they are? Your boss is a boss because maybe he likes bossing people around, making them feel inferior, thereby feeling a sense of power and superiority. In order to compensate his own feeling of inferiority, probably.

As they say, you can't teach an old dog new tricks. But a dog which bites ought to be shot (really?) – meaning, break off your relationship with this abusing person, and change something for you personally. Bring real change into the world. Let these "problems" become inspirational for you, to create fresh ideas.

What the world really needs is not another group of "protesters" against the big bad business companies, but fresh ideas and new companies doing things differently. Creating solutions which are green and cost less. It is a no-brainer then, which solution will be used.

Stop wasting your energy in uselessly complaining the way things are. Either change them, or accept them. It actually is a matter of perspective, not "facts", what values you hold.

Privoxy rules to unblock Concrete 5 editing

Friday, May 20th, 2011

In Concrete 5, TinyMCE is used as an editor for Content blocks. If you have Privoxy installed with the default settings, crucial parts of this editor will be blocked, and you would be unable to edit the Content block properly. (no editor appears, you see a small box with the HTML instead).

You can verify that it's indeed Privoxy which is doing it, by checking the Network tab of Dragonfly or Firebug in Opera or FireFox, Privoxy will add a status message to files which have been blocked.

To fix this problem, edit your user.action file (located in the application's toplevel directory), and add a new line under the { fragile } section:

{ fragile }
#.forbes.com
/concrete/js/tiny_mce/plugins/.*
/updates/concrete.*

This should unblock all Concrete 5 – based sites.

Update (23.10.2011): The fix now works with updated Concrete 5 sites.

Lectora crash

Sunday, May 15th, 2011

Problem:

Lectora crashes, if it has to open on a too narrow monitor. (For example, if you tilt your notebook-screen 90° and put it next to a 22" main monitor, as I have done in my setup)

Solution:

If you start Lectora by double-clicking on an .awt file from Explorer, ensure that your Explorer window is on the big screen. That's where Lectora will start, too.

Alternatively just open Lectora without a file, drag it's application window to the big screen, and then open your .awt using Lectora's open menu.

This error occurs in v.9.23, I don't know about other versions.

Because beer is heavy

Thursday, May 12th, 2011

1242808042202

Sarif Industries

Thursday, May 5th, 2011