« first day (1278 days earlier)      last day (3661 days later) » 

12:00 AM
It would require a many-to-many relation from train to station
 
oh lord. why does it always have to be the sex toy customer whose problems we have to solve. I have a prod backup and I'm having to look at dildos and fleshlights and stuff at work
 
train -> substation (linking table) -> station
I gotta go, be back tomorrow
 
@Pheonixblade9 you never know, you might find something you like
We have to stay open-minded
 
lol^
 
Thanks for your help @TravisJ .. i am pondering on it
 
12:01 AM
@RodrigoSilva hey, I don't judge. Just amusing when people walk up behind you like "OH! Sorry, I'll come back..."
 
@Pheonixblade9 haha, must be a very awkward scenario. I'd love to watch it
Watch that happening, not the dildos and stuff...
 
@TravisJ currently have the timetable table which does the linking in a probable fashion
 
I don't want overzealous flaggers to get me again!
 
Well, after some googling, the 3 ring thingy seems neat haha
 
0
Q: Why is SSL broken for one domain on one computer?

Kendall FreyI've been having a strange issue, where I cannot connect to https://www.humblebundle.com. Plain HTTP works fine, as does https://humblebundle.com. These all redirect to the above address. I haven't found any domains or websites that have the same issue. curl https://www.humblebundle.com says: ...

If anyone cares
 
12:10 AM
@KendallFrey have you tried turning it off and on?
 
Thanks for the help on that one Travis and Pheonix
 
@BenBlack sure
 
12:54 AM
Is there a better way of doing:
category.Label = category.Label.Trim()?
 
Is label a string property?
 
@RodrigoSilva Yea
 
If so, I don't think there is, since strings are immutable
 
 
2 hours later…
2:46 AM
Does anyone know how to get the default settings provider for a C# application?
 
 
4 hours later…
6:41 AM
posted on April 16, 2014 by Scott Hanselman

ASP.NET "Razor" Web Pages are ASP.NET sites without models, views, and controllers, without project files. Some folks say "oh, that's just Classic ASP, or PHP right? Not at all. It's the fill power and speed of the .NET CLR, the full syntax of C#, LINQ, along with things like C# dynamics. It's super powerful, and my friend Mads and I are surprised more people don't use them for small things.

 
 
4 hours later…
10:35 AM
hello guys, a little help?
public Notify()
{
InitializeComponent();
foreach (ListViewItem item in form1.listView1.Items)
{
label1.Text = label1.Text.Replace("A", item.Text);
label2.Text = label2.Text.Replace("B", item.SubItems[1].Text);
label3.Text = label3.Text.Replace("C", item.SubItems[2].Text);
}
}
it says at the word "foreach" object reference not set to an instance of an object
and if i put this foreach structure code in the form_load it doesn't set text to the labels and even if i put a brakepoint at label1.text's line it doesn't brakes. Please help me.
 
if you put it in form load it doesn't exist yet there for form1.listView1.Items is null
 
but i set it like this:
public Main form1;
public Main Form1
{
get { return form1; }
set { form1 = value; }
}
DaImTo. How should i do it?
 
wait until its done loading then add it.
 
after what should i wait? and where to put it?
should i put the foreach code in form load ?
and how to wait for what to load?
a little help, barlop?
 
0
Q: Use PIVOT for Multiple records in SQL SERVER

ramanI am using following Query CREATE Table #MEMBER_ATTRIBUTES ( MEMBER_ID int, MEMBER_PROPERTY varchar( 500 ), MEMBER_VALUE varchar( 500 ) ) insert INTO #MEMBER_ATTRIBUTES ( MEMBER_ID ,MEMBER_PROPERTY , MEMBER_VALUE ) select isnull( MEMBER_id ,'0' ), ISNULL ( [MEMBER_PROPERTY] , '''') AS MEMBE...

please help me
 
10:48 AM
raman can you help me with my problem specified above?..
 
@user3313264 bind your listview before doing the above code
 
@raman how to bind? i don't understand
 
@user3313264
 
okey i'll try, thank you
 
 
1 hour later…
12:01 PM
hi guys, i still can't solve my problem, please some one help me:
public Main form1;
public Main Form1
{
get { return form1; }
set { form1 = value; }
}

private void Notify_Load(object sender, EventArgs e)
{
foreach (ListViewItem item in form1.listView1.Items)
{
label1.Text = label1.Text.Replace("A", item.Text);
label2.Text = label2.Text.Replace("B", item.SubItems[0].Text);
label3.Text = label3.Text.Replace("C", item.SubItems[1].Text);
}
}
it's really doesn't set the text for the labels
 
@user3313264 What happens if you set a breakpoint in Notify_Load?
 
nothing happens it doesn't breaks
 
Are you hooked up to the event?
 
hooked up? how?
i double click the Notify form
and this is it's load code
 
Check the event in the form designer and see if the event is registered
 
12:14 PM
ok
you mean the load event right?
see
this.Load += new System.EventHandler(this.Notify_Load);
@Ebikeneser, hello can you help me too?
 
12:32 PM
Where did you put the breakpoint?
 
label1.Text = label1.Text.Replace("A", item.Text);
and nothing...
 
try it on the foreach
 
ok
at the foreach it brakes
and it shows the form but it doesn't sets the text for those 3 labels..
@KendallFrey any ideea?
guys someone can help me with it? :(
 
12:52 PM
@user3313264 what's in label1.Text
?
before the foreach loop
 
ItemN = A
 
and in item.Text ?
did you try
label1.Text = label1.Text.Replace("A", "BLABLABLA");
 
another text
let me try
 
or
label1.Text = "BLABLABLA";
 
so it doesnt sets blabla
i tried label1.Text = label1.Text.Replace("A", "BLABLABLA");
so it doesn't sets any text foreach (ListViewItem item in form1.listView1.Items)
why?
@franssu
 
1:00 PM
@user3313264 Then obviously form1.listView1.Items is empty
 
@KendallFrey it's not empty
 
Does execution enter the foreach?
 
what do you mean?
 
@KendallFrey yes it does
It does break
@user3313264 why what ?
label1.Text = "BLABLABLA";
did you try it ?
 
@user3313264 Does it go into the loop?
 
1:04 PM
@user3313264 @KendallFrey yes !
 
@franssu i tried and it doesn't sets foreach item from listview
 
@user3313264 what do you mean "doesn't sets foreach item"
 
@franssu That's not what I'm asking
 
@franssu so i putted all into a try structure
 
:)
 
1:06 PM
private void Notify_Load(object sender, EventArgs e)
{
try
{
foreach (ListViewItem item in form1.listView1.Items)
{
label1.Text = label1.Text.Replace("A", item.Text);
label2.Text = label2.Text.Replace("B", item.SubItems[0].Text);
label3.Text = label3.Text.Replace("C", item.SubItems[1].Text);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
 
@KendallFrey you meant maybe he broke exactly on the foreach but not inside ?
 
an it says
System.NullReferenceException: Object reference not set to an instance of an object.
 
-_-
is form1 null?
 
how could be that null?
in Notify form (this) i wrote:
 
is it?
 
1:08 PM
public Main form1;
public Main Form1
{
get { return form1; }
set { form1 = value; }
}
 
@user3313264 you should remove the try catch
 
is form1 null?
 
then the debugger will stop when the exception will be thrown
 
@franssu and what to do?
 
Set a breakpoint and examine it with the debugger
 
1:10 PM
then you can hover the mouse on the line where the exception was thrown
and check what object is null
 
but it doesn't thrown
 
that's because you caught it
 
@KendallFrey where to set brakepoint?
 
@user3313264 foreach (ListViewItem item in form1.listView1.Items)
 
1:12 PM
chances are either form1 or form1.listView1 is null
 
now where to hover the mouse?
 
Hello
i am getting 417 expectaion failed erro
i am sending httpwebrequest
System.Net.ServicePointManager.Expect100Continue = false; also didnt help
 
@franssu and now where to hover the mouse?
 
Hover form1 in the foreach^
 
1:14 PM
@JohnBoker yes i have seen that
but i am still getting error
 
@JanJohansen ok form1 is null..
 
@user3313264 on any object that might be null ? or look inside the exception message window for the details of the exception, it should tell you which object was null
 
@MuneemHabib there's an answer with 11 upvotes, have you tried that solution?
 
@franssu form1 is null
 
11
A: HTTP POST Returns The Error: 417 "Expectation Failed." (C#)

Ruben BartelinkThis same situation and error can also arise with a default wizard generated SOAP Web Service proxy (not 100% if this is also the case on the WCF System.ServiceModel stack) when at runtime: the end user machine is configured (in the Internet Settings) to use a proxy that does not understand HTT...

 
1:15 PM
@franssu but why is form1 null?
 
@user3313264 I'm not a mind reader
 
@user3313264 Probably because you never assigned it a value
 
@user3313264 because Form1/form1 isn't given a value in that context or that^
 
like this im trying to get valuesfor form 1
public Main form1;
public Main Form1
{
get { return form1; }
set { form1 = value; }
}
why form1 is null?
 
because it's never set to a value
 
1:17 PM
but what value should it have
?
 
the value you want to give it
 
@user3313264 That's up to you
 
but i don't get it. what value i want to give? because i want to grab from Main (form) the listview's item
 
@KendallFrey @franssu Are we back at this about cutting sentences up :D
 
1:18 PM
@user3313264 I don't know. What did you expect it to be if it wasn't null?
 
@KendallFrey but i thought the public Main Form1 with get and set will handle it
 
That's a property. It won't magically assign a value for you.
 
i've set public Main form1 = new Main();
but useless..
 
Does it throw a StackOverflowException?
 
1:20 PM
Is this inside the Main class?
 
it's just doesn't put the text
 
Forget about the text
 
it's after
public Notify()
{
InitializeComponent();
}
 
Is it?
Yes or no
 
inside the main class?
but Notify is a windows form
public partial class Notify : Form
{
 
1:22 PM
ok, what is Main then?
 
so Notify is like form2
 
I have a hunch
 
and Main like form1
 
Keep your public Main form1 = new Main();
 
ok i keep it
 
1:23 PM
Then go in and check to see if form1.listView1 is null
I bet it's null
 
@JohnBoker thanls
it solve my problem
can u please tell me 1 more thing
where is app config file located?
 
@KendallFrey ok so now it's not null and it shows when i click the "+" sign the information from Main form
 
what is what do say what?
I have no idea what you mean
 
ok so now is not null
but still doesn't sets the text
 
1:26 PM
what?
you're missing a noun
what isn't null?
 
the form1
 
read what I told you
 
actually the form1.listview
 
SAY WHAT YOU MEAN FFS
Now think about this logically.
 
Ok so, the form1.listview isn't null anymore (you said to hover over "form1" word)
 
1:28 PM
I'm guessing you are showing Notify from Main, and you want to show some information from Main in Notify, correct?
 
yes
from main from it's listview
 
@user3313264 It's not null? ok, back up
hover over Items
 
ok
it says count = 0
 
ok, makes sense now
So, form1 is a new instance of Main, not the original. That's why you can't get the values you want from it. Make sense?
 
understand
 
1:31 PM
hello, do you know how is NullReferenceException implemented?
 
@KendallFrey oke so how to get from the current instance of Main the items?
 
hi does anyone have experience with .tfignore files and NuGet ? (yes, it's a combo i need...)
 
Does it check reference every time it is used?
 
So you need to give it the original Main, by passing it in when you create Notify
@mrpyo Yes, depending what you mean by used
 
@KendallFrey can you show me an example ?
 
1:32 PM
It's thrown when you access a member of a null instance'
 
every time it's method is called?
but i'm talking about internals
 
public Notify(Main main)
{
form1 = main;
InitializeComponent();
}
@mrpyo A method is a member
 
not language rules itself
 
@mrpyo What internals do you mean?
 
how is it implemented in vm
 
1:33 PM
@Roel I little bit of each
@mrpyo What do you mean VM?
 
does it check reference for null every time is it used
 
You mean the CLR?
@mrpyo Yes
 
or does it use memory protection mechanisms
 
No, I think it checks
Otherwise methods wouldn't throw
 
@KendallFrey and in Main form instead this Notify nc = new Notify(); nc.Show(); what should i put?
 
1:34 PM
new Notify(this)
And remember to remove the = new Main() in your form1 definition again
 
@KendallFrey I want my NuGet to add it's own .tfignore file, so i can specify that TFS needs to ignore the "Content" folder for example. (Nuget Restore should restore the "Content)
 
@KendallFrey i already removed, and now it works thank you very much, you are the best ^_^
HEY GUYS, REMEMBER, THE NAME KENDALL FREY, IS THE BEST !! ^_^
2
 
@user3313264 Now do yourself a favour and figure out why it works
lol
 
i already followed your logic and i got it now
thank you
 
cheers
 
1:37 PM
ja dank sehr schon :)
 
@Roel What Content folder is this?
 
one my package creates
 
What package is this? One that you made?
 
yes
so to starts from the top:
 
1:38 PM
I create a nuget package, which contains some *.lib files for example
so the package deploys the *.lib files to "Libraries\" for example
it also adds a post-build script to copy everything in the "Libraries" folder to the output
so far, so good
that works
 
If you create a .tfignore in your main package folder and enter \Content it should work
 
now, everytime this package updates, it will remove the current version, and apply the new version.
yes, i did exactly that. but it doesn't
 
Try removing the backslash
 
the problem is that TFS sees the removal of the package and marks the files as deleted. However, when nuget adds the new version, it does not mark the files as changed (they are already deleted). now if a developers checks that change in, it corrupts the whole thing
also tried, still no cigar
 
TFS sees the removal of the package? I'm confused about what that means
 
1:42 PM
theoretically, it should work
no, it sees the removal of the *.lib files, because a NuGet update == (remove current + add new)
if you understand what i mean
 
Are you saying that the .tfignore is interfering with your developing the package?
 
hi all
 
hi razor
 
no, that's without the .tfignore. I would like the .tfignore to fix this :-)
 
@RaZor you're late on today :p
 
1:44 PM
Try to explain to me step by step what happens and what goes wrong
I have no experience with developing a package
 
is ther any way to add config file to class library project?
 
@MuneemHabib No
 
ok, current situation, no .tfignore
 
@MuneemHabib That's the short answer. The long answer is "why?"
 
let's call the package "Awesome.1.0.0.nuget"
 
1:45 PM
@KendallFrey what if i want to handle a bug which require config file ?
 
this package creates a directory "Libraries" and adds x files to it (*.lib files for example)
it will also update the project config to add a post-build script to copy those files to output (PowerShell awesomeness).
That all works as expected
 
@MuneemHabib What bug is it, and what's required in the config file?
 
417 expectation faile
 
@Roel postbuild script for the project it's installed on?
 
@KendallFrey yes
 
1:47 PM
gotcha
 
@KendallFrey it requires we shoukd make Expectation100Contnue false
 
now, if a new package is created (the build server does this automatically), i go to "Manage Nuget Packages" and click "Update"
 
1 message moved to recycle bin
@MuneemHabib Can you set that in app.config?
 
THE PROBLEM: a NuGet Package Update will REMOVE the package first, and then add the new version of the package to the project
 
Why is that a problem?
 
1:49 PM
@KendallFrey yeah when i set that in app.config then it works f9 in main application
 
so: the REMOVE will delete the folder "Libraries". TFS sees this file change and marks all the files in it as "Deleted".
Immediatly afterwards NuGet will add the new files (same amount) to the "Libraries" directory. But TFS does not see this change because those files are already "Deleted"
 
@KendallFrey i want this thing ot be handle in class library
 
so, if you would then do a "Check-in Pending Changes", it will check in a "Delete" action for those files
 
@MuneemHabib That's not easily possible
@Roel ah, ok
 
If another dev gets latest version, it will remove the files from disk!
 
1:51 PM
It seems to me it should detect the files as changed, unless they were renamed
 
@KendallFrey any possible solution
 
so, what i tried then is to let the package also add a .tfignore file to the project, and tell it to ignore the "Libraries" folder (\Libraries)
but that does not work, TFS still sees the change
 
@MuneemHabib You might need to talk to someone who knows more about ASP.NET
 
@KendallFrey yes, i would also assume tfs would see them as changed, but apparently the delete trumps the consequetive add
 
odd
Can you reproduce it by changing the file manually in Windows Explorer?
 
1:55 PM
Kendall, I've been looking at that question I had earlier this week
and it raises another question lol
If my service is running on a Server inside the company network. My clients connect with that service. (no problems so far) But what is the best value to identify client? By local network ip adres of that machine??
 
identify in what way?
authentication seems best at first
 
well, from what I have now
client connects with the service and sends a GUID to the service which is currently the identifier of the Client
but the GUID is stored inside a variable of the Application
 

« first day (1278 days earlier)      last day (3661 days later) »