Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

T M Gray

@T M Gray
About
Posts
395
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Suggestions for computing luminaries as face cards in a deck of cards?
    T T M Gray

    I was thinking about doing a hobby project related to poker. I don't need graphics for the suits as those are available as HTML entities. But for the face cards I was thinking public domain pictures of people might be interesting. I would like a theme for each suit and try to come up with two males and a female to represent the face cards. For example if clubs were the business leaders in computing I might have Bill Gates, Carly Fiorina and Steve Jobs as King, Queen and Jack. If hearts were computing history I might have Charles Babbage, Ada Lovelace and Alan Turing. If diamonds were hardware, Gordon Moore, Dennis Hayes. People may not know the name Dennis Hayes immediately, but if I said ATH0, plenty of geeks would say "Oh that Hayes". So what are your suggestions for suit themes and the people to go with them?

    The Lounge html graphics hardware business tutorial

  • Fun Firefox Bug
    T T M Gray

    Why are you using a splash screen on the web? Splash screens are annoying wastes of bandwidth. Why would you deliberately put content outside the viewable window if you don't want people to scroll? Sounds like if you had a better planned website you wouldn't run into unplanned features.

    The Lounge css com help

  • Do you need a college education to be a programmer?
    T T M Gray

    As humans are further removed from the early stages of the hiring process degrees will become required more and more. Your resume is parsed by a computer before a human looks at it. It is assigned a score. People without a degree will get lower scores if the job requirement mentions a degree even if it is just as a "nice to have".

    The Lounge learning career csharp com

  • Why oh why database
    T T M Gray

    Usually that kind of column naming is to handle customization. Depending on each implementation those fields might mean different things for different customers. Not every company would use a CRM system to track Orders. So LongValue7 being OrderNumber would make no sense for those customers. So are you updating the description of each column in MSSQL as you figure out what it is? That way you can have database diagrams that show you somethnig meaningful.

    The Lounge database sql-server design help tutorial

  • Fetching Website Visitor Details By Email
    T T M Gray

    E-mail seems like a terribly inefficient way to record that kind of data. Try adding google analytics[^] to your site. It will give you way more than what you are looking for and probably take less time to add than some custom code for the short list you gave.

    C# csharp visual-studio

  • Development Methodology
    T T M Gray

    Microsoft has something they call the Microsoft Solutions Framework which has definitions of teams and various artifacts. I haven't looked at it since several versions back when I was studying for the now retired 70-300 certifciation exam. It looks like it has been updated to handle some Agile processes since then. I don't know that I would actually recommend using that particular framework, but at least it will give you a good idea of some of the concepts you should consider.

    Design and Architecture wpf question

  • custom symbol handwriting recognition software
    T T M Gray

    You sound like you went to the Underpants Gnome[^] school of business. Step 1: Land Contract to build system Step 2: ? Step 3: Profit!

    C# csharp ios database visual-studio wpf

  • User search(ctrl+F) on asp.net page with multiple textboxes
    T T M Gray

    You need to find some other control that renders the value without using an input element like many of the rich text box controls.

    ASP.NET csharp asp-net tutorial question

  • Open Cash Drawer
    T T M Gray

    You can't. Any question of the format "how can I <do some hardware function> from my C# application regardless of the machine brand and model" will have the same answer. In situations like that you code for the most popular hardware configurations. How many hardware types you include depends on the market segmentation of the hardware. In other words if 2 vendors cover 80% of the market, 2 is enough, but if to get 50% market penetration you need to cover 4 vendors, you might want to go 5 or 6. Then if you have built a product that is useful enough someone may pay you to add in other hardware platforms.

    C# question csharp

  • giving error message according to Sql data
    T T M Gray

    So educate us. Tell us WHY. I laid out facts. You offered no solution to the original poster. You give no explanations. Try and contribute something useful rather than personal attacks.

    C# database com help

  • giving error message according to Sql data
    T T M Gray

    But do you know why it is bad practice? My point is that you shouldn't do something a certain way just because someone says so (even if that someone is Microsoft). Nothing in that article explains why you shouldn't use exceptions for program flow. If you had posted this[^] instead, that at least gives reasons related to performance. There should be real reasons behind why you code a certain way. If the original poster is not strong in SQL and has no method of source control for database schema then using the stored procedure solution makes it less maintainable. That probably outweighs the performance impact of the Exception use in one method of a small application. Blindly following a "best practice" without considering the specific situation is a bad idea. Consider this case[^] where it is a choice of one exception or 4 database roundtrips. Avoid dogma in code.

    C# database com help

  • giving error message according to Sql data
    T T M Gray

    If that were strictly true then there would be no throw method. There would also be no need for subclasses of Exception. If you know what type of Exception to expect then it isn't an unexpected event. The answers I gave are factually correct. Your statement is a matter of philosophy or preference.

    C# database com help

  • giving error message according to Sql data
    T T M Gray

    You could catch that particular exception. You could use a stored procedure to do the insert that checks first and returns a value that tells you what happened. A third option would be to query before you do the insert, but that is inefficient as you are making two trips to the database instead of just one.

    C# database com help

  • The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
    T T M Gray

    Your test and development environments should always match the production environment in terms of framework version and IIS version. But aside from that you didn't say anything about the code. What does the code do? Does it always crash on the same page? Can you figure out what line or at least what method is cauing the error?

    ASP.NET csharp sysadmin help question

  • The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
    T T M Gray

    Usually getting errors with an HRESULT is from when you are doing InterOp with non .Net code. Is there anything else you can tell us about the code?

    ASP.NET csharp sysadmin help question

  • clear everything!!!
    T T M Gray

    You should really abandon the session rather than just remove all of the contents. The response.clear and redirect don't do anything to get rid of the history. You need to be looking more at the cache. If you do everything in update panels or with other ajax methods, then the back button won't do much.

    ASP.NET database question

  • hide ajax files
    T T M Gray

    In general, you can't hide something from the client if you need the client to use it. My suggestion would be to convert all your js files to aspx files and set the content type. Have them do a referer check and set the caching options to not cache. It won't be good for performance and it won't stop a seriously determined person, but it should be a pretty big speed bump to most people.

    ASP.NET javascript css tools help question

  • Interview task - what can I expect?
    T T M Gray

    Don't use outdated terms like DTS. The current tool would be SSIS. If you don't plan on using entity framework in your sample or something else other than straight ADO.Net in the page, make sure you let them know that a real application would probably use some framework like nHibernate in a real data access layer and not just simple ADO.Net directly in the pages themselves. Unless of course you personally would normally use ADO.Net directly in the pages. If so, slap yourself with a trout hourly until you learn all about separation of concerns and proper object oriented design.

    ASP.NET csharp database asp-net sql-server sysadmin

  • How to return an environment variable? [modified]
    T T M Gray

    Where in your code sample are you reading an environement variable? When asking why something is broken, show us the broken thing that is applicable, not some other thing that works fine. You do understand that each cmd process has its own environment right?

    C# csharp tutorial linq graphics question

  • Remove Extra Whitespace between Words -- But Leave One Space in a Certain Location
    T T M Gray

    Turn it into two columns and then you can format it however you want DECLARE @city varchar(20) Set @city= 'Portland OR' select SUBSTRING(@city, 1,CHARINDEX(' ', @city)) as [city], REVERSE((SUBSTRING(REVERSE(@city),1,CHARINDEX(' ', REVERSE(@city))))) as [state] This assumes no trailing spaces after OR. If there are add some TRIM() in there.

    Database question database sql-server sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups