Skip to content

Instantly share code, notes, and snippets.

View hdpi_dimen.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="value_1">0.5dp</dimen>
<dimen name="value_2">1dp</dimen>
<dimen name="value_3">1.5dp</dimen>
<dimen name="value_4">2dp</dimen>
<dimen name="value_5">2.5dp</dimen>
<dimen name="value_6">3dp</dimen>
<dimen name="value_7">3.5dp</dimen>
<dimen name="value_8">4dp</dimen>
View ActivityBase
package drivecrm.pkg.inventorypkg.common;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import drivecrm.pkg.inventorypkg.R;
View iphone output
@
ANSI 636018020002DL00410390ZI04310022DLDCAC
DCBNONE
DCDNONE
DBA08032012
DCSSAMPLE
DCTLICENSE
DCUnone
DBD08152007
View gist:9134696
OS name: Android
OS version: 4.1.2
Device name: arubaslim
Model: GT-I8262
Manufacturer: samsung
High quality: 0
Number of processors: 2
Max CPU frequency: 1209 MHz
NEON supported: 1
Native library build info:
View Error
irb(main):017:0> Employeeskill.joins(:skill).includes(:skill)
←[1m←[35mSQL (1.0ms)←[0m SELECT `employeeskills`.`id` AS t0_r0, `employeeskil
ls`.`employee_id` AS t0_r1, `employeeskills`.`skill_id` AS t0_r2, `employeeskill
s`.`created_at` AS t0_r3, `employeeskills`.`updated_at` AS t0_r4, `skills`.`id`
AS t1_r0, `skills`.`skill_name` AS t1_r1, `skills`.`created_at` AS t1_r2, `skill
s`.`updated_at` AS t1_r3 FROM `employeeskills` INNER JOIN `skills` ON `skills`.`
skill_id` = `employeeskills`.`id`
Mysql2::Error: Unknown column 'skills.skill_id' in 'on clause': SELECT `employee
skills`.`id` AS t0_r0, `employeeskills`.`employee_id` AS t0_r1, `employeeskills`
.`skill_id` AS t0_r2, `employeeskills`.`created_at` AS t0_r3, `employeeskills`.`
View employee.rb
class Employee < ActiveRecord::Base
end
View employees_controller.rb
class EmployeesController < ApplicationController
def index
@employees=Employee.all()
end
def new
@admin=Admin.new
@employee=Employee.new()
end
end