[QUOTE=Trumple;47515825]I've been messing around some more with stocks. I think I'm getting the hang of it - and I'm getting some excellent returns on dry-runs/backtesting data:
[IMG]https://dl.dropboxusercontent.com/u/10518681/Screenshots/2015-04-13_04-22-19.png[/IMG]
Send me your money, I'll get you returns of almost -1000%!
[sp]There was a bug in my trading algorithm that meant that it simply bought more of the stock if the price of the stock went up yesterday, regardless of the money available to invest[/sp] v:v:v
Anyway, I've ordered a book on all this stuff, it's really fascinating![/QUOTE]
Quantopian?
[t]http://i61.tinypic.com/33z7l2f.jpg[/t]
Does anybody know what the syntax for if statements are?
Took a 1410 Java class this semester, it was turned into an online class last moment. And just today I realized that the "Labs" in our grades is when you're meant to show up in class. It wasn't mentioned in the lectures I watched, the syllabus is ambiguous, and he never put in 0's for me as the labs passed.
My grade says 98.6% right now, but it will drop to ~68% unless I can coerce the teacher to let me off easy.
Really bummed out about this. I really should have looked into the class more.
[editline]asdf[/editline]
[B]WOW WHAT THE FUCK.[/B] Apparently he was using the wrong syllabus.
[quote=The Teacher]David: They are just open for you to work they are not graded they are just somethings that you can do in order to get some additional practice.[/quote]
So it's impossible to get a 0 on ANY of them. HAha wow I was panicking over nothing.
[editline]asdf[/editline]
30% of my grade is literally nothing, 40% of my grade I finished within 2 hours, and the other 30% of the class was online exams that I didn't study for (and aced).
That's my community college for you guys.
I expect you'll be fine if you explain what's happened.
I accidentally missed the first 5 weeks of a module we signed up for in first year (kind of forgot it existed). They took that long to realise I wasn't showing up, despite the constant fear-mongering from the Attendance Police that we would be found and castrated within minutes of missing 3 lectures in a row.
Talked to the course leader about it, he understood and was completely fine with it as long as I caught up. We had a laugh!
[editline]13th April 2015[/editline]
good good!
[QUOTE=Naelstrom;47519173]That's my community college for you guys.[/QUOTE]
I loved my professors but I ended up teaching them and essentially dropping out of college. I now make the combined income of the computer science department and it makes me smile to think about it. Very nice and lovely people, though.
I take that back, I meant to say [i]more[/i] than the combined income of the computer science department.
[QUOTE=Ott;47519103][t]http://i61.tinypic.com/33z7l2f.jpg[/t]
Does anybody know what the syntax for if statements are?[/QUOTE]
[URL="http://tibasicdev.wikidot.com/if"]http://tibasicdev.wikidot.com/if[/URL]
:IF X > 10
:THEN
:Disp "Yep."
:END
[QUOTE=Darwin226;47516640]
That's more or less the principle how search engines work. You assign scores to potential matches and then sort them by it.
However, I don't think position-based weights are the best idea. When I search for something I usually expect the order not to matter (unless it's some common combination of words, in which case I expect it to be treated as a single term). What I would expect is that the word "weapon" carries less weight than something more specific.
[editline]13th April 2015[/editline]
I don't play TF and know nothing about weapon trading, but I suspect that it's much more important to the user that the weapon is for the demoman class, than some other attribute is. He/she probably doesn't care for weapons that aren't their class.[/QUOTE]
Right, the weighting based upon positioning was a simple/generic approach that I took. I figured that the user would be describing the item(s) they want more than they would be typing in their exact names -- and the most relevant keywords likely come first.
The good part about it is that the order doesn't matter for items that match all the keywords -- they're always shown first, but tangentially related items are shown differently depending on the order of the keywords.
[QUOTE=geel9;47519820]Right, the weighting based upon positioning was a simple/generic approach that I took. I figured that the user would be describing the item(s) they want more than they would be typing in their exact names -- and the most relevant keywords likely come first.
The good part about it is that the order doesn't matter for items that match all the keywords -- they're always shown first, but tangentially related items are shown differently depending on the order of the keywords.[/QUOTE]
Do you have statistics backing you up that users write query words in order of importance? I personally don't feel I like I would do that.
[QUOTE=andrewmcwatters;47519599]I loved my professors but I ended up teaching them and essentially dropping out of college. I now make the combined income of the computer science department and it makes me smile to think about it. Very nice and lovely people, though.
I take that back, I meant to say [i]more[/i] than the combined income of the computer science department.[/QUOTE]
your computer science department must be very underpaid
Revising my homework. Our project was to create a "bottle" class. Each bottle holds a certain amount of ounces in it. There are several methods, including the add(Bottle addBottle) method, which combines the caller (this) volume with the parameter (addBottle) volume, empties both bottles, and returns a new Bottle with the resultant volume. I.e:
[code]
bottle1 = 2oz
bottle2 = 3oz
bottle3 = bottle1.add(bottle2)[/code]
will make bottles 1 and 2 empty, and will make bottle3 5oz. If one wants to add the raw value and preserve the contents of the bottles, you do:
[code]
bottle1 = 2oz
bottle2 = 3oz
bottle3 = bottle3.add(bottle1.getVolume())
bottle3 = bottle3.add(bottle2.getVolume())[/code]
where getVolume() returns a double.
the first pases the bottle object by reference, and the second by value. I justified this by saying that since java is not safe at all in this regard (byref vs. byval), it is good practice to assume that anything you pass byreference can be completely annihilated by the method, and if you want to keep the volume of both bottles, pass byvalue.
Not only this, but the "deplete both bottles" thing was part of the initial instructions, but he removed it since my java 102 class didn't understand how to alter the value of a byref parameter. I finished the project day 1, before he changed the instructions and submitted before then as well. The issue he got was when he tried:
[code]
bottle3 = bottle3.add(bottle1);
bottle3 = bottle3.add(bottle2);
bottle3 = bottle3.divide(2);
System.out.println("The 2 bottle average is: " + bottle3 + ".");[/code]
which would empty bottle 1 into bottle 3, empty bottle 2 into bottle 3, and then divide that number (5), by 2, resulting in 2.5. however, trying to use bottles 1 & 2 later would result in 0 since they had been completely emptied in steps prior.
He's reasonable, and I told him all this. Hopefully that demonstrates to him that I know what I'm doing, and the issue is that he changed the specification like 5 times.
[QUOTE=proboardslol;47520056]Revising my homework. Our project was to create a "bottle" class. Each bottle holds a certain amount of ounces in it. There are several methods, including the add(Bottle addBottle) method, which combines the caller (this) volume with the parameter (addBottle) volume, empties both bottles, and returns a new Bottle with the resultant volume. I.e:
[code]
bottle1 = 2oz
bottle2 = 3oz
bottle3 = bottle1.add(bottle2)[/code]
will make bottles 1 and 2 empty, and will make bottle3 5oz. If one wants to add the raw value and preserve the contents of the bottles, you do:
[code]
bottle1 = 2oz
bottle2 = 3oz
bottle3 = bottle3.add(bottle1.getVolume())
bottle3 = bottle3.add(bottle2.getVolume())[/code]
where getVolume() returns a double.
the first pases the bottle object by reference, and the second by value. I justified this by saying that since java is not safe at all in this regard (byref vs. byval), it is good practice to assume that anything you pass byreference can be completely annihilated by the method, and if you want to keep the volume of both bottles, pass byvalue.
Not only this, but the "deplete both bottles" thing was part of the initial instructions, but he removed it since my java 102 class didn't understand how to alter the value of a byref parameter. I finished the project day 1, before he changed the instructions and submitted before then as well. The issue he got was when he tried:
[code]
bottle3 = bottle3.add(bottle1);
bottle3 = bottle3.add(bottle2);
bottle3 = bottle3.divide(2);
System.out.println("The 2 bottle average is: " + bottle3 + ".");[/code]
which would empty bottle 1 into bottle 3, empty bottle 2 into bottle 3, and then divide that number (5), by 2, resulting in 2.5. however, trying to use bottles 1 & 2 later would result in 0 since they had been completely emptied in steps prior.
He's reasonable, and I told him all this. Hopefully that demonstrates to him that I know what I'm doing, and the issue is that he changed the specification like 5 times.[/QUOTE]
m8 if you're relying on whether or not an argument is passed by reference or value as a form of method signature you're doing it wrong.
you should really have different methods -- from what I can see, getVolume() returns a bottle? Why?
addAndEmpty() and just add() are probably way more sane.
[QUOTE=geel9;47520101]m8 if you're relying on whether or not an argument is passed by reference or value as a form of method signature you're doing it wrong.
you should really have different methods -- from what I can see, getVolume() returns a bottle? Why?
addAndEmpty() and just add() are probably way more sane.[/QUOTE]
It's because this is the interface he specified. I prefer more verbose names, but these are the exact names and method descriptions he had given us in the specification. I did it exactly how he ORIGINALLY told us.
Also getVolume() returns a double; there are two add methods: add(Bottle) and add(double).
I would do it differently, I agree, but this was essentially all his instruction.
[QUOTE=proboardslol;47520145]It's because this is the interface he specified. I prefer more verbose names, but these are the exact names and method descriptions he had given us in the specification. I did it exactly how he ORIGINALLY told us.
Also getVolume() returns a double; there are two add methods: add(Bottle) and add(double).
I would do it differently, I agree, but this was essentially all his instruction.[/QUOTE]
That's much saner -- my apologies.
[QUOTE=proboardslol;47520145]It's because this is the interface he specified. I prefer more verbose names, but these are the exact names and method descriptions he had given us in the specification. I did it exactly how he ORIGINALLY told us.
Also getVolume() returns a double; there are two add methods: add(Bottle) and add(double).
I would do it differently, I agree, but this was essentially all his instruction.[/QUOTE]
Though it's still a bad idea to name those things the same. They do different things.
[QUOTE=DarKSunrise;47519983]your computer science department must be very underpaid[/QUOTE]
lol
[QUOTE=andrewmcwatters;47520247]lol[/QUOTE]
None of what you have said on this page makes you look good to anyone.
[editline]13th April 2015[/editline]
I understand the temptation to brag about money but it just pisses [b]everyone[/b] off.
i think that would mean a lot more if it weren't coming from you
[QUOTE=andrewmcwatters;47520290]i think that would mean a lot more if it weren't coming from you[/QUOTE]
actually it probably means more. what are you doing dude?
[QUOTE=andrewmcwatters;47520290]i think that would mean a lot more if it weren't coming from you[/QUOTE]
stop
amc you're obviously a very talented programmer and people here respect the work you've done. i don't get why you feel the need to post about how much money you make -- nobody here cares about that and to be quite frank it gives off a terrible impression.
[QUOTE=andrewmcwatters;47520290]i think that would mean a lot more if it weren't coming from you[/QUOTE]
oh geel did it and we all hated him for it, it's probably why he doesn't do it much anymore so yes it means a lot coming from him
[editline]13th April 2015[/editline]
it was also a joke no need to overwork it
i like hearing about money
interesting to know about and jealousy has no place in here
[QUOTE=Darwin226;47519917]Do you have statistics backing you up that users write query words in order of importance? I personally don't feel I like I would do that.[/QUOTE]
I don't -- I definitely should look into how exactly users search. I based it off of how I write my search terms -- "demo unusual" for instance. Before I weighted search terms like that it would show any demo unusual first, then EITHER demo items or unusual items mixed in. Now it shows demo unusuals, then demo ITEMS, then other unusuals. (Although just "unusual" has too low a pointvalue to be shown).
i've done this before, and ive always been really bad at handling it and i'll probably always be bitter about it. it's also why i think threads here explaining the cost/value ratio of an education are almost entirely a joke:
to be candid with you, frankly i had a shit time as a kid and it didn't get any easier when i got older, despite being very skilled i had a bunch of asshats in my life all the way up to college who said i couldn't do basically shit
so im sorry that's my attitude, i realize it's shit, but im at a very high point in my life where from my perspective, i'm looking back and telling a bunch of people to fuck right off. i don't know what geel's story was, but i was a kid who grew up on welfare and my parents didn't ever tell that to me and they did a great job of hiding it.
i encourage my friends outside of these forums to constantly ask for more compensation because many of them work at much higher end firms or companies than myself
you don't need a sob story from me, and it doesn't matter either way, but im just telling you thats why i act that way
i dunno how you'd act when your instructors who you looked up to in high school told you that you could never be an engineer because you didn't have the discipline to do menial schoolwork that was an utter waste of time and later go and do orders of magnitude more work than them but im a really bitter dude so oh well
[QUOTE=andrewmcwatters;47520433]i've done this before, and ive always been really bad at handling it and i'll probably always be bitter about it. it's also why i think threads here explaining the cost/value ratio of an education are almost entirely a joke:
to be candid with you, frankly i had a shit time as a kid and it didn't get any easier when i got older, despite being very skilled i had a bunch of asshats in my life all the way up to college who said i couldn't do basically shit
so im sorry that's my attitude, i realize it's shit, but im at a very high point in my life where from my perspective, i'm looking back and telling a bunch of people to fuck right off. i don't know what geel's story was, but i was a kid who grew up on welfare and my parents didn't ever tell that to me and they did a great job of hiding it.
i encourage my friends outside of these forums to constantly ask for more compensation because many of them work at much higher end firms or companies than myself
you don't need a sob story from me, and it doesn't matter either way, but im just telling you thats why i act that way
i dunno how you'd act when your instructors who you looked up to in high school told you that you could never be an engineer because you didn't have the discipline to do menial schoolwork that was an utter waste of time and later go and do orders of magnitude more work than them but im a really bitter dude so oh well[/QUOTE]
i mean i acted the same way in waywo because for a long time i was the butt end of a ton of jokes here, left, got successful, and came back and suddenly i had a trump card against waywoers, so i get it, but it doesn't really help anything.
some people on a forum and dev friends outside telling me to calm down aren't going to undo roughly a decade of idiots telling me i couldn't further myself
higher education is an organized joke where the upper echelon have enough connections and background to make something of themselves and everyone else is just textbook educated without having drive to apply on a grand scale a wide majority of the time
that's college/university life
well yeah i skipped college too. i think it's huge bullshit and if you have a halfway decent portfolio (and I'm banking on my portfolio being seen as decent) you don't need the massive 4-year waste that is college.
thats the point. i know too many people who left here and could be making six figures but they're not. i joke about it sometimes but regularly forget some people don't like to joke about that sort of thing.
if there's any lesson to be learned from me being a bitter person, it might be to not sell yourself short.
anyway sorry, clearly my tolerance for that sort of conversation is much higher than what most people consider politely acceptable. rather than see other friends of mine who generate income on the higher end of six figures as braggarts, i see it as something to marvel and lookup to.
[QUOTE=JohanGS;47520383]i like hearing about money
interesting to know about and jealousy has no place in here[/QUOTE]
that's a good attitude to have considering most people on average in my experience do so poorly when it comes to compensation and managing it
i want to hear about other people in here who make it; i leave the social dance of being conservative about discussing income outside of development circles. maybe it's just different depending on where you stand, or just in here in particular since theres a wide gamut of people in different stages of life despite all being roughly pretty young
Well college teaches you more then what you could learn on your own(assuming you don't go to a terrible one that is)
If it wasn't as exorbitantly expensive as it is in the US it'd be smart to go to college no matter what you already knew.
ARE WE HAVING THE FUCKING COLLEGE DEBATE AGAIN
[editline]13th April 2015[/editline]
WHAT ARE YOU WORKING ON VIDIDN'TATTENDSCHOOL EDITION
Sorry, you need to Log In to post a reply to this thread.