« first day (1468 days earlier)      last day (3474 days later) » 

3:00 PM
If they expect you to write code in any form then they should offer you resources for that task.
TFS will work for what you want.
 
We just have to take with what we get (CATIA v5.20/VS2012/python 2.7). Writing code is not actually "that much expected", you just have to solve the integrals numerically.
I could also use matematica -if I knew it- however at some point things become more manageable by using a language where you can easily name/use structures & objects to keep data together.
 
What language do you all know?
Assuming you all have knowledge of one in particular
 
Python, like I said the half year education is what most people have as "only" experience in programming
 
Didn't know you could write python in vs
 
IronPython
 
3:09 PM
 
True, but I was also talking about spare time projects ;P
 
Folks, I've got a GDI+ question. Does it make sense top new-up pens and brushes in OnPaint() every time it's called? Alternatively, I can have pens and brushes as member variables (fields) and initialize them once.
 
@NickAlexeev no, its too resource intensive
 
Aw github doesn't recognize my uni email address :(
Probably only focussed on US universities.
 
It recognises mine.
I was a UK student.
 
3:13 PM
oh nvm now I got it.. To verify an account it is not good to only click on the link in the mail, but you actually have to click again on the page that opens
 
@ton.yeung They're the main part of your game
usually there are two functions which take care of processing your game logic and presenting it to the user, respectively
 
Anyways time to learn C#.. It's about long enough I said: "tomorrow I start on it"
 
@ton.yeung So it's just the logic?
in that case, forget about render
 
Best feeling: Reduce LoC in a file by 10x using systems you've built.
 
your update might look something like this:
function update()
{
    setTimeout(update, 10);
    // do stuff
    actor.update();
}
ideally you'd also use time deltas
 
3:16 PM
environment moves around the objects, the objects don't move around the environment?
 
environment tells your objects when it's time to move
the actors shouldn't be handling the timing themselves
it would update each actor
every ~10 milliseconds their positions or whatever should update
@ton.yeung yup
well, ignore setTimeout
that's pretty standard timing stuff. everything else comes after that
 
do we really need more spawns of @ton.yeung running around?
 
You could also use a single setInterval, but it might be a bit more variable, idk
 
Hi, just wondering - does the stack overflow network have a knowledge style site that has guides on coding, rather than one designed for Q & A's. I wish to start coding in C# so I can begin using Xamarin and I want to take my time reading about the pros and cons of different development environments but as I understand it asking a question on this would be deemed to subjective.
 
@ton.yeung do you know about time deltas?
 
3:21 PM
@ton.yeung thank you, and where would I find that - a quick search of the home page doesn't seem to show it listed.
 
var time = Date.now();
function update()
{
    setTimeout(update, 10);
    var now = Date.now();
    var delta = now - time; // this will be in milliseconds
    time = now;
    actor.update(delta);
}
 
@ton.yeung ahhh, I see!
Don't worry, I am doing that in addition! I
 
So in this case, the delta tells the actor how much to add to its internal clock
which switch?
you want the actor to perform an action every second?
 
Yep, I agree and I'm definitely going to do that along with following plenty of tutorials online. Having developed in PhP I'm just aware of how many different dev environments there are and wanted to focus on exploring the options for C# before I really got stuck into learning the language. I realise that this is a slightly odd way to do it!
 
make a variable that stores the time remaining until the next action
in the update, subtract the delta, then if the time has expired, perform the action and add 1 second to the time
(In JS, deltas are often in milliseconds)
something like that
 
3:31 PM
@James VS is irreplaceable imo
Xamarin is okay but its no VS
And monodevelop is more like a text editor.
 
actor.actionClock = 1000;

Actor.prototype.update = function (delta)
{
    this.actionClock -= delta;
    if (this.actionClock < 0)
    {
        this.actionClock += 1000;
        this.action();
    }
}
something along those lines
 
@ton.yeung Is that what he's doing?
 
@Sippy nuh-uh
 
@KendallFrey dnt argu wid me kindle
 
@Sippy Yes, that's what I used when I was learning to develop Windows apps for JS and HTML 5. I was going to go straight to learning how the Xamarin / VS integration works however I think it may be more thorough for me to use Xamarin for a bit first, understand how it should work and then look at the VS integraton
I did like VS very much though.
 
3:32 PM
xamarin vs integration? wat?
@ton.yeung Oh.
Oh shit
I didn't realise Xamarin was a fucking mobile framework lol
I just meant the Xamarin IDE xD
How the fuck did I manage that
Well at least now I know I can make cool mobile apps.
Cheers dudes.
 
@Sippy yeah, my ultimate aim is to build a very simple app for our business needs as an experiment (it is not a priority for us, just something to explore) so I'm starting to learn mobile development, at least for iOS and Android, completely from scratch.
My very first starting point is basically here... developer.xamarin.com/guides/cross-platform/getting_started/…
 
@James I'm guessing the Xamarin API wraps android and iOS as an xplat framework?
 
@ton.yeung the update and render loop is pretty powerful, and much more conducive to games than an event-based model
The downside is, input is complicated
@ton.yeung sure
 
@Sippy Ha, you've lost me already. As I understand it by using Xamarin I write in C# and then it compiles that code and in doing so 'translates' it into the native language of each platform.
 
performance shouldn't be an issue
 
3:39 PM
Another very basic C# question; my only database experience is MySQL - does C# programming utilise this or will I have to learn something else?
 
unless you have high frame rate with lots of overhead
 
@James Well if you wanna write an Android app you use the Android API, or for iOS you use the dirty dirty Obj-C API for Apple shit. I'm guessing the Xamarin API wraps their APIs so I only need to know Xamarin to make the others work.
 
oh, networking?
that makes it interesting
 
@James SQL is pretty much the same even for different databases.
There are slight differences here and there but nothing major.
 
@Sippy Ah, ok. That makes things less daunting!
 
3:42 PM
@ton.yeung If you want to see the render loop in action, jsfiddle.net/kendfrey/kxt8dnv2 (I just put the update logic into the render function because quick-n-dirty)
 
@James :)
 
@ton.yeung Yeah, I may call you later. I've got some questions for some of the architect items I'm doing. Want to start planning my project and the goal.
@ton.yeung Mostly because the customization of the page / layout is going to cloud apart of the business goal to a degree.
 
4:04 PM
Hey, unit testing!
I create some functions in my unit test class they are actually not validating data, it is more about creating test users and making mock entries for them
so where is better place to move them?
It just makes me easy to trigger some automation at my end :)
 
it means I am using unit test for automation, not for really testing output.
is it OK to keep them somewhere under unittest project or is there any special project type or good practice for it?
ok, so I have users lets assume who are adding bookmarks so I have created a function, who creates mock bookmarks from different websites, from different categories
lets assume 1000 new bookmarks for a specific user
So I created a test function to generate it automatically
When I run test it generates those bookmarks for users, and this is a kind of automation
where these kinds of mock creators placed in project?
 
4:24 PM
@Teomanshipahi thats referred to as a Fixture
Which usually lies to the side of a test project
{
   sln : {
       fixtures,
       unit tests,
       integration tests
   }
}
 
got it, that's what I want to learn, I know there must be something :)
will do more reading on it..
if someone interested this article explains fixtures great nunit.org/index.php?p=testFixture&r=2.5.9
by the way thanks @CharlieBrown !
 
@ton.yeung Excellent.
 
Hi all
 
5:10 PM
I would love to get into robotics.
You know what annoys me.
 
You know what annoys me?
 
Someone ask a question, you post a comment to fix the issue. Then they actually take your comment, make it into an answer. Then people vote it up, when the question shouldn't be answered in the first place. Ugh-
@KendallFrey What?
 
@Greg People who use incorrect punctuation :P
 
@"What do you mean?";
 
@KendallFrey Get a better hobby, you bum.
 
5:35 PM
@Greg Ikr?
My iPad's shitty charger broke. Now I have to fork out money to pay for this shit -_-
20 euro for a goddamn cable. What a joke
It was given to me.. so I didn't pay a penny on the tablet. But I knew somewhere in my heart that one day I'd have to
@ton.yeung Probably.. had to win it in a coding competition. So some work involved
Thanks, close call with another competitor. But it happened hehe
Interesting name...
Actually pretty good
 
Anyone familiar with "bitch pleased" MS Project?
 
E.. excuse me?
 
I can't decipher that question
 
I hope you don't work in it...
ye that but then with MS Project.
If I see MS Project all the sudden I get rage moments....
@ton.yeung If I see MS Project Ye I am xD and guess what I need to make a guide about...
 
5:51 PM
@LewsTherin Only chumps buy Apple, haha! They make a good product, but they really try and rip you off.
 
@Greg Ah talking about microsoft?
 
@MikeM. ?
 
@Greg "They make a good product, but they really try and rip you off." A.K.A MicroSoft and Apple
 
@MikeM. Apple, their hardware is so over priced. They constantly solder boards and etc as well. Which make them a waste of money.
 
@Greg I edited my message because I forgot a company. therefor I have an Iphone and I like and dislike it ...
 
6:03 PM
@MikeM. They do make a good product, but they charge a premium for no additional benefits but their name. All I was saying.
 
@Greg I know what you're saying, but MicroSoft is quite the same if you take it in general: "They make a good product, but they really try to rip you off"
@ton.yeung That's indeed true.
even if you go to the apple store for repairs and they can't and there is no liquid damage you're assured you get another but same product {that's what I experienced and some of my friends aswell"
I had a samsung before with warranty and all I got is "This phone is broken you can repair it for €xxx,- or buy another one with €xx,- discount"
 
6:18 PM
@ton.yeung Ye that's what I get with the iphone, if it is within the warranty you either get a fully working repaired phone or a totally new one... (only if they dont have a repaired one in their stock)
@ton.yeung I am talking out of my experience with an iphone and samsung
I received a new iphone by apple, and I only received a repair service that costed me a few hundred price or a new samsung with a few bucks off.
It's by default in the package I buy anyways.
I am working.
My point is I shared MY opinions related to samsung vs. apple
"
even if you go to the apple store for repairs and they can't and there is no liquid damage you're assured you get another but same product {that's what I experienced and some of my friends aswell"
I had a samsung before with warranty and all I got is "This phone is broken you can repair it for €xxx,- or buy another one with €xx,- discount""
That you keep asking stuff related to the same subject while I answered it a few times already.
If I didn't had it wouldn't I just don't say shit about it?
 
@MikeM. But at the moment you come off as a fan boy. Microsoft's Surface cost significantly less than an iPad? Microsoft's Windows Phone cost significantly less than an iPhone? There is no differentiating factor to an Apple to another company. Did you purchase Apple Care?
 
@ton.yeung Same as I thought when you asked these "questions"
 
@MikeM. Thus, what you get with Apple for more money isn't better.
 
@Greg When did I say that?
I said I dislike and like the iphone.
I also stated that BOTH companies tries to rip you off at some points
@ton.yeung seriously just STFU okay.
I answered it a few times now shut up about it if you have nothing USEFULL to say.
@Greg I don't know where you took out I am a fanboy....
 
@MikeM. True, that is business. But Apple has far greater margin thus, they have higher profits. They force other retails to their pricing, or don't sell to them. Thus hurting the consumer.
 
6:30 PM
@ton.yeung I agree with this
 
@Greg Indeed and therefor people can complain about apple or samsung or any other company.
 
@MikeM. Your trying to say your extra for your iPhone actually equated to better service than a Samsung without providing all variables.
 
@Greg If I wouldn't have the extended warranties with it, I wouldn't complain would I?
it's just a matter of logic...
like I stated before...
 
@MikeM. Except Samsung doesn't say I made this phone for a hundred dollars, I'll sell it to Best Buy for 631 and then force their price to 649
 
@Greg haha yeah.
@ton.yeung Accidental Protection is under my words extended warranty.
 
6:32 PM
@MikeM. Well, in my experience that isn't true. Different factors of people at companies, human error, and countless other items play into the variable.
 
stop feeding the troll
 
@MikeM. I broke a Samsung, they gave me a brand new phone for free. That experience would directly negate your experience?
@NETscape Okay.
 
@Greg Well I am talking out of my experience and no one can change that experience because it happened.
If you don't want to believe me it's not my problem but sure thing don't blame about it.
 
@MikeM. I called you a fan boy, because you didn't read the sarcasm font and instantly started defending a company.
 
Therefor I will not buy an iphone yet again because their prices are just too insane.
@Greg I am not defending a company lolz
Each companies has their go's and no go's
 
6:36 PM
PowerToolsWorkspaceAuthorModePage1356494089MenuClass.cs
<3 autogeneration
 
@MrDoom Wtf?
 
I only have 2 apple products and more ms products....
 
@Greg It's complicated, but it boils down to wanting to avoid naming conflicts and working against old code.
Fortunately I never have to type these class names.
 
@MrDoom I see, I see.
@MrDoom I hope not, far too long.
 
But blaming about apple only is not right if you talk about the pricing...
 
6:37 PM
@Greg That's as long as they get, really.
@ton.yeung Hash of the namespace. Sounds dumb, is dumb, but it was the best solution at the time.
 
Where the hell is the project monitoring place of MS Project -.-
 
There are 14 files that start with "MainPage"
But, like I said, thanks to the wonders of autogeneration I never have to type nor deal with them :D
 
@MrDoom Yeah, too long.
 
@ton.yeung Did that actually get off the ground? I remember when the first PhoneBlocks thing came around and it was laughed out of the EE department.
 
@MrDoom I believe that there is something wrong then if it's not into different folders...
 
6:41 PM
High speed, reliable connection, durable connection. Pick two.
 
@MrDoom Google bought and wants to release
 
@MikeM. T4 folder generation is more difficult than separate files. File names follow class names. Class names are based on information I cannot change.
 
@MrDoom So you have a directory with 14 mainpages? what's the logic of 14 main pages if it's not a mainpage? in my mindset there is only 1 á 2 mainpages per folder
 
@MikeM. Like I said, there are parts that I am unable to change. Design-time T4 generates files and places those files attached to the T4 template. Moving those class files, while feasable, would be more fragile.
I actually did get that working, but it was prone to break horribly if anyone was doing anything with TFS in those directories.
 
@MrDoom Ye I am just talking about the logic behind it at the beginning...
 
6:46 PM
No I agree, it's not the best solution ever. It's autogenerating menu classes for inclusion into pages. The resulting autogeneration saves several hundred lines of code being written.
The only reason I'm doing it this way is to provide intellisense for the people who are writing tests against this stuff. They're going to be non-programmers (not my decision) so they're going to need things to be simple
 
Question, who owns posts at StackOverflow ?
 
the government
 
Me no likey when moderators edit my comments about them
 
where their servers are... lol
 
:P
 
6:48 PM
@Darek What you mean by "owns" posts, if you go basic then the user that posted it. if you go too deep, then the hoster of stackoverflow....
 
:)
Who has the right to delete my glorious bitching about the moderators
:D
 
@Darek uhm everystaff member? XD
 
@Darek I think you do, at least you own the copyright
 
No, just the overzaelous ones
 
posts are provided under CC licensing IIRC
 
6:50 PM
@Darek xD
true
 
it's probably better just to stop wasting your time bitching about moderators...
 
@NETscape I don't agree if the bitching is in and with the right context
 
thats not my problem
 
@NETscape Are you feeding?
 
@NETscape No further comments on that....
 
6:55 PM
@ton.yeung because it destroyed the game completely
 
i'm not Greg. he think's we're the ones in a cage and he's poking us with a stick through the holes of the fence, but in reality you put him in the cage and poke him. that's what trolling a troll is.
 
Guild Wars 2 is fine, too, but it doesn't allow you to convert ingame currency to real currency
 
@ton.yeung RMT?
 
If you haven't noticed, his comments are general, boring, and not at all productive to anything, so when he tags someone in his message, he's just trying to start another boring going-nowhere conversation.
he's just a typical 12 year old that just discovered the internet
 
@NETscape Ah, I see.
 
6:58 PM
The internet is really, really great .... insert what for here
 
@MikeM. Please stop with that language, try be respectful.
 
who?
 

« first day (1468 days earlier)      last day (3474 days later) »