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
G

goodideadave

@goodideadave
About
Posts
162
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Trivial Pursuit
    G goodideadave

    Jeez, here I am working my fingers to the bone, nose to the grindstone, etc., etc., and you expect me to READ THE CODE??? :omg: And whaddaya mean Context is king? I didn't vote for him!

    My other signature is witty and insightful.

    JavaScript question javascript

  • Trivial Pursuit
    G goodideadave

    Yes, but then how can you tell at a glance if something is a variable or a function? Other than parends after the function name. I had been using a convention of upper camel case for local variables and upper camel case for functions. But my co-workers tell me that I'm the only one in North America to do it like that. They also tell me my mom dresses me funny, too. :(

    My other signature is witty and insightful.

    JavaScript question javascript

  • Trivial Pursuit
    G goodideadave

    OK, it's Monday morning, and instead of doing useful work, I am trying to answer this question: Most of the JavaScript naming conventions I have seen around the web say that most variable and function names should start with a lower case letter. Why is that?

    My other signature is witty and insightful.

    JavaScript question javascript

  • Quite Nice
    G goodideadave

    Check out the jokers at the bottom of the sign, "Satelliting to the world"? Since when is "satelliting" a verb, let alone a real word? :confused:

    My other signature is witty and insightful.

    The Lounge question

  • Take your kids to work day [modified]
    G goodideadave

    If my boys were the right age, I could station them in my cubicle and watch for my co-workers stealthily approaching with knives unsheathed. :omg: Then at least I'd have some warning.

    My other signature is witty and insightful.

    The Lounge question announcement

  • SETI Institute to shut down alien-seeking radio dishes
    G goodideadave

    So without SETI, the only way we'll find out there are advanced aliens out there is when they land here on Earth to enslave all of mankind? :~ Bummer.

    My other signature is witty and insightful.

    The Lounge csharp html com question

  • Autorefresh in time interval
    G goodideadave

    Add

    Async="true"

    to the Page directive, like so:

    <%@ Page Async="true" Language="C#" AutoEventWireup="true" CodeFile="ProviderAlerts.aspx.cs" Inherits="ProviderAlerts" %>

    Then, add this javascript:

    <script type="text/javascript">
        <!-- Begin
        function reFresh() {
          location.reload(true)
        }
        /\* Set the number below to the amount of delay, in milliseconds,
        you want between page reloads: 1 minute = 60000 milliseconds. \*/
        window.setInterval("reFresh()",300000);
        // End -->
    </script>
    

    This reloads the page every five minutes.

    My other signature is witty and insightful.

    ASP.NET question csharp javascript

  • Creating cookies with HttpCookie vs. Response.Cookies
    G goodideadave

    I have a web site on an internal web server on our enterprise network. When a user who is a member of the admin group on the web server visits the page, cookies are created on the main page and read just fine on the other pages. But if it's a user who is not in that group, no errors are thrown but the cookies don't seem to be written. MSDN gives two techniques for writing cookies. This one does not throw an error, but neither does it create the cookie for all users:

        HttpCookie c = new HttpCookie("userinfo");
        c.Values\["domainaccount"\] = \_CtaUser.DomainAccount;
        c.Values\["userid"\] = \_CtaUser.UserID.ToString();
        c.Values\["username"\] = \_CtaUser.UserName;
        c.Values\["rolename"\] = \_CtaUser.RoleName.ToLower();
        c.Values\["ctaactiveflag"\] = (\_CtaUser.CTAActiveFlag) ? "1" : "0";
        c.Expires = DateTime.Now.AddDays(1d);
        Response.Cookies.Add(c);
    

    This technique works just fine for all users:

        Response.Cookies\["userinfo"\]\["domainaccount"\] = \_CtaUser.DomainAccount;
        Response.Cookies\["userinfo"\]\["userid"\] = \_CtaUser.UserID.ToString();
        Response.Cookies\["userinfo"\]\["username"\] = \_CtaUser.UserName;
        Response.Cookies\["userinfo"\]\["rolename"\] = \_CtaUser.RoleName.ToLower();
        Response.Cookies\["userinfo"\]\["ctaactiveflag"\] = (\_CtaUser.CTAActiveFlag) ? "1" : "0";
        Response.Cookies\["userinfo"\].Expires = DateTime.Now.AddDays(1);
    

    As near as I can tell, the browsers for all users are setup identically, and we have tested with IE7 and FF. Can anyone point out what I'm doing wrong? Thanks.

    My other signature is witty and insightful.

    ASP.NET sysadmin visual-studio help question workspace

  • Visual Studio Add Ons
    G goodideadave

    Repelling a horde while naked? I don't think even AH-nold did that. Careful, you'll have hot brass raining all over your sensitive bits. I'd think that would spoil your aim. Keep a big tube of neosporin handy, just in case.

    My other signature is witty and insightful.

    The Lounge csharp visual-studio question

  • Help authoring tools
    G goodideadave

    I am developing ASP.NET pages with VS 2008. Does anyone have a favorite help authoring tool that they could recommend? Thanks.

    My other signature is witty and insightful.

    Web Development csharp asp-net visual-studio tools help

  • This will stop when someone does a cost-benefit analysis.
    G goodideadave

    Plus, in China they manufacture them from surplus lead, ship them to Britain, and kill two birds with one stone. They don't have to build the lead into toothpaste for export anymore. :)

    My other signature is witty and insightful.

    The Lounge business question announcement

  • Happy Pi Day
    G goodideadave

    How did this entire thread come and go without anyone saying the obvious: Now shut yer pi hole. unbelieveable

    My other signature is witty and insightful.

    The Lounge

  • Ebay sucks
    G goodideadave

    I know I'm coming late to this discussion, but locally we have a store that buys and sells used CDs and DVDs, no ebay required. Perhaps you have something like that near you? Or, next time you're in Sacramento, it's Dimple records on Folsom Blvd.

    My other signature is witty and insightful.

    The Lounge com tools

  • No more Lorem Ipsum for me.
    G goodideadave

    I saw a bumper sticker just last week that read, "Think Globally, Act Hillbilly." :laugh:

    My other signature is witty and insightful.

    The Lounge csharp php wpf com tools

  • Kung Fu vs Muscle
    G goodideadave

    Gary Strunk wrote:

    not locked safely away in a gun safe where it is supposed to be most of the time

    And if it's kept handy, I would think that the worst way to be awakened in the middle of the night is by the sound of *someone* thumbing back the hammer of your personal .357 Magnum that is always kept in your nightstand... :omg:

    My other signature is witty and insightful.

    The Lounge visual-studio question lounge

  • Kung Fu vs Muscle
    G goodideadave

    LenaBr wrote:

    Tae Kwon Doh

    I thought that was the martial art Homer Simpson teaches? :doh: Kidding! Don't send your daughter after me, please!

    My other signature is witty and insightful.

    The Lounge visual-studio question lounge

  • Best path to a programming/developer position?
    G goodideadave

    A couple of things to think about. How do the curricula of the two degrees compare? Would one be more useful to you than the other in the career you are pursuing? In most companies I have worked since 1979, the HR weenies were unable to tell the difference between a CS and an IT degree. We all look alike to them. I have worked with more than a few people who jumped ship from some other field (wildlife biology, music, optometry, no kidding), got a masters in CS or IT in an 18-month night school program, and got a job in IT. I have worked with more than a few programmers who had a bachelors in something like accounting or finance. Often, hiring managers like those guys because they have degrees in the same discipline. And don't even get me started on MBAs. You might have a unique opportunity ahead. Get a degree in something you like while working somewhere as a junior coder. Learn the trade (yeah, IMHO it's a trade, don't let the artistes tell you otherwise ;) ), make a little money, and see if you like it.

    My other signature is witty and insightful.

    The Lounge database question discussion

  • Tales of a successful DVD / TV / video conversion (and thanks!)
    G goodideadave

    I like that much better! Maybe you can turn on the remaining lamps for night sledding? :)

    My other signature is witty and insightful.

    The Lounge workspace css help announcement lounge

  • Tales of a successful DVD / TV / video conversion (and thanks!)
    G goodideadave

    Christopher Duncan wrote:

    I haven’t yet figured out the ultimate fate of the now retired (and $300 bulb-less) projector and screen

    Maybe you could call up the local kids charities who want you to donate a car and convince them it's a 1979 Oldsmobile. All you should need is an Olds hood ornament from the junkyard. Then they'll come with a flatbed to haul it away, and you'll have a nice tax deduction to boot.

    My other signature is witty and insightful.

    The Lounge workspace css help announcement lounge

  • Oh God! Give me patience and give it to me NOW!!!
    G goodideadave

    Did you also tweet this? It certainly sounds like something that could be found on twitter. :^)

    My other signature is witty and insightful.

    The Lounge asp-net help question
  • Login

  • Don't have an account? Register

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