Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

androidi androidi
  • Visual Studio Express - End of Life

    I tried to install one of the Express editions recently for a friend (from a download I had done previously), it asked to register for a serial number and I didn't have network on that computer nor I had a serial. That was bit annoying and I wonder if it checks the serial or if you can just use the same serial over and over without checks incase MS pulls the registration site if they haven't already. (Part of the reason I was trying that was so I could do some local C# debugging of some own code I was showing)

     

  • IE back button breaks when blocking facebook scripts from 3rd party sites (chrome's does not)

    Thanks, it would appear that one or another of the suggestions (Privacy & Restricted site block) worked. I still have facebook in hosts file but don't seem to get the back button issue.

    @AndyC: I like the GDI fonts (yes, the spacing isn't as readable but it doesn't bother me as much as the fuzziness of the sub-pixel spaced fonts) and I haven't had any confirmation that IE9 can be set for all sites to have the fonts look 1:1 to IE8 fonts.

    And web IE8 is pretty darn slow experience. With the hosts file that blocks all advertising and tracking related 3rd party sites, IE8 certainly isn't the fastest or anything but usable. I have virtualized/packaged Chrome and Firefox for cases where IE8 doesn't do the trick.

  • IE back button breaks when blocking facebook scripts from 3rd party sites (chrome's does not)

    I looked around and found this confirmation that Chrome back button does not break when facebook is blocked from hosts file or with opendns.

    http://forums.opendns.com/comments.php?DiscussionID=8904

    Since I want to keep using IE8 and block facebook, this is really a #1 issue right now.

    What options do you suggest for solving this? The only one I came up so far was redirecting facebook.com to a local server and serving the necessary java or whatever from there but I'd really prefer to avoid having to go this route. Similarly I don't want to run a proxy.

    The cleanest solution would be to somehow tell IE to ignore iframes from certain sources like facebook. Is that possible? Perhaps a custom zone can be created in the registry that causes IE to ignore iframes from sites in that zone...

    I believe this is the typical problematic code in many web sites.

                            <iframe id="ctl00_ctl00_ContentPlaceHolder1_mainContent_Article_iframeFacebook" scrolling="no" frameborder="0" style="border: none;
                                overflow: hidden; width: 100px; height: 21px;" allowtransparency="true" src="http://www.facebook.com/plugins/like.php?href=...........;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=tahoma&amp;height=21"></iframe>
    

  • Android ported to C#

    Sharpen appears to be java code.

    I recommend the converters from tangiblesoftwaresolutions, they're all .NET. No source but I tried a demo, sent a bug report (some obscure C++ code I tried for fun) and they updated the demo. I don't recall it even taking very long. I'm not sure if support can get better than that.

    Instant C# converts VB code to C#
    Instant VB converts C# code to VB
    C++ to C# Converter converts C++ code to C#
    C++ to VB Converter converts C++ code to VB
    C++ to Java Converter converts C++ code to Java
    Java to C# Converter converts Java code to C#
    Java to VB Converter converts Java code to VB
    C# to Java Converter converts C# code to Java
    VB to Java Converter converts VB code to Java
    C# to C++ Converter converts C# code to C++
    VB to C++ Converter converts VB code to C++
    Java to C++ Converter converts Java code to C++

     

  • Android ported to C#

    @JoshRoss: I got one as my first smart phone because it was 1/5 the price and allows atleast currently to do a lot more. If there only was a such deal for one running C# and Windows at that price well then I'd have obviously got such instead. These low end Samsung phones on the outside appear so similar to the Iphone in terms of size and style that it's a no brainer to explain why Samsung mobile sales have skyrocketed lately. The original retail price at Amazon for my phone was around $300 but it can be had for two figures, and that's the total cost of ownership during the 24 month arrangement. Similar deal with Iphone or Lumia would go for more than $600! If MS wants the market, build a "$500" phone in terms of quality & parts used, and subsidize it so that the end user TCO is < $100. They'd probably lose about $100 per phone in terms of manufacturing cost there but people would love to buy it knowing that MS will lose money on them.

     

  • How would you do this in .NET?

    I have currently worked around this issue trivially by limiting the data size but I'd like to hear if you have better ideas than I do:

    Lets say you have a simple local app which uses LINQ to do things with data. I don't want to use SQL server or other "heavy" solution, I just want to load the data into the process and then do queries.

    Now, I want to edit and add LINQ queries which work with the data, without having to reload the data every time I change query. I understand VS11 has improved edit and continue when dealing with lambdas but I read that it still does not allow editing lambdas. I haven't tried if this could be worked around somehow by eg. creating new methods during e&c with the lambda queries or something like that.

    Ideas (assume that my queries use/need all the data):

    1) Keep data in a running process, then somehow rebuild/recompile the linq query code in a dll which is (re)loaded into that process after every modification of the query code.

    2) Keep data in another process and the newly compiled/edited linq queries/lambdas are transferred to that process somehow instead of directly loading the newly compiled code.

    3) Make the data loading much faster. Currently I use protobuf-net to deserialize the objects that LINQ is used to query. It would be much faster if the parts of the process memory containing the static dataset would be lightly(fast) compressed and saved (and loaded from) to disk in a way that allows efficient use of windows file buffering (load speed 2 GB/s on warm runs). This would probably require deep knowledge of how CLR works and might not be compatible across different CLR's.

    4) build some sort of "linqpad" /query builder into the app with the data with IntelliSense and all. This would be nice for an end user app but I want something simple that works with console apps too and TBH I want to edit the code more than just the queries without reloading the data all the time.

    But I'm looking for a way to do this in least lines of code possible and least amount of change to switch from existing simple code to this solution without having to change existing linq queries in the code or throw away the protobuf-net (de)serialization code.

     

  • Diablo 3 beta...

    I hadn't tried 1 or 2 before trying this beta and well it felt very watered down/streamlined game play and graphics felt like if you had a generic/bland concept art and tweaked it a lot in attempt to feel like less generic. I was much more impressed by WoW when I trialed that couple years ago both art direction and gameplay wise.

    It's possible this beta just didn't really give enough to fully appreciate what's so great about this game. I think it felt too easy all around. I guess it could be great for like first time gamer, so in business sénse the difficulty is ok but this beta should've had some harder options. I think there could be potential for fun but honestly it felt like you could play eyes closed and not have died (provided the monsters were properly 3d positioned in headphones - in FPS I used to fire rockets long before I saw the players coming by just listening carefully).

    More depth and personal challenge into the gameplay and maybe enbseries for improving the graphics, then I might get interested. It's quite shocking how much value enbseries can add with the right shaders - Skyrim went from almost bland to one of the best looking games ever with just few shaders. (enbseries is just one of the directx hooks that add further fx-post process shaders, you need finely tuned shaders and palette maps to get the value out of it)

     

  • Why audio ​professiona​ls are more useful capturing ​presentatio​ns than camera men

    I tried to watch few of the lang.next presentations but it seems the audio recording is botched in quite a few of these (all three videos I tried to watch!).

    If we were all lip readers, then quality HD video would be critical. But I doubt many of us are, and thus testing the audio recording setup is something worth scheduling time for.

    It seems like many of the presentations were recorded too "hot" and clipped when turned into bits.

    I don't know who recorded these, but if you don't have ability to test record, live meter (recording level display) the recording and adjust the recording gain so that there's plenty of headroom (15 dB if it was "test 1,2,3"), then the last resort is probably to have your target audience (to be recorded) all talk loudly over each other, take quick sample of that and listen it back (ideally with well isolated headphones if your recording equipment lacks volume level display).

    There are some portable recording boxes that would allow setting a more professional level recording up relatively quickly but you'd still be looking at good 10 minutes to setup (after practising) and a bag full of stuff to haul around. Probably too much hassle compared to just taking 5 minutes to verify that your audio on the camera isn't clipping by getting the interviewees to talk loud for a moment.

     

  • You can't even make this crap up!

    There must be a strategy in place to make that the only place you can shop in, then it doesn't matter how it looks or works. Lot of business people have such aspirations and I've seen a lot of similar shoddy attempts at internet retail. Tech business people seem to believe they can get creative peoples art for a fixed cost like few pennies, put it up in some fugly site, try sell it for profit, or if that doesn't work, put some ads around it.

    When games were still being shipped in cardboard boxes with hand drawn cover art, they were sold near literature in the most prestigious department store in the area. After games switched to DVD cases, I have to say I don't recall where they are selling them anymore, if they still are. Probably near the TV sets where the lights have been dimmed so you can't really see the fugly CGI cover art well.

    The move from boxes to dvd cases was probably done with pressure from big chain like Walmart (just a guess). I'm excited that several of the Kickstarter game projects are back to shipping big cardboard boxes and maps made of cloth instead of those annoying paper maps that get torn apart just by looking at them.

     

     

  • What does LCD induced eye strain and baby blindness have in common?

    Previously I had suspected typically 200 hz CCFL dimming PWM flicker as source of eye strain but that has been ruled out as a cause since.

    "Medical scientists have discovered that blue light is strongly absorbed in the retina tissues. This absorption, if at high energy levels like that found in welding, has the capability to ultimately cause ocular problems such as macular degeneration and retina damage."

    "There is growing evidence implicating welding as a possible risk factor for uveal melanoma. The major culprit is high-energy blue light exposure" High energy blue light filtration: An evidence-based assessment www.eyeworld.org/ewsupplementarticle.php?id=295

     

    I recently found information which seems to support a hypothesis of eye strain induced by poorly filtered spikes at very specific frequencies of blue light - this would also explain why computer safety glasses that are orange tinted are said to help with computer display induced eye strain - they reduce or filter this blue out a great deal.

    http://www.recoveredscience.com/Babyblindinglights01.htm

    ROP = retinopathy of prematurity

    "Each year, thousands of premature babies in intensive care nurseries lose their sight to ROP. This blinding began with the introduction of fluorescent lamps. Industrial safety researchers have determined the wavelengths where the retina is most vulnerable to blue-light damage. The most intense energy spike in the spectrum of the fluorescent lamp shines precisely into that vulnerability window. Typical nursery lighting exposes the preemie in 15 minutes or less to the US industrial safety regulations' danger-limit dose of retinal irradiation for adults. Preemies have none of the adults' protections against damaging light.
    Light hitting a preemie's still migrating retinal cells can garble the cells' migrating instructions and make them stick to other cells. Under the electron microscope, retinae damaged by light and by ROP show the same abnormal adhesions between cells."

    "The first babies to develop ROP were born in 1940. ROP had never been observed before and could not be traced in retrospective studies of older blind people. Its sudden appearance coincided with the appearance of fluorescent lamps which had been introduced commercially at the New York World Fair in 1938/39."
    "Like the lamps, ROP long remained unknown anywhere else until 1948/49, when fluorescent lamps became available in post-war Europe and other industrial countries; then, ROP suddenly affected preemies in these countries, too."

    "Because the disease had appeared so suddenly, some physicians wondered if it had been there all along but had simply not been recognized before. They organized several large-scale retrospective studies on ROP among older blind people. Some of these studies found a few isolated and uncertain cases beginning, in 1937 (34, 35), but they all concluded that if ROP had existed before 1940 in the U.S.A., or before 1946 in the U.K., it must have been exceedingly rare (36)."

    34. HEPNER WR, KRAUSE AC, NARDIN HE. Retrolental fibroplasia (11. Encephala-ophthalmic dysplasia). Study of 66 cases. Pediatrics 1950: 5: 771-82. (These authors mentioned one isolated case each in 1937, 1938, and 1939 in Chicago).
    35. ZACHARIAS L. Retrolental fibroplasia: A survey. Am J Ophthalmol 1952: 35: 1426-54. See page 1434. This survey listed four cases in 1938 and one in 1939 in Boston.
    36. SILVERMAN WA. Retrolental Fibroplasia: a modem parable. Monographs in Neonatology. New York: Grune & Stratton, 1980: page 17.

    "Wombs have no fluorescent lamps, and preemies meant to have stayed in their protected darkness are much more vulnerable to harsh light than adult workers."

    "It appears that a common exciting factor is related to premature birth and incubator life. It seems logical that, of the etiologies limited to the eyes alone, precocious exposure to light is still the leading factor in the cause of ocular developmental abnormalities"

    "The lowest threshold value for light damage to animal retinae is reported for non-coherent blue light (42) like that from the most intense of the energy spikes in the fluorescent lamp spectrum. When the photons emerge from the phosphor atoms in the fluorescent lamp, they shoot out in specific wavelengths and form intense spikes of concentrated energy radiation. These spikes occur in all fluorescent lamps at the same wavelengths 365.0 nm; 404.7 nm; 435.8 nm; 546.1 nm; and 578 nm -- and approximately with the same relative intensities (43). The differences between the different types of fluorescent lamps are mostly in the broadband spectrum reradiated by the different phosphor formulations. "

    42. SPERLING G. Functional Changes and Cellular Damage Associated with Two Regimens of Moderately Intense Blue Light Exposure in Rhesus Monkey Retinae. Association for Research in Vision and Ophthalmoloy, Spring 1978 meeting, ARVO Abstracts page 267.
    43. Sylvania Engineering Bulletin 0-283: "Spectral Energy Distribution Curves of Sylvania F40T12 Fluorescent Lamps", Code 753. undated, received in 1985.

    http://www.recoveredscience.com/CoolwhiteDeluxegraph.jpg

    "Figure 1 does not show the full height of these spikes, since it averages the energies over bandwidths of 10 nm. The spike at 435.8 nm, for instance, is only 0.1 nm wide (45) and would appear almost 100 times higher on the graph if it was not averaged with the neighboring wavelengths. This spike packs 8.5% of a typical nursery lamp's total energy output (see Table 1).

    Due to the higher photochemical energy of shorter wavelengths, this spike in the short-wave end of the visible spectrum accounts for an even higher percentage of the total photochemical activity produced by the lamp: in vitro experiments of bilirubin conversion by fluorescent lamps have shown that the single energy spike at 435.8 nm is responsible for more than 50% of the conversion reaction (46)."

    46. AGATI G, FUSI F, PRATESI R. Configurational photoisomerization of bilirubin in vitro - II. A comparative study of phototherapy fluorescent lamps and lasers. Photochem Photobiol 1985: 41: 381-92 (Ref. 45, page 382 top left).

    "The 1974 Symposium on Illumination, sponsored by the U.S. National Institute of Occupational Safety and Health, NIOSH, warned that high lighting levels in that region of the spectrum could cause much damage to the eye, particularly retinal and macular degeneration (the macula is the most light-sensitive part of the retina).

    Included in the Public Health Service's "Guide to the Recognition of Occupational Diseases" is this statement in the section on laser light:

    'even a diffuse reflection from a high power laser can present an ocular hazard. An action spectrum has been recently developed to account for the variation in retinal sensitivity with wavelength for exposure times greater than ten seconds. The minimum threshold dose for retinal lesions occurs at 440 nm and is thought to be due to a photochemical process rather than to a thermal mechanism as in wavelengths greater than 500 nm' (47). "

    47. KEY MM, HENSCHEL AF, BUTLER J, LIGO RN, TABERSHAW IR, EDE L. Occupational Diseases - A Guide to their Recognition. National Institute for Occupational Safety and Health, U.S. Government Printing Office, June 1977, page 496 top.

    http://www.recoveredscience.com/Bluelightbarrier.jpg
    (from http://www.recoveredscience.com/Babyblindinglights03.htm )

    "The NIOSH data for this table and graph derive mostly from experiments which destroyed the retinae of monkeys, pigs, rats, and a variety of other mammals. The retinal structure of all mammals is virtually the same (49). Clinical experience with victims of welding accidents and accidental exposures to excess laser light confirms that humans are just as vulnerable in the same wavelength region as test animals. There is, thus, no basis for assuming that the developing preemie retina during its period of greatest vulnerability is immune to irradiation in a wavelength which quickly burns the retinae of other mammals. Much of the nursery lamps' energy is concentrated in precisely the wavelength that is known to cause the most damage to the retina."

    49. Y CAJAL SR. (first published in 1892 in "La Cellule", Paris), translated by THORPE SA, GLICKSTERN M. The Structure of the Retina. Springfield: Charles C. Thomas Publishers. 1972: pp. 93 and 153.

    "60 ftc intensive care nursery lightning will expose a preemie's retinae in 15 min or less to the dose of retinal irradiance which NIOSH has established as the occupational danger limit for healthy adult industrial workers."

    "Direct sunshine can be hazardous to unprotected eyes also. In more primitive times, societies punished some of their worst criminals by making them stare into the sun until their eyes were destroyed. Nowadays some nursery staffs appear unaware of the dangers from sunlight.

    A report from a nursery in Washington, D.C., describes how a group of babies near the nursery windows had "on occasion" been left lying with the sun in their faces, exposed to light intensities in excess of 400 ftc. Most of them went blind. The authors of the report computed the chances as 199 in 200 that it was this exposure to sunlight which had blinded the babies (69).

    69. GLASS P, AVERY GB, SLUBRAMIANIAN KNS, KEYS MP, SOSTEK AM, FRIENDLY DS. Effects of bright light in the hospital nursery on the incidence of retinopathy of prematurity. New Engl J Med 1985: 313: 401-4 (see page 402 bottom right and 403 middle left).

    Such carelessness about sunlight is not an isolated case. The above-mentioned nursery in Seattle, for instance, that had the high light levels and a tripling of babies with ROP in the early 1980s, reported measurements of nursery luminance with direct sunlight entering the room. The mean of these measurements taken right next to the isolettes works out to 226 ftc, and the maximum measured was given as 1124 ftc (66)."

    66. HAMIER RD, DOMN V, MAYER MJ. Absolute thresholds in human infants exposed to continuous illumination. Invest Ophthalmol Vis Sci 1984: 25: 381-8 (see page 383 top right).

    "Preemies also cannot blink to give their retinae brief periods of rest; infants do not acquire this reflex until they are about 6 months old (75). Preemies stare a lot. When their eyes are open, they fix their graze for long times at whatever attracts their attention, more so even than term newborns who also have a tendency to stare (76). Bright light is likely to fascinate them. "

    75. HASSETT J. A Primer of Psychophysiology. San Francisco: W. H. Freeman & Co., 1978: page 82 (bottom).
    76. SPRUNGEN LB. KURTZBERG D. VAUGHAN HG. Patterns of looking behavior in full-term and low birth weight infants at 40 weeks post-conceptional age. Dev Behav Ped 1985: 6: 287-94.

    "The medical literature on accidental retinal burns reports many cases where patients just kept staring at the sun or at a welding arc in light-induced absentmindedness."

    "eyelids do not offer much protection. Measurements of light propagation through slices of pig and cow tissue 0.55 mm and 0.94 mm thin (and therefore about comparable to the thickness of preemie eyelids) showed that only about 7.5 to 10% of the light was absorbed in the tissue; the rest was scattered, mostly forward (77). "

    "The blue-light hazard function on which the light exposure safety standards are based shows less danger to the retina for wavelengths below 415 nm, because those short wavelengths mostly do not reach the adult retina. But a preemie's eyes are more transparent to more wavelengths and let through about 90% of the visible light above 400 nm plus 80 to 85% of the ultraviolet light down to about 320 nm. "

    "Electron microscope pictures of light-damaged retina segments from albino rats (100) show that after exposure to light the cell membranes of the photoreceptors and of the pigment epithelium cells form massive microvilli, little hairlike tendrils, which grip each other like the hooks and loops on a patch of Velcro. This causes the cell membranes to stick together permanently. "

    100. KURABARA T, GORN RA. Retinal damage by visible light. Arch Ophthalmol 1968: 79: 69-70.

    "Neonatologists who say that the nursery lights do preemies no harm base this assertion on a small scale trial published in 1952 which claimed to have ruled out a connection between exposure to light and ROP. The authors reported that just as many preemies had developed the disease when their eyes were patched with gauze as when they were not. However, in that study the babies' eyes were patched, not immediately, but within up to 24 h after birth (103). That is more than enough time for the fluorescent light to overdose their fragile retinae with damaging blue radiation.

    103. LOCKE JC, REESE AB. Retrolental fibroplasia - the negative role of light, mydriatics, and the ophthalmoscopic examination in its etiology. Arch Ophthalmol 1952: 48: 44 47 (see page 46 top).

    A year after this misleading study, another flawed but very influential study asserted that oxygen was the major cause of ROP. In that study, 18 nurseries withheld oxygen from some of the preemies and found fewer cases of ROP among the survivors of that group (104). This result was acclaimed as a victory over ROP and led to severe oxygen rationing for most preemies that has endured to this day. However, the unacknowledged reason for the apparent reduction in the incidence of ROP was that fewer preemies, with immature lungs and eyes, survived long enough to display the symptoms of ROP. In fact, the lack of sufficient oxygen killed most of the babies whom ROP would have blinded, plus many more whom ROP would have spared (105).

    105. SILVERMAN WA. Retrolental fibroplasia: a modem parable. Monographs in Neonatology. New York: Grune & Stratton, 1980. Chapter 9: "The Determinative Era of Oxygen Treatment", see particularly pp. 62 ff.

    A British researcher estimated two decades later that each case of ROP avoided by withholding oxygen "may have cost some 16 deaths" (106)."

    106. SILVERMAN WA. Retrolental fibroplasia: a modem parable. Monographs in Neonatology. New York: Grune & Stratton. 1980. Chapter 8: "The Consequences of Oxygen Restriction", see particularly pages 54-57 and 63, 65.

    "By the mid and late 1960s, researchers studying the safety of laser light for industrial applications discovered that light could damage eyes not just by burning, the retina with heat as in welding accidents or Sun-staring -- but also through a slower, non-thermal process which they found to be photochemical (108-110). "

    108. NOELL WK, WALKER VS, KANG BS, BEPMAN S. Retinal damage by light in rats. Invest Ophthalmol Vis Sci 1966: 5: 450-73.
    109. GORN RA, KUWABARA T. Retinal damage by visible light: a physiologic study. Arch Ophthalmol 1967: 77: 115 ff.
    110. KUWABARA T, GORN RA. Retinal damage by visible light: an electron microscope study. Arch Ophthalmol 1968: 79: 69 ff.

    "In August 1970, a team of physicians from Boston and Philadelphia described in their paper "Retinal Changes produced by Phototherapy" (67) how they had placed newborn piglets under phototherapy lamps with a total irradiance of 300 ftc "to determine if retinal damage does in fact occur during phototherapy of the newborn infant".

    67. SISSON TRC, GLAUSER SC, GLAUSER EM, TASMAN W, KUWABARA T. Retinal changes produced by phototherapy. J Pediatr 1970: 77: 221-7 (see page 225 middle left).

    "They had picked piglets because "the newborn piglet eye is developmentally of close approximation to the human of comparable age, and since the piglet is a diurnal animal whose eyes are similarly pigmented".

    One of the piglets lost the patch over its control eye which had not been dilated, and which remained relatively protected by its heavy eyelids, covered with hair, and thick eyelashes. Although that eye was exposed to the lights for less than 12 h, the next day that piglet had become totally blind. When its retinae were examined 3 weeks later under an electron microscope, both showed virtually the same "marked damage" as the other exposed piglets' retinae."