EzDevInfo.com

swarm

JavaScript replicated model (M of MVC) library Latest Posts – Swarm.js swarm - reactive data sync middleware

Perforce Swarm, how to access outside of local network?

I just deployed the Helix Evaluation on my vSphere environment. I can access Perforce just fine outside of my LAN with the help of port forwarding. However Swarm doesn't use ports such as 'perforce-server-ip/swarm/'. How can I access Swarm outside of my LAN so my global team mates can use it? Thanks!


Source: (StackOverflow)

Docker : Linking containers on different host machines

How can i connect two containers on different host machines in Docker ? I need to use data from mongodb on one host by a nodejs application on another host ? Can any one give me an example like this?


Source: (StackOverflow)

Advertisements

How to integrate TeamCity with Perforce Swarm test run status?

Swarm can call a URL, and provide the changelist number and two callback URLs: one to report test failure and one to report success (Swarm integration API). Is it possible to integrate this API with Teamcity builds? Teamcity definitely supports remote runs for a given Perforce changelist, so the question is probably whether it can call back the provided URLs...


Source: (StackOverflow)

Search private venues with Foursquare API

I'm using Foursquare API search venues call in my app for getting places to check-in. Unfortunatelly it seems this search result doesn't include private venues (like homes etc.). I saw other 3rd party apps working with private venues in search results, so it should be possible. But how?


Source: (StackOverflow)

URL Scheme for Swarm

How to open the URL Scheme of swarm applications for checkins in some place?

I just want to use swarm app in my application.


Source: (StackOverflow)

Two servers in Perforce Swarm

We have two Perforce P4D instances running. Is it possible to integrate more than one P4D into Perforce Swarm? And if yes, how? I can not find something in the documentation about it.


Source: (StackOverflow)

Get all checkins of venue

I'm trying to develop a web application to show current checkins to the venue owner. Wenue owner will login to application and see his recent checkins. Who and when checked in.

I have tried venues/herenow (https://developer.foursquare.com/docs/venues/herenow) but this call gives only checkins of friends and friends of friends.

Is there a way to get all recent checkins.


Source: (StackOverflow)

Using Swarm Leaderboard for Android with LibGDX. Eclipse debug version working, exported apk version not working

If you are here, then like me you have scoured the entire internet looking for reasons why the latest version of the Swarm SDK is causing your exported and installed APK to crash, but working flawlessly while debugging via Eclipse.

Error message from Google Crash / ANR report:

android.content.ActivityNotFoundException: Unable to find explicit activity class
{com.robertmackness.jumprx.android/com.swarmconnect.de}; 
have you declared this activity in your AndroidManifest.xml?

I have tried the following fixes after way too much time Googling and reading official documents:

  1. Explicitly defining the activity in the Android manifest.

  2. As above but ensuring that manifestmerger.enabled=false.

  3. Removed definitions for the activity in my android manifest, set manifestmerger.enabled=true and ensure that this line was the second (after enabling pro-guard)

  4. Ensured that the project imported the library properly and ensured that the 'Properties->Java Build Path -> Order and Export -> SwarmConnect.jar was checked.

Again, all of the above solutions kept the debug app working but the exported apk broken in various ways.

Submitting solution below.


Source: (StackOverflow)

Foursquare Page ‘Check-in’ - Discontinued

Foursquare just completely disabled the ‘Check-In’ feature for Pages. Only personal account can now perform a ‘check-in’. (In a Swarm App)

Using your 'WP Quadratum' plugin on my website https://www.airsmolik.com/contact/ I’ve been affected by this change.

I may now change the API settings of plugin to show check-ins of my personal account rather than those of my page. (Since I can’t check-in with page)

Would anybody know how to do it? I guess It’s got to do something with Foursquare or Swarm API. But I somehow didn’t find out how …

Thank you

Libor Smolik


Source: (StackOverflow)

Particle Swarm Optimzation

I have a question in resolving a traffic problem using the PSO algorithm. Supposing we have n vehicles (limiting it here in just four vehicules) theses vehicles have the same destination. They have different starting cities.(suppose we know their positions (x,y)) D: the distance between the starting city and the destination. d: the max distance it can travel before it runs out of gas. D >> d : each vehicle have to refuel N times with N=D/d The path that every vehicle should follow is undefined. Task: We are searching for the minimal number of gas stations so that every vehicle doesn’t break down (because of gas of course) . what is the number of gas stations and what are their locations.


Source: (StackOverflow)

Docker and high performance cluster (HPC) ability

i'm searching a possibility to get the power of 4 HPC-Nodes combined. The nodes are exactly the same, 32 Cores, 128GB RAM. The idea is to give students of our university the possibility to deploy there containers and run there programs on it.

I've read something about Docker Machine and Swarm, but it's more like Highly Availability.. Any ideas? :)

Kind regards, Sub


Source: (StackOverflow)

Swarm checkin from url

I would like to have an url where I can perform a foursquare/swarm check in with just one click.

Example: I'm coming home, I click a button just once, on my domotica-panel, and I'm checked in. That's it. I can put http-requests on that panel.

Is that possible? I can only find a way to be linked to the Swarm-app, where I have to push the checkin button. I prefer staying on the domotica-screen...


Source: (StackOverflow)

correct form to import library to Android Studio

Well , i tried to do http://swarmconnect.com/admin/docs/setup tutorial but it's in eclipse , so i tried to do in Android Studio but i couldn't do it. it's what i have but all what i do isn't work. I know the problem is i don't know how i need to import the library (swarm proyect).

If you can tell me what i did wrong or what I have to do from the beginning step by step if i start with my game (project) finished.

Thanks for your help.

I had the project like this. http://postimg.org/image/l2xa95czt/

I have this in AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mygdx.game.android"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="22" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/GdxTheme" >
        <activity
            android:name="com.mygdx.game.android.AndroidLauncher"
            android:label="@string/app_name" 
            android:screenOrientation="landscape"
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:configChanges="orientation|keyboardHidden"
            android:label="Swarm"
            android:name="com.swarmconnect.SwarmMainActivity"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateHidden"/>

        <service
            android:name="com.swarmconnect.NotificationService"
            android:process=":swarm"/>



    </application>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

    <!-- Required if using the Swarm Store features. Not required otherwise. -->
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
</manifest>

build.gragle

buildscript {
    repositories {
        mavenCentral()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.2.3'
    }
}

allprojects {
    apply plugin: "eclipse"
    apply plugin: "idea"

    version = '1.0'
    ext {
        appName = 'juegoPONG'
        gdxVersion = '1.6.1'
        roboVMVersion = '1.2.0'
        box2DLightsVersion = '1.3'
        ashleyVersion = '1.4.0'
        aiVersion = '1.5.0'
    }

    repositories {
        mavenCentral()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
        maven { url "https://oss.sonatype.org/content/repositories/releases/" }
    }
}

project(":desktop") {
    apply plugin: "java"


    dependencies {
        compile project(":core")
        compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
        compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
        compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
    }
}

project(":android") {
    apply plugin: "android"

    configurations { natives }

    dependencies {
        compile project(":core")
        compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
        compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
        compile fileTree(dir: '../libs', include: '*.jar')
        //compile project(":SwarmConnect")
    }
}

project(":core") {
    apply plugin: "java"


    dependencies {
        compile "com.badlogicgames.gdx:gdx:$gdxVersion"
        compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
        compile fileTree(dir: '../libs', include: '*.jar')
    }
}




tasks.eclipse.doLast {
    delete ".project"
}

Output error

06-12 06:50:09.619    6008-6008/com.mygdx.game.android D/dalvikvm﹕ VFY: replacing opcode 0x60 at 0x0031
06-12 06:50:09.623    6008-6008/com.mygdx.game.android I/dalvikvm﹕ DexOpt: unable to optimize static field ref 0x1b81 at 0x16 in Lcom/swarmconnect/UiConf;.a
06-12 06:50:09.635    6008-6008/com.mygdx.game.android I/dalvikvm﹕ DexOpt: unable to optimize static field ref 0x1b64 at 0x1d in Lcom/swarmconnect/UiConf;.a
06-12 06:50:09.647    6008-6008/com.mygdx.game.android I/dalvikvm﹕ DexOpt: unable to optimize static field ref 0x1b80 at 0x34 in Lcom/swarmconnect/UiConf;.a
06-12 06:50:09.647    6008-6008/com.mygdx.game.android I/dalvikvm﹕ DexOpt: unable to optimize static field ref 0x1b2c at 0x37 in Lcom/swarmconnect/UiConf;.a
06-12 06:50:09.647    6008-6008/com.mygdx.game.android I/System.out﹕ primero2
06-12 06:50:09.695    6008-6008/com.mygdx.game.android I/AndroidInput﹕ sensor listener setup
06-12 06:50:09.695    6008-6008/com.mygdx.game.android I/System.out﹕ primero11
06-12 06:50:09.699    6008-6008/com.mygdx.game.android I/Swarm﹕ Swarm Version v2
06-12 06:50:09.783    6008-6032/com.mygdx.game.android I/SwarmIOClient﹕ SwarmIO ClientID: c4e6dff3-e70b-4a7f-9988-121f3574fec5
06-12 06:50:09.823    6008-6010/com.mygdx.game.android D/dalvikvm﹕ GC_CONCURRENT freed 364K, 10% free 8059K/8903K, paused 17ms+29ms, total 63ms
06-12 06:50:09.831    6008-6008/com.mygdx.game.android D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 22ms
06-12 06:50:10.499    6008-6008/com.mygdx.game.android I/System.out﹕ primero10
06-12 06:50:10.735    6008-6008/com.mygdx.game.android I/AndroidInput﹕ sensor listener tear down
06-12 06:50:10.771    6008-6008/com.mygdx.game.android I/System.out﹕ primero3
06-12 06:50:10.851    6008-6008/com.mygdx.game.android W/dalvikvm﹕ VFY: unable to resolve static field 7038 (HoloTheme) in Lcom/swarmconnect/R$style;
06-12 06:50:10.895    6008-6008/com.mygdx.game.android D/dalvikvm﹕ VFY: replacing opcode 0x60 at 0x0003
06-12 06:50:10.971    6008-6008/com.mygdx.game.android D/AndroidRuntime﹕ Shutting down VM
06-12 06:50:10.991    6008-6008/com.mygdx.game.android W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0xa62d1288)
06-12 06:50:11.135    6008-6008/com.mygdx.game.android E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.NoClassDefFoundError: com.swarmconnect.R$style
            at com.swarmconnect.SwarmMainActivity.onCreate(Unknown Source)
            at android.app.Activity.performCreate(Activity.java:5008)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
            at android.app.ActivityThread.access$600(ActivityThread.java:130)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:4745)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
            at dalvik.system.NativeStart.main(Native Method)
06-12 06:50:12.771    6008-6037/com.mygdx.game.android D/dalvikvm﹕ GC_FOR_ALLOC freed 385K, 10% free 8231K/9095K, paused 25ms, total 25ms
06-12 06:50:12.823    6008-6010/com.mygdx.game.android D/dalvikvm﹕ GC_CONCURRENT freed 14K, 10% free 8257K/9095K, paused 13ms+13ms, total 33ms
06-12 06:50:13.059    6008-6037/com.mygdx.game.android D/dalvikvm﹕ GC_FOR_ALLOC freed 436K, 10% free 8372K/9287K, paused 8ms, total 8ms
06-12 06:50:13.079    6008-6010/com.mygdx.game.android D/dalvikvm﹕ GC_CONCURRENT freed 60K, 10% free 8365K/9287K, paused 2ms+1ms, total 6ms

AndroidLauncher.java

import android.os.Bundle;

import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.mygdx.game.Main;
import com.swarmconnect.Swarm;
import com.swarmconnect.SwarmLeaderboard;

public class AndroidLauncher extends AndroidApplication {




    @Override
    protected void onCreate (Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
        initialize(new Main(), config);
        System.out.println("primero1");

        Swarm.setActive(this);
        System.out.println("primero2");


    }

    public void onResume() {
        super.onResume();
        Swarm.setActive(this);
        System.out.println("primero11");
        Swarm.init(this, 17921, "0b123ca0df843572182306db3b1675aa");
        SwarmLeaderboard.submitScore(19655, 10);
        System.out.println("primero10");
    }

    public void onPause() {
        super.onPause();
        Swarm.setInactive(this);
        System.out.println("primero3");
    }




}

Source: (StackOverflow)

Setting up an Apache server with Perforce Swarm and a Jenkins proxy

I have an Apache server that serves Perforce Swarm on SSL and am trying to set up a reverse proxy for access to Jenkins on the same domain. I'm trying to get https://mydomain.com to go to swarm and https://mydomain.com/ci to go to jenkins (or even something like https://mydomain.com:8080).

Jenkins was running perfectly before setting up the SSL requirement but now I'm getting 400's on direct requests to the port and 404's on swarm when trying to go there, here is the current state of my vhost file:

<VirtualHost *:80>
ServerName _mydomain.com_
ServerAlias localhost
ErrorLog "/var/log/apache2/swarm.error_log"
CustomLog "/var/log/apache2/swarm.access_log" common
DocumentRoot "/opt/perforce/swarm/public"
<Location />
    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R]
</Location>

<Directory "/opt/perforce/swarm/public">
    AllowOverride All
    Require all granted
</Directory>

<VirtualHost *:443>
    ServerName _mydomain.com_
    ServerAlias localhost
    ErrorLog "/var/log/apache2/swarm.error_log"
    CustomLog "/var/log/apache2/swarm.access_log" common
    DocumentRoot "/opt/perforce/swarm/public"
    SSLEngine On
    SSLCertificateFile "/etc/ssl/certs/_mydomain.com_.crt"
    SSLCertificateKeyFile "/etc/ssl/private/_mydomain.com_.key"
    <Location />
        SSLRequireSSL On
        SSLVerifyClient optional
        SSLVerifyDepth 1
        SSLOptions +StdEnvVars +StrictRequire
    </Location>
    <Directory "/opt/perforce/swarm/public">
        AllowOverride All
        Require all granted
    </Directory>
    ProxyRequests     Off
    ProxyPreserveHost On
    <Proxy https://localhost:8080/ci*>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass /ci/ https://localhost:8080/ci/ nocanon
    ProxyPassReverse /ci/ https://localhost:8080/ci/ 
</VirtualHost>

Any help would be greatly appreciated.


Source: (StackOverflow)

Foursquare API: Syntax for using the time parameter in foursquare venues/explore

I am trying to use the time parameter for the api : https://api.foursquare.com/v2/venues/explore?near=San Francisco&time=5 pm. I want to know what value to assign to 'time' parameter


Source: (StackOverflow)