code logs -> 2012 -> Thu, 26 Jul 2012< code.20120725.log - code.20120727.log >
--- Log opened Thu Jul 26 00:00:17 2012
00:00 You're now known as TheWatcher[T-2]
00:02 Netsplit *.net <-> *.split quits: cpux, Orthia, @Vornicus, Namegduf, Tarinaky, ShellNinja, Syloq_Home, @Vash, Nemu, @McMartin, (+4 more, use /NETSPLIT to show all of them)
00:02 Netsplit *.net <-> *.split quits: Attilla, froztbyte, @himi, Derakon, jerith, io\gone, @Kindamoody[zZz], Rhamphoryncus, @Tamber, RichyB
00:03 Netsplit over, joins: Moltare, Orthia, ToxicFrog, Reiver, Syloq_Home, Tarinaky, ShellNinja, Nemu, cpux, &McMartin (+4 more)
00:03 Netsplit over, joins: RichyB, @Tamber, &jerith, @himi, io\gone, &Derakon, froztbyte, @Kindamoody[zZz], Rhamphoryncus, Attilla
00:04 io\gone is now known as io|SPAMM
00:04 You're now known as TheWatcher[zZzZ]
00:05 Reiver [Reiver@5B433A.3CF6C7.65A795.99F9F5] has quit [Connection reset by peer]
00:06 * ToxicFrog eyes SA.
00:07
< ToxicFrog>
Oh dear. This question should probably have been posted in Coding Horrors, not General Programming.
00:08
< ToxicFrog>
Since it basically boils down to "we have a PHP-based system and need a templating language comprehensible to non-programmers; how do I implement a limited subset of PHP in PHP without actually implementing a limited subset of PHP in PHP?"
00:08
< ToxicFrog>
I don't think he realizes that's what he's asked, though.
00:08
< RichyB>
You... don't?
00:08
< RichyB>
It's fine, it's fine. PHP is mostly written by nonprogrammers anyway.
00:09
< RichyB>
I include the implementation in that statement too.
00:09 Netsplit *.net <-> *.split quits: cpux, Orthia, @Vornicus, Namegduf, Tarinaky, ShellNinja, Syloq_Home, @Vash, Nemu, @McMartin, (+3 more, use /NETSPLIT to show all of them)
00:10 Netsplit over, joins: Moltare, Orthia, ToxicFrog, Syloq_Home, Tarinaky, ShellNinja, Nemu, cpux, &McMartin, @Vash (+3 more)
00:15 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
00:24 Nemu [NeophoxProd@Nightstar-f29013ce.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
00:53 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
02:18 Kindamoody[zZz] is now known as Kindamoody
02:29 Attilla [Obsolete@Nightstar-71866fd9.as43234.net] has quit [Ping timeout: 121 seconds]
02:29
< Rhamphoryncus>
Yay. Do I want complexity A or complexity B? >.<
02:31
< Rhamphoryncus>
option A means an odd number of rows of hexagons between pentagons. Can't evenly split that into two (obviously), so I'd have two sides plus a filler. The filler means extra complexity
02:34
< Rhamphoryncus>
option B avoids that by using a geodesic dual with an even number of rows of hexagons, so they can be split. It does this by having a slight twist, so none of the verticies line up in an obvious fashion. The math for calculating verticies is the other complexity
02:35
< Rhamphoryncus>
There is a certain elegance to that twist. It makes everything line up less, giving a more organic feel
02:35
< Rhamphoryncus>
But it seems to be a much worse complexity
03:13
<~Vornicus>
Can you Bake?
03:16
< Rhamphoryncus>
meaning?
03:16
<~Vornicus>
like, can you bake the coordinates once and then use them forever more?
03:17
<~Vornicus>
--whether it be dev side, or user side?
03:17
< Rhamphoryncus>
Not quite
03:18
< Rhamphoryncus>
Since map size is configurable
03:18
< Rhamphoryncus>
I could get close, but the whole approach is questionable
03:36
<~Vornicus>
(I think you can get to, uh... I'm pretty sure you can store just 1/30 of the full data set)
03:41 io|SPAMM is now known as iospace
03:59
< Rhamphoryncus>
My demo at the moment has 3840 triangles. It is by no means playable. Playable will be on the scale of a billion. So... :)
04:00 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has joined #code
04:19 * McMartin doodles Android UI attempts.
04:19
<&McMartin>
This is hard.
04:25 iospace is now known as iospacedout
04:33 Kindamoody is now known as Kindamoody|movie
05:04 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has quit [Client closed the connection]
05:05 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has joined #code
05:06
<~Vornicus>
So... no. Okay, new plan.
05:08 * Vornicus hunts up some picture.
05:10
<~Vornicus>
So what you're doing, you're using a triangle that's skewed against a grid of smaller triangles, and projecting that out.
05:13
<~Vornicus>
What if you could figure out the points where the smaller-triangle grid crosses the big triangle. Given the six points where the grid lines for a particular coordinate meet the edges of the big triangles, it's 6 cross products, a vector sum, and a normalize to get a coordinate.
05:15
<~Vornicus>
Which I'll admit is a little more work than you'd probably like to do.
05:17
<~Vornicus>
If you instead store great circles it drops to 3 cross products, because you've baked half of them.
05:22
<~Vornicus>
The base data I think I can name in closed form.
05:24
<~Vornicus>
but, uh, I can't find the damn picture any more.
05:42 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has joined #code
05:42 mode/#code [+o Vash] by ChanServ
06:06 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has quit [Client closed the connection]
06:08 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has joined #code
06:30
< froztbyte>
I............. http://www.geekwire.com/2012/reality-series-be-microsoft-employee/
06:33 thalass [thalass@Nightstar-478f1698.bigpond.net.au] has joined #code
06:33 * thalass eyes Linux Mint 13
06:34
< thalass>
It's the shiny new Mint, but doesn't have libpng14. >.<
06:34
< thalass>
So no eagle cad for me. Until i can sort it out.
06:41 cpux|2 [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
06:44 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
06:49 thalass is now known as Thalass|afk
07:21
<~Vornicus>
Mac nerds: is there a way to type in a unicode code point and get a character out?
07:22
<&McMartin>
I'm unaware of such a thing - it sounds suspiciously like a technology not invented by Steve
07:23 Thalass|afk [thalass@Nightstar-478f1698.bigpond.net.au] has quit [[NS] Quit: brb]
07:23 Kindamoody|movie is now known as Kindamoody|breakfast
07:32 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds]
07:33 cpux|2 [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
07:51 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
07:57 Kindamoody|breakfast is now known as Kindamoody
08:28 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has quit [Client closed the connection]
08:29 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has joined #code
08:29 mode/#code [+o Alek] by ChanServ
08:35 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has quit [Connection closed]
08:35 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has joined #code
08:35 mode/#code [+o Alek] by ChanServ
08:37 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
08:46 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
08:46 mode/#code [+o PinkFreud] by ChanServ
09:05 Attilla [Obsolete@Nightstar-71866fd9.as43234.net] has joined #code
09:14 thalass [thalass@Nightstar-478f1698.bigpond.net.au] has joined #code
09:16 You're now known as TheWatcher
09:19 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
09:19 mode/#code [+o himi] by ChanServ
09:20
<&jerith>
Vornicus: You can open up the Special Characters thing and find the codepoint, but that's a pain.
09:24 thalass [thalass@Nightstar-478f1698.bigpond.net.au] has quit [Ping timeout: 121 seconds]
10:16 Reiver [Reiver@5B433A.F67240.7718E8.F7D035] has joined #code
10:19 thalass [thalass@Nightstar-478f1698.bigpond.net.au] has joined #code
10:31 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
10:43 thalass [thalass@Nightstar-478f1698.bigpond.net.au] has quit [[NS] Quit: brb]
11:24 iospacedout is now known as iospace
11:24 Nemu [NeophoxProd@Nightstar-3c59d94d.asahi-net.or.jp] has joined #code
11:44 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
11:45 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Operation timed out]
11:52 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
12:22 Rev [Reiver@5B433A.F67240.44CA70.ECAC59] has joined #code
12:24 Reiver [Reiver@5B433A.F67240.7718E8.F7D035] has quit [Ping timeout: 121 seconds]
12:37 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has quit [Connection closed]
13:58 Rev [Reiver@5B433A.F67240.44CA70.ECAC59] has quit [Client closed the connection]
14:48 Kindamoody is now known as Kindamoody|afk
15:05 iospace is now known as io\gone
15:36 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has joined #code
16:22 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
16:37 io\gone is now known as iospace
16:37 iospace is now known as io|RAWR
16:45 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Connection closed]
17:32 io|RAWR is now known as iofficespace
18:11 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has quit [Client closed the connection]
18:12 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has joined #code
18:24 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has quit [Client closed the connection]
18:30 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has joined #code
18:52 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has quit [Connection closed]
19:14 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has joined #code
19:18
<~Vornicus>
dammitall
19:19
<~Vornicus>
every time I open GSP I say to myself "i could make a better program than this" and then never get around to it because it involves among other things GUI.
19:21
<~Vornicus>
which I've never managed to figure out how to actually do in any system, because the gui stuff is just kind of all over the place.
19:32
< sshine>
hmm
19:32
< sshine>
I never say "I could write a better GUI than this one". I often curse at how poorly GUIs are made.
19:34
< ToxicFrog>
What is GSP?
19:36 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
20:13
< sshine>
Georges St-Pierre?
20:13
< sshine>
he's a pretty awesome UFC fighter. :)
20:19
<~Vornicus>
Geometer's Sketchpad
20:25
<~Vornicus>
Geometry software. I most often use it because I'm drawing stuff that actually sort of needs it: using general drawing softwre I've found it's hard to size circles correctly
20:30
<~Vornicus>
But it's got lots of issues. No zoom or other scale-thinking functions; the only way to unhide an entity is to unhide everything; once you've placed an object (well, an object that has a position term determining its location) you can't set its position precisely; there's only 15 colors available for most things, you start rendering more than a few dozen objects (say, the full generation of a
20:30
<~Vornicus>
17 gon) you get a framerate which is downright pathetic.
20:33
<~Vornicus>
You can set the default color of every type of object /except/ labels, so if you wanted to do light-on-dark you're stuck because the labels are always black.
20:42
<~Vornicus>
Text boxes other than labels - which include such things as measurements - are all independently positioned, you can't hook them onto objects. Labels themselves are just text, and can't get any measurement data shown in them.
20:44
< ToxicFrog>
xfig supremacy?~
20:45
<~Vornicus>
Can you place a circle by center and point-on-circle?
20:46
< ToxicFrog>
"point-on-circle"?
20:46
<~Vornicus>
I have a point that I want to be on the circle.
20:46
<~Vornicus>
I don't want it to be the corner of the bounding box (which every drawing program can do), I want it to be on the circle.
20:47
<~Vornicus>
This is the killer feature this thing has, it's the only drawing program that makes actual circles (Sketchup uses 24-gons by default) and does that that I've found.
20:49
< ToxicFrog>
Oh, this needs to be 3d?
20:49
<~Vornicus>
no, 2d works
20:49
< ToxicFrog>
In that case I would expect any vector drawing program to be able to do actual circles
20:49
<~Vornicus>
But Sketchup is 3d and lets me do the circle thing except they're not really circles, they're 24-gons
20:50
<~Vornicus>
TF: I think you're not understanding me.
20:51
<~Vornicus>
I need a thing that I can draw a circle /through/ a particular point, that's not axis-aligned or even a rational distance from the center.
20:51 Attilla_ [Obsolete@Nightstar-e538602a.as43234.net] has joined #code
20:51
< ToxicFrog>
Oh, I missed the "and does that" bit
20:52
< ToxicFrog>
xfig can in fact do that (click once to place the centre, then click again on a point you want the circle to run through; it doesn't need to be axis-aligned and I'm not even sure it has a concept of "bounding box")
20:52
< ToxicFrog>
you can also do this by measuring the distance between the points and manually entering the radius you want.
20:52 Attilla [Obsolete@Nightstar-71866fd9.as43234.net] has quit [Ping timeout: 121 seconds]
20:52
<~Vornicus>
Like I need a circle to be centered at (0, 0) and go /through/ (1, 1), which in most drawing programs I've met require me to tell it I want the circle bounded by the box (-1.4142, -1.4142), (1.4142, 1.4142).
20:52
< ToxicFrog>
That said, the suggestion of xfig was not entirely serious, because it's kind of the vi of vector graphics programs
20:53
< ToxicFrog>
Which is to say it is incredibly powerful and flexible but was designed by, and for, aliens
20:53
<~Vornicus>
Heh
20:53
< ToxicFrog>
Yeah, in xfig that's:
20:54
< ToxicFrog>
- tool: draw ellipse by radius
20:54
< ToxicFrog>
- click on 0,0
20:54
< ToxicFrog>
- click on 1,1
20:55 Attilla_ [Obsolete@Nightstar-e538602a.as43234.net] has quit [Ping timeout: 121 seconds]
20:56
< ToxicFrog>
And it'll export to pretty much any vector graphics format you want.
20:57
< ToxicFrog>
Including PS or PDF + LaTeX include commands, or even pure LaTeX using a graphics drawing package.
20:57
<~Vornicus>
Okay, perhaps I need to learn how to xfig.
20:57
< ToxicFrog>
I've been using it primarily for simple figures for my papers.
20:58
< ToxicFrog>
Note: you will need a three-button mouse
20:59 Attilla [Obsolete@Nightstar-e538602a.as43234.net] has joined #code
21:00 Kindamoody|afk is now known as Kindamoody
21:03 Kindamoody is now known as Kindamoody[zZz]
21:13
<~Vornicus>
Also there doesn't appear to be a free windows build of it
21:13
<~Vornicus>
So that's no help.
21:16
< ToxicFrog>
Oh.
21:17
< ToxicFrog>
There's a Cygwin build of it, if you have Cygwin.
21:26 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has joined #code
21:26 mode/#code [+o Vash] by ChanServ
23:13 * TheWatcher eyes these stats: 18808 lines of code in 25 days
23:13
<@TheWatcher>
That means I've been averaging 752 lines a day >.<
23:19 Tamber [tamber@furryhelix.co.uk] has quit [Connection closed]
23:20 Tamber [tamber@furryhelix.co.uk] has joined #code
23:20 mode/#code [+o Tamber] by ChanServ
23:26
< Rhamphoryncus>
tried inkscape? I've had some good success with all the alignment and scaling tools
23:26
< Rhamphoryncus>
Align on center of an object, edge of an object, etc
23:26
< ToxicFrog>
um
23:26
< ToxicFrog>
$ baobab
23:26
< ToxicFrog>
baobab: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
23:26
< ToxicFrog>
That sounds ominous and I don't remember it ever happening before
23:27
< Rhamphoryncus>
Mmmm heap corruption
23:28
<~Vornicus>
Wow, um.
23:29
<~Vornicus>
Rham: I couldn't convince it to do what I wanted.
23:29
<~Vornicus>
Anyway, did you check out my "new plan" up there? It might help.
23:31
< Rhamphoryncus>
Not sure which you mean
23:32
<~Vornicus>
http://www.starforge.co.uk/irclogs/code/code.20120726.log.html#m0506-0
23:32
<~Vornicus>
This is a lot less expensive than an energy model and may still give good results.
23:33
< Rhamphoryncus>
Hrm. Sounds like you've got a lot more than one circle you're trying to align
23:34
< ToxicFrog>
snrk. There is a library for Clojure for performing runtime inspection of protected/private fields
23:35
< ToxicFrog>
It's called "wallhack"
23:35
<~Vornicus>
Rham: I actually used this for my original thing, making great circles, intersecting them, averaging the intersections.
23:37 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
23:37 mode/#code [+o himi] by ChanServ
23:37
<~Vornicus>
if I can find that image of how the geodesation triangles line up I'd probably be able to do the math out.
23:38
< Rhamphoryncus>
oooh, you're talking about geodesics lol
23:39
< Rhamphoryncus>
I take back what I said about geodesics. Alignment doesn't work together with scaling
23:39
< Rhamphoryncus>
err... about inkscape
23:40
<~Vornicus>
ah
23:40
<~Vornicus>
heh
23:40
< Rhamphoryncus>
Brain no workie today. I feel like crawling back into bed but that'd only make my sleep issues worse
23:53 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has quit [Connection closed]
23:58 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
23:58 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has joined #code
--- Log closed Fri Jul 27 00:00:31 2012
code logs -> 2012 -> Thu, 26 Jul 2012< code.20120725.log - code.20120727.log >

[ Latest log file ]