arc

Which one is more likely to succeed: clojure or arc?

Which one of the following new lisp implementations is more likely to gain the momentum and more mainstream acceptance, arc by Paul Graham or clojure by Rich hickey? They both launched at the same time, but seems there is more community interest in clojure so far, from both lisp and java folks. ...

What's happening with Arc?

Arc, if you don't know, is Paul Graham's "100 year language", or, more prosaically, new version of Lisp. It was heavily trailed on reddit (back when reddit was interesting), and an early version was released in January last year. But nothing much seems to have happened since then - the forum is virtually dead, and there's nothing new o...

Reloading files after changing source code.

I would like to add this code on my arc projects to reload automatically the sourcecode when a files changes. Where is the best place to put this code? http://arclanguage.org/item?id=2739 ...

How do you select Arcs inside a boundary in PostGIS?

I'm searching an answer for this question and all I found on http://postgis.refractions.net/documentation/manual-1.3/ch04.html#id2572194 is SELECT road_id, road_name FROM roads WHERE roads_geom && GeomFromText('POLYGON((...))',-1); should I put the boundary vertexes in this SQL replacing the '...' ? ...

Graphical web library which allows to click "arcs" on diagrams (see the screenshot)

I need a JavaScript library, or flash as well, which allows to connect events to "click" over "arcs" in graphics, see this picture: I've implemented my graphic through the JS-Graphs library but I can only intercept the "click" event on "nodes", not on "arcs". Can anybody help me?? Thanks. ...

Source code of well designed functional web apps?

What are examples of well designed functional (as opposed to object oriented) web apps that make their source code available? I am currently studying the Hacker News source but I'd like to see some other non-trivial examples, ideally in clojure. For MVC there are lots of Rails and PHP apps, frameworks, and tutorials to study - what is t...

Does Google's go-language address the problems in Paul's Graham's post 'Why Arc isn't Especially Object Oriented'?

Does Google's go-language (http://golang.org/) address the problems with languages addressed in Paul's Graham's post 'Why Arc isn't Especially Object Oriented'? (http://www.paulgraham.com/noop.html) ...

ARC SPARQL Endpoint - Get results in json

Hi, can anyone help me to figure out how to get query results back in json or xml etc when using the Arc sparql endpoint? I am using the following code to get the result of my query: $endPoint->handleQueryRequest($query); $result = $endPoint->getResult(); I have looked through the code and tried passing some paramaters - trial and...

How to draw an arc from radius and inner angle in Silverlight

Hi, In a silverlight 3 project I have to draw an arc programatically and I have radius of circle and inner angle of the arc. Could you please direct me to some related articles. Thanks in anticipation! Haris ...

HTML 5 Canvas performance

I'm just started on playing around with the canvas HTML5-object. For the sake of performance tests, I have made a little ping pong game. Are there any performance improvements I could use? The ball seems to be blue with a touch of red, but my declaration it should be yellow. How can I fix this? ...

C# Drawing Arc with 3 Points

Hi, I need to draw an arc using GraphicsPath and having initial, median and final points. The arc has to pass on them. I tried .DrawCurve and .DrawBezier but the result isn't exactly an arc. What can I do? SOLUTION: After a couple of hours of code writing I managed to draw what I wanted with this algorithm (give 3 Point a,b,c and a G...

Define a circle / arc animation in SVG

Does anyone know how to define an animated arc / circle in SVG, such that the arc starts at 0 degrees and ends at 360 degrees? ...

Draw a point a set distance away from a base point

Hey, I'm trying to figure out an algorithm for finding a random point a set distance away from a base point. So for example: This could just be basic maths and my brain not working yet (forgive me, haven't had my coffee yet :) ), but I've been trying to work this out on paper and I'm not getting anywhere. Thanks, Niall. ...

How do i get the x/y coordinates of the first and last points of the drawn arc relative to the top left corner of the canvas?

I have a square canvas with a width of 100 and a height of 100. Within that square I draw an arc like so: var canvas = document.getElementById('myCanvas'); var ctx = canvas.getContext('2d'); ctx.clearRect(0,0,100,100) // clears "myCanvas" which is 100pixels by 100 pixels ctx.beginPath(); ctx.arc( 50, 50, 30, 0, Math.PI*2/6 , false )...

Android: looking for a drawArc() method with inner & outer radius

I have the following custom view: This I have achieved by using the Canvas' drawArc() method. However, with this drawArc() method I cannot limit the arc's inner radius. What I'd like to have is something like this: where there is only an outer ring left. What I need is an drawArc() function where I can set the inner radius of the...

hacker news algorithm in php?

this is the hacker news ranking algorithm, which i think is a simple way of ranking things, espcially if users are voting on items, but i really dnt understand this, can this be converted to php, so i can understand it fully? ; Votes divided by the age in hours to the gravityth power. ; Would be interesting to scale gravity in a sli...