Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
| ------------------------------------- | |
| Translated Report (Full Report Below) | |
| ------------------------------------- | |
| Process: main [22653] | |
| Path: /Applications/BDRC-Tibetan-OCR.app/Contents/MacOS/main | |
| Identifier: BDRC Tibetan OCR | |
| Version: 1.0 (???) | |
| Code Type: ARM-64 (Native) | |
| Parent Process: launchd [1] |
| module TimeZoneHelpers | |
| extend ActiveSupport::Concern | |
| def self.randomize_timezone! | |
| offsets = ActiveSupport::TimeZone.all.group_by(&:formatted_offset) | |
| zones = offsets[offsets.keys.sample] # Random offset to better vary the time zone differences | |
| Time.zone = zones.sample # Random zone from the offset (can be just 1st, but let's do random) | |
| puts "Current rand time zone: #{Time.zone}. Repro: Time.zone = #{Time.zone.name.inspect}" | |
| end |
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.myapp.myapp" > | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| <uses-permission android:name="android.permission.VIBRATE" /> | |
| <uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
| <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> | |
| <permission android:protectionLevel="signature" android:name="com.parse.starter.permission.C2D_MESSAGE" /> |
| $ > data = "45973294435a352c55d6cbf0" | |
| => "45973294435a352c55d6cbf0" | |
| $ > bytes = data.scan(/../).map(&:hex) | |
| => [69, 151, 50, 148, 67, 90, 53, 44, 85, 214, 203, 240] | |
| $ > bytes[8].to_f / 2 - 27 | |
| => 15.5 # Température | |
| $ > bytes[9].to_f / 50 | |
| => 4.28 # Voltage batterie | |
| # Jusqu'ici tout va bien |
| source 'https://rubygems.org' | |
| gem 'rails', '4.2.4' | |
| gem 'rails-i18n' | |
| gem 'sass-rails', '~> 5.0' | |
| gem 'uglifier', '>= 1.3.0' | |
| gem 'coffee-rails', '~> 4.1.0' | |
| gem 'slim-rails' | |
| gem 'pg' |
| class ConvertDbToUtf8 < ActiveRecord::Migration | |
| def self.up | |
| if Rails.env.production? | |
| db_config = ActiveRecord::Base.connection.instance_values["config"] | |
| db_name = db_config[:database] | |
| db_user = db_config[:username] | |
| db_pass = db_config[:password] || '' | |
| latin1_dump = 'latin1_dump.sql' |
| class @GoogleAnalytics | |
| @load: -> | |
| # Google Analytics depends on a global _gaq array. window is the global scope. | |
| window._gaq = [] | |
| window._gaq.push ["_setAccount", GoogleAnalytics.analyticsId()] | |
| # Create a script element and insert it in the DOM | |
| ga = document.createElement("script") | |
| ga.type = "text/javascript" |
| // app/views/users/index.html.haml | |
| = javascript_include_tag '//maps.google.com/maps/api/js?v=3.13&sensor=false&libraries=geometry' | |
| = javascript_include_tag '//google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.14/src/markerclusterer_packed.js' | |
| #map{style: "height: 400px;"} | |
| :javascript | |
| window.load_google_map('map', #{@map_markers}) |
Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
| source 'http://rubygems.org' | |
| gem 'rails', '3.2.12' | |
| gem 'mysql2' | |
| gem 'unicorn' | |
| gem "therubyracer", ">= 0.8.2" | |
| gem 'fastercsv' if RUBY_VERSION < "1.9" |