« first day (2140 days earlier)      last day (3034 days later) » 

10:01
I moved to 16gbs and its great
at home
War
War
@JakobMillah yeh setup a 30GB ram drive push game folder to it, load game from it
I got a fancy bit of software with my new mobo that does it
so I only use half my ram as actual ram, the rest is basically treated like a drive
Yeah, that sounds interesting.. Any difference compared to SSD?
War
War
yeh my 4ghz ram clock makes it a ton faster than SSD
it really only makes a difference to loading times though
handy if you have a game that does a lot of loading
@Squiggle what do you do with all that RAM? Im just curious. I dont have a use for that much
Also hey, how do you guys feel about desktop dev? I enjoy it but I keep getting sucked into Web Dev. Im just wondering if I could land a desktop dev job these days. It cant really be dying though, devices will still need to utilize software on their drives
War
War
@TeeSee sharepoint is a ram whore
gets worse if you localhost you sql too
you could easily crunch through a couple gig's with a reasonable VS solution open
so I'd say, 20GB for sharepoint balls to screw your ram, 8gb for SQL (just to make it run nicely) then another 2GB for that VS project + "other shit", on a 64bit OS today that's like 4GB just to get up and running
10:12
yeah I have Visual Studio and SQL Server running locally right now and it's only using 16GB
but a couple of instances of VS and a local SharePoint instance would definitely push it beyond 32GB
also I do a lot of mobile development, and the emulators are quite hungry
Wow. Ive not used SharePoint. Are you talking about running a SharePoint server?
yeah
Ok that makes sense
fortunately I don't do SharePoint development, but most of the company does
War
War
shitepoint is real bitch to servers
no need for it though
10:13
we're moving into the cloud now though, so everything I do is based on SP online
War
War
that'll be a bit nicer
@War you'd like it - it's basically OData all the way
@Squiggle i.imgur.com/IJfXGhI.jpg you need that
War
War
@Squiggle woohoo :)
OMFG
I have never worked anywhere whose Sharepoint install worked properly
10:15
That's some slots
@War that'll be the Redis box then :)
War
War
ah big data stuff
evil
that's basically the RAM version of a backblaze, right?
Mmm nah just caching
War
War
@Squiggle dam I want one of those
cloud in a box!!!
10:17
Still not enough storage for Roel's anime collection
3
War
War
LMAO
I have a hefty nas setup ... but nowhere near enterprise grade SAN gear
@War build your own. The specs are online.
War
War
got a 15TB volume
@Squiggle use freenas or something ?
alright guys Im outta here ttyl
10:19
Not sure. Just finding the info about the build - but IIRC it's about $7000 for a 0.5PB storage unit
Rehashing the 'still can't run Crysis' joke from about 2006, never gets old
War
War
I'm starting to look at SAN's ... not really sure I quite understand the difference between a NAS and a SAN though
It's what you get if you install it back to front
War
War
@TomW you could probably run crysis with current hardware without needing a GPU lol
@TomW rofl
10:20
"Scientists model black hole decay as a form of hyperdimensional dense matter information processing, making black holes the universe's most powerful computer. Still can't run Crysis."
@War NAS = one device, SAN = multiple over network
War
War
@Loetn ah ok ... so is a SAN setup basically just a means to reference multiple NAS devices and treat them as a single volume?
I know i am doing things wrong, but is there a friendly soul out there that can tell me about exactly how wrong? :D
War
War
@Xariez define your entities outside the context
also the other way round
public DbSet<User> Users { get; set; }
and
@Xariez wrong as in not working, or wrong as in poor style?
10:26
@War Something like that :)
War
War
class User { ... }
Wrong as in not working @TomW
What's DbContextOptions? Does that give you a place to specify the connection string?
War
War
var query = (from u in _context.User
                         where u != null
                         select u).ToList();
u will never be null
Ah, so pretty much one DbSet+class per file? @War
10:27
the pattern I'm aware of passes a string as the connection string name, which the base class looks up
War
War
var query = _context.Users;
Fair enough, but its to remind me that i need some actual where set there at some point
War
War
@Xariez yeh I would
ViewData["DisplayUsername"] doesn't look like it is meant to take a list of users
War
War
var users = _context.Users.ToList(); <-- pulls all users from the db in to a list
10:28
That I know
But i doubt thats whats giving me issues, plan was to put that there to see if it actually gets all db data correctly
War
War
if you name your connection strings correctly it can figure them for you
So first things first, move public class Customers and DbSet<Customer> to a secondary file? But again, I am very doubtful that thats whats throwing a internal server error
No, keep DbSet in your dbcontext
@War should it not be var query = _context.Users.ToList(); ?
Alright
So DbContext has DbSets and then two seperate files for the classes?
10:30
ye
War
War
@ElieSaad no because using ToList() means you no longer have a query, it'll actually execute the query and give you the results
Where are you wiring up the DI so that the controller gets an instance of DataContext?
DI?
@War what is he doing with the query then? ..
@Xariez Dependency Injection
10:32
@Xariez dependency injection. Since you don't call the constructor of a controller, the framework does it for you, it has to know how to give it dependencies
Testing if I can get anything whatsoever from the DB atm? @ElieSaad
War
War
@ElieSaad if he does var query = context.Users he has a reference to the IQueryable<User> DbSet
@Xariez you have a conceptual model, which is about those classes.
Storage models are about the DbSets
https://msdn.microsoft.com/en-us/library/cc982042(v=vs.100).aspx
Read this ^
War
War
that's a "query" in the form of "select * from Users" in the db
How you do DI in MVC has changed multiple times so it depends which version, but there should be something like
War
War
10:33
when he does .ToList() that query is exectued and he gets the result of the execution
then he can use it later somewhere else. Okay got it.
I was comparing to what he was doing in the code.
public void ConfigureServices(IServiceCollection services)
{
    // Add application services.
    services.AddTransient<IService, Service>();
}
I've used .edmx files before, and I would want to use it now but I cannot as it does not exist in the "Add" section of VS @ElieSaad
War
War
@TomW unity ?
10:34
@Xariez What version of EF?
War
War
@Xariez that's because you are using code first
@Xariez umm did u import a database?
Or how are you doing what you are doing ^^
@War can be. This version though has a really lightweight service locator-ish feature built in
Oh so interfaces are mandatory? I thought they were just very handy but, not mandatory.
EF Core @Loetn
not that familiar with it
War
War
10:35
@TomW MVC has DI built in ?
nice!!!
is that in WebAPI ?
@Xariez EF Core doesn't use .edmx anymore
Only Code first
War
War
^ the model is generated from the context (it's still there we just don't use it)
Fair enough
UGH with CORE. I still haven't read shit about core!
And that is what makes a interface necessary? Or?
Have to use it since we have to use .net core 1 :P @ElieSaad
10:36
yes
@ElieSaad Right now im not doing a lot, but plan is to pull data from a MySQL Server
It isn't mandatory, but it can come in handy
You can use DI without interfaces, but that is... uhm well yea
War
War
@Xariez don't worry about it ... you don't need an edmx
@Loetn haha ... um yeh ... (my thoughts too)
So is there a "in a nutshell" version roughly of what I'll need to do to get this working?
Except for building up an interface, that is
I downloaded 16gb of rams, tally ho!
War
War
10:37
@Xariez remove that ctor move the classes, clean up the naming and rejig that query
@ElieSaad is your machine now uberfast with all those rams!!
Oh so that CTOR is doing jack shit right now then?
War
War
@Xariez pretty much
@Xariez right, there is a helper method available to wire up your DbContext ef.readthedocs.io/en/latest/miscellaneous/…
Need to make sure you have something like that
War
War
using the default ctor defined in DbContext it'll look for a conn str in config with the same name as the context type
@War running a query of a 1.5million record in 5secs. Boo ya.
10:39
if this app is scaffolded it ought to have done that for you
War
War
should be ok to wire up that for you
@ElieSaad sounds about right ... and people say EF is slow ...
It isn't @TomW
War
War
I don't think they know how to use it
DbContextOptions<T> which you have, looks like the same version
@War Depends on the use case
10:39
Tell me bout' it breuh.
I'll probably need to ask what you mean by "clean up the naming", however @War
War
War
@Loetn like anyhting it's a technology open to abuse
Yep
War
War
@Xariez well its up to you but this isn't right ....
public DbSet<Users> User { get; set; }
should be something like ....
public DbSet<User> Users { get; set; }
Ah you mean like that
Yeah thats.. not very good looking
War
War
10:41
DbSet<User> User here defines the type for a single row, the Users is the name of the set / table so the row collection
A class is singular, a set of a type is plural
War
War
^ yeh that
Lol yeah ^^
<User> is the class, Users is the set, which u can say in your brain that it is a table, so it takes an "s" cz it contains multiple User.
ssssssssssss
oh yeah, datacontext property names are magic, so it'll fail to match them up to tables unless you name them right
War
War
10:41
it also reads better when you use it
context.Users.Where( ... )
context.User.Where( ... )
Yeah like when calling:
Users.Where ... Not 1 User.. many, a set to be precise.
War
War
latter implies you are querying 1 user
It wouldn't surprise me if the database initializer calls your tables Userss
War
War
@TomW lmao
lol
War
War
10:42
Userses
Nah, its UserInPlural :D
/jk
Having too many sss is never too much.
oh yeah it's hilarious when you end up with tables called things like CandidateStatu
War
War
the more the better
Because it thinks Status is plural
War
War
10:43
Usersssssss
Should I keep private DataContext _context; in the Controller? Or rename DataContext to IDataContext as in the interface?
You can select it IIRC?
the latter
If you're using DI
Renaming it doesn't make it an interface
Aah, I read that wrong
It doesnt, but let me rephrase. Should I select the class or interface with _context?
10:45
interface
War
War
@Xariez I wouldn't ... my MVC projects don't ever even have a reference to EF at all
@War LAYER HIM!
War
War
I tend to build WebAPI apps that contain controllers, then behind those a set a services for the business logic, then behind those the DataContext
var stack = IController<T>(IService<T>(IDataContext("conn str")))
then build an MVC app that can talk to the API
so the front end only needs to worry baout rendering and nothing else
I WENT DARK!! Praise stylish.
War
War
I use chrome :(
10:48
Another question, should I put the queries in the DataContext.cs file or still keep them in the MainController.cs?
I'm guessing the DataContext file but
I use chrome too ^^
War
War
@Xariez depends on your architecture ... usually in my case they live in the service
unless they do wierd db things then I might define a method in the data context
why are you ignoring me :( notice me senpai
War
War
lol
NOTICE ME!!!!!!
brb dog walk time else he gets hyper
haha doge time, on u go.
10:52
So if I just want to target the interface in a _context in the controller and go from there, that probably means I need to do the queries in the DataContext file, then return the query to the model
(thinking loudly)
oo
War
War
11:09
its way too hot to be outside today
off to 9 weeks holidays next week
@Mathematics Nine weeks?! :o
C4u
C4u
Hi everyone.
War
War
9 weeks ... jeez who gets that these days ... spoilt life or what!!!
C4u
C4u
I often read C# 6.0 or C# 7.0 but how or where do I decide which version I want to use? Where is the dependency? On the framework?
11:11
@C4u .NET framework
C4u
C4u
So C# 7.0 is equivalent to what? .Net Framework 4.6.1?
War
War
@C4u C# 6 / 7 is the language version
@Loetn yes you heard it right :)
War
War
.Net supports many lanaguages
C#'s versioning is different to that of .Net
@War Bengali ? Chinese ? Pashto ?
11:13
@War But to use it, you need a certain .net FW version
C4u
C4u
So.... my question was where to decide which version to use!?
I've seen for C# 7.0 there are very interesting features I would like to test. But how?
War
War
@Mathematics potato carrot and tomato are the supported languages of .Net ... look them up everyone knows this !!!
1401
Q: What are the correct version numbers for C#?

Jon SkeetWhat are the correct version numbers for C#? What came out when? Why can't I find any answers about C# 3.5? This question is primarily to aid those who are searching for an answer using an incorrect version number, e.g. "C# 3.5". The hope is that anyone failing to find an answer with the wrong v...

War
War
@C4u the new language features get rolled out as VS updates
C4u
C4u
Useful! So its a combination of framework and VS version.
War
War
11:14
also your project file now refers to the roslyn version to use as a dependency
basically there's a whole ton of stuff ... VS version, roslyn version, project version, .Net version, language version
all that is figured out for you
keep everything up to date and assume you have it all
C4u
C4u
Yeah for private use.
My boss would kill me if I would switch our project to 4.6 or above ^^
The would have to install the framework on all computers.
@War I am very new to .Net...
@War need more versions
War
War
11:30
@Mathematics what version ?
@scheien yup ... lets add a few
this is where I'm going in a couple of hours
resolution on that game sucks
home nostalgia
@War This is my first day working with it
when i get home i'm gonna wander though the woods. Don't remember when i went there last time... must be sometimes ago
11:36
@C4u so? that's not difficult, it shouldn't break anything
@Proxy that sounds lovely
C4u
C4u
@TomW Whats not difficult? To install the framework on all computers?
@C4u yeah just use group policy
@TomW sorry, can't afford the newest high tech graphics cards :(
as a kid we were spent a lot of time there but now you have no reason to visit
C4u
C4u
11:37
Hah it IS difficult. Our IT guy is totally retarded.
Its not my business doing that (unfortunately).
@C4u haha, really?
C4u
C4u
Plus, the workers would have to stop their work and download it with the next update.
Would need the agree of our boss.
+ 70 computers.
schedule patching at night?
C4u
C4u
Low bandwidth.
Problems over problems.
And I just have 2 days left in this company ^^.
It's not a problem, it's laziness.
C4u
C4u
11:39
Its a point of money.
Anyway... this thing is done. Ill just check it out on private projects.
Keeping applications and frameworks up to date shouldn't be money issue.
You'd think that huh.
can anyone help me with batch (.bat) scripting?
FOR %%X IN (*) DO
(
@echo %%X
)
Giving me issue in the .bat file saying, "The syntax of the command is invalid"?
I know this might not be the best place to ask this question but Couldn't find a better chat room to ask this one. So any help is apprecaited
This is the C# room. just pointing out the obvious
i apoligse for that but I have mentioned that I couldnt find any better chat room to ask this question.
11:44
@SomdipDey What's the reason for the @ before echo?
i saw that in few examples and i tried it but the issue is not in that line the error occurs in the line: FOR %%X IN (*) DO
I have tried removing @ in front of echo and hence I am sure that the syntax error is not in that line
I've tested around a bit what was mentioned here but, I am obviously getting errors somewhere as I am getting "object reference not set to an instance of an object." Any help is much appreciated! - gist.github.com/JohannesSundqvist/… @War
@SomdipDey What if you try *.* instead of *?
@KendallFrey I just tried that as well but with no luck :(
Actually you might have to put the ( on the same line as the FOR
11:50
@KendallFrey omg. genuis you are. Thanks pal. your solution worked. thanks a ton :)
wait, the place of the ( mattered on the bat file?
@Xariez you haven't set _context in MainController
@ElieSaad Yeah, it's not surprising, really
@TomW Mind If i ask what you mean? As far as I see there is private IDataContext _context; there but not sure if thats what you're referring ot
user986408
anyone interested in helping me with my saas architecture :D?
11:59
Or do i need to put it in a constructor as well?
@Xariez I don't see what's not clear. You haven't assigned anything to it
so it's always null

« first day (2140 days earlier)      last day (3034 days later) »