« first day (1983 days earlier)      last day (3190 days later) » 

05:58
Hi All
Hello there. Lol. "10 hours later"
Damnit guys we were going for 24!
Well... we missed it by 14. Close enough
LOL i did not get it, are we trying to make it inactive for 24 hours?
can anyone suggest best IDE to develop .net-core mvc application on ubuntu
06:04
The one guy did.. But... we wont do as he wants
.net on ubuntu? Isn't C# basically just for windows?
it was...
i am talking for asp.net mvc development
Step one : Uninstall Ubuntu,
Step two : install any other linux than Ubuntu,
Step three : IdunnoIjustDislikeUbuntu ;p
:P
fedora?
Don't hate one of our country's only successes >:(
LMao
Wut
@Arunex Please explain XD
@ArjunVachhani I personally use Kali most of the time. Used backtrack before that. So basically a debian distro.
It doesn't really matter eventually though. OS = personal taste imo.
06:09
whre are the old chums
We ate them and fed them to the bears.
@R593B Ubuntu. Made by a south african guy :P
@Arunex Hey now they also made uhhh.........
...
thank god
lol
They helped with the invention of the CAT scan, and the 1st heart transplant... and I think that's all 3
@c0dem0nkey Lol XD
Oh right. and the creepy crawly (pool cleaner)
06:13
I like that "grand" offer from ebay. Save 5 bucks if you buy 3 200+ dollar items.
When you buy 3 or more... because you totally need 3 for your pool?
...what is that?
My weapon
@Arunex I have no pool so no idea how many you need but they do look seriously dangerous >.<
Unless the bottom part isn't going to spin.
@R593B Lol. you only use 1. If you had 2, they'd most likely tangle up. And no, they're perfectly safe although many people seem to have a fear of them for some reason
@Arunex To be fair I did choose the "scariest" one lol.
06:22
I only fear them when they're off because Belostomatidae (toe biters) love hanging out in them
This one looks more friendly :)
That one looks like the cousin with down syndrome
Okay final one than I am going to get some coffee.
Damnit I have to leave to climb table mountain now. cheers
06:41
Morning all
06:56
@scheien o/
And they wont for a while ;p
morning @TomW
Hows the commute today? or you working from home?
@TomW Java, making developers go mad since forever.
@scheien haven't started yet. Leaving in 10
@R593B That article is older than the one that @TomW posted.
How does it even things
07:04
@TomW: ah. Slow easter holiday mornings ye?
@scheien mhm it was also linked in the article he linked ;p
@scheien it's 7:05. Slow my ass
Timezone issue.
:/
Could easily see that people have gone on holiday when I drove to work today. Almost no cars at all on the freeway.
07:25
Morning @scheien
morning @JakobMillah
Had a nice weekend?
Yep. Quiet and relaxing.
How was yours?
Sweet.
Pretty much like mine. Was a hectic week so I took it easy :) Was out on saturday though "of course"...
hehe
07:31
2 ladies, 32 and 33 really wanted to bring me home...
haah
they got slightly dissed ;)
Seems nice :)
Why? Were they too old for you?
hehe
ahmm
@JakobMillah nice!!!
Too old and too imature
And on the train
Good-looking, but damn..
I was apparently too good-looking to not be using LSD for one of them two...
07:34
@JakobMillah teach me senpai
The other one was alright, but damn, not my type xD
morning lads
Jakob so you did "it"?
@TomW I know the secret... beard
@Rusty I ignored them haha
dammit
07:35
@misha130 morning!
Well...I can't beard. UK has reached Peak Beard anyway, it's all over the place. Not having a beard will be cool soon.
damn, I hope not xD
Mine's pretty long right now
Mine grows 2-3mm then stops. Tried it before, won't do it
why would anyone go unshaven
07:36
anywhere
doesnt everyone want to be a viking?
viking is the way
nice beard man!
Thanks! It's getting there :)
grumble grumble beard wankers
2
ha!
07:40
:D

But seriously.. I get a comment daily about my beard pretty much. And many times on the bar/nightclub
I NEVER thought beards would be so... important
There ought to be a question about it on the 'life in the UK' test.
Do not acknowledge a hipster's beard. It only encourages them.
I feel so british being called a wanker at 9am
truely this is london
XD
08:09
Anyone experienced outlook eating disc space with mail histories etc?
that outlook application on local machine?
no. But I have 13 gb hiberfil, and a 17 gb pagefile
I would check if You have too first
It's my colleague who gets his disc eaten. About 10GB after 3 years of mail. Wonder if it's possible to like archive most of it and compress.
08:17
Usually outlook suggests it automatically
08:38
is it possible to package an entire msbuild project as a source code nuget package?
or does it only work for individual code files?
hi good afternoon :)
anyone familiar with asp.net 5?
i just want to ask some inputs on what are the good conventions to be followed
in previous versions i structured my projects like this
<Solution>
<Project.Data>
<Project.Domain>
<Project.Web>
is this possible with asp 5?
:3
08:54
yes but you shouldn't
@EuphoriaGrogi mines pretty similar
then I have a core framework that various bits depend on
so if im building an API proj.web depends on core.api and core app
project domains depend on core domain (as you would name it anyway)
09:12
o/
09:42
aaight sip?
Morning!
@Wardy i have a problem right now :) im adding my data access layer as a normal class library. How to create a connection to the database? Since class library doesn't have Startup class so i cannot register my entity framework
@EuphoriaGrogi I use IoC for everything in all apps
standardised the startup in everything I run
@Wardy thanks! :) i will take a look for it
for now i dont have any idea about ioc
ill check
if you have a stack like that its similar to mine so in the app you'll have a IoC rule for how to construct controllers for webapi or mvc
09:47
do you have any useful links there?
I use ninject
it's pretty well documented
yes thats pretty good, my mvc 5 is using ninject plus ef
some on here use unity from what I can tell (another option) in case you need it
i just having issues migrating this project to asp net 5
:)
@EuphoriaGrogi The way I have my stack setup MY MVC projects never see anyhting EF
09:49
@Wardy what do you mean?
only my Service Layer projects (thats what you called Business Domain)
MVC Only ever makes API calls in my case
so I would giveit a reference to the Entities / Dto's and that's it
yah thats is my plan
all my API calls are done over restful services using OData
since my front end is pure angular
it will just send request to my API
in which case MVC need never know that EF even exists
09:50
and my API will reference to DTO business domain and DAL
my problem was how to create connection to database in my DAL layer
since it is only a class library
i cannot register the entity framework
@EuphoriaGrogi you add the connection string to your web config for your API app project
I'm interested in Your oppinion. It's java ok, but still. Why would You use implementing annotation for something like this?
then IoC will figure it out when you create a FooContext that it should use the FooConnection in your config file
okay ill check this
do you have any useful links there?
@ntohl that's a bad example of an annotation interface IMO
@EuphoriaGrogi just google ninject, theres a whole sit and github and nuget pckage set for it
or use unity
it's too big an area for me to know what might be useful for you
09:53
so ninject = Ioc?
i always use ninject anyway
i just dont know the term :)
@EuphoriaGrogi yeh it's 1 implementation of
Inversion Of Control
Dependency Injection == Inversion Of Control
@Wardy im just using the tools without knowing the theories
i need to read more books
it means something else is responsible for passing in your dependencies instead the component itself having to figure it out
basically always use interfaces and you should be ok
09:55
i got it now, thanks :)
last question for asp.net 5
is it ok if I have two startup class?
IController => IService => IDataContext => IDbConnection
@EuphoriaGrogi you can have as many as you want, but for simplicity I would recommend against it
my startup code is very small
hello. i was wondering if i may try asking a question here?
@Unique_Key no you may not (lol joking of course)
lol
don't mind if i do then :)
@Wardy thanks as an appreciation for your help ill upvote one of your SO answers :)
09:57
@ntohl a better example might be something like IAmAudited, that could just literally be an interface with no members used to indicate that something else can audit the object
:D mah chat is finally done :D
@EuphoriaGrogi lol thx :)
@Wardy how old are you anyway?
you know a lot of things
09:57
@R593B: You should follow the general naming conventions
@R593B chat ... connects many people together, and we are shown a sample of private methods ... oh the irony
i'm in a bit of a pickle with a C# ASP.net solution. basically, i have a project which is referencing an assembly from another project, which needs to extrapolate a datatable from a dataset for CSV conversion
@Wardy They actually connect to RabbitMQ :P
in its most basic form, it looks like this: ´DataTable dti = (DataTable)ds.Tables[0];
testDT(dti);´
on the other end: public void testDT(DataTable dt) { DataTable dti = dt; }
@R593B message queuing for chat?
how many channels you planning to have lol!
10:00
@Wardy Probably not the best use for it.
this works perfectly when the method is located within the same class, but when i move it to a separate project in the same solution i get an object ref not set error
@Wardy Although I must say so far it works great :) I did setup my own server on linux so I wont have to pay for one of those hosts :). And it's mainly just for friends and family + something to show I made something ;p
so i thought there might be a type error somewhere, since the dataset is actually a DSCustomerList type (hence the cast)
@R593B how does the messaging work? is it byte packing?
        byte[] messageBodyBytes = System.Text.Encoding.UTF8.GetBytes(encrypted_chatmessage);
10:03
maybe you could improve it to use bit packing then look at using it for more general communications like game servers
yep
I wrote something similar with the server having a rules engine to handle too much load
i should also point out that a very similar thing is being done elsewhere in the project, this time by passing a gridview for the same extraction purposes (which works)
@Unique_Key its impossible to answer that question from the 2 lines of code you have provided
sounds like you just need to step through and figure out what's null then try to understand why
@Wardy i tried to, and everything looks populated; that's the puzzling thing. it's almost like the datatable is getting lost along the way
also, the error hits right on method call, it's not even entering
10:07
@Wardy I set it up pretty simple : 2 Virtual hosts. 1 for requests and 1 for the chat.
On the Request host the user creates a Main Exchange witch binds to a queue with his name. This handles only the chat requests between users, so when they want to chat with eachother.

On the other Host. The user registers an Exchange upon receiving a Request :) Which then binds to a queue with the Target name. So you get one main exchange witch binds to whatever users the guy is chatting with. Now the cool thing about RabbitMQ is you can send a key with your message which basically lets the exchange dec
@R593B great ... now load test it ;) that's where I hit issues with my implementation
It works :)
I actually tested it with my dad lol
wow 2 users ... epic load test :)
Yea true
But I mean I tested if the server works XD
I was trying to get mine to handle an MMO server scenario
where the players can move but also so can the terrain in my virtual world
10:11
Hmm I could simply load test it by removing my checks if a listener already exists I guess.
that created some interesting problems
(Creates a ton of connections)
@R593B that's not how you load test it
@Wardy how would I do that then ? :P
Write a spambot and instantiate it 99999 times
10:14
Sorry if SO link posting is not allowed - I read the rules and there wasn't anything to say not to. Anyway, I've been stuck on this ASP.NET Core MVC issue for over a week - any help would be massively appreciated, plus open bounty on question :) - stackoverflow.com/questions/35989885/…
bah! figured it out, i'm an idiot.
@R593B either use a load testing framework or write a client to connect to your chat lots of times and run it on multiple servers until either your software dies or the network bandwidth is flooded
if it can handle a flood then its probably pretty good :)
Alright
@Unique_Key Glad I could help ;)
i forgot that the class i was calling is not static and wasn't instantiated >_>
10:15
Bbl time to put it to a test :D
@Wardy thank you very much, sorry for wasting your time
@Unique_Key isnt that the point to chat
true, that.
@ChrisPickford I was kind of expecting there to be a UseValidation() method to call on IAppBuilder as thats usually how features are configured...apparently there isn't. I dont know the answer though.
@TomW Thanks for taking a look, I've not come across UseValidation() before, doesn't seem to come back with any results on google either
10:22
I think it is a bad example of annotation interface too. But how should I phrase it? I wrote "Umm. Can’t You use just

1
myContainer.RegisterType<IMyService, CustomerService>();
? Like any normal IoC would do? Or Just use convention based registration, like any normal IoC would do?" (btw I was a bit drunk when I wrote it)
How would the audit thing look like?
@ChrisPickford yeah I was guessing as to what it might be called
@ntohl what does myContainer.RegisterType<IMyService, CustomerService>(); do?
the syntax is different to that of ninject (which i use)
it's a copy paste of unity's binding from an example
from that point, the IMyService will be resolved to CustomerService
i bind using something like ...
container.Bind<IService<>>().To<MyServiceFactory>();
same thing.
10:24
because ultimately in the business domain the actual implementation can only be determined by a business rule
the factory in my case implements the business rule
with auditing example I gave above there is no binding
the java example somewhy uses annotation to separate realbillingservice from the Non real?
having the marker may cause some components to treat the object differently (eg not just act on it but audit it too)
so it's IMO not something IoC needs to be concerned with but the components that are constructed with IoC instead
I could be wrong of course
for example ... I might IoC construct an IService<T> but I wouldn't really construct with a rule an object that implements IAmSerialisable
it's just a way of saying "here's something extra about this object"
I could be wrong of course
In my oppinion the tests just contains different container.Bind...To<MockServiceFactory> and no annotation is needed
the response to my reply was that>
"class Bla {
IMyService one; // want here instance of CustomerService
IMyService two; // want gere instance of SuperCustomerService
}"
why would You want something like that, if that is not decided in the point if You are testing or not
I think as long as there is no duck typing the above code will be switch cased somewhere. Isn't it? So I would normally just call bind every time, when I'm getting a CustomerService, or a SuperCustomerService
I mean call bind with different To<Super/non super> part
the whole thing looks wrong to me
@ntohl if you have 2 implementations of the CustomerService class like in your example you should use a rule that knows when to use one over the other, this is why I have a factory, the factory can make that decision based on business rules. Each injection is evaluated on its own contextual information, so guess the answer is ... it depends?
Ninject supports named rules
container.Get<IService>();
or
container.Get<IService>("Super");
migth return different results, might return the same
its hard to say without knowing the context of the call
ninject I know also supports injecting collections
10:41
ninjecting?
ICollection<IService> services = container.GetAll<IService>();
pretty cool and bad at the same time
I've wrestled with this yesterday
from there your calling code can make the decision on what it wants to use
feels a bit anti pattern to me though
@Wardy the article sais about the named rules, that it is evaluated runtime, and there should be a way with compiler checking. That's why He uses annotation
below the "bind(CreditCardProcessor.class)
.annotatedWith(Names.named("CheckoutProcessing"))
.to(CheckoutCreditCardProcessor.class);"
@ntohl yeh thats another way to go I spose
10:46
Good day everyone! ^.^
When working with EntityStates, for example EntityState.Modified; , does anyone know which reference needs to be referred?
10:57
        var storage = new StandardKernel(new IoCStorage()).Get<IStorage>();
I think by writing like this
I am killing how the di design was intended to be
I think by writing like this
and am just having a service locator
yep
lmao going to leave this running am at 3k connections right now :)
also sends messages
tests everything basically ;p
@misha130 is that not essentially what a ninject kernel is, but yeh that's probably not the right way to do it :)
11:13
I just couldn't make a constructor for my class that has IStorage
so for now I am just getting the service in the one place I need it
@R593B a typical game client would potentially send at least 1 message per frame per client, if you have 3k clients in the same area they should all receive that message.
assuming 1 byte per message your bandwidth usage would be around 3001 bytes * 60 per second so about 180Kb the reality is, for the most compact game clients i've seen a tpyical positional message comes in at least 24bytes so 4.3Mb/s ... you're now about 40% of the way through saturating a 100 meg ethernet connection (assuming thats how much you are actually sending it)
First time i tested mine i was sending considerably less but over more connections, that ultimately led to me hitting the C10k issue which i'm guessing you aint hit yet
Also with this type of thing, it's near impossible to load test on a single machine with virtual hosts as virtualisation layers can "cheat" as no traffic actually has to be sent over the othernet bus between 2 virtual hosts
in other words ... your limit is how fast your motherboard will go, not a reality
depending on how you test it of course :)
anyone ever worked with custom reports ?
good morning, it's always nice to have a lot trump on right in monday morning
11:28
Not going to nor can i talk much about it, but in my opinion, Trump is intelligent, but that does not equal smart.
Not an American though, so im not speaking actively so to speak
i'm pretty sure he's smart too. but it's not a problem of intelligent, it's a problem of sanity
I guess no one worked on reporting here ?
Trumps an anomaly in the matrix
Well reporting can be a nightmare
11:57
Anyone know what actually performs the authorization in asp.net?
I've got a copy of the authorize attribute code from github and it seems the current user is already known at that point
I need to add some custom auth handling to determine the user in to whatever figures out the IPrinciple of the current user if its possible
Owin Identity?
@misha130 owin gets it from the place I presume
whatever that place is

« first day (1983 days earlier)      last day (3190 days later) »