Recent content by Lunknumb

  1. L

    With OLED TV's on the horizon when will we see cheap OLED monitors?

    PC displays seem more likely to creep up through mobile devices with 10"-14" tabs & laptops being the next step up, rather than through any TV developments... Especially with 4k LCD now being pushed ahead of the first OLED generation.
  2. L

    Linq to XML question

    Sounds like you want to group the results by unitTitle? var units = new XElement("Results", _reportData.GroupBy(x => x.unitTitle) .Select(x => new XElement("Unit", new XAttribute("unitTitle", title.Key), new XElement("stuff". x.Value.Select(...))); I'm just making this up, it might not be...
  3. L

    Help with C# -- Rounding

    It's the other way around. Why would you want to be invariant, and not obey the Culture setting in the UI? Surely that's the point of having it in the first place.
  4. L

    Help with C# -- Rounding

    No idea where you got that, but generally the other way around. 1. Math.Round uses double internally, so you'll get representation issues that return incorrect output. I.e Math.Round(2.135) will round to 2.13. You can't use Math.Round of you want correct output. 2. Your program will be...
  5. L

    Help with C# -- Rounding

    You can pass a format string to a numeric type's ToString ex: Console.WriteLine(pmt.ToString(".##")); You can also combine format strings with the String.Format method: Console.WriteLine(String.Format("{0:.##} {1:.##} {2:.##} {3:.##} ", pmt, interest, principle, balance));
  6. L

    LGs 55 inch OLED TV

    You sure this one still applies? Seems like LG is going for white pixels with color filtering rather than the "traditional" colored light for this one. http://www.oled-info.com/lg-display-announces-oxide-tft-55-oled-tv-prototype-be-unveiled-ces
  7. L

    LGs 55 inch OLED TV

    Probably on LED since CCFL are too slow. With the speed of OLED, don't you think black frame insertion should work pretty well? I imagine they could shape the fading any way they want with sub-μs response times.
  8. L

    LGs 55 inch OLED TV

    That's a solved problem. Commion on TVs, some use "Back frame insertion", others manipulate the backlight "scanning backlight" or "backlight blinking". Some BenQ displays and the NEC 24WMGX3 has it as well, NEC calls it MP-mode in the NEC, different makers call it different names. Problem with...
  9. L

    Is node.js all that and a bag of whatever?

    Getting rid of PHP seems like problem worth solving.... but that's not node.js is doing Even if node.js "takes over", it'll still need a template engine to allow us to create the content, and that could just as well be PHP (or some kind of ".js on Rails"?).
  10. L

    Java Web Refresh Data

    The timer class does the this sort of thing for you as well. It'll invoke an ActionEvent on an interval for you. The events are run on the event-dispatching thread, similar to invokeLater.
  11. L

    Specific/Simple best practice question (web application)

    Well, you need to inject it somehow. JS/PHP separation is all fine and dandy, but doing it to the degree where stops you from passing data from one to the other seems a bit counter productive. You need to either include it in a hidden element om the page, or render it into a script or...
  12. L

    Specific/Simple best practice question (web application)

    I'm in no way a web programmer, but why not just render the id directly into the click event of your save button? (might be nasty to some?) Assuming you render the button together with the list. At least there's no dependencies on URL's or additional elements on the page. //something like...
  13. L

    use of "static" with multithreading?

    Yes,static means a single instance for objects and threads. (disclaimer: I don't know what language you're using, but that's what static is in most C family languages does) Also, if normal C family behaviour: It should also be declared "volatile" to ensure that all threads access the same...
  14. L

    difference between UNIQUE and Primary Key in mysql?

    There's one distinct difference; unique allows nulls. A primary key guarantees a unique identifier on every row in a table, the unique constraint only enforce that the value, which may or may not be present, is unique.
  15. L

    .Net SQL Server Object Cleanup

    Setting them null is just inheritance from pre-.Net VB, when it had RAII garbage collection. Setting an object to nothing would immediately reduce the reference counter and run the desctuctor when it got to 0, which in turn would clean up resources and free memory. It's cleaner to just just...
Back
Top