Category Archives: Uncategorized

Amazon wishlist – total cost

Captura de ecrã 2016-01-25, às 17.48.11

 

I have a small Amazon wishlist…
Amazon a few years ago removed to total cost of it.

For those who wanna see it, you can go to https://gist.github.com/chrismbarr/3230548 and use the JS on Chrome Console, for example.

This is the code (copied from mayel) for use with gb pounds.

var list = $$("span.a-size-base.a-color-price");
var total=0;
for(i=0; i<list.length;i++){
  var n = parseFloat(list[i].innerText.replace("£","").replace(",",""));  
  if(n === Number(n)) total += parseFloat(n);
}
alert(list.length+" items for a total of: £"+total.toFixed(2));

 

itsm.ptinovacao.pt – ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY

O servidor tem uma chave pública Diffie-Hellman fraca e efémera

ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY

Este erro pode ocorrer ao tentar estabelecer ligação a um servidor seguro (HTTPS). Significa que o servidor está a tentar configurar uma ligação segura, mas, devido a uma configuração desastrosa, a ligação não seria de todo segura!

Neste caso, é necessário corrigir o servidor. O Google Chrome não utilizará ligações inseguras para proteger a sua privacidade.

Saiba mais sobre este problema.

https://itsm.ptinovacao.pt:8443/arsys/shared/login.jsp?/arsys/forms/itsmsg.ptinovacao.pt/PTIN%3AServiceRequestConsole/SRC+View?&mode=submit

Disallowed Key Characters

I got some works made with CodeIgnitor framework…
Some of them were returning me

Disallowed Key Characters

The solution was, on system/core/Input.php make the following change

if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
                {
                      exit('Disallowed Key Characters.');
                }

To

if ( ! preg_match("/^[a-z0-9:_\/-~]+$/i", $str))
                {
                      exit('Disallowed Key Characters.');
                }

NAS nas4free

 

nas4free: / # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/md0 223M 216M 7.6M 97% /
devfs 1.0k 1.0k 0B 100% /dev
/dev/ada5a 117M 112M 5.0M 96% /cf
procfs 4.0k 4.0k 0B 100% /proc
RAIDZ 6.7T 51k 6.7T 0% /mnt/RAIDZ
RAIDZ/ARstorage 3.9T 355G 3.6T 9% /mnt/RAIDZ/ARstorage
RAIDZ/CMstorage 2T 82G 1.9T 4% /mnt/RAIDZ/CMstorage
RAIDZ/dataset 6.7T 45k 6.7T 0% /mnt/RAIDZ/dataset
RAIDZ/vmware 500G 321k 500G 0% /mnt/RAIDZ/vmware
/dev/md1 61M 768k 59M 1% /var
nas4free: / #