« first day (1068 days earlier)      last day (3881 days later) » 

12:49 AM
@JLott See? google agrees with me. Can't get any better than that
 
1:00 AM
@CCInc What are you talking about lol
I am guessing that you are discriminated against because of your age?
 
1:18 AM
can I write to a streamwriter from within mvc app?
 
@JLott Yes, don't you remember that long conversation while I was half awake and prolly half insane many nights ago, while you and your boyfrined were drinking "adult beverages"?
I don't have kind feelings towards teh government
 
@CCInc good thing you are a person, being incorporated and all
 
If only.. sigh
 
Haha yes I remember now.
 
@CCInc the word discrimination discriminates against people who are being discriminated on grounds other than race, age, or sex
 
1:28 AM
@kush What.
 
^
 
Hiya
 
1:44 AM
hey @lews
 
Been a while. I missed @JLott by a bit huh? Dang
 
1:58 AM
@LewsTherin Miss ya too. However I am about to watch a movie
 
Ha ha, it's k :) I'm watching Ozymandias now :P
 
I am about to watch The heat!
 
Sounds familiar
Ahh
Meh :)
 
 
3 hours later…
4:59 AM
may i know how can i dispose dictionary?
 
5:17 AM
@Elegiac hey morning :)
you can set ur obj to null
 
morning @Neha :)
 
@Elegiac hws u doin
 
still same ... fighting stress in life
 
Dictionary<string, Int16> objDic = new Dictionary<string, Int16>();
objDic.Add("abcd", 35);
 
:p hm
 
5:20 AM
objDic.Clear();
 
thanks @JainulKhan
 
@JainulKhan Clear + dispose right?
 
Any DateTime expert here ?
 
@Sonic99 google expert here .. :p say
 
does dictionary auto-dispose inside a condition?
 
5:22 AM
@Elegiac yeah
 
if (rtb_CS.Visible == true && rtb_JS.Visible == false)
            {
                Keywo.Add("dec", "dddddddddddddd.");
}

else
{
Keywo.Add("asdasd", "asdasdasd.");
}
does it will be dispose? @Neha
 
I have a list of dates here,Then i need to Disable Sundays.. How do i do that
Dategroup consist of weekdays+weekends

List<DateTime> DateGroup = resource.dateGroups.ToList();
 if (ohot.DaysPerWeek == 5)
  {
     // Now i wanted to remove Saturdays & Sundays here
    //if ((rps.Start.DayOfWeek || rps.End.DayOfWeek) != DayOfWeek.Saturday && DayOfWeek.Sunday) { }

  }
 
@Elegiac yes you can
 
ok @Neha thanks!
 
neha any idea for my prob
 
5:27 AM
@Elegiac if (Keywo!= null)
{
((IDisposable)Keywo).Dispose();
}
@Sonic99 wait i ll see
 
ok
 
@Sonic99 what hav to tried so far
 
@Neha morning :)
 
@MAD4RA morning
 
i think this is the first time we've met in the morning lol
 
5:33 AM
:)
@Sonic99 ur code will work just make ur if clause proper
20
Q: Calculate the number of business days between two dates?

MartinIn C#, how can I calculate the number of business (or weekdays) days between two dates? Thanks!

@MAD4RA does ur popup works :p
 
nope lol not yet, same old z-index problem.
 
Good Morning :)
 
@MAD4RA hm
nice
I ll look when am free on dat
@codebrain morning :)
 
i still have no clue what to do about it !!
@codebrain morning :)
 
IS there anyway to Disable Some days from DayofWeek ?
 
5:41 AM
@Sonic99 ys
 
How ?
 
where you want to disable in calendar ?
 
No.not the calendar.I wanted to do it from Serverside
 
but where you want it to disable from server end
am asking which control
or any object
 
If anyone select full weeen i wanted to remove Saturday & Sunday from selected date range
*weeen == week
control is : Repository
 
5:49 AM
@Sonic99 u wont say it to disable , you can remove those days from repository
 
@Neha Good morning :)
 
ok.thx
 
@MAD4RA Morning :) what to do about what ?
 
6:08 AM
about that z-index issue @codebrain
 
6:18 AM
ignore it. try with something else.
If you cant find the bug/issue then it might anywhere else that you may never notice. spending 10 days on that sounds little stupid to me. better try with something else simple and finish the task..'
 
7:06 AM
hello to all!
i know this is a basic question
but can i ask how i can make this:

foreach (var i in XMLParser.GetXML(Text.ToString())) { }
into a simple

var i =
thanks!
 
u need this one??
 
yep
 
string i= XMLParser.GetXML(Text.ToString());
 
its an xml @JasperManickaraj
 
it returns a single string value Right?
Can u show me ur XML format?
 
7:19 AM
 public static List<JSTable> GetXML(string sText)
        {
            //lambda much faster than linQ
            var lstData = XMLParser.listJS
                .Where(n => n.Reserve_Word == sText)
                .Select(n => new JSTable
                    {
                        Reserve_Word = n.Reserve_Word,
                        Syntax = n.Syntax,
                        Descrip = n.Descrip,
                        TypeBelongs = n.TypeBelongs,
                        ReturnType = n.ReturnType,
you mean this @JasperManickaraj
 
user1804599
@JohanLarsson I’m going to have your haircut.
2
 
what is listJS?
 
user1804599
@JasperManickaraj listjs.com
 
Hello. I have got a easy issue, a think the basics, but I am new in WPF and I need your help. Thank you.
0
Q: Using x:key attribute with DataTemplate Element in XAML control definition

sgnsajgonI have WPF Application called Designer, where MainWindow (derived from Window) and GraphControl (derived from UserControl) classes are placed in Designer Assembly (which is set as startup project). Application uses a few other assemblies, amongst them GraphModel assembly, which contains view mode...

 
7:37 AM
check in wpf room too.
 
Yes, I have checked, but there is no anybody yet :).
 
8:07 AM
@Elegiac ur code is return a list that it contains Reserve_Word = n.Reserve_Word,
Syntax,Descrip,
TypeBelongs,
ReturnType,
Identifier
u need to create a class for those fields
 
wat do you mean @JasperManickaraj
 
public class sample{ public string Reserve_Word{get;set;}}
likewise syntax,descrip, typebelongd etc..
 
i see
i already have Parser @JasperManickaraj
 
public class sample{
public string Reserve_Word{get;set;}
public string syntax{get;set;}
public string Descrip{get;set;}
public string TypeBelongs{get;set;}
public string ReturnType {get;set;}
public string Identifier {get;set;}

}
oh parser u have a ah.. But instead of it using class is very simple..@Elegiac
@Elegiac u there?
 
yes still here
i just confuse why my code doesnt work
particularly this:
foreach (var i in XMLParser.GetXML(Text.ToString()))
                {
                    JsKeywordTipTexts.Add(i.Reserve_Word, i.Descrip);


                }
 
8:18 AM
sample assignobject=new sample();
assignobject.Reserve_word=i.Reserve_word;
assignobject.Descrip=i.Descrip;
try this @Elegiac
 
public static List<JSTable> GetXML(string sText)
        {
            //lambda much faster than linQ
            var lstData = XMLParser.listJS
                .Where(n => n.Reserve_Word == sText)
                .Select(n => new JSTable
                    {
                        Reserve_Word = n.Reserve_Word,
                        Syntax = n.Syntax,
                        Descrip = n.Descrip,
                        TypeBelongs = n.TypeBelongs,
                        ReturnType = n.ReturnType,
 
Assign it and check like this @Elegiac assignobject=lstData;
 
still doesnt work :/
 
 
1 hour later…
9:31 AM
Hey peps whats up ?
@Chukwuemeka hey
resigned here yesterday.
 
hey guys i am using microsoft live api in my app for uploading & downloading database but whenever I upload my database it gets upload to skydrive but after that when i open any page which has access to database my app gets SqlCeException Unhandeled & app crashes any idea what should i do?
as far as i know we cant catch sqlceexception in wp7
so what should i do?
 
Hi @codebrain did u saw @Elegiac problem??
 
@JasperManickaraj no i didnt.
why ?
 
9:50 AM
i just confuse why my code doesnt work
particularly this:
foreach (var i in XMLParser.GetXML(Text.ToString()))
                {
                    JsKeywordTipTexts.Add(i.Reserve_Word, i.Descrip);
                }
 
10:11 AM
getXml() method
?
@jlott :o so early.
 
@codebrain
public static List<JSTable> GetXML(string sText)
        {
            //lambda much faster than linQ
            var lstData = XMLParser.listJS
                .Where(n => n.Reserve_Word == sText)
                .Select(n => new JSTable
                    {
                        Reserve_Word = n.Reserve_Word,
                        Syntax = n.Syntax,
                        Descrip = n.Descrip,
                        TypeBelongs = n.TypeBelongs,
                        ReturnType = n.ReturnType,
 
10:31 AM
@Elegiac seems fine. what's the problem ?
 
i cant get item from xml into string
i already use sqlreader but still :/
 
XMLParser.listJS works ?
Whats listJs ?
 
yep
 
type ?
 
list
public static List<JSTable> listJS;
somethings blocking my reader bro
 
10:38 AM
you dont get any error ?
 
already use
pointing to

JsKeywordTipTexts.Add(
 
so this line doesnt work Reserve_Word = n.Reserve_Word ?
any problem with the static modifier ?
 
i try to direct other db but my reader works
i dunno why i cant use it in db converted to xml :/
 
I dont know whats happening, feeling like lost in a island
 
i already did this haha:
foreach (var i in XMLParser.GetXML(Text.ToString()))
                {
                   string res = i.Reserve_Word;
                   string syn = i.Syntax;

                   JsKeywordTipTexts.Add(res, syn);
                }
but itstill seems not working :/
 
10:44 AM
listJS is xml ?
@Elegiac you mentioned its already in use JsKeywordTipTexts.
 
yes
how can i get this thing out? @codebrain
 
XmlParser to xml reader will work ?
 
foreach (var i in XMLParser.GetXML(Text.ToString()))
                {
 
I dont know what's happeneing at all !
you got teamviewer ?
 
nope sorry ok ill explain more
this is scenario
im using 2dbs with compact4.0
 
10:47 AM
ok
 
the 1st 1 i already convert to xml and 2nd 1 was i test with direct
so for 2nd1 my reader works
heres my code:
                string conStr = DBEngine.CSDB_PATH;

                SqlCeDataReader sqldrAllData;
                SqlCeConnection sqlCon = new SqlCeConnection(conStr);

                ///1
                SqlCeCommand sqlCmd = new SqlCeCommand("Select TypeName, Syntax, Description From tb_CsType", sqlCon);

                sqlCon.Open();
                //sqlCon_.Open();

                sqldrAllData = sqlCmd.ExecuteReader();

                while (sqldrAllData.Read())
                {
                    CsKeywordT.Add(sqldrAllData["TypeName"].ToString(), sqldrAllData["Syntax"].ToStrin
this works fine
for reader only
and when i try it to the other 1db that converted into xml it doesnt work :/
i already change its sting connection with the string connection used in db
 
what's the converted xml ?
 
the 1st 1
ill show code
 
yeah i know. First one is converted into xml and you're trying to read the value from xml and it fails. right ?
 
the code above was code for 2nd1 (not converted to xml) ... but it works
and when i try to do same thing (just for test reason) to the 1st 1 (which is the one that converted to xml) it doesnt work
 
10:51 AM
okay i understood that.
 
for a bool? xyz = null, why does xyz==true return true?
 
ill show code for 1st1 (that converted)
 
yeah
@CBenni good question. haha
 
I am not 100% sure that that was the issue in my program
but I made sure the value is definitely initialized and now it works
not really the sense of bool? but yeah. I should have used "??"
 
may be its how you need.
@Elegiac The code you initially pasted xmlParser is 2nd one ?
 
10:56 AM
ok code heres my test for 2nd1 that doesnt work (unlike the 1st 1)
 
yeah
 
string conStr = @"Data Source=C:\Users\Z - Acc\Desktop\Pro_\DB\IDE_DB.sdf";

                SqlCeDataReader sqldrAllData;
                SqlCeConnection sqlCon = new SqlCeConnection(conStr);

                ///1
                //SqlCeCommand sqlCmd = new SqlCeCommand("Select TypeName, Syntax, Description From tb_CsType", sqlCon);
                SqlCeCommand sqlCmd = new SqlCeCommand("Select Reserved_Word, Syntax, Description From JS_TABLE", sqlCon);


                sqlCon.Open();
                //sqlCon_.Open();
 
@codebrain yeah I have never read through that... thats why my knowledge about nullable is kinda lacking
 
as you noticei just copy the 1st 1 (just for test reason
 
I didnt expect null == true to be true tho xD
 
10:58 AM
but i doesnt work :/
sqlCon.Close();
 
@CBenni Haha I am not good with nullables too. but your question is good. it doesnt return false on that.
 
yeah that doesnt make sense, but whatever xD
 
that just a test code but doesnt work :/
iwonder how can i deal with this code now:
 foreach (var i in XMLParser.GetXML(Text.ToString()))
                {
                   string res = i.Reserve_Word;
                   string syn = i.Syntax;

                   JsKeywordT.Add(res, syn);
                }
 
with my PHP experience, id have at least assumed null==false :P
 
it should work but it doesnt
 
11:01 AM
@Elegiac IT should, but since i dont work with xml much i dont know what's wrong. i dont think it ll be a massive fault. Parsing error or not checking proper nodes or so..
@CBenni null is null, how would you assume it as false ? lol , you cant. either way :P
 
its ok @codebrain
 
@codebrain because PHP. :P
I was just kidding
 
@CBenni :P If its nullable, check if its null before processing anything with it. otherwise it goes so deep and give bugs on live and you will have to work a lot to find this stuff.
@Elegiac sorry i couldnt be of help.
 
@codebrain thats what I do now. I thought bool? behaved more logical
 
not logical, more clever may be !
 
11:30 AM
@CBenni Nullable is just a pointer to the primitive. Pointer can be null, or point to an actual value. If you think about it like that, it's super logical.
 
mmh yeah
I guess you cant overload the == operator
:D
 
Of primitives you can't no, or you'd end up with C++-like terrible situations.
 
user1125394
11:42 AM
hmm how do you subtract two lists?
 
user1125394
[1,2,3].Subtract([1,3]) ---> [2]
 
user1125394
Except is my friend
 
11:57 AM
hello everyone
i'm looking for solution to find playing music file's location in my system, please help me
 
@programmer1 What playing music file?
There could be 10 playing music files. deeejaaay
 
I'm currently playing Bromance by Tim Berg, it's awesome!
 
0
Q: dotNetInstaller License Agreement Invalid CUSTOM resource: RES_LICENSE

dirtI'm attempting a simple setup configuration in dotNetInstaller. When I try to add a License Agreement and run the setup.exe I get an error as follows, then the license.txt file that I created is deleted. I've looked at and ran the Sample License Agreement which works, but don't see any differenc...

 
12:54 PM
Is there a way to pass new instance of view from the controller ?
instead of return view("view", model); ?
MVC 4.
found it. < # # >
@KendallFrey Haha WMP ?
 
1:09 PM
using WiX in VS2k12, how do you combine bootstrapper Bundle and setup Product or are you not supposed to?
 
@ton.yeung It is normal for people to have withdraws from me :P
and morning y'all
 
o/
 
I'm afraid I'm going to have scrummaster withdrawal.
My favourite scrummaster is moving on :_(
They said they need programmers, so hopefully my job is safe.
 
safe until you finish
 
Finish what?
 
1:16 PM
programming
 
The bugs never stop
 
HAMMERTIME!
 
fuck
 
@KendallFrey Aw, sucks. Replacement is not yet known?
 
They're going to divide it up between programmers and maybe others.
Taking turns, I guess.
I've always wondered what it is that he does...
 
1:20 PM
That sounds like a really bad idea.
 
Yeah, because I guess it's a very specific set of tasks, and kind of a waste to train everyone in it.
 
That too, and wasting the time of competent programmers on management tasks seems silly.
A good manager is worth his weight in gold, so getting one makes sense. Unfortunately, most suck.
 
1:41 PM
 
Hey fine peeps
hmm.. well should somebody wake up and have any idea: I have a 64bit assembly that won't load in Any/x86 mode (powershell x64 only snapin being loaded in there) - as MS would have it, i can't test rest of the project if i declare it anything but x64 (since ms test is doing x86 process only - and powershell snapin isn't there) how can I get out of this mess?
 
@Maverik Might sound really dumb, but why not just load the x86 variant when running in x86?
 
I can't - there's no x86 variant of the snapin
again blame MS for not giving me x86 exchange module to load
so i have this mstest shiz that won't load tests because i'm in x64... and i have exchange that won't work in x86 mode
 
Maybe you need to do inter-process communication.
 
just to get my unit tests going? damn I'd rather drop tests altogether if its going to be that painful >.<
(my actual program works fine)
 
dirt just open up a powershell room and I'll come bug you there directly!
 
checking (i still hate this mess)
@KendallFrey There's no such thing in my solution (even though there's a proper unit test based project in it)
perhaps i need to add an item ?
 
Hmm. Maybe
 
I found it in templates.. exploring (this is looking promising - i saw the mention of this earlier on web too but i thought its something old and isn't being shipped any more not realising i have to add it myself)
 
Ron
1:52 PM
Hi, I have fadeout/fadein animation that uses opacity + visiblity.
after I use the animation, I cant set the visibility/opacity properties using the code (element.Visibility = Visibility.something)
 
any MVC 4 dev ?
hey @ton, i have a issue.
i have a view displaying some set of items.
 
@Ron ... JavaScript?
@ton.yeung I'd use it.
 
Ron
@RoelvanUden wpf
 
@Ron Cross-thread operations is invalid exception?
 
@ton.yeung i have a search filter on the same view, after filtering i am returning same viewmodel with item matching search criteria to the view. but its still displaying all items instead of results from search.
return View("Index",swatchVM); doesnt update the view with the items in viewmodel but just over writes it.
like i want to clear the view before displayin the results
 
1:56 PM
@Ron Are your animations set to hold end or reverse or repeat or something?
 
Ron
my animations:

<Storyboard x:Key="FadeinStoryboard">
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
<DiscreteObjectKeyFrame KeyTime="0">
<DiscreteObjectKeyFrame.Value>
<Visibility>Visible</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation BeginTime="00:00:00" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="00:00:00.3"/>
</Storyboard>

<Storyboard x:Key="FadeoutStoryboard">
<DoubleAnimation BeginTime="00:00:00" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="00:00:00.3"/>
 
I seriously assume he's just doing UI operations on cross-thread boundaries.
Still, no actual exception has been explained. Might be helpful to give concrete info.
 
@ton.yeung i dont filter client side, i fetch selected data from server and store it in a singleton and pass it to view via viewmodel but it just over writes it. i am using $.ajax to send search criteria !
 
@Ron Is there an exception?
 
Ron
@KendallFrey nope
 

« first day (1068 days earlier)      last day (3881 days later) »