code logs -> 2014 -> Fri, 03 Jan 2014< code.20140102.log - code.20140104.log >
--- Log opened Fri Jan 03 00:00:07 2014
00:04 Stalker [Z@Nightstar-ro94ms.balk.dk] has quit [Ping timeout: 121 seconds]
00:31 Stalker [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
00:35 jeroud [sid10043@Nightstar-a1k27g.irccloud.com] has quit [Ping timeout: 121 seconds]
00:37 jeroud [sid10043@Nightstar-a1k27g.irccloud.com] has joined #code
00:40
<&McMartin>
Derakon: And he did fix it.
00:41 ErikMesoy|sleep [Erik@Nightstar-ekm.o7n.203.80.IP] has quit [[NS] Quit: Leaving.]
00:41 ErikMesoy [Erik@Nightstar-3kot9q.80-203-17.nextgentel.com] has joined #code
00:47
<&McMartin>
I think it's not coincidence that his example of excellence is from four years later, too.
01:18 celticminstrel [celticminst@Nightstar-qargh6.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
01:18 celticminstrel [celticminst@Nightstar-qargh6.dsl.bell.ca] has joined #code
01:18 mode/#code [+o celticminstrel] by ChanServ
01:24 Turaiel is now known as Turaiel[Offline]
01:26 You're now known as TheWatcher[T-2]
01:31 You're now known as TheWatcher[zZzZ]
01:40 Thalass|AFK is now known as Thalass
01:44 Netsplit *.net <-> *.split quits: @gnolam, @Tamber, ^Xires, @Derakon, ToxicFrog, simon_, RichyB, jerith, @Tarinaky, Thalass, (+20 more, use /NETSPLIT to show all of them)
01:44 Netsplit over, joins: RichyB, Reiver, &ToxicFrog, @Tamber, &jerith, jeroud, VirusJTG, @iospace, Thalass, @gnolam (+19 more)
01:54 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
01:54 mode/#code [+o PinkFreud] by ChanServ
01:58 Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has joined #code
02:00 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
02:01 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
02:01 mode/#code [+o PinkFreud] by ChanServ
02:08 Draak17 [Godbehere@Nightstar-hl453o.zing-net.ca] has joined #code
02:09 Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has quit [Ping timeout: 121 seconds]
02:17 Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has joined #code
02:20 Draak17 [Godbehere@Nightstar-hl453o.zing-net.ca] has quit [Ping timeout: 121 seconds]
02:41 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
03:01 Stalker [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
03:09 Turaiel[Offline] is now known as Turaiel
03:37 harlow [harlow@Nightstar-2dbe3d64.il.comcast.net] has joined #code
04:19 Thalass [thalass@Nightstar-bce70i.eastlink.ca] has quit [[NS] Quit: omgsleep]
05:27 celticminstrel [celticminst@Nightstar-qargh6.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
05:35 Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has quit [Ping timeout: 121 seconds]
06:44 RichyB [RichyB@Nightstar-c6u.vd5.170.83.IP] has quit [[NS] Quit: Gone.]
06:47 RichyB [RichyB@Nightstar-c6u.vd5.170.83.IP] has joined #code
07:18 Turaiel is now known as Turaiel[Offline]
07:33 Syka [the@Nightstar-v6l.c32.131.1.IP] has joined #code
07:59 Syka [the@Nightstar-v6l.c32.131.1.IP] has quit [[NS] Quit: leaving]
07:59 Syka [the@Nightstar-v6l.c32.131.1.IP] has joined #code
08:40 harlow [harlow@Nightstar-2dbe3d64.il.comcast.net] has quit [[NS] Quit: BED]
08:52 dmiles_afk [dmiles@Nightstar-hdcn1r.or.comcast.net] has joined #code
09:09 AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has joined #code
09:32 You're now known as TheWatcher
09:38 AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has quit [[NS] Quit: Leaving]
10:05 Stalker [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
10:25 gnolam_ [lenin@Nightstar-162olm.cust.bredbandsbolaget.se] has joined #code
10:25 gnolam is now known as NSGuest4597
10:25 gnolam_ is now known as gnolam
10:25 mode/#code [+o gnolam] by ChanServ
10:27 NSGuest4597 [lenin@Nightstar-162olm.cust.bredbandsbolaget.se] has quit [Ping timeout: 121 seconds]
11:18
< AbuDhabi_>
Gnar. My tablet has a broken digitizer. It still works otherwise, but I'm at a loss how to get alternative means of input to work on it. (Tried a repair shop. This model of digitizer is not available cheaper than a new tablet.)
11:21
< Syka>
AbuDhabi_: what tablet
11:21
< Syka>
USB OTG cable + keyboard, maybe?
11:25
< simon_>
I'm making a small bank-like app in which I can make transfers, register credits and debits, and do some calculations of interests for all accounts. since this is a concurrent app, I have to lock the necessary accounts. I'm making per-account locking which means a lot of locks, which I don't think is too bad, but then the interest calculation needs exclusive access to all locks, which is a tedious process since I need to store them in a sorted ...
11:25
< simon_>
... way and lock every single account in that order to avoid conflicts and deadlocks.
11:26
< simon_>
so I thought: I could just make one master lock on the entire set of accounts, and whenever updating individual accounts, a shared master lock must be obtained, and whenever updating all accounts at once, an exclusive master lock must be obtained.
11:27
< simon_>
I know of one lock called java.util.concurrent.ReentrantReadWriteLock which can do this
11:27
< simon_>
but I'm in conflict about the name: I'm not actually just reading when using the Read-part of the lock. but I've got smaller-granularity locks to avoid conflicts then.
11:28
< AbuDhabi_>
Syka: Lark Freeme 70.8
11:29
< AbuDhabi_>
Syka: I haven't tried a keyboard yet. I have a USB OTG cable, though, which I've tried with a mouse to no effect.
11:52
<@gnolam>
http://www.xkcd.com/1312/
11:57 Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has quit [Connection closed]
12:16 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
13:21 AbuDhabi1 [AbuDhabi@Nightstar-qjsruu.adsl.tpnet.pl] has joined #code
13:21 AbuDhabi1 [AbuDhabi@Nightstar-qjsruu.adsl.tpnet.pl] has quit [Connection closed]
13:21 AbuDhabi_ [AbuDhabi@Nightstar-qjsruu.adsl.tpnet.pl] has quit [Connection closed]
13:21 AbuDhabi_ [AbuDhabi@Nightstar-qjsruu.adsl.tpnet.pl] has joined #code
14:12 Stalker [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
14:40 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
14:44 Stalker [Z@Nightstar-ro94ms.balk.dk] has joined #code
14:56 AbuDhabi_ [AbuDhabi@Nightstar-qjsruu.adsl.tpnet.pl] has quit [[NS] Quit: leaving]
15:01
< ErikMesoy>
http://codegolf.stackexchange.com/questions/16226/i-need-a-program-where-the-use r-inputs-an-array-of-doubles-and-the-program-outpu/16316#16316 "I know what you're thinking - Bash can't even handle floating point arithmetic, so how is it going to sort, right?"
15:25 celticminstrel [celticminst@Nightstar-qargh6.dsl.bell.ca] has joined #code
15:26 mode/#code [+o celticminstrel] by ChanServ
15:33
<@Azash>
A note that might not be relevant for bash work: Reinterpreting IEEE floats as signed ints and sorting based on that will still order them correctly
16:22 Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has joined #code
16:29 thalass [thalass@Nightstar-bce70i.eastlink.ca] has joined #code
16:48 thalass [thalass@Nightstar-bce70i.eastlink.ca] has quit [Ping timeout: 121 seconds]
17:05 Draak17 [Godbehere@Nightstar-hl453o.zing-net.ca] has joined #code
17:05 Draak [Godbehere@Nightstar-hl453o.zing-net.ca] has quit [Ping timeout: 121 seconds]
17:08 thalass [thalass@Nightstar-bce70i.eastlink.ca] has joined #code
17:17 Draak17 [Godbehere@Nightstar-hl453o.zing-net.ca] has quit [Ping timeout: 121 seconds]
17:54 * Derakon mutters at merge conflicts, can never remember how to read these things.
17:54
<&Derakon>
I also want to be able to say "look, fuck my local branch for these changes, just use master".
17:55
<&Derakon>
Which I know I can do by editing the merge-conflicted file, but it's a pretty manual process.
17:58
<&Derakon>
...actually, the local branch is the one I want to keep. How strange.
17:58
<&Derakon>
I thought the laptop was less up-to-date than remote.
18:06
<&Derakon>
Bleh, I hate branches sometimes.
18:06
<&Derakon>
Actually, no.
18:06
<&Derakon>
I hate git's fucking shitty error messages.
18:07
<&Derakon>
I wish I could be using Mercurial for Pyrel. ;_;
18:07
<&Derakon>
(The other Angband devs could not cope with learning a new VCS)
18:15
< ErikMesoy>
Ooh, you're on Angband?
18:15
<&Derakon>
More or less, yeah.
18:15
<&Derakon>
I haven't contributed anything to the actual Angband codebase ever since I started working on Pyrel, though.
18:20
< simon_>
does anyone here know if bank account balances are Poisson distributed?
18:20
<&Derakon>
I would assume so on a local scale.
18:20
<&Derakon>
But there'd be a sharp cutoff at $250k in the US, since deposits above that aren't insured.
18:21
< ErikMesoy>
My math textbook once stated that they are, but the teacher may have been assuming.
18:28
< simon_>
hm
18:35
<@Alek>
I think accounts of up to 400k MAY have been insured previously, but no longer.
18:39
<&ToxicFrog>
Derakon: git merge -s ours - create a well-formed merge but completely discard the changes you're merging in.
18:40
<&ToxicFrog>
git merge -s recursive -X {ours,theirs} - create a normal merge, but whenever there is a conflict, automatically resolve it in favour of {my changes, the changes being merged in}
18:40
<&ToxicFrog>
git mergetool - invoke an external conflict resolution and three-way merge tool, which is generally a lot easier than manually reading the diffs
18:41
<&Derakon>
Thanks...I think mostly I just wanted to rant about git some more~
18:44 Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has quit [[NS] Quit: ]
18:48 Syka [the@Nightstar-v6l.c32.131.1.IP] has quit [Ping timeout: 121 seconds]
18:52 Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has joined #code
18:52 mode/#code [+o Alek] by ChanServ
19:01 Vornicus [vorn@Nightstar-sn7kve.sd.cox.net] has joined #code
19:01 mode/#code [+qo Vornicus Vornicus] by ChanServ
19:01 Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has quit [[NS] Quit: ]
19:04 Alek [omegaboot@Nightstar-qa936g.il.comcast.net] has joined #code
19:04 mode/#code [+o Alek] by ChanServ
19:06 * thalass ponders version control
19:10
<~Vornicus>
Idunno what's available re: this for linux but I like the tortoise shell extensions for windows.
19:33
<&ToxicFrog>
AFAIK there is no tortoise equivalent.
19:33
<&ToxicFrog>
I never use the file manager anyways, though.
19:33
<&ToxicFrog>
So I just use gitk and git gui open side by side.
19:35 * thalass nods
19:36
< thalass>
Eric IDE wants svn, and i must be looking in the wrong places because trying to set up a local repository is making my frozen little brain hurt.
19:40
<~Vornicus>
I'm all about the file manager; tortoise is cool in that it puts little marks on files under version control so you can see quickly what you've done today
19:53
<@gnolam>
thalass: what are you trying to do, exactly?
19:53
<@gnolam>
And what are you using on what?
19:59
< thalass>
I thought i should start using a proper IDE instead of gedit to tinker around with python. So i don't get lost, at least. I'm attempting to find out how to set up version control for Eric IDE, using SVN on localhost. (my linux netbook)
20:00
< thalass>
SVN may be overkill for what i want, though.
20:18
<@TheWatcher>
For the love of eris, use git
20:18
< thalass>
I'm looking at that now
20:18
<@TheWatcher>
even if you do it all outside the IDE (which I'd generally advise anyway: most IDE's integration with VCS adds more grief than it solves)
20:19 * thalass nods
20:19
<@TheWatcher>
But SVN is pain and irritation incarnate.
20:19
< thalass>
heh
20:22
<@TheWatcher>
(generally, I'd advise avoiding any kind of gui for using git at all, aside from the situations where `git gui` makes life easier (like when you want to commit changes made in a file across more than one commit), at least until you grok the general use of it really well - GUIs just add yet another thing to learn, and you can never be entirely sure if the problem are having is caused by the GUI or not understanding git)
20:23
< thalass>
It'd be both, with me >.<
20:24
<@froztbyte>
http://www.ericsink.com/vcbe/
20:24
<@froztbyte>
^^^^^
20:28
<@TheWatcher>
Talking of which
20:28 Stalker [Z@Nightstar-ro94ms.balk.dk] has quit [Ping timeout: 121 seconds]
20:28
< thalass>
ooo
20:29 * TheWatcher starts work on MIST AVIARY
20:32 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
20:32 mode/#code [+o himi] by ChanServ
20:39
<~Vornicus>
"mist aviary"?
20:40 Turaiel[Offline] is now known as Turaiel
20:41 Draak17 [Godbehere@Nightstar-hl453o.zing-net.ca] has joined #code
20:48
<@TheWatcher>
It's something to handle tweets for something.
20:48 * TheWatcher may be being vague because the exact scope has not been entirely pinned down.
20:51 Turaiel is now known as Turaiel[Offline]
20:57 * thalass reads gittutorial
21:14
<&jerith>
My thing is called txTwitter, but I think PERPLEXED ORNITHAL DELUGE might be a better name.
21:36
< thalass>
heh
21:53 * Derakon eyes Python's math.ceil and math.floor.
21:53
<&Derakon>
Why do these return floats instead of ints?
21:53
<&McMartin>
Derakon: Because ceil and floor are R->R functions. Basically everyone does this.
21:54
<&Derakon>
Then basically everyone is wrong~
21:55
<&Derakon>
A function that gets you the closest int for your float should return an int, dangit.
21:55
<@TheWatcher>
Heh
21:56 Draak17 [Godbehere@Nightstar-hl453o.zing-net.ca] has quit [Ping timeout: 121 seconds]
21:57
<&Derakon>
Oh well, the main reason I wanted them to return ints was for the expression evaluator in Pyrel, since its dice-rolling system requires ints.
21:57
<&Derakon>
But adding the int() function to the evaluator turned out to be straightforward.
21:57 * ErikMesoy snickers.
21:57 * ErikMesoy agrees with Derakon.
22:02
< [R]>
Try math.floor on googul
22:03
<&Derakon>
math.floor also returns a float, and what does Google have to do with this?
22:03
< [R]>
10^100.
22:04
<&Derakon>
Oh, a googol.
22:04
<&Derakon>
...
22:04
<&Derakon>
AttributeError: 'module' object has no attribute 'flor'
22:04
<&Derakon>
Man, I hate the shitty air quality we have today.
22:04
<@gnolam>
http://moviecode.tumblr.com/
22:04
<&Derakon>
It keeps me from being able to think.
22:06
<&McMartin>
http://linux.die.net/man/3/ceil
22:06
<&McMartin>
This goes back at least to C and quite possibly FORTRAN.
22:07
<&Derakon>
All wrong~
22:07
<&McMartin>
ceil(NaN) = NaN
22:10
<&McMartin>
ceil (+/- inf) = +/- inf
22:10
<&McMartin>
Both are legal calls, and int can't hold the answer
22:10
<&McMartin>
Going to have to side with the entire rest of the world here, sorry~
22:12
<&Derakon>
Traitor!
22:12
<&McMartin>
Also, while it doesn't do anything interesting, ceil can accept doubles that are larger than MAX_LONG.
22:13 Draak17 [Godbehere@Nightstar-hl453o.zing-net.ca] has joined #code
22:13
<&McMartin>
It will always return those values unchanged, but in order to *do* that it needs to return a double
22:14
<&McMartin>
"The integral value returned by these functions may be too large to store in an integer type (int, long, etc.). To avoid an overflow, which will produce undefined results, an application should perform a range check on the returned value before assigning it to an integer type."
22:15
<&Derakon>
Bah, safely handling overflow is for wimps~
22:15
<&Derakon>
(Besides, we have arbitrary-precision ints here)
22:16
<&McMartin>
Oh, actually, *that's* a fun question.
22:16
<&McMartin>
I wonder if Scheme's ceiling function will turn inexact flonums into exact ones.
22:16
<&McMartin>
It does not. That feels more wrong.
22:17
<&Derakon>
"flonum" is a weird name for a datatype.
22:17
<&McMartin>
fixnum/flonum is a LISPism, I think.
22:17
<&McMartin>
I forget if fixnum is separate from bignum.
22:17
<&McMartin>
If it is, flonum was clearly named so that it would stay six letters long.
22:19
<&McMartin>
Oh, I see, inexactness is contagious.
22:19
<&McMartin>
There's no guarantee your inexactness didn't kick you over an integer boundary.
22:23
<&McMartin>
(exact? 1.5) -> #f
22:23
<&McMartin>
(inexact->exact 1.5) -> 3/2
22:23
<&McMartin>
(exact? 3/2) -> #t
22:23
<&McMartin>
(exact? (ceiling 1.5)) -> #f
22:23
<&McMartin>
(exact? (ceiling 3/2)) -> #t
22:23
<&McMartin>
(ceiling 1.5) -> 2.
22:23
<&McMartin>
(ceiling 3/2) -> 2
22:25
<&McMartin>
" If one of these procedures is unable to deliver an exact result when given exact arguments, then it may either report a violation of an implementation restriction or it may silently coerce its result to an inexact number. Such a coercion may cause an error later."
22:25
<&McMartin>
Scheme: The Least Portable Programming Language
22:32 Turaiel[Offline] is now known as Turaiel
22:35 Draak17 [Godbehere@Nightstar-hl453o.zing-net.ca] has quit [Ping timeout: 121 seconds]
23:48 You're now known as TheWatcher[T-2]
23:51 ErikMesoy is now known as ErikMesoy|sleep
23:54 You're now known as TheWatcher[zZzZ]
--- Log closed Sat Jan 04 00:00:26 2014
code logs -> 2014 -> Fri, 03 Jan 2014< code.20140102.log - code.20140104.log >

[ Latest log file ]