It is known that certain VMs can reduce the amount of FPS allowed by Flash in order to provide a more performant experience for their users. One known software is VMWare. Because we do extensive testing using SauceLabs browser grid service through selenium webdriver, we wanted to test the compatibility with real world results on specific browsers we were seeing odd results in. Below are some of the findings from this research, which resulted in our adoption of IE11 on Windows 8 and our drop of IE optimization detection on all other Windows releases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $$$i = 0, | |
$$mt = []; | |
while(navigator.mimeTypes[$$$i]){ | |
$$mt.push(navigator.mimeTypes[$$$i]); | |
$$$i++; | |
} | |
console.table($$mt.map(function(i,v,a){ | |
return { | |
'name':i.description||i.enabledPlugin.description, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
express = require( 'express' ), | |
connect = require('connect'), | |
app = express(); | |
count = 0; | |
app.configure( function() { | |
app.use(connect.urlencoded()); | |
app.use(connect.json()); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// ****** BEGIN SOLUTION TIMER ******* // | |
module.exports = (function () { | |
// all times will be measured in seconds by default | |
return function (_arrayOfTimes, _scriptTimeLimit, _timerCallback, _timeLimitCallback, _useMilliseconds) { // _useSeconds - add this later to add the ability to measure in milliseconds | |
var _startTime = 0, // the time this script started | |
_initialPlayTime = 0, // the time the playhead initially started |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package FPSUtils { | |
import flash.display.DisplayObject; | |
import flash.display.MovieClip; | |
import flash.display.Stage; | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.IEventDispatcher; | |
import flash.external.ExternalInterface; | |
import flash.utils.clearInterval; | |
import flash.utils.getTimer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see if this is a mobile browser | |
var w = window, d = document; | |
var regex = /mobi|android|webos|blackberry|ipad|ipod|iphone|tablet|phone|kindle/i; | |
r.mobile = regex.test(ua) || regex.test(w.navigator.platform); | |
if (r.mobile) { | |
if (w.chrome || w.performance) { // this is an android device posing as an iPhone | |
if (w.Worker) { // android 4.4+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var open = require('open'); | |
var url = require('url'); | |
var http = require('http'); | |
var twitterAPI = require('node-twitter-api'); | |
var Q = require('q'); | |
var authObject = (function () { | |
var deferred = Q.defer(); | |
var twitter = {}; | |
var token = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<link href="test-styles.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body bgcolor="#FFFF99" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> | |
<div style="position:relative; border:10px solid #228b22; width:820px; height:250px;"> | |
<!-- first frame is positioned where it will be in view by the container iframe in the parent document --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<link href="test-styles.css" rel="stylesheet" type="text/css"> | |
<style> | |
body { | |
margin:0; | |
padding:0; | |
background-color:#ff99ff; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<link href="test-styles.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body bgcolor="#eeeeff" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> | |
<div style="float:left;position:relative; border:10px solid royalblue; width:820px; height:1100px;"> | |
<!-- show 1 iframe and box out the other --> |