« first day (2110 days earlier)      last day (2832 days later) » 

user2509848
1:01 AM
Has anyone ever used Ninject? I am working on a C# addin for the Visual Basic Editor (VBA version, if that matters) using Ninject. We have a bunch of memory leaks, and I can't figure out how to release everything.
 
What is "Ninject"? I could google, but 2far4me
 
user2509848
DI for .NET: ninject.org
 
Seems interesting
 
user2509848
We have some stuff set up with singleton scope, some with transient scope, some with call scope, and some with default scope. Some of the Disposes are called, but I know others are not. Everything is set up so if we change the order something is instantiated in, everything else busts, making it really hard to work some of the more intertwined stuff in.
 
1:18 AM
Could you just add a .Dispose() for each of them at the end of their scope and/or on application closing?
 
user2509848
We do for a lot of stuff. However, many things we don't actually ever have a handle to because we inject literally almost everything.
 
Wait, how do you work iwth it without a handle?
 
user2509848
We have, for example, a UI with a bunch of ICommands (we have WPF controls embedded in WinForms controls). We inject these commands to different places, and Ninject automagically gives it to us.
 
user2509848
Probably over half of our types are never actually instantiated anywhere except for unit tests, except by Ninject (I think it does it with reflection, but I can't say for sure).
 
Sounds like fun
 
user2509848
1:23 AM
It is sometimes handy, but sometimes it makes my brain want to explode.
 
reflection and injection. Good luck with that lol
I just make things that are kinda flexible (and edge-case resistant), but the things I make are simple without bringing additions to it
 
user2509848
That's what we are trying to do.
 
user2509848
It does work more/less OK, except the memory leak is so bad it crashes the Office host app when we close it.
 
user2509848
We are almost ready do a really major stable release, except for this and a few other things.
 
That must be bad then
 
user2509848
1:32 AM
Well, we are an open source project, so not too bad.
 
Could you add an event listener (I think it's that or a hook maybe) for the window closing, and dispose a bunch of stuff?
 
user2509848
Possibly, except that some of our commands are bound to COM menu items.
 
user2509848
We could perhaps manually destroy those when we tore the menus down, however.
 
Well, idk
I'm no professional, I'm just some nubskrub who has nothing better to do
 
user2509848
I guess we make good company, since I'm an intern for the project.
 
1:37 AM
lol
The "flexible" thing I made is a system that can run a rewritten form of binary data as a file in a custom runtime. The runtime environment & shell is basic though
(Closed source)
 
user2509848
I'd like to write a simple word processor/IDE, and maybe a resx translation helper once I'm done with this. I also contribute to a VS addin that makes diagnostics/code fixes off the Roslyn API.
 
user2509848
I wrote a couple analyzers that will be built in to the next release of VS as well.
 
Well, I have a simple hex values to FOS-X byte instructions thing. That's the closest thing to an IDE that FOS-X has
 
user2509848
Interesting.
 
Just takes a space delimited string and converts it to a byte[], extremely simple but helpful :P
Aaaaand....I'm off because I have to. But the really fun thing about FOS-X and the runtime is it can support core warfare :D
Slinks away Good luck with solving your memory leak. When in doubt, experiment and test!
 
user2509848
1:46 AM
Have fun.
 
3:18 AM
Is there a way that I can create application that will record my mouse and keyboard event?
 
You could, but they also already exist.
 
4:20 AM
Is there any body faced with this exception "Invalid settings 'Run Configuration'. Unexpected XmlElement: 'MaxCpuCount'."
 
 
1 hour later…
5:42 AM
@Jamaxack Is it possible that your .csproj file was edited by a newer version of visual studio?
oh, and good morning everyone.
 
@AvnerShahar-Kashtan I don't think so
 
Where is it thrown?
MaxCpuCount is a standard MSBUILD config setting, from what I can see.
 
Yes, I created a new *.runsettings file to configure test run
<RunSettings>
<RunConfiguration>
<MaxCpuCount>1</MaxCpuCount>
 
6:08 AM
@AvnerShahar-Kashtan I'm getting error "Invalid settings 'Run Configuration'. Unexpected XmlElement: 'MaxCpuCount'."
but this is the same with documentation from MSDN
 
Yeah, so I saw. Dunno, though - never tried building a .runsettings file.
I'm assuming the exception is thrown when testing?
 
this error is showing in OUTPUT window when I run the test
 
6:36 AM
anyone know how to write an optional top 1 query
like if my scalar variable is null then SELECT TOP 1 otherwise everything
 
6:47 AM
Hi
 
yo
 
Are there any good samples for implementing BI projects
not MSBI
independent projects
 
@SSJGSS "BI"? as in "Business Intelligence"?
BI is just the application of various data-mining tools against corporate datasets. You can do BI in Excel if you wanted to.
also, good morning all
 
7:02 AM
I needed to implement as a web applicaiton
 
That's cool.
So... your requirements are "Create a BI web application"?
 
@Squiggle Good morning
 
That literally couldn't get any more vague
 
have you used .runsettings file to comfigure the tests run?
 
Yes @Squiggle
 
7:05 AM
I'm guessing the actual requirement is "We want a web application with all sorts of pie charts and gauges"
 
@Jamaxack a while ago, sure. Not recently. The docs should be good though...
@AvnerShahar-Kashtan yeah. Ooh - also make it customisable so the customer can write their own queries!
drag-and-drop would be nice
 
I'll give an equally vague answer: use a data visualization library like Kibana or Grafana
 
I'd just say "That's probably not what the customer actually wants - nor what they can afford. Use Excel."
 
THey need to import from various datasources and then ingest the info and finally visualize them
say fetch contents from a WEb page
store it
and then from a ORacle datasource
Like this
 
There are several different things here. The first is collecting data from various sources, transforming it into a standard format and storing it.
The second is building a visualization on top of the aggregated data.
Exactly, the diagram show the ETL step, which is the collect-and-transform and store in the warehouse, which is your BI database.
 
7:10 AM
Exactly
 
ElasticSearch is often used as the BI repository. I know Kibana is based around it.
The question is, what are you looking for?
 
WE need to build a product for this
1
Q: Needed to bind data from multiple data source (not database)

SSJGSSI am working on a project which requires listing of all datasources, connecting them and then fetch the list of tables from them, their columns and later a query builder to query them and fetch the data. The tricky part here is the query Builder and to pass the query and fetch the data directly f...

 
Yes, a product is a good word. This isn't "I need a library that does X". This is a full-fledged product or project.
 
That question is just a part
Yes
-1
Q: Querying data by joining two tables in two dataSource on different servers

SSJGSSWith Reference to my previous question Needed to bind data from multiple data source (not database) , and other references Querying data by joining two tables in two database on different servers and Query across multiple databases on same server My requirement is similar to that of MSBI which ...

Here it is
 
I think you're missing the point of how ETL is supposed to work.
You retrieve data from each source individually, transform it, and store it locally. You don't operate on the sources datasources together.
 
7:15 AM
Also needed to know if that is possible
if all the datasources could be manipulated at the same time
 
They shouldn't be.
 
I have done it seperately earlier
 
That's not how BI works.
 
ok
WHy is that other users are tending to close the question?
is that not right to ask ?
 
Because your question was very unclear. You pasted a large diagram and asked "how do I connect everything".
Good questions ask about specific problems you face and show what you already tried.
Bad questions are general "I don't know where to start" questions.
 
7:20 AM
OK
But those contains the related questions which was previously asked
 
Morning all
 
@SSJGSS Yeah, telling people "Go read those 4 other questions and then come back here" doesn't really work on SO either.
 
Hmm
Ok
 
Basically, getting help on SO is a privilege, not a right. You want answers? Make it easy for people to help you.
 
Sure @AvnerShahar-Kashtan. Here the problem is where to start, hence in a dillemma
 
7:28 AM
If you don't know where to start, SO is probably not the right recourse anyway. SO is for specific, concrete problems, not for general "How do I design my solution" brainstorming.
 
the answer to "How do I begin with X" is normally "Read some books, talk to people, understand your problem thoroughly"
If you're not familiar with terms like "ETL" & "data warehouse", start there.
"BI" is a huge topic, and many of the existing BI products are huge.
to the extend that there are people who are paid a lot of money merely to configure those systems for different clients
 
I second that, i m getting familiar with the ETL.
 
have you heard of OLAP? :)
 
actually I have already started
YEs
 
yeah it's a huge subject
best of luck!
 
7:39 AM
Thanks. @Squiggle @AvnerShahar-Kashtan
Will look forward to achieve it soon
:)
 
I was part of a team in my previous job that implemented a centralised system which fed real-time data to and from various systems. It was a challenge.
 
How did that go?
 
It went OK - but it was only ever as robust as the systems it depended on
 
Good
How much time did it take?
 
I was working on the workflow system, so that when a new employee joined the company they would be automatically issued with a laptop, be registered with the staff canteen, provisioned with access to the sports club etc...
 
7:43 AM
no . of developers and which platform?
 
took about 18 months - WebAPI, AngularJS, lots of REST services, databases, 4 devs
 
good
 
morning
 
Thanks
 
@SSJGSS be warned that it's a difficult thing to take on. The requirements and interface contracts are by far the hardest bit.
 
7:45 AM
Yeah, that is my concern
 
plus this was a custom solution. If you're making a "product" that can do all of this, you're going to have a tough time.
 
YEs .
 
Like I said initially, most companies probably just want an Excel document that they can look at and check if some numbers are too high or low.
 
IS your product available online
 
hah no, it was an internal system
 
7:47 AM
kk
 
you couldn't get an off-the-shelf solution for what we wanted. It was too business-specific.
The closest thing could have been BizTalk
 
Yes, Same here, Thanks fo rthe info @Squiggle
 
I hate it when people just ignore their questions on StackOverflow
 
Yes.
 
I answer a question 5 years late, and it's not been marked as accepted :P
9
A: Execute unit tests serially (rather than in parallel)

SquiggleAs stated above, all good unit tests should be 100% isolated. Using shared state (e.g. depending on a static property that is modified by each test) is regarded as bad practice. Having said that, your question about running xUnit tests in sequence does have an answer! I encountered exactly the s...

 
7:54 AM
@Squiggle The nerve of some people!
 
inorite?!
 
I got a comment on an unanswered four year old question on mine a while ago asking how I ended up fixing the problem. I dunno. It was about 9 projects ago.
 
SO: Where knowledge goes to die
 
War
^ LMAO
 
8:15 AM
@AvnerShahar-Kashtan lol poor guy
 
sup folks
 
o/ Wor, Spips, NogginTheNog
 
erro
 
hello
foreach(var fleet in fleets)
{
var fleetObj = place.gameObject.AddChild(fleetPrefab);
var fleetIdTemp = fleet.Id;
fleetObj.SetEvent<PointerEventData😠EventTriggerType.PointerClick, (eventData) =>
{
var _fleetIdTemp = fleetIdTemp;
OnFleetClick(_fleetIdTemp);
});
}
why OnFleetClick always 2?
must be 1, 2
 
PointerEventData😠EventTriggerType
> 😠
 
8:21 AM
no, this is chat replace :)
 
:P
 
hi
winforms application is showing UI Scaling problems when using on
15" laptop with Full HD Display
 
Stahp using Windows Forms
 
the UI Fonts are sometimes getting bigger
 
@techno lol classic Windows Forms
 
8:23 AM
and sometimes designated window size changes
my application is coded in winforms
 
it uses pixel-based sizing. WPF and Universal Apps are better equipped to handle high-res displays.
 
i mean
it works perfect in my full hd monitor
24 inch
and most systems out there
i have a 15 inch laptop with normal display ..works fine
when it comes to my new laptop with with 15"screen
and full hd resolution
 
Count your blessings with so many devices working
 
the app first opens normally
when i click on the open file button
the full UI gets smaller
and the folder selection dialog gets bigger and stuff
but .. i have new app which i coded in winforms
 
yeah, that's Windows Forms for ya
that technology was mothballed 6 years ago
 
8:26 AM
i sued the new laptop with 15"1080P to code that
*used
some controls needs to be larger on the designer
for it to show properly
 
that's nice
 
random issues like that
but it works well when the same project is loaded on larger screens as well
 
the application does not show UI Size issues as well
may be since it was coded in the 1080P laptop
hope i can fix this issue by maybe redesigning my app in the laptop and building i guess
i mean the old app
 
Seriously, count your blessings it works on as many devices as it does.
 
8:28 AM
lol
 
Then switch to something a little more modern.
 
how easy is to port to WPF
 
Once you've finished celebrating, that is.
 
i mean on 95% of devices the software works well
 
I said modern and you come up with WPF? Geez. What year is this again?
 
8:29 AM
lol
educate me ?
 
Look at UWP
 
i code android too
so basically you stack up controls
in a linear or relative layout
 
Hell if I know how Android works.
 
shifting from the way how old software looks
to the modern win 8
with big buttons and stuff
big box mode
the metro look i guess
 
TIL there's no good way to convert a datetime to Unix time
 
8:39 AM
Why not?
 
The best one being to subtract the start of the Unix epoch from the datetime
 
posted on July 26, 2016 by Scott Hanselman

They are still working on the "dotnet new" templates, but you can also get cool templates from "yo aspnet" usingn Yeoman. The generator-aspnet package for Yeoman includes an empty web app, a console app, a few web app flavors, test projects, and a very simple Web API application that returns JSON and generally tries to be RESTful. The startup.cs is pretty typical and basic. The Startup cons

 
I think I will stick to ISO-8601, thank you. At least this formatting string is less magic.
 
🏃
 
@JanDvorak I think .net 4.6 finally added support for this.
But yeah, we do the subtract-from-01-01-1970 trick.
 
8:52 AM
ETA when it arrives on Azure?
 
It's not too hacky. It's just the logic behind the representation.
 
OK then. But it still feels a bit manual.
 
Extension methods are your friends.
We use ToUnixTime and FromUnixTime extensively.
And, as previously mentioned, msdn.microsoft.com/en-us/library/…
 
:::::::::::'(
 
9:11 AM
@StevenLiekens Everything alright?
 
9:23 AM
nope
someone defined this route in our app
routes.MapRoute("GetReport", "{controller}/{action}/report/{period}/{periodContent}/{docFormat}/{sections}", new
{
    controller = "Home",
    action = "GetReport",
    period = UrlParameter.Optional,
    periodContent = UrlParameter.Optional,
    docFormat = UrlParameter.Optional,
    sections = UrlParameter.Optional
});
it's only used in 1 location
but removing the route horribly breaks that feature
makes me want to torch the building
but if you think that's bad then you haven't seen the code where they actually use that route
 
Oh, if that's all, that isn't so bad.
 
var reportUrl = '@Url.Action("GetReport", "Home", new { period = "param-period", periodContent = "param-periodContent", docFormat = "param-docFormat", sections = "param-sections" })';
reportUrl = reportUrl.replace("param-period", $period)
  .replace("param-periodContent", $periodContent)
  .replace("param-docFormat", $docFormat)
  .replace("param-sections", $sections);
window.open(reportUrl);
 
Yeah that doesn't look so bad to me. It's a little unusual to have such a deep object hierarchy but hey, if that's logical for the domain, then that's what the route should look like
 
@StevenLiekens Your point?
 
Everything in a report is obviously a child entity of that report, and not of anything else
 
9:33 AM
messing with routes for just 1 feature, it's sad
the final URL ends up looking like this
/Home/GetReport/report/month/2016_6_1/pdf/AvailabilityUsageCentralControl=true&Events=true&EnergyAndVolume=true&ConsumptionEvolution=true&FlowPressureDewpoint=true
notice the query string syntax in the path
 
/Home/GetReport is the bullshit part
Reports are not a child of the Homepage, that's nonsense
 
@TomW It looks like it allows for deep-linking to specific segments of the report, which could actually be kind of nice.
 
@AvnerShahar-Kashtan I assume you're agreeing with me, so yeah, sure
 
@TomW Yup. :)
@StevenLiekens Again, it looks like it's there to allow fine-grained control of what parts of the report are generated. route paths can only get you to one entity - the AvailabilityUsage section, in this case.
Oh, wait. Just noticed that these aren't, in fact, query parameters.
It's a way to specify multiple sibling resources in the same query.
That does see iffy.
 
the reports has various "sections" that have to be "enabled" or they won't show up in the report
 
9:40 AM
ugh what
 
IMO these should all be query string parameters
 
Yeah I didn't notice that. Is something 'custom' parsing those?
 
public ActionResult GetReport(string period, string periodContent, string docFormat, CheckboxList sections)
 
Or is that used as a name of a report
 
I don't even know what CheckboxList is
 
9:41 AM
because if so, this is hell you are in hell burn it all
 
@StevenLiekens CheckboxList? Checkboxlist??!
 
public class CheckboxList : List<SelectListItem>
 
Hi all, can you please look at my question stackoverflow.com/questions/38586056/…
 
And what actually parses that ampersand-separated path segment string into a Checkboxlist?
 
9:43 AM
@AvnerShahar-Kashtan I have a horrible feeling that's the model binder doing it
 
I don't know :/ I think it works out of the box
because it's a List<>
 
Stuff that 'just works' = devil
 
I think MVC already knows how to bind to a List<SelectListItem>
 
Because there's nothing to look at when it goes wrong
 
@TomW Yeah, that's one of my pain points with WPF binding and resource resolution. Hard to know exactly what's happening and where.
 
9:49 AM
it's fine with me as long as it's predictable
 
@StevenLiekens Tomorrow's requirements: "We need to replace the ampersand delimiter with a different character". Now what?
 
I grab a stick and wave it at them and make hissing noises
 
I've found that a big stick is often useful in corporate environments.
Hissing is less effective. Too many snakes around.
 
10:09 AM
whoop like a baboon
 
@Squiggle The comments on that video are hilarious
> this new lamb of god album is really weird.
top kek sir.
 
ha
 
> U kno that makes a lot of sence bcuz the devil's plan is 2 tell us taht where monkies & so than if he sound like 1 than its all the easier for then
wat
Adam Buxton <3
 
10:34 AM
Guys what other tools do people use apart from TFS
 
sticks
for hitting you on the head for every time you assign a work item to me
 
@StevenLiekens We use an intensive mental regimen to memorize all changes to code files.
@Ggalla1779 Seriously, though, what do you mean? What source control tools? (git and svn are common). What work item tracking? (Jira and Trello are often used). What other tools in addition to VS?
There is an issue with Stack Chat. Investigating.
Is there?
Ah.
@StackStatus Issue resolved. Problem only affected http://chat.meta.stackoverflow.com (http://chat.meta.stackexchange.com). Thank you for your patience.
Didn't know Meta had its own chat server.
 
Cor I bet that chat is fun
 
@AvnerShahar-Kashtan well I had friend phone up and his client is asking what do folks use apart from TFS
 
mostly source safe
 
10:47 AM
@Ggalla1779 for source control or for work item tracking?
or for builds
TFS does a lot of things
 
They didnt say...but Avners answer will do for them I think
I love Trello/ Kanban
 
I assume the asker doesn't know
 
It was client asking so they are just fishing
 
Kanban <3
 
Kanban as I've experienced it is basically 'just get on with it'
Record what you're doing, but just do the work as you come to it and stop doing stupid ceremonies to appease managers
It gets a bit wayward though, for example we've spent quite some time debating what the status of an item is and whether there are enough places to put items to reflect what's actually happening with them
 
10:59 AM
Tom have you been working on your rep
 
hm?
 
It's higher than I seem to remember it being
oh lol
your rep graph is great
 

« first day (2110 days earlier)      last day (2832 days later) »