« first day (1566 days earlier)      last day (3380 days later) » 

2:01 PM
all the cool kids are doing REST services these days. SOAP is soooo 2012.
but yes, that's a useful feature to have...
 
REST can't express a ton of concepts that may be useful inside the firewall. Ordered delivery, reliable messaging, various models of security, federation...
Or outside, in principle, but more often than not you can't rely on the parties you're integrating with understanding WS-* well enough (I'm one of them; I know enough to know that I don't know enough)
 
Afternoon all.
 
Well, progress of a sort. If I bind the column to just a DateTime object instead of to the one with an EditorTemplate, it's not NULL when I access it. I can only do Date things at the moment, but that's progress.
Good afternoon, @Tommo1977.
 
2:16 PM
I'm about to start a project Winform, WebAPI, Windows Service with a MySQL database. Question is, should I consider using Entity Framework 6
 
Outside of my experience (I'm new at this myself), but maybe one of these other fine fellows can help. What are your reasons for considering Entity Framework 6?
 
@SeanDuggan Previously I've designed my database from scratch which is ok, along with loads of stored procedures.
This was a web app for our website
But now this application will be 3rd party used for commercial purposes
So I wondered rather than having to update stored procedures etc whether or not better to do in EF6
 
I would reconsider WinForms, and go in favor of WPF. I would also reconsider MySQL and go for MSSQL. Then I would absolutely take EF6
 
I only saw MySQL because I've a lot of experience using it
and never used WPF either
 
I think I'm getting a stack overflow, but VS isn't breaking on the exception. Does anyone know why it wouldn't?
 
2:25 PM
@Tommo1977 Then perhaps it's a good time to learn WPF? I wouldn't want to use WinForms, or code against SQL without powerful Linq queries from Linq2Db or EF. Since EF is a bit annoying with MySQL, I suggested MSSQL instead. But everything depends on your use case; but I've found these tools to be the best for all of mine.
 
right i see
For WPF this project is fairly urgent and don't think I've got the time to learn it
:/
I thought EF6 with MySQL was fairly good
 
Good morning everyone.
 
That's often the problem. Nobody thinks they ever have time to learn "new" technologies, and finally realize one day that they are 20 years behind.
 
@RoelvanUden Or your company knows they're use antiquated technology but would rather not invest in newer technology.
 
Which is OK for a company, but a sad truth when a dev gets fired there and tries to find a new job :P
 
2:39 PM
@RoelvanUden Yep.
 
goood morning!
 
mmm decisions
 
eating decisions is delicious
 
decisions wrapped in bacon
mostly bad decisions
 
mmmm bad bacon decisions
 
2:43 PM
i like bacon
any one here is experienced in refactoring and designpatterns?
 
Uh. Everyone?
 
I'm vegetarian
 
well i still looking for an answer what patterns would fit best for a filterstring parser
By chance anyone of you could help me improve the question or answer it? stackoverflow.com/questions/28211739/…
 
That german.
 
i am sorry, that i am german =(
 
2:51 PM
@RoelvanUden lol
 
@Steve The best kind of bad decision
@RoelvanUden Like the VB6 guys :(
 
@BoeseB I'd recommend you avoid a pattern, because they're not cookie cutter approaches. The complexity they often introduce, will often impede or impact another aspect of your application. A pattern is designed to solve a problem, not be a means to be implemented for the sake of implementation. My question to you would be what are you trying to solve with this pattern?
 
i am trying to solve the problems i get if i add another operator to the filtersyntax or want to support another datatype to filter on
 
I think it's simplest to juist build a list of operators and execute code depending on the next operator on the list :-P
Who cares what that would be called.
 
Hi Guys
I'm having a problem with Windows Service
 
3:06 PM
Did you try turning it off and back on again?
 
Condolences
 
Surprisingly enough for Windows Services, that often works :D
 
@Squiggle lol
 
I want to create log in user profile but windows service is not logging into log file
 
@STEVE
 
3:07 PM
@SIPPY
 
@pubudut can you rephrase that? I don't understand what you're trying to do.
 
@pubudut the account under which the service runs has to have permissions on the user area. It probably doesn't
Only the user and Adminstrators would have those permissions AFAIK
 
well its like this i have developed a windows service and i want service to log info into log file which is created under user profiles service runs under local system account
im using log4net
 
Then yes, mostly what @TomW said.
 
Should I use a WebAPI service to connect to a database, or connect directly from my Winform application
 
3:10 PM
Ah. That should work then. SYSTEM should have access to everything
 
@Tommo1977 ...what would using WebAPI solve in this instance?
 
@Tommo1977 Do you trust your WinForm users with your database credentials? That should almost always be a resounding "NO!", and in that case, they shouldn't access the DB directly.
 
yes local system account has most priviledges base on content i read so far
but its not logging into the file
 
I'm not sure what "Windows Service" or "Services" are for.
 
3:13 PM
they windows processes that runs in background and doing some tasks
 
Hey guys I need help understanding when and where to pass variables in, and where to just create them on demand. In this situation is it better to create my XMLBuilder class when a new instance Program is instantiated? pastie.org/private/aknxmvchdysqhat0eob84g#58
any type of advice on what I can do to improve the code pasted above is appreciated. Feel free to tear my apart
 
@RoelvanUden Windows Service is to communication with a 3rd party internet service on a scheduled basis that will download and upload data
 
@Tommo1977 client app will have multiple instances and be connecting over a network?
 
@Squiggle multiple users
 
@pubudut try using the EventLogAppender for log4net instead of the fileappender
just to check if it does anything
 
3:16 PM
probably over LAN, but slight possibility of over Internet
 
Then if the client app is WPF or anything .Net, I'd recommend just going with WCF instead of WebAPI
 
EventLogAppender works fine it logs all the messages but why fileappender is not working is my problem
 
@Squiggle I was in chat the other day and someone said use WebAPI and not Wcf
:/
 
that way you can share the data contracts and not have to re-code the data transport objects
 
@Squiggle it was suggest I have a shared class library that has my models/objects in
 
3:18 PM
@Tommo1977 if your application has distributed usage then better connect with web api services
 
@pubudut possible
Basically I'm developing a hotel property management system
9/10 it will be used on local LAN
But for Hotel group maybe not
 
then in scaleability aspect it is better to user services.There can be winform apps and mobile apps and web application in future so if you develop that in mind
future improvements is easier
 
Well there's no right answer. My gut feeling is that WCF will be quicker for development, but WebAPI will be more scalable.
 
@Rovak@Squiggle Thanks guys your help on Windows service issue
and @TomW
 
@Squiggle Wcf should give me scalability too ? Just not for non .NET services
 
3:24 PM
Does anyone have a preferred 'Grid' package they use for MVC?
 
@pubudut np
 
I'm using Grid.MVC, wondering if anyone else has found others more useful
 
Telerik might have some components
 
@Sippy That's the one I use, or one my company developed in-house.
 
Heh... I'm using Telerik and I'm in this room because of issues I'm having with it.
Admittedly, it's partly because my company is a version behind; we're not using Kendo.
 
3:31 PM
@Tommo1977 WCF can expose a SOAP endpoint, which is OK for scalability....
 
I might stick with Wcf tbh
 
@RoelvanUden Hmm
Have you used it with MVC5 yet?
 
Yeah.
 
Reference is fucking up or something
 
soap is crap
grid.mvc is crap
telerik is crap
Am i missing anyone else?
 
3:43 PM
Good.
 
@Sippy Standard Html Grid?
 
@TomW every.contract.i.have.ever.worked.on
 
@CharlieBrown More effort writing filtering/searching/sorting than its worth?
 
@CharlieBrown just use jQuery
 
3:44 PM
@Sippy so a js grid, not mvc?
 
GridMVC has html helpers which make it easy to set up
And has javascript shit which makes it decently powerful
I'm looking for a fast, decent solution, not an impeccable, best possible, infallible solution to a grid :P
 
do you need to do server side paging?
 
@Sippy I used jTable a while back. It's pretty good
 
@Squiggle It was @CharlieBrown who recommended WebAPI ;)
 
@TomW Ahh I've seen that before
Will have a look, cheers
 
3:48 PM
wcf is about as scalable as a network of pigeons
 
@CharlieBrown You on the warpath today? :P
 
hahahah
 
@CharlieBrown pigeons served us well for decades and nobody complained!
 
i guess so, energy drink didnt soak in enough yet
 
;)
 
3:50 PM
@Squiggle they complained, but there was nothing they could do about it but look at the sky and get shit on
 
@CharlieBrown including spinning them up with AppFabric?
or in Azure?
 
azure helps, but wcf verbose-ness supports less concurrent users per instance, so you need more instances to handle the same traffic
than say web api
 
@CharlieBrown they did suffer from packet loss though. Sometimes they would be shot and eaten, or settle down with a nice lady pigeon on a cliff face somewhere.
 
lady pigeons. every damn time.
 
@CharlieBrown well that's a fair point. Most of the verboseness does something though. I have a pretty plain http binding on a service I'm writing atm and <soap:Header> is empty and it's happy with that. Most of the bloat ends up in the headers IME and it's largely down to complex WS-* features
Don't use 'em if you don't need em
 
3:54 PM
You may need it. In some scenarios, the strict type of soap is useful
 
The fact that XML repeats every object name twice is a pain, admittedly
 
WCF is still way quicker to implement than REST, if both sides handle it
 
But like going to White Castle, if you just want to place and order in the drive through and get your double cheese burger, you dont want to have to drive a specifically shaped car
WCF is sooo much slower to implement
 
Hmm. WSJsonBinding?
:D
could that work?
 
@CharlieBrown Mmmmm white castle
 
3:59 PM
i spend the first 20min every morning squinting at my monitor before i realize i left my glasses in the kitchen
 
what's a White Castle?
 
is that like Wimpy Burger?
 
Cheap burgers, small sliders, lots of onions on them. Became popular in part due to the ability to buy a lot of the sliders on the cheap. According to one co-worker who used to work at White Castle, at at least one point, the "onions" were actually cabbage soaked in onion juice.
 
roffles
 
4:06 PM
So
WebAPI, WCF ??
 
@SeanDuggan Am I the only person who takes the burger apart to see what's in it before I eat it? :/
 
@Tommo1977 Do you like big enterprisey things, or fast nimble things?
 
Things that make £££ at the end of the day
I have used Wcf a fair bit
We have a internal Winform application with a Wcf external web serviced hosted on Aws. We have about 8 concurrent users and seems to perform ok
 
(more behind the scenes magic, locked into MS way) or (no magic, declaritive, industry way)?
well, yeah, 8 is pretty much nothing
 
lol
 
4:13 PM
scalability comes when you reach 1000
 
I dont think we will hit 1000 users
Probably max 20
 
no, no. i agree with that (unfortunately)
if you know it and use it, might as well
 
Yay I win!
 
O_O
 
:P
<3
 
4:19 PM
Well, that is a kicker. I need an `int`, I've got a `string`. I do:

var port = server.Port.Where(d => char.IsDigit(d));

Which comes back as IEnumerable<char>, what would be the cleanest approach to convert that back into an int?
 
Hi
 
Let's go
 
im so scared of you right now @Greg
 
@Greg I would use a regex, not LINQ
 
Yeah, I'll skip the LINQ and just do int.TryParse.
 
4:21 PM
int.Parse(Regex.Replace(@"\D", server.Port, ""))
 
@CharlieBrown Why?
 
I need a little code review
public void Task DoSomething()
{
var task1 = RunProcess1Async(); // Also return 'Task'

return task1.ContinueWith(tskOk => RunProcess2Async())}
}
 
@Greg so many reasons. you cant just parse either, you could lose the info
 
now - in case RunProcess1Async() result in exception I receive only TaskCancelled exception and not the real exception
any suggestions on how to return real exception in case of RunProcess1Async() falling ?
 
Hm.
 
4:23 PM
server.Port returns already returns an int
casting an int to string, then back to int is not safe
well, i guess it cant kill ya
 
code example ? in case I want to return 'continued' task to caller and not the first task
 
shit, who knows. i guess it could be
 
I have this input from fb app :
{"id":"fb_user_id","first_name":"user_first_name","gender":"user_gender","last_name":"user_last_name","link":"https://www.facebook.com/app_scoped_user_id/fb_user_id/","locale":"en_US","name":"fb_user_name","timezone":6,"updated_time":"fb_update_time","verified":true}

My code:

using Facebook;

var getFbRequest = new FacebookClient(access_token);

var getFbUserInfo = getFbRequest.Get("/me");

And I need
string fbUserId = fb_user_id

string fbUserName = fb_name
 
0
Q: Can [asp.net-identity-2] be merged into [asp.net-identity]?

ShoeSeems to me these tags are serving the same purpose and many people are just double tagging questions with it.

 
getFbUserInfo.id
 
4:27 PM
@CharlieBrown, getFbUserInfo.id is not valid
 
what type is var getDbUserInfo? if i recall its dynamic
 
sakgbkajsbg
 
jihad?
 
@CharlieBrown, dynamic is ok
 
@Sippy: Have you ever tried telling the difference between shredded cabbage and onion chips?
Incidentally, I solved my problem. It looks like the issue was indeed the name in the EditorTemplate. What a pain.
 
4:40 PM
@CharlieBrown You ever notice when you need to finish a project because of pressure you start taking shortcuts that result in garbage code? You let them know this isn't ideal but to meet timeline I need to change and they go "Nah, it'll suffice."
 
@SeanDuggan You mean diced onion?
Who puts diced onion on a burger :(
that makes me sad
 
"Check in all 162 work items?" [OK]

...3 minutes before leaving work for a 4-day weekend
\o/
 
Lol
 
I always read that site's name as 'arse technica'
 
@TomW That's a whole 'nother business.
 
4:49 PM
@ton.yeung
 
@ton.yeung I already have pedals that are more than adequate for the little flight sim I do
That would be awesome
Because anything less than like $500 is a no-brainer for me
 
@steve
Make sure you test the tests that test your tests
 
@ton.yeung nope, confirmed that my shit isn't breaking them by pushing master up and comparing the two, so easy, wish i didn't spend a day sobbing like a little girl
 
You don't want a bad test ruining your testing of the tests which test your tests either, so you should probably change your job title to chief testie
I mean tester
 
@Sippy My job title is Unit Test Czar
 
4:54 PM
@ton.yeung Steve is a pair programmer
 
I almost addressed an email to myself
i r smrt
 
With a Winform application, would you always connect to a database using a service either WebAPI or Wcf. Or should I consider having a direct db connection from the client pc
 
5:17 PM
anyone
 
5:33 PM
Indeed
 
i have nuget package restore enabled, this means everytime i build it pulls down / installs the nuget packages, yes?
 
any missing packages would be downloaded yes
 
ahh any missing packages
 
afaik
 
is there a way to force it to just redownload them?
well, i want to force it to redownload the packages, because team city says it can't find em, but they're pulled in locally....
so i want to verify that they can be downloaded locally
 
5:36 PM
I would assume that there are more to it than just dl'ing some missing packages. What does the doc say?
 
team city says it can't find the packages
:/
 
:(
 
but it def. builds locally, and i checked the path that the nuget.targets is pointing to, and they're correct
maybe its a TC issue
balls
it doesn't look like it, but with package restore on, i dont think i need one? (none of our builds have that step and it pulls them down)
@ton.yeung but i really appreciate you looking
 
This may be a dumb question, if I do:

private static readonly List<string> destination = new List<string>() { path1, path2 };

Will that make it immutable?
 
5:55 PM
I don't think readonly would prevent you from modifying the elements if that's what you are asking
string makes it a bit trickier, but a simple test can check...
My compiler allows assignment
So not truly immutable, no
 
:/ Ah, how could I make it truly immutable then?
 
You can create your own class
A custom list that doesn't allow assignment like that
 
@BradleyDotNET I was hoping to not add that extra complexity.
 
Or do something clever like this:
1
A: avoid manipulation of element of List

Ronan ThibaudauYou can't modify the behavior of list (so yes while you can prevent assignments of the list itself, you can't prevent someone from using it's methods). What you CAN do is not expose the list at all by simply providing an IEnumerable. The naive approach would be private readonly IEnumerable<xyz>...

 
What about a ReadOnlyCollection?
 
6:03 PM
I think that only prevents add/remove
Nvm, looks like that might work
Yep, the indexer of ReadOnlyCollection is read-only so that should satisfy your requirement.
If you have to use a List though, I would go with the yield return method.
 
Maybe.
 
Making an object with state immutable is kind of bucking the whole OOP paradigm.
 
@TravisJ I believe all structs are supposed to be immutable
 
@TravisJ paradigms were created to be bucked
runs away to write some REBEL
 
@TravisJ Well, I have a list of servers and I want them to not be modified throughout the application. Only one area can, to force it to be immutable.
 
6:15 PM
make them consts
Or just don't expose the setter outside of the class
 
@TravisJ I thought about that to.
 
public List<Server> ServerList { get; }
 
How to make leave your objects unchanged: Dont change them
 
^
 
@TravisJ Universal Remote in nightfall last night
 
6:17 PM
@CharlieBrown I won't but another developer may be like oh, I need this collection for this area of the app: server.Add() and I don't want it to ever be added.
 
no programming language can guard against poor training and poor documentation
 
indeed
 
just make it IEnumerable<Server>... no Add() method
 
@CharlieBrown That's a good idea.
 
@CharlieBrown - you ass
@CharlieBrown - so can you equip that in your primary slot?
 
6:22 PM
shotty with a big scope on it, primary slot
 
so jelly
it is one of 3 that I don't have
 
it has short range, but the grouping is very tight
 
I want to use it with praedyth's sniper rifle
nothing like sneaking up on the dude with a sniper and finding a shotgun
 
i havent played for like a week now... im thinking time has something to do with exotic drop rates. everytime i take a break and come back, i get an exotic drop shortly after
 
I could see that
 
6:25 PM
its basically a carrot system, games like this
 
Although, I got no land beyond, the last word, invective, and patience in the time in the past 2 days
But I already had all of them
 
NLB has the drop rate of a rare, i get that darn thing every time i run crota
 
I hate it. The scope is terrible, the rate of fire is the slowest in the game, it has a small clip, takes up an exotic weapon slot, reloads slow, and carries no ammo.
 
donut is a good dessert after sushi right? good enough for me
 
6:50 PM
Magic Crunch - tuna, salmon, cucumber, tobiko, pickled radish, tempura crunch with spicy & brown glaze
i guess you wouldnt have liked the cucumber salad i had on the side
yeah, great Korean food, but the best sushi in town
I mean, its Wisconsin, so its not like a sushi paradise
Good, have another one tomorrow afternoon
no idea, that stuff comes later. she asked what my requirements were and didnt bat an eye though
all phone so far, same as tomorrow. one after that is in person, they fly me out
im looking at some of the dudes that work there, and im like...uhh, im not that good
lol, not actually sure where
you know whats even better than interfaces everywhere in c#...interfaces in js
 
7:12 PM
@CharlieBrown If it walks like a duck...
 
it must be a
 
is MSBuild source code available anywhere... as in how csproj files are parsed
or/and persisted
 
lmao
 
@NETscape It probably will be when they open source .NET Core
A lot of the compiler code is supposed to be included
 
7:49 PM
@CharlieBrown doesn't really tell you anything
 

« first day (1566 days earlier)      last day (3380 days later) »