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

3:00 PM
@Failsafe me too. It's fucking great when QA in India wants to let everybody know they're doing a test build at three o'clock in the fucking morning EST.
 
user47589
why use slack? i use Jicama
 
maybe dont have QA in india
@mikeTheLiar that sounds amazing
 
Jicama is literally better than Hitler
2
 
When is a #Temp table okay for use in SQL Server?
I needed to do a Cross Join, is a Temp Table okay to store the parent results?
 
user47589
when you need a temp table
 
3:05 PM
@JoJo that's highly dependent on context. If you need to alter data before returning it but not alter the underlying data is one example
 
user47589
write your queries, look at the execution plan to see if sql server is doing anything squirreley
 
@JoJo It's never ok, not since the Temp Table Massacre of 2013. Legislation was passed. Monuments were erected.
 
What are you doing with the cross join after you put it in a temp table?
 
A column value rollup
 
Hi All
 
3:08 PM
And is there some reason you can't do that in-memory?
 
SELECT GROUPID
      ,GroupName
      ,STUFF((
                  SELECT ', ' + Name
                  FROM #NameRollup
                  FOR XML PATH('')
                  ), 1, 1, '') AS InGroup
FROM #NameRollup
GROUP BY GROUPNAME
So a #Temp table is fine right?
 
I have a simple question. The following code is in winforms "foreach (IPrintable dev in CspStat.Instance)
{
try
{
dataGrid.Rows.Add(dev.Name,  dev.CVD, dev.SerialNumber);
}
}" How can i add a rows in WPF datagrid?
 
@jojo There's no way for us to answer that. Is there an actual problem that you're encountering?
 
@mikeTheLiar no sir
 
Yay, I made a generic repository for entity
 
3:10 PM
@JoJo a temp table is fine up until it starts to cause a visible problem, then it's not anymore :)
 
@JoJo then don't worry about it for now.
 
awesome!!
 
Does the code make sense? Is it easily understandable? Then, (for now), it's fine.
 
the only person you might need to clear that with, if you have one, is your DBA. If you don't have one, you're all set.
 
HI ALL! my posts keep getting put on hold when they are too generic, is there a better place for them??
 
3:11 PM
sweet, we just hired one 2 days a week, good point @MikeEdenfield
 
I have worked with DBAs that were picky about what you put in tempdb.
 
user47589
@doggy which of your questions were put on hold? i dont see them.
 
user47589
we can't say what a better place might be without seeing the questions
 
cool
 
like when i ask about:
what to use for 3d rendering graphics display?
 
user47589
3:14 PM
use google.
 
yeah that's too generic. That's basically canvassing opinion, not a question that can have a right answer.
SO is intended for questions like "How do I solve problem X?" or "How do I do X with Y?"
 
or how to build a genetic algorythim
 
unless you can provide an example of what you've tried, that again would be too generic
 
user47589
i can't think of a more generic, vague or broad question than that.
 
programmers.stackexchange.com is perhaps a better place for those questions
 
user47589
3:15 PM
again, use google.
 
@Amy tf is jicama? All I get when I google it is the root vegetable
 
Google loves questions
 
@ShotgunNinja It's the best JS framework
 
@ShotgunNinja It's a meme now
 
@ShotgunNinja it's so cutting edge even Google hasn't heard of it
 
3:16 PM
You're a meme
 
Your a meme
 
:( cant find specifics now, bbs, thnx!
 
room topic changed to C#: Coctothorpe chat. Insert panini, receive working Donut. csharpchat.com [.net] [asp.net] [asp.net-mvc] [asp.net-mvc] [c#] [entity-framework] [java-hate] [jicama] [linq] [panini] [visual-studio] [wcf] [wpf]
 
user47589
i can't get to github
 
user47589
wtf
 
3:17 PM
@Amy sux
 
!!jicamajs
 
can't wait until it's done
 
it is done
 
with all of this jicamajs stuff, we should really make it a thing
 
3:20 PM
!!jicama
 
@mikeTheLiar That didn't make much sense. Maybe you meant: jicamajs
 
Oh that got changed?
Ignore me, I'm an idiot. Not paying enough attention.
 
google sometimes does not like me, here is recent deleted post:
 
ok
 
I have a idea for a spider robot, which will have 8 legs, I have been studying and less a few details understand the advantages of learning networks, but i wonder how to encode the genome, and really mostly is problem with timing,

for example I have 8 legs with 3 servos each , which isn't problem on its own, but my confusion lies because i need to think about timing, like when it needs to take a half step or a whole step(in half step only half motion & half of time is required), or when servos need more time to position, would i have servo function roll out a full sized string, or can i ma
 
3:21 PM
JicamaJS is the agnostic JS framework
 
I've just logged an issue
@doggy most people would be unable to replicate your problem due to lack of robot. Have you considered asking this in a robotics forum?
 
guys, what's the best way to debug something on production that does not occur in debug dev environment?
can I just assume, it's a server or db related error?
 
assume nothing
 
user47589
its either data related or configuration related.
 
user47589
you should have a staging environment that mirrors production in which you can do testing.
 
3:24 PM
^
 
@Amy If I had a nickel every time i said this
 
user47589
you would have a nickel?
 
user47589
weird, i can get to github with HTTP, but HTTPS results in a reset connection
 
user47589
why would that be? proxy malfunction?
 
user47589
I can get to it if i disable HttpsEverywhere
 
3:27 PM
the cert not loading
 
What would be a good collection to store five different poco's in?
 
user47589
a non-generic one
 
ArrayList!
(joke - don't use ArrayList)
 
But... why.
 
user47589
if its always going to be five, don't use a collection
 
user47589
3:29 PM
use an actual class that exposes each poco as a different property.
 
what do you mean by staging environment?
 
Because a third party decided the best way to give us our data is a multi result data table from SQL.
 
@KalaJ I'm so, so sorry
 
user47589
you don't have a staging environment?
 
@KalaJ You're leaving this job soon, correct?
 
3:30 PM
yes
I'm tired of web forms, ADO.NET and web services that are not WCF or web api lol
 
user47589
a staging environment is built exactly like production, and the data is refreshed from production frequently to be as close to production as possible, while allowing developers and users to do testing.
 
also I didn't write any of the code soo...
this is awkward
 
user47589
so you can work in production without working in production
 
@Amy one thing that's annoying about some of our staging environments is that legally we can't have access to the data on prod.
 
user47589
an annoying thing that's annoying?
 
3:32 PM
@Amy Shhhhh
 
user47589
hehe
 
user47589
yeah, same. i work with insurance data.
 
@mikeTheLiar ETL script that transforms all PII fields to 'asdfasdf'
 
@mikeTheLiar in those cases, you need some representative data at least. Sometimes I've scripted test data, sometimes I've been able to anonymise production data.
 
@Squiggle I think this is what they do. I don't work on that team.
I'm allowed to have access to copy of the data on production but not actual production data if that makes sense.
 
user47589
3:33 PM
recently we came across code V97.33XD, which means you were sucked into a jet engine, survived, and was sucked in a second time.
 
user47589
!!google V97.33XD
 
The data is perfectly fine for me to access, I just can't potentially be able edit the data actually on prod
 
well this is a client project, no... I don't have staging environment
so I ask for it?
 
user47589
there's also an insurance code for "bitten by cow"
 
3:35 PM
@Amy >W61.62XD: Struck by duck, subsequent encounter.
 
So how is that an annoying thing about a staging environment?
 
Z63.1: Problems in relationship with in-laws.
 
Q56.8 ingestion of bees; multiple
 
user47589
bureaucracy at its finest.
 
TIL
 
user47589
3:36 PM
gotta have a code for everything
 
is there a code for alien abduction?
 
posted on February 10, 2016 by ericlippert

You are behind the white house. Paths lead into the forest to the east and northeast. In one corner of the house is a small window which is slightly ajar. > examine the window The window is slightly ajar, but … Continue reading →

 
user47589
hm, i dunno. there's one for injured by spacecraft.
 
If someone sneaks illegally in to your country and kidnaps you, isn't that alien abduction?
 
icd10data.com/ICD10CM/Codes/R00-R99/R40-R46/R41-/R41.4 only "Alien hand" - neurological syndrome
 
3:38 PM
@Amy I used to work with a guy whose house insurance covered being crashed in to by a UFO
 
user47589
haha
 
But that's how the get you! Once it's crashed, it's just a UO!
 
@mikeTheLiar nah I think that's termed "extraordinary rendition"
 
Then when somebody gets a look at it, it's just an O!
 
[object Object]
 
3:39 PM
@Squiggle I thought that was just American?
 
user47589
aliens gave us JavaScript
 
!!> {} + []
 
@mikeTheLiar 0
 
!!> [] + {}
 
3:40 PM
@mikeTheLiar "[object Object]"
 
There is a distinct possibility that an excavator has gone through the office's internet line
 
!!> "{} + []: " + {} + [] + " [] + {}: " [] + {}
 
@mikeTheLiar "SyntaxError: expected expression, got ']'"
 
Sitewide network outage
 
@TomW how are you here then?
 
3:41 PM
I'm watching yellow machinery dig up the field between us and the main road
@mikeTheLiar phone
 
Javascript goes Braindead
 
I've had a blackout at a previous workplace once caused by a jackhammer going through the power cable. Everything went black, then a few minutes later an ambulance arrived to carry away the electrocuted workman.
 
I've had a blackout at a previous workplace once caused by a fifth of gin.
 
Guess he did not see the cord above the wire to stop
 
HAMMERTIME!
 
3:45 PM
lightweight
 
budlight time
 
& ChickenParm
 
Bud Lite lime?
 
schtop
 
hammerlime?
 
3:46 PM
i LOVED bud lite lime
but i over drank it
 
You're dead to me.
 
so now, it just tastes like acidic piss
 
user47589
well i've gotten a process that took 1m39s yesterday down to 2s today. pretty good if i say so myself.
 
No, that's what it always tasted like.
 
@Amy Pat on the Back
 
3:48 PM
@Amy [epic_manager_on] Then why write it so slow in the first place?! [/epic_manager_off]
 
user47589
Because when I wrote it the first time, I was stupid. But now I is smart.
 
can always look at code 6months old and go WTF did I do that for
 
Hey people. Is there any way you know of of getting a Roslyn Analyzer to work with a CI process? (i.e. to fail the build if there are any issues picked up by it)
 
user47589
no idea, sorry. haven't touched roslyn
 
Good question, though. I'd be keen to find out.
 
3:54 PM
@Amy I thought everyone touched roslyn
 
@SteveG is there another kind of piss?
 
user47589
no, it touches us.
 
s/it/she
:^)
 
user47589
:D
 
roslyn is a beautiful woman.
 
3:56 PM
But she can be very strict
 
Well, its back. That digger driver is a wizard with the sellotape I guess
 
but they should not remove my post>? (reason: too many good answers) also have seen lots of implementation in matlab (on youtube) w/o hardware , also is there good robot forum to recommend?

also I use c# mostly, but alot of libraries is c++, is there a way i can use c++ libs in my my c# apps?

or i have c# 3d objects and point maps, but have no way to display, google suggests openGL(c++) or openTK(c#) , is there any program like autodesk 3ds max, or somthing better that would have plugin?
 
ugh when is trump gonna out himself as a democrat secret agent on a mission
I'm imagining him getting the nomination, then on Nov. 3 dropping out of the race in exchange for a fancy appointment
 
@Jeremy after he's got the nomination, I guess.
 
> There should be a sitcom about a candidate who keeps trying to tank his campaign by saying more and more extreme things, but it just makes him more popular, and literally nothing he tries to do can stop his campaign.
Yeah I'd watch that
(again)
 
user47589
4:06 PM
i'm excited about politics for the first time, ever.
 
Really? For the first time
 
@Amy feelin' the Bern?
 
user47589
I feel the Bern
 
he's awesome
I wish Corbyn was as enthusiastic
 
Regardless I'd feel a little bad for Hillary if she didn't win
Front-runner in 2008, when suddenly, Obama.
Front-runner in 2016, when suddenly, Bernie?
 
4:09 PM
Obama was the better candidate, in 2008, and now she blew her chance when she jumped into bed with the banks.
 
Feel like the party keeps promising her "next time" lol
 
The best I can say about Hillary is that things won't change much.
 
@mikeTheLiar Maybe I'm a cynic, but I think you can say that about any candidate
 
@Jeremy she's not even trying to change anything
wait, I'm British. I shouldn't care.
 
@Jeremy Oh without a doubt. But I feel like Hillary is the absolute embodiment of "politics as usual"
@Squiggle if Trump wins I aim to become British.
I was born in the Empire so that's got to count for something.
 
4:12 PM
If they thought they had a hard time passing legislation with Obama...
 
The argument goes that the GOP is going to be so bad when Hilary is president that the entire country will turn against them, more than they already have.
So in the long run Hilary will be better for the Democrats
 
Bad in the sense of trying to ruin everything to spite the President?
 
user47589
yeah
 
@mikeTheLiar which bit of the Empire?
 
BVI
 
4:17 PM
@mikeTheLiar by birth can you apply for British Overseas Territory citizenship?
 
Is there an easy way to deactivate a link in MVC 5 based on a query? Result. I have a link that opens a form and allows the user to create an addendum to the original document. I want to deactivate that link based on this query returning no matching record for the sql conditions:

SELECT *
FROM Reporting
WHERE (Day(EventDate) <= 21)
and (Month(EventDate) = Month(GetDate()))
or (Day(EventDate) >= 22
and Month(EventDate) Between Month(GetDate()-1) and Month(GetDate()))
 
@Alex depends entirely what your viewmodel says
 
@Squiggle don't think so. Parents aren't British.
 
user47589
what specific issue are you having? do you know how to deactivate the link? do you know how to run the query?
 
@mikeTheLiar meh. Come to Europe anyway. It's cool here.
 
4:21 PM
I have the query in the queries folder of the mvc application. I'm trying to understand how to tie in the URL from the partial view so its deactivated from the time the application loads.
 
@Squiggle been trying to talk my wife into it for years.
 
user47589
run the query in your controller. if it has no results, set a flag on your viewmodel that says the link should be disabled.
 
user47589
in your view, check that flag. if its set, disable the link
 
@mikeTheLiar The British didn't care their parents weren't American when they invaded came to America either. Why should you now? ;-)
 
user47589
i got a bug ticket "pharmacy section". that's the entirety of the bug. wtf, why can't the people at this company at least try to make a bug report that actually describes the bug?
 
4:30 PM
@Amy send an exterminator to the nearest pharmacy.
 
user47589
maybe you're right.
 
"Bug description: small, brownish. Long antennae. Six legs."
 
user47589
Subject: Fire. Dear Sir/Madam, I am writing to inform you of a bug infestation that has broken out on the premises of 123 Cavendon Road... no, that's too formal.
[deletes text, starts again]
Moss: Bug infestation - exclamation mark - Bug infestation - exclamation mark - help me - exclamation mark. 123 Cavendon Road. Looking forward to hearing from you. Yours truly, Maurice Moss.
 
Made in Britain "Aaah."
 
4:33 PM
 
Richard Ayoade is a genius.
 
@KendallFrey the delicious kind, remember dodgeball?
 
user47589
he truly is.
 
Anyone seen Garth Marenghi's Darkplace?
 
his book Ayoade On Ayoade is a surrealist masterpiece.
 
4:34 PM
usually if I want to make a standalone asp.net page I just have to begin my file as such:
<%@ Import Namespace="System"%>
<%@ Import Namespace="System.Collections"%>

but lets say I am using a service reference

using MicroOne.ServiceReference1;

how would I declare this?
 
@TomW fucking love that show. I keep quoting it, and people look at me blankly.
 
I dunno whether he was a writer on that or not
 
yeah he was
and Man To Man with Dean Learner
 
how would I declare it on a standalone
 
@Skullomania What do you mean?
 
user47589
4:36 PM
i'm not following that question either.
 
ok...I have a asp.net stand alone application. In order for me to add my references I start it out like so:

<%@ Page Language="C#"%>

<%@ Import Namespace="System"%>
<%@ Import Namespace="System.Collections"%>
...
<!DOCTYPE html>
...
you follow me so far?
 
user47589
yes we understand that part.
 
I am having trouble figuring out how to add a service reference to that namespace...I would normally do this in a project named MicroOne


usually if I want to make a standalone asp.net page I just have to begin my file as such:
<%@ Import Namespace="System"%>
<%@ Import Namespace="System.Collections"%>

but lets say I am using a service reference

using MicroOne.ServiceReference1;
 
that's the namespace of the service proxy, right?
 
but in a stand alone this line
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MySite.aspx.cs" Inherits="MicroOne.MySite" %>

dont exist
 
user47589
4:40 PM
you want to make an aspx page without the code-behind?
 
user47589
why?
 
ttfn peeps
 
yes
 
user47589
bye @Squiggle
 
because it will not work using DNN
 
4:41 PM
You add a service reference, which will create an endpoint in your config file. Then you create a proxy in code behind.
It will work in DNN
 
user47589
embed a code block in the aspx using <% %>
 
user47589
then put c# code inside the block
 
@Greg I have the code working in a .net project with a code behind
 
In DNN you simply have to create a valid User Control that will actually be inherited by the DNN page.
@Skullomania What @Amy said would work. It would allow a full code block.
 
@Amy thats what I normally do...but how do I inherit MicroOne when in a stand alone you cant use <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MySite.aspx.cs" Inherits="MicroOne.MySite" %>
your limited to <%@ Page Language="C#"%>
 
user47589
4:43 PM
yes...
 
abd stuffing your code in a
<script language="c#" runat="server">

</script>
can you guys show me an example of what you mean?
 
user47589
you have to embed your c# code in the page itself, or use a code-behind. those are the options. you can embed using <% %>.
 
love it
 
In MVC it is:

@{
    var blah =  String.Format("...");
    using(var reader = new SqlDataReader(...)) // Whatever C# here.
}
 
user47589
4:48 PM
actually that's Razor. not necessarily MVC
 
is something like

    #define true false

possible in C#?
 
i am using webforms
 
user47589
no, C# does not have a preprocessor
 
user47589
you can look up the documentation for #define on MSDN
 
@Skullomania I know, it works identical just a different syntax it's like:
<%
    // C# Here
%>
 
4:51 PM
and I can drop my namespaces in there?
 
user47589
any valid C# code is valid there
 
@Amy I've got a question.
 
user47589
hm?
 
If I have Entity Framework, it opens a connection to a database. But, I need to do an old school SqlConnection to open, will EF already have it open and locked so I can't open?
 
I will try it, one part I dont understand...using this solution how does .NET know what MicroOne is?

<%@ Page Language="C#"%>

<%
using MicroOne.ServiceReference1;
using MicroOne.ServiceReference2;
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
%>
 
4:54 PM
Ew
 
@Skullomania You actually in the project added a service reference, correct?
 
yes
 
user47589
this page is part of a project, right?
 
no...this will be a stand alone version of the project
 
user47589
so it isn't part of a project?
 
4:55 PM
@Skullomania So you added the .dll reference?
 
user47589
erm
 
@Skullomania Or connected via WSDL?
 
no...its a standalone version of it...I have the webconfig reference to it in the webconfig
 
user47589
how does he have a reference to anything without the page being part of a project
 
@Amy He defined the endpoint via Web.Config which is half the problem.
 
user47589
4:57 PM
i missed where he said that.
 
@Skullomania You need to add the Service Reference so that it automatically adds the proxy to the project, not just the endpoint / binding information.
 
@Amy and @Greg I have it as part of a working project in VS. I want to take that project and make a stand alone version of it.
 
@Skullomania When you add the reference it adds the proxy then builds the proper endpoint data in your web.config, but if you just have the web.config you still don't have the .dll or WSDL referenced.
 
user47589
i dont think i can help with this.
 
@Amy You know the answer to my question above?
 
4:59 PM
42
 
user47589
connections aren't locked. just open another connection
 
@Amy I get an error: No process is on the other end of the pipe
 
user47589
if the database is configured for it you can open as many connections as you like
 

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