« first day (1586 days earlier)      last day (3592 days later) » 

16:07
posted on February 18, 2015

Today we released a number of great enhancements to Microsoft Azure. These include: Machine Learning: General Availability of the Azure Machine Learning Service Hadoop: General Availability of Apache Storm Support, Hadoop 2.6 support, Cluster Scaling, Node Size Selection and preview of next Linux OS support Site Recovery: General Availability of DR capabilities with SAN arrays I've also inc

I've used Quartz scheduling library, but that can have high development overheads
I assume there's no way to get the body of a lambda function as a string?
(function, not expression)
you could look at the code in Visual Studio
VS is pretty good at displaying text representations of uncompiled .Net code
this is at runtime
The best you'll get isOH SWEET JESUS I just got an autoreply in comic sans
D: D: D:
brb. Fetching shotgun.
16:16
@Squiggle :DDDDD
so much D
Sweet Desus?
Sweet.
Baby.
Ray's. I want lunch
@ton.yeung Hey, Seuss!
Sam I Am
I would not do it with a goat
I would not do it with a moat
I would do it in a moat on a boat but not with a goat
that's not part of the book
16:21
You're not part of the book
#rekt
This project dynamically loads some assemblies.
I've always meant to learn how to do this but I never looked it up.
This method just overrides the GetAssemblies() method of the System.Web.Http.Dispatcher.DefaultAssembliesResolver
In MVC is it possible to persist a parameter to all requests
:)
Sorry
@Tommassiov - yes
@Tommassiov - You would use a global attribute
@TravisJ Do you have any examples
ElectroStatic Pokemons
@Tommassiov - In your global.asax.cs file, in the method public static void RegisterGlobalFilters(GlobalFilterCollection filters) you register a class there which inherits the filter and it is executed prior to every request
16:27
right i see
@ton.yeung - It's a pretty simple use case because it's just trying to load some extra controllers. All that has to happen is for the assembly to get loaded and I think ASP.Net MVC already handles the rest when it tries to resolve the requested route.
protected override void OnStart(string[] args)
{
	Export(new TimeSpan(0, 0, 15), null).Wait();
}

protected override void OnStop()
{
}

private async Task Export(TimeSpan repeat, CancellationToken? ct)
{
	while (true)
	{
		ExportAsXML();
		await Task.Delay(repeat);
	}
}
Bitch ass formatter
public class CompressAttribute : ActionFilterAttribute {} is one I use for example
@Tommassiov - Before you go forward with that you may want to clarify what it is you're trying to do. You might be on the right track but we might be able to suggest a more appropriate solution.
@ton.yeung - Yeah I'm not sure how I feel about it. But it's an interesting approach.
16:30
@ton.yeung - That is why I have images auto collapse lol
Look about right?
Looks clean
@SpencerRuport I can, 1 sec let me re post from earlier the issue I was having. It was suggested I use subdomains like site1.account.domain.com, site2.account.domain.com, but this would require DNS changes and bindings in IIS
@ton.yeung uh...
Huh. It works.
My stuff doesn't ever work
This may be a dumb question, but if you have an `xslt`, then you have the following node in Xml:

<ComponentItemCode>Y</ComponentItemCode>
<ComponentItemCode>N</ComponentItemCode>

If you do, this in that:

<xsl:if test="ComponentItemCode != Y">

</xsl:if>

It doesn't actually show internal data. However, if I don't have it in the if it works as intended. Why would the equality test fail?
16:31
wtf.
@SpencerRuport Basically I have a MVC project that provides a secure portal for some 3rd party websites. To make the user experience with the same look and feel, the 3rd party website provides header/footer/styling etc which I've saved in my db.

Now when the go from 3rd party SiteA for example to my secure site, I know which styling to use, based on the issue post. I save a cookie at the moment on the client called CmsContent, so each time a view is loaded, I know which styling to serve.
This works.
@Sippy well done. Now break it.
My boss did an implementation of this lol
It looks like uh
protected override void OnStart(string[] args)
{
	RunTillTranasctionService();
	#if (!DEBUG)
		_timer.Interval = Convert.ToInt32(ConfigurationManager.AppSettings["pollInterval"].ToString());
		_timer.Elapsed += _timer_Elapsed;
		_timer.Start();

		LoggerHelper.Log(string.Format(@"{0}\{1}",
			FileHelper.AppStartPath,
			ConfigurationManager.AppSettings["logPath"].ToString()),
			string.Format("#Service started {0}", DateTime.Now.ToString()));
	#endif
}
@ton.yeung If I'm going to look at an ass, I'd prefer it to be of my own species
Looks messy :(
16:34
@KendallFrey casual
lol, I used to be
I dressed my female monk on Diablo 3 like an anime character.
Cos kawaii.
KSP doesn't have females yet
@ton.yeung Hey. Chun-li is badass okay?
16:37
is that a man
Jackie Chan in City Hunter
that was... a weird movie.
what in the fuck
!!google little britain
16:38
hi there!
@Squiggle - I love old Jackie Chan movies :D
how come:
foreach (Panel p in this.layoutPanel.Controls)

tries to convert a label to a panel???
@TravisJ totally.
@ton.yeung killjoy.
@MikeM. - Change it to foreach(Panel p in this.layoutPanel.Controls.OfType<Panel>())
16:39
ofc...
@ton.yeung - The plot isn't worth considering lol
woooooo kbye
@TravisJ OK that one looks pretty bonkers. I'll add it to my list.
When I was watched it when I was younger, I liked it. I rewatched it recently and it is the worst move ever
*movie
The best part was the street fighter crossplay scene
just find that part on youtube and you're golden
16:42
@ton.yeung - That was the oldest one I could think of
@MikeM. Interesting
@Squiggle - I have a box set of them from that time :)
@Sippy what?
I can't think of a reason why foreach shouldn't do that implicitly. As you expected it to.
@Sippy - Why would it do that?
16:44
Because it'd stop it breaking.
Is there a reason why you would ever want it to break if your collection has something in it that you aren't looking for?
If you have a collection of controls which contains a bunch of shit, and you specify you're looking for panels in that collection, why shouldn't it only return panels from your collection instead of breaking when it hits another type?
shrugs
Makes sense in my head.
Yeah I can't think of a reason either. Seems like a good Reed question.
I'd prefer it to break, but it's difficult to explain why.
Well the other way to look at it is that there must be a reason because there is also a workaround.
How do I get the SQL command my OpenAccess context is about to execute?
Hi there...
Can anyone tell me how can I import access data to mySQL?
I do have access file with data in it and I'm looking for *mySQL work bench* but it doesn't worked for me.... is there any easy way to do so?
16:50
@ton.yeung yeah
What if you have panels with a color which defines an area.
like if you have a building game, you'd define the area as "house building" for E.G color: red

I don't think you want to make a click event for each panel that handles it or for each button...

on that case you only want to check each color of the panel...
@ton.yeung - Found out the reason for the plug ins. This app gets hosted on our clients environments. Some of them have their own dev teams. Rather than forcing them to go through us to develop additional behaviors for the app we allow them to create controllers and drop them in if they want.
@ton.yeung It removes unneeded complexity.
Why C#developers are paid soooo low?
16:52
foreach(Control in ListOfControls) {
    if (Control.GetType() == type) {
        doShit();
    }
}
@Obvious They're not.
Why do you think soooo?
I am thinking of leaving c sharp
stupid language
it's not a "stupid language"
@ton.yeung I think that's slightly less readable and no more predictable.
Everyone can program it
None language is "stupid"
16:53
Compared with
foreach (Panel p in ListOfControls) {
}
Even a six year old can program it
That's explicit.
@Obvious - That's a good thing.
16:53
You're saying exactly what you want.
From your collection.
@Obvious - I think you should probably read the room rules, and be a little more on topic.
You want panels.
@ton.yeung is there any option to import csv into MYSQL?
You can't do it :D
Okay I will try
16:54
This is the point.
I have adhd, hard to stay on topic
@Obvious How old even are you?
^
@Obvious - I don't think that is a very good excuse. I work with people that have adhd, and they do their work just fine.
Children use "I have ADHD" as an excuse.
@ton.yeung I can also do the same using PHPmyadmin....but,do I need to change anything before importing?
okay thanks :D
@JohanLarsson - 0/null also works :)
@Sippy that, and if you can't stay on-topic on a language "6 y/o can do" how can you stay on-topic on a language as c++? :P
@Johan - And also null / 0.0
Good to be aware of
16:57
Mm
Not that Convert should be used often
Yeah start bashing me
@ton.yeung - I am recurse
caught it by accident in a unit test
ha ha
16:58
@Obvious You started to state an opinion as of it's a fact....
I said sorry, I was frustrated
@Obvious - You're a little young to be that frustrated. Maybe programming isn't a good line of work for you.
@SpencerRuport We all get frustrated at programming at some point :-)
Yeah I guess, i should start my own company, I think i will be a good entrepreneur?
Don't say you never got frustrated at your younger age when you try alot but nothing helps....
17:00
Yes, Android was very frustrating for me at first. Very frustrating....
I want to start a healthcare focuse IT company
focus*
Lol
@ton.yeung Haha you got it, I have that in C# and PHP.
If you want money go work as a Salesforce architect
Being all like: Where the damn hell is the error.
...2 hours later...
"oh wait I missed a semicolon"
17:02
How much will i get paid as a sales force architect? 200k? I want at least 800k?
HAHAHA
@ton.yeung Still happens with me at times :-)
@Obvious 1$
if you have luck 2$ and 20 cents
f($) = skill*$; { skill < 1000000000 && skill > 0.01 }
skill is over rated...
Money is linearly tied to skill. No skill, no money.
17:05
Buying old houses require money
I don't think I've ever heard of a developer making $800k
If it was that easy, everyone would have been doing it
Maybe if i make it to a VP position, they may pay me 800k but it will take a very very long time.
@SpencerRuport - It happens. But usually they are far up the product dev chain in large companies.
@ton.yeung - You left out the part where you spend 50K fixing it :)
I am making around 100k, and my lifestyle sucks
@Obvious VP of fucking Texaco
Most VPs make like 120k
17:08
@Sippy If you want to discuss it, that's fine - not sure if you're happy now or not
This house selling business requires a lot of insight
into the market
@ReedCopsey Sure!
We have been arguing about it, I'm just curious haha
@Obvious I'm making around €30k gross (or around 18k net) per year, and I live comfortably. How do you spend so much money?
What if you estimate the cost of re modelling to be 20k, but it turns out to be 40k when you actually start doing it?
@Sippy so what's the real core question there?
17:10
@ReedCopsey For what reason does foreach break when it encounters a type you haven't specified?
"break" as in raise an exception?
In a collection with multiple types, why shouldn't it just return objects of the specified type?
it doesn't just break
Uh yeah sorry
@ReedCopsey - Why doesn't the statement foreach(Panel p in MyParentControl.Controls) filter by Panel?
17:11
(Wasn't sure if you meant "break" as in the break statement, or break as in raise exception ;) )
@ton.yeung Have you done it
I meant raise exception sorry ^_^
@Sippy So, the main question is why should it filter automatically?
I can think of reasons why it should, I can't think of any why it doesn't.
especially since you can do: foreach(var obj in someList.OfType<MyType>())
17:12
Yeah that seems like a workaround though?
thats cool
Obviously that works as it should, but why would foreach not do that implicitly?
@Sippy well, to be honest, the fact that you can do foreach (Panel panel in myControlList) is a language workaround
Oh?
the only reason (IMO) that you can even do that is because .NET <2.0 didn't have generics
if they were designing it now, you wouldn't be able to implicitly cast in a foreach
17:13
Ooooo
so it'd have to be foreach (Control cont in myControlList)
that only existed because all collections were IEnumerable, not IEnumerable<T>, which meant you had to always cast
and since you had to cast always, it made sense for the language to do it for you
Funky.
but now, that's really not required anymore
With the way foreach currently works though, can you think of a reason why it shouldn't implicitly filter the list by the type you specify?
yeah
it'd introduce a huge number of potential bugs and unexpected behavior
especially as you refactor your codebase
ie: if you change the type of a collection, the foreach statemetns wouldn't break until runtime
things like a filter, which have huge behavioral changes, make sense as explicit, not implicit (IMO)
17:16
Huh.
I figured it was explicit, as you would be telling it to filter by the type you specified.
well, at the end of the day, you're not doing that - language spec says that does a cast
and a cast is going to throw if it's wrong ;)
No further questions your honor :P
@ReedCopsey Thanks btw ^_^
eep I gotta do a driving lesson tonight
21
17
I went to uni at 17 so I didn't bother getting a car.
17? I mean 18.
@ton.yeung which speaker?
you mean Mathias?
yeah, I know him
he's the Secretary for FSSF - so I work with him all the time nowadays
/// <param name="documentOutputOptions">The document output options.</param>
Super useful.
17:22
F# Software Foundation
he's the leader of F# San Fran, though, too ;)
That's my impression of params in a typical dev project. Nobody has the time to go research a good definition for parameters they're not working with at the moment so stuff like that gets written and copied 100 times.
I've never known a BA with that level of technical knowledge.
oh, lol, why would they be modifying source code
@SpencerRuport We have two that are ex devs
And the rest are all morons.
Nooooop
It's at 6pm
17:26
I've known lots that "used to be programmers". Unfortunately they used to be for good reason.
@ton.yeung Hahahaha
@SpencerRuport True enough, fortunately they don't do the whole "Well I used to be a developer so I know how easy this is"
@ton.yeung That thing actually looks like it's laughing
wtf is it doing though ..
rly
ok
I have half an hour btw :P
There was a BA at my last job that came in and lambasted a plan I had to get developer discussions moved into a forum based system instead of email. She wanted it in Sharepoint and basically ended the discussion.
A few weeks later nothing had happened on it so she messages me "How would you get discussions into Sharepoint?"
o_O
@SpencerRuport "Go away."
Pretty much.
Aw
17:30
@ton.yeung - Cuuuuute
Forum based system is no better than email.
Chat based system would be refreshing
Like an actual decent one.
Chat is easy, could make one in like an hour :)
Jabber or Lync are both pretty useful tools, in their own way.
17:31
Forums are a pain =/
Forums are pretty much the worst solution for live technical discussions
@TravisJ - incentive-inc.com
That's what I wanted to use. Not exactly a forum.
I liked the ability to tag people in discussions as needed.
@SpencerRuport - Looks like facebook with no pictures.
Without splitting the conversation like in email.
Just use facebook at that point.
17:33
Lol
Make new users, form a group for conversations
Slack looks good
@TravisJ - This app can be hosted on an internal server.
Will look at that later.
@TravisJ - Also it has the beginnings of a wiki engine which I thought would be useful for BRDs
17:37
What's wrong with Sharepoint for wiki?
what precisely is wrong with sharepoint for a wiki, though?
@Squiggle - Nothing. But sharepoint discussions suck.
I want something that can handle developing of documents as well as the discussions that went in regarding their design.
That way if a certain line in the BRD sets off a big discussion you can link it and keep it.
So if the client or somebody internal raises a stink about it later you can point to the discussion and say "You were notified. You did not participate. That's on you."
@SpencerRuport fair enough :)
My last team wrote an agile app that combined a discussion board and a kanban board. It was great for keeping clients in check.
Well, that is nice. Just fixed six bugs or so, yay.
morning guys
@Squiggle - You guys should look into marketing it.
@Squiggle - I did a lot of research for something like that. Incentive Corp came the closest and it has some issues.
@Pheonixblade9 - o/
17:44
@SpencerRuport I tried, didn't have any budget or time to market it. And now I don't work there any more.
Ah bummer
:D
I commissioned a snazzy video and everything
sharepoint sucks for most communications imo
it lacks features that almost all its competitors have
Agreed.
like "@someonesname"
super useful
17:46
we used the github wiki feature at my last job
I'm off now. Got a date with a bottle of gin.
worked nicely
I always wonder if its just everyone not using it the way the SP developers intended
@Squiggle lucky guy
@CharlieBrown if the tool is usable in a way the developers did not intend, that is a failing of the developers
17:47
That could also be a really awful analogy for a girl that makes you gin-face :/
agreed, but what if
@CharlieBrown - It seems more likely that it's a big clusterfuck of a project that desperately needs an overhaul.
o/

« first day (1586 days earlier)      last day (3592 days later) »