Skip to content

phpstorm linux - java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-7-openjdk/jre/lib/amd64/libsplashscreen.so: libgif.so.6: cannot open shared object file: No such file or directory

Just got the following exception thrown while i updated/installed phpstorm on a fresh installed arch linux.

java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-7-openjdk/jre/lib/amd64/libsplashscreen.so: libgif.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:121)
at com.intellij.idea.IdeaApplication$IdeStarter.a(IdeaApplication.java:218)
at com.intellij.idea.IdeaApplication$IdeStarter.a(IdeaApplication.java:195)
at com.intellij.idea.IdeaApplication$IdeStarter.access$000(IdeaApplication.java:178)
at com.intellij.idea.IdeaApplication.(IdeaApplication.java:97)
at com.intellij.idea.IdeaUltimateApplication.(IdeaUltimateApplication.java:16)
at com.intellij.idea.MainImpl$1$1.proceed(MainImpl.java:53)
at com.intellij.ide.a.f.ab$3.run(ab$3.java:372)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)


First idea, "well something went wrong" (because i simple rsynced my settings from another pc). Later it turned out something else was missing. A simple "pacman -S giflib" and everything was running fine afterwards.
so giflib was missing.
What is "giflib"?

giflib is a library for rendering and generating GIF image files.

source

Translate to de es fr it pt ja

RaspberryPi And Hardware Video Playback

Sadly but true, the local hamburg public transport stops "transporting" at half past one on weekdays, so i decided to watch the Fnord News Show at home.

Nothing special so far but there is this tiny raspberrypi near my full hd screen. I decided boot up the pi, start notion and wanted to watch the stream "on big screen".
Well, chromium was more a slideshow, mplayer was working but only in a slide show or with tiny video size (by the way, the load was way to high for a single core machine). A quick search on the web and i found thread. This thread links to a page called Hardware-accelerated video playback on the Raspberry Pi. To keep it short, mplayer isn't shipped with a hardware support, so simple install omxplayer, open your stream and you get full hd and hardware decoded video playback.

Translate to de es fr it pt ja

30c3 - alternative web address

Since events.ccc.de is a little bit overcrowded, the irc channel just provided an alternative called 30c3.ex23.de.
Pure benefit, it is stripped down to the essentials meaning "schedule plan" and link to the videos. There are also videos on youtube so join the congress mentaliy :-).

There is also a simple page with links available by 30c3 links at hackerspace prague. If you want to see the videos, simple use the twitter-c3streaming page and click on the most working source.

Translate to de es fr it pt ja

Zend Framework 2 - Use Own View Helpers In A Controller

Assuming you had created your view helper called "MyViewHelper", placed in in "Application\src\Application\View\Helper" and added it as "invokable" in your "module.config.php" (section "viewhelpers" => "invokables").

After adding it to your "module.config.php", you can use it in your templates and everything is working as expected.
But what happens when you need that special view helper in your controller?

First idea would be to code something like the following lines in your controller.

$this->getServiceLocator()->get('viewhelpermanager')->get('MyViewHelper');

To bad, this won't work. Do you want to debug it? just add the following line at the beginning of "AbstractPluginManager::get()" and search for your "MyViewHelper" call.
echo varexport(array('name'=>$name, 'hasName' => $this->has($name), 'autoloadAddInvokableClass' => $this->autoAddInvokableClass, 'classexists'=>classexists($name)), true);

"class_exists" will return a false since your alias is not available at this point. How to solve this problem? Simple adapt your view helper call the following way.

$this->getServiceLocator()->get('viewhelpermanager')->get('\Application\View\Helper\MyViewHelper');

Translate to de es fr it pt ja