EzDevInfo.com

pulsar

Event driven framework for Python Pulsar — pulsar 1.0.4beta0 documentation

Difference between eclipse pulsar, mtj, me

what is difference between eclipse pulsar, eclipse mtj, and eclipse me ?


Source: (StackOverflow)

Is programming mobile devices using eclipse dead?

I cut my teeth so to speak with eclipse.

Learning Java and even programming mobile devices using Eclipse was a rewarding experince. My last and not so favorable encounter using this platform was Pulsar. But all references to it has disappeared in the new version of Eclipse called indigo. I just like to know if anyone still recommends eclipse when programming mobile device whether J2ME or any other device?


Source: (StackOverflow)

Advertisements

Quasar/Pulsar lein midje build errors on linux

I am trying to install Pulsar. I have lein version

idf@idf-Satellite-C55t-A ~/Documents/clojure/pulsar $ lein version
Leiningen 2.5.0 on Java 1.7.0_72 Java HotSpot(TM) 64-Bit Server VM
idf@idf-Satellite-C55t-A ~/Documents/clojure/pulsar $ 

I have JAVA_HOME set

idf@idf-Satellite-C55t-A ~/Documents/java/quasar $ echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle
idf@idf-Satellite-C55t-A ~/Documents/java/quasar $ 

when I do a lein midje on the git cloned directory, I get a bunch of errors. Not sure what I am doing wrong? I suspect that is has to do with installing the java Quasar first correctly, but I am not certain.

idf@idf-Satellite-C55t-A ~/Documents/clojure/pulsar $ lein midje
...
above here no errors

QUASAR WARNING: Assertions enabled. This may harm performance.
Reflection warning, midje/util/ecosystem.clj:40:12 - call to java.io.File ctor can't be resolved.
Reflection warning, midje/clojure/core.clj:86:17 - reference to field hasRoot can't be resolved.
Reflection warning, midje/util/pile.clj:109:9 - call to contains can't be resolved.
Reflection warning, midje/config.clj:19:32 - call to contains can't be resolved.
Reflection warning, midje/emission/clojure_test_facade.clj:26:19 - reference to field toString can't be resolved.
Reflection warning, midje/parsing/util/file_position.clj:59:5 - reference to field getFileName can't be resolved.
Reflection warning, midje/data/metaconstant.clj:43:5 - reference to field getNamespace can't be resolved.
Reflection warning, midje/checking/checkers/chatty.clj:60:20 - call to java.lang.Error ctor can't be resolved.
Reflection warning, midje/checking/checkers/simple.clj:85:24 - reference to field throwable can't be resolved.
Reflection warning, midje/data/compendium.clj:60:38 - call to indexOf can't be resolved.
Reflection warning, midje/util/scheduling.clj:10:5 - call to cancel can't be resolved.
Reflection warning, dynapath/defaults.clj:13:52 - reference to field getURLs can't be resolved.
Reflection warning, dynapath/defaults.clj:27:28 - call to addURL can't be resolved.
Reflection warning, dynapath/util.clj:30:22 - reference to field getParent can't be resolved.
Reflection warning, midje/util/bultitude.clj:62:17 - reference to field canRead can't be resolved.
Reflection warning, midje/util/bultitude.clj:193:22 - call to replaceAll can't be resolved.
Reflection warning, midje/util/bultitude.clj:194:22 - call to replaceAll can't be resolved.
Reflection warning, clj_time/core.clj:577:10 - reference to field getDayOfMonth can't be resolved.
Reflection warning, midje/data/project_state.clj:25:18 - reference to field getName can't be resolved.
Reflection warning, midje/data/project_state.clj:26:28 - reference to field getName can't be resolved.
Reflection warning, midje/data/project_state.clj:49:24 - reference to field getPath can't be resolved.
Reflection warning, midje/data/project_state.clj:73:3 - reference to field lastModified can't be resolved.
Reflection warning, midje/repl.clj:103:12 - call to java.lang.Error ctor can't be resolved.
Reflection warning, midje/repl.clj:388:12 - reference to field getMessage can't be resolved.
Reflection warning, midje/repl.clj:391:50 - reference to field getMessage can't be resolved.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Reflection warning, co/paralleluniverse/pulsar/actors.clj:737:7 - call to co.paralleluniverse.actors.behaviors.Supervisor$ChildSpec ctor can't be resolved.
Exception in Fiber "fiber-10000001" java.lang.Exception: my exception
    at co.paralleluniverse.pulsar.actors_test$eval9288$fn__9289$fn__9290$fn__9291$fn__9294.invoke(actors_test.clj:27)
    at co.paralleluniverse.pulsar.InstrumentedIFn.invoke(InstrumentedIFn.java:32)
    at co.paralleluniverse.pulsar.ClojureHelper.suspendableInvoke(ClojureHelper.java:183)
    at co.paralleluniverse.pulsar.ClojureHelper$3.run(ClojureHelper.java:170)
    at co.paralleluniverse.actors.PulsarActor.doRun(PulsarActor.java:90)
    at co.paralleluniverse.actors.Actor.run0(Actor.java:667)
    at co.paralleluniverse.actors.ActorRunner.run(ActorRunner.java:51)
    at co.paralleluniverse.actors.Actor.run(Actor.java:236)

and more errors...

So I downloaded the git repo of Quasar. First installing the system gradle using apt-get, and ran gradle inside the quasar directory. This gives me a different error:

idf@idf-Satellite-C55t-A ~/Documents/java/quasar $ gradle
sonatype username or password not set
Download http://repo1.maven.org/maven2/ch/raffael/pegdown-doclet/pegdown-doclet/1.1.1/pegdown-doclet-1.1.1.pom
Download http://repo1.maven.org/maven2/org/pegdown/pegdown/1.2.1/pegdown-1.2.1.pom
Download http://repo1.maven.org/maven2/net/sourceforge/plantuml/plantuml/7968/plantuml-7968.pom
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-java/1.1.4/parboiled-java-1.1.4.pom
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-core/1.1.4/parboiled-core-1.1.4.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm/4.1/asm-4.1.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-parent/4.1/asm-parent-4.1.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-tree/4.1/asm-tree-4.1.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/4.1/asm-analysis-4.1.pom
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-util/4.1/asm-util-4.1.pom
Download http://repo1.maven.org/maven2/ch/raffael/pegdown-doclet/pegdown-doclet/1.1.1/pegdown-doclet-1.1.1.jar
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-core/1.1.4/parboiled-core-1.1.4.jar
Download http://repo1.maven.org/maven2/org/ow2/asm/asm/4.1/asm-4.1.jar
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-tree/4.1/asm-tree-4.1.jar
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/4.1/asm-analysis-4.1.jar
Download http://repo1.maven.org/maven2/org/ow2/asm/asm-util/4.1/asm-util-4.1.jar
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-java/1.1.4/parboiled-java-1.1.4.jar
Download http://repo1.maven.org/maven2/org/pegdown/pegdown/1.2.1/pegdown-1.2.1.jar

FAILURE: Build failed with an exception.

* Where:
Build file '/home/idf/Documents/java/quasar/build.gradle' line: 185

* What went wrong:
A problem occurred evaluating root project 'quasar'.
> Could not resolve all dependencies for configuration ':quasar-actors:markdownDoclet'.
   > Artifact 'com.google.guava:guava:13.0.1@jar' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 13.114 secs
idf@idf-Satellite-C55t-A ~/Documents/java/quasar $ 

Source: (StackOverflow)

Getting started with android development on eclipse pulsar

I am just starting to get setup for android development. I have installed pulsar and the proper sdks I think. I want to develop for the droid x.

I can't find any information on how to create a new project using the installed sdks. Shouldn't there be a project type for android? Nothing like this is showing up.

Are there any tutorials for getting started using pulsar for android dev?


Source: (StackOverflow)

The method split(String) is undefined for the type String

I am using Pulse - the Plugin Manager for Eclipse and installed. I have the Eclipse 3.5 for mobile development(Pulsar) profile with a couple other profiles.

I realized that the split() method called on a string from code such as below:

String data = "one, two, three, four";
data.split(",");

generates the error: "The method split(String) is undefined for the type String". I am aware that the split() method did not exist before Java's JRE 1.4 and perhaps could be the cause of the problem. The problem is I don't think I have jre/sdk versions installed. Perhaps there's one in-built with the Pulsar profile and needs editing - but I couldn't tell what settings (and where) needs tweaking. I have checked Windows>Preferences>Java>Installed JREs and it's set to >= jre1.4.


Source: (StackOverflow)

Eclipse Pulsar, JavaME, and Hello World

I tried to post this over on the Eclipse Pulsar site, but it doesn't seem to want to give me access, so I thought I would try over here.

All I'm trying to do create a basic "hello world" application to test on multiple mobile phones as a proof of concept. I downloaded Eclipse Pulsar and the Samsung SDK (though I have this problem with any SDK) and I created a new MIDlet Project and ME MIDlet and selected the 'hello world' wizard and the resulting code produces these errors:

"the import org.eclipse cannot be resolved" on all of the imports.

I know I'm missing something basic, but I would have expected org.eclipse to already be on the build path. I tried adding eswt-converged.jar as and external JAR to the Libraries on the build path which fixes the import errors, but this seems like a hack and causes other problems.

So my question is: What step have I missed in creating the Project/MIDlet and is there a how-to online somewhere that gives examples on this stuff?

Thanks!


Source: (StackOverflow)

Agent/actor like constructs in clojure that operate on all messages received since last update

What's best way in clojure to implement something like an actor or agent (asynchronously updated, uncoordinated reference) that does the following?

  • gets sent messages/data
  • executes some function on that data to obtain new state; something like (fn [state new-msgs] ...)
  • continues to receive messages/data during that update
  • once done with that update, runs the same update function against all messages that have been sent in the interim

An agent doesn't seem quite right here. One must simultaneously send function and data to agents, which doesn't leave room for a function which operates on all data that has come in during the last update. The goal implicitly requires a decoupling of function and data.

The actor model seems generally better suited in that there is a decoupling of function and data. However, all actor frameworks I'm aware of seem to assume each message sent will be processed separately. It's not clear how one would turn this on it's head without adding extra machinery. I know Pulsar's actors accept a :lifecycle-handle function which can be used to make actors do "special tricks" but there isn't a lot of documentation around this so it's unclear whether the functionality would be helpful.

I do have a solution to this problem using agents, core.async channels, and watch functions, but it's a bit messy, and I'm hoping there is a better solution. I'll post it as a solution in case others find it helpful, but I'd like to see what other's come up with.


Source: (StackOverflow)

Error while running a midlet in Eclipse: no class found

i am using Eclipse pulsar for mobile developer and MOTODEV SDK and iDEN sdk for j2me (midp2.0).

Debuggin midlet in Eclipse gives an error: No Class Found.

Can anyone help me determine the source of this error?

!ENTRY org.eclipse.mtj.core 4 120 2010-08-05 04:26:53.009
!MESSAGE Couldn't connect to virtual machine
!STACK 0
java.io.IOException: Debugger launch time-out exceeded
    at org.eclipse.mtj.internal.core.launching.midp.EmulatorRunner.waitForRemoteDebugger(Unknown Source)
    at org.eclipse.mtj.internal.core.launching.midp.EmulatorRunner.createVirtualMachine(Unknown Source)
    at org.eclipse.mtj.internal.core.launching.midp.EmulatorRunner.runInDebug(Unknown Source)
    at org.eclipse.mtj.internal.core.launching.midp.EmulatorRunner.run(Unknown Source)
    at org.eclipse.mtj.internal.core.launching.midp.EmulatorLaunchConfigDelegate.launch(Unknown Source)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Source: (StackOverflow)

Eclipse j2me json parsing

i'm using eclipse pulsar for j2me apps . How to set up json parsing library for my project?

i tried to use json-simple but not clear about build with eclipse. Is there any other simple solution ?


Source: (StackOverflow)

Eclipse (Pulsar) packaging: How do I incorporate other projects into my jar?

I have a JavaME project in Eclipse (Pulsar 3.5; Galileo).

I have another project with common code in it in the same workspace and this is referenced from my app.

When I choose 'package app' it generates a jad/jar in the project's deployed folder, but the classes from the referenced project are not included.

Is it possible to include these classes into the final jar automatically?


Source: (StackOverflow)

Closing application in Android - delay problem

I programmed a button into my android app that called the finish() method when I click it. But somehow it does not close until after a 5-6 second delay.

I am recording sensor values for a particular movement of the phone. The problem is when there is a delay after I close, it records those unnecessary values and the analysis is messed up.

So any idea why the UI takes so long to respond? I am very new to Android and I can't find this online. I don't do too much computation- as and when sensors change I record the value onto a file in the sdcard memory. Sometimes if I run the program for too long, it just crashes and I don't know why.

Please help! I would also like to know if there's a manual way to kill through the computer? something like Ctrl+C for DOS?


Source: (StackOverflow)