Skip to content

Instantly share code, notes, and snippets.

View Surfoo's full-sized avatar
:octocat:
let's coding and geocaching!

Surfoo Surfoo

:octocat:
let's coding and geocaching!
View GitHub Profile
@Surfoo
Surfoo / gist:1585032
Created January 9, 2012 21:29
Challenge des anniversaires mysteres et multis
== Challenge des anniversaires mysteres et multis (et meme tradi) ==
Pour une méthode infaillible entre le log de publication et votre found :)
Prérequis :
Avoir GSAK 8 et les logs des found it (mysteries/multi suffit) à jour avec la méthode Get Logs (Menu Geocaching.com access)
Pour cela, n'affichez que les mysteres/multis avec les fitres que vous utilisez habituellement.
Ca peut prendre un peu de temps, soyez patient :)
Une fois terminé, faites un backup. (Fichier > Backup)
The database will have at least the nodes: (User), (Item), (Log)
(User) can have friends : (User)-[:FRIEND]-(User)
(User) own (Item) : (User)-[:HIDE]->(Item)
(User) can write (Log) on (Items) : (User)-[:WRITE]->(Log)
A (Log) have a type (this type have an id, a name and an URL) : (Log)-[:LOG_TYPE]->(:LogType {properties...))
An (Item) have a type (this type have an id, a name and an URL) : (Item)-[:ITEM_TYPE]->(:ItemType {properties})
My goal is to display the friends newsfeed to the user.
<?php
/**
* Proof of Concept: Symfony HttpClient gzip decompression bug
*
* Bug: When Accept-Encoding header is explicitly set, HttpClient doesn't
* automatically decompress gzipped responses, but getContent() returns raw bytes.
*
* Expected: Automatic decompression regardless of explicit Accept-Encoding header
* Actual: Raw gzipped bytes returned when Accept-Encoding is explicitly set
*/