sexta-feira, 27 de novembro de 2015

Open Sans pixelized on Firefox

Hi,
some of the most annoying behavior of firefox / Chrome on windows, is that the font Open Sans appears pixelated / pixelized .

Well not a firefox issue, try to to this on windows 7 :
  • Start -> adjust clear type -> turn on clear type, 
and thats is, it will much better.

best

quarta-feira, 5 de agosto de 2015

JSF 2.2, MultiViewHandler, locale-config

Hi,
before jsf2, to handle the localization resources, I used the MultiViewHandler to calculate to locale of the JSF.

But this MultiViewHandler disappear in 2.2 (apis, shall be more stable...)

on new jsf2.2, we can do:

on faces-config.xml
        <view-handler>ViewHandlerLanguage</view-handler>

On Java Code

public class ViewHandlerLanguage extends ViewHandlerWrapper

    static Locale localeEn = new Locale("en");

    @Override
    public Locale calculateLocale(FacesContext context) {

                    return localeEn;
}

br

quarta-feira, 22 de abril de 2015

Record a screen video on ubuntu 12

Always an questions of how to create a video of a application running on linux ubuntu.
I gather some info of tools available, and the cookbook is:

  • install software packages
sudo apt-get install openshot openshot-doc
sudo apt-get install mencoder
sudo apt-get install dvgrab ffmpeg2theora oggfwd
sudo add-apt-repository ppa:sunab/kdenlive-release && sudo apt-get update && sudo apt-get install kdenlive
sudo apt-get install recordmydesktop
  • start key mon
key-mon --visible_click
  • save desktop moviewith recordmydesktop
  • put title on movie
 mencoder video.avi -o videoOUT.avi -ovc lavc -lavcopts vcodec=mjpeg -sub titlevideo.srt -utf8 -subalign 0 -subfont-autoscale 0 -subfont-text-scale 32 -oac copy -audiofile matrix.mp3 -font 'Bitstream Vera Sans:style=Bold'
  •  SRT format
titlevideo.srt

1
00:00:00,000 --> 00:00:22,000
bla bla1

2
00:00:25,000 --> 00:00:44,000
bla bla2

Java Obfuscate Properties

Hi there how many times we have fuckin stupid commentaries of , hey the code has a password... bullshit you can always get the password... ...