code logs -> 2014 -> Wed, 20 Aug 2014< code.20140819.log - code.20140821.log >
--- Log opened Wed Aug 20 00:00:12 2014
00:23 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Operation timed out]
00:35
< Harlow>
now this is software http://vimeo.com/103425574
00:40 macdjord|slep is now known as macdjord
01:02 Derakon[AFK] is now known as Derakon
01:05 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
01:12 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
01:12 mode/#code [+qo Vornicus Vornicus] by ChanServ
01:41 ErikMesoy|sleep is now known as ErikMesoy
01:44 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [[NS] Quit: reboot]
01:48 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
01:48 mode/#code [+ao McMartin McMartin] by ChanServ
01:50 thalass [thalass@Nightstar-32fo5o.bigpond.net.au] has joined #code
01:50 mode/#code [+o thalass] by ChanServ
02:43 himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has joined #code
02:43 mode/#code [+o himi] by ChanServ
02:49 * macdjord mutters, ponder ponder
02:49
<@macdjord>
I need to construct a hash table in C for a struct consisting of 4 pointers. How best to do this?
02:49
<@macdjord>
Add them? Xor?
02:50
<@macdjord>
Xor with each one left-cycled a different ammount?
02:51
<@macdjord>
Note: These pointers will all be malloc()ed. This means, e.g., that the entropy in them will be mostly confined to the last n bits, where n is ~proportional to the number of strucs allocated.
02:54 Attilla [uid13723@Nightstar-ed0oqj.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
03:06
< [R]>
CRC32?
03:07
< [R]>
Note: your suggestions makes the hash-size dependant on the arch.
03:07
< [R]>
I don't suggest that, unless you really want to be using intptr_t as your hash key type.
03:09 Kindamoody[zZz] is now known as Kindamoody
03:09 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
03:10 Turaiel[Offline] is now known as Turaiel
03:11
<@macdjord>
[R]: I'm going to have to reduce the hash key down to a length which will vary by the size of the hashtable, anway.
03:11
< [R]>
?
03:15
<@macdjord>
[R]: Ultimately, the 'table' is an array which I index into. As more elements are added, I will need to resize this array. So, I need to convert my hash key - of size intptr_t - into an array index of variable size.
03:22 thalass is now known as Thalass|game
03:23 Harlow [harlow@Nightstar-04f.4po.201.71.IP] has quit [[NS] Quit: BED]
04:05 Turaiel is now known as Turaiel[Offline]
04:32 Kindamoody is now known as Kindamoody|nap
04:32 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
05:06 Derakon is now known as Derakon[AFK]
05:43 Ozzy{Away} [Ozzy@Nightstar-a86mje.cable.virginm.net] has quit [Ping timeout: 121 seconds]
05:51 Orthia [orthianz@Nightstar-s5d.ntf.224.119.IP] has quit [Ping timeout: 121 seconds]
05:51 Orthia [orthianz@Nightstar-s5d.ntf.224.119.IP] has joined #code
05:51 mode/#code [+o Orthia] by ChanServ
05:56 Thalass|game [thalass@Nightstar-32fo5o.bigpond.net.au] has quit [[NS] Quit: werk]
06:10 Kindamoody|nap is now known as Kindamoody
06:12 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
06:12 mode/#code [+o Checkmate] by ChanServ
06:26 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
07:13 himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has quit [Ping timeout: 121 seconds]
07:15 celticminstrel [celticminst@Nightstar-ak6p6n.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
08:35 Kindamoody is now known as Kindamoody|afk
09:04 Attilla [uid13723@Nightstar-ed0oqj.irccloud.com] has joined #code
09:58 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
09:58 mode/#code [+o himi] by ChanServ
11:27 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
12:30 Erik [8f610223@Nightstar-qtq4f2.mibbit.com] has joined #code
12:32
< Erik>
Is there a name for the anti-pattern where you can't remember what the format for something should be, so you invent your own, then the next guy doesn't see a standard format in the previous records, invents his own too, etc. and you wind up with umpteen ways of writing the same sort of data?
12:32
< Erik>
In this case US dates, UK dates, named-month-dates, "start of 3Q 2009" dates, etc.
13:58 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
14:06 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds]
14:32 Erik [8f610223@Nightstar-qtq4f2.mibbit.com] has quit [[NS] Quit: http://www.mibbit.com ajax IRC Client]
14:34 Checkmate [Z@Nightstar-ro94ms.balk.dk] has joined #code
14:34 mode/#code [+o Checkmate] by ChanServ
16:39 RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has joined #code
16:39 mode/#code [+o RchrdB] by ChanServ
17:28
<@Tarinaky>
ErikMesoy: No. just an XKCD comic.
17:31
<@ErikMesoy>
Ah well. I've been running into it over and over again at work recently.
17:32 celticminstrel [celticminst@Nightstar-ak6p6n.dsl.bell.ca] has joined #code
17:32 mode/#code [+o celticminstrel] by ChanServ
17:33
<@gnolam>
That tends to come from NIH syndrome rather than not remembering the proper solution, in my experience.
17:35 Ozzy [Ozzy@Nightstar-a86mje.cable.virginm.net] has joined #code
17:36 Ozzy is now known as NSGuest34423
17:40
<@ErikMesoy>
Mmhm. Where "here" is the individual user's mind in this case, I suppose.
17:45 NSGuest34423 is now known as Ozzy
19:06 Kindamoody|afk is now known as Kindamoody
19:16 Ozzy [Ozzy@Nightstar-a86mje.cable.virginm.net] has quit [[NS] Quit: ]
19:49
<@gnolam>
https://www.youtube.com/watch?v=DNLB7bFA_U4 <- "Whoa! This system is insane! It's completely Linux-based! Open source programming!"
19:50 Kindamoody is now known as Kindamoody[zZz]
20:14
<@Syloq>
reminds me of "Under the Dome" its horribly lame like that
20:31 * Julius ughs.
20:31 * Julius is writing in VBA.
20:35 Harlow [harlow@Nightstar-04f.4po.201.71.IP] has joined #code
20:36
< Julius>
Is it just me, or is this language terrible?
20:36
<&jerith>
Julius: It's right down there with PHP.
20:37
< Harlow>
What language Julius?
20:37
<&jerith>
The only reason I consider PHP worse than VB6 is that VB's flaws are obvious and PHP pretends to be a real language just long enough to suck people in.
20:38
< Julius>
Harlow: VBA in Excell.
20:38
< Julius>
-l
20:38
< Harlow>
In excell.
20:38
< Harlow>
lol
20:39 BurnTheGalaxy [BurnTheGala@Nightstar-dtou0v.il.comcast.net] has joined #code
20:40
< Julius>
Why is that funny?
20:41
<@Tamber>
Didn't say what sort of laugh. So I'm imagining that as the nervous laugh of a man on the edge.
20:45
< Julius>
My boss has requested I make a timesheet template, specifically mandating real dates in the column headers.
20:46
< Julius>
So I'm thinking to have the first column header to be filled in by the user, with the start date, and the rest of the columns to be automatically filled out with consecutive days.
20:46
<&jerith>
Timesheets. ;_;
20:48
<&jerith>
(I have subverted two attempts at mandating timesheets at two different companies. In both cases, we merely accurately tracked the amount of time and effort spent tracking our time and effort.)
20:49
< Julius>
That would be a greater problem for us, since we do consulting. And the clients often require largely pointless stuff like this.
20:51
<&jerith>
Julius: So do we.
20:51
<&jerith>
Well, we're a marketing/advertising agency.
20:51
< Julius>
Welp, boss wants timesheets, I do timesheets.
20:51 * jerith grins.
20:52
< Julius>
We do business transformation and leadership development.
20:52
< Julius>
Or somesuch buzzwords.
20:52 * Julius waves hands vaguely.
20:54
<@macdjord>
For some reason, I read 'transformation' in the /matheatical/ sense there.
20:54
< Julius>
Oh, sure we fourierize companies all the time.
20:56
<@macdjord>
"Well, the good news is you only have to pay people every 8th and 23rd day. The bad news is you're making 1.2-3i million dollars per year now."
20:56
<@gnolam>
8th and 23rd? Weird.
20:57
< Julius>
How much is that in BTC?
20:57
<@Tamber>
I think I'm supposed to do time-sheets, but I've stopped bothering. I spend more time updating my record of what task I've jumped to next, than actually doing any work, it seems. :D
20:58
<&jerith>
Tamber: Yes, that's why my subversions were successful.
20:58
<@Tamber>
hehehehe
20:59
<@Tamber>
"Well, you asked for it..."
21:24 BurnTheGalaxy [BurnTheGala@Nightstar-dtou0v.il.comcast.net] has quit [[NS] Quit: Leaving]
21:44
< Julius>
Setting a date-type field to a null string value from VBA crashes Excel.
21:59
< Julius>
Passing a space does not.
22:08
<@Tarinaky>
Generally speaking complex properties in physical systems the 'real' portion describes the instantaneous value and the imaginary part describes the rate of change/derivative.
22:08
<@Tarinaky>
I am giving complex profit too much thought :/
22:09 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
22:09 mode/#code [+o Reiv] by ChanServ
22:09
<@RchrdB>
Tarinaky, how does that work?
22:09
<@Tarinaky>
The answer is 'it depends on the maths'
22:10
<@Tarinaky>
For stuff that oscilates it follows straight from the Euler equation
22:10
<@Tarinaky>
(and the derivative thereof)
22:11
<@Tarinaky>
And "stuff that oscillates" is approximately half of all engineering problems :P
22:11
<@Tarinaky>
The other half being "stuff that doesn't oscillate" :P
22:16
< Julius>
OK. This works, reasonably well, I think.
22:16 * Julius sends to boss and wonders how he'll break it.
22:20
<@Tarinaky>
In the case of Fourier transforms, the real component of the output is your energy function and the complex portion contains the bits of information needed to go back to the beginning with an inverse fourier transform...
22:21
<@Tarinaky>
Which for time->frequency tansforms is going to be ordering information.
22:21
<@Tarinaky>
(I'm a little shaky on Fourier stuffs on account of sucking at my job but whatever >.>)
23:21
< Harlow>
Anyone have any idea what would cause chrome in a new window to flat out not display things if its a javascript call to open a window?, popup blocker is off and adblock is not installed.
23:23
<@gnolam>
It was hot, the night you burned Chrome.
23:23
< Harlow>
gnolam any insight?
23:24
<@gnolam>
No idea.
23:24
< Harlow>
i mean i figured .focus() might do the trick, but no. Also when you try to resize the window it displays the content instantly.
23:25
<@Reiv>
Harlow: Check free porn websites
23:25
<@Reiv>
That'll tell you how to get a popup to happen no matter the circumstances~
23:27
< Harlow>
Wow, I never thought of that good but its not that I think my problem stems from something else.
23:27
< Harlow>
http://pastebin.starforge.co.uk/650
23:28
< Harlow>
If anyone wants to take a look at how I'm invoking this window. Maybe I'm doing something wrong, I'd appreciate a once-over.
23:29 Checkmate [Z@Nightstar-ro94ms.balk.dk] has quit [Ping timeout: 121 seconds]
23:30 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
23:58 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:58 mode/#code [+qo Vornicus Vornicus] by ChanServ
--- Log closed Thu Aug 21 00:00:28 2014
code logs -> 2014 -> Wed, 20 Aug 2014< code.20140819.log - code.20140821.log >

[ Latest log file ]