After the latest OS X system update, Macbook Air 2013 Webcam no longer working on Chrome/Skype.
Solution
-
Download the attached file.
-
Go to Finder>Go>Go to Folder
-
Copy and paste this into the search bar: /Library/CoreMediaIO/Plug-Ins/DAL/
/* ======================================== | |
* <Project> - <Description> | |
* | |
* Author: | |
* Last Edit: | |
* ======================================== | |
* <License> | |
* ======================================== */ | |
// the semi-colon before function invocation is a safety net against concatenated |
var complete = {}, completed = 0; | |
var i, thread = 23, total = 179, max = (total / thread | 0) + 1; | |
function startCount(idx, max) { | |
if (completed >= total) { | |
console.log("completed = " + completed); | |
console.log(complete); | |
return ; | |
} else if (idx === max || idx >= total) { |
function loadCss(css) { | |
var link; | |
if ($.isArray(css)) { | |
$.each(css, function (idx, lk) { | |
loadCss(lk); | |
}); | |
} else { | |
link = document.createElement("link"); | |
link.type = "text/css"; |
class DeviseCreateUsers < ActiveRecord::Migration | |
def change | |
create_table :users do |t| | |
t.timestamps | |
## Database authenticatable | |
t.string :email, :null => false, :default => "" | |
t.string :encrypted_password, :null => false, :default => "" | |
## Recoverable | |
t.string :reset_password_token |
After the latest OS X system update, Macbook Air 2013 Webcam no longer working on Chrome/Skype.
Solution
Download the attached file.
Go to Finder>Go>Go to Folder
Copy and paste this into the search bar: /Library/CoreMediaIO/Plug-Ins/DAL/
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
// Zhuochun | |
// 2013-12-15 | |
function eventFire(el, etype) { | |
if (el.fireEvent) { | |
(el.fireEvent('on' + etype)); | |
} else { | |
var evObj = document.createEvent('Events'); | |
evObj.initEvent(etype, true, false); | |
el.dispatchEvent(evObj); |
class User < ActiveRecord::Base | |
#let's just make it simple and only add one column for this model called 'username' | |
attr_accessible :username | |
#use "follower_id" as the foreign key since by default it will use "user_id" which does | |
#not exist inside the "relationships" table | |
has_many :relationships, foreign_key: :follower_id | |
#find all user with the ID matching the "followed_user_ids" of the result. If I did not | |
#include "source: :followed_user", it will look for the column "following_id" which is wrong |
class User < ActiveRecord::Base | |
# ... lots of persistence stuff | |
end | |
class GitHubUserProvisioner < SimpleDelegator | |
def provision_with!(user_info, extra_user_hash) | |
self.github_login = extra_user_hash['login'] | |
self.name = user_info['name'] | |
self.email = user_info['email'] | |
self.github_url = user_info['urls']['GitHub'] |