RSSAmplifier

Blog

Alessandro Crugnola – sephiroth.it

programmer by pure chance

blog.sephiroth.itRSS feed ↗10 posts

Latest posts

Android: pipe(“|”) and ProcessBuilder

How to implement a pipe between processes in android using kotlin.

Photoshop Extension: Opacity Editor

Today I d like to introduce an extension I ve created for Adobe Photoshop: Opacity Editor. I like to take pictures, ok, I m definitely not a professional photographer, but I still like to try to be one In particular I like to take pictures at night, I like to take pictures of moving clouds, stars.. etc. Continue reading Photoshop Extension: Opacity Editor

Why it’s hard to find Android developers

I m an Android developer (at Aviary) and a New Yorker since late 2010. I ve been also an actionscript and python developer for more than 10 years. I hear this every day. Your New York based company is desperately looking for an Android developer, and it s damn hard to find one. And you know what? This is your Continue reading Why it s hard to find Android developers

Android – Create a Vignette effect

Let s say you want to want to dynamically apply a vignette on an ImageView. Something like this: These are basically 4 steps we need in order to accomplish the task: Create a Paint using the PorterDuff.Mode.DST_OUT as Xfermode Create a RadialGradient and assign to our Paint object as a Shader Alter the gradient matrix using the setLocalMatrix method. Use canvas.saveLayer when Continue reading…

Floating Action Menu for Android

I ve just created this simple Android library, inspired from the recent changes to the Google+ app, which introduced a floating action item to the bottom. In G+ the action item appears and disappears based on the page scrolling. In the same way I ve created this library, with some more customization options, like the gravity and Continue reading Floating Action Menu for Android

java.lang.UnsatisfiedLinkError workaround

If you ever worked with native shared libraries in Android you ve probably already faced the java.lang.UnsatisfiedLinkError java exception which randomly seems to happen on certain devices ( actually it s happening on xperia phones mostly, based on my reports ). There are a bunch of bug reports in the android project like this: https://code.google.com/p/android/issues/detail?id=35962 or this…

More Picasso changes

I recently added more changes to my forked version of the Picasso library. Delay Added withDelay(long ms) method in the RequestCreator class. Basically it will delay the load of the passed resource by n milliseconds. [cce] Picasso.with( context ) .load( url ) .withDelay( 100 ) .into( image ); [/cce] Batch toggle on/off In the original Continue reading More Picasso changes

Forking Picasso

Recently I started using this nice library, Picasso, for my Android projects. Basically it s a library which allows you to load any type of images (local or remote, assets or resources) asynchronously into your ImageView. It will load them in background for you, this not blocking the UI. It has also an internal cache system and Continue reading Forking Picasso

Obtain styleable fields at runtime

Ususally, when we want to get some R attributes at runtime, we use the Resources getIdentifier method, which is useful for getting strings, drawables and ids at runtime. Unfortunately this method cannot be used to get the styleable fields. However, using java reflections, there s another way to solve the problem. With this snippet you can Continue reading Obtain styleable fields at runtime

purePDF moved to github

As you may have noticed I m not working with flash and actionscript anymore. However I still receive some requests regarding the purePDF library I published, well I don t remember when exactly By the way, I decided to move the code to github, thus it will be easier for anyone still interested in that library Continue reading purePDF moved to github