1,198 reputation
1912
bio website
location Umeå, Sweden
age 30
visits member for 3 years, 5 months
seen 2 hours ago

C++ developer at heart, loves to play around with graphics APIs.


May
18
answered number of square matrices in a non-square matrix
May
18
comment number of square matrices in a non-square matrix
@Zishnu Sadly, ignoring questions that is not quite up to par is very detrimental to the quality of the site. Anyway, there appears to be ambiguities in your question; for any matrix larger than 1x1, there are multiple solutions. Do you care about which one is chosen?
May
11
awarded  Nice Answer
May
10
comment node deep file indexer module cannot go deep
Contrary to popular belief, the contents of a call stack trace contains information you can use to determine things about the problem.
May
1
comment Data integrity, BinaryWriter, C#
Figure out how much overhead is acceptable, and use that many bits. It might be worth having a byte of checksum for N 48-bit blocks. Assuming you never have partial writes, you cannot desync in your storage solution.
May
1
answered Data integrity, BinaryWriter, C#
Mar
23
answered Add file paths to database
Jan
9
answered Why don't all UI Control methods RunOnUIThread
Jan
8
comment Why would a program require a specific minimum number of CPU cores?
@StevenBurnap Had the original question been about the things which make the performance requirements of games different from a lot of other computing to the degree that such a minimum number of hardware threads requirement is warranted, then an answer expanded from my comment with a bit of research may have been appropriate. The current shape of the question is largely uninteresting to answer, as it's just about gathering fodder for some argument about whether it's possible to have a hard failure by not having enough hardware threads. The mass of other irrelevant answers also deters.
Jan
8
comment Why would a program require a specific minimum number of CPU cores?
The thing to compare isn't 2 vs. 4 cores. It's essentially 1 vs. 3 cores, as CPU#0 will be pretty much pegged by the graphics driver and DPCs. There are also significant cache and migration effects if you oversubscribe a CPU with several kinds of tasks in a typical modern game's job system. The requirement is there because Frostbite (DA:I's engine) is designed from the ground up with very careful tuning that requires a particular number of cores.
Dec
15
comment Why using string[] args in all main methods?
@Mawg argc in C may be zero. in case of non-zero argc, argv[0] shall be a string that represents the "program name", or an empty string if the name is not available from the host environment. There is no requirement anywhere that it shall be a "full executable path". This is all from C99 section 5.1.2.2.1. Even your non-normative URL says this.
Dec
12
awarded  Yearling
Nov
28
comment It is safe to accept money for open source software that you've written?
Your modification of the MIT license means it's not the MIT license anymore. You can license your software under multiple licenses, some of which may only be available for charge. Is your question about dual-licensing software, or concerns about taxation and other economy funstuff that may arise due to dealing across nation borders?
Nov
4
comment Hide admin menu if no admin option is available
@Jorge Your comment seem a bit strange. If by "again" you mean on the server, you don't have any security. You cannot trust the client.
Nov
3
comment Should a getter throw an exception if its object has invalid state?
On the subject, Falsehoods Programmers Believe About Names is a very good read on why 'first name' and 'surname' are very narrow concepts.
Sep
24
awarded  Autobiographer
Sep
10
awarded  Deputy
Sep
1
comment Is it possible to modify a native executable and change (dynamic) library it depends on?
Note that DLLs on Windows do not only have exports by name, but also by ordinals (16-bit? number identifying an export). A drop-in replacement library should also have the same ordinals for its exports in case the application imports by ordinal.
Aug
18
comment Where did the notion of 'calling' a function come from?
@Blrfl I skimmed the paper, it does not use the term call or any other term, it mostly just talks about use of subroutines.
Aug
17
comment Why can't we use IP address instead of cookies in identifying the client in servlets?
It's nice to know that even when IPv6 rolls out proper this problem will still not be solved thanks to privacy extensions changing your address over time.