« first day (1159 days earlier)      last day (4015 days later) » 

00:00
bummer, that ends it, 155/200
@TravisJ I really am loathing deleting the entire site binding; just to re-enter it all. Sigh-
@Greg - I haven't been following all the nuances of the site binding. What does it accomplish?
00:15
@TravisJ Well in order for the server to allocate the correct site based upon the URL; you have to configure the bindings for IIS.
Essentially this is what will tell IIS what is relevant to the site to correctly load.
using (ServerManager manager = new ServerManager())
                {
                    Site configureSite = manager.Sites.Add(webAddress, Path.Combine(root, webAddress), 80);

                    manager.ApplicationDefaults.ApplicationPoolName = webAddress + @"Pool";
                    configureSite.TraceFailedRequestsLogging.Enabled = true;
                    configureSite.TraceFailedRequestsLogging.Directory = log;
                    configureSite.Bindings.Clear();
                    configureSite.Bindings.Add(@"*:80:" + webAddress + "." + domain, @"http");
Ah I see.
Doesn't it do that automatically already from the IIS Manager ?
@TravisJ Yeah, except my Framework allows our internal systems to control such events. For instance, if a customer doesn't pay how do you shut the site down then? Or they renew how do you ensure it isn't expired?
Do they have access to ftp and everything? I didn't realize you were providing hosted hardware.
@TravisJ Yeah.
@TravisJ Our company does.
@TravisJ But since the sites are Content Management Systems; I don't want to ruin those instances or installs.
Okay, that makes sense why you would do that then.
Sounds complicated.
00:28
@TravisJ Yeah, that is why I'm pointing there web-site path to a "You need to renew" or expired site path basically that site would load in it's place.
I came up with this comparison though, Reed helped. Basically the services is a dictionary<string, DateTime> that I get.
Which I think if correct, it should compare the Site Names, to the correlating DateTime. Then I'll create two separate private methods that modify to expire or renew the site.
Stuff that seems to only work in real production scenarios is rough to test.
Reed is a genius though :)
@TravisJ Yeah.
Well, he had a good idea of creating a handler class.
So the handler converts the dictionary out into a normal list.
And then I've got properties to link to compare the data.
2 messages moved to Trash can
Which looks like it should work.
@TravisJ All I've got for the directory comparison to ensure it is properly set . Is this.
            DirectoryInfo expireDirectory = new DirectoryInfo(@"C:\inetpub\wwwroot\Expired");
            DirectoryInfo actualDirectory = new DirectoryInfo(@"C:\inetpub\wwwroot\" + webSiteName);

            var compare = string.Compare(
                expireDirectory.Name,
                actualDirectory.Name,
                StringComparison.InvariantCultureIgnoreCase);

            if(compare != 0)
            {
                using(ServerManager manager = new ServerManager())
                {
My theory was, when it does the search through the expired items- if it doesn't equal that expired site- then set them to the expired site.
Then I'll write another method to handle non-expired sites.
Thoughts?
if it doesn't equal that expired site- then set them to the expired site? Was there a typo in there? It seems like if the directory isn't part of the expired site it shouldnt be set to expired
maybe I read it wrong
@TravisJ No there isn't, but I did find an issue.
@TravisJ The web-site name, doesn't include the site physical path; so it would be a poor comparison.
I'll have to grab the path once I have the name, so I need another loop in their.
Shit, I've got to go- I'll chat with you tomorrow.
00:43
c ya
kbye
 
6 hours later…
07:01
Good morning :)
hi @Codebrain @shakthi
Good Morning
Hey @Jasper
I am good. you ?
I'm good... I have one doubt....
Shall i ask
07:03
yeah yeah you can ask ! if i know i will answer
I have a model and i assigned the model to 2 different models named A and B respectively. I use model A and process.. after model A is processed the entities are cleared. So in that situation i need model B to do calc. But Model B also changed and that entities are cleared.. How is it possible..
I need Model B values does not changed
model to model ? why ?
some code ?
is modelB just a reference to modelA?
Nope..
Model c; Model A=c; Model B=c;
Model a and b both reference c, so if you update the model, the change will be seen in both, since they both point to the same thing
you may need to clone your object to avoid it being a reference.
no9
no9
07:23
good morning
Any sample code @Jafin
@JasperManickaraj Why are you doing that ? i dont get it.. show code of yours
07:51
62
Q: Why is (object)0 == (object)0 different from ((object)0).Equals((object)0)?

André PenaWhy are the following expressions different? [1] (object)0 == (object)0 //false [2] ((object)0).Equals((object)0) // true Actually, I can totally understand [1] because probably the .NET runtime will box the integer and start comparing the references instead. But why is [2] different?

08:02
morning
08:16
morning
@FLCL now thats a good question
hey @DaImTo
08:31
@FLCL == usually checks to see of the object references the same object. Equals can be ovveridden to provide different comparison of some form instead of just checking the reference. simple terms
@RaZor In the middle of one of the longest anwsers i have ever done. guy seams nice though
@DaImTo Nice! :) What question are you handling?
@DaImTo nice :) Good Job! :D
08:34
with all the work i have done with the google apis over the last year. Json and i are good friends. unlike me and xml. I have a restraning order out on XML its not allowed to come with in 500 yards of me.
@StevenYates, but why simply do not use Equals in both cases?
I mean, object has Equals method, so why not?
@DaImTo ahahahahah nice!
@DaImTo you know how to add custom properties to files in C#
@FLCL in that example casting it too an object like that overrides the int comparison and it'll try checking the reference's to the object. No need to cast too object like that then to Equals with int.
Unless you want to make sure the integers are the same object which they are not in the example
@RaZor what kind of files?
Office Documents, PDF, Text Files
etc etc etc
08:49
good morning :)
nope.
F*ck
@RaZor i have a load of tutorials on my blog. should i offer the solution that i use to test with as download? If i do what version of visual stuido should i use. If i have to make a solution for 3 versions of visualstuido i think i will go insane.
Uhm, I'm not sure I totally understand you but... You want to offer your visitors a DemoProject for each tutorial you made and posted on your site?
yup. basilcly
crazy?
08:53
kk, then use the version of Visual Studio which you used to make the tutorial and demo project
nah it's not crazy :) Demo's always clarify :)
can we assume that everyone uses at the very least vs 2010?
yeah we can @DaImTo
Is it possible to run sq functions, using LINQ??
sql*
stored?
scalar functions
yea
I just read somewhere that linq can't translate it
09:05
i think i read that some place to
yea I guess I just leave it as it is now :D
no9
no9
anyone knows if there is a way to find a "listBoxItem" by its content in WPF?
@DaImTo you have a tutorial for: WebService for Beginners? :p
09:21
nope.
hello all!
Hey @Elegiac
just want to ask if how this regex affects performance speed of my proj
\((\"*[\w*]*\"*,*\s*)*\)
is the regex above inside [] means every singlechar ?
no clue. haven't worked with Regex before
ok @RaZor
09:29
Hello
all
How to declare object of class written in .cs file in main project file
?
what do you mean by " written in .cs file in main project file"?
it two separate files or object class and class with main function are in one file?
i have made .cs file which is included in project
i want to declare class instance
how to declare that
i am using windows form project
which created form1.cs and form.designer.cs
made is name of your class?
a.class
any good suggestions for jquery tree view ?
09:36
a.class or a.cs?
and this class is defined in a.cs whichj i have included in project
@JasperManickaraj both
@shakthi i have fixed it that issue
does anyone know how to fix CA2204 warning for the literal img? I added img in the dictionary, yet getting the warning..
@JasperManickaraj I actually didnt understand that well.. if you could have showed code i might be of some help..
Actually code is full of calling function.. Lot of class files are associated.. Not able to pick the selected codes @shakthi
thats y?
09:40
is img some kind of reserved keyword? all the other warnings against words I added to dictionary are gone except img.
i like fancytree
@MuneemHabib so u need to declare class instance(object) in form.cs?
@JasperManickaraj yes
a _obj=new a();
@All : I have written a webservice that accepts textfile and it reads it and converts it into a string .
My doubt is, how can i convert the string into xml?
09:56
XmlDocument doc = new XmlDocument();
doc.LoadXml(str);
But my webservice returns only string.
Shall i paste the code here ?
setText(spnBeginEndDatetime, events.BEGIN_END_DATE_TIME);
formte date and time @RaZor @RenjithJR
explain more @Gamex
writing a method with 3 words of discription is bad...... -_-
combo of weird questions itc
i have get "05/24/2013 12:00PM - 7:00PM" in events.BEGIN_END_DATE_TIME so just want to only time @RaZor @RenjithJR
@RaZor @RenjithJR how it possible
10:06
extract the time from the datetime
12
Q: How to get only time from date-time C#

apekshaSuppose I have the value 6/22/2009 10:00:00 AM. How do I get only 10:00 Am from this date time.

i have create a page method in aspx page , so it shows err like there is no method like format
can we use [BrowserLinkCallback] decorator with static method (which can be called from JavaScript)?
[WebMethod]
public String txtFile(String filename)
{
StreamReader sr = File.OpenText(filename);
string contents = sr.ReadToEnd();

string var = "";
string strXSDFileds = "";

string[] parts = contents.Split(new string[] { "/" }, StringSplitOptions.None);
for (int i = 0; i < parts.Length-1; i++)
{
string str = parts[i];
string[] sep = str.Split(new string[] { "$" }, StringSplitOptions.None);
for (int j = 0; j < sep.Length - 1; j++)
{
var = "<HOTEL_ID>" + sep[0] + "</HOTEL_ID>";
var += "<NAME>" + sep[1] + "</NAME>";
The above webservice returns string. How can i convert it into xml? Pls help?
pastebin.com
have you tried to change public String txtFile(String filename) to public XmlDocument txtFile(String filename) ?
0
Q: Edmx need Primary_Key?

Co. AdenIts a problem While Creating Edmx in .net that on creating Edmx of DataBase only those Tables and views are added who had a primary key. This problem resolved easily but just making a column primary key in Table or View but i did'nt really get the actual reason why it is necessary?? Can anyone pl...

^ Interesting to all you EF people
10:19
has anyone worked with MVC facebook app?
@BenjaminGruenbaum, i think id field needs to be in every entity because framework cannot save updates without it
: I hav tried it, but it caused error
the only field that not changed while object modification and unique identifies it
@Renjith JR have you experimented MVC facebook app dev
10:23
no boss
i got struck with webservice
oh
@JasperManickaraj yeah may be. that's okay
i need a help of @KendallFrey
or any regex master
Anyone got a good example to learn things about a WCF Service?????
@FLCL that'd be my guess too
10:35
0
Q: not able to make checkchange of checkbox inside datagrid

LOL SingerI have following datagrid: I am not able to make checkbox selection-unselection when i run the code. I have following code to have checkbox inside datagrid: <DataGridTemplateColumn Width="50" Header="select"> <DataGridTemplateColumn.CellTemplate> ...

help plz
Hello
I have list of objects i want to show all objects in combo box
how to do this
?
@LOLSinger, you may go in two ways - bind checbox's IsChecked to your object field binded to a row or add event handler to checkbox
@FLCL but user is not able to make check changes by himself as it is done in asp.net
10:52
Hi
Do anybody know about office365?
i have some thing to ask
Have anyone developed facebook app using Asp.net MVC
11:11
Hi guys, somebody check this quest, stackoverflow.com/questions/20656514/…
Im trying this:
'SELECT '+ cast( @ID as varchar(20)) +' as Header_ID, SendingID, Barcode, Barcode2,.................
And getting this error: Error converting data type varchar to int.
:/
@LOLSinger, why? changing checkbox state by user in both ways changes your model state
test - please ignore
<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>
also model should implement INotifyPropertyChanged
no9
no9
11:34
how do I access custom control in wpf ... in xaml: <my:DocumentProgressSpinnerView />
i dont like wpf much... :/
it shows ok, but I dont see how to access it from xaml.cs file...
is there any name for this kind of declaration syntax:

    var obj = new TypedObj()
    {
        propA = "foo",
        propB = "bar"
    };
Object Initialization
11:50
@RaZor, object initialization and setting properties .. all in a single statement.
yes object initializers and/or nested object initialization..thanks @RaZor. Now I can search msdn for FxCop's CA2000 warning in a particular scenario.
:)
12:32
@Annie your very welcome Annie :)
this week is going buy to slow...
no9
no9
12:46
argh
wpf hates me
13:07
can anyone tell me if this is even possible? cast( @ID as varchar(20))
@ID is declared already as int
no9
no9
you want to convert int to string?
yes, Im trying to do this inside an sql commandtext actually
but i can't see why it should be a problem
declare @sql varchar
Set @sq= 'SELECT '+ cast( @ID as varchar(20)) +' as Header_ID, SendingID, Barcode, Barcode2,.................
and im getting a convertion error, so i can't really tell what the problem could be
no9
no9
i belive cast should do it
when i do it i get this error:
Error converting data type varchar to int.
no9
no9
varchar to int?
shouldnt be the opposite?
13:15
oh
well
maybe i have this error somewhere else omg :P
no9
no9
you can also use convert instead of cast
select convert(varchar(20),<urcolumn>) from <yourtable>
but the error is strange yes :)
yea i think in my table there are other values I need to check them all, thanks for being awake :D
no9
no9
np
Yes it worked haha, it was something totally different :D
Metadata file(C:\Projects\.....\some.dll) not found. what causing this ? i have the dll referred in my project
13:28
hi
I need a help with sql query
I have a parameter which can either be null or not, & i have to add a inner join based on that paramter
how could i achieve this in case i dont want to use if..else clause for this
no9
no9
@shakthi reference project thats building into that dll has some errors
clean, only build that referenced project
Who can help me with some questions about a WCF Services??
@neha where ((blahColumn is not null) and (blahColumn !='&'))
no9
no9
yes use null check
@DaImTo how it will work when am having null in my paramter & in that i dont hav to add my inner join... thing is i dont want to repeat my query just for a null check
13:37
@neha is & your paramater or is it the actualy charater &
no9
no9
@neha WHERE (@parameter1 IS NOT NULL OR sometable.somefield=@parameter1) ...
shouldt this work ok?
@DaImTo &==and in language not in query parameter , sorry for confusion
@n09 thats just nasty you dont want to test the value of @parameter in the sql statment test that out side.
@neha the one i gave you will return all the results as long as blahColumn is not null or &. Beond that i dont understand your question with regards to innner joins
no9
no9
yea you are right @DaImTo.. wasnt thinking clearly
@no9 you scared me there for a minute :)
13:42
see my query is like I have a paramter @userid ,
Now I have query which already have a union with some other query
Now in my both query I wish to add a inner join only when my @userid paramter is not null
are you joining on userid?
@drch yea... that inner join call a table valued function which make use of this paramter
I'm working on an MVC application and have an issue. I have multiple views (say view1.cshtml and view2.cshtml) calling the same partial view (say _partial.cshtml). _partial.cshtml at one point has Model.SomeProperty which is a valid property i nthe model passed into view1, but not in view2. When the partial is rendered in view2, it should just always be true. Right now instead, it's giving me "ModelForView2 does not contain a definition for SomeProperty"
0
Q: SPDY server on C# or even on any language for Windows OS

Gelo VolroFor WebSockets .NET FW 4.5 has the namespace: http://msdn.microsoft.com/en-us/library/system.net.websockets.websocket(v=vs.110).aspx I begin to search libraries for another popular web protocol SPDY by name. For C# there is no results. For C/C++ I have found smth, but the source code is for *...

Figured it'd be a quick fix, no reason to throw in a full questoin on SO
no9
no9
13:45
@DaImTo @Neha ON ((@userid IS NOT NULL) AND (alias.column = @userid)) is a conditional join ... I must be missing a point here ...
Note: I need to fix "if (Model.AddTimeOffBlackounts){}" to something LIKE "if (Model.AddTimeOffBlackouts ?? true){}"
Any way to check in C# something like Model.HasProperty(SomeProperty)?
@neha i see your problem now i think.
ok
you can with reflection. Type.GetProperty
declare @userid int = 615284440
select *
from ftweet inner join duser on ftweet.userid = duser.UserId
inner join wdTweetMention on ftweet.userid = wdTweetMention.userid
where wdTweetMention.userid = @userid
13:49
@drch Hmm? I haven't used reflection before, could you expand on that?
wdTweetMention.userid can be null. but if i have my @user = null thats not going to work.
if it null i dont want that join in my query
@DaImTo can you help me with the following problem
@Neha think your going to have to test ofr it outside the query and run two seprate querys
@RaZor ?
In my application I checkout a document. this will create a new file in the localdrive using the following method: File.WriteAllBytes. This runs perfect. But when I try to check in the document. It says that the file is in use by another program...
13:52
@drch Model.GetType().GetProperty("SomeProperty") ?? Model.SomeProperty
@no9 i dont understand what do you mean my referenced project. there is a dll folder with all the dlls, and my solution has 38 projects and all of them has those dll reference.
did you forget to close the connection to file?
you mean like this?
when using the method: File.WriteAllBytes it gets automatically closed
@DaImTo @drch
something like this i want
If @param IS NULL
SELECT *
FROM TableA
Else
SELECT *
FROM TableA A
JOIN functionmine(@param) as B on B.ID= A.ID
13:53
look at this @DaImTo
@Neha exactly
@DaImTo but I dnt want to do this in this way
any other option for this if you can have
@Neha theres a lot of things i life you dont want to do one way or another. But sometimes its the only way :)
@RaZor how are you trying to open it?
MS Word
but if I open it in my Application it says the same thing :/
@DaImTo my select quer is not as small as this example, so if else only unnecessarily give length to my code
13:57
@RaZor how big is the file? Could anti virous be trying to scann your new file and have it locked mabye?
file is only few kb's
no9
no9
@DaImTo my thought exactly ... i had antivirus locking files before
@Neha i figured as much. I have run into this problem before. YOu could try and build the query manualy into a variable and then execute the varable.
if I restart my application the file is unlocked so it is definatly something in my code @DaImTo
@RaZor for the fun of it kill your anti virous.
13:58
dynamic query... u r suggesting is @DaImTo
@Neha yup.
@DaImTo done, still same message
reboot?

« first day (1159 days earlier)      last day (4015 days later) »