« first day (821 days earlier)      last day (4352 days later) » 

17:00
no
@Mhjr So? That's how SO works. You post just enough to highlight the problem, and we provide just enough clarity to help you fix it.
does permalink show your chat history ?
IOW: You don't give us the whole thing, and we don't do your homework for you.
no no one helped me in my assignment
it was just sharing
Okay. Then what are you afraid of?
17:01
However if you posted your entire codebase and someone fixed/finished it for you, you're screwed. Getting help from other professionals (however strenous the term professional is) is not cheating.
he has my grade
won't assingn me one until he checks
If it was classified under a nondisclosure agreement, then you should worry; if not, then who gives a shit.
doens't matter it's silly
Your professor sounds obnoxious.
In my professional opinion.
@Mhjr If he's determined to mark you down for something as silly as getting help from some guys on the internet, pretend like he touched your willy.
And when it doesn't stick he'll have to mark your work fairly because if he ever tried to screw you over again you could dispute it saying he's being unprofessional because of a personal dispute affecting his marking of your work.
Grades: sorted.
17:05
@Sean There was a famous short story about that which we discussed in Literary Genres once...
@ShotgunNinja Really?
I can't remember the name, but it was by a famous screenwriter, and the name had one word that started with an O, I believe.
The name eludes me.
no one helped
just asked if i did things righj
Yeah, it's about a girl who tries to offer herself to her professor for a grade, and then sues the professor out of his tenure evaluation.
It's from the professor's point of view.
sadly there were not so many people when i asked
lol
17:07
The writer did a lot of drama shows, and some movies, if I recall correctly.
is there a way to see all my chat history alone ?
@ShotgunNinja Aww man and I thought my idea was original.
@Mhjr Yup.
@Maverik This code is fucking awful. I'm ashamed of myself
17:08
permalink ?
@Sean umm which code? if its auto discover stuff, why are you ashamed? MS is supposed to do that :)
but google brought everything up
@Maverik No I'm just mis-reading everything I've written previously. I thought I had checked for a null and carried on afterwards anyway. Which I didn't
17:10
Where do you go to school, @Mhjr?
doesn't matter
chat.stackoverflow.com/search?user=1165645&room=7 if you remember a word that you used.
@Mhjr There is something important that I think you forgot. If you don't want something to be visible, don't post it on the internet.
man
i wasn't myself when i did that
hard to explain
17:12
@Mhjr Or use my previous advice:
So i am doomed ?
21 mins ago, by Sean
@Mhjr Be a stealthy twat, rather than an obvious twat.
come on
In javascript, if I want to overload a method I just add my new argument to it and the interrupter handles the rest, ya?
so no help ?
17:13
Not a whole lot I can do
@Mhjr Just tell your professor that you were drunk.
@Mhjr I doubt you are doomed. Unless you actually cheated, you've got nothing to worry about. If you have valid reasons for why you may have said something about them (maybe medical reasons or something, I dunno) you have even less to be worried about.
why it's difficult to do ?
removing them ?
hello any good source of c# for beginner
@Maverik if I do _service.AutoDiscoverUrl(call.EngineersEmail); can I then spew the discovered URL out by response.writing the .Url property?
@NullPointer Be prepared for a flood or sarcastic answers, most of which I fully expect to include "google" in them.
17:16
@Sean should be?
^ self fulfilling prophecy btw
@Maverik Nice one, cheers
the heater at work is broken.
@Sean not just google, lmgtfy too :)
no wonder its freezing in here
17:16
SHTF for me
@Maverik you make a good point
some of us are politer :D
@ShotgunNinja that book ain't for beginner .. ..afaik and as i feel after reading .. some time
@NullPointer Well, do you know any other OO languages? Not that the name isn't a dead giveaway.
@ShotgunNinja yup... c++
17:17
@NullPointer No offence meant here, but how about: amazon.com/2010-All---One-For-Dummies/dp/0470563486/…
Holy shit, Skeet actually wrote the book on C#.
@Billdr You didn't know this?
@KyleTrauberman while (true)
nobody should take offence to dummies series.. its an awesome starting series
@Billdr Which one? I have the Professional C# 4.0 book
17:18
@ShotgunNinja I didn't.
@Billdr Ah.
No kindle version.
@Maverik You never know these days....
Nov 28 '12 at 18:47, by Kendall Frey
while (true) {} // this should function as a temporary heater
anybody taking offence to dummies series - well deserves the offence ;)
17:19
It needs to do maths.
@KendallFrey Oh, but you have to remove the thermal paste from your CPU heatsink first.
Just scrape it off with a wet sponge, then replace the heatsink atop the CPU.
noooooo....... dummies series is really only for dummies ..:D
Why? You want the heatsink to distribute the heat to the room, not overheat the CPU.
@ShotgunNinja And the thermal sensor on your mobo, most modern mobos shut the power off if the CPU gets too warm
@Sean So it's a self-regulating heater.
Nah, I'm just being a troll.
17:20
@NullPointer I doubt a programming book in the dummies series is going to be any worse than a shitty online tutorial =]
@Sean To be fair, I learned it from using it, and from asking questions and looking through previously-written code.
@NullPointer And also, it's probably going to be of a higher level than the other dummies books, as programming is not for dummies.
Just like I learned C++.
OH WAIT
oooo @KendallFrey Licky Licky Licky
Nom nom nom
One does not simply learn C++ from a book
17:21
I learned C++ from reverse-engineering the C++ STL 2.4.3 bits.
And from cplusplus.com
@ShotgunNinja that seems to be helpful ...
@NullPointer Generally, I just look for the most-often linked resource, and that seems to work.
It's funny, but that's how Google works as well...
@NullPointer I told you! An answer with google in it!
I should be a prophecy-maker
@ShotgunNinja thank you ... for ironic help ....
17:25
Yeah. MSDN is like the coolest collection of language reference material that I've yet to find. It's not quite complete, nor is it entirely accurate in all situations, but it's close.
No that one was sarcasm. Irony would be him giving you a tutorial and then later on him asking you for help because you have become the daddy of C#.
hiho :P
♪ hiho, it's off to work we go
with a bucket and spade, and a hand grenade
hi-ho, hi-ho, hi-ho, hi-ho ♪
That's the best way to mine anything, lol
mind any of u, helping me with chosing proper data structure
in c#? :P
17:27
Don't ask if you can ask. Just ask.
High ho? Where?
in fact if you know the tune, there is no need for the dash/hyphen/whatever
I've asked last time at c++ channel :D They minused my question so hard
I better ask 1st then :P
Hello @Sean, how are your MVC-skills? :)
1
Q: How to make and use sorted list of objects (containing 2 integers, list should be sorted by one of them)

PatrykI've seen in visual studio (c#) something like SortedList. However, I don't know how does it work and how to use it. I want to use SortedList because I hope it has got fastest access time than a normal list. Unfortunately, I can't use array. I'd be glad to see some simple example. edit: Let's sa...

17:28
@Patryk C++ channel will do that. They hold themselves in very high regard.
@Stripps Non-existant
@RudiVisser you are needed
My coworker (a different one) just said I'm a bright guy. This isn't bad for a Monday.
@Stripps Ask @KendallFrey, I think he knows MVC stuff
@JamieTownsend I find that offensive
17:28
I find @KendallFrey brown nosing offensive
@KendallFrey I got told that once by some old guy, actually he said "You're a brilliant programmer" I think he may have been hallucinating.
Aite, @KendallFrey, Do you know why I dont get Category set when I create an Item?

http://pastebin.com/enQ0akxS
I'd help you @Stripps but I get banned for saying anything in this room, so I can't be bothered to help anyone anymore. I'll just sit her saying Lick to Frey
I have no idea. I don't know MVC.
17:30
Anyway, 17:30 on the clock, time for me to go home.
@JamieTownsend Calm down; @Sean has been finding everything offensive lately.
Licky Lick !
Ooooo love a bit of brown
@Stripps Get rid of the category object in your items model, you're making a circular reference.
soooo :P no1 mind helping me? I bet its easy for u xP
and pull the item from categories, if possible
17:32
Hmm, and make a Category-string instead?
@JamieTownsend I try to help you out, and you just keep doling out the harshness. Whatever.
@Patryk What are you even trying to do?
When have you helped me @ShotgunNinja ?
my problem is explained at the link I've pasted ( I believe its easy)
tehres an example of what I need
17:33
@JamieTownsend Just now; I'm trying to hint to you that being rude and stuff is why you keep getting banned.
I know why I got banned I'm not an idiot
I do it on purpose
So, I'l keep the list of items in category, and then create the categorys at start @Billdr?
@JamieTownsend Somehow, that's not being an idiot?
@Stripps word of advice, ignore what @Billdr said about the circular reference lol
Now i'm confused
17:34
As am I.
Nah @ShotgunNinja what annoys me is that I sit here all day helping anyone I can. I say one thing to a person who finds it offensive, when I was joking and I get banned. I got banned for saying "Marry Me" - That is how pathetic this place is
@Stripps Give it a try and see what happens. Jamie seems preoccupied.
I'm back, baby!
@Pheonixblade9 WB!
17:36
@JamieTownsend I think your reaction to it is what's getting you continually re-suspended...
But then there's a problem to how I can list the different categorys
Since I'm getting an Item model to the view
@Patryk Are you looking for the .Sort (for lists) or .OrderBy (for dictionaries) methods?
@Patryk Uh, you're using the provided SortedList, correct? And you're worried about the asympotic time complexity of insertion operations?
I need a data structure (not array) to hold pairs of integers <int x, int y> and I want to have that list sorted by x.
With fastest possible access and edit time
x can not repeat in a list
list or any other dta structure /dictionary w/e
Well, use a Dictionary<int, int>.
17:38
im new with c# :P
can a 2nd int repeat in a dictionary?
Nope, if you index by x.
The value can repeat, but not the key.
I mean <0,1>, <1,1> <2,3>
@Stripps in the code you provided you have not shown anywhere where you are including the Category. If you do not include a field in a html field of "For" it will come back in the HttpPost as null
ok awesome
17:39
A Dictionary is like a Map in Java, or a std::map in C++.
do you guys maybe know its complexity?
Id live it to be log2n
:P
love
@JamieTownsend The categorys are presented on the create page, but when I choose a category, the item gets created with anme, price and so, but the category field is null
SortedList's Add() is O(n) if capacity increases, down to O(log n) for an insert-at-end.
@Patryk It's O(1)
Dictionary's add is O(1).
Its memory complexity is more complicated, though.
17:42
I hoped for its memory complexity to be small
Since it's a hashtable, it has to O(1) hash the input into hashcode h, then pick the hth bucket, and insert into that.
but u cant get both (memory and speed) fast i guess :P
Usually, the buckets are implemented as linked lists, and the insert for a linked list is O(1).
and checking wheter there is x (key value) is also O(1)?
dictionary's memory is usually around O(n)
17:43
Nope. Checking is O(log n).
Nope, checking is O(1)
Well, with bad bucket distributions, you get up to O(log n).
Right?
In an optimal hashtable, each bucket ends up with exactly 1 element, and it becomes O(1) to hash and select the appropriate bucket, then O(1) to get the only element.
With bad buckets, you get O(n) worst case.
how to avoid bad buckets?
i don't even know what it is
:S
17:45
You don't need to worry about that.
With really bad buckets, you get everything in one bucket, and it's the same as the lookup for however the bucket is implemented.
Dictionary handles it internally.
Dictionary uses linked list buckets, so if the element is the last one in the only bucket, then it's O(n).
so, what is the difference between SortedList<int, int> and Dictionary<int,int>? do You guys mind telling me? :P
A typical Dictionary will have things more or less spread out, reducing the load to n = A (buckets) * B (elements per bucket). Since the A can be reduced out by the O(1) hash lookup, you end up with B, which is approximately log n.
17:46
some1 answered me to use sortedList
well, I've got a circular reference somewhere. (getting Maximum call stack size exceeded when attempting to json-ify my data). See if you can spot it? pastebin.com/4n5g4Vyp
SortedList is a sorted list, Dictionary is a hash table.
well
@KendallFrey SortedList uses a hash table internally, according to the post he's referring to... not sure if that's accurate though.
I'm not sure wheter I should chose sortedList/Dictionary.
after adding into dictionary
is it already sorted?
17:48
I have no idea what SortedList is :J
@Patryk No.
@Patryk Dictionaries do not sort.
oops, might have found it.
They may be sorted by hash code, but they are not sorted within buckets, and the hash codes are effectively indeterminable anyways.
what would You advice me to use then, Shotgun? :P
17:50
What are your requirements?
Do you need them to be sorted?
I though if it were sorted, It would be faster to access them
R-B tree?
but if it doesnt work like that
Does this look like a good "professional" feeling website?
@Patryk No, because it uses hash values.
17:51
No, that's only true for arrays or indexed tables.
I cant use indexed tables
Sorted lists take O(log n), hash tables take O(1)
my program takes then 8gb ram
while having 2 haha xD
It's faster to use a tree or a hashtable, because of the use of O(1) operations.
A Dictionary is a more efficient version of an indexed table.
17:52
so dictionary = hashtable, right?
@Patryk Yeah, effectively, where the hash is generated from the key, and the entries stored in the buckets are key-value pair objects.
A Dictionary uses a hash table internally.
what if I add there <1,5> and <500,9> ?
Note: I didn't say HashTable
will it create 500 cells into hashtable?
17:53
Nope.
or will it just store 2 objects?
It will store two Key-Value pairs into two of its internal buckets.
It will create approximately 2.
Actually, I think it multiplies it a bit.
Instantiating the Dictionary will create an arbitrary number k of buckets.
Maybe it creates 4 cells per object.
But the number of cells isn't dependent on the values being stored.
17:54
awesome
hope I'll make my program on a dictionaries then
I guess SortedList is something like List
with the addition that it is sorted
I looked it up. Apparently it's an ordered version of a Dictionary.
but SortedList is slower than dictionary
right?
ahh
I don't think so.
thank you guys
I'm going to try that dictionary
xP :D
17:56
For SortedList.Add(): "This method is an O(n) operation for unsorted data, where n is Count. It is an O(log n) operation if the new element is added at the end of the list. If insertion causes a resize, the operation is O(n)."
hey there!
lol, I though it to be O(logN) adding item into sorted list
@WileyMarques Dude, you're late.
dividing /2 all the time till we find its place
Ohh @WileyMarques I need to ask you something. Do you know what happened at Marginal Pinheiros this morning ?
17:58
@Patryk Nope, since it uses a Dictionary implementation.
ahh
@AndréSilva haha true
well, I don't need sorting anything
If there are N different list structures, and M different paradigms for keeping them sorted, then there are N*M different ways to do a sorted list.
I just want to have smth fast, though sorting will be fastest way
17:59
Unique Keys Per Value + Fast Operations = Dictionary.
@AndréSilva dunno man, I just heard that an accident happened there
The downside is storage space.
hi guys. I need help to find some docs about C, but I can't fing the C chatroom. Can some1 pls help me find the C chatroom or help me here?
@WileyMarques Makes sense.. At the radio they said it was stuck since Jaguare Bridge to Morumbi Bridge... Exactly the piece I take.

« first day (821 days earlier)      last day (4352 days later) »