Stamattina mi sono ricollegato su badoo dopo tanto tempo e mi sono accorto con mio sommo stupore che è stata introdotta una nuova novità volta a spilarci i quattrini. Tra me e me ho pensato: beh, chissene frega di profilo con colori e altre minchiata, se non che mi sono accorto (e non è stato piacevole) che ora non è più possibile eseguire la ricerca avanzata in quanto ad ogni link corrisponde.

Per risolvere questa spiacevolissima situazione ho dovuto ricorrere a GreaseMonkey e creare un piccolo script che potete scaricare in allegato a questo post.

Installa Badoo Enhancer

Edit: A quanto pare non è + possibile sfogliare le pagine, in quanto è proprio disabilitato dal sistema se non si hanno questi benedetti poteri. A questo punto tutto quello che posso dire è che quelli di badoo vadano a cagare…

Dalla riga di commando:
find /path/to -mtime +5 -type f -exec rm -f {} \;

Questo commando eliminerà tutti file che sono piu vecchi di 5 giorni nel percorso.

Forzare l’uso di utf-8 nelle pagine
$TYPO3_CONF_VARS['BE']['forceCharset'] = 'utf-8';

Preso da qui

Se non riuscite ad installare un programma perché Windows 7 si lamenta che il driver non ha la firma digitale, potete seguire questo iter:

  1. Aprite cmd.exe come amministratore
  2. Eseguite bcdedit /set loadoptions DDISABLE_INTEGRITY_CHECKS

A questo punto rilanciate installazione

Aggiungere in ~/.bashrc

alias banip='iptables -I INPUT -j DROP -s'

Dopo il logout->login sarà disponibile il commando “banip xxx.xxx.xxx.xxx”

Eseguire

iptables -I INPUT -i eth1 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name DEFAULT --rsource

Seguito da

iptables -I INPUT -i eth1 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 180 --hitcount 4 --name DEFAULT --rsource -j DROP

In questo modo utente non può superare 3 tentativi di connessioni nell’arco di 3 minuti.

Da questo post:

1 vote down

Here’s a solution which will loop over key/value pairs in your URL:

RewriteRule ^cat_ap~([^~]+)~([^~]+)(.*)\.htm$ cat_ap$1?$1=$2 [R,QSA]
RewriteRule ^cat_ap(.*)\.htm$ /urban/cat_ap.php [L]

It grabs the first pair off the URL, then rewrites it to the exact same URL without that pair, adds the pair to the query string ([QSA]) and starts the rewriting process over again ([R]). When there are no more key/value pairs in the URL, it rewrites it to your script’s location and terminates rewriting ([L]).

cat_ap~pnid~290~nid~96666~posters~Sports.htm => /urban/cat_ap.php?posters=Sports&nid=96666&pnid=290
cat_ap~PageNum_GetProduct~10~nid~290.htm => /urban/cat_ap.php?nid=290&PageNum_GetProduct=10

(Note that the order of parameters is reversed; this will only matter if the same parameter appears more than once.)

Ho notato che DreamWeaver non digerisce bene il heredoc, a volte scazzando il parsing del file php (che non veniva modificato all’aggiornamento del template). Sul sito di php.net ho trovato seguente fix:

When editing with Dreamweaver, the syntax higlighting will be messed up if you use heredoc syntax. I found that the color syntaxing can be taken care by editing the php syntax file for DW.

Open Macromedia\Dreamweaver 8\Configuration\CodeColoring\PHP.xml and look for:


]]>

Directly after that add:


Now, DW will treat <<) and EOF; as it was the start (

Se siete uno dei beta tester che stanno provando Windows 7 ma avete dei problemi con Windows Live Messenger 9 (impossibile effettuare il login. Cod. errore 81000306.), Potete provare questo sistema.

1) Entrate nel prompt come amministratore (tasto destro sul prompt dei commandi, Run as administrator)
2) eseguite seguente riga

netsh int tcp set global autotuninglevel=disabled

3) Riavviate il pc

A questo punto non ci dovrebbe essere alcun problema a collegarsi.

Per ripristinare situazione precedente eseguite
netsh int tcp set global autotuninglevel=normal

La tabella che risponde alla gestione di incremento degli OrderId (ed altri parametri come shipping etc) si trova in “eav_entity_store”. I nomi delle colonne sono abbastanza esplicativi.