Skip to content

Instantly share code, notes, and snippets.

View jraczak's full-sized avatar

Justin Raczak jraczak

View GitHub Profile
<fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/fragment" android:name="io.github.example.popmovies.PopularMoviesFragment" tools:layout="@layout/fragment_popular_movies" android:layout_width="match_parent" android:layout_height="match_parent" />
package com.example.android.sunshine.app;
import android.support.v4.app.LoaderManager;
import android.content.Context;
import android.content.CursorLoader;
import android.content.Intent;
import android.content.Loader;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.Uri;
03-16 12:06:34.705 22207-22264/com.justinraczak.android.movies E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #2
Process: com.justinraczak.android.movies, PID: 22207
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
package com.justinraczak.android.movies;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
Started GET "/" for 127.0.0.1 at 2015-11-30 17:26:49 -0800
Processing by HomeController#index as HTML
Geokit is using the domain: localhost
Rendered shared/_pie_graph.html.erb (0.5ms)
Rendered shared/_pie_graph.html.erb (0.1ms)
Rendered shared/_pie_graph.html.erb (0.1ms)
Rendered shared/_pie_graph.html.erb (0.1ms)
Ip geocoding. address: 127.0.0.1, args []
Ip geocoding. address: 127.0.0.1, args []
Rendered home/index.html.erb within layouts/application (232.3ms)
Finished in 30 secs
1) Error:
spec home, accessibility, and animation#test_0001_spec:
Timeout::Error: execution expired
/Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/appium_lib-3.0.2/lib/appium_lib/common/helper.rb:43:in `sleep'
/Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/appium_lib-3.0.2/lib/appium_lib/common/helper.rb:43:in `rescue in block in wait'
/Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/appium_lib-3.0.2/lib/appium_lib/common/helper.rb:38:in `block in wait'
/Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/appium_lib-3.0.2/lib/appium_lib/common/helper.rb:36:in `wait'
/Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/appium_lib-3.0.2/lib/appium_lib/driver.rb:161:in `rescue in block (3 levels) in promote_singleton_appium_methods'
[caps]
platformName = "Android"
deviceName = "Samsung Galaxy Note 3"
platformVersion = "4.4"
app = "https://www.dropbox.com/s/5eifmu61yxdotwk/api.apk?dl=1"
name = "Ruby Android Tutorial"
apiKey = "a73b53bc06d72fb988861ffa85a5187a"
[appium_lib]
server_url = "https://appium.testcloud.xamarin.com/wd/hub"
/Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/remote/response.rb:54:in `assert_ok': status code 500 (Selenium::WebDriver::Error::ServerError)
from /Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/remote/response.rb:15:in `initialize'
from /Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/remote/http/common.rb:59:in `new'
from /Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/remote/http/common.rb:59:in `create_response'
from /Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/remote/http/default.rb:66:in `request'
from /Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/remote/http/common.rb:40:in `call'
from /Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/appium_lib-3.0.2/lib/appium_lib/common/patch.rb:140:in `raw_execute'
from /Users/ju
/Users/justinr/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/net/http.rb:878:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
from /Users/justinr/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/net/http.rb:878:in `open'
from /Users/justinr/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
from /Users/justinr/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
from /Users/justinr/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/net/http.rb:877:in `connect'
from /Users/justinr/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
from /Users/justinr/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/net/http.rb:851:in `start'
from /Users/justinr/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/net/http.rb:1373:in `request'
from /Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
from /Users/justinr/.rvm/gems/ruby-2.0.0-p643/gems/selenium-webdriver-2.42.0/lib/seleniu
@jraczak
jraczak / .java
Created July 29, 2015 22:01
Garden of Java
public class Flower
{
private int x;
private int y;
public Flower(int theX, int theY)
{
this.x = theX;
this.y = theY;
}