code logs -> 2014 -> Thu, 18 Dec 2014< code.20141217.log - code.20141219.log >
--- Log opened Thu Dec 18 00:00:32 2014
00:13
<@celticminstrel>
What was he thinking when he decided to make the keyboard input handler construct a point and pass it on to the mouse input handler... :/
00:24
<~Vornicus>
wat
00:24
<~Vornicus>
man, that's a hack
00:34 Turaiel is now known as Turaiel[Offline]
00:40 * celticminstrel mentions it now because it's half the reason keystrokes didn't work in the editor, the other half being that sometime when I converted it over to SFML I missed some things and it was reading uninitialized data to determine the key presssed.
00:41
<@celticminstrel>
(Admittedly, the first is probably also my fault; somehow something I did caused the key locations to change.
00:41
<@celticminstrel>
)
01:04 Turaiel[Offline] is now known as Turaiel
01:13 Turaiel is now known as Turaiel[Offline]
01:13 Thalass is now known as Thalaway
01:17 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
01:18 mode/#code [+o Checkmate] by ChanServ
01:23 Turaiel[Offline] is now known as Turaiel
01:24
<~Vornicus>
celmin: was my math useful to you?
01:24
<@celticminstrel>
Oh, yeah.
01:24
<@celticminstrel>
I got an fx script that produced useful results, though they still needed a little manual adjustment.
01:29
<~Vornicus>
Woot. Can you show me? I haven't seen much in the way of fx examples
01:37
<@celticminstrel>
It's actually two fx snippets. https://github.com/calref/cboe/tree/master/rsrc/remove-bg
01:42 Derakon[AFK] is now known as Derakon
01:43
<~Vornicus>
ok fx is actually a lot more complete than the documentation led me to believe
01:43
<@celticminstrel>
Hm?
01:44
<~Vornicus>
Like, I had no idea it had comparison, logical, or ternary operators
01:45
<@celticminstrel>
Ah.
01:45 * celticminstrel left in the debug lines, as you may have noticed. They sorta double the length of the snippet.
01:49
<@celticminstrel>
Maybe you were looking at the wrong part of the documentation? There's a list of everything in the language somewhere.
01:51
<~Vornicus>
I couldn't find anything other than vagueness about fx, actually
01:51
<@celticminstrel>
I think there was a link to the documentation of the command-line switch which linked to a description of the language.
01:51
<@celticminstrel>
Though, even that was a little vague, as I recall.
02:18 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
03:07 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:04 Thalaway [thalass@Nightstar-9ai58o.bigpond.net.au] has quit [[NS] Quit: werktime]
04:22 Derakon is now known as Derakon[AFK]
04:42 Derakon[AFK] is now known as Derakon
05:13 Derakon is now known as Derakon[AFK]
05:17 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
05:49 Kindamoody[zZz] is now known as Kindamoody
06:39 celticminstrel is now known as celmin|sleep
07:07 Turaiel is now known as Turaiel[Offline]
07:42 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has joined #code
08:11 gnolam [lenin@Nightstar-fk7ia4.cust.bredbandsbolaget.se] has quit [[NS] Quit: Crash]
08:21 gnolam [lenin@Nightstar-fk7ia4.cust.bredbandsbolaget.se] has joined #code
08:21 mode/#code [+o gnolam] by ChanServ
08:47 Kindamoody is now known as Kindamoody|afk
09:11
< abudhabi>
In CSS, is there a keyword or something that indicates that the property should be ignored if already defined somewhere upstream?
09:11
< abudhabi>
For example, I have a "height" defined a few elements up the cascade, and I'd like for it to be ignored.
09:15 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has quit [[NS] Quit: Leaving]
09:51
<@froztbyte>
https://gist.github.com/namuol/9122237
11:16 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
11:16 mode/#code [+o Checkmate] by ChanServ
11:20 gizmore [kvirc@Nightstar-9odp1h.pools.vodafone-ip.de] has quit [[NS] Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
11:20 gizmore [kvirc@Nightstar-9odp1h.pools.vodafone-ip.de] has joined #code
11:49 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
12:55 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
13:17 Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has joined #code
13:17 mode/#code [+o Checkmate] by ChanServ
13:56
<@Tarinaky>
C++ fuckery:
13:57
<@Tarinaky>
I have a C-Array of indeterminate length.
13:57
<@Tarinaky>
I want to pass the array to a function beginning at the third element.
13:58
<@Tarinaky>
There is a seperate integer which the function will use to determine whether the the remaining list is null.
13:58
<@Tarinaky>
&array[2] will dereference the third element, and get the address of it again... which is a possible segfault
13:59
<@Tarinaky>
array+2 is not best practice, because it's not guarenteed that a pointer is one word in length on all platforms on all tuesdays.
14:03
< abudhabi>
Tarinaky: http://stackoverflow.com/questions/197839/is-there-any-way-to-determine-the-size -of-a-c-array-programmatically-and-if-n <- Third answer?
14:04
<@Tarinaky>
That's... not my question o.o
14:05
<@Tarinaky>
I have a variable that tells me how big the array is.
14:05
<@Tarinaky>
But I'd rather not handle the case n<3 explicitly.
14:06
< abudhabi>
So it's actually an array of determinate length?
14:06
<@Tarinaky>
Or rather, I'd rather handle it inside the function I'm passing this subarray in to and let it decide whether or not it actually uses the junk pointer it's passed there.
14:06
<@Tarinaky>
Yes.
14:06
<@Tarinaky>
It's an array of determinate length (at run time)
14:06
< abudhabi>
Why don't you want to handle n>3 cases?
14:06
< abudhabi>
It sounds like a sane approach.
14:07
<@Tarinaky>
Because it'll clutter the code.
14:07
<@Tarinaky>
I'd rather handle n<3 and n>=3 with the same code.
14:07
<@Tarinaky>
And diverge when the pointer is actually used.
14:07
<@Tarinaky>
Or just before the pointer is actually used.
14:07
<@Tarinaky>
For brevity.
14:07
<&ToxicFrog>
Pass (array+2, arraylen-2)
14:08
<@Tarinaky>
Is array+2 technically correct?
14:08
<&ToxicFrog>
And then use the passed length rather than a sentinel value.
14:08
<&ToxicFrog>
If its declared type is, yes.
14:09
<@Tarinaky>
In fct, I never have to handle the n<3 case explicitly because the for loop just won't run and everything does the right thing (on paper).
14:11 * Tarinaky sacrifices a goat to Doesitcompile.
14:23
< abudhabi>
Heh. The overboss thinks I have the best phone. Nokia 1616.
14:25
<@Tarinaky>
Oh joy.
14:25
<@Tarinaky>
Template errors.
14:26
<@Tarinaky>
error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: bool __thiscall std::_Tree_const_iterator<class std::_Tree_val<struct std::_Tree_simple_types<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,int (__cdecl*)(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::ba
14:27
< abudhabi>
The compiler is displeased!
14:28 * Tarinaky offers abudhabi as a virgin sacrifice.
14:42
<&ToxicFrog>
Tarinaky: the template is not the problem here, I think
14:42
<@Tarinaky>
No.
14:42
<@Tarinaky>
It was something else.
14:42
<@Tarinaky>
I fixed that error though.
14:42
<&ToxicFrog>
It looks like you're using some debug function and not linking with the (?win32 debug libraries), at a guess
14:43
<@Tarinaky>
The trouble is, that's not terribly useful compiler output.
14:43
<@Tarinaky>
Why on earth am I getting an unresolved external symbol for a static method of all things?
14:43
<@Tarinaky>
It's quite clearly defined.
14:44
<&ToxicFrog>
Typo? Scope?
14:44
<@Tarinaky>
Are all correct.
14:48
<&ToxicFrog>
Pastebin a minimal repro. :shrug:
14:50
<@Tarinaky>
Don't think that'd be allowed.
14:50
<&ToxicFrog>
Oh. Work?
14:51
<@Tarinaky>
Yeah
14:51
<@Tarinaky>
I've gotten it to work by changing the function in to an inline.
14:53
<&ToxicFrog>
But it's still static?
14:56
<@Tarinaky>
Yes
15:01
<&ToxicFrog>
Weird.
15:05 io is now known as iospace
16:31
<@celmin|sleep>
[Dec 18@08:59:21am] Tarinaky: array+2 is not best practice, because it's not guarenteed that a pointer is one word in length on all platforms on all tuesdays.
16:31
<@celmin|sleep>
Uh, why would it matter what the size of a pointer is? array+2 means "advance this pointer by twice the size of what it points to".
16:41 celmin|sleep is now known as celticminstrel
17:08 Turaiel[Offline] is now known as Turaiel
17:28 Kindamoody|afk is now known as Kindamoody
17:32 gizmore [kvirc@Nightstar-9odp1h.pools.vodafone-ip.de] has quit [[NS] Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
17:40 gizmore [kvirc@Nightstar-9odp1h.pools.vodafone-ip.de] has joined #code
18:20
<&McMartin>
when you say "static method" is this C-style or C++/java-style static?
18:20
<&McMartin>
And was it crossing DLL boundaries somehow?
18:33
<@celticminstrel>
The math for determining where I clicked is still a bit off... :/
18:35
<&McMartin>
(The only thing I can think of is that the symbol wasn't exported and that this mattered)
18:37
<&McMartin>
Oh!
18:37
<&McMartin>
No, that looks it is marked as *imported* but is defined locally
18:37
<&McMartin>
Oh you fixed that one, n/m
18:39 Turaiel [Brandon@Nightstar-vku52k.resnet.mtu.edu] has quit [[NS] Quit: Bouncer terminated]
19:35 Turaiel [Brandon@Nightstar-olc20d.resnet.mtu.edu] has joined #code
20:55
<@celticminstrel>
Just got an infinite loop because I accidentally used "i = 1" in an expression instead of "i + 1". :/
21:01 * abudhabi pulls the plug on celticminstrel's computer to thereby avoid truth no longer being true.
21:05
<@celticminstrel>
Uh.
21:05
< abudhabi>
http://thecodelesscode.com/case/21
21:07
<@celticminstrel>
XD
21:08
<@celticminstrel>
This was a for-loop though.
21:08
<@celticminstrel>
Which should have been obvious from what I said. Maybe.
21:50 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
21:52 Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has quit [Ping timeout: 121 seconds]
21:53 Stumblinbear [Stumblinbea@Nightstar-jd9.012.239.67.IP] has joined #code
21:56 Kindamoody is now known as Kindamoody[zZz]
22:02 Turaiel [Brandon@Nightstar-olc20d.resnet.mtu.edu] has quit [[NS] Quit: Bouncer terminated]
22:19 Turaiel[Offline] [Brandon@Nightstar-olc20d.resnet.mtu.edu] has joined #code
22:49 Turaiel[Offline] is now known as Turaiel
23:08 Stumblinbear [Stumblinbea@Nightstar-jd9.012.239.67.IP] has quit [[NS] Quit: Leaving]
23:15 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Ping timeout: 121 seconds]
23:32 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
23:32 mode/#code [+o Checkmate] by ChanServ
23:35 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
23:35 mode/#code [+o Alek] by ChanServ
23:40 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code
23:40 mode/#code [+o himi] by ChanServ
--- Log closed Fri Dec 19 00:00:48 2014
code logs -> 2014 -> Thu, 18 Dec 2014< code.20141217.log - code.20141219.log >

[ Latest log file ]