code logs -> 2013 -> Mon, 01 Apr 2013< code.20130331.log - code.20130402.log >
--- Log opened Mon Apr 01 00:00:12 2013
00:02
<~Vornicus>
wtf
00:04
<@Tamber>
:gnome:
00:15
<@sshine>
I'm debugging some C code for an operating system:
00:15
<@sshine>
written = MIN(TFS_BLOCK_SIZE - (offset % TFS_BLOCK_SIZE),datasize);
00:15
<@sshine>
if(written < TFS_BLOCK_SIZE) {
00:15
<@sshine>
TFS_BLOCK_SIZE is 512. offset is some possibly large number. datasize is some other possibly large number.
00:15
<@sshine>
isn't this a tautology?
00:16
<~Vornicus>
no.
00:16
<@sshine>
512 - (offset % 512) should hopefully always be less than 512.
00:16
<~Vornicus>
if offset % TFS_BLOCK_SIZE == 0 and datasize = 512 then written = 512
00:16
<~Vornicus>
No, it ranges from 1 to 512.
00:17
<@sshine>
ah, d'oh. it's a sharp inequality.
00:17
<@sshine>
sharp less than*
00:17
<~Vornicus>
(offset % TFS_BLOCK_SIZE ranges from 0 to 511)
00:18
<@sshine>
thanks! :)
00:24 cpux [cpux@Nightstar-98762b0f.dyn.optonline.net] has quit [Client closed the connection]
00:24 cpux [cpux@Nightstar-98762b0f.dyn.optonline.net] has joined #code
00:25 mode/#code [+o cpux] by ChanServ
00:38
< AnnoDomini>
Awright. This OS is mostly set up. I think I have most of the important things reinstalled.
00:39 cpux|2 [cpux@Nightstar-98762b0f.dyn.optonline.net] has joined #code
00:41 cpux [cpux@Nightstar-98762b0f.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
00:42
<@sshine>
AnnoDomini, how long did it take?
00:42
< AnnoDomini>
Most of today.
00:47 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
00:47 mode/#code [+o celticminstrel] by ChanServ
00:50 * AnnoDomini still glares at the ever-recurring font problems.
00:50
< AnnoDomini>
I'm not sure how to fix it this time.
00:51 Turaiel[Offline] is now known as Turaiel
00:53
< AnnoDomini>
Aha! Got them!
00:59 * sshine spent the most of three days getting his Arch Linux looking nicely.
00:59
<@sshine>
I still have a TODO-file with small things I can't be bothered to fix yet.
01:00
<@sshine>
I did also revise both my xmonad.hs, my .emacs and my .vimrc...
01:00
< AnnoDomini>
I've heard things about Arch Linux that it's a bit shoddy.
01:00
<@sshine>
shoddy?
01:00
< AnnoDomini>
Yes.
01:01
<@sshine>
it's the best Linux distro I know. it gives me the most freedom without losing a decent package manager.
01:02
< RichyB>
AnnoDomini: there are good and bad things about it.
01:02
<@sshine>
running release can be a bit tedious since if I wait much more than a month upgrading, I'll have to download hundreds of megabytes.
01:02
< RichyB>
It's got a package manager that's pleasingly easier to use than dpkg/apt-*.
01:02
<@sshine>
e.g. right now:
01:02
<@sshine>
Total Download Size: 309.51 MiB
01:02
<@sshine>
Total Installed Size: 1297.61 MiB
01:02
<@sshine>
Net Upgrade Size: 14.08 MiB
01:03
< RichyB>
It uses rolling releases rather than individual releases.
01:03
< RichyB>
So you're getting up-to-date versions of every package individually all the time rather than every 6/12/24 months swapping out *everything*.
01:04
< RichyB>
Usually their policy is "latest stable upstream version."
01:04
< RichyB>
Arch will pick up upstream releases a few days after they drop the "beta" tag. :)
01:04
<@sshine>
yup... I guess it's a plus compared to Ubuntu breaking completely whenever you dist-upgrade it.
01:04
< RichyB>
Downside is that, unlike distros like Ubuntu, not all that much is wired up by default and there's a big wiki on how to configure stuff rather than having it all just spring into existence when you install the right packages.
01:05
<@sshine>
but I wouldn't mind staying with older versions whenever I don't specifically need the new versions.
01:05
< AnnoDomini>
Specifically, what I've heard is that AL's graphics thingies are even worse than Debian's. And earlier today you have an example of how Debian's default environment is.
01:05
<@sshine>
RichyB, I guess that's the big taste difference, whether you think that is a pro or a con.
01:05
< RichyB>
I don't know about that; I used to have fewer problems with GPU drivers under Arch than with other distros.
01:07
< RichyB>
It tends to have the latest upstream AMD+nVidia drivers packaged for pacman rather than some old damn version that happened to be out nine months ago.
01:08 * sshine has had the fewest problems with Ubuntu, but has also grown annoyed at its bloated defaults (both choice of GUI and number of daemons ranging from automatic mounting to NetworkManager and whatnot.)
01:08
<@sshine>
I really like my 5 second boot and my 2 second shutdown due to my new SSD and a general lack of background services. ^_^
01:08 * AnnoDomini hates hates hates what ubuntu appears to consider a GUI.
01:09
< AnnoDomini>
It's like what I was served today as a default in Debian 7, but worse.
01:15 Turaiel is now known as Turaiel[Offline]
01:27 Turaiel[Offline] is now known as Turaiel
01:55 syksleep [the@Nightstar-31d49847.iinet.net.au] has quit [Ping timeout: 121 seconds]
01:59
<&McMartin>
Refactoring OF DOOM commences
01:59
<&McMartin>
at least everything left broken looks directly UI-y and thus is now save to regex up.
02:22
<&McMartin>
Aaand, that's a crash on startup because the old code was Bad.
03:04 syksleep [the@Nightstar-137186a4.iinet.net.au] has joined #code
03:09 VirusJTG_ [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
03:11 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
03:14 Kindamoody[zZz] is now known as Kindamoody
03:18 jeroud_ [uid10043@Nightstar-1d9743e5.irccloud.com] has joined #code
04:11 VirusJTG_ [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:25 mac [mac@Nightstar-fe8a1f12.il.comcast.net] has joined #code
04:38 Vornicus is now known as Vash
04:42 thalass [thalass@Nightstar-f97b970e.bigpond.net.au] has joined #code
04:43 Vash is now known as Vornicus
04:43 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
04:51 RichyB [richardb@Nightstar-86656b6c.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
05:31 thalass [thalass@Nightstar-f97b970e.bigpond.net.au] has quit [Ping timeout: 121 seconds]
05:34 thalass [thalass@Nightstar-f97b970e.bigpond.net.au] has joined #code
05:41 thalass [thalass@Nightstar-f97b970e.bigpond.net.au] has quit [Ping timeout: 121 seconds]
06:01 Reiv [NSwebIRC@A3BDC3.5BE3EC.B8847E.5ADB9D] has quit [Ping timeout: 121 seconds]
06:06 Kindamoody is now known as Kindamoody|afk
06:32 Derakon is now known as Derakon[AFK]
06:35 Kindamoody|afk is now known as Kindamoody
06:49 Turaiel is now known as Turaiel[Offline]
07:15 mac [mac@Nightstar-fe8a1f12.il.comcast.net] has left #code ["Leaving"]
08:01
<&McMartin>
"Buildbot success on Windows branch"
08:01
<&McMartin>
Good, my goal for the weekend is complete~
08:03
<~Vornicus>
yay
08:03
<~Vornicus>
windows branch of what?
08:21
<&McMartin>
Work product
08:21
<~Vornicus>
aha
08:30 thalass [thalass@Nightstar-f97b970e.bigpond.net.au] has joined #code
08:34 thalass_ [thalass@Nightstar-f97b970e.bigpond.net.au] has joined #code
08:34 thalass__ [thalass@Nightstar-f97b970e.bigpond.net.au] has joined #code
08:34 459AADS0G [thalass@Nightstar-f97b970e.bigpond.net.au] has joined #code
08:34 thalass__ [thalass@Nightstar-f97b970e.bigpond.net.au] has quit [[NS] Quit: Leaving]
08:34 459AADS0G [thalass@Nightstar-f97b970e.bigpond.net.au] has quit [Client closed the connection]
08:34 thalass_ [thalass@Nightstar-f97b970e.bigpond.net.au] has quit [[NS] Quit: Leaving]
08:51 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [Ping timeout: 121 seconds]
09:53 Kindamoody is now known as Kindamoody|afk
09:59 syksleep is now known as Syk
09:59
<&McMartin>
08:53 < RichyB> AIUI on Windows the deal is that every process manages its own stack and heap in userland, so that's just the same, but there are a bunch of things external to your process that will
09:59
<&McMartin>
make assumptions about how you lay out and use memory and if you violate those assumptions then you get undefined behaviour.
10:00
<&McMartin>
A lot of those boil down to "we are assuming you're linking against this version of libc or with this ABI above this point", except for DLL behavior
10:00
<&McMartin>
DLLs memmap the entire DLL including file headers and metadata into the process memory space and then fiddle with parts of them during link-loading.
10:00
<&McMartin>
That part has to stay constant since dicking with that process is the rough equivalent of LD_PRELOAD jackassery when you're in Windowsland.
10:39 * thalass fiddles around with the demo version of Tasker, ooooos
11:17 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Client closed the connection]
11:31 Kindamoody|afk is now known as Kindamoody
11:43 thalass [thalass@Nightstar-f97b970e.bigpond.net.au] has quit [Ping timeout: 121 seconds]
12:04 thalass [thalass@Nightstar-f97b970e.bigpond.net.au] has joined #code
12:34 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
12:45 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has joined #code
12:45 mode/#code [+o Orthia] by ChanServ
12:49
<&ToxicFrog>
McMartin: I seem to have forgotten to download your Spellcast evaluator and the pastebin has timed out.
12:49
<&ToxicFrog>
Got a copy lying around?
13:44 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
13:44 mode/#code [+o celticminstrel] by ChanServ
13:48 Kindamoody is now known as Kindamoody|out
14:08 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
14:46 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [Ping timeout: 121 seconds]
15:06 RichyB [richardb@Nightstar-d794cf5a.range81-158.btcentralplus.com] has joined #code
16:06 Turaiel[Offline] is now known as Turaiel
16:20 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:33 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
16:33 mode/#code [+o himi] by ChanServ
16:44 Turaiel is now known as Turaiel[Offline]
17:00 Syk is now known as syksleep
17:38 d4de [olorin@687AAB.418D22.C1A6F3.80EB68] has quit [Ping timeout: 121 seconds]
17:41 thalass [thalass@Nightstar-f97b970e.bigpond.net.au] has quit [Ping timeout: 121 seconds]
17:50 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
17:50 mode/#code [+o Courage] by ChanServ
19:01
<&McMartin>
TF: Let me check
19:04
<&McMartin>
https://hkn.eecs.berkeley.edu/~mcmartin/spellcast.clj
19:04
< AnnoDomini>
SO MANY EMOTES.
19:05
<&McMartin>
:s :p
19:05
<&McMartin>
Er, rather
19:05
<&McMartin>
:s :d
19:06 Turaiel[Offline] is now known as Turaiel
19:09
< Turaiel>
Is anyone familiar with rehosting the UI of other applications into WPF?
19:09
< Turaiel>
This, specifically: http://stackoverflow.com/questions/15725908/how-can-i-embed-a-powerpoint-present ation-into-a-wpf-application-without-opening
19:16 d4de [olorin@687AAB.418D22.ECD263.3B52E5] has joined #code
19:18 Kindamoody|out is now known as Kindamoody
19:55 syksleep [the@Nightstar-137186a4.iinet.net.au] has quit [Ping timeout: 121 seconds]
20:21 Turaiel is now known as Turaiel[Offline]
20:33 Kindamoody is now known as Kindamoody[zZz]
20:47 RichyB [richardb@Nightstar-d794cf5a.range81-158.btcentralplus.com] has quit [Ping timeout: 121 seconds]
20:48 Vornicus [vorn@Nightstar-221158c7.sd.cox.net] has joined #code
20:48 mode/#code [+qo Vornicus Vornicus] by ChanServ
21:00
<&ToxicFrog>
McMartin: thanks.
21:00
<&ToxicFrog>
It occurs to me that it might be more readable if you had a (defspells) macro that accepted gesture sequences in normal order and reversed them internally.
21:06
<&ToxicFrog>
Also - what's the purpose of (let [suffix (into () gestures)] and (into [] (one-hand-sequence ...))?
21:07
<&ToxicFrog>
one-hand-sequence already returns a vector, and gestures is, if not a list, at least seqable
21:22 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
21:22 mode/#code [+o celticminstrel] by ChanServ
21:22
<&McMartin>
I don't recall offhand and I am super-sleepy
21:23
<&McMartin>
"into () gestures", however, is basically "reverse"
21:24
<&McMartin>
Also, I stored the gestures reversed because Spellbinder's own documentation organized them in that manner
21:24
<&McMartin>
So it was easier to type~
21:24
<&McMartin>
Oh
21:24
<&McMartin>
And the second code isn't what you wrote
21:24
<&McMartin>
It's (into [] (left-hand) (right-hand)).
21:25
<&McMartin>
It returns a vector of length 2
21:25
<&McMartin>
And that is because I can never remember which of vec or vector is the right one.
21:25
<&McMartin>
They both exist and they both do slightly different things~
21:26
<&McMartin>
And raw vector literals don't always properly self-evaluate.
21:31 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
21:31 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
21:31 mode/#code [+o celticminstrel] by ChanServ
21:32
<&ToxicFrog>
Er?
21:32
<&ToxicFrog>
(vector (into [] (one-hand-sequence (hand-seq left right)))
21:32
<&ToxicFrog>
(into [] (one-hand-sequence (hand-seq right left)))))
21:32
<&McMartin>
Ah.
21:32
<&McMartin>
Probably to get the output to look pretty, then~
22:00 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Client closed the connection]
23:06 Reiv [NSwebIRC@A3BDC3.5BE3EC.B8847E.5ADB9D] has joined #code
23:06 mode/#code [+o Reiv] by ChanServ
23:12 Reiv [NSwebIRC@A3BDC3.5BE3EC.B8847E.5ADB9D] has quit [[NS] Quit: Page closed]
23:12 Reiv [NSwebIRC@A3BDC3.5BE3EC.B8847E.5ADB9D] has joined #code
23:12 mode/#code [+o Reiv] by ChanServ
23:19 himi [fow035@D741F1.243F35.CADC30.81D435] has joined #code
23:19 mode/#code [+o himi] by ChanServ
23:42 Turaiel[Offline] is now known as Turaiel
23:54 RichyB [richardb@Nightstar-86656b6c.cable.virginmedia.com] has joined #code
--- Log closed Tue Apr 02 00:00:26 2013
code logs -> 2013 -> Mon, 01 Apr 2013< code.20130331.log - code.20130402.log >

[ Latest log file ]