« first day (1940 days earlier)      last day (2999 days later) » 

1:28 AM
hello :D
 
Hi
 
hi
 
 
4 hours later…
user47589
5:17 AM
we're watching IT Crowd
 
user47589
such a great show
 
6:42 AM
@Amy It's a bit hit-or-miss for me, but when it hits, it hits well.
 
7:10 AM
Regex Guru @KendallFrey
Regex for alphanumeric, underscore, spaces, comma without any speciifc order...
Me thanks you in advance
i think i might have found a solution :/
I am waiting for your solution as well
 
 
3 hours later…
9:48 AM
New XCOM is pretty good
As tense as the old one if not more so. Creepy baddies. More attachment to your soldiers
 
Yeah, heard good things about it. Pretty sure my computer can't run it.
 
And I've not been out of recruits this early in the game before; they've made injuries quite severe.
 
Newest game I've played was Mass Effect 3, from 2012. That one ran quite well, though.
(To be clear, the game is from 2012. I played it last month)
 
Much was made of the character creation; unfortunately most of them look pretty goofy.
random generation that is
I'm amused that they've dialed up the mod-ability of this game and some of the things you can change in the .ini file include 'beard frequency'
i.e. proportion of (presumably male) recruits who generate with beards
 
@TomW Hey, the small but vocal minority of beard fanciers finally had their voices heard!
 
9:56 AM
@AvnerShahar-Kashtan did you play Enemy Unknown?
The one from a few years ago, not the one from 1994
Oh, you've just told me what the most recent you've played is...but I don't remember when that was released
> [Julian Gollop] has cited the 1970s British television series UFO as one of the influences for the game's storyline, in particular an idea of an international counter-UFO organisation and the psionic powers of some alien races
I knew it!
 
10:19 AM
0
Q: Simple text boxes xamarin app

EminemI've just started learning Xamarin. I've create an app that has 4 text boxes. When the app starts, the first text box starts looping from min range to max range until the user presses a button. Than the first text box stops, the second one starts etc. My main issue is the threading part. I'm pr...

Avner!!! ma nishma?
 
10:58 AM
@Eminem I don't know how asynchronous methods are supposed to work in Xamarin, but that looks like a lot of code for something that should be straightforward, you're probably making life difficult for yourself.
Why do you need another thread anyway?
 
11:10 AM
Yeap XCOM 2 seems good
The only reason i haven't bought it yet is cuz of the turn based system.
 
@Rusty I'm getting attached to my soldiers already
 
But soon
Oh, its that good
 
Although the one who's died so far I don't remember the name of. He was a dick anyway, w/e
 
haha :D
 
@TomW I need another thread to keep the UI responsive.
And c# is fully supported in xamarin, so its like wpf on android
 
11:19 AM
@Rusty in the last one I liked the perk that was basically 'keep firing until you miss or the alien is dead'. I usually had an assault trooper with a shotgun who was good for bashing Chryssalids with that perk
Hope it's still there
 
Another turn of the hourglass. enters the room
 
Morning guys
 
Greetings to thee once again
 
12:13 PM
Today I cooked soup for lunch, when I went to see the result I saw black sesame seeds on the surface, but I didn't put any in!
guess what they were?
Bug eggs... *pukes*
 
mmm
At least they were dead bug eggs
 
I like your prespective, but do you know how to debug a soup?
 
Was it like a finished soup?
semi-finished product?
 
uh... well I can blend it and pretend it didn't happen
that's how you finish a semi-finished product right?
 
12:17 PM
:/
 
( I'm now deeply happy software developers don't become chefs )
 
I never buy that kind of stuff.. The quality is..
 
I cooked it myself,but I had left my jar of garlic powder out and now it's full of tiny black dots...
 
.Guys, a question.
 
takes note wear glasses before cooking
 
12:20 PM
If i want to secure my api keys or sensitive date, it should be stored in the web.config for a web project...
Is that enough? or there are more steps?
or some approach?
 
you can encrypt your web.config
 
ahan Sand king, thnx
and how to encrypt?
 
just let me know the abstract
 
just some command line action
 
12:22 PM
alrite thank you :)
 
anytime
 
saved me a lot of headache and worry
 
@SandKing A little late, but...I suggest you use a SOUP framework
 
what is the hack
debugging.............
Hi all first
also I'm checking database it is exist in data base
I have Expense and ExpenseDetail entities, I'm creating expense with details and saving the context, after saving my changes I'm checking the model make sure it is saved well, and it is saved but when I'm loading data to DataGrid some of properties are null
but the another strange thing is when I run app again the previous entered data is in datagrid
is any one faced before with this kind of issue?
 
12:54 PM
welcome to stack overflow
please provide a code sample so other developers can analyze it
( is this how you do this? )
 
1:04 PM
@SandKing thanks for saying welcome
 
^ what he said. Without a repro, very difficult to help
Sunday. A good time for sorting out the study, or as I've taken to calling it, 'the crap room'
 
@TomW But I'd rather...Rest Easy
realizes the java-hate tag
 
sunglasses YEAHHHHHH
 
 
1 hour later…
2:37 PM
when trying to safely remove my flash drive
weird
 
Serves you right for having a 980 Ti you painless prosperous capitalst
3
(Not jelly at all)
 
haha
anyone familiar with ember.js?
 
3:03 PM
Can I have Autofac create my Nancy modules for me so I can inject them as a per web request object to other objects?
 
3:19 PM
hi
how can i get user's source in extensibility visual studio package project?
i create a item menu and i want to compile user's code
 
user47589
yes @SandKing
 
@Amy is this done by default? and thx btw
 
user47589
no its not done by default. you have to set up nancy and autofac
 
don't throw your shoe at me but I have no idea what to add in the bootstrapper after installing the packages for this to happen
I mean nancy's code creates this, how can I register it to container, and how can you register an actual instance as a per request..because it can't be done
and the module is created per request itself confused Sand King is confused
 
3:35 PM
somebody help me!!
 
@javadaskari Ask the user?
 
@RobertHarvey how can i get user's source in extensibility visual studio package project?
i create a item menu and i want to compile user's code
 
Ask the user for the source. What?
 
Looks like you're a bit out of your league. Learn more about this extensibility visual studio package thing, write some more code, and the answer should eventually become obvious.
 
3:45 PM
aight, c-sharpers.
 
@RobertHarvey no, i'm not good in english.i create a test project in VSPackage but i dont know how can i get user's sources and compile it
@RobertHarvey for example this code get active document code:
DTE d = ServiceProvider.GlobalProvider.GetService(typeof(DTE)) as DTE;
@RobertHarvey Document actDoc = d.ActiveDocument;
 
Learn more.
 
@RobertHarvey but i'm want to get all code
 
Get better.
Answering your specific question isn't going to help you. You don't know enough about the extensibility visual studio package thing to understand the answer we give you.
And you haven't asked your question in a way that's understandable. Go learn some more.
 
@RobertHarvey But now I do not know how to ask questions myself clear?
 
3:55 PM
I named a class that checks if data submit by the request(like city names, etc) is valid and exist in the database "Kierkegaard"...get it? because Existentialism and guard? no?..okay...
 
@StevenLiekens dafuq
That doesn't sounds like a good idea at all
really weired
 
@javadaskari We can't teach you this one question at a time. You need to read a book, take a class, or continue reading articles on the Internet until you figure it out.
 
@RobertHarvey you right, but i want a small code
 
"You're right, but I'm going to ignore you and carry on asking anyway"
 
@TomW :-)
 
4:04 PM
So if we invest lots of our time in providing you with a working solution, what then? You're tasked to maintain something that you don't understand, and we've wasted our own time.
3
 
@RobertHarvey please guide me.
 
@javadaskari Please don't harass people. He said no, let it go. Go and research it yourself.
 
Anyone else start seeing SO code snippets in non-monospace fonts recently?
Inspecting the CSS, it seems the font family is set to "undefined", which is probably a bug somewhere, but I don't know if it's on SO or in some extension of mine.
 
4:21 PM
@AvnerShahar-Kashtan Link?
37
A: What's the font used in code blocks?

SLaksIt's the first font in the following list that is installed on your system: Consolas Monaco Lucida Console Liberation Mono DejaVu Sans Mono Bitstream Vera Sans Mono Courier New For more information, look at the CSS file in Firebug.

 
4:33 PM
hi
quick q
If I'm adding folders to a solution
is it better to use plural or singular naming
eg, View or Views
Report or Reports
ViewModel or ViewModels
?
 
plural is the convention, if it's a folder full of those
 
ok
 
forexample Views, Models folder in the mvc
but if it's generalizing stuff, it should be singular, like App_Start, App_Data folders
 
4:51 PM
@RobertHarvey Any. stackoverflow.com/questions/35255665/… for instance.
I have Consolas installed, of course.
 
5:06 PM
@AvnerShahar-Kashtan why not make an abstract EntityRepository<T> instead?
and make all your repos implement it
DbContext has a dbContext.Set<T> which helps you
 
Can anyone pls answer this question. stackoverflow.com/questions/35256366/…
 
5:31 PM
@SandKing That's not my question. Just a question where I have a font issue.
 
@AvnerShahar-Kashtan oh sorry my bad it was just that I was doing the exact same thing and the question was about it.
 
@TechGuy Your question seems underspecified. You've shown us a table in your database, but not a table having the car make in it.
 
( Should we use abstract classes for code duplication tho?, I don't know why but I remember a text book saying no, unless they're PO*Os )
 
@TechGuy Actually, your table design looks wrong. You've got multiple columns specifying the make, where there should only be one. The table you showed us looks like a crosstab or summary report table; it's unsuitable for what you're trying to do.
 
why does VS place my breakpoints on other rows than the row I click?
Debug build, deleted .vs folder, rebuilt, rebooted, gah
 
5:48 PM
Probably something to do with the underlying CIL. Some lines of C# don't correspond to actual opcodes, but rather are syntactic sugar that can't be breakpointed.
 
everything should be breakpointed in debug I think
closing brace comiples to a nop for that reason
and I can't put a breakpoint on any line
hmm, started working again now, can't rememeber touching anything related
 
Which version of VS?
 
2015
have had this a couple of times lately
In small slns
It did not start working, was just that it works as expected while debugging, not when setting bps before running
2015 Update 1 with R# 10.2 or what the latest is
 
Guys halp!
http://pastie.org/10712500#14
Copying an Apress book like a monkey I am "decoupling" my code for easier testing, etc, but now I'm resolving so many extra interfaces for a request. Now I know performance wise this is not a deal, but am I doing something wrong? it looks wrong! I'm panicking.
 
6:36 PM
@SandKing It's not uncommon to find you have several dependencies. Concentrating them all in the constructor simply makes it clearer what they are, rather than have them be scattered, invisibly, throughout your class.
 
@AvnerShahar-Kashtan I appreciate your responce
 
If there are a lot, it might indicate your class is doing too much. If you find yourself accessing a lot of query processors, maybe your class handles too many use cases? Too many entities and workflows?
 
As a "Web Developer" I should really know response's proper dictation...
 
I don't know exactly what all those QueryProcessors are (are they DAL/resource accessor classes?), but if your repository is accessing a half a dozen of them, maybe it's in charge of too much?
Or maybe not. I dunno.
 
@AvnerShahar-Kashtan but there should be an endpoint were all the dependencies finally meet right? I mean to do some stuff (like registering a student) you have to call 10+ methods
they're just NHibernate queries, I'm just using the repository a query collection
 
6:43 PM
@SandKing Maybe, but are they all the responsibility of the Student repository? Maybe the Student Repository (or perhaps take a step back, of the Student Service) is to call a method on 2-3 other services (Accounting Service? Library Service? Whatever), each of which encapsulates the relevant logic.
Or, you know, not. Maybe your Student object is the apex of the system's purpose, and it touches every other service in the system. I don't know your domain logic. In that case, yes, the Student service might have a dozen dependencies.
Both logical dependencies (other services) or technical dependencies (IUserProvider, ILogger).
It might look intimidating to have them all in the constructor's signature, but, again, it's the more explicit choice, rather than have them instantiated or resolved willy-nilly all around the class.
 
@AvnerShahar-Kashtan you got a strong point there, thx
 
 
2 hours later…
8:26 PM
Yo, sup. Need some little help:
is there any way to work with textbox.Text, while textbox is represented by variable?
rip english
 
user47589
what?
 
textSource is the name of textbox.

DialogInit(spath, textSource);

private void DialogInit(string path, object txtbox)
{
txtbox.Text = path;
}
this txtbox.Text ain't gonna work
I don't know how to do it in other way
 
user47589
8:54 PM
that looks like perfectly valid code to me.
 
user47589
what problem are you having?
 
user47589
change it from object txtbox to TextBox txtbox
 
user47589
you just need to type your arguments correctly
 
lol, indeed. Didn't know that I can use TextBox as type. thanks. problem solved
 
9:10 PM
What do you guys think of the future of .net? Nodejs and universal programming looks like the next thing
 
user47589
i remain unconvinced
 
Why is that?
Have you played with TypeScript?
 
user47589
yes, i use it daily.
 
So you havent moved to a nodejs webapi yet?
 
user47589
i have no interest in nodejs
 
9:16 PM
Why is that?
 
user47589
there is no reason. i'm just not interested.
 
user47589
played with it for an hour, looks neat, but dont really care for it
 
I think node.js has nothing on node.net(asp.net vChangeTheNameEveryDay)
 
What do you mean?
 
( I'm joking, new version of asp.net has changed names 2 times. it has some "similarities" to node.js, and I see no argument to move from it to node.js once released )
I still can't bring myself to like EF tho, but it's still better than every sql solution in node.js
 
user47589
9:21 PM
.net core looks pretty nice. i'm waiting for it to stabilize before i get too deep into it
 
@Amy yeah I feel like they really know what they're doing AND what they want this time
 
user47589
i'm happy they're making DI a central point to the architecture
 
user47589
yeah
 
user47589
they're learning from their mistakes
 
yeah some of my experiences with web-api were painful because of that
 
9:24 PM
I still don't see spa as a primary concept
 
user47589
SPA is nice for some things, but i dislike making SPA apps
 
Why is that?
 
Developers were so preoccupied with whether or not they could that they didn't stop to think if they should. - Sand King on SPA 2016
 
user47589
10:14 PM
hehe
 
10:28 PM
Midnight Question : If a table has unique constraint on for example the PhoneNumber column, is it better to check for duplication on the validation level or let it reach the Insert level and handle the insert exception?
Validation duplication check PROS :
1) Validation is done the second after binding the http data so if data is duplicate no further processing is done one it.
2) Error framework doesn't throw an exception but returns a list of errors.
Validation duplication check CONS :
1) Multiple Db trips
 
 
1 hour later…
11:43 PM
Small question:

private void castVote(String favoriete)
{
using (var connection = createConnection())
{
using (var cmd = new connection.CreateCommand())
{
cmd.CommandText = "UPDATE docent SET aantalStemmen = aantalStemmen + 1 where docentid = @id";
cmd.Parameters.AddWithValue("@id", cmbFavoriete.Text);
// command must be actually executed, otherwise nothing happens
cmd.ExecuteNonQuery();
}
}
}
I get a error saying the type or namespace name connection could not be found?

How can I fix this?
That above is my code.
 

« first day (1940 days earlier)      last day (2999 days later) »