« first day (789 days earlier)      last day (4154 days later) » 

12:00 AM
greetings! Anybody here today?
 
yup
 
js qu=>
how come this:
var GameObjects = require("./GameObjects")
gives this error:
No requests captured. Reload the page to see detailed information on the network activity.
Uncaught Error: Module name "GameObjects" has not been loaded yet for context: _. Use require([])
Typescript generated the JS file so I'm not sure how to procede
 
thx
 
I really want to get an internship or something at Redgate. Not because I wanna get better at SQL, but I'm really curious if black magic really requires you to sacrifice your soul.
 
12:16 AM
[]
 
yes, I did say that.
 
Oct 29 at 17:52, by Pheonixblade9
I would love to do an internship for Redgate. Not because I want to learn more about databases, but because I want to learn if you have to give up your soul to do black magic
:P
 
:)
twice, now!
I felt like saying it again
LOL IRL REPOST
 
The only conclusion is that Redgate uses black magic.
As for the soul part, clearly they have already began to exert their control :P
 
redgate rule!
 
12:20 AM
how do you know when your data set is too big? when you have a 16GB machine and you get this message:

===================================

Cannot execute script.

===================================

Insufficient memory to continue the execution of the program. (mscorlib)
 
using reactive extensions anybody?
 
@Pheonixblade9 - Perhaps you should consider partitioning.
 
@TravisJ possibly, but right now it's just an issue of getting the data on my machine. it's working fine to query from
 
back
 
12:46 AM
I have gummi vitamins. As a result I eat too many vitamins.
 
bad idea
 
agreed
I should buy gummi bears.
 
or, cherry tomatoes
bit size, gummyish, tons of healthy material
 
Tomatoes are the grossest thing. The texture bothers me. I used to pick the chunks out of spaghetti sauce.
 
1:04 AM
Suit yourself. Tomatoes are awesome though. Great hangover preventer if you eat a bunch of them before you sleep.
 
@TravisJ I usually just eat a sandwich. :)
 
They are really high in vitamin b12 which your brain runs out of while you sleep if you are drunk. That is where your headache comes from.
stackoverflow.com/users/1085891/jsuar down voted me because my answer was better =/
 
@TravisJ C# question?
 
-1
A: aligning and stacking a divs

Travis JWhat you should do is consider wrapping the two elements which are stacked in the left column in their own div. Ensure that the wrapping div has a proper width definition. Then remove the floats and define each containing div as inline-block. Next, ensure that the right two columns are vertically...

 
I think I know the answer... downvote all his questions? :D
wow, he really did downvote everyone else
 
1:08 AM
wtf rite
 
or someone did
 
@TravisJ I could not honestly vote either way on html stuff, sry
 
All you have to do is look at the fiddle :P
 
@TravisJ I guess I could stare at it for a month and still fail :)
 
lol
 
1:10 AM
@travis sympathy upvote
 
yay, but really though, it took me 15 minutes to do and is correct
 
the guy is not in the thread to make friends, he means business
 
@Johan - I know right, he is serious :P He is averaging 1.35 rep per day over the past year!
 
Is the box to the right in the fiddle for css?
never mind
 
@TravisJ 1.35 rep per day? Look out, we got a badass over here
 
1:15 AM
lol
 
I was averaging 300 rep a day at my internship when I had nothing to do, haha
 
daamn
 
besides, he's a VB.NET guy, he's obviously evil
3
 
LOLZ
 
lol yeah, look at my tags answered, Android blows the rest out of the water
 
1:17 AM
He woke up in that thread for sure, looks like he downvotes everybody
 
his profile pic is fucking creepy...
 
looks like you beat him now Travis
 
he's got us on his side ;)
UPVOTE BRIGADE OH GOD WE'VE BECOME REDDIT
to be fair, @TravisJ answer was better
and didn't deserve downboats
 
lol downboats
 
only 2 more stars and I'll be beating Andredseixas
 
1:20 AM
SLEIGH TEIM!
 
@Pheonixblade9 good thing there are a few who has skills here
 
OMG A SLEIGH
 
@Pheonixblade9 a yo mama joke would take you there I think
 
@JohanLarsson I don't have skills, I'm just REALLY REALLY GOOD at faking it. Just like your mom.
 
1:21 AM
bahahaha
 
Do you invent them live or find them somewhere?
 
@JohanLarsson invent them live. You may not know it, but I am a funny mother fucker.
 
respect
 
:P
I love it when I control half of the star leaderboard
 
@Pheonixblade9 the pun would be -1 if it was intentional
 
1:24 AM
@JohanLarsson hahahahahaha, don't worry, it's just your mom.
 
Anyone good with Physics here by any chance?
 
@user1079641 indeed!
 
@user1079641 @Pheonixblade9 Is good with all math!
 
^_^
I do have a math minor, I would hope so! I got A's in both of my university physics classes, too, so I at least am good at Newtonian physics. Modern physics I know the concepts, but not the math
 
I can has physics
 
1:27 AM
but where is the question?
 
I think @user1079641 just wanted to know if anyone was good with physics, that was the question
 
or was it just demografy?
 
There was a question, but I am contemplating whether I should ask it or not...
 
ask ask ask
 
Just put the glue down, and walk away slowly...
 
1:29 AM
@user1079641 ask away. We're happy to answer just about any question. As long as it isn't VB. Or Java. Fuck those guys
3
 
@Pheonixblade9 @user1079641 Developes only in VB hah
a
 
:-O
GET OOT OF ERR CHAT RYOOM
Seriously though, please ask :)
 
but to @user1079641 defense he always brings programming questions here
 
lol. No, but this is a physics question, not VB. Here it is:
 
(I actually don't mind VB questions, I just don't know how to answer them)
 
1:31 AM
A block is pulled to the right across a level surface at a constant velocity by a 40.0 N force acting at an angle of 20 degrees above the horizontal. The coefficient of kinetic friction is 0.60. Find the weight of the block.
 
ok, first step:
 
subtract the upward force
 
determine the normal force
 
user1146887
Anyone here want to see my app I made in C# & Win8 that lets you program and do challenges? :D
 
actually, first step is draw a diagram, have you done that?
 
1:32 AM
diagram is good idea
 
I did at my first attempt but I started a new with you guys, but I will create the diagram.
 
ok first thing
since it is moving at a constant velocity, you know that the force of friction is equal to the X component of the 40N force
you know that the weight is equal to or greater than the Y component of the 40N force
 
(spoiler)
 
I am gonna interrupt you. I don't understand the "coefficient" part. Where does that come in?
 
normal force * coefficient = frictional force
 
1:35 AM
you multiply the inverse of it to get the true force :P
 
@TravisJ shaddup, you'll confuse him :P
 
0.6 is very high coefficient, steel vs steel is ~0.1
 
@user1079641 can you access that?
 
"Error: Operation Aborted"
 
ok just give me a couple minutes then
 
1:38 AM
Sure.
 
0.6 is almost the friction between rubber and dry asfalt
@Pheonixblade9 works for me (live)
 
BRB in 5 minutes
I am using IE9 and that might be the problem
except when I open it in Chrome, the messagebox error doesn't come, but it says "Connecting" at the top.
 
it works for me using Chrome
 
I see stuff now, maybe its connected.
Yup, I see it now.
 
you see the diagram?
 
1:42 AM
Yes
 
k = 0.61 is aluminum against steel, btw :)
0.62 is concrete against wood
 
I still do not understand why this answer is such a honeypot: stackoverflow.com/a/6004144/21461
 
I honestly highly doubt my teacher cares what the actual item is. All she cares about is the calculation
 
i swear half of my rep is from that answer alone
 
@KyleTrauberman I just upvoted you :)
 
1:46 AM
hahaha
 
more like 5% -- yes, I'm very fun at parties
 
lol that was mindblowing! +1
 
@user1079641 but you should care, you are a geek right?
 
@JohanLarsson Nah, not really. The reason I ask here is because you guys are much better at this than I will probably be and I am a little confused in it.
 
Did you ever solve it?
 
1:47 AM
@user1079641 did @Pheonixblade9 explain it so you got it?
 
it is /_ ? * <- == ->.
 
I haven't understood yet
 
by the way @KyleTrauberman, I sent a mail to a SimCity dude, we'll see how that goes
 
it somewhat makes sense
 
schweet!
now I need to go get a sex change, so i can have your kids.
 
1:48 AM
@user1079641 did you understand the part about the coefficient?
 
Yes, I got that.
 
heh, he's out of office until next monday though
 
@user1079641 then you shoul split the force in Normal and tangential direction, does that make sense?
idk if it is called composants in English
tangential is along the surface and normal perpendicular btw
Fy, Fx in the diagram
 
@user1079641 do you see the solution on the diagram?
 
1:52 AM
@zneak What does the letter say? I like simcity also
 
@JohanLarsson is my work correct? It's been 3+ years since kinematics :)
 
@Pheonixblade9 nice diagram & nice app/site
 
Yes
 
Do you understand the steps?
 
@Pheonixblade9 I agree, it's been 1m3 of beer since mine
 
1:54 AM
If any other people are physics geeks, please check the work :)
 
Yes, just taking sometime to fully digest them.
 
can we just cheat, note that the force is not lifting the object, and infer that since F = ma and a here counteracts gravity that m = f / g == 40sin(20) / 9.8?
 
@TravisJ you could, except it noted that the velocity is constant
Also, that answer is incorrect :)
What you can say is that the mass is GREATER THAN a certain number (the vertical normal force). You need to know the exact normal force in order to calculate the horizontal force to determine at what weight the object maintains a constant velocity due to the kinetic friction
 
honestly, since this is kinetic friction, it should be left in a differential equation since the object will be losing mass as it drags :P
 
@TravisJ oh, don't make me go there
 
1:59 AM
lol
 
I got an A in differential equations :P
I can tell you EXACTLY HOW MUCH SALT is in a solution of 2 mixing salt solutions at any given point
 
What type of salt?
 
See, kids, math does have real life applications
 
What if it was a composite of ammonium nitrate and calcium chloride?
 
@TravisJ nope, just plain old Nackle
 
2:01 AM
oh, well thats no fun :P (I had to look up Nackle lol)
 
I'd like to ask something: I have a big test coming up and am not very amazing in it, as you might have noticed. So I want to know if in future I do come here and ask a couple of physics questions, would it be okay with you guys? Like 2 or 3 questions.
 
I like physics
 
@user1079641 no problem. I think I may have missed a step though
I did. let me fix it.
 
@user1079641 write your solution thus far?
or screenshot is maybe better
 
TBH, this is for a test. That is why I asked you guys.
 
2:03 AM
@user1079641 this is not during a test right?
 
Of course not, first, I would have to be on cell phone to be here, second, flash would give me problems, and i would end up getting caught lol
 
There we go, I think that is correct.
@user1079641 my advice: Draw BIIIIIIIIG diagrams, make sure to pay close attention to your signs (what caused my initial mistake with your problem)
I mean use an entire sheet of paper per diagram
 
the diagram is blank for me now
 
void (for me)
 
2:09 AM
mmm
there ya go
:P
@user1079641 you good? can I go home now? :)
 
o shit, how did it get after 6
 
@Pheonixblade9 minor error, you forgot 9.82
 
i have to go too
 
right
 
how did it get 03:11?
and how did @LewsTherin just enter the room 03:12?
 
2:12 AM
2:12 :)
 
@JohanLarsson actually no, I'm correct. It asked for the WEIGHT of the object, not the mass.
 
I have failed as a mother
 
I'm on a coding spree..
 
@Pheonixblade9 ah, ok but change to N then
 
@JohanLarsson I should fire you.
 
2:13 AM
I'm out, guys! later
 
How does SO style their tags? Do they wait for the space press event? And then wrap it in a span?
 
2:25 AM
@LewsTherin I think you can debug it using Chrome
even set breakpoints in js things
(i think)
 
Yeah view html source.. but there is a lot of code that will show up.. so I'm reluctant to try
I just need to know the name of concept so I can use tutorials
 
html & js are two of the many things I suk at
 
try ping zneak?
 
i'm psychic :P
 
2:28 AM
@zneak Thanks a lot!
 
Mmn none of the examples are styling it :(
Pre-populated does. I think I can work with that
 
try to style .token-input-token
 
Thanks!
I will have to do this tomorrow.. I'm asleep :(
Human imperfection sucks
 
I hate to think we spend the third of our lives sleeping
WAKE UP, EVOLUTION: IT'S NOT AN ADVANTAGE TO SLEEP AT NIGHT ANYMORE
 
2:42 AM
yo guys
something is driving me nuts... I have a question, but I can't seem to make it into a question for SO... so I'm hoping maybe you guys can help me
with either the question itself or how to ask it
cool?
 
I guess
 
ok so I am pretty familiar with ASP.NET MVC, C#, Razor, etc
and I have an idea for a fun side project that would be writing a web based multiplayer game right
I'd use SQL Server and MVC, but I feel like there is a piece missing but I am not sure what to use...
like, I can't just have the only game transactions happen on server requests
I need either some kind of running process or a scheduled task or something....
but I don't know if there is anything ideally suited for this in the MS tools world since I am already using MVC and MSSQL
I mean obviously I could just write a console app that just runs
but then I don't know if it would simply just run on ticks, like do checks and process things every so often, or if it should some how respond to events
 
a background process sounds like the right thing to me
 
this really is a pretty daunting project but I think I would learn a lot
even if it's simple at first, I just need to learn more about the time based things
because timing would be kinda important in this
like let's say 500 people each moved a player from one town to another, and let's say it takes 2 hours to get there
so they all log off
now if one guy logs on, the server would have to process all 499 other players to show that yeah they are all here in the town with you
but if I had a background process that ran on intervals, I wonder how long the interval would need to be
 
that's really a big design question and I feel only you can answer that
 
2:50 AM
if it is only every 5 minutes, then I'd have to process things on request sometimes
 
it depends on a loooot of stuff
 
yeah I am just kind of trying to discuss to help me think better :)
have you ever heard of Travian
I haven't played it in years, but it has some gameplay mechanics that I like
it's even written in PHP, and I have no idea if they have a background process going on or not
 
yeah, I know Travian
but I don't know what it looks like
(now at least)
 
I mean it IS possible that I could write this game using purely MVC, and just process things on requests
I could, say, process only the things this player needs, but then start another thread and process other things or something
however then if nobody logs on for a while that could be nasty
this is such a challenge I MUST FIGURE IT OUT
I guess what would really help, is if I could figure out some terminology...
like what am I trying to do
there must be some more general way of saying it besides making a web based MMO
that way I can find a book or a resource and learn from it
maybe "real-time web application" or something? dunno
 
maybe you're approaching the problem from the wrong side
what would you do if you didn't need requests
anyways, it's 10 PM... about time I go home
good luck
 
2:58 AM
actually this looks interesting meteor.com/main
alright thanks, night
 
In case anyone is a SQL guru:
0
Q: DELETE vs TRUNCATE

Stuart BlacklerI am trying to get a greater understanding on the differences between the DELETE and TRUNCATE commands. My understanding of the internals goes something along the lines of: DELETE -> the database engine finds and removes the row from the relevant data pages and all index pages where the row is e...

^great resource, check it out
 
hi
is it okay if I ask a question here that would involve a few lines of code?
i need help XD
 
Shoot
 
?
 
3:13 AM
ask the question
 
oh okay LOL, hold on
before that, how do I output text here as code? is it the same when I would post a question on the Questions board?
okay, never mind that
public class ComSettingsVT
{
public ComSettingsVT()
{

}

public int mBaudRate;
}


public class PhysicalComDevice{

private ComSettingsVT mComSettingsVT;


public int GetBaudRate()
{
return this.mComSettingsVT.mBaudRate;
}

}
i'm currently assigned to a project that involves connecting a weighing scale to a PC terminal via RS232
i'm in the process of creating a unit test code for the "PhysicalComDevice" class
my problem now...
is whenever I would run the unit tests, an Error Message keeps persisting that points out a NullReference Exception
in the Error Stack Trace, the first problem listed points to the GetBaudRate() method
 
can you debug and step through it?
 
Where do you initialize mComSettingsVT?
 
how can I fix this? If you need more info, don't hesitate to ask
hold on
 
yeah wait, is this ALL the code?
 
3:23 AM
the PhysicalComDevice is actually a class derived from a base abstract class
 
because Freddy is probably on to something here
you have thisPhysicalComDevice class
 
You need to initialize mComSettingsVT somewhere like in the PhysicalComDevice constructor
 
yeah
 
the ComSettingsVT is initialized in the PhysicalComDevice's constructor, right here...
this.mComSettingsVT = new ComSettingsVT();
 
your private ComSettingsVT mComSettingsVT;
 
3:25 AM
you need to new it
 
ok
 
like
ComSettingsVT mComSettingsVT = new ComSettingsVT();
in the constructor
or
 
wait why wouldn't this.mComSettingsVT do the same thing
 
private ComSettingsVT mComSettingsVT;
Or change that to
private ComSettingsVT mComSettingsVT = new ComSettingsVT();
 
that's what's in here, @Freddy
 
3:26 AM
can you post more code?
you could use pastebin or something
 
private ComSettingsVT mComSettingsVT;


public PhysicalComDevice
{
this.mComSettingsVT = new ComSettingsVT();
}


that's what is in here. It should work, right?
 
And you still get the null reference error?
 
well there are also a bunch of other errors
but mBaudRate is a variable O_o
 
ah mixed it up with the method
Is mBaudRate initialized somewhere too?
 
well I have a SetBaudRate
public void SetBaudRate(int inBaudRate)
{
mComSettingsVT.mBaudRate = inBaudRate;
}
but that's it
 
3:35 AM
VS should tell you which variable is null in the inner exception
 
tell me where?
the Error points exactly to the line "return this.mComSettingsVT.mBaudRate;"
 
Where the error box pops up you can view the details of the exception
Put a breakpoint on that line you can check the variables
 
so, after putting a breakpoint...
then what?
 
Run the program and when it breaks, hover the mouse over the variables to see what they are
 
3:55 AM
I ran the program
is something supposed to happen when I put a breakpoint on the line?
 
The program will stop at the breakpoint
 
the breakpoint is the small red circle at the left side of the window, right?
 
well, it doesn't, I hit F5 and the program still runs fine
 
Then the error must be fixed
Or rather the program never reaches that line
But it must do if that's where the error occurs
 
 
2 hours later…
6:04 AM
Hey guys anybody know if SE API is RESTful web services or SOAP? Or neither...
 
6:43 AM
Guys, any1 here??
How do i stop a buffer overflow..??
 
7:43 AM
@SamyS.Rathore What kind of buffer overflow?
 
hie freddy
my friend here works in c++ applications
he has a buffer to store a byte array
which he fills at runtime from some file he reads
this buffer is overwriting some other variable values, which otherwise shouldn't have been changed
any idea how this could be solved
 

Lounge<C++>

Today we're daydreaming about C++26 reflection
that would be a better place for c++ questions
 
if (bytesInBuffer + bytesRead > sizeOfBuffer) throw new Exception("Buffer overflow"); ?
 

« first day (789 days earlier)      last day (4154 days later) »