Opera directory at "/usr/lib" is missing

495

Open up a terminal (Ctrl+Alt+T)

Enter this command:

sudo apt-get install pepperflashplugin-nonfree

Restart Opera.

Share:
495

Related videos on Youtube

Sanju
Author by

Sanju

Updated on September 18, 2022

Comments

  • Sanju
    Sanju over 1 year

    I'm creating an ionic refresher. I have a component which performs multiple get requests. Each of them is in its own method. What i'm trying to implement is, I want to execute event.target.complete() after all subscriptions are done. Below is what I tried to do:

    private _dataFromOne;
    private _dataFromTwo;
    
    ngOnInIt() {
        this.getAllData();
    }
    
    /*This method will be called from HTML as well with $event*/
    private getAllData(event = null) {
        if ($event) {
              // So if it was only one method, then this would work
            this.methodOne().add(() => {
                event.target.complete()  // teardown logic. End when _subOne is unsubscribed
            });
            // This is where I'm confused. How do I do it when subscription from both method is unsubscribed?
            // this.methodTwo();
        } else {
            this.methodOne();
            this.methodTwo();
        }
    }
    
    private methodOne() {
        return this.doGetRequest.get().subscribe((data) => {
            this._dataFromOne = data;
        });
    }
    
    private methodTwo() {
        return this.doSomeGetRequest.get().subscribe((data) => {
            this._dataFromTwo = data;
        });
    }
    

    Any help in pointing me in the right direction would be appreciated. Thank you.

    • Merri
      Merri over 9 years
      The Opera documentation is for older versions of Opera that are based on the Presto engine. Newer versions use the Blink engine. Webupd8 have a tutorial for enabling the Pepper Flash plugin in Opera, it's for version 26 but should also work for the version 27 you have installed. webupd8.org/2014/12/how-to-get-flash-and-h264-to-work-in.htm‌​l
    • martin
      martin over 4 years
      First of all you shouldn't subscribe directly in methods methodOne() and methodTwo(). You can share the returned Observable for example.
    • Sanju
      Sanju over 4 years
      I'm not subscribing to it. I'm just adding a teardown to be called after subscription is unsubscribed.
    • Peter David Carter
      Peter David Carter over 4 years
      Where are you getting the .add method on your methodOne function from?
    • Sanju
      Sanju over 4 years
      @PeterDavidCarter I'm returning Subscription (not Observable) from method. That contains .add() method. see: rxjs-dev.firebaseapp.com/api/index/class/…
  • It's Willem
    It's Willem almost 9 years
    Is there an equivalent for 12.04??