@boomzilla Holy shit, is this thread still going? and Swampy is still here? I remember when it started.
It's frightening when you think that during the lifetime of this thread I got married and now have a 7 year old kid.
@boomzilla Holy shit, is this thread still going? and Swampy is still here? I remember when it started.
It's frightening when you think that during the lifetime of this thread I got married and now have a 7 year old kid.
BTW, text editing is not the only place IT is going backwards full-throttle. Look at IDEs for another example. Or, rather, don't look at them-- while in 1997 every somewhat-popular programming language had at least one quality IDE. Now? A lot, possibly the majority, have ZERO quality IDEs.
Oh don't get me started on IDEs. At least Visual Studio used to do everything I wanted, but now VS 2015 is requiring me to drop to the fucking command line because 'Please run "dnu restore" to generate a new lock file'. Why don't you just run the fucking command yourself VS? . What is this shit? Are we in the 70's now ??
/Takes deep breaths
The way we did something like this was to implement a JsonConverter. This isn't exactly our code, but mangled to something similar to what you would need (and not tested if it even works or compiles).
The trick is in the ReadJson bit - this implementation also checks if the incoming token is a number instead of a string.
public class CurrencyConverter : JsonConverter
{
public override bool CanConvert(System.Type objectType)
{
return objectType == typeof(Currency) || objectType == typeof(Currency?); // Assuming it's a struct
}
public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer)
{
if (reader.TokenType != JsonToken.Null)
{
if (reader.TokenType == JsonToken.String
|| reader.TokenType == JsonToken.Integer
|| reader.TokenType == JsonToken.Float)
{
try
{
var value = Convert.ToDecimal(reader.Value, CultureInfo.InvariantCulture);
return new Currency(value);
}
catch (Exception ex)
{
throw new JsonSerializationException(string.Format("Error converting value '{0}' to Currency.", reader.Value), ex);
}
}
throw new JsonSerializationException(string.Format("Unexpected token when parsing Currency. Got {0}.", reader.TokenType));
}
if (objectType != typeof(Currency?))
{
throw new JsonSerializationException(string.Format("Cannot convert null value to Currency"));
}
return null;
}
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
if (value == null)
{
writer.WriteNull();
}
else
{
writer.WriteValue(value.ToString());
}
}
}
In the webapi config, we then registered the converter with a single line:
config.Formatters.JsonFormatter.SerializerSettings.Converters.Add(new CurrencyConverter());
@Random832 said:
@merreborn said:This is front-page-worthy, IMO. Ugh.
@joe.edwards@imaginuity.com said:
I severely under-bid the hours necessary for those changes, for much the same reason: I expected to be able to perform each change only once. (We bill based on estimates; if it takes longer than expected, we eat the cost. Ouch.)
I think the way we do it here, is you've got two options: First, we estimate how many hours the job'll take, and we let you know how long that is. Then we offer to either tackle the job at an hourly rate, with the client paying for any potential overages, or we'll do it for a flat rate, based on the hourly rate X hours estimated X 1.5
TRWTF is he gave an estimate without looking at the system.
Isn't that standard practice? In my industry, the contract is signed and a go-live date given before the devs even see the list of modifications.
I've been here since 2005. I guess I was busy in the earlier years since I somehow racked up 250 posts I don't even remember posting.
I remember the MPS kerfuffle, and actually liked MFD, especially the comments and the 'add your own dialog' bit that was introduced.
Started lurking more as life intruded with a new wife and family, etc. Although quite often I see somebody say something blindingly stupid or that I vehemently disagree with, and start to type a response. About halfway through I go "ah fuck it, I'm bored already" - and continue reading :)
EDIT: oh, from Australia, but currently living in South Korea.
Seriously though, who the fuck uses scrollbars anymore anyway when there is a mousewheel handy.
Other than the crap styling, I haven't found browsing these forums as odious as the screamers would have you believe. Although since this is my first post on this particular forum I haven't really exercised the reported bugs in any real way. Mainly the ones I see are the slightly dodgy or arbitrary idea of which topics it thinks are new or unread.
Fix the bugs and the styling, and this place is workable. Fuck the scrollbar, we don't need it.
Edit: Although I would like the post counts back.
@rbowes said:
From Capital One, of course! At least, that's what their contextual ads seem to detect!I'm not sure if this still happens, since I submitted it to error'd a couple weeks ago and I haven't had any indication that they're going to use it, so rather than wasting it I present it here.
I love those. It's just like when you put in some search results and you end up with an ad to 'buy <search term> here'.
In fact, here's one, just at hand! :-P
Ermmmm.... if I'm on page 1 of the Thread That Shall Not Be Named, ctrl-F ain't gonna find shit on page 50, yah? So the browser baked in search isn't really useful in the first place
@kaamoss said:
@spectateSwump said:DO NOT listen to Desktop Search!!! Video is danger and SpectateSwamp is hitler!
stop it right , you evil bastard, SpectateSwamp! Your bad program not interest!
Your program capture data but data will die if captured! --Data must be free! -- search is sin!
DO NOT listen to him and his program! Join me for the other side! DataRevolution is where it's at! I have written ingenious program in PHP that will free all data and video! It wont be easy but we can win the battle and all computers will be 100 times faster! -- It's because of network!
Go away and hide you enemy of data, SpectateSwamp!
Ummmm, could someone please email me teh cod3s to troll@trollyTroll.net
<font size="-1">email me and I'll give you teh codes. I promise I will not sell your email address for 1/100th of a cent</font>
...so, who has the staying power to keep this thread alive for 7 years? ;)
@asuffield said:
@Nelle said:Makes me wonder if someone programed a troll-bot to pull our leg ...
I said that right at the start. This is obviously a megahal, or something very similar. Nothing else generates quite the same kind of not-really-English. Any apparent meaning in the output is entirely in the mind of the reader.
Possibly the neural net has learnt a few new words and progressed past the "No Quack" phase.
@boomzilla Holy shit, is this thread still going? and Swampy is still here? I remember when it started.
It's frightening when you think that during the lifetime of this thread I got married and now have a 7 year old kid.
The way we did something like this was to implement a JsonConverter. This isn't exactly our code, but mangled to something similar to what you would need (and not tested if it even works or compiles).
The trick is in the ReadJson bit - this implementation also checks if the incoming token is a number instead of a string.
public class CurrencyConverter : JsonConverter
{
public override bool CanConvert(System.Type objectType)
{
return objectType == typeof(Currency) || objectType == typeof(Currency?); // Assuming it's a struct
}
public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer)
{
if (reader.TokenType != JsonToken.Null)
{
if (reader.TokenType == JsonToken.String
|| reader.TokenType == JsonToken.Integer
|| reader.TokenType == JsonToken.Float)
{
try
{
var value = Convert.ToDecimal(reader.Value, CultureInfo.InvariantCulture);
return new Currency(value);
}
catch (Exception ex)
{
throw new JsonSerializationException(string.Format("Error converting value '{0}' to Currency.", reader.Value), ex);
}
}
throw new JsonSerializationException(string.Format("Unexpected token when parsing Currency. Got {0}.", reader.TokenType));
}
if (objectType != typeof(Currency?))
{
throw new JsonSerializationException(string.Format("Cannot convert null value to Currency"));
}
return null;
}
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
if (value == null)
{
writer.WriteNull();
}
else
{
writer.WriteValue(value.ToString());
}
}
}
In the webapi config, we then registered the converter with a single line:
config.Formatters.JsonFormatter.SerializerSettings.Converters.Add(new CurrencyConverter());
BTW, text editing is not the only place IT is going backwards full-throttle. Look at IDEs for another example. Or, rather, don't look at them-- while in 1997 every somewhat-popular programming language had at least one quality IDE. Now? A lot, possibly the majority, have ZERO quality IDEs.
Oh don't get me started on IDEs. At least Visual Studio used to do everything I wanted, but now VS 2015 is requiring me to drop to the fucking command line because 'Please run "dnu restore" to generate a new lock file'. Why don't you just run the fucking command yourself VS? . What is this shit? Are we in the 70's now ??
/Takes deep breaths
Steam started out using email addresses, so my login name is an email address that no longer exists
Same here, and it bugs the crap out of me.
I don't understand the format of that website. It looks like one of those spam hosts that screen-scrapes forums and mashes everything together into one jumbled mess that's only good at bad SEO.
I'm not sure what I'm reading either. Is Jeff actually responding anywhere in that jumbled soup ?
I've been here since 2005. I guess I was busy in the earlier years since I somehow racked up 250 posts I don't even remember posting.
I remember the MPS kerfuffle, and actually liked MFD, especially the comments and the 'add your own dialog' bit that was introduced.
Started lurking more as life intruded with a new wife and family, etc. Although quite often I see somebody say something blindingly stupid or that I vehemently disagree with, and start to type a response. About halfway through I go "ah fuck it, I'm bored already" - and continue reading :)
EDIT: oh, from Australia, but currently living in South Korea.
I admit the number of times I've searched a page on the old forum is literally zero, so obviously that's not a use case for me.
Although surely it can't be to difficult to create some plugin (or whatever Discourse does) to present some widgety thing to do what you (and others) need. That way it could actually even be more useful in that it could navigate through all the instances in the topic (unlike the limitation of the old paged way which only does the current page)...
meh... anyway just thinking aloud. I've got too much work to do and I'm wasting time
Ermmmm.... if I'm on page 1 of the Thread That Shall Not Be Named, ctrl-F ain't gonna find shit on page 50, yah? So the browser baked in search isn't really useful in the first place
Seriously though, who the fuck uses scrollbars anymore anyway when there is a mousewheel handy.
Other than the crap styling, I haven't found browsing these forums as odious as the screamers would have you believe. Although since this is my first post on this particular forum I haven't really exercised the reported bugs in any real way. Mainly the ones I see are the slightly dodgy or arbitrary idea of which topics it thinks are new or unread.
Fix the bugs and the styling, and this place is workable. Fuck the scrollbar, we don't need it.
Edit: Although I would like the post counts back.
@flabdablet said:
@Quinnum said:Makes me glad our infrastructure is on windows :)Quite so; it's completely obvious that code with fewer scrutinizing eyes could not possibly be hiding security-critical bugs as stupid as these. If it's obscure, it's quite clearly secure. And it's not as if Windows is a large target.
I understand your point, but I don't remember any windows server vulnerabilities (that are remotely exploitable) being quite so mind-bendingly fucked up and critical as this in at least the last 10 years.
Most of the windows vulns tend to be between the keyboard and chair.