code logs -> 2012 -> Sat, 10 Nov 2012< code.20121109.log - code.20121111.log >
--- Log opened Sat Nov 10 00:00:17 2012
00:20
<@Tarinaky>
Yeah. This is never going to be useful for me.
00:44 Derakon[AFK] is now known as Derakon
01:18 * Vornicus decides he wants to write a tiny tiny 4x.
01:35 * Vornicus does up a short design document, because yay design documents.
01:47 Derakon is now known as Derakon[AFK]
01:59 mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ
02:42
<@rms>
Tamber++
02:42
<@rms>
(Really though, so long as it isn't the PHPNuke coding standard...)
03:03 Vash [Vash@Nightstar-b43e074a.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
03:41 Kindamoody[zZz] is now known as Kindamoody
04:08 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:53 * Vornicus gets the design document written. Needs to figure out mouse picking in pygame, but that's not a big problem.
04:54
<&jerith>
Mouse picking?
04:55
<~Vornicus>
Mouse picking: selecting objects by the mouse.
04:55
<&jerith>
Ah.
04:55
<&jerith>
You need a widget library of some kind, probably.
04:56
<&jerith>
We've written several.
04:56
<~Vornicus>
I don't need many widgets.
04:57
<&jerith>
I think the most useful is in http://ctpug.org.za/wiki/MutableMamba
04:57 * Vornicus pokes at SupComm 1 which is having sound issues. few if any sounds are playing.
04:58
<&jerith>
Or maybe http://ctpug.org.za/wiki/SuspendedSentence
04:58
<&jerith>
Actually, Suspended Sentence might be better for your needs.
04:59
<&jerith>
There are a bunch of widgets for menus and stuff (mostly wrapped around a different library) and a big "game board" thing that handles its own magic.
05:30 syksleep is now known as Syk
05:30
<@Syk>
man that was a good sleep
06:17 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
06:41 gnolam [lenin@Nightstar-ccbf4b44.cust.bredbandsbolaget.se] has quit [Client closed the connection]
07:11 Moltare [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Ping timeout: 121 seconds]
07:25 ErikMesoy|sleep is now known as ErikMesoy
07:36 Nemu [NeophoxProd@8EC4D7.46806D.B6AE46.34BA6B] has joined #code
08:13 Nemu [NeophoxProd@8EC4D7.46806D.B6AE46.34BA6B] has quit [[NS] Quit: ]
08:49 Kindamoody is now known as Kindamoody|out
09:25 You're now known as TheWatcher
11:17 Kindamoody|out is now known as Kindamoody
13:02 gnolam [lenin@Nightstar-ccbf4b44.cust.bredbandsbolaget.se] has joined #code
13:09 Kindamoody is now known as Kindamoody|out
13:59 Moltare [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
14:12
<@Syk>
i forgot who in here recommended me sublime text 2
14:13
<@Syk>
but remind me to buy you a beer
14:17
<@Syk>
and/or some variety of spirit
14:36 Syloq_Home [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
14:36 Syloq_Home [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
15:00
<&jerith>
Syk: May have been me.
15:01 * Syk inserts one beer into jerith
15:07
<@Tamber>
Ooh, that looked painful; you should have at least *opened* the bottle!
15:08
<@Syk>
pff Tamber
15:08
<@Syk>
as if i would be pleb enough to drink beer out of bottles
15:08
<@Syk>
:P
15:10
<&ToxicFrog>
Syk: that would be me.
15:10
<@Azash>
What's pleb about that :<
15:10
<@Syk>
well my family has always brewed beer
15:11
<@Syk>
so we have the big bottles which are then served in pint glasses
16:34 Kindamoody|out is now known as Kindamoody
18:04 celticminstrel [celticminst@EB02D1.3E2241.DAEDC4.734390] has joined #code
18:20 Kindamoody is now known as Kindamoody|out
18:52 Kindamoody|out is now known as Kindamoody
19:17 Syk is now known as syksleep
19:26 celticminstrel is now known as celmin|awayfood
19:41 Moltare [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Ping timeout: 121 seconds]
19:43 Moltare [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
20:20 Kindamoody is now known as Kindamoody[zZz]
20:42 simon_ [simon@Nightstar-fe311ff3.pronoia.dk] has joined #code
20:43
< simon_>
so I'm looking at this programming assignment from an old exam: find the largest divisor in N that doesn't have repeating prime divisors itself.
20:44
<~Vornicus>
Basically you'll have to pull out straight up prime factorization, I think
20:44
< simon_>
yeah, my question is if I can avoid that.
20:45
<~Vornicus>
Not as far as I'm aware.
20:45
< simon_>
perhaps only look for prime divisors until repeating ones are found, and perhaps start by looking at big divisors rather than small.
20:46
<~Vornicus>
Start with small ones.
20:46
<~Vornicus>
And eat even repeating ones - dividing something by two can significantly reduce the number of primes you need to test.
20:48
<~Vornicus>
dividing by a larger number can crush it down even more.
20:56
< simon_>
repeating prime factors*
20:57
<~Vornicus>
(if you have a number around 1 million, you have to go through 168 primes to completely cover all your bases; if you pull out a 2, you need to check 126 primes total afterwards, saving you 42 divisions)
21:00
<~Vornicus>
But: I don't think there's a better method because the existence of a better method would point to a vastly better method for prime factorization.
21:01
< simon_>
hmm
21:01
< simon_>
ok
21:01
< simon_>
reasonable.
21:01
< simon_>
so I prime factorize n, weed out repeating primes and take the product of the rest.
21:05
<~Vornicus>
basically.
21:05
<~Vornicus>
Since you find all repetitions of a particular prime right next to each other, you can make the weed-out very practical.
21:09
<~Vornicus>
http://oeis.org/A007947 anyway.
21:11
< simon_>
thanks!
21:53 celmin|awayfood is now known as celticminstrel
22:04 Derakon[AFK] is now known as Derakon
22:04
<&Derakon>
Bleh.
22:05
<&Derakon>
I'm the only person on the Angband development team that wants to use Mercurial instead of Git.
22:05
<~Vornicus>
bleh
22:06
<&Derakon>
My repo is the main repo, and it's in Mercurial...but it's clearly enough of a problem that devs aren't contributing because they don't want to learn it / adjust their development philosophies.
22:06
<&Derakon>
Angband devs reeaaaaallly like being able to delete branches.
22:10
< celticminstrel>
...you can't delete branches in hg?
22:11
<&Derakon>
Mercurial, like most content versioning systems, does not let you delete commits.
22:11
<&Derakon>
Except for the most recent one, in case you fat-fingered something.
22:12
< celticminstrel>
Branches aren't commits though...
22:12
<~Vornicus>
wait, angband dev or pyrel dev?
22:12
<&Derakon>
Pyrel dev.
22:12
<&Derakon>
CM: a branch doesn't exist until you commit to it.
22:12
<&Derakon>
By deleting a branch you delete all the commits in it.
22:13
< celticminstrel>
Um.
22:13
<~Vornicus>
yeah, was about to say, when did you become maintainer of angband itself
22:13
< celticminstrel>
That's not what a branch is in git, is it.
22:13
<&Derakon>
Vorn: well, to the extent that most Angband dev work currently is on Pyrel~
22:13
< celticminstrel>
Isn't a git branch more like a symlink or something?
22:14
<~Vornicus>
heh
22:14
<&Derakon>
A git branch is a new head that splits off of one line of commits after some specific commit.
22:15
< celticminstrel>
Okay, and...?
22:15
<&Derakon>
Heads are sequences of commits.
22:16
<&Derakon>
So when you delete a head (i.e. branch), you also delete those commits.
22:16
<&Derakon>
Unless you merged them back into mainline at some point.
22:16
< celticminstrel>
That doesn't sound right...
22:16
< celticminstrel>
But maybe that's just because of garbage collection or something.
22:16
< celticminstrel>
But why shouldn't you be able to delete a commit?
22:17
<~Vornicus>
why should you delete a commit?
22:18
< celticminstrel>
Because you started a branch, worked on it for a bit, then after making a few commits thought of a completely different and much better way to do what you were trying to do, such that starting back at the branch point would be easier than starting at the head of your branch?
22:19
<&McMartin>
Because 2/3s of the way through that you may realize why you were right the first time
22:20
<&Derakon>
Hard disk space is cheap~
22:20
<&Derakon>
Mercurial, unlike Wikipedia, does not support a deletionist philosophy~
22:20
< simon_>
I just read about Curry's paradox. I like it.
22:21 * McMartin kind of suspects git is so hardcore about annihilating branches because Subversion doesn't let you~
22:23
< celticminstrel>
Yes, but once you have one or other of the ways finished and working, you don't really need the other one anymore.
22:24
<&Derakon>
Nor is it getting in the way -- and you may always want a reminder of why you took the path you did.
22:25
< celticminstrel>
I dunno. It just seems silly to disallow something so basic as deletion.
22:27
<&McMartin>
Disallowing deletion is traditionally what VCSes are *for*.
22:27
< celticminstrel>
Not exactly.
22:27
<&McMartin>
Also
22:27
<&McMartin>
It's not like mercurial doesn't disallow *reverting*.
22:27
<&McMartin>
Reverting is what replaces deletion.
22:27
< celticminstrel>
Oh? Howso?
22:27
<&McMartin>
The thing git partisans whine about is "why isn't it trivial in other systems ot edit history"
22:28
<&McMartin>
I am at reversion 10.
22:28
<&McMartin>
I do some work, am now at revision 12.
22:28
<&McMartin>
Realize this is a mistake.
22:28
<&McMartin>
Revert commits 11 and 12.
22:28
<&Derakon>
Mercurial reversion is basically "Let's replace the current head with what the head was 2 commits ago" or whatever.
22:28
<&McMartin>
Now if we commit that revision 13 is what revision 10 was, but you probably also do extra work after that.
22:29
<&McMartin>
Modern systems don't store changes as deltas, so there's actually no reason other than bookkeeping to even make note of that
--- Log closed Sat Nov 10 22:39:49 2012
--- Log opened Sat Nov 10 22:39:57 2012
22:39 TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code
22:39 Irssi: #code: Total of 35 nicks [21 ops, 0 halfops, 0 voices, 14 normal]
22:40 mode/#code [+o TheWatcher] by ChanServ
22:40 Irssi: Join to #code was synced in 38 secs
23:05 * celticminstrel has recently figured out how to use Headings in Word. \o/
23:06
< celticminstrel>
It's stupidly obtuse and inextensible, but it's nice despite that.
23:12
<~Vornicus>
Headings are kind of cool.
23:12
<~Vornicus>
THey're not as cool as they could be, but they're kind of cool.
23:13
< celticminstrel>
Yeah.
23:13
< celticminstrel>
I think that's a good way of putting it.
23:17 * McMartin has been reminded that https://www.youtube.com/watch?v=o72T8qQr7GE was an actual ad
23:19
<@Tamber>
ahaha
23:19
<&McMartin>
The trigger for the memory was the phrase "tender, all white-meat chickens"
23:19
<&McMartin>
Then it turned out it was on YouTube because of course it was.
23:20
< celticminstrel>
o.O Tomato surprise.
23:20
<&McMartin>
The ad is actually funnier now that CUDA and OpenCL are things.
23:26
<@TheWatcher>
McM: I don't rely on that, given that YouTube lacks the best Toffee Crisp advert ever
23:27
<&McMartin>
Clearly, some intrepid pirate needs to upload it
23:28
< Moltare>
It does have most of the good Tango ads, though
--- Log closed Sun Nov 11 00:00:50 2012
code logs -> 2012 -> Sat, 10 Nov 2012< code.20121109.log - code.20121111.log >

[ Latest log file ]