Skip navigation.

Posts tagged with "opera"

Exporting Opera mail and importing into Apple Mail

, ,

This quick post explains how I managed to make Opera export some e-mail messages to .mbs file, and then import it into Apple Mail.

Read more...

Playing Flash videos in Opera under Gentoo Linux

, , ,

This post is actually an adaptation of a bug report I submitted to Opera Software, based on my own experience and on what I learnt from Gentoo Bug 127200 (netscape-flash misbehaves in Opera). I think this information is too valuable to be hidden at internal Opera Software bug tracker and at Gentoo bugzilla.

The issue: Flash videos are not played.

I can try YouTube, Google Videos or any other site. It does not work.

My system:

  • Gentoo Linux x86
  • Opera 9.x
  • Flash Player plugin 9.0.x.x

Why this happens:

Depending on where the libflashplayer.so is installed (or, if more than one is installed, which one is "default"), then the video won't be played.

The gory details about why this happens are described at Gentoo bug 127200 (netscape-flash misbehaves in Opera).

In summary, from what I could understand:
  • If libflashplayer.so detects "netscape" in its own pathname, then videos won't be played (at least not in Opera). I guess it enters in some crazy compatibility mode with Netscape browser (R.I.P.)
  • Gentoo installs libflashplayer.so at /opt/netscape/plugins/, and installs a symlink at /usr/lib/nsbrowser/plugins/.
  • Gentoo Opera ebuild makes a symlink /opt/opera/lib/opera/plugins/libflashplayer.so -> /opt/netscape/plugins/libflashplayer.so.
  • Gentoo Opera ebuild sets "/opt/netscape/plugins=2" at /opt/opera/share/opera/ini/pluginpath.ini, but I guess this file might be ignored.
  • Some Opera users (like me) might have opera6.ini selecting /opt/netscape/plugins/libflashplayer.so as Flash Player plugin. For these users, flash videos won't be played.
  • New Opera users (with a brand-new empty profile directory) will get the correct paths since the first time, and Flash videos will work for them.
This combination of factors might be too specific, but happens. I guess other people on world might have the same issue, and these people are very unlikely to find out its cause nor how to fix it. They will just think: "flash videos don't work inside Opera" (like I did think for many months, maybe a year or more).

The solutions:

The solution consists in telling Opera to not use /opt/netscape/plugins/libflashplayer.so. This can be done in three ways:

Solution 1: Preferences -> Advanced -> Downloads ->
application/x-shockwave-flash swf -> Edit... -> Select the correct plugin at
"Use plug-in" drop-down (if more than one is displayed, select any one that does not contain "netscape" in path). Repeat this for application/futuresplash spl file
type. There is no need to restart Opera after this change.

Solution 2: Manually edit ~/.opera/opera6.ini while Opera is closed and change the paths.

Solution 3: Add "/opt/netscape/plugins=2" to ~/.opera/pluginpath.ini.

Suggestion to Opera Software:

Opera Software can workaround this. The Opera launcher script should check if the /opt/netscape/plugins/libflashplayer.so path (or the /netscape.*libflashplayer.so/ regex) is present in ~/.opera/opera6.ini. If it is present, then warn the user that this is known to not work (a simple message printed to terminal will be helpful enough).

Suggestion to Macromedia/Adobe:

I think Flash technology is great, is powerful, is easy and fun to use.

But I think Flash sucks. Flash player is limited to Windows platform plus some few buggy and slow (or slower than windows) implementations on other platforms. The Flash format should be open, and anyone should be able to write a compatible flash player without need for reverse engineering. This would also allow anyone to fix bugs like this one.

Adobe site also sucks.

Suggestion to webmasters:

Avoid using Flash without a really good reason. Don't make Flash-based sites, they are slow and sometimes buggy. Don't use Flash for things that can be done without it (menus, for example). Don't use transparent Flash objects over other objects, because many times this is not supported by browser.

I was thinking about writing above paragraph in bold font with a big font size, but even that way it won't reach the right people. If you are still in doubt, also see Web Pages That Suck.

Am I saying any Flash is bad? No. Flash videos are the latest "revolution" in web pages, as well as AJAX. Flash player allowed us to watch videos without downloading hundreds of codecs and plugins (RealPlayer plugin, Quicktime plugin, codecs, more codecs, yet another video plugin...). This is great, but don't abuse (or misuse) Flash.

Updates/trackbacks(section added on 2007-12-30)

Supposedly, this blog should automatically detect and list trackbacks, linkbacks and things like that. Well, in case it does not work well, I will post here or in comments whatever I find.

2007-12-30 It was a happy surprise to find a YouTube video showing the user applying this solution and linking back to this post. I'm glad to find it is being useful for other people. YouTube works in Opera (Linux). Honest. (looks like the video was published on 2007-09-16, but I found it only today, 2007-12-30)

Poor interface design

, , , ...

I'm not (yet) a Java developer. In fact, I hate Java. But I started to learn J2ME, to be able to write programs for cell phones (now I have a phone that has good J2ME support, big memory, somewhat fast processor...). So, I installed NetBeans 5.5 and the NetBeans Mobility kit. Some people prefer Eclipse, some prefer NetBeans. Since I never really used any of them, I tried NetBeans.

Problem 1: I can't type quotes inside any Java application. No joking, under GNU/Linux, the Sun Java virtual machine seems to have problems with deadkeys, and I have US-International keyboard.
Solution 1: Open another program and copy/paste the quote character.
Solution 2: Write a macro inside NetBeans so I can type a combination and it enters a quote.
Solution 3: Press AltGr+quote. This works anywhere inside X.

Being a Vim addicted user, I usually typed Ctrl+N and Ctrl+P inside NetBeans... (If you don't know what those keys do, open Vim and type :help i_^N)

But today I accidentally found two shortcuts that do exactly what Ctrl+N and Ctrl+P do inside Vim! They are Ctrl+L and Ctrl+K. Of course, I wanted to remap these two actions to the same keys as in Vim. Then I found one of the most scaring dialogs:

The NetBeans keymap window

Before showing how it is, let's see how Opera Software designed that dialog in Opera browser for desktop.



Oh, how neatly arranged and organized. It has two columns, one for the keyboard shortcut and another for the action. It also has a quick-find field, an invaluable feature when the program has more than just a few actions and shortcuts. And this dialog is also used for editing mouse gestures. Very neat, well-thought, well-designed and easy-to-use.

Now beware! The NetBeans keymap window is coming! Don't say I haven't warned you!



All actions are available at this dialog, and they are divided into 16 categories:



The keyboard shortcut is just a string between square brackets concatenated to action name. There are no columns. There is no font change, no color change, no bold, no spacing... Nothing that you can easily spot.

Well, I discovered the Ctrl+L shortcut and wanted to change it, but I have no idea on what is the action it calls. I would seach... but there is no search field, and I won't waste my time looking at all actions, one-by-one.


Enough bad design for now. And if someone knows what are the actions of Ctrl+L and Ctrl+K, please tell me.


P.S.: Dear Firefox users, I'm so sorry about you. Your browser does not even have a shortcut editor. I know, you can search until you find an extension that adds that feature. And hope that extension works. Until then, you need to live with backspace not going back to previous page...

Opera 9 - bad things...

Every new major Opera version is the same thing: Opera breaks some expected or well-accepted behavior, and require us to either get used to it (until next major version, of course) or fiddle with different files to get back the old behavior.

Hidden items at frame submenu
See this forum post. In summary, frame submenu (from a right-click at document) does not have anymore "Save frame" option. No, we can't just open the frame at a new tab and save it there. Sometimes it does not work (javascript detecting frames, or some form-post page), beyond it is an extra work that was not needed before.

This change was done in Opera 8, "when Opera devs became crazy and removed tons of features" (like I've said at that post).

Well, at least those menu items are still available, but commented at standard_menu.ini. So, we can edit that file (or create a new menu set) and uncomment those entries. PLEASE OPERA DEVELOPERS, DON'T DELETE THOSE LINES! KEEP THEM COMMENTED BUT DON'T DELETE THOSE LINES. Leave them commented, to allow people still know what to uncomment to unhide those features. Or, even better, add those features back.

No more "Identify as ..." items at Quick Preferences (F12) menu
Oh, this was good... This was very useful... But now it is gone... In place of "Identify as ...", we need to use "Edit site preferences", which will store the settings.

But if we need quick-switching? Well... Then do not uncomment those lines, because numbers 1, 2 and 3 are understood the same way by Opera (identify as mozilla). So, instead, add this line:
Include, Identify As Menu

Big mail header toolbar
Ouch! I could not believe when I've opened my mail at Opera 9. The old, small, nice mail headers are gone! Now there is an "improved" mail header toolbar.

Now, addresses in mail header are really contact buttons. You can add them to contacts, or edit the preferences from there. Intuitive? Not so. I still think the most intuitive way would be just drag the contact (or the message) from message list to contacts panel.

If the subject is too large, then the date will be displayed below the subject, but with NOTHING at right of it, wasting a whole line of available space. A whole line that could have another fields displayed.

The same thing happens on IRC header toolbar, when room's topic is too large. This is an issue with how toolbar widgets are handled.

And what will happen I receive a message with a very big "To" or "Cc" field (with dozens of addresses there)? Very common when someone else tries to send a message to everyone in his list. Then, fortunately Opera will display a scrollbar for that field. Unfortunately, Opera becomes very slow. Unfortunately too, that interface is not easy to use. To find an address in that list, it is better to switch back to Opera 8 mail headers or right-click and select "View all headers and message.

Finally, but most important of all, the old Opera 8 interface did scroll with message body, while this new Opera 9 does not. This means we now have a very small useful area to read the message. This remembers OutLook Express 5 (or 4). It has this behavior (headers are fixed on screen, do not scroll). Oh, how I hate this behavior...

I've submitted this last issue as bug-219999: New Opera 9 mail header toolbar wastes too much screen space.

shoust told me about opera:config#UserPrefs|ShowMailHeaderToolbar. This way, we can disable that toolbar, but it will not re-enable automatically the old interface. To do that, we must mess with mime.css file (which supposedly has some comments about how to restore the old interface, but I did not found any).

Annoying system tray icon
Now Opera has a system tray icon. Nice. It also does have a little mail icon on top of Opera's icon, probably indicating new messages (like that little exclamation point at mail panel icon). For our deception, it does not (inconsistent interface!). It appears to display the existence of unread message. Hey, I have tons of unread messages I won't read, so then I can't get rid of that mail notification at my system tray!

Since I can't get rid of mail icon, I want to get rid of the entire opera icon at system tray. Let's try it! Let's look for an option to disableit at preferences dialog. Found it? No. Let's try to find an option at some menu. Found it? No. Let's try again, looking more carefully. Found it? No. Finally, let's try opera:config. It must have an option to disable it. Found it? NO!!!

People at #Opera told me to use -notrayicon parameter when launching Opera. Though this works, this is not a good solution, because this means I need to change all my Opera shortcuts, which includes one at wmappl, plus two at fluxbox menu, plus all other shortcuts at other window managers. But what happens when Opera is launched by another application? Of course, it will not have that parameter, and it will display the f... the fine icon.

I've submitted this issue as bug-220000: There is no option to disable system tray icon.

Yellow tooltips, but white thumbnail tooltips?
Over your mouse on a mail tab. What happens? The tooltip is displayed with yellow background. Now over your mouse on a page tab. What happens? The tooltip has a white background. (inconsistent interface again!)

Create search with empty keyword
A nice new feature is the ability to create a search from any form. This is very useful. However, if you forget to fill the "keyword" field at "Search engine" dialog, Opera will not warn you. Why is this a problem? Go to Preferences -> Search and try to find your search engine there. You simply is not able to find a search engine without a keyword (well, maybe you can, messing with search.ini).

Closing panel also closes panel buttons
One thing I love to do is leaving the panel buttons always displayed. It allows me to access any one of them very fast. Unfortunately, at the new Opera 9 default toolbar, when closing a panel (using that close button), the panel buttons (AKA panel selector) will also be closed.

Though some people may like it, I find this very inconvenient. Fortunately for me, my toolbar set keeps the old behavior.

No semi-transparent widgets on Linux
I know it is a little difficult to implement without X Composite extension, but currently Opera 9 does not support semi-transparent widgets on Linux platform. This leads to very ugly widgets border. Anyway, this is not as important as other issues listed here.
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31