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
J

John Y

@John Y
About
Posts
32
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • generate random numbers from specific array
    J John Y

    If you need to use this often for arrays, I would add a function to the array prototype:

    Array.prototype.randomPick = function(){
    var M = this.length-1;
    var N = 0;
    var randomIndex = Math.floor(Math.random()*(1+M-N))+N;
    return this[randomIndex];
    };

    Then you can call it:

    var arr = [2,3,4,5,4,6,8,9,7];
    alert(arr.randomPick());

    ________ John Y. Developer

    JavaScript javascript data-structures question lounge

  • Hopeless cases [modified]
    J John Y

    My mouth is just wide open... speechless ________ John Y. Developer

    The Weird and The Wonderful java

  • Why pay for Gmail app for iPad
    J John Y

    That's a very good point - and do you HAVE To support it? LOL. ;-) ________ John Y. Developer

    The Lounge ios question discussion

  • Why pay for Gmail app for iPad
    J John Y

    no. I will use the free web app (www.gmail.com) <-- accessed on the iPad. ________ John Y. Developer

    The Lounge ios question discussion

  • Why pay for Gmail app for iPad
    J John Y

    hahahaha nice answer :-) ________ John Y. Developer

    The Lounge ios question discussion

  • Why pay for Gmail app for iPad
    J John Y

    Yes, you can integrate Gmail with the native iPad Mail.app, however, google has released its own APP for the i Devices. the iPhone version is free and the iPad is $0.99. So, I was curious as to if/why people will/won't purchase it. ________ John Y. Developer

    The Lounge ios question discussion

  • Why pay for Gmail app for iPad
    J John Y

    I know its 99 cents but why pay for Gmail on your ipad when you can use Safari - which is pretty good on its own? Thoughts anyone? For both sides? I'm curious as to what the world thinks... :) ________ John Y. Developer

    The Lounge ios question discussion

  • I hate Javascript....
    J John Y

    I have really enjoyed reading these comments. I am personally a huge fan of JavaScript, but that doesn't mean it's any better or worse than any others' choice of language. I have never had the opportunity to work with much Silverlight/.NET so maybe thats why I leveraged a lot in JavaScript - especially for some neat bells and whistles on my web-systems. And yes, with HTML5, Javascript is in the spot light - but that doens't mean everyone has to use it, right? And for all the non-Javascript developers out there, I will agree with one thing - when Javascript is too heavily used, it can cause a lag in performance - so it should be used with wisdom :-) And the reliance on libraries liek jQuery (which I also use from time to time), can also be too heavily used and cause huge performance issues. Sometimes, there is no need to use it, but people still do. Maybe some articles/blogs on when to use Javascript(jQuery) vs when not to would be great here! Thanks and happy coding to all! John Y. ________ John Y. Developer

    The Lounge csharp c++ javascript html question

  • TGIF
    J John Y

    Everyone have a great weekend! Yay for quittin' time! ________ John Y. Developer

    The Lounge

  • #ding# #dong# #ding# #dong#
    J John Y

    I could tear UP a bacon sandwich right about now! ________ John Y. Developer

    The Lounge com question learning

  • One thing you can say about Steve is...
    J John Y

    I didn't mean to sound like buzzwords, but I just thought was a good word to use. And, it was just my thoughts on the man - I did not intend it to start some debate PRO or CON Apple. And if I think about it, and quite literally - my mobile experienced was changed significantly after I purchased my iPhones. AND, if you look at the (in some ways better) smartphones out there now, it can be argued that the inspiration could have been from Apple. And I never said he invented ANYTHING. Just revolutionized if (even if all that took was some great marketing and branding skills). The man just passed away, and I thought it would be a nice thing to put out there. Thats all. ________ John Y. Developer

    The Lounge question career

  • One thing you can say about Steve is...
    J John Y

    oh my bad - guess i should have researched more - what would be an example of a functional touch screen phone that was also an MP3 player and an Internet browser. I just couldn't find one. And, no, I'm not being "smart" here - I would seriously like to know. ________ John Y. Developer

    The Lounge question career

  • One thing you can say about Steve is...
    J John Y

    Nor is he my idol, however I have to give him props for what he started when his company, Apple released the iPhone - they were the first to produce a phone like that, hence the "revolutionized" part of my statement. It is not a platitude - I firmly believe it was because of his vision and drive that the phones are what they are today. It is just an opinion. ________ John Y. Developer

    The Lounge question career

  • One thing you can say about Steve is...
    J John Y

    I totally agree. But for me ( a late bloomer to the apple fanboy community ), I started enjoying Apple products when I got my first iPhone. After that, the MacBook Pro, then an AppleTv, and finally , the iPad. (removed content due to potentially offending other users - I genuinely apologize if it did). ________ John Y. Developer

    The Lounge question career

  • One thing you can say about Steve is...
    J John Y

    why? ________ John Y. Developer

    The Lounge question career

  • One thing you can say about Steve is...
    J John Y

    He revolutionized the mobile experience (why all the negativity?) I say a few nice things about a man who obviously had a huge impact on the world of IT, and it keeps getting downvoted. I thought the whole "One thing you can say about Steve is..." was to say something nice about a man who just died! ________ John Y. Developer

    The Lounge question career

  • How to restrict user not to enter <> characters in text box.
    J John Y

    You can either check the value on form validation and/or handle the onChange event for the text box, and check for those characters. ________ John Y. Developer

    JavaScript tutorial question

  • Create a web service to push messages to clients
    J John Y

    You could always have a little node.js server up and running, and when various client actions occur (log on, etc), it sends a message to your node.js server, which would then broadcast another (push) message. And then the client "listener" js file on your front end could handle the pushed message in whatever way you see fit. And basically any active client node would accept the message/action.

    ________ John Y. Developer

    C# wcf lounge

  • Agree or Disagree
    J John Y

    I definitely do NOT disagree with your response, and I sincerely apologize if I come across as arrogant. That was not my intention. And to point out one of the first lines in my blog: "I realize that sometimes a project requires immediate knowledge on the specific technology..." If that work you mentioned cost you money and time, it would more than likely fall under that statement. Mistakes will be made my anybody -- especially one learning the trade. My point was not to shy away against experts in certain languages, but not to merely discount some because their experience is not 100% specific to a language/technology. And bottom line, what I was trying to say is that I would hate for developers to get "stuck" in whatever languages/technoloy their first (few) jobs were.

    ________ John Y. Developer

    The Lounge csharp visual-studio question discussion

  • Agree or Disagree
    J John Y

    I have to agree with you too (despite my major argument in the blog). However even if your mindset had to change because you happend to have had just worked with one technology/framework, do you think yourself less able? Personally, I love to do that--having to learn somethign new to get something done. Those are the best moments of my job.

    ________ John Y. Developer

    The Lounge csharp visual-studio question discussion
  • Login

  • Don't have an account? Register

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