Category Archives: Uncategorized

bootstrap-grid-only

For those who need just the Twitter Bootstrap CSS grid, here is it!

Bootstrap-Grid-Only (3.2.0)

Bootstrap’s responsive grid and responsive utility classes only, without any extras. Lightweight yet still powerful. Style to taste.

Instructions

Include one of the precompiled grids (grid12.css, grid24.css, grid30.css, grid100.css) in your site, or customize and compile grid.css.less with command line lessc or LessPHP (no extends are used).

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.');
                }