Cinnamon screenshot applet default folder

I’ve switched some weeks ago to Linux Mint and Cinnamon from Xfce and in these days I’m a kind of exploring the new desktop.

I’m used to take screenshot for work, totake some notes and so I installed the Cinnamon screenshot applet.

Screenshot applet

 

After some day using it I was a bit bored by the screenshots saved in Pictures folder by default so I traied to change this behaviur.

Looking into the applet js file i discover that the applet is based on gnome-screenshot and so I find an easy solution to my problem.

You can edit the with dconf-editor the configuration string

org.gnome.screenshot.auto-save-directory

dconf

ad set you favorite screenshot folder!

 

Cinnamon screenshot applet default folder

Calling JS class methods from Silverlight application

I’m working on a project in which we have to call some JS method of the containing page from a Silverlight application.

It seems to be really straight forward like:

But this works only for global methods and not for JS class methods.

Continue reading “Calling JS class methods from Silverlight application”

Calling JS class methods from Silverlight application

Xfce loses theme settings

 

xfce-logoToday I started my xfce desktop and it looks like …”different”. No theme loaded, default icons, no background. I tried to change theme from Xfce Settings but nothing, it doesn’t work.

My .session-errors reveals a

After a bit o googling it seems to be an aged bug of xfce when used on multiple monitor configuration.

The solution, or better, the workaround is to delete the file:

Now you can log out and log in again in your themed Xfce 🙂

Xfce loses theme settings

Opml to Html converter

Yesterday I discovered that wordpress does not have a blogroll feature any more so I looked around to find a way to show my feedly subscription list in my blog.

I didn’t find anything interesting so decided to implement a simple javascipt class to convert the opml file exported from feedly to an html page so that I could easily create a wordpress page or widget.

ompl-html

The script is really very simple, it takes the ompl, deserialize it and create a corresponding HTML string using from a basic template defined in the JS itself. It can be certainly improved (for example adding some css class to the template for graphical customization) but, for now, it just work for my needs.

In this version you can customize the export style editing the first lines of the JS:

 

These variables describe the export format:

  • export_template is the template for the export html page;
  • html_template is the template for the page content;
  • rss_template is the template for each RSS line;
  • folder_template_start is the template for the opening tag of RSS folder line;
  • folder_template_end is the template for the closing tag of RSS folder line.

You can find it on ghitub, under my script repository: opml.js and opml.html.

I hope it can be useful.

Opml to Html converter

vmware crash on startup after curl update

After today update of debian Sid VMWare keep crashing on startup without any interesting log.

vmwareAfter a bit of googling I found this. The crash it’s caused by the curl update that changed the lib interface.

There are two ways of solving this: downgrade Curl (i.e. using snapshot debian) or applying a patch that force vmware to use its own libcurl instead of the system one.

Thewe are the 2 patches, one for vmware and one for vmplayer:

 

 

I decided to apply the patches so that I can update the whole system.

vmware crash on startup after curl update