viernes, 27 de noviembre de 2015

Network diagrams in Libreoffice Draw

Unfortunately I recursively face the problem of creating network diagrams in linux. There are a lot of options (as usual in linux) for this:
- Dia: Quite good, lot of resources there but... a bit ugly result from my point of view.
- Inkscape: You can achieve very good results but... it is a vectorial drawing program and it is not fast.
- Online: I won't (will not!) use an online tool for that.

In M$ people use Visio and the results are awesome with a scarce amount of effort. Why can't I have that in linux? Simple answer, you can.

You can use libreoffice draw and add galleries to it. In particular there is which has a vectorial gallery of network resources which is perfect for fast, nice looking network diagrams. You just have to go to "Tools --> Extension Manager" and install the file you can download from the link. Then in your draw sheet go to "Insert --> Media --> Clip Art Gallery"  and a new tab will appear where you will see the VRT resources.

Enjoy it

lunes, 16 de noviembre de 2015

Thunderbird Lightning Today Highlight

I use thunderbird with the lightning extension for calendar. I'm just happy with it BUT it is difficult to visually locate Today, the color is just too clear. I was looking for an extension to highlight just Today when it is not selected and... I wasn't lucky. But I reminded that thunderbird uses css. Here is the solution I found:

  •  Edit (first do a backup) the file within your thunderbird profile extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome/skin/common/calendar-views.css (NOTE: {e2fda1a4-762b-4020-b5ad-a41df1933103} this was my lightning extension and it can probably change if you are running other OS or other versions).
  •  Change  viewTodayBackground to your favorite html color code. In my case, yellow =)
    •  --viewTodayBackground: #fff000;
    • You might also be interested in --viewTodayLabelBackground:  and --viewTodayLabelSelectedBackground:
  • Relaunch Thunderbird
That's all, now you should have your today in yellow ;)

lunes, 7 de septiembre de 2015

Missing icons in kde/qt5 apps within i3

After my last update, some of my QT5 based apps (such as dolphin which I use daily) were missing the icons. After some search it seems it is due to a default value when the WM set with XDG is not the expected one.

To solve this issue in i3 without having to change the XDG desktop values for the whole session you can use the following

if you want to have it launched with a shortcut, something like
bindsym x exec XDG_CURRENT_DESKTOP="KDE" dolphin

will do, where x is the key you want to use to launch.

sábado, 23 de noviembre de 2013

PlayOnLinux Powerpoint

A few days ago I decided to install my Microsoft Office 2007 under linux. I wanted to avoid starting the Windows Virtual Machine. All was damn easy and worked like a charm BUT powerpoint. It is not like I do create lots of presentations in powerpoint (I doubt I do one a year) but I do receive a lot of presentations that show crappy on libreoffice.
After googling a while I found in the winehq forums a user who posted that adding to wineconfig the riched20.dll library did the trick. Indeed it did and I post it here hoping that you find it faster than me =)

viernes, 17 de agosto de 2012

RTMP listen went into libav

After some time we have managed to get rtmp listen into libav master. It has been harder than getting the last rtsp patch I announced in this same blog mainly because I didn't have any experience with rtmp. I have to thank Martin and Luca who had a lot of patience with me and in general to all the people within libav.

Now libav supports receiving a stream with the rtmp publish command, no authentication, no encryption, no... but at least it is a first step.

Now anyone can use the -rtmp_listen 1 argument to receive a stream and -timeout x to set an initial timeout to wait for incoming connections. How can we then receive an rtmp stream on our machine?

avconv -rtmp_listen 1 -f flv -timeout 10 rtmp://localhost/app/test outfile

on the other side to send the stream is as easy as:

avconv -i inputfile -f flv rtmp://localhost/app/test

Isn't that nice? And what if I want to just play my favorite movie on the laptop connected to my tv without using those slow pendrives?

"avplay -f flv -rtmp_listen 1 rtmp://my_ip/app/test" on the laptop and "avconv -i inputfile -f flv -c copy rtmp://my_ip/app/test" in your desktop.

Now using raw tcp, rtsp or rtmp to receive your streams is only a matter of choice.

Oh, didn't I say it? now you can use tcp://address:port/path?listen with your avconv to receive raw tcp streams. (Don't forget to set the output format with -f in the sender side)

recv: avconv -i tcp://ip:port/path?listen outfile

send: avconv -i inputfile -f format tcp://ip:port/path

I think that is all by now. Next improvement... Multiple connections!


miércoles, 11 de julio de 2012

RTSP listen went into libav

Finally we did it, the RTSP announce/record scenario I announced some months ago has been accepted into libav. This means that anyone will be able to receive rtsp streams on demand with avconv or avplay. With this enhancement with others which will hopefully be merged into libav soon, we will be able to implement avserv using URLContext and limiting the network functionalities to the demuxer developed into libavformat. The other enhancements are: modification to the libavformat TCP demuxer to allow multiple accepts to one socket (like servers do) and a rtsp listen like functionality to rtmp, which is waiting for review.

We added the "-rtsp_flag listen" option which allows both avconv and avplay to wait for an incoming RTSP connection which will send a stream after a RECORD command and receive the stream over UDP or TCP. What is this useful to? Imagine that you want to publish a real time stream with a client that only supports rtsp but your server only supports rtmp, what can we do?

avconv -f rtsp -rtsp_flags listen -i rtsp://myhost/stream.sdp rtmp://myhost/app/stream

or you can just store it to a file

avconv -f rtsp -rtsp_flags listen -i rtsp://myhost/stream.sdp file.mp4/ogv/mpg/...

In addition you will be able to do the usual with avconv as for instance convert to any of the infinite available codecs.

I don't know if it is really useful but isn't it cool? ;-)