« first day (1844 days earlier)      last day (3105 days later) » 

12:00 AM
posted on November 02, 2015 by Scott Hanselman

Last year in August I went and bought a Surface Pro 3 with my own money (it's not machine that work paid for) and I've been very happy with it. Now the Surface Pro 4 came out, and well, it's silly to upgrade for me when it's been just a year. But. That Keyboard. The Surface Pro 4 has an all new Keyboard and Touch Pad. The Surface Pro 3 keyboard is good, to be clear, but the touchpad sucks.

 
 
7 hours later…
7:23 AM
Good morning
 
7:38 AM
good morning
i am new to c#. I have dragdrop tablelayoutpanel in windows form. Now i am confused how to access its instance'
name is tableLayoutPanel1
i want to access this and then i have to add rows in it
 
7:58 AM
WINDOWS FOOOOOORMS
@MuneemHabib if you're new to C# I strongly advise using WPF over WinForms
also good morning all
 
@Squiggle `morning.
 
Hellow.
 
8:34 AM
Was playing with VS Code and Nancy last night. It's really quite nice.
 
It feels a little sad you were playing with a girl while programming. Give her your full attention you silly man.
:-D
 
8:55 AM
I got a problem
I deployed on a friday
 
Bad move.
 
all the regrets
my problem is that a stored procedure is now suddenly taking a very long time to come back with results
but when I copy the body to a new query window and execute, the query still runs fast
any clue?
did sql server decide to change the query plan or something?
 
9:24 AM
Are the app and db running on different machines?
 
could it be some issue over the wire? I've seen that sort of thing once or twice.
alternatively, it's conflicting with another concurrent SQL statement
 
no it was definitely sql server that used a terrible execution plan
I recreated the stored procedure with the exact same code as before
now it's fast again
 
hah
until it isn't...
 
9:31 AM
I hate stored procs
public class SampleModule : Nancy.NancyModule
{
    public SampleModule()
    {
        Get["/"] = _ => "Hello World!";
    }
}
 
is there a filter in solution explorer to show only files that are not included in the project?
 
I like this, though.
not that I know of, @StevenLiekens
are these files also missing from source control? I'd use Source Control Explorer to find them...
 
@StevenLiekens Solution Explorer isn't really good at managing, umm, non-solution files. The whole "Show All Files" option exists mainly to add files in. Usually after a disastrous CSPROJ merge leaves files out in the cold. :)
 
10:00 AM
Or that someone has forgot to check in the csproj file
 
Ah, yes. I've done that way too many times. :(
 
well, I have a bunch of images that were copied in via file explorer but never added to the project file
adding them one by one is tedious work
 
And the opposite problem - where you check in a csproj without the new added files. Happened a lot with a project a while back using Perforce, which had no VS plug-in (because it was an ancient version of P4), and the "Pending Changes" view in the P4 client only showed modified files. You had to manually add all new files.
@StevenLiekens All in the same folder? You can Include them in the project en masse.
 
not all in the same folder
 
8
Q: Visual Studio macro: Find files that aren't included in the project?

Herb CaudillI'd like to write a macro to crawl through the files in my project directory and find files that aren't included in the project. In playing around with the DTE object, I see that the Project object has ProjectItems; if a ProjectItem represents a directory, then it has its own ProjectItems colle...

 
10:05 AM
I really hate SourceTree. Is TFS an alternative so can I push to my git branch?
 
@KalaJ TFS is a server, not a multi-CVS client.
Visual Studio 2013 can push to git, though it's overkill to use it just for source control.
 
Right now I really dislike clients.
 
what do you guys use then? Command line?
I'm having so many issues with sourcetree which is what my team uses :(
 
TFS is OK~ish. Git is best. Anything else should be shot.
 
@RoelvanUden Lol wat
 
10:14 AM
sourcetree is a gui client for Git
 
Sourcetree is fine y u h8in
ey roel
ey
EY?
 
I just staged some files and now I can't commit them... what?
I'm confused
lol
 
time to use console
Open console for your repo: > git status
 
I use GitHub client for Windows when I want a Git GUI.
Or y'know, VS.
 
will tell you errthang you need to know.
Github client for windows is useless lol
 
10:17 AM
I used git status in git bash
and it says I added four new files
and I have some changes not staged for commit
In sourcetree, it says nothing to commit fml
yay, ended up doing "git add .", git commit and git push through commandline and no issues
So tempted to curse out sourcetree forever
 
10:33 AM
You probably did something wrong Kala :P
And by wrong I mean "Not accepted as the git way"
 
@Sippy Almost worthy of a "ITS OVER 9000!!"
 
Lol
The ticket name is unjustifiably useless.
> Odd info on printed tickets from the Book Online system
WHAT THE FUCK DOES THAT MEAN
 
"Could not reproduce" closed.
 
rip
 
timeouts are back :(
 
10:36 AM
@Sippy "Info is not odd, is just eccentric".
 
By the end of the week, I will be begging to go back to mercurial... sooo much easier...
 
@Sippy way ahead of you
 
What are you guys using for bug tracking?
 
jira
also sometimes yelling
 
lol
My company just switched over to Polarion
 
10:56 AM
"Affordable, fully-integrated Web 2.0 solutions for Application Lifecycle Management (ALM), Requirements Management, Qualita Assurance and Testing"
...Qualita?
 
Anyone used an SCP library in C#? Hopefully something with as few dependencies as possible.
 
@KalaJ we're using TFS. It's OK, if you get a pro to configure it properly. Never try to maintain it yourself...
@AvnerShahar-Kashtan what's wrong with rolling your own FTP client?
 
raspberry.jpg
 
Or maybe I can get away with SFTP.
 
11:04 AM
 
Hurray for 3rd party integrations where their API is "put an XML file on a folder in our linux server".
 
@AvnerShahar-Kashtan Welcome to 2002!
 
@Squiggle I saw that yesterday lol
Weird.
"History's worst movie dancing"
 
hey! That's how I dance...
 
11:25 AM
it's kinda hypnotic...
 
11:41 AM
Is anyone expert with solution wide config files?
or app config files
 
@Squiggle Stop staring at Jean Claude Van Damme
 
@FlyerDragon I think that's a bit of a specific issue for someone to be an expert in.
And, as always in the room, just ask, don't ask about asking. :)
Worst case, no-one answers.
@Sippy You mean Jean Claude Van DANCE.
2
 
gmorning
 
I'd like to see Jean Claude Can Can
 
@AvnerShahar-Kashtan lol what third party
 
11:54 AM
the after-after-party
 
turd-party
 
scat-films-party
!!youtube i love you more than
 
rlemonparty
 
*sigh*
 
11:57 AM
:)
 
uhm
also, you guys should watch Archer
 
i watched a few episodes
pretty funny
 
If you watch all 5 seasons, the last 5 minutes are totally worth it
 
aye I've seen a few, but rarely have the time to sit down and stare at the gogglebox
 
Guys , i can't publish website in release mode
Error 5 Unable to remove directory "obj\Release\AspnetCompileMerge\Source". Access to the path 'obj\Release\AspnetCompileMerge\Source\approval' is denied.
 
12:09 PM
reboot your machine
or stop IIS Express, or fix your project dependencies.
 
@SteveG HP's ArcSight ESM. A big multi-million dollar enterprise app.
 
@Bassem something is locking the output directory. It's always a pain to figure out what it is, precisely. Try a reboot, and if that doesn't solve it, the issue lies with your build process.
 
@squiggle, i delete the bin folder , then problem solved .
i have another problem :D
why the rpt files don't copied with the published version ?
 
12:26 PM
build action is content?
 
12:41 PM
:)
 
If I want to merge with someone else's branch on git, should I do a git pull first then git merge?
 
fetch, then merge
pull is basically fetch + merge in one operation
 
git checkout theirbranch
git pull --rebase
ghit checkout yourbranch
git rebase origin/theirbranch
 
@SteveG unless you don't want to rebase
 
psh
merges are for PR's in my book ;)
 
12:49 PM
How do you know he's not?
 
because he can't merge a PR if he doesn't have their changes in his branch
 
also, you don't want to be rebasing dev branches onto trunk if you want to keep any kind of history
 
thats why PR's merge by default, because you merge into trunk branches
 
@SteveG uh, yes he can
 
no, he can't, it literally, will not let him
 
12:50 PM
that's what a merge does. puts their changes in your branch
 
lol okay
 
Here's the contex: I have multiple boards that are driven by an FPGA, and I control it via software. The different boards have similar functionalities but differer in some parameters, so I'm developing generic projects for each function and I include them in a solution (one for each board). The solutions differ in the GUI project, that reference the functional projects, instatiate the functional classes and configure them with some methods depending on the board.
Here's the problem: I'd like to define some parameters (ie the pins of the FPGA I send some data to) that are board specific. The
I can't define the parameters in the "main" GUI project because I would need to reference it in the functional projects, making it not board independent and creating a circular dependance.
 
tldr;
 
I need a way to configure solution wide parameters in a way that they are bound to the solution and not to the functional projects.
 
1:01 PM
hi, i have a question about DNX Core / Portable Class Libraries / etc in .NET
 
@KendallFrey i guess what i'm saying is, when you're working with multiple people it's quite common to have conflicts, in which case githubs PR won't allow you to merge, you have to fix the conflicts locally, preferably (my preference) with a rebase, in which case github will allow you to merge into the trunk branch via the pull request
 
does anyone know anything about that?
 
Fuck
Two roels?
 
In this way I can keep the functional projects board independent and add functions to all boards without making "ad hoc" changes
 
@SteveG I prefer to merge PRs locally anyway
 
1:02 PM
thats not a PR then, PR is a GH thing
 
two roels it is apparently
 
you're just merging
 
@FlyerDragon I'm not sure I understood your situation completely, but it seems you're looking for a compile-time solution to a configuration issue.
 
@SteveG You can still merge them locally
 
yep, never said you couldn't
 
1:04 PM
and GH recognizes that
 
but then you have to push up master
or, your trunk branch
i prefer not to touch the trunk
when i can just click a button, have GH do it, with good clean history / comments for the PR, discussions about why certain things were done a certain way
etc
 
@AvnerShahar-Kashtan Definitely compile time, not runtime, these parameters don't change. I fail to see the best way to implement this while keeping the functional projects really independent on the board/solution (ie. including a specific reference to a project with some static configuration classes would nullify the purpose of keeping them board independent)
 
@Sippy I got my thing working yesterday but now it's not.
 
I know a C# room but you dudes often have DB experience too. Our program currently reads data over the wire, and dumps all to file (the raw binary). Another process (at a later date) converts this data into CSV files.
My question is, can I assume this can't be improved by storing the data as a blob type in SQL Server
 
you could have it not convert the data into a csv and just insert it into a db, why the middle step?
 
1:13 PM
@kolton That uh .. welcome to programming
 
Simply because there wont' be much difference in speed between reading the binary file from disc compared to reading it from a DB
 
It morphed over night. I didn't even change the code lmao
 
Lol
 
@MyDaftQuestions but that middle step adds complexity, if theres no difference, why add the complexity?
 
@Sippy codeshare.io/aahcZ It's saying "Additional information: Input string was not in a correct format."
 
1:14 PM
in other words, somebody did it that way, added that middle step, to solve a problem, what was that problem? or was it just bad design?
 
@kolton That codeshare is empty
 
Refresh
K nevermind. i had a brain fart.
 
Lol
Was gonna say I don't even see anything that can throw that
 
I didn't check the file that had the strings in it
 
Assumed your file had stuff in it :P
 
1:18 PM
Yesterday I was making it so you can add strings but obviously it deleted everything in it
 
ASP.NET MVC I have a problem with model binding. Someone knows how to do bind a collection of object inside the view model? My question: stackoverflow.com/questions/33498432/…
 
Yeah it did
 
lol
 
@Sippy People say my formatting is bad, what do you think?
 
@kolton Formatting?
 
1:23 PM
Yeah
 
What do you mean?
 
its bad if you want to keep the stuff on your drive, its awesome if you're removing porn and dont want to be caught
 
wat
 
Lol
 
@Si
damn
 
1:24 PM
The way I wrote it. People say it should look neater and different.
 
lol at the Git stuff... this is why mercurial is soo much easier xD
 
formatting code
 
@kolton Like what?
Your variable names suck
 
Lol
 
1:24 PM
And your data should be JSON
But the code itself isn't that untidy?
Don't define classes inside other classes unless there's a need to, as well
 
Ok
Sippy, how would I add textbox values into the next available line in a text file?
 
If you used key:value JSON data it would remove a lot of your string.split issues.
And you could parse your JSON directly into objects which is always nice.
@kolton I've no idea lol
Grab the values, format into a single string, append to end of file I guess
 
Ok
 
@MyDaftQuestions ooops, i misspoke, the middle step isn't converting it to a csv, i mean, the middle step of just dumping it to a raw file, what you could do instead is put it on a queue, have another process pick it up, and convert it to a csv, but this is assuming that raw->csv conversion takes a bit, and you won't want to slow down your main program with doing that work, if you're not concerned about it, just convert the stuff you get from the wire directly into a csv, and skip that middle step
of storing it as a raw file
or sending it to a queue
bam
 
1:43 PM
We're working on implementing blobs in our SQL database. Any wisdom you have to share is appreciated.
 
If EF, store them in a separate table; not on an entity you frequently query, and always lazy-load them.
 
Yep, we're doing that
 
@Sippy I am trying to add a string to the next line of a text file.

I have tried to appendalltext of the text file, then add the string, then go to the next line, but when I do that, it doesn't work because it adds the string next to the previous string.
 
Not EF though
Still don't know why we used Telerik's ORM
Makes it impossible to get help here
 
but you learn something new, so thats a plus
 
1:46 PM
I could have learned EF instead
 
don't you already know EF?
you do
lol
 
is EF worth learning? or is there something better?
 
:/
 
he knows...
 
1:46 PM
codeshare.io/wAphv Whoever can help my dilemma.
 
would take 15mins to know it better then me ;-\
 
@Dess if you're primarily on the MS stack, you should learn EF
 
We're almost a Telerik stack at this point :/
 
I tried learning it like 2-3 times, but gave up, problems on every step
 
vicious threeway between us, Telerik, and MS
 
1:49 PM
@kolton trying to read a file to put its content into a datagrid?
 
@Dess Eh? It's super easy though. What were the problems?
 
Is it bad that I'm listening to Islamic war songs and enjoying it immensely?
 
No, adding a string to the next line of a text file.
I've got the loading into datagridview down packed.
 
@kolton The original file probably doesn't have a NewLine at the end.
Your AppendAllText adds a newline at the end, not at the beginning.
 
It does
Has a new line
 
1:50 PM
ok so the next funciton
 
@RoelvanUden it's been few months, I remember having problem with Identity, couldn't add new properties? I don't remember specifics
 
@AvnerShahar-Kashtan ewww, Windows infidels
 
you want to read the file ino a stringbuilder then add the line to the string builder and write that back out to the file @kolton
 
I fixed it
Thanks for the help though
 
ya that is what you had
hehe there was a method for it on File
 
1:54 PM
so now I have merge conflicts in git. Is there a way I can do a diff using git bash?
 
if you open up the file that has conflicts, you'll see the two sections of code, that are in conflict
<<<<<<<: Indicates the start of the lines that had a merge conflict. The first set of lines are the lines from the file that you were trying to merge the changes into.
=======: Indicates the break point used for comparison. Breaks up changes that user has committed (above) to changes coming from merge (below) to visually see the differences.
>>>>>>>: Indicates the end of the lines that had a merge conflict.
 
@KalaJ git diff?
 
How do I open it in git bash?
*open a file
I tried git diff and I see part of a file
 
i'm sure it's possible, but i normally just go to the file on disk
 
I'm going to need to learn how to scroll through the bash
lol
How do I accept or reject changes or merge in changes in git bash?
Btw, if I just open the file on disk, I won't see the conflict right or will I?
 
1:58 PM
you will
 
can I open it up in visual studio and resolve the conflict that way?
 
the number of planets are
<<<<<<< HEAD
nine
=======
eight
>>>>>>> branch-a
yep, you can open it up however you want
 
In visual studio, it says, "The project requires user input. Reload the project for more info."
 
so, you see, theres a conflict, one person put nine on that line, somebody else put eight, how does git know which one to use? You delete one
 
Hey guys, what IOC container do you use in your apps ?
 
2:00 PM
@KalaJ you must have a conflict in your CSProj, which means VS can't open it, you'll have to use a text editor
 
what if you want there be nine and eight?
 
I think jihad music is my new pre-hockey music...
 
you'd replace it with
 
@SteveHémond I have a little exp with Unity, but not much
 
the number of planets are
nine
or
the number of planets are
nine
eight
 
2:01 PM
@SteveG OUT.
 
@KendallFrey why?
 
learn to count
 
lol
 
Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune. 8
 
whatever, there are dwarf planets, and pluto is still a planet in my book
5
 
(in all honesty, i didn't even read the text that i pasted, so i didn't even realize it was talking about the number of planets)
 
@SteveG OUUUUUT
 
@SteveHémond ninject, castle windsor,
unity
all at the same time ;)
 
lol
 
2:04 PM
I'm done
 
@SteveHémond I prefer Unity. It does what it needs to do, easier to configure. Ninject has a steeper learning curve
 
my only criticism of unity was setting up a per web request life cycle wasn't as easy as it could have been
 
@CharlieBrown Good to know. I just need to register a couple of classes in my program.cs and inject them in constructors ... don't need anything more complex than that
 
Ninject is amazing, but with great power comes reading a butt-ton of documentation
 
@CharlieBrown It's mostly for my services to be injected in some UI forms (yeah i'm using winforms)
 
2:18 PM
Anyone who wants to help: How do I edit and save values in datagridview?
 
@kolton Stop asking questions that are tied into the UI. The UI doesn't matter for persisting values. What matters is the backing data store and the way data flows in and out. You'll never get good answers if you keep asking questions with this huge scope of questioning.
 
@kolton Use a model
Don't directly modify datagridview values
It's not designed for that.
 
Ok
 
edc
maybe you can look into how to do two-way databinding in datagridview?
 
you know what I love about Skype? That they havent updated their software in years, its still buggy as heck and yet they are rolling in cash. Smart.
 
2:31 PM
@ton.yeung Is Structuremap worth adopting? I'm hoping to move away from Unity...
 
If you need the features that structuremap has that unity does not, then yes
 
Current mood: If i find the person who wrote this app i am currently working, .. I will ..
i dont know if i should i cut his head off or hands.
 
If you only need DI with simple param injection... unity
AoP...structuremap
@ton.yeung dang, beat me to it
 
@ton.yeung I like the fluent configuration. Not a fan of the attribute-based approach of Ninject. I might look into it :)
 
VS's project properties page is so broken
 
2:37 PM
noo I thought I resolved all my issues but I don't remember how this should look like
The project file could not be loaded. The 'None' start tag on line 1227 position 6 does not match the end tag of 'ItemGroup'. Line 1258, position 5.
Should something like this in an ItemGroup?
 <None Include="web.Release.config">
      <DependentUpon>Web.config</DependentUpon>
    </None>
 
@CharlieBrown There's one bug in the current skype which makes me wanna punch stuff. When the shitty flash advertisement at the side of the screen changes, it automatically sets itself as the main focus, so if you were typing, you have to click in the fucking chatbox again.
 
ouch, i dont use the web one but that would drive me nuts
I use the desktop app for conference calls, but it still doesnt support the "," character for auto-dialing. Something my home phone did in 1995.
Replace your product with “condom”. If the text still makes sense, then the text tells us nothing! @robert_mathers https://t.co/BzArTPMsVc
 
Condom is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript. You can also create Condom APIs, mobile sites, use real-time technologies like Condom Sockets and more! -- nice
 

« first day (1844 days earlier)      last day (3105 days later) »