« first day (2082 days earlier)      last day (2860 days later) » 

1:02 PM
Good day everyone :D
 
user47589
@catgocat why doesn't what work?
 
@catgocat Because matrix doesn't have an element with index 1
 
@Amy The commented code works, but matrix[1].Length doesn't
 
When having a URL in MVC such as /Category/EditCategory/1, is there a way to extract that "1" out of there? Get it into a ViewData or similar?
 
@VeronicaDeane Isn't the element an array?
 
1:04 PM
@catgocat Do you expect them to do the same thing?
 
@catgocat what do you expect to be at index 1 of a two dimensional array?
 
@Xariez There are many ways to do that ..
 
@catgocat No, that would mean matrix is an array of arrays. (int[][])
 
We have been over this before
like 4 months ago
 
@catgocat Have you tried reading the documentation?
 
1:05 PM
@StevenLiekens In Javascript I can create a multi-dimensional array, and array[0] will give me the first row
 
@catgocat No, in javascript you can't create a multidimensional array
 
@catgocat That's not a multi-dimensional array.
It's a jagged array.
 
You can only do arrays of arrays
 
@Sippy That, I know, but I can't seem to get any of the solutions I find around the forums to work and so I thought, if i come here, get suggested something, and it doesn't work, i'll atleast get it troubleshooted as well
 
Right
 
1:06 PM
@Xariez Well, it rather depends what you're trying to do.
 
And in a normal non-mvc solution I would perhaps do Request.QueryString["category"] if the url was, as an example, index.aspx?category=1 , but feels a bit worse in this situation
As a context, I am having a few boxes with links, first box has ID: 1, second ID:2 and so on. When you arrive at the new page, I need to know, in a variable, what ID is actually selected
 
Well ..
Maybe read about routing.
Pretty sure it answers your question.
 
So how do I get the length of the inner array int[,,] matrix = new int[4, 4, 5];
 
Yeah, yeah documentation.
 
every company should have netflix in their common room where everyone hangs out
 
1:08 PM
Got a question about SSRS in C#. May I ask it here?
 
we have cable at least that
 
@LikeIfYouCaredAboutMyName That sounds like a good way to get no one to do any work
 
@Alex you can ask but what you should do is run in the other direction
 
@catgocat What do you expect as length there?
 
LOL @mikeTheLiar
 
1:09 PM
I expect 5 right?
 
@Sippy well only on breaks of course xD
 
@mikeTheLiar :)
I know
 
@catgocat Why?
 
The best thing you can say about SSRS is that it's not SSIS
 
@catgocat That would be GetLength(2)
 
1:09 PM
And the best thing you can say about SSIS is that it's not literally Hitler
2
Although some days I wonder
 
You aren't getting the size of an array, you're getting the size of a dimension of an array
 
@mikeTheLiar rofl
 
@VeronicaDeane Oh ok thanks
 
I found out that the companies official phone is an iphone 6
 
@RoelvanUden Because
 
1:10 PM
where do I sign up to get one?
 
what
 
@RoelvanUden I see it as being a 4-length array, each element has a 4-length array and each element has 5-length array
 
@catgocat But it's not.
@catgocat It's quite literally one big array.
 
Arrayception.
 
@catgocat And C# translates what index a certain x,y,z position would be.
 
1:12 PM
Except not.
 
@catgocat That's an incorrect way to look at it
 
@RoelvanUden Oh, that makes sense
 
Of course it makes sense. These are computers.
 
multidimensional arrays do not contain arrays
 
finding courage to proceed with the project
 
1:12 PM
@Sippy we have to go deeper
 
Error: Courage not supported
 
Deeper? :o watchout there's kids here
jesus
 
!!lenny
 
( ͡° ͜ʖ ͡°)
 
So what do I call arrays that contain arrays?
 
1:13 PM
Jagged arrays.
 
When each
array within a larger array has a different length, it is called a jagged array. If they’re all the same
length, it is often called a square array or a rectangular array.
 
Error 404: Courage not found. System is shutting down
 
@Sippy Read through what you linked me and also experimented a bit around with Request.QueryString a little more since I mentioned it earlier, still can't get the URL-value into a ViewData
 
@catgocat Except that you aren't sure. I can resize an array and screw your shit up yo.
 
You're doing something very wrong then
 
1:14 PM
Assumptions and all that.
 
Here it goes... Building a WPF MVVM app, doing local reports against SQL Server. Is it possible to not hard code the data source/data set in the report via the "Data Sources" panel? I have a Reports.xaml view (user control) that will display about a half dozen reports by calling them from the code-behind using a WindowsFormsHost and ReportViewer. I'd like to define the data source/dataset progrommatically.
 
I am. And thats exactly why I am here and why I just said what I did @Sippy
 
@Alex hmm. Can you parameterize it?
 
@RoelvanUden So If I wanted a "dynamic jagged array", I could use nested lists instead?
 
@Alex what version of SQL Server?
 
1:15 PM
@mikeTheLiar 2008 R2
 
@catgocat Obviously arrays of arrays don't have to be jagged, but even if they're perfectly square, they're still fundamentally different than multidimensional arrays.
 
@catgocat Hey, an array can resize.
 
@Alex RIP you
 
@RoelvanUden No it can't
 
@RoelvanUden what
 
@VeronicaDeane Yes it can.
 
Demonstrate
 
user47589
uh, yes it can
 
user47589
there's a whole Array.Resize function
 
1:16 PM
@mikeTheLiar :D I've died many deaths on this project
 
2
Q: Dynamically set the data source for SSRS reports without unattended execution account?

BVernonI need to dynamically specify the data source for SSRS reports at runtime. I found these solutions: Change SSRS data source of report programmatically in server side SSRS Dynamic Shared Data Source Other technologies like Crystal Reports have allowed us to very easily change the data source at...

 
@Amy That doesn't resize the array
 
Shall I keep posting Google results or is this enough to get you started?
 
user47589
go back to haskell, kendall. you're out of your element
 
it returns a new one
 
1:17 PM
(God I'm such an asshole. I really want to punch myself in the face right now)
 
@mikeTheLiar :)
Nah, just having difficulty wrapping my mind around it
 
user47589
you want some help with that, mike?
 
@VeronicaDeane Oh, you're Kendall. Hey
 
@Amy the fist of friendship?
 
@VeronicaDeane Remember you can just start to manage memory manually. If there happens to be space near the array, it can resize w/o a copy.
 
user47589
1:18 PM
@mikeTheLiar the hoof of friendship?
 
@Alex but yeah, I'm not exactly sure how to do it but parameterizing the data source looks like it's relatively trivial
 
If I have a single Method named: ConvertPartialViewToString and I want to move it out of my controller to put into a different class as a static method. What should the class name be?
Its not really an extension method, so..
 
@Amy The Fellowship of Ringing Your Fucking Bell
 
Is it a helper method?
 
@mikeTheLiar The drag-and-drop tool in VS 2015 for SSRS requires a data source/data set. It won't give me access to edit the XML, though I can do that in Notepad++ to set the layout.
 
1:19 PM
@RoelvanUden Are you saying the CLR will actually do that in some situation?
 
@Alex GAH DANGER DANGER DANGER
 
@VeronicaDeane There is no guarantee it doesn't.
 
@mikeTheLiar Yeah, I know
 
While sometimes that's necessary it usually means that something went horribly wrong
 
@RoelvanUden The documentation seems to imply that it doesn't.
 
1:20 PM
Blown up my share of RDLC files
:)
 
@Alex what layout are you talking about?
 
user47589
okay @mikeTheLiar get ready
 
@VeronicaDeane It still doesn't matter if I control one manually.
 
@Amy Bracing myself
Preparing for panini
 
@Michael Just setting what columns to display, their background color, grouping, repeating column headers on new pages
 
user47589
1:21 PM
deploys panini
 
All that info goes into the RDLC file plus the dataset/datasource information
 
@RoelvanUden I'd love to see code that actually does that
 
I've tried ripping those out. Bad idea. Blew up the RDLC file
 
@Alex ohh Im thinking SSIS. I was like what..
 
user47589
Rip them up, not out.
 
user47589
1:22 PM
The direction is the key.
 
hey guys
i dont do this often,but i've just download someone's project on github,because i was intersted on the same subject
 
Soo how obvious is my current issue? The ViewData tag is not at all getting populated

https://gist.github.com/anonymous/0789452e38913c4c89b35382264ae48e
 
tried to compile his project,but i encountered some erros,now i think these are not just typos..it's like a lambada expression
 
@VeronicaDeane I don't care enough to write some
 
but the compiler does not let me to compile this
  public bool IsWindows7 => Environment.OSVersion.Version.Major == 6 &
                          Environment.OSVersion.Version.Minor == 1;
 
1:25 PM
I'm not surprised
That sounds bloody difficult
 
is this syntax legal in c#?
 
user47589
no
 
Yeah. Get VS2015 you outdated fool.
 
user47589
oh, is that new syntax?
 
It is
 
1:26 PM
damn
 
@Xariez looking at the definition of QueryString it looks like you have to manual override it first to use it?
 
need to download vs2015?
 
That single & is pretty suspicious by itself though
I mean it'll compile
But it's got flashing red lights and klaxons ringing
 
what does the single & mean?
 
i cannot compile this on vs 2013express haha
 
1:27 PM
why is that syntax even helpful?
 
Could very well be. Not entirely sure how to do that though @Michael - Wouldn't let me have "Request.QueryString["EditCategory"];" either as I am semi-used to
 
@Michael it's a bitwise AND
 
kendal is veronica?
o.O
 
whats the diff between that and public bool IsWindows 7 = true && true ?
 
true && true??!!
 
1:29 PM
@Michael lolwat
 
what?
true & true makes true?
 
but how does Environment.OSVersion.Version.Major == 6 make true
 
@Michael do you really ask this?
it's a shorten condition
 
ohhhh
 
if(the os version) equals 6
fuck now i need to download express 2015
 
1:31 PM
wait..
what?
why cant Environment.OSVersion.Version.Major == 6 make true?
 
this code is not comiling on vs13
 
Ohhhhh I see why I confused everyone. I wasnt actually looking at what the result was..
I was just talking about the syntax
 
what? Im totally confused
xD
 
lol
@RoelvanUden if i'll enable c# 6.0 in vs2013
it would compile?
 
@Michael it can evaluate to true, but it's not the same as true
 
the syntax: public bool mystery = somebool && somebool;
 
@Slashy Just upgrade...
 
@VeronicaDeane what do you mean upgrade?
 
never seen that tbh
 
download the 15?
 
1:34 PM
no, 2015
the current version
 
How are these two different?
public bool mystery = somebool && somebool;

vs

public bool IsWindows7 => Environment.OSVersion.Version.Major == 6 &
Environment.OSVersion.Version.Minor == 1;
 
@Michael does that exist?
 
@Michael in many ways
 
@VeronicaDeane but i dont have 2015
i have only 2013
 
I said GET IT
 
1:35 PM
alright
now shush
:)
 
because its a setter?
 
nothing in what you wrote has a setter
 
Kendal is veronica? HAHAHA
 
Guys I have a question
 
I'm talking about @Slashy 's
 
1:36 PM
is it an obvious one?
 
JCM
Hello everyone. I am getting an error that I do not know how to fix. It says:

"Additional Information:The 'Cycle' property on 'Production' could not be set to a 'System.Double' value. You must set this property to a non-null value of type 'System.Single'".

But if my cycles are doubles why would it have an issue??
 
@Michael which
 
What will happen if I try to do a .Hide() on a button that does not exists in the html?
will it throws an exception
or just move to the other line
 
@Obviously Just try it yourself
 
@Obviously im gona guess exception
 
1:37 PM
going exception on that one
 
you could literally test that right here on this chat
just open up dev tools
 
I am asking since i am hidding a button based on some condition but i also have conditions in my jquery
 
VM183:1 Uncaught ReferenceError: nonexistingbutton is not defined(…)
 
@Obviously your name is the answer to this one ;)
 
oh
 
1:40 PM
Hi guys. I've got an ASP.NET web project in Visual Studio. When I build, I get "Object reference not set to an instance of an object". No details are listed under the "Project", "File", or "Line" columns. I've done a little research on the message, but most of the answers are like "don't try to reference the object while it's null". Great advice, but I don't have an object. Or, if I do, it could be any one of the thousands of objects in my project.
I'm willing to carve out an MCVE for this, but the project has a decade's worth of spaghetti code and dependencies so it would take me a couple hours (or days). So I thought I'd ask in here first to see if this is a common issue or if there are any diagnostic steps I can perform to narrow down the cause without quite as many man-hours as an MCVE would require.
 
@Kevin Where does this error appear?
 
@Kevin uh it's null... have you initialized the object?
 
@LikeIfYouCaredAboutMyName uh... did you read the question?
 
uh ended reading it now
"Great advice, but I don't have an object. Or, if I do, it could be any one of the thousands of objects in my project."
 
 
1:41 PM
if it says that you have an object
 
It appears in the error list, if that's what you're asking.
 
@LikeIfYouCaredAboutMyName well, actually, it means you don't
@Kevin weird. no idea.
 
If you're asking "which file does it appear in?" I don't know. I would love to find out!
 
turn debug info to full and figure out by yourself
 
Yeah, nothing to do with your code
 
1:43 PM
mm, yeah, the build log may help
 
Hello!
I've problem with Unity3d
 
@VeronicaDeane how so? he said he isn't sure if there is or there isn't objects.
 
@tweray That sounds like an excellent idea. I assume that's in Tools -> Options somewhere...?
 
I dunno if this is the right place for unity m8
 
1:44 PM
@Kevin Tools>Options>Projects and Solutions>Build and Run>MSBuild project build output verbosity
 
is it only this project?
 
@VeronicaDeane Ok, thanks :-)
This appears to be the only project where it's occurring. I built my other two projects without much issue.
@tweray D'oh! Sorry for my lack of due diligence. I'm super frazzled.
 
z
 
don't worry, i'm just being an asshole, had a bad morning
 
1:47 PM
let's all be friends.
relax and eat cookies
no need for violence
 
no need to cookies..
 
fat me disagrees with cookies
 
no cookies, we only allow donuts
and panini
i mean panini's
 
lol
 
1:48 PM
hmmm donuts
 
Panini's are great and all but taste-wise you dont beat tortillas
 
the fat guy from the lobby was eye eating my donuts
I had to protect them
he was like pushing them to him with his eyes
 
lol
 
some mystical shit I tell you
sorry but it's true. the guy started looking at the donuts I was still outside. It was creepy ok
 
Did you know i can predict your age?

Take your age, subtract 7, add 9, and subtract 2, in that order, and you'll get to your age!
 
1:51 PM
hmmm ok try it
 
What do you guys recommend for reporting in a WPF app? Something that can export and print right there
 
Wow! So smart! Such wisdom!
 
lol
Thank you
 
I'm starting to hate SSRS passionately
 
1:51 PM
@Xariez I can predict your age. 2 years from now you'll be 2 years older.
 
Took me a few months to come up to the conclusion
 
well Crystal reports was good back in the ol' good days
 
I've used Crystal Reports before. Not going back to that
 
but no it sucks
 
No way! Thats so cool that nature does that @VeronicaDeane
 
1:52 PM
Note that that's a prediction, not a fact
 
Well I believe in your predictions
 
@VeronicaDeane I see we got ourselves a fortune teller hmm
 
But we'll just have to see!
 
Just the fact that you have to use a WinForms container to display SSRS tells me a lot
 
@Alex passionately hate it - do you have to use it?
 
1:53 PM
fortune tell me the jackpot numbers you witch :P
 
@juanvan Well, it's the only tool that has done the job thus far. Looking for other stuff
 
@Alex I like crystal reports functionalities but I hate the designer so much
 
Здравствуйте
 
@LikeIfYouCaredAboutMyName Yeah, that was my experience with it
 
你好
 
1:54 PM
@Xariez wat
 
You know, google translate.
Supposedly "Hello" in Russian and Chinesesesesese
 
@VeronicaDeane That depends on how you count, and the biological state of his being. If we stop counting when a person dies, then your earlier statement would be false.
(Now there's a prophecy)
 
@RoelvanUden it's still true.
well
kinda
yeah you're right
 
hmmm a true philosopher among us I can tell for sure
 
1:56 PM
@Michael I was afk for a bit, did anyone end up answering your question about & vs &&?
 
is it true that a blind old lady said that 9/11 would happen?
 
Well
I'm off for today. Toodles
 
Ok, I've set MSBuild project build output verbosity to "diagnostic", apparently the highest level. And I've done the same for MSBuild project build log file verbosity. But the output window shows the same not-terribly-detailed information as when I had them both set to "Normal". Could I be misunderstanding the meaning of "project build output"? Could that refer to something other than the output in the output window that appears when I build?
 
oh dear
 
you got yourself a true mystery
 
1:59 PM
you should set fire to your computer, something is very wrong
 

« first day (2082 days earlier)      last day (2860 days later) »