Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| UI- and App Frameworks Evangelist - Jake Behrens, [email protected], twitter: @Behrens | |
| - What's new in Cocoa | |
| - Accessibility in iOS | |
| - Building User Interfaces for iOS 7 | |
| - Getting Started with UIKit Dynamics | |
| - What's new in Cocoa Touch | |
| - What's New With Multitasking | |
| - Best Practices for Cocoa Animation | |
| - Improving Power Efficiency with App Nap | |
| - Introducing Text Kit |
| /** | |
| * A {@link HttpRequest.ConnectionFactory connection factory} which uses OkHttp. | |
| * <p/> | |
| * Call {@link HttpRequest#setConnectionFactory(HttpRequest.ConnectionFactory)} with an instance of | |
| * this class to enable. | |
| */ | |
| public class OkConnectionFactory implements HttpRequest.ConnectionFactory { | |
| private final OkHttpClient client; | |
| public OkConnectionFactory() { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| package com.stefanini.android.cartermensajeria.ws; | |
| import java.io.IOException; | |
| import java.io.UnsupportedEncodingException; | |
| import java.net.URI; | |
| import java.net.URISyntaxException; | |
| import java.util.List; | |
| import org.apache.http.HttpEntity; | |
| import org.apache.http.HttpResponse; |
The BBC has a server-side image service which provides developers with multiple sized versions of any image they request. It works in a similar fashion to http://placehold.it/ but it also handles the image ratios returned (where as placehold.it doesn't).
The original BBC News process (and my re-working of the script) follows roughly these steps...
divs within the page (which have a class of delayed-image-load) into a transparent GIF using a Base64 encoded string.
width & height HTML attributes of the image to the required sizediv has custom data-attr set server-side to the size of the imageimage-replace onto each newly created transparent imagesetTimeout to unblock the UI thread and which calls a function resizeImages which enhances the image-replace images so their source is now set to a URL wheLooking at the officiel Twitter Android client I've noticed the slight cool & sexy transition between activities. I was curious to know how that worked so I had fun with android xml animations and ended up with that:
push_left_in.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translateTaken from RasPi Stack Exchange
| #!/bin/bash | |
| # This sits on the device you want to be able to tunnel back into | |
| # Replace USER and SERVER lines with your tunnel user (if different from local) and domain or IP | |
| createTunnel() { | |
| /usr/bin/ssh -N -R 2222:localhost:22 USER@SERVER | |
| if [[ $? -eq 0 ]]; then | |
| echo Tunnel created successfully | |
| else |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| /** | |
| * A {@link ViewGroup.OnHierarchyChangeListener hierarchy change listener} which recursively | |
| * monitors an entire tree of views. | |
| */ | |
| public final class HierarchyTreeChangeListener implements ViewGroup.OnHierarchyChangeListener { | |
| /** | |
| * Wrap a regular {@link ViewGroup.OnHierarchyChangeListener hierarchy change listener} with one |