« first day (1382 days earlier)      last day (3559 days later) » 

12:24 AM
That's what you think until you feel it
 
I love the heat every time.
Cold sucks. Unless it's California "cold". I can handle 20F~ for a weekend.
 
12:51 AM
Heat is nice
 
I work with php mysql. I have a question. What database used in C# project? Suppose someone create e application with a school student result and roll not. then where it will stored? does the C# has another database or it use mysql.
 
1:09 AM
Guys. TerraTech.
 
1:36 AM
alive people ?
 
2:26 AM
0
Q: Conditional binding in a template using dependency properties

B.K.I have a button that has four dependency properties, each representing a state the button is in. Each state's source is an image. What I would like to achieve is an ability for any state other than NormalState to bind to NormalState's value if it's own value was not provided. I tried doing it ...

 
@oyshee - You can use MySQL with .Net but it's more common to use a MSSQL db with .Net.
 
2:47 AM
Hello people :)
 
3:03 AM
Anyone alive here? hahha
 
3:29 AM
@Shell Hello
 
hello @avitex
 
How are you?
 
Im just fine how about u?
 
Fine thank you. Happily tapping on a keyboard and smacking commit buttons xD
I'm looking for someone to give me a bit a of constructive criticism/suggestions.
 
:D dont break u keyboard
if u have a query related php or javascript then i can't help u Im a Windows Application Developer..
BTW, u can hit ur query
 
3:35 AM
I will try not to. But it is very difficult sometimes.
Hahaha, nah it's actually C# for a change.
 
Ok, i'll try
 
Not sure if some of my practices could be improved.
^This structure feels dirty, and I am not sure if it could be compacted.
 
let me see
 
Much appreciated.
 
3:58 AM
posted on July 29, 2014 by ericlippert

Today another episode in my seldom-updated series about building a home aluminum foundry. The technique I use for casting aluminum is called “green sand” casting not because the sand is green (though the sand I use is in fact slightly … Continue reading →

 
 
4 hours later…
8:02 AM
Wake up, Wake up already haha
 
 
3 hours later…
10:32 AM
I need help with saving and retrieving PDF files on the server in C#
 
@DaImTo Thank you so much, why did I not think of that? Google things, such a simple idea.
 
:)
 
Ofcourse I searched for it man, I didn't find anything useful though
 
10:47 AM
if you want to get help then provide some more information, it looks like you need msdn.microsoft.com/en-us/library/ez801hhe(v=vs.110).aspx and msdn.microsoft.com/en-us/library/36s52zhs(v=vs.110).aspx
preferably the async variants
 
I am fetching the pdf file from the database as a byte[], which works, but I cannot directly embed this when using IE due to the 32k limit thing
so I need to save this to the server once it has been retrieved, and the reference the file, instead of the byte[]
 
@HowlinWulf you are converting a byte[] to a base64 string?
 
@Rovak I did yes, and it worked from Chrome and Firefox, but not for IE
so I need to go nother route, sadly
 
create a new MVC/WebApi controller + route in which you pass an Id which refers to the database row, then read the byte[] from the column and pass it to the ResponseStream. Now embed an image with the url that points to your controller.
 
11:11 AM
@Rovak Will it then read it as though it was a stored file?
 
^ Yes. Set the correct mime in that response stream and browsers will use their native actions. Download or display, whatever it is capable of.
 
11:30 AM
Is there a way to set read/write permissions of a folder on the server?
by using code
 
Pretty sure there is a way, after all, explorer calls some API too :P
 
any of you guys tried to make a VS extension before?
 
user1804599
11:51 AM
boo
 
I think for that u must have a administrator login in Server PC. I don't think it is possible to assign folder permission from client pc even u have administrator rights. @HowlinWulf
 
12:03 PM
@HowlinWulf there is an example
 
12:18 PM
0
Q: drag drop not working.. want to trigger the DragOver command when you drag and drop some object from the view in it

Harjeet SinghDrag Drop not working...hello firends i am trying to implment drag and drop in mvvm..but the strange thing is happening with me,,,when i try to drag the item event doesnt' fires..but when i drag the items from outside it start working..i want the first case make it working whille dragging...is th...

 
12:43 PM
Hi all, what is the preferred way to save the search criteria when a user modifies it using the search form and navigates between different pages of the results?
 
@Yoda On the web it makes sense to keep it in the url
 
@RoelvanUden I first thought of using cookies to do this as I'm using it to save json token and some user's info.
 
That's just silly. When I see a search result page, I want to be able to copy the URL to a friend and have it work and display the exact same thing.
 
that is not a use case for my app as this is an internal application and this is not the requirement.
 
Hey guys
I think I need to get .net certified. (like years ago..) any advice for a newb?
I dont want to pay thousands of dollars in courses..
 
1:05 PM
@JoJo Do you know for a fact that companies near you look for .net certifications when hiring?
I know companies around here don't, so I never bothered (except for one MCP exam I did years ago, because my workplace paid for it)
 
not 100% but I do see it on occassion on job descriptions. I am in the Northeast US so there is tons of work. but getting (older AND no BS).. I think it might be important to get and really go after it..

What do you think?
 
I'd try finding some hiring managers or company HR reps and ask them, maybe in The Workplace SE site, maybe they have some insight as to whether they're considered relevant.
 
okay ty for the link
 
1:21 PM
C# is like wiping your arse with silk. Never heard it put that way before...
 
1:32 PM
Dudes and dudetes ... any clue why on Windows 8.1 VS2013 the VB PowerPacks are missing ?
 
Because nobody uses VB anyway.
 
Right!
Microsoft lies again ...
"The Microsoft.VisualBasic.PowerPacks namespace contains classes for the Visual Basic Power Packs controls. Visual Basic Power Packs controls are additional Windows Forms controls. They were originally released as free add-ins and are now included in Visual Studio."
They are not included
 
What version is that documentation from?
And why would you care about something pertaining to VB and WinForms?
 
Because my developers decided to use the DataRepeater .. ugh
even thou we code with C# they are stuck in VB mindset-wise
the documentation is from msdn.microsoft.com/en-us/library/…
 
0
Q: Show error message in build event

DaImToI am working on a Visual Studio extension that detects when the build fails. It is working correctly and detecting build failure but I would like to be able to grab the error message from the build. How do I get the Error message back from? dte.Events.BuildEvents Full code private void...

 
2:13 PM
Morning everyone.
 
2:25 PM
o/
 
2:51 PM
DATES. AARGH.
 
@Squiggle TIMEZONES! DOUBLE AARGH!
 
Precisely.
I have this functionality whereby somebody creates a WorkItem and sets a DueDate on it. This DueDate is a C# DateTime, submitted from the web client as UTC.
Saved to the database as UTC
I'm in Europe, so someone requests a WorkItem due Tomorrow, it's stored as UTC Today 23:00 +1:00 (UTC)
a notification is sent, and that says "DUE TODAY".
because DueDate.Date != DueDate
 
Do you need teh Time component of the DateTime?
Or is the DueDate just a date?
 
Ideally it would just be a date.
... I think
we do have offices in three timezones though
 
2:59 PM
Really Fun.
 
The problem here isn't even the technical aspects of the DateTime struct - it's deciding, logically, what the behavior should be.
 
@Squiggle What kind of notification?
 
"You have a WorkItem to action"
"Due 3rd September 2014"
 
Are these sent by some batch process on the server, or generated for a user when he logs in?
 
when it's actually due 00:00 on the 4th September
batch process. It doesn't know the recipient's timezone.
nevertheless, the date sent in the notification doesn't match the date originally selected
 
3:03 PM
Isn't it saved as DateTime.Now.Date.AddDays(1)?
 
It looks like it's down to the UI, because the date picker returns a UTC date with timezone offset
It would be nice if C# had a Date class.
not just DateTime.Date
 
Which is actually DateTime.Today.AddDays(1), silly me.
 
/me head->desk
aha! The client isn't sending the timezone offset!
 
Guys, this code I am working with keeps referencing an E drive.. which I DO NOT have locally.. is this a simple issue to solve?
 
that's what's going wrong.
 
3:07 PM
Can I create an E drive?
or a virtual E drive I mean?
 
Yes, just map a folder to a drive.
 
my IT boss just recommended a flash drive
ok..
I will look for how to map a folder to a drive. TY Roel
oh okay.. Visual Subst.. ty Avner
 
@JoJo You can open a command prompt, and do subst e: c:\temp
 
@AvnerShahar-Kashtan wonderful.. I will create a folder for it
subst e: c:\eDrive .. not sure it did anything.. I have Admin
 
3:13 PM
Open Windows Explorer now - do you have an E: drive?
The label, by default, will be the same as your C: drive, but it will redirect to the folder.
 
okay yes I do. ty
 
user1804599
3:32 PM
@RoelvanUden folder.Select(toDrive)
 
user1804599
@Squiggle use Noda Time.
 
3:42 PM
@rightfold Kinda tempted...
 
user1804599
There are no downsides.
 
user1804599
Except perhaps moronic PHBs who go crazy when someone wants to add a new dependency.
 
But I'm thinking that an absolute DateTime timestamp is the right way of doing it, because right now we're sort of saying that "Deadline is midnight on September 5th"
heh
it's just deserializing or printing the date that seems to be the issue
because we don't store the submitter's timezone
so we don't know the date that was initially selected, but we DO know the UTC timestamp of that date.
which sounds dumb, but that's the way it is.
 
@Squiggle I've got a question for you.
 
hit me
 
user1804599
3:52 PM
*spank*
 
@Squiggle When you implement a <asp:Button> when it does the server side postback, how can you make it remove all the query strings that have been created? If you use <asp:HyperLink> you don't have the submit so you can just force the NavigateUrl to the .aspx.
 
a button will postback to whatever URL it is currently at - which includes the querystrings.
are you trying to navigate with a button?
 
@Squiggle How can I resolve that then?
No, I have a bunch of logic that is hitting the server but when it is done, I was hoping to navigate it.
@Squiggle If it were just navigation I'd use a HyperLink.
 
I have a task calling for an async IValueConverter. I'm not missing anything stupid if I tell them it's not possible, am I?
 
There's two ways to "navigate" after a postback
 
3:57 PM
@Squiggle Enlighten me.
 
either Server.Redirect or a Server.Transfer.
Server.Redirect tells the client to go to another page
Server.Transfer is an internal call that passes the responsibility of hanlding the rest of the request to another internal aspx.cs. Don't use it.
hehe
it sounds like you want to use Server.Redirect in the code behind after you've handled whatever it is you need to do on postback.
 
Then redirect it to the same .aspx?
Just with no query string?
 
Precisely :)
 
I tried that at one point, and it didn't redirect. Any thoughts?
@ton.yeung If you need me you can text or call.
 
site.com/page?id=5 is not equivalent to site.com/page
@Greg Not sure why it didn't redirect there. Do you know how to use Developer Tools and view the network traffic? You should see a HTTP 302 at some point when it redirects.
 
4:10 PM
@Squiggle I know they aren't the same, but for some odd reason it wasn't.
 
I'm a bit rusty on the finer points of ASP.Net these days
but there's a wealth of resources on it out there
 
Yeah, I mostly do Model View Controller / Backend. But this new job utilizes ASP.NET (Web-Form) but mostly ASP.NET.
 
Anyone here familiar with wsdl.exe /svcutil.exe?
 
@RyanTernier For WCF Services to automatically build endpoint?
 
yes
I'm trying to figure out a way if you can tell wsdl/svcutil to generate stubs that accept XML versus a POCO
 
4:24 PM
I'm somewhat familiar, it has been awhile.
@RyanTernier So rather then accept a POCO for the data contract, you want XML?
 
Yes
Because we can accept different versions of XML, it is not efficient to accept multiple types of objects where we have to build a translator for each.
 
So, your attempting to bypass the serialization and deserialization process that occurs on the POCO into XML?
 
Accept any type of XML, run XSLT against it to turn it into a single object my application understands.
Yes, Why have it deserialize into a POCO which means I need to serialize it again. I dont' want that
 
I've never done that before, but I remember this article that might help: msdn.microsoft.com/en-us/library/aa347876(v=vs.110).aspx
If I remember correctly WCF should support direct XML of particular types.
 
4:29 PM
@RyanTernier Is that what your looking for?
 
It gives information, but I can't modify the WSDL :(
@ton.yeung Yea, it was shot down
@ton.yeung THey're pushing for oracle AQ now rather than MSMQ. THey think it's safer running an Oracle Queue because we use an oracle database :\
nope
Windows server 2003, upgrading to serve 2012 next year
The requirement we have is before something touches the queue, it must be persisted to the database. Oracle AQ is just a wrapper around a database table. So they think it's easy then
However, with MSMQ you can do the same. Once it's in the Database, it's now faster to interact with the queue as well.
 
hi
 
@ton.yeung It's now a religious battle... love those. .NET vs java, .NET vs Oracle...
 
can I ask why there's no gridName.ItemsSource in my WPF application?
it just says ItemsSource does not exist there
 
0
Q: Sending Grid name and class name from XAML button press in WPF

DaveI have a WPF program that produces several DataGrids. I have added capability to export each grid to Excel using the ideas at this site: http://www.codeproject.com/Articles/120480/Export-to-Excel-Functionality-in-WPF-DataGrid Currently I just have a button under each grid that has its own handl...

that help?
 
4:39 PM
yea, probably, thanks
I used Grid instead of DataGrid from toolbox :P
 
Try to build and push them yourself.
 
@ton.yeung It needs to be in a database. If all 3 servers lost connectivity to the internet or something happened the connections would be moved to Calgary which would then look at the database to see the queue. Infrastructure wise, database persistence is required.
 
Fev
hello
 
hi
 
Fev
how are everybody doing ?
 
4:51 PM
I need a C# / .Net perspective on this , anybodies opinion , I am already pretty much expert level jQuery and javascript. What should I learn first - Angular, Backbone , or Knockout ?
 
@ScottSelby Depends on your usage.
 
from a independent consultant point of view , which to you think companies with a .Net backend are more likely to use
I mean in terms of handeling data, add helping to render views for SPA
it seems like backbone is the most popular in the Microsoft world , as far as their own sample apps , tutorials, ect. but I think angular can do most of the same stuff and is a little more popular
 
o/ ..all are well tonight
 
Well, that will vary company to company. Read this: blog.nebithi.com/knockoutjs-vs-angularjs
A comparison between them, it will vary based on company.
 
can you get a dbCOntext through a connection object?
 
4:54 PM
greg - thanks
 
so if I have SQL Connection object, can I get a DbCOntext for linq?
 
@Greg - you use DotNetNuke a lot?
 
@ton.yeung There is. I'm pushing for MSMQ, because it makes the most sense.
 
@RyanTernier Who is that direct to, me or @ton.yeung
 
@Greg ANyone
 
4:56 PM
I met with the guys that created that , I was going to do somecontract work for them , then I went to jail for a week , and that ruined that....
 
@ScottSelby Yeah, I wrote an automation system to automatically take a template and launch web-sites.
 
They're from Chicago
 
@ton.yeung Not yet :)
 
@ScottSelby I don't use it so much anymore, but yeah I wrote some modules and a framework to support it.
 
I forgot they names ,but they were kind of pissed I met them for lunch and agreed on a project ,then just disappeared - as I was in jail
 
4:57 PM
@RyanTernier What type of connection object?
 
They were making a MVC version
Anybody try out Katana yet??
 
@ScottSelby I'm building a Model View Controller Content Management System.
@ScottSelby A little, haven't got to use it as much as I'd like.
 
SQLConnection / ORacle COnnection
 
Katana Looks so fucking awesome , if you can learn it really well real fast , the ability to take out all the bullshit that .Net does extra, just get rid of System.Web and handle the HTTP requests all on your own is awesome
 
@RyanTernier As long as you have access to System.Data.Entity you should be able to do DbContext.
 
5:00 PM
@ton.yeung - when did you hear that?
because the differences did go away , then they created Katana and OWIN, and now the differences are even more extreme
but if you could run MVC on Katana , that would be fucking awesome , and I know you can , but that is a lot for a nonJon-Skeet person to handle
Jon Skeet does a pluralsight video on IOC , and in the 5 minute break he writes his own IOC container , and the guy assisting him just takes over and is laughing his ass off saying that Jon Skeet just literally during the break wrote his own fully functioning IOC container for this demo instead of just getting one from Nu-Get
and me makes it to automatically match and Interface with a class if they have the same name with interface just having the extra "I" , which some IOC containers don't even have
 
posted on July 29, 2014 by Visual Studio Blog

Today we released the Visual Studio Tools for Unity add-on (formerly known as UnityVS). It is now available for download on the Visual Studio Gallery at the following links: Visual Studio 2010 Tools for Unity Visual Studio 2012 Tools for Unity Visual Studio 2013 Tools for Unity VSTU is Microsoft’s free Visual Studio add-on that enables a rich programming and debugging experience for wo

 
Awkward internet silence
 
@ScottSelby Owin and Katana are middleware, it was designed to really blend with SignalR.
 
no
Katana is a implementation of OWIN
 
Well that is what I mean.
 
5:08 PM
and it is everything from listening to the request to middleware , to routing
this video is a couple years old,
you gotta give him that
 
OWIN is a PITA. that's my experience so far.
It makes it impossible to unit test anything that hits the DB
 
there is Katana Middleware , but that is just part of what it can do - it completely gets rid of the need for System.Web
 
@ton.yeung Used to be, Web.Administration for the win.
 
@Pheonixblade9 - what? how does it do that? ad typically you send mock data and don't go to the atabase in a test anyway
Katana gets rid of dependence on IIS -ftw
 
@ScottSelby not sure, I just want to test actual authentication in my unit tests
it seems like you're not actually testing the DB if you just mock it
well... i wanna test it with a unit testing framework, even if it's not actually a unit test
 
5:12 PM
yea - developers are not usually concerned with actually testing the db . Hopefully there is a DBA to work out testing actual loads and speed of db and stff like that , dev usually just is responsibe for making proper requests
 
@ScottSelby well... there is no DBA at my job, and I am the only one working on my side project
 
I am the DBA and the designer and the engineer and the business analyst at my job. lol
 
@Pheonixblade9 - I've done that as well , typically in those situations you aren't getting millions of users , or even hundreds of thousands , and db testing is much easier
 
wtf? this is K'nex? no. that's shitty lego kids.woot.com/offers/…
@ScottSelby we only have hundreds or thousand of users. We do have large amounts of SQL happening though
 
5:15 PM
ohhh. yea...
 
we process several gigabytes per client every day, and all of it comes from the DB
 
time for noSql
 
@ScottSelby NoSQL doesn't work very well when you need 1000 facets
@ton.yeung yes, largely sprocs.
 
what about memchache
 
@ton.yeung we have Windows services that call the sprocs and pass different steps around via MSMQ
works reasonably well
we are working on an in-memory cache thing though
 
5:17 PM
I'd recommend memcache
 
basically an entirely in-memory simple relational DB
memcached doesn't really meet our requirements
we have lots of full text searching
 
oh, it's great for storing common queries , or even entire large tables to access very fast
 
well... SQL Server already does that :)
that's one of the big reasons to use sprocs
brb
 
Microsoft.Practices.EnterpriseLibrary... ugh
 
If I have a query string with: Type=True can I make a front-end SQL Data Source accept the True / False as a parameter as a representation of an integer?
 
5:23 PM
@ScottSelby Great article on OWIN/Katana codeguru.com/csharp/.net/net_asp/…
 
I'm going to sell tools for opening boxes of salmon by half the dozen, in a box. Name is "sex laxasksaxar i en laxasksaxask"
@JohanLarsson ^
 
MIcrosoft built an Enterprise Library Block for databases. It's a highly abstracted set of classes that uses a Database object rather than a connection to a speciifc database. This way, if you move your application from ORacle to SqlServer, you don't need to change code.
WHEN Has an ENTERPRISE application ever just decided to move from Oracle <-> SQL without changing code....
Hmm, Oracle changed their logo to a shade of red I hate. Off to Sql Server.
 
5:47 PM
@RyanTernier that was my reasoning.
 
Oracle is in trouble in the state of Oregon, for the health care debacle.
 
Our old DB Lead left CGI for ORacle
they sent him on a 5 day White Board training class. In California.
5 days on how to draw on a white board.
 
@RyanTernier sounds like job creators to me!
 
I want to learn how to draw on a whiteboard !
 
@RyanTernier Eh.
 
5:53 PM
Oh he learned important skills. How to firmly hold the pen shaft while positioning his feet so the angle is perfect and the audience gets a clear view of his "art"
 
at a job interview a couple of years ago they said " WOW! ... your code is average , but your whiteboard writting is so fucking neat"
 
Interviewer: SO... tell me about your strongest skills
Interviewee: I am a professional white boarder. I can draw 7 red lines, with blue ink and transparent ink.
Interviewer: Hired!
 
@RyanTernier You forgot the part about them being perpendicular
 
I'm going to get a red balloon for my cubicle and have on it "I'm a professional"
man i love that vid
 
5:57 PM
Make sure it's in the shape of a kitten.
 

« first day (1382 days earlier)      last day (3559 days later) »