|
kArViD0tnEt wrote: Spent my weekend in the province and it's kinda refreshing. How about you?
I live in the province.
|
|
|
|
|
living in province means you're refreshed everyday.
Don't mind those people who say you're not HOT. At least you know you're COOL.
|
|
|
|
|
Got a potential contract there for a few months, any one got any experience of the place, recomendations, things to do, see, avoid?
|
|
|
|
|
Don´t know Kortrijk myself, but there are many students there, so I think the atmosphere will be nice. It´s very close to the French border.
Things to see, you could go to the coast, Gent en Bruge. I would definitely recommend to visit Ypres (Ieper) (Minne gate) and the trenches of World War I.
South from Kortrijk is a more open area (fields, forests) where you can go walking.
Hope this helps.
|
|
|
|
|
Pics look pretty, plus a uni town sounds good, should be good for lively bars. I speak French and a bit of Flemish, but I guess most speak English there, most Flemish do, very well.
Its tempting, very tempting, and it feels like time for a change.
|
|
|
|
|
So you are a polyglot.
Peter Wasser
Art is making something out of nothing and selling it.
Frank Zappa
|
|
|
|
|
If thats the word, I suppose I am.
|
|
|
|
|
V. wrote: I would definitely recommend to visit ... the trenches of World War I.
Don't forget to bring a picnic lunch.
The trenches of WW1 would not be on my list of things to see for me as my Great Uncle Felix died in a gas attack. I keep a picture of him in my home. It was taken in 1914 before he was in the military. Going to the trenches would definitely not be on my agenda.
modified 9-Feb-14 21:55pm.
|
|
|
|
|
I went to a couple of forts on the Maginot line when i was in Luxembourg, they are interesting.
Most interesting places I have been to were a concentration camp in Belgium, Breendonk, deeply deeply disturbing, and sickening, and Point Alpha, US base on the old East German border, very modern, and recently linhabited, and to see the chunk of iron curatin in the field just in front, a moving experience.
modified 9-Feb-14 14:02pm.
|
|
|
|
|
Bastogne is also pretty impressive
|
|
|
|
|
Went past it a few times, what is there to look at? I saw the military museum at Etternach I think it is, where Patton died. That was impressive.
|
|
|
|
|
Bastogne was surrounded for a few months by the Germans. The allies held out during an extreme cold winter (-20 degrees celcius) with a limited supply of ammo and food. The museum there explains it in detail and you can walk the surrounding area. It was one of the most intense and heaviest battle scenes of the entire war apparently.
|
|
|
|
|
I can't even pronounce that word properly.
"Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[ ^]
|
|
|
|
|
ij is pronounced like 'eye' kind of.
ijs is 'ice' for example. Often the i and j and joined to give that y with the umlaut dots over it.
Anyway, rijk is kingdom, like reich in german, or rice in old english. Hard k sound for the English word which typically becomes ch in garman. kirk, kirch, ik, ich etc.
|
|
|
|
|
So, I'm doing some analysis code, and I need a couple of moving averages - one over the whole sample, one over the last 30 samples, and one over the last ten samples.
Now, I don't fancy doing that in SQL, so I'm doing it in C#, and I decide the obvious thing to do is create a MovingAverage class that you Add samples to, and it sorts itself out. Easy peasy.
So I knock up the class framework, and the code that will use it, and then go back to fill in the class. And decide to make it generic because hey, I might want to use it again. Change everything to use generics - easy - and off we go...except...you can't sum generics, because they are based on object which doesn't implement arithmetic operators. And you can't restrict generics to classes that support arithmetic either...
So either I restrict it to just primitive types (int, double, blah blah blah) or I drop the whole idea...and you can't use primitive types as generic constraints...and it wouldn't work if you could, because primitive arithmetic is implemented via static inline functions at compile time, so you couldn't use 'em in a generic if you wanted to!
So...change it back Griff, change it all back...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Part of this EnumOperators[^] might be of use, and I think I saw someone else with something similar. But, yes, 'twould be nice if there were an INumeric interface... maybe in the next framework.
This space intentionally left blank.
|
|
|
|
|
I was making it generic to make my life easier in future!
(And I hate runtime type checking)
Thanks for that though, even if I'm not going to use it (I've already changed it back to fixed datatype)
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
A lot like mine:
public class MovingAverage
{
private List<int> samples = new List<int>();
private int total = 0;
public int SampleSize { get; private set; }
public decimal Value
{
get
{
return samples.Count == SampleSize? (decimal)total / SampleSize : decimal.MinValue;
}
}
public MovingAverage(int sampleSize = -1)
{
SampleSize = sampleSize;
}
public void Add(int value)
{
if (SampleSize > 0)
{
while (samples.Count >= SampleSize)
{
int remove = samples[0];
samples.RemoveAt(0);
total -= remove;
}
}
samples.Add(value);
total += value;
}
}
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Ah yes, the good old "you can't do math with generics". There are some little libraries that allow you do it, implemented like a bunch of these:
static T Add<T>(T a, T b)
{
if (typeof(T) == typeof(int))
return (T)(object)((int)(object)a + (int)(object)b);
else if .. etc
}
which makes some people angry, but it works.
Btw, that's my favourite test code for decompilers. That weird double cast is often decompiled incorrectly.
However, I'm going to have to file this all under YAGNI. Apart from highly exceptional circumstances, there are only two types you're ever going to put into your MovingAverage: int and double.
|
|
|
|
|
You are probably right - chances are I'll never use anything except a series of int, returning a decimal.
But it's the principle, damnit!
I like generics where I *might* reuse them, and feel slightly dirty hardcoding datatypes...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
OriginalGriff wrote: I don't fancy doing that in SQL Why? SQL is extremely good in arithmetic...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
SQL is neither moving, nor average.
This space intentionally left blank.
|
|
|
|
|
SQL has top(n) and order by for moving and avg(column) for average...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Maybe I should have included the joke icon.
But also, is TOP part of the SQL standard?
This space intentionally left blank.
|
|
|
|