i like the path in which the availability gets checked twice
Kevin Drzycimski
Posts
-
Someone is sure that availability check is performed no matter what -
Doing gravity rightthis half step reminds me of the Velocity-Verlet-Algorithm http://en.wikipedia.org/wiki/Verlet_integration#Velocity_Verlet[^]
-
Ubuntu’s goal is one OS from phones to supercomputersi would never use Ubuntu on my supercomputer :omg: they have an extra designed OS also for the clusters, Ubuntu is no good choice. It has to much standard features which maybe opt-out, but i prefer everything on opt-in!
-
Microsoft.Sharepoint.dllSometimes the code does not get correctly "reflected" by the Reflector, perhaps it is just a Compiler Optimization or so.
-
Just a C++ tutorialnevertheless the pointer is immediately dereferenced, so in this example it is perfectly OK :laugh:
-
Just a C++ tutorialone of the many "DON'TS" in C++ i hope this tutorial is just a "do not"
-
How many seconds would it take to break your password?the link says, that using a bigger alphabet is more secure, but this is just plain wrong it is better to increase the number of characters, even, if they are simple (lowercase letters) simple math: say 'k' is the size of your alphabet and 'n' shall be the size of your password. then there are k^n possibilities. increasing n is much more valueble than increasing k. just try it out: f = @(n,k) k^n; f(6,40) = 4.0960e+09 f(6,41) = 4.7501e+09 f(7,40) = 1.6384e+11 f(10,60) = 6.0466e+17 f(10,61) = 7.1334e+17 f(11,60) = 3.6280e+19 f(20,60) = 3.6562e+35 f(20,61) = 5.0886e+35 f(21,60) = 2.1937e+37 as you see, increasing the first parameter (length) makes like 100 times more possibilites, while adding one more symbol is like not even doubling. so, a good password is a passphrase, take 3-5 random (and easy to remember) words and stick them together. the idea to use passphrases came from http://xkcd.com/936/[^]
-
Brilliant Logicthe unequality test is more portable i actually used it in CUDA, afterwards i found out there exists an isnan(x) builtin function now porting to other languages is more easy
-
Brilliant LogicI dont believe your designer wanted it that way, but a comparison to a NAN is always false. I am using a similar NAN-Check if (x != x) ... gets true if x is NAN
-
Not null checkLuc Pattyn wrote:
if ( ( (a==null) == false ) == true ) {...}
can you extend this recursively? only to be very very sure:
if ( ( ( ( ( (a==null) == false) == true) == true) == true) == true)
to shock afterworkers and make compiler happy, one could sometimes say
== true
and== false
:laugh: -
How to get the logged in userthe method should be called
RecursiveParentsForLoginId
-
Hidden Features of C#GenJerDan wrote:
Ja, und hinterher ein Nasenbär und keiner weiss warum.
oh, der kam unerwartet. aber werde ich mir merken :-D
-
Hidden Features of C#well seriously, you should read this book http://blog.oncode.info/wp-content/uploads/2008/02/rtfm.png[^] perhaps you didn't read well, because after 17 iterations you should have your relevant information, if not, read it 17 times again
-
Hidden Features of C#sorry, but if you look at the MSDN C# Reference http://msdn.microsoft.com/en-us/library/618ayhy6.aspx[^] and hit C# Operators you can see them at glance. Looks like there is some RTFM to do :-D
-
Collection matching of data/view models with LINQIan Shlasko wrote:
So what do you think? Too concise? Too LINQy? Or just right
absolutely right! i also prefer C# coding like this...it makes more like a functional language while keeping the good ol' imperative stuff. my colleagues are slowly going to use these neat feautures :>
-
When the CEO becomes a developer IVi mean it! The glorious "How-Not-To Programming", or "The 99 Don'ts of Web Development"
-
Template Template Template Parameterwith many many partial specializations, that would be something for the Coding Horrors :laugh:
-
Template Template Template ParameterAlex Fr wrote:
Looking at Template Template Template parameters, I think, maybe the filter was right...
:thumbsup: thats a good one! but dont get it wrong on Alexandrescu <- he is great Template Template Parameter are "ok" what i did here with Template Template Template Parameter (say that 10 times fast) was just a little joke^^
-
Template Template Template ParameterTemplate Template Parameter Following Policy Based Design from Andrei Alexandrescu, there is a certain need for template template parameters and after using them a while, you get quite used to it:
template <
class T,
template <class> class Policyclass Host {
};But what when you pass a policy host as a policy to a greater host? I didn't even know if it works, so just tried out;
template <
class T,
template <
template <class>class Policy
class Host {
};For the sake of brevity, i made only one of those. in the real code there are 4 policies and 1 policy-policy with 4 policies I have to change this sooner or later...wrapping the Policy to a inner type or something.
-
Stored Procs, Packages, Views...Pah!Ray Cassick wrote:
You can use the best tools on the best platform using the best agreed upon methodologies and still write code that is ugly.
:thumbsup: