Ray Cassick
Posts
-
Multiple SilverLight apps -
Multiple SilverLight apps -
Why I am hating Hotmail today -
Why I am hating Hotmail todayHmmm... You know... actually... Games. I have to admit that not many games tick me off. I used to use all the old ones like Duke Nukem and a bunch of others that sadly now I simply can't run because they are so old that the CPU is far too fast. Really makes me want to just put together an older PC and load some of the older stuff for memories and some classic killer time. One I used to play all the time was one that I can't remember her name now.. name.. what the heck was it.. You used to be able to move her around in the forest and fight animals and climb around on mountains and stuff.. Man, what the heck was that name... I used to have some great utilities too... WAY back the great tools to allow you to copy files between folders and all those neat apps, before they tried to get cool and shinny and snappy looking... Ah, the good old days...
-
Why I am hating Hotmail todayI am really getting tired of their attempt to 'protect me' from stuff... I sit in on some online presentations from a company called Northwest Cadence, and every time they send me a confirmation Hotmail 'protects' me from them and puts the email as some type of guarded message that I have to click extra just so that I can read the freaking screen. Grrrr... I can't seem to have any place to update them either so I can't seem to get Hotmail to understand that 'I' trust them. What a pain. Really starting to wish that I could just opt to turn everything they have as an 'option' either on or off. Oddly enough... I am starting to get used to Google Chrome, but I am sure that I rill run into something about them that also annoys me soon enough :)
-
Do people search any more?No... no one searches anymore... Sucks, but it is true... and yeah, I get your comments on Google too. They are really starting to get my goat lately. Just pulling up a list of results is not only forcing the actual site URL down to a latter page but you also get that freaking picture of the site now when you hover over a link. Its really starting to get annoying. I also need to understand why I need to keep trying to kill the GoogleToolbarNotifier and the other things that it wants to have running in the background all the time. Why can't I just use their freaking toolbar when I want to and then when I go to their site have them tell me THEN that I have an older version and may want to upgrade. Man...
-
Multiple SilverLight appsI just can't seem to locate anything that gives me definitive stuff on being able to host multiple individual SilverLight applications on one web page. I am looking to be able to create a few different individual SilverLight apps and place then on different areas of the page so the user can interact with them individually. Just seem to be having a hard way to show how this is done. Any good examples anyone is aware of?
-
Login Form -
Oddness that I never noticed beforeWorking around in some XAML lately and have come across some odd stuff in the way commented code seems to be handled, or rather actually, not handled. Note: Apparently writing XAML code in the editor is a PITA to get it formatted looking well so you may have to look at my examples a bit... Just being able to add some typical comments inside some basic XAML looks like so:
So now, I want to comment out my code as a whole and I try to just wrap my start and end tag inside of its own set of XML comment tags and I get:
-->
Error = Comments cannot contain two adjacent hyphens '--', Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment. This however is just fine apparently:
It just seems really odd that the editor seems to have such an issue with the commenting stuff when you are using multiple comment lines:
-
How to get a list of all the APIs exposed by a web service? -
Debug.WriteLine -
Debug.WriteLine -
Debug.WriteLineOk, I have just about had enough... Two systems, one laptop one desktop. Built the same small test app on each one. Just a button that when clicked writes the following:
Debug.WriteLine("Test");
The laptop writes the 'Test' out tothe debug window just fine... the desktop doe snot. Ready to really throw a fit here... Any ideas before I toss things out the window? Aaaaaaaaaaaaaaaaaaa
-
Bad websites lately... -
Bad websites lately...Just asking a question out there... Am I the only one that seems to be having a ton of issues with web sites that require you to enter in the CAPTCHA stuff? In the last month I have tried to sign up for at least 4-5 web sites that require this and after I get all the way down tot he bottom of the form I see the message asking me to 'Enter in the code as shown in the image below to validate that I am a person and not an automated system' and but there is no CAPTCHA UI shown on the screen at all. Not even the CAPTCHA 'stuff' with just the letters missing, it is like the entire div on the =age that houses the interface is simply not there.
-
Taking the fall -
Voting Functionality -- Incoming TrafficI am getting a bit confused here about what it is that you are REALLY trying to get to... I am sure that your system could probably just do a numeric increment (IE: username1@..., username2@..., etc...) but that is not going to guarantee that someone has those addresses registered, or even wants you know know about them or use them. I would rather see that you just stick yo your initial requirements really. Your original requirements were to allow people to only vote once. YOU cannot be responsible for people that have multiple email addresses setup (like I do - in reality almost 12 in total for various reasons) nor do I think it is your responsibility to care really. If someone signs up like that whats the big deal? I would think that making assumptions bassed upon some personally designed algorithm could lead you down a slippery path of ticked off customers more than anything in the long run. Do some basic checking (IE: If they are dumb enough to sigh up using different user names but then use the exact same user name and password, or actual name, or addresses, etc...) and remove them, but the others, whats the big deal?
-
Async Exception with WCF - SilverlightI would start by running a trace on the system using wireshark to capture the entire transactions, both working and not working, then once you get an error, start by doing a side-by-side and seeing what the REAL differences in the messaging are. Also, could you be at a traffic level that is maybe limiting your available ports at certain load times? Any other exceptions being caught? Is the messaging reliable enough to ensure that your packets are really not getting corrupted or altered in route? If this is a REAL issue for you it may just be time to reach out to a support path like MS or a local vendor. But I would start by actually doing the full side by side using wireshark first.
-
When to Define a Custom ExceptionMy decision is to define a custom exception when the need to do so is... well... exceptional :) Really though… If you have an exception definition that clearly fits an existing model then use it, why reinvent the wheel at all? If you are creating a new failure state, usually most likely based upon things like a domain specific business rule, then you define a new exception of your own design. BUT you have to keep in mind that quite often even doing this can cause issues because as we all know business rules change. This means that you may want to be slightly less specific and more generalized by defining a business rule exception and allowing it to express the rule broken, and the why it was considered broken enough to trigger the exception. I would like to know what books you say are specifically stating that new exceptions should always be defined instead of using the Dotnet ones. I would have to have a conversation with that author :) I am not even sure I see the value in writing all custom exceptions when creating a whole new code library of your new library is something that sits on top of the Dotnet framework. If you are writing something that is completely disconnected at all form the Dotnet stuff then yeah, you have to create your own exceptions to throw, but that makes no sense in this context really since your question was more related to being told to not use Dotnet exceptions :). If you did want to keep all the exceptions specific to your application layer then there is nothing from stopping you from writing all your own custom exception code, but I would still recommend that you consider catching the Dotnet specific stuff and then just re throwing your own as a general application side exception and then include the Dotnet exception in that object. Seems a bit messy but I guess it is doable and will not require too much writing on your part. Just remember that every additional line of code you have to write can possibly introduce a new error (and thus CAUSE an exception :) ) so I like to keep them down to a minimum. One other argument I would make for maintaining the existing exceptions provided by the framework is that anytime they change you need to ensure that your code changes also. This means that if you have wrapped all of the Dotnet exceptions in your code, any time the framework changes you have to review all those changes to see what effects they have on your code. Not that you may not have to do the same if the base libraries change their exceptions and you have to catch th
-
Voting Functionality -- Incoming Traffic??? Ummm... Voting... require them to log in using a username and password and then store what they already voted for. DO NOT restrict them based upon IP address because that will just lead down a slippery slope of recycled addresses provided by ISPs. Now the other question.. Why are you even asking… if you look around there are tons of pre done sites that you can leverage for things like this. Why redesign your own? How can you be SURE of the expected incoming traffic?