« first day (1252 days earlier)      last day (3700 days later) » 

6:17 PM
so, you can do DI in MVC either by implementing IDependencyResolver, or extending DefaultControllerFactory
I used to think that there was not much difference between these two different ways to do it
However, I'm finishing my MVC book and it has me implement my own ControllerFactory (instead of extending the default), and in the CreateController method, it actually has: (IController) DependencyResolver.Current.GetService(targetType);
so in other words, it looks like DefaultControllerFactory actually uses the DependencyResolver
now i'm confused as fuck
any thoughts?
 
RAID5 is the awesomest
 
It doesn't seem like Friday, mostly because I've been doing the same thing all week long.
 
I need to predict next value for that ^
 
lmfao fuck that
 
I'm thinking finding the ~period~ and sample the last n and fit a square to it, does that sound ok?
 
6:31 PM
@JohanLarsson is that the entire data set?
 
yes
not allowed to tell what it is
 
looks like not enough for the degree you're looking at
 
the red and the blue lines are samples with device a / b
@Pheonixblade9 how do you mean?
 
looks to me like a 2-degree sinusoid with a 1-degree polynomial factor, if that helps
 
yeah I should fft it
 
6:33 PM
indeed
always FFT a signal, sometimes it is just 3 or 4 components and it's super easy to figure out
 
I was thinking sample 10-15 last values and fit a square to it
 
@JohanLarsson if you're allowed to share the data, but not the purpose, I could help
 
I wish I knew what a FFT was
 
I got an A in my DSP class ;)
 
it sounds nerdy
 
6:34 PM
@KendallFrey fast fourier transform.
 
yes, I know that
 
It breaks a time-based signal into its frequency components
 
The Fourier transform (), named after Joseph Fourier, is a mathematical transformation employed to transform signals between time (or spatial) domain and frequency domain, which has many applications in physics and engineering. It is reversible, being able to transform from either domain to the other. The term itself refers to both the transform operation and to the function it produces. In the case of a periodic function over time (for example, a continuous but not necessarily sinusoidal musical sound), the Fourier transform can be simplified to the calculation of a discrete set of compl...
 
@JohanLarsson Johan, let me know when you've figured out how to predict the future, we're over here in #Bitcoin waiting...
 
@Pheonixblade9 nice, sec
@BrockHensley :)
 
6:35 PM
so if you have a single sinusoid with a period of n and an amplitude of A, you FFT the signal and you get a single impulse (straight line up) at f=n with a value of A
 
0
Q: Difference between implementing DI by extending DefaultControllerFactory vs implementing IDependencyResolver

SteveWe can do DI in MVC either by implementing IDependencyResolver, or extending DefaultControllerFactory I used to think that there was not much difference between these two different ways to do it. However, I'm finishing my MVC book and it has me implement my own ControllerFactory (instead of ext...

 
it's a good way to determine how to replicate the signal, because you can easily see the different components that go into generating it if it's a periodic signal
 
@Pheonixblade9 how are you so fucking smart....
 
I too need to know what the next points in this graph will be...
 
the more complicated explanation involves complex numbers
@Steve what do you mean? It's what I went to school for
I only took 4 CS classes, I taught this shit to myself mostly lol
I went to school for computer engineering. I'm more of an EE than SDE by education
 
6:38 PM
@Pheonixblade9 this ok?
 
@BrockHensley unfortunately, there are definitely too many factors in that ;)
 
yeah, the damn chineses ;)
 
@JohanLarsson that should work. I don't have MATLAB on my work PC but I'll see what I can do
 
copy pasted from excel, the column names are not very descriptive cos so-secret
 
@BrockHensley Sell it all and invest in Boris Mutual Funds
 
6:39 PM
Not sure if serious, or making Russian joke...
 
@JohanLarsson it's just tab delimited?
 
yeah, copy paste from excel
 
cool. will check out
 
and decimal comma cos sweden :)
ctrl + h the commas
 
:P
wait, so it's 1.0598e2, not 1.0598e5?
use proper scientific notation and you wouldn't have these issues!
 
6:43 PM
It's only 3 off @Pheonixblade9...
Pheonixblade's head explodes
 
@Pheonixblade9 the first
@Pheonixblade9 true
gonna try to fft it in excel, remember it is slightly painful
 
nooooo
e1/e4, not e2/e5
 
what does it mean?
 
e1 is shorthand for *10^1
e5 is shorthand for *10^5
so 10 = 1e1, 1551 = 1.551e3
it's the best way to make sure the number of significant digits is constant and clear
for example, if you were being mathematically and statistically rigorous in this, 10.58 * 10.581 = 111.95, not 111.94698 because you don't have enough precision to know anything farther than 2 decimal points
dangit, why do I not have Maple or MATLAB on this PC :(
 
scilab or octave?
 
6:49 PM
nah
damn you, wolfram alpha, I bought your app!
wolfram alpha can do it but you need pro
 
ran a fourier analysis on it in excel, interpret the mess next :)
 
@JohanLarsson right, do you have longer data? the tool requires the number of samples to be a power of 2
which is dumb...
 
I used the first 512
no longer data available
 
@JohanLarsson Seems to me the last 512 would be more accurate
 
7:00 PM
yeah very valid point
 
@Pheonixblade9 No, if you were being "statistically rigorous" it would be 111.9, because you don't have enough precision to know anything farther than 4 significant digits.
 
@KendallFrey derp, you're right
multiplication/division = number of digits, addition/subtraction = least significant point
 
lamb is ready, breaking for food & wine
some complex numbers for desert
 
woo!
 
@JohanLarsson god damnit, I could do this by hand faster than Excel
I wish I remember more stuff from school :(
 
7:05 PM
complex numbers are epic
 
I should have taken complex diffeq
just didn't have time :(
plus it was a graduate level math class, which I hear are difficult
 
7:25 PM
@Pheonixblade9 - lies, those are the easiest ones
 
@TravisJ well, Calc 4 was the easiest math class I've taken
 
6 hours on a single problem is child's play
:P
 
well, I'm used to spending 20 hours on a single problem :)
 
I spent 3 weeks on that scheduling algorithm :(
 
I spent all week debugging unit tests for one new method (which has one line of code)
 
7:27 PM
lol
 
Most of it was for bugs in unrelated code that were mysteriously made manifest in this code
(this happens a lot)
 
Programming
 
That image is pretty inaccurate... except that it describes my week exactly.
 
So it's very accurrate
 
no, just timely
This question is "interesting"
-1
Q: Is Generic Types in C # like in Java?

denes bastosI studied Java for a long time and am well acquainted with the operation of generic types in the language : I know there are only at compile time , suffering type erasure at the end of it ( so that at runtime this information is not available ) and have some notion of the difficulties when applyi...

cc @ReedCopsey
:P
 
7:36 PM
lol
 
already answered ;)
 
exactly
I wish I had the sanity to answer such crap
 
though I think it's going to get closed (and a bit unfairly, as I don't think that's an exact duplicate)
 
I voted as too broad
 
Whatever the case, if you see @ReedCopsey answers, vote it up.
 
7:38 PM
0
Q: How to String Format

user1387287I've an array of strings below and wanted to format like the followings, what is the best way of doing that? Thanks in advance. line[0] = "This is line one two tree"; line[1] = "This is Abc Cde"; line[2] = "This is cjdj"; I want it to format to display like this This is line one two tree Thi...

dammit reed
 
lol
 
you really are a rep whore
 
This was my real interesting question today:
1
Q: F#: IEnumerable<Tuple<TA,TB>> is not compatible with (TA * TB) list?

knocteSo I have the following code which is giving a type mismatch compiler error, and I don't know why: [<Test>] member this.TheTest() = let tuple = (DateTime.Now, 10) let listOfTuples = [ tuple ] SomeType.SomeFunc(listOfTuples) static member SomeFunc (listOfTuples: IEnumerable<Tuple<Dat...

That one actually took some effort to answer ;)
 
i saw that one a couple minutes ago
 
@ReedCopsey wish i knew enough to vote
 
7:40 PM
and now dystroy is stealing my JS questions
small world, SO is
 
@KendallFrey - Yup. Try something more obscure :) Although if you do, then no one will see it haha
 
Y'all are just rep whores ;P
 
I plead the 5th
 
it would be nice to have 10 and see flags
 
7:42 PM
Bah, you don't want to see flags
 
i have a feeling the flagged stuff is funny
 
they're just annoying
 
^
 
but answer a few questions, and you'll get there ;)
 
The content is terrible, and flagging doesn't solve anything, a mod still has to take the final action
I thought the meta stuff would be funny at 10k, but really it was just depressing
Just a ton of deleted flame wars
 
7:43 PM
Hola
 
@ReedCopsey I answer mostly old quesitons I find when researching stuff, nt very profitable
 
Hi @Lasse :)
 
@LasseV.Karlsen Welcome :)
 
hei <- Norweigian I think
 
@JohanLarsson - Yeah, when I answer an older question I often wonder if the OP even notices
 
7:45 PM
Does it matter if the OP notices? If it's a question worth answering, it'll probably be nice for others as well.
 
@Lasse do you work in norway?
 
@JohanLarsson Yes I do, Porsgrunn, Telemark, in fact
 
@TravisJ my data says noone notices :)
 
@LasseV.Karlsen - That is why I still answer them :)
@JohanLarsson - hahaha
 
@LasseV.Karlsen how is the job market for programmers in norway?
 
7:46 PM
I notice all traffic on my old questions and answers :)
 
You can get necromancer badge :D
 
i think i have one, and tumbleweed
 
@JohanLarsson So so... As I said, I work/live in Porsgrunn, Telemark, which is not that big a region, and I don't really keep track of the "main areas" like Oslo, Stavanger, Bergen, etc.
 
atleast is there a way to get two main roads marked on google map?
between specific two locations
 
routing?
 
7:47 PM
no for a application
taxi
 
Well, if I do this:
https://maps.google.com/maps?saddr=Oslo&daddr=Bergen

I get a nice blue line
If you experiment a bit I'm sure you'll find the correct URL for your needs
 
@LasseV.Karlsen ok i think about moving to norway or the north of sweden sometimes, would be nice to live close to nice nature
 
Where do you live now?
 
gävle, 200 km north of stockholm
 
@LasseV.Karlsen I need to know how to set that on map to my application
 
7:51 PM
Would probably be slightly more "central" than what I am at the moment. If I want to find a forest I can just walk into and "never get out of" it would be about an hours drive from here
@Jenny I have no idea, I just used google maps on the web, sorry
 
it z ok
 
@Jenny - You would have to use the api for that
 
I need to be here more, can't believe it's over 3 years since I started this room
 
I agree!
 
yeah ++
 
7:56 PM
Wow, Marc Gravell was in here too at that time
 
marc skeet and hans passant need to (re)discover the sunny side of so imo
 
ya can u tell me how to access api for this
:15420269
 
there is a C# wrapper for google maps i think
 
@Kendall - Since Lasse was one of the original owners, it only seems fair to make him one again?
 
@JohanLarsson mark skeet?
 
7:58 PM
wtf i pressed shift for c# for some reason, not pressing shift on a friday night
 
@TravisJ He's not a regular yet :/
 
Good faith?
 
@TravisJ yeah, he promised to become a reg :)
 
Can remove if not
 

« first day (1252 days earlier)      last day (3700 days later) »