30 March 2020

Enviando formulario a EDP


Por alguna razon que no comprendo en Waterfox y Chromium el formulario de atencion al cliente en la web de EDP energia NO funciona.

Cuando introduces algo de texto, el boton de enviar se tendria que activar, pero no lo hace.



En Firefox si funciona, pero ya no lo uso desde hace mas de 1 anyo o 2.

He deshabilitado add-ons, usado private-window, pero nada. Mismo resultado. Incluso he probado a usar otro user-agent, pero nada.

Al final la solucion ha venido editando el codigo web del boton. Lo explico visualmente abajo.








Este tipo de magic-tricks a veces falla. Yo creo que es mejor hacer un comprobación a posteriori de si el formulario tiene texto e informar al usuario de no ser asi.

26 March 2020

Creating a very useful (for me) keyboard shortcut on Linux LXDE/Openbox


Just open this file

~/.config/openbox/lxde-rc.xml



Find a suitable section to introduce this


<!-- open new window and search whatever is on clipboar/selection -->
    <keybind key="C-numbersign">
      <action name="Execute">
        <command>/bin/bash -c '/opt/waterfox/waterfox --new-window "https://www.google.com/search?q=`xclip -o -selection primary`"'</command>
      </action>
    </keybind>


I tried

#waterfox --search  blah blah ...

but it wasn't working (opening window but not searching) that's why I added the search term to the url.


I normally have the right hand over the arrow keys, so I like to have shortcuts on that area.

This one is  Ctrl+#  (being # the key on the left of Enter)



After saving the file run

# openbox-lxde --reconfigure


And you are done!

I really love it. Whether something is just selected OR copied to clipboard, it will search for it on a new browser window.


--------------------

I have another to quickly close the main window.


<!-- AltGr+Up to close the window (like Alt+F4) -->
    <keybind key="mod5-Up">
      <action name="Close"/>
    </keybind>
   

11 March 2020

Choosing Codec for Voip / SIP


Yesterday I did some tests calling myself using voip call to mobile phone (using zoiper over 4G) and I was horrified.

It was very annoying to hear myself :o)

So I decided to do a more thorough analysis of quality over different conditions (sometimes when you call to very distant countries the overall network quality degrades, and so the quality of the voice, so you need a more resilient codec).

Today I put my phone on 2G (4G is too nice) and performed different experiments with
G.711
iLBC
GSM

Then I compared my results with other tables out there (a nice one here https://www.gl.com/voice-codecs.html)

Here is a summary from that page


I decided to take out G.711 which behaves bad when the network has 'issues'. Supervoip (betamax) seems not to support Speex so the comparison was mainly with the other 2.

Finally I have decided to set up the codecs in this order (within Zoiper):
1. iLBC
2. GSM
3. aLaw (G.711)
4. Speex (just in case)
5. uLaw (because I rarely am in USA/Japan)

I must say that I hear very well most of the time, but the other part not so well with farther calls (I was using aLaw as first, but not anymore).


03 March 2020

Easy and simple monitoring of changes on files on real-time


Well, that real-time is just interactively if the changes are saved in the file.

Just run on the directory of the two files (or specify individually)
# watch 'diff  -d -y -i -a  *'
# watch 'diff  -d -y -i -a  file1 file2'

You can specify the frequency of refresh (check #man watch).



Too Cool for Internet Explorer