Skip to content

Instantly share code, notes, and snippets.

upstream appserver {
server localhost:8000;
server localhost:8001;
server localhost:8002;
server localhost:8003;
server localhost:8004;
}
server {
listen 80;
“class StepCounter {
var totalSteps: Int = 0 {
willSet(newTotalSteps) {
println("About to set totalSteps to \(newTotalSteps)")
}
didSet {
if totalSteps > oldValue {
println("Added \(totalSteps - oldValue) steps")
}
}
“struct Point {
var x = 0.0, y = 0.0
}
struct Size {
var width = 0.0, height = 0.0
}
struct Rect {
var origin = Point()
var size = Size()
var center: Point {
- (void)addAnnotationsInBoundingBox:(RMProjectedRect)aBoundingBox
toMutableArray:(NSMutableArray *)someArray
createClusterAnnotations:(BOOL)createClusterAnnotations
withProjectedClusterSize:(RMProjectedSize)clusterSize
andProjectedClusterMarkerSize:(RMProjectedSize)clusterMarkerSize
findGravityCenter:(BOOL)findGravityCenter
{
if (createClusterAnnotations)
{
double halfWidth = _boundingBox.size.width / 2.0;
compile:
[javac] Compiling 1 source file to /root/openfire/openfire_src/work/classes
[javac] /root/openfire/openfire_src/src/java/org/jivesoftware/openfire/auth/DefaultAuthProvider.java:106: cannot find symbol
[javac] symbol : variable CharSet
[javac] location: class org.jivesoftware.openfire.auth.DefaultAuthProvider
[javac] String jpassword = new String(Hex.encodeHex(cript.digest()), CharSet.forName("UTF-8"));
[javac] ^
[javac] /root/openfire/openfire_src/src/java/org/jivesoftware/openfire/auth/DefaultAuthProvider.java:106: internal error; cannot instantiate java.lang.String.<init> at java.lang.String to ()
[javac] String jpassword = new String(Hex.encodeHex(cript.digest()), CharSet.forName("UTF-8"));
compile:
[javac] Compiling 1 source file to /root/openfire/openfire_src/work/classes
[javac] /root/openfire/openfire_src/src/java/org/jivesoftware/openfire/auth/DefaultAuthProvider.java:64: cannot find symbol
[javac] symbol : class NoSuchAlgorithmException
[javac] location: class org.jivesoftware.openfire.auth.DefaultAuthProvider
[javac] public static String SHAsum(byte[] convertme) throws NoSuchAlgorithmException{
[javac] ^
[javac] /root/openfire/openfire_src/src/java/org/jivesoftware/openfire/auth/DefaultAuthProvider.java:70: cannot find symbol
[javac] symbol : class Formatter
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'caseSensitive'=>false,
'rules'=>array(
)
),
"F16":
"F24":{
"xstart":0.593,
"ystart":0.388,
"xdir":-0.191,
"ydir":-0.060,
"seats":24,
"rows":17,
"lowrow":1
},
//Standard row data
var std_seats = [
{
"section_name": "A",
"row_name": "1",
"seat_num": "1",
"last_seat": "20",
"num_seats": "20"
},
{
class FileManager
private $user
FileManager(int userid [,mixed options]) instantiates with a user name, should call the function setUser(id userid) below
FileManager(str user [,mixed options]) instantiates with a user name, should call the function below
setUser(str user [, mixed options]) - Calls the function below after fetching the ID of the user
setUser(int userid [, mixed options]) - Should set the user variable, and check to see if the current user is the one provided. This should clear all data for this object upon setting
getUser() - Return the user model that is loaded for this FM.