« first day (1411 days earlier)      last day (3547 days later) » 

4:00 PM
@ton.yeung the codes work for all our products, wasn't aware you could still purchase a 1.0. The major difference is chassis strength, speed, and responsiveness. Sphero 2.0 is much much better.
Awesome =) Yeah dogs love sphero. I would recommend a nubby cover though, it makes them a little more fun for pets.
Cats? Not so much ;)
Pretty sure the code works on our website store only, I would prefer to give it to you in private.
Yeah the EDU stuff is huge right now! Our team on that is really kicking ass.
@ton.yeung I'll invite you to a chat
or e-mail is fine too, evan@orbotix.com
 
Well, sorry for noise my test is fair enough I guess. Later
 
@ton.yeung You call Fed Ex?
Maybe tomorrow?
Anyone know why all the files in my local directory appear, but my solution doesn't have all the files?
 
What do you mean?
A solution only contains the projects it contains.
 
Well, I managed to get the file to appear in Visual Studio but it looks hidden.
@ton.yeung Tomorrow at five?
 
@Greg What are you trying to do? Visual Studio is not a filesystem
if you want a file to be included in a project, include it
 
4:11 PM
@ton.yeung Yeah.
The EditOrderJson is visible, valid in my solution. The others aren't, so they are ignored in publish.
@ton.yeung After that?
Okay.
We can do it Friday.
 
@Greg Those are files that aren't in your project
 
@KendallFrey They are hidden.
@ton.yeung Well, I don't get off work till 4-5
 
4:31 PM
@Greg That doesn't affect anything
 
Hidden in solution explorer means they are in the filesystem but not in your project
 
Hidden is just a filesystem flag
You can include hidden files in your project
 
4:50 PM
morning all
 
It is giving an error, with Code Behind though.
 
@Greg Right-click the "hidden" file and click "include in project" to include a file in the project.
 
@MikeAsdf Grayed out.
They are in a folder called:

Services

Does this look correct?
<%@ WebHandler Language="C#" CodeBehind="LineItemAdmin.ashx.cs" Class="rscAdmin.Services.LineItemAdmin" %>
@ton.yeung Yeah.
 
can't molest the project while debugging
 
Thank you.
 
5:22 PM
@ton.yeung misping?
 
5:36 PM
Ew. Chrome 37 screwed up all fonts.
 
@ton.yeung you're a huge nerd. What's the name of that underwear-themed anime again? It's pretty crazy
 
@Pheonixblade9 uhh, hentai?
 
@ton.yeung that's the one
lol yeah
she was talking about Kill La Kill and how egregious that nudity and such were. It made me think of that one. I saw a short video on reddit once
 
5:53 PM
@Pheonixblade9 Underwear-themed? Strike Witches? :D
 
you thought I was joking when I said underwear themed anime @KendallFrey hahaha
 
no
I will believe that there is anime of everything
It's Rule 34.5
 
6:15 PM
Hey all, anyone in here ever used Memcached with .NET?
Also, Kill La Kill was so blatantly over the top fan-serviced that one must conclude that it was done as an ongoing joke.
As far as memcached is concerned, I am really just trying to figure out how objects are stored in the cache. Are they the straight up binary copies of the object in memory, or are they instead a serialized version of the object?
Maybe they should stick with Azumanga or something.
 
isn't Kill La Kill about like... a 14 year old girl?
yay let's put a 17 year old girl in skimpy stripperiffic clothing!
hmmm
they work? at what age? do they just do manual labor forever?
hmm
so you can actually get a decent job without a high school degree in japan?
 
6:38 PM
@ton.yeung What anime is basically porn? Aren't they supposed to be cartoons?
@ton.yeung ?
I'm not following...
 
Anime can range from My Neighbor Totoro (probably the sweetest and least conflict or questionable content of any fiction ever) to some pretty graphic sex and violence.
 
@CodeWarrior Like what, I just don't get how or why a cartoon would require that?
 
@ton.yeung if im not mistaken the two people behind him are also males
 
My Neighbor Totoro > Spirited Away > Ah My Goddess! > Trigun > Last Exile > Full Metal Alchemist > ??? > Elfenlied
 
Those are good, or crazy over the top?
 
6:42 PM
@Greg don't think of them as cartoons like for kids. They're just an animated show.
 
SMK
hi
 
well more like a range from very peaceful to very adult/violent
 
@Greg Some people like the style, some of the things that are done in them cannot be done in live action (without a massive budget), and some things depicted in hentai anime cannot be done for legal/moral reasons.
@SMK Heya. hows it going?
 
interestingly, the reason tentacles are so popular is because depicting the male form was originally banned in Japan.
 
@ton.yeung LOL no
Oh yeah I have seen that one and a few others too.
 
SMK
6:45 PM
it is going super
excuse me children here
now a days age doesn't matter for programmers
do you know how old is the youngest programmer?
law can't stop people's brain law lays who cares
to use this site you should know that you should talk in proper language it is also a rule because this is a public chat
 
7
Q: What's the minimum age to join Stack Overflow?

Pedro LobitoI just saw the profile of a user that's 14 years old on SO and I'm wondering... What's the minimum age to join Stack Overflow?

 
SMK
i am only a programmer not a scientist to know your terms,
13 yrs old are still kids don't ruin their lives thinking that they are adults like a 40 year old man
ok It is nothing I just said if you didn't intended to ruin anything then fine
no arguments
i better sleep
good night
 
There are 14 year olds that can program better than I
 
7:01 PM
there are 8 year olds that play guitar better than me
don't stress
 
@Pheonixblade9 @CodeWarrior Hm, didn't know that.
 
@ton.yeung I'm worried I won't ever be able to hear picked acoustic guitar and not think of Dwarf Fortress.
Oh shite I just found the a-word in our source code. ArrayList
 
7:22 PM
Slaves to Armok: God of Blood Chapter II: Dwarf Fortress, usually shortened to Dwarf Fortress or simply DF, is a video game set in a low fantasy universe with part roguelike and city-building elements. The game has two primary game modes: Fortress mode, in which the player takes control of a group of dwarves and attempts to construct a successful and wealthy subterranean fortress in a mountain, and Adventurer mode, which places the player in the shoes of an adventurer as they wander the world and do battle with various creatures. A third mode, Legends mode, allows the player to view a detailed...
 
You should play it some time
 
That is an outstanding game
Just wish I had time to play it
 
It'll rewrite what you think a game is
 
It is
 
@ton.yeung It must be, The video made me instantly think of it
^ soundtrack
@ton.yeung Don't let the graphics fool you, this is an insanely detailed game
No idea
> The piece was written and performed by Tarn Adams.
It's kind of filler, considering the rest of the game has no sound
I'm not saying you should get into it, I'm saying you should experience it
It's pretty complicated to run, but I followed the tutorial on the wiki, and I'm up to about 100 dwarves on my first real try
I discovered it's great for on the go, since you can use a laptop keyboard and no mouse
 
7:34 PM
Hi all! I have a recursive data structure, and I need to find all child or grandchild objects of type T. Can this be done easily using SelectMany() ?
 
root.Children.SelectMany(child=>child.Children.Concat(new[]{child}))
maybe
 
I should have made my question nonboolean :)
 
Though SelectMany isn't recursive, and you'll have to implement the recursive part in your data structure
Or via the visitor pattern
 
Yes, I have Foo.Dependencies where Dependencies is List<Foo>
 
7:37 PM
@MarkRichman Do you want all descendants, or just two levels (children + grandchildren)?
 
And you want a list of all direct and indirect dependencies?
 
Correct
i need to query the object graph before adding a new object, so as to avoid duplicates in the graph
 
Sounds to me like you should have an auxiliary Hashset of objects, using an equality comparer that meets your definition of "duplicate"
 
this gets me my direct children:
var children = from c in twc.Dependencies
                    .SelectMany(component => component.Dependencies)
                    where (c is TalismaServerComponent && c.TargetMachine.Equals(w.SelectedMainDatabase.Server))
                    select c;
 
public IEnumerable<Foo> Descendants(Foo foo)
{
    return foo.Dependencies.SelectMany(f => Descendants(f));
}
Off the top of my head
 
7:39 PM
hmmm....that may work, if it doesnt stack overflow
 
we're dealing with a graph, not a tree right? So I don't forsee a recursive approach as being a clean solution
 
it is a graph, not a tree
a directed acyclic graph if that helps
 
acyclic does indeed help
doesn't that make it a tree?
 
will post a pic...one sec
 
acyclic could be non-tree
A
|\
B C
|/
D
 
7:42 PM
 
@MikeAsdf ...yup
 
so when adding a "Talisma Server" component to the graph, I need to make sure it wasn't already added via a "Talisma Application Server" or a "Talisma Web Component" Dependency
 
4 mins ago, by Mike Asdf
Sounds to me like you should have an auxiliary Hashset of objects, using an equality comparer that meets your definition of "duplicate"
 
I think a dictionary or something would work better
 
7:44 PM
@MarkRichman You still want to add the dependency for the preexisting object though, right?
 
dependency, yes, but not a duplicate instance of the object
if exists do not add, just reference via foo.Dependencies.Add(bar)
i cant believe Graph<T> doesn't exist lol
 
Probably because people have tons of nuanced ways in which they need graphs
 
right
maybe i can use this: quickgraph.codeplex.com
 
@ReedCopsey Usually lol.
I remember now though :) Decomposing in function parameters
 
@LewsTherin ?
 
7:56 PM
let f Some x =
    match x with
    | y -> printfn y
    | 0 -> prinfn "Got 0"
Apparently python also has this feature
But I'm wondering how that actually works? This is what I think
f gets wrapped in a function that decomposes the argument
 
Yeah, let's f some x
 
@ReedCopsey function (option<'a> anony)
{
let x =
match anony with
|Some y -> y;
|None -> 0
func x
}
@KendallFrey Ha
Perhaps it doesn't quite work that way. But that's what makes sense to me. Whaddaya think?
 
@LewsTherin You're talking about pattern matching? The syntax you put above isn't quite what you expect, I don't think...
you thinking something like:
 
Nope not pattern matching. How function parameter decompose works
let f Some (x) =
    match x with
    | y -> printfn y
    | 0 -> prinfn "Got 0"
The option that is passed in is decomposed and the value extracted into x
 
that's not valid F#
what are you trying to do?
 
8:03 PM
mmn.. let me check the book again
 
(and not valid python, either :p )
 
It is valid python
13
Q: Scala: Decomposing tuples in function arguments

vermaIn python I can do this: def f((a, b)): return a + b d = (1, 2) f(d) Here the passed in tuple is being decomposed while its being passed to f. Right now in scala right now I am doing this: def f(ab:(Int, Int)) : Int = { val (a, b) = ab a + b } val d = (1, 2) f(d) Is there some...

 
it'd be def in python
 
def f((a, b)):
    return a + b

d = (1, 2)
f(d)
Here the
 
and that's tuple decomposition, not parameters - it's still a single parameter
 
8:04 PM
The tuple is decomposed into a and b
 
but you can (in python) decompose them in the argument directly
in F#, you'd need to extract in a let binding
 
Can you write a snippet?
Easier than searching through the book
 
let f t =
    let (a,b) = t
    match a with
    | 0 -> printfn "You got 0, snd = %d" b
    | _ -> printfn "You got %d" a
you can't do that "inline" in F# - but its easy to do in a let binding
 
@ReedCopsey Nope that's different
 
(which I prefer)
that's what the link you posted does
 
8:06 PM
hi all
 
in the scala question
 
@ReedCopsey Mmn, it isn't?
> def f((a, b)):
 
the F# equivelent of that python would be:
 
I see a function parameter decomposition not a single arg
 
let f t =
    let (a,b) = t
    a+b
nope - it's a single arg
that's why the extra parenthesis
it's a tuple in python - one arg, with a two element tuple
 
8:07 PM
@ReedCopsey Ha ha this is different :) Let me find it
 
it's def( (a,b) ): if that helps readability
 
@ReedCopsey If it was a single arg it would be:
def f(self, t) -> assuming instance method
 
python lets you do the tuple decomposition inline - most other langs require it separately
 
Or def f(t):
 
def f( (a,b) ): is still one arg - it's just the arg is a tuple that gets decomposed for you
but it's still a single tuple
which is why the second part of that question works :)
 
8:08 PM
@ReedCopsey So behind the scenes it is replacing the pattern with a single variable?
 
d = (1, 2)
f(d)
yeah - it's still a single parameter to f - but it's a 2 element tuple
for that one parameter
 
:1853087 Yeah, I know. That's why passing a non tuple won't work.
But F# as the same pattern
 
you can write 2 parameters like def f((a,b), (c,d,e)): - which is a 2elmeent tuple and a 3 element tuple
 
You can do inline decompose
I could also pass in ((1,2), (3,4,5)) for the single arg
 
yeah, you can write: let f (a,b) = a+b
in F#, if that's what you're after?
(not sure what you're confused about - that's actually the closest equiv. to that python)
 
8:11 PM
@ReedCopsey Umm.. I don't think that's it. I don't think's even a tuple in that case
 
which lets you write f((3,4)) or f (3,4)
that's a tuple, both in python and F# :)
you see it in F# interactive:
let f (a,b) = a + b;; writes: val f : a:int * b:int -> int
 
Ah ok
 
which is a function accepting a tuple returning an int
 
Well must be the paren then.
Ok perhaps python is limited to tuple decompose in function parameters
 
yeah :)
 
8:12 PM
But F# is a bit more powerful
 
you get the same thing if you write:
let f t =
    let (a,b) = t
    a+b
 
is there a faster way using EF6/AutoMapper to update an entity from my DB? Instead of going to each property entity.propertyA = ViewModel.propertyA; entity.propertyB = ViewModel.propertyB; entity.propertyC = ViewModel.propertyC;
 
pretty much - functional in python was kind of added on later - so it's not as built-in
 
Well I came across decomposing an option in the function parameter
Still looking for it. I swear I didn't dream it up
 
mmm
not sure how that'd work :p
don't think it's really possible
 
8:17 PM
Ok, I found something else fun (Some(x), Some(y)) -> x+ y
still looking for the actual code
Ffs, not sure I'm even looking at the right book.. Or was it a website? Ffs
HA
@ReedCopsey I didn't find the code. But I finally remember the syntax :D
 
ForFsharp
 
let f (Some x) =
   match x with
   |0 -> 1
   |1 -> 2
Try it in Linqpad... you get warnings but it compiles
 
you get a warning
 
Yes because the matching isn't complete
 
but yes, it'll let you pull out and decompose a union case like that
 
8:29 PM
uh probably not
 
just not typically used because of the warning
and you get a runtime error if you pass None :)
it's just a pattern match, but there's incomplete cases :(
 
I wish you remembered that was possible. Would have saved me some time trying to find it :)
Let me see if I can find the actual code.. again
 
well, not something I ever use because of the warnings (and seen very, very rarely in practice)
 
I'd be surprised they released such a code without testing
Should be easier to find now that I remember the syntax
 
where were you seeing this?
 
8:33 PM
Either Expert F# 3.0 or F# 3.0. I guess that's what happens when you read 2 books at a time
I doubt it is limited to unions and tuples though
 
You have 2 eyes. Use them
 
Whoa, you can move your eyes independent of each other?
Freaky
 
Yes, half of the time
 
brilliant
 
0/
Anyone here by chance ever tried to use the Telerik:RadAsyncUpload ? I need to change the input text value to the current file name..
 
8:44 PM
What the utter fuck? How can it be hard to find something I read
 
@ReedCopsey Meh. I can't be bothered anymore. If I find it I will let you know
@Pheonixblade9 If that is in reference to the eye comment they are still moving in the same sequence/simultaneously..
 
@LewsTherin they're moving opposite
 
I know.. but that doesn't really count
If the right eye moved south while the left north.. then I'd be happy
 

« first day (1411 days earlier)      last day (3547 days later) »