On Wed, Jul 1, 2009 at 2:16 PM, Mark Essel <mes...@gmail.com> wrote:

>
> Thanks David. I'm going with some direct calls for simplicity (along
> the path you suggested).
> along the lines of:
>
> val rssFeed = XML.load( (new URL
> (feedUrl)).openConnection.getInputStream )
>
> One more oddity, I'm getting problems compiling normal scala code but
> I can build lift projects (with scala inside them).


No clue about this... sorry.


>
>
> Something that I need to add in the config file like a path to the
> scala binaries? (installed it in windows default spot)
> for netbeans.conf
> the netbeans_default_options var, adding
> -J-Dscala.home=SCALA_HOME
> where's SCALA_HOME supposed to point to?
> I tried:
> -D\"c:\Users\Dude Jones\.netbeans\6.7rc3\scala\scala-2.7.3.final\\"
> where the binaries are no luck
>
> Getting the error:
> init:
> deps-jar:
> Compiling 1 source file to C:\Mark\misc\EntrepreneurInfo
> \IntelligentAdvertisingSoftware\testo\build\classes
> Could not connect to compilation daemon.
> org.netbeans.core.execution.ExitSecurityException: Exit from within
> execution engine, normal
>        at org.netbeans.core.execution.SecMan.checkExitImpl
> (SecMan.java:85)
>        at org.netbeans.core.execution.SecMan$PrivilegedCheck.run
> (SecMan.java:160)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at org.netbeans.core.execution.SecMan$PrivilegedCheck.check
> (SecMan.java:175)
>        at org.netbeans.core.execution.SecMan$PrivilegedCheck.checkExit
> (SecMan.java:170)
>        at org.netbeans.core.execution.SecMan.checkExit(SecMan.java:
> 69)
>        at org.netbeans.TopSecurityManager.checkExit
> (TopSecurityManager.java:149)
>        at java.lang.Runtime.exit(Runtime.java:88)
>        at java.lang.System.exit(System.java:904)
>        at scala.Predef$.exit(Predef.scala:81)
>        at scala.tools.nsc.CompileSocket.fatal(CompileSocket.scala:53)
>        at scala.tools.nsc.CompileSocket.getPort(CompileSocket.scala:
> 175)
>        at scala.tools.nsc.CompileSocket.getsock$1(CompileSocket.scala:
> 206)
>        at scala.tools.nsc.CompileSocket.getOrCreateSocket
> (CompileSocket.scala:227)
>        at scala.tools.nsc.StandardCompileClient.main0
> (CompileClient.scala:94)
>        at scala.tools.ant.FastScalac.execute(FastScalac.scala:96)
>        at org.apache.tools.ant.UnknownElement.execute
> (UnknownElement.java:288)
>        at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown
> Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.tools.ant.dispatch.DispatchUtils.execute
> (DispatchUtils.java:106)
>        at org.apache.tools.ant.Task.perform(Task.java:348)
>        at org.apache.tools.ant.taskdefs.Sequential.execute
> (Sequential.java:62)
>        at org.apache.tools.ant.UnknownElement.execute
> (UnknownElement.java:288)
>        at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown
> Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.tools.ant.dispatch.DispatchUtils.execute
> (DispatchUtils.java:106)
>        at org.apache.tools.ant.Task.perform(Task.java:348)
>        at org.apache.tools.ant.taskdefs.MacroInstance.execute
> (MacroInstance.java:394)
>        at org.apache.tools.ant.UnknownElement.execute
> (UnknownElement.java:288)
>        at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown
> Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.tools.ant.dispatch.DispatchUtils.execute
> (DispatchUtils.java:106)
>        at org.apache.tools.ant.Task.perform(Task.java:348)
>        at org.apache.tools.ant.Target.execute(Target.java:357)
>        at org.apache.tools.ant.Target.performTasks(Target.java:385)
>        at org.apache.tools.ant.Project.executeSortedTargets
> (Project.java:1337)
>        at org.apache.tools.ant.Project.executeTarget(Project.java:
> 1306)
>        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
> (DefaultExecutor.java:41)
>        at org.apache.tools.ant.Project.executeTargets(Project.java:
> 1189)
>        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
> (BridgeImpl.java:278)
>        at org.apache.tools.ant.module.run.TargetExecutor.run
> (TargetExecutor.java:497)
>        at org.netbeans.core.execution.RunClassThread.run
> (RunClassThread.java:151)
> C:\Mark\misc\EntrepreneurInfo\IntelligentAdvertisingSoftware\testo
> \nbproject\build-impl.xml:405: The following error occurred while
> executing this line:
> C:\Mark\misc\EntrepreneurInfo\IntelligentAdvertisingSoftware\testo
> \nbproject\build-impl.xml:229: Compile failed because of an internal
> compiler error (Exit from within execution engine, normal); see the
> error output for details.
> BUILD FAILED (total time: 2 seconds)
>
>
>
>
>
> On Jun 30, 10:09 am, David Pollak <feeder.of.the.be...@gmail.com>
> wrote:
> > Personally, I'd use Scala's XML parsing to parse the feed... skip the
> > external library.
> > You may also want to look at the ESME codehttp://
> incubator.apache.org/esme/There's<http://incubator.apache.org/esme/There%27s>an
>  RSS reader and a Twitter
> > poller in there.  The code is Apache
> > 2.0 license, so you can use it without any license-related concerns.
> >
> >
> >
> >
> >
> > On Tue, Jun 30, 2009 at 6:37 AM, Mark Essel <mes...@gmail.com> wrote:
> >
> > > Thanks Tim. will definitely check out the lib (not sure of licensing
> > > issues, plan on developing a product with it)
> >
> > > On Jun 30, 4:16 am, Timothy Perrett <timo...@getintheloop.eu> wrote:
> > > > mark,
> >
> > > > take a look at:http://is.gd/1iUJN
> >
> > > > That should provide you some guidance. I notice from your example
> your
> > > > trying to parse the twitter feed? Perhaps if you want to do something
> > > > with twitter you should consider a proper twitter api lib:
> > >http://code.google.com/p/java-twitter/
> >
> > > > Cheers, Tim
> >
> > > > On Jun 30, 3:33 am, Mark Essel <mes...@gmail.com> wrote:
> >
> > > > > trying to conjure up a similar functioning piece of code in scala
> to
> > > > > grab my status from twitter.
> >
> > > > > (php)
> > > > > $username = "victusfate";
> > > > > $feed = "http://search.twitter.com/search.atom?q=from:"; .
> $username .
> > > > > "&rpp=1";
> > > > > //echo $feed;
> > > > > function parse_feed($feed) {
> > > > >     $stepOne = explode("<content type=\"html\">", $feed);
> > > > >     $stepTwo = explode("</content>",$stepOne[1]);
> > > > >     $tweet = $stepTwo[0];
> > > > >     $tweet = str_replace("&lt;", "<", $tweet);
> > > > >     $tweet = str_replace("&gt;", ">", $tweet);
> > > > >     return $tweet;}
> >
> > > > > $twitterFeed = file_get_contents($feed);
> > > > > echo stripslashes($prefix) . parse_feed($twitterFeed) .
> stripslashes
> > > > > ($suffix);
> >
> > > > > (.scala file)
> > > > >       var username = "victusfate"
> > > > >       var feed = "http://search.twitter.com/search.atom?q=from:"; +
> > > > > username + "&rpp=1"
> > > > >       <span>{ feed }</span>
> >
> > > > > stuck here tried Rome, and various other feed fetching libraries
> > > > > without much luck (very new to the language and setup)
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Git some:http://github.com/dpp
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to