"which completely loses the concept that 51 is an age (in years)." so write int ageInYears = 51; There are many ways to do it in c# (pass the int value in constructor, make an implicit cast operator, ...), but imho the best way is sticking with plain int, as that what "age in years" exactly is.
HaBiX
Posts
-
Is there a programming language... -
.Net Remoting with multiple NICsAgain, I'm not sure about all this: - but I think this is a pure low level windows setting/config. Routes have to be configured/added like IP, gateway, mask, mac, etc of both network cards. I don't think this is a per-application domain (but don't hold my word to it). - there probably is a way to add a route from your .net program, but it probably requires administrative privileges (instead of configuring it manually). - I think "other applications" are already using a route that is configured right btw Why are they using dual nic? I'm curious on what is the use case.
-
.Net Remoting with multiple NICsI'm guessing it works on local machine, because it goes direct on looback (127.0.0.1). I think what you need (not sure) is to add a route. This way you'll be telling whenever I'm connecting to S, use specific gateway. google "adding route multiple nic"[^] hope it helps
-
What was the most interesting, funny or silly Code you have ever read?private bool IsEven(int number) {
return (new[] { 0, 2, 4, 6, 8 }).Contains(number.ToString()[number.ToString().Length - 1]);
} -
A very terrifying stored procedure: how can you solve this issue really ???The code is unreadable - please use formatting and actually write what the issue is..
-
Lately you're very annoying with ultrabook stuffLol.. I wasn't even talking about you explicitly. What really bothers me is "contest entries" getting into article section..
-
Lately you're very annoying with ultrabook stuffHeh.. nice try. I see english humor is still pretty much like CP - dwarfed :rose:
-
Lately you're very annoying with ultrabook stuffWhy do category's latest c#, asp.net articles contain mostly ultrabook stuff (no source code, shallow articles,..)?
-
Lately you're very annoying with ultrabook stuffEvery article has comments like "which flavor", "how does it showcase ultrabook". I have no idea what ultrabook is nor do I want to know what kind of (i'm guessing) competition you're running.. Please make a special category for ultrabook-whatere-you-have-right-now, so we can use codeproject like we used to.
-
How Do YOU Type “wolfram”? Analyzing Your Typing Style Using MathematicaSo when you make a typo there is a possibility you could login to someone else's account? You could just concat username & password and have a 1-textbox authentication... I'm thinking: you're really not making anything new.
-
how to protect my online database?"I want to have a very secured data whee NO ONE except me can open or read it." Dont use external hosting - if they want, they will see/get your data anytime. What Gerben suggested is fictional security. Compiled web app can be decompiled with a click. If you use certificate for encryption (no sql level, or asp.net level), you will have to store (public+private key) it at host (hence they can use it too). Obfuscated code / embedded certificate wont help - its another layer of fictional security.. There is simply no way for you to achieve your goal. Some things work on "trust" base - like: - i trust my bank wont give away my info / access my money (not really) - i trust Verisign Certificate Authority, so i trust i'll get legit response when verifying certificates issued by them .... (dunno how much you trust your hosting provider) but, if you want something only you can access, dont let it leave your pc :-)
-
We Don't Need No Stinkin Indexesindexes are so 90's..
-
Austin Danger Powerslol
-
MoveNext is not moving next!!wow.. people still do plain asp/vbs?
-
Is it possible to block access to a specific registry key?dunno, but is regedt32.exe not ok?
-
Problem with 100% height table layoutSeems part of my html code doesnt show inside code tags. Here's the link to page for what i was going for: http://212.18.51.202/layout.htm and problem i'm getting in IE: http://img143.imageshack.us/img143/1761/ssqh7.gif Thanks
-
Problem with 100% height table layoutIts a simple 3 cell table layout:
top left cont
In firefox it shows up just as i wanted, but when i open it in IE7 the table is actually bigger than window size and the vertical scroll bar apears. When i resize window it sometimes shows correct, but most of the time not. what am i doing wrong here?