Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Other Topics > Programming

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 06-22-2012, 09:26 PM   #4156
King of the sidebar
 
Neil S's Avatar
 
Join Date: Sep 2004
Location: Northern Virginia
Posts: 15,949
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by n00b590 View Post
All,
This is my favorite thread on 2+2. Keep up the good posting.

unlucky,
So you haven't figured out how to use the data you have for the NFL and yet you're already moving on to NCAAF? Good luck, Grasshopper.
Well he went quickly beyond identifying fundamental market inefficiencies to move on straight to creating his own model from scratch, so yeah.
Neil S is offline   Reply With Quote
Old 06-22-2012, 09:32 PM   #4157
banned
 
Join Date: May 2012
Posts: 163
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Neil S View Post
Well he went quickly beyond identifying fundamental market inefficiencies to move on straight to creating his own model from scratch, so yeah.
sorry neil i dont understnad what do youmean
unluckyboy is offline   Reply With Quote
Old 06-22-2012, 09:33 PM   #4158
King of the sidebar
 
Neil S's Avatar
 
Join Date: Sep 2004
Location: Northern Virginia
Posts: 15,949
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by unluckyboy View Post
sorry neil i dont understnad what do youmean
You were getting hints over in SB about things you can do that don't require massive data mining and statistical analysis.
Neil S is offline   Reply With Quote
Old 06-22-2012, 09:35 PM   #4159
banned
 
Join Date: May 2012
Posts: 163
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

neil that stuff is boring i am not some clown steam chaser i will be a pro betting derivatives
unluckyboy is offline   Reply With Quote
Old 06-22-2012, 09:44 PM   #4160
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 13,905
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

notsureifsrs.jpg
tyler_cracker is offline   Reply With Quote
Old 06-22-2012, 09:45 PM   #4161
King of the sidebar
 
Neil S's Avatar
 
Join Date: Sep 2004
Location: Northern Virginia
Posts: 15,949
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by unluckyboy View Post
neil that stuff is boring i am not some clown steam chaser i will be a pro betting derivatives
That's kinda like saying you're going to play poker without caring about concepts like pot odds and table selection.
Neil S is offline   Reply With Quote
Old 06-22-2012, 11:59 PM   #4162
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: Why didn't I use Clojure instead?
Posts: 16,798
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by daveT View Post
I'm really stuck and irritated.
I figured it out:

>>>>> lein deps

Which imports the lein dependencies into the folder.

Then you head on over to localhost8080 and find a page that says "Noir is up and running... time to start building some websites!"

Except you would have absolutely no idea where that came from because it has zero connection to anything you have written.

Then it says "click here and see you site!" and that finally gives a little hint.

Feels like I'm dealing with David Bowie in the Labyrinth.

Actually, when I think about it, this makes perfect sense, except that the file I need to modify is at c:\lien\my-website\src\my-website\views\welcome.clj

I think that's how it works so far.
daveT is offline   Reply With Quote
Old 06-23-2012, 03:20 AM   #4163
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: Why didn't I use Clojure instead?
Posts: 16,798
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Okay, now I'm getting tired of this.

So, two issues seem to creep up.

1- Apparently some other program likes to listen in on port 8080, which is easy enough to fix.

2- Error: java.io.FileNotFoundException: C:\lein\my-website\resources\public (Access is de
nied)


Quote:
c:\lein\my-website>lein run
Warning: *classpath* not declared dynamic and thus is not dynamically rebindable
, but its name suggests otherwise. Please either indicate ^:dynamic *classpath*
or change the name.
Starting server...
2012-06-23 00:20:33.291:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2012-06-23 00:20:33.307:INFO::jetty-6.1.25
2012-06-23 00:20:33.400:INFO::Started SocketConnector@0.0.0.0:8778
Server started on port [8778].
You can view the site at http://localhost:8778
#<Server Server@6bedd91b>
2012-06-23 00:21:01.905:WARN::/
java.io.FileNotFoundException: C:\lein\my-website\resources\public (Access is de
nied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.jav a:138)
at ring.util.servlet$set_body.invoke(servlet.clj:96)
at ring.util.servlet$update_servlet_response.invoke(s ervlet.clj:124)
at ring.adapter.jetty$proxy_handler$fn__707.invoke(je tty.clj:18)
at ring.adapter.jetty.proxy$org.mortbay.jetty.handler .AbstractHandler$0.
handle(Unknown Source)
at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:1
52)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:54
2)
at org.mortbay.jetty.HttpConnection$RequestHandler.he aderComplete(HttpCo
nnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.r un(SocketConnector.
java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run (QueuedThreadPool.j
ava:582)
I can't find anything useful on this issue. I've been searching for hours on this one.

The only thing that caused all of this to start is changing or adding files to the file system (not hacking core). If I do the default installation, everything works fine, but go through what the site says to do, and the whole thing bugs out and throws errors.

I though the drupal documentation and "how to" was bad when I first started using it: Noir / Clojure is specifically made to crush your soul and make you quit.

Last edited by daveT; 06-23-2012 at 03:22 AM. Reason: guess this will be my first post on SO. :(
daveT is offline   Reply With Quote
Old 06-23-2012, 03:53 AM   #4164
banned
 
Join Date: May 2012
Posts: 163
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

damn that was a grind. done.
unluckyboy is offline   Reply With Quote
Old 06-23-2012, 05:51 AM   #4165
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: Why didn't I use Clojure instead?
Posts: 16,798
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Okay, figured that one out, and of course it was my fault. I sort of rushed through the initial starter tutorial and was deleting the boiler-plate-shoe-string-reactive-clj-boot-gem-strap-off-include line of code that kind of makes everything function correctly.

Now it works as planned and is a pure joy to work with. The lesson is once again re-learned until next time. Of course, the default boiler-- is not always correct, so with every step there is some work to do as far as looking through the include files and other stuff to make sure there's nothing amiss. Zero room for errors at all in this program.
daveT is offline   Reply With Quote
Old 06-23-2012, 07:19 AM   #4166
Carpal \'Tunnel
 
clowntable's Avatar
 
Join Date: Jun 2006
Location: 39, 46, 56, 59, 191
Posts: 39,728
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

daveT using this thread as a rubber duck like a pro
clowntable is offline   Reply With Quote
Old 06-23-2012, 10:39 AM   #4167
Pooh-Bah
 
TheIrishThug's Avatar
 
Join Date: Jan 2005
Location: Belligerent and numerous
Posts: 5,212
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Rubber Ducking FTW!!
TheIrishThug is offline   Reply With Quote
Old 06-23-2012, 02:27 PM   #4168
Carpal \'Tunnel
 
Ryanb9's Avatar
 
Join Date: Aug 2006
Location: NEVA!
Posts: 6,369
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Hello Ryan,
By the sounds of it we'd love to have you on the team!
And we've taking it out of open source and are only using Codeplex to find developers!
Is this a no-go then for the perks you guys have been talking about of working on an open source project? (bump)
Ryanb9 is offline   Reply With Quote
Old 06-23-2012, 09:23 PM   #4169
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: Why didn't I use Clojure instead?
Posts: 16,798
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

The implications of this toy programming is mind-blowing:


Code:
(ns webby.views.welcome
  (:require [webby.views.common :as common])
  
  (:use [noir.core :only [defpage]]
        [hiccup.core]
		[hiccup.form-helpers]))

(defpage "/:page" {:keys [page]}
         (common/layout
           [:h1 "Hello!"]
		   [:p "you are on page " page]
		   [:p "see ya!"]))
			   
(def page {:1 1 :2 2 :3 3})
The output is:

go to this page: http://localhost:8080/1

and see:

Quote:
Hello!
you are on page 1
see ya!
then go to this page: http://localhost:8080/2

and see:

Quote:
Hello!
you are on page 2
see ya!
then go to this page: http://localhost:8080/3

and see:

Quote:
Hello!
you are on page 3
see ya!
Not sure how special this is. This must be available for PHP, Ruby, etc..?
daveT is offline   Reply With Quote
Old 06-23-2012, 09:59 PM   #4170
King of the sidebar
 
Neil S's Avatar
 
Join Date: Sep 2004
Location: Northern Virginia
Posts: 15,949
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Programmatic routing is nifty the first time you run into it in any language, yes!
Neil S is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 07:24 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive