« first day (1077 days earlier)      last day (3885 days later) » 

12:00 PM
@RoelvanUden, yeah but they really want an intellisense for js like visualstudio ... hardest part for me i never use a js code editor i only use it for some math issues before mixed to PHP ... and the translator its already done by them ...

@Nanako is v8 engine 3rdparty component?

@KendallFrey hehe yep . they want to rush things out then ill give them a rush output haha
 
So what was your question?
 
i just need a parser haha @KendallFrey
detecting ) and ; in whole richtextbox
 
No, use your original approach.
) and ;? That's easy.
Just do a string search, or the regex [;)]
 
string search?
 
v8 is a google javascript engine, opensource, when it compile a script it has an internal structures that holds errors, functions and all stuff, like a linker
 
12:03 PM
am
@Nanako its it ok to use in a product? or software?
if your developer then youll market it
 
It's the fastest way to write a "lexer"
BSD license -- do whatever you want
almost
but you'll have to port it, and I guess if you're stucked with a regexp, it won't be an easy way for you
 
@KendallFrey so you mean ill use another regex for that?

@Nanako i see ill take a look
 
@Elegiac Yeah, that's the most obvious way
 
hehe ok
 
It's also easy to make it more powerful, to a certain extent.
 
12:07 PM
how about this
i have pattern for searching a specific syntax
then i want to cut it with ) and ;

do i need to mixed it up to that regex?
sorry for this noob Question @KendallFrey .xD
 
You want to split the string?
 
yeah
 
No need for a regex then
 
what should i do now @KendallFrey
 
"foo".Split(';', ')');
 
12:12 PM
how about this:
var myVar=myFunction(12.12,12,'Microsoft.XMLHTTP','Microsoft.XMLHTTP',"Scripting.FileSystemObject",FormData,12,new FormData, true, false );
 
What about it?
It's not valid JS either
 
i need to split/end expression with );
 
) and ;, or );?
 
both
 
end? what does that mean?
@Elegiac No, can't be both
 
12:14 PM
i mean ) and ;
separate .xD
 
Do you want to remove ); from the string?
 
no
 
So a split is probably the wrong choice.
You want to signify that ");" ends a statement?
 
i want to check every keyChar after typing by the end-user in TextChanged event
i want to split regex with );
 
Now you're splitting regex? I thought it was JS :)
 
12:18 PM
sorry for my english was bad .xD
 
its both
intellisense for js using the power of Regex hahaha
 
You want to turn "bla(bla);blu(blu);" into "bla(bla);", "blu(blu);"?
 
yeah
exactly :)
 
Does anyone knows anything about web crawlers? What data structures do they tend to use?
 
12:20 PM
You can probably split on (?<=\);)
 
I know that the answer is (could be anything), but which one to focus on?
 
@AmmarAhmed Data structures for what?
 
so i still need to work on parser @KendallFrey
 
I'm sure they use some arrays.
@Elegiac Don't call it a parser if it's not a parser.
 
sorry
haha
what do you call that?
btw
i thought it was parser lol
 
12:22 PM
A hack :P
 
ok hahaha
 
To me, a parser is a full grammar.
 
eh I don't know how to private roomz
 
ill make a sample code demo (for what i really wanted) wait @KendallFrey
 
rooms aren't private. Ask your question here
 
12:24 PM
@KendallFrey I don't know what I am asking.. I guess if I want to build a search engin from scratch, where would I look
 
The main part is an index.
to search, query the index.
use crawlers to build it
 
I see
I guess "indexing" is what I should start googling
I know it is silly .. but I really struggle at forming up questions :(
thanks
 
@AmmarAhmed i feel you bro
hahaha
 
I have an interview coming soon and I need to go back and review all of the basic data structures, sorts, O(n) and all of the fun stuff
I got spoiled with the likes of list.sort()
 
beware
public static void Main ()
    {

        Regex rx = new Regex(@"\b(?<word>\w+)\s+(\k<word>) /*this is not a realregex --- this is sample of my syntax regex*/",
          RegexOptions.Compiled | RegexOptions.IgnoreCase);

public void  A Hack()
{

//lets say this is my whole a hack xparser

}

        // Find matches.
        MatchCollection matches = rx.Matches(A Hack());


        foreach (Match match in matches)
        {
           //every Matches method typed in rtb should add in a new list .
something like that @KendallFrey
 
12:32 PM
You should use split instead of match
 
im having hardtime composing a question lol
 
it is really hard
like someone said, asking the right question is 50% of getting the right answer
 
lol
hehe right
 
Has anybody here used PostSharp? Mine isn't working.
 
www.postsharp.net :D
 
12:39 PM
That's no help.
 
hehe ok
 
never used it.. but wow it looks cool
 
hellloooooo
 
also .. Scott Hanselman is everywhere.. I worry that he is becoming too powerful.
 
Skeet will protect us.
6
 
12:43 PM
omfg
when Skeet fails to compile his code, the compiler apologize? .xD
 
haha
 
lol
bye all :) goodnight
thankyou
 
Yay, it finally postsharped!
Now to figure out why it croaked
 
kendall
shhhhhhhh
working here
 
12:58 PM
string s = (val ?? "null").ToString(); // Is there a better way to do this?
 
only if you think a ternary operator is more readable
vall == null ? "null" : val.ToString();
obvs you have a redundant str.ToString() in yours, but thats really minor
 
I think I might want to change the whole message, rather than just saying "value is null/something"
 
make a string.format helper that converts null to "null" ;)
 
Problem is, I don't have a way of distinguishing between null and void. (I'm working with return values)
 
boo urns
didn't you have a MethodInfo at some point?
 
1:04 PM
Yeah, I can probably look at that.
 
if (methodInfo.ReturnType == typeof(Void)) { }
 
It actually returns typeof(void)? lol
 
no, System.Void
 
Same thing
 
i thought void was a special case.
 
1:06 PM
It is
 
public Void Foo() { } // System.Void cannot be used from C# -- use typeof(void) to get the void type object
 
Yeah, the keyword is required there.
 
is that valid in VB?
 
In VB it's a Sub
 
man the day flies by when you get in at 10am
 
1:08 PM
stfu
 
think rlemon has been having some fun
 
lolwut
 
yeah. capri6 has an internet boyfriend
 
@KendallFrey wouldn't s = val.ToString() ?? "null"; be better?
 
null reference
 
1:19 PM
^ that's what I was fixing
 
this is why C# needs an elvis operator
 
?.
Like that?
 
yeah. aka "safe navigation"
var foo = user.?Address.?Street
returns null if user or address are null
or street for that matter
 
Would be nice..
 
There would be problems too.
int count = list?.Count;
 
1:23 PM
Make it default(int)
 
That has its own problems
 
id say make it restricted to reference types
 
if (count == 0)
{
    list. ...
}
@drch Now that's just too restrictive.
And what about methods?
 
yeah..
hmmm
it could return nullable<T> for non-classes
 
Oh
How about that:
 
1:24 PM
@drch Clunky
 
int count = list?.Count ?? -1;
 
@RoelvanUden that would be method-specific though
 
That's what drch said
Not a terrible proposition, I guess.
 
@KendallFrey i don't think its all that clunky
you would get used to it in that specific case
although it would probably get abused
 
It would be int? count = list?.Count because it can be null-able, but an implicit conversion for int count = list?.Count ?? -1 wouldn't be all that weird.
 
1:26 PM
I love Eric Lippert's idea to make reference types non-nullable by default.
 
@RoelvanUden right but youre talking specifically about some property that shouldn't be negative
 
Yeah, so -1 is a perfect value
 
yeah but then each class would have to implement the .? on a per-property basis?
 
@drch The ? operator would always give a nullable value.
 
oh sorry herp derp
 
1:27 PM
The implicit conversion to a non-nullable value, in this case int, would then happen with ??
 
@drch Why would classes have to implement it?
 
yeah sorry i misread the ?? bit from roel
LETS HACK THIS INTO MONO
 
It might be a nice language feature proposition.
 
I never know whether to do if (x is Y && (x as Y).foobar) or Y y = x as Y; if (y != null && y.foobar)
 
1:38 PM
First if you need to access Y more often, otherwise second :P
 
Did you say that backwards?
 
I did.
 
dont do is and as
do is if you can, as if you cant
ie if youre going to cast it anyways, use as
 
I need to access a property of the object.
 
just saw the null reference comment. Silly me trying to code :(
 
1:42 PM
yeah, so #2
dont you wish you could do (x as y).?foobar ? :P
 
technically speaking, as is doing a type check anyways, so doing is then as is kind of redundant
but then again, if foobar is a bool for example, it would look cleaner
 
Yeah, but checking for null is ugly too.
is/as is more human-readable
 
dont write methods where you don't know the type
 
@drch ?
 
1:54 PM
iono
i generally do something like:
var y = x as Y;
if (y == null) {
   //throw or return
}

//do shit with y
0
Q: How to speed up this algorithm?

Colonel PanicThis counting method is quite slow in one unit test. Can it be improved, perhaps by parallelisation? Edit: To be clear, I can't change the interface or the implementations. public static int CountBusinessDays(ICalendar calendar, DateTime start, DateTime end) { int nBusinessDays = 0; fo...

 
2:19 PM
Is it normal to take forever to save a small change to a .xaml file?
 
@kush If the file is large, yes.
 
about 400 lines?
 
Lines are meaningless. What matters is bytes.
 
Does visual studio try to render it or something?
27 kB
 
Shouldn't take too long.
 
2:21 PM
Well, it is done now :)
 
It shouldn't take two minutes to save a 27 kB file.
 
unless its a network share in antartica
connected via 3g
 
g'morning
 
I started VS, opened the File menu, and it crashed.
 
morning stevie wonder
 
2:36 PM
;)
what 'list' are you on now?
too lazy to click and read the context
 
19 hours ago, by drch
yep. and sha-3 is non NSA so bonus there
 
ah gotcha
 
you working these days steve?
 
nope, looking though
this is the last large vacation i get in my life other than retirement.... its depressing, to be honest
 
well there's vacation and there's vacation
you can go away like me to another country and work
and you can always take a hiatus
 
2:39 PM
that would be awesome, i can't deny it
 
DONT LET THE MAN TELL YOU WHEN YOU CAN TAKE VACATION
 
i always thought it would be fun to work in sydney
lol yeah
 
yeah sydney is cool
 
you've been there?
 
yeah i lived in AU for all of 2004
 
2:40 PM
wow!
how was it????
 
it was sweet man
 
im having a mid life crisis at the ripe old age of 27
 
yeah same so i went to AU for a year ;)
 
lol
 
i was actually working in restaurants in those days. realized i couldn't come home and make $13/hr anymore and applied to school from there.
altho it was a sweet job to have at the time
 
2:42 PM
eh, i never worked in food
 
Working in food
I would love to sit in a huge pile of donuts while programming.
 
so, i walked away to go to the bathroom, and as i walked away i thought to myself "kendall is going to say something smart about working in food, all while realizing i meant the food industry"
 
ahah
 
trying to figure out how far in advance i should start looking for a job in another country
 
Think how awesome it would be to "swim" in a pool filled with bacon.
 
2:46 PM
ew
 
Bacon. Everywhere.
 
@KendallFrey Do you want ants?
 
OM NOM NOM NOM DIABEETUS NOM
 
@KendallFrey I don't think it works that way
 
It would.
 
2:48 PM
crunchy bacon or soft? i love soft bacon.... i would totally take a dive in that shit
 
It should not fold in half without breaking, but it should be flexible.
 
crunchy bacon is.... ewww gross
 
I fried a PERFECT piece of bacon once.
I nearly jizzed while eating it.
 
did you take a picture? because pix or it didnt happen
damn, i typed that at the wrong moment
 
I think I might have.
lol
Stop lying.
 
2:49 PM
ok sry
 
lol
I did say "nearly"
I'm connecting my phone, be patient
 
why are we so weird kendall
like, i'm pretty sure if the NSA ever did decide to spy on us..... they'd try to send us to the loony bin
 
@Steve we are all wired here :)
 
hahah true
 
@KendallFrey are you an only child?
 
2:51 PM
@drch he is definitely a child
 
kendall has like 10 brothers/sisters
or something crazy if i remember correctly
 
Hardly
 
@KendallFrey softly
 
I'm the oldest of 5.
 
shit i didnt know you were mormon
 
2:52 PM
LMFAO
 
there was a mormon family i went to school with
9 kids
+ 1 who drowned, and +2 miscarriages
 
lol
not funny, but still
 
there was a mormon family who used to live down the road from us, we called them 'the goat family', because they had this huge van, they'd pack in like 10 kids and a few goats EVERYWHERE they went
 
Sorry, I don't have the picture of the bacon.
 
2:54 PM
damn
 
I'll get another awesome picture for you.
 
its... strange that you actually checked though
 
@KendallFrey did you check your wallet?
i could see you pulling out a bunch of pictures of your favorite pieces of bacon
 
hahaha
 
2:55 PM
i'm laughing because i could picture it too
 
More noms
 
i hate lobster.... not the actual taste, but the fact that it takes way more work to get food out of it(lobster/shell) than what its worth.
 
I normally hate that too, but I don't often get lobster soo...
 
dude you work for like 3 minutes for 1 small ass bite of food.... whoever was the first person to eat a lobster had way too much time on his/her hands
 
remember what i said about how time flies when you get to work at 10am
that only applies to the beginning of the day
 
2:58 PM
hah
 
my inner beer clock is going nuts
 
what time is it there?
 
4pm
 
I'm a person that hates to work for food. I hate bones in meat. I'll go to a steakhouse and order a burger.
 
FEELS LIKE 7 THOUGH
 
2:59 PM
you're leaving at 5?
 

« first day (1077 days earlier)      last day (3885 days later) »