« first day (654 days earlier)      last day (4295 days later) » 

12:03 AM
Concord(e?) was fast too
 
 
1 hour later…
1:24 AM
hey , is anyone here?
 
hey man , I got something that is driving me crazy
I'm using Forms authentication , and I authenticate user from Default.aspx , then I check if user is authenticated through ajax and it keeps comming back false , but if I switch to a different page , like calendar.aspx then check if user is authenticated it comes back as true
do you think the server is taking the first 2 as an identical request ? someone commented on my question earlier and said that hitting the refresh button will not count as a different request , so I was thinking different ajax calls from the same page might not be either , it doesn't make sense though
any ideas @KendallFrey ?
 
Nope. Do you know how to remove file associations in Ubuntu?
 
try Ubuntu Tweak ?
 
I just want to fix the thing. Without any config program or whatever.
 
1:35 AM
config programs may be your friends
 
Screw this, I'll just ask ubuntu.
 
1:57 AM
hey @OutlawLemur
you got any ideas for what I posted
 
Hello
Can I have a link to the question?
 
2
Q: Forms Authentication Not Validating User properly

Scott SelbyI have this code when to sign in User , that string sUserData is properly set. Dim sUserData As String = HttpContext.Current.Request.Cookies("UserID").Value & "|" & HttpContext.Current.Request.Cookies("UserName").Value & "|" & HttpContext.Current.Request.Cookies("UserEmail").Va...

 
Lol Scott, you keep asking me on input with VB.NET questions even though I don't know it
@Kendall I had some brilliant idea for the description... but don't remember it now
 
Its the same as c# , a c# solution would be fine
the problem here is with ajax and forms authentication ,
 
I don't know ajax :(.... I will look up tutorials though
 
2:05 AM
oh, alright man
 
Sorry if I let you down, I am best at and
 
really?
 
I'm going to make an app that can identiy the writing on pills
 
2:06 AM
that is way down the road though , I barely have time for what I'm doing now
 
That doesn't include my top upvoted answer :P
 
4th place is just the third loser..
lol
 
True dat
 
 
1 hour later…
3:33 AM
HelloOoooooooooooo~
 
hi
anybody here?
 
4:27 AM
test
 
5:15 AM
hello
anybody here?
please...
 
the transcript is saved, so just ask your question and don't worry if anyone is here. When someone is here, they may answer it.
but yes, I'm here
for now
what's up?
 
how I know if if instruction is true or false?
thank you for feedback
 
what do you mean?
how do you know if an if evaluates to true or false?
I'm not sure I understand the question.
 
if(condition)
{
//this means that condition is true
}
else
{
//this means that condition is false
}
 
5:21 AM
but i have a long condition
 
like what?
 
how do i know where it is false?
 
can you give me an example of a "long condition"?
 
i am beginner, so don't blame me ^_^
row.Cells[0] == null || row.Cells[1] == null || row.Cells[2] == null || row.Cells[3] == null || row.Cells[0].Value == "" || row.Cells[1].Value == "" || row.Cells[2].Value == "" || row.Cells[3].Value == ""
 
no blame :) just learning
 
5:22 AM
sure :)
 
so you want to know which of those checks evaluates to false?
 
yes
 
like that, its impossible to know
 
oh...
 
if you care about which is false
you can split it into separate ifs
 
5:23 AM
yes, that i know
 
ok
the problem is the whole statement evaluated to one true or false value
 
so, when I asked a question on stackoverflow someone said that that condition returns always false
how did he know?
 
can you show me that question?
somethings are always false in certain contexts
 
sorry, I don't rember it...
I inserted a breakpoint, but i can't see the return...
 
another way you could do it
 
5:26 AM
how?
 
is create a method that does the check for you
public bool IsNullOrEmpty(object obj)
{
    return obj == null || obj == "";
}
then
in your if
if(IsNullOrEmpty(row.cell[0]) || IsNullOrEmpty(row.cell[1])...
 
oh, thank you
I try it.
 
and if you care about which one is false split that into separate if statements
makes it more concise and easier to understand and maintain
 
ok, inserted it in my code
now how do i know?
i must to leave
thank you for messages
 
@John Best would be try execution ?
ok.
do anyone know about online music apis for retrieving music metadata and also play it online.. ?
on our site..
I have found sth (something) from here - blog.programmableweb.com/2008/02/21/25-music-apis that grooveshark.com provides music information and provides music flash player widgets also.. which can be seen here lyricsfly.com/search/…
but recently our approach has changed and we need primarily music information, and I was checking for the api/sdk in gracenote.com but it seems licensed and I have to report about it soon but they said during registration that sdk link and documentation and client id would be sent in email within 5 business days.. :(
what I want I think is, Do anyone have working example using gracenote sdk ?
 
5:53 AM
@HarshBaid I arrived again.
 
ok, cool. :)
 
:)
So, i inserted it in my code
I put a breakpoint in that if
now, how do i know where it is false?
 
There are various options available to check, one of them is You can use the System.Diagnostics.Debug.WriteLine method to write messages to the Output Window.
12
Q: What's the difference between Console.WriteLine() vs Debug.WriteLine()?

ZolomonWhat's the difference between Console.WriteLine() vs Debug.WriteLine()?

or check how to use Watch in VS IDE - msdn.microsoft.com/en-us/library/0taedcee.aspx
I hope that is helpful. (fingers crossed)
 
6:12 AM
thank you
another question: how to get the text of a datagridview cell?
 
Thank you. :)
 
if it is normal cell (not editing or sth else) then row.Cell[index].Value otherwise as required..
welcome.
 
7:00 AM
Hi All..need a tip from you
my application takes the data from the SQL server and writes it in text file..
not that text has a System.Environment.NewLine added to it...
the new line is visible in my local machine
but when i copying the file to a windows 2008 R2 server, its showing as a special character.. :(
any idea??
now* that text
Anyone??????????????
 
7:14 AM
@Aditya hi Environment.NewLine is not supported on windows 2008 server but it is suported in R2 sp1
excerpts: "Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2"
please use a string containing "\r\n" (or a string containing "\n" for Unix platforms).
 
@HarshBaid Writing to the output stopped working for me. Quite annoying, and still don't know why
 
Anybody has ever implemented spell checker for winforms?
I am trying Hunspell for spell check but it's not that efficient..
 
7:33 AM
I once had to write an edit distance algorithm, but it was in console
 
spell checker for edit distance algo?
 
Edit distance algo for spell checker
 
Ohkay..
 
I think it was supposed to be efficient
If Hunspell is standard then it may likely be faster than your own Edit Distance implementation..
 
i have implemented hunspell
i have split text using " "
& taken in string[] words
if i have word like
Cricket,
(start
Hunpell says those are wrong words
On the other hands
MS word spell checker handles..it
 
7:41 AM
I thought Hunspell was open source
 
yes it is
 
I can't find an algorithm for Hunspell. Maybe you are doing something wrong?
 
it detects wrong word
perfectly
but it even adds some right words in it..
Now trying another..
NETSPELL
 
8:32 AM
Morning all
can someone help me with String manipulation please
I did it so many times but still dunno how to do it
what a shame
anyone
0
Q: string Manipulation Complexity

fdgfdgs dfgI have been programming since 1 year, I have done String Manipulation so many times but never understand how its actually been done or WHATS the best way of doing it, here am talking about dynamic String. let say I have this string String abc = "https://uu2020.devuueva.com/portal/mesddsa/usfore...

 
@fdgfdgsdfg I think it's better to put the thing that you need to exec a stored procedure in a seperate field
 
9:04 AM
hi
anybody here
 
@codery2k yes ofcourse.
 
i have a problem
i posted one question yesterday on Stackoverflow, i got the answer in my email but that is incomplete when i signed in my account on stack there is nothing here :(
what could be the reason
 
9:19 AM
I guess that the person who gave the answer deleted it. :O
 
k
i am facing a problem regarding MSChart , do u have some expertise in it ?
 
not having sth handy right now. I will check If I found sth.. (sth= something)
 
i am using string query like "SELECT VALUE e FROM Entity AS e WHERE e.EndDate > DATETIME'2012-02-02 16:26'" in entity framework. i want ignore millisecond then how to achieve this?
 
@PatelRikin have you checked for Canonical Functions - msdn.microsoft.com/en-us/library/bb738626.aspx ?
in that there are various date and time functions available for EF - msdn.microsoft.com/en-us/library/bb738563.aspx
 
thk u 4 reply let me know..
@HarshBaid i am able to convert into date time but i want to filter record with date and time and ignore milisecond. and this functions are for conversion
 
9:45 AM
@PatelRikin I think a quick soln would be sth like this
var t = m.Msgs.Where(mm =>
mm.CreatedOn.Value.Date == d.Date
&& mm.CreatedOn.Value.Hour == d.Hour
&& mm.CreatedOn.Value.Minute== d.Minute
&& mm.CreatedOn.Value.Second == d.Second);
 
I created a table in SQLite3 with the following DDL:
CREATE TABLE IF NOT EXISTS eval_run (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, datetime INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP)
but INSERT INTO eval_run DEFAULT VALUES inserts 0 for datetime - any ideas ?
 
@HarshBaid oh... its very long solution... thank u....
 
10:10 AM
@PatelRikin he he..
 
i hope to get a star
haha
never got one in chat room
 
10:23 AM
@RyanFung say something funny and without value
this will usually get you stared
 
10:44 AM
Let's all star @Fung randomly
 
10:58 AM
Good morning.
 
11:23 AM
good day, dear sirs :)
 
Tom
Anyone good at Windsor DIC please?
I know how to auto register plain classes and interfaces, but I am trying to find out how to auto register them when i hook up interceptors with them.
 
looking at your question, you use a lot of frameworks :p
 
Tom
? lol ? why just windsor and mvc and fluent validation and log4net and a few others, that s all
 
11:39 AM
also seen ninject + EF 4
anwyay never used DI so I'm of no help
 
Tom
:P i gave up ninject... cant understand it, seems easier with windsor...
 
"seems" seems to be the keyword then :)
 
Tom
hehe. thanks for reading it anyway...hmm. but AOP seems to be the way to do stuff. really wana know how people do auto rego with interceptors...
 
I don't know, havent seen any good use of aspect oriented programming in the wild, mostly it's just to create some convention-based framework, but I see that not as something positive
 
Tom
Windsor is some good stuff if dont already know DI. Read the book by Mark Seemann. pretty good :)
imho
 
11:47 AM
Well yeah I know DI, just havent really had use for it
 
Tom
cool :) i find it useful in my cases...
 
Mark also seems to have problems with Windsor :p
21
Q: Resolving HttpControllerContext with Castle Windsor

Mark SeemannIn the ASP.NET Web API, HttpControllerContext instances provide a lot of information about the current environment, including the URI of the current request. If a service relies on such information (e.g. the request URI), it should be possible to inject that information into the service. This i...

 
good morning @DavidDV
 
good afternoon :)
 

« first day (654 days earlier)      last day (4295 days later) »