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
B

BinaryReason

@BinaryReason
About
Posts
12
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • NuGET Packagies
    B BinaryReason

    How are you people in Microsoft ecosystem, and not using NuGet pacakges? Is it some kind of April Fools joke? It's been probably one of the biggest productivity improvements in the last decade. We ended up migrating all our internal libraries to NuGet as well, and integrated the process into our CI pipeline. Learn how to use the tool, before complaining about it.

    The Lounge visual-studio question

  • Need a word
    B BinaryReason

    English Language & Usage Stack Exchange[^]

    The Lounge com question discussion announcement

  • The potato paradox
    B BinaryReason

    WEIGHT_OF_POTATOES = 100 lbs

    WEIGHT_OF_WATER / WEIGHT_OF_POTATOES = 0.99
    WEIGHT_OF_WATER = WEIGHT_OF_POTATOES * 0.99

    WEIGHT_OF_WATER = 99 lbs;

    (WEIGHT_OF_WATER - weight_to_evaporate) / (WEIGHT_OF_POTATOES - weight_to_evaporate) = 0.98
    (99 - weight_to_evaporate) / (100 - weight_to_evaporate) = 0.98
    weight_to_evaporate = 50 lbs;

    So the final answer is WEIGHT_OF_POTATOES - weight_to_evaporate = 100lbs - 50lbs = 50lbs

    The Lounge html com question

  • IT hardware audit
    B BinaryReason

    We used a dedicated instance of an issue tracker (Redmine) for that. Each hardware item was treated like a ticket, which was nice, because you could have history associated with it. All it needed was adding some custom fields for serial number, part number, date of calibration, who checked it out etc. And a third party plug in to enable periodic notifications about due maintenance.

    The Lounge hardware question

  • .Net Logging
    B BinaryReason

    Meh. I'm getting paid for solving problems using software. Logging is a problem that's been solved numerous times already, and there's a multitude of amazing frameworks to choose from. Spend a few minutes reading (and understanding) the documentation, instead of wasting time trying to write another one from scratch. Not only will you end up with a better solution, it will be cheaper as well.

    The Lounge csharp help tools tutorial question

  • .Net Logging
    B BinaryReason

    You're doing something wrong. With NLog, all you need to do is include a nlog.config file in your project, and then to log you simply do the following:

    static Logger _logger = LogManager.GetCurrentClassLogger();

    _logger.Log(LogLevel.Info, "Your message");

    "There are only 10 types of people in the world - those who know binary and those who don't."

    The Lounge csharp help tools tutorial question

  • .Net Logging
    B BinaryReason

    Are you seriously suggesting re-inventing the wheel?

    "There are only 10 types of people in the world - those who know binary and those who don't."

    The Lounge csharp help tools tutorial question

  • Have you ever come up with a programming idea so bizarre...
    B BinaryReason

    Matlab's simulink does something like this: Simulink - Simulation and Model-Based Design[^] Also NI's Labview: LabVIEW System Design Software - National Instruments[^]

    "There are only 10 types of people in the world - those who know binary and those who don't."

    The Lounge javascript python php com sysadmin

  • Are You Smarter Than A Sixth Grader (Taking Seventh Grade Math)?
    B BinaryReason

    At each point you can move either right or up. The setup makes the step sizes irrelevant to the problem - they will always add to 28 (14 horizontal + 14 vertical), (1 + 2 + 3 + 4 + 5 + 6 + 7). That means we will reach (14,14) from (0,0) in exactly 7 steps. At each of the 7 steps you can either move right or up, so you have two choices at every step node. The answer then becomes: 2^7 = 128 possible paths. If you were to visualize it, you would simply draw a complete grid between (0,0) and (14,14)

    "There are only 10 types of people in the world - those who know binary and those who don't."

    The Lounge html com help question

  • Kindle, E-reader, Tablet, which one?
    B BinaryReason

    I'm going to save you a lot of money right here. DO NOT BUY KINDLE TO READ PDFs!!! People that recommend that have either never tried reading PDFs on their Kindle, or simply have no clue what they're talking about. Sure Kindle is capable of displaying PDF's, but if we're talking technical/engineering books with code/images, forget about being able to read them on that aspect ratio. The only way to do it is by using landscape mode, which forces you to continuously scroll through content (and the refresh rates are abysmal). Kindle fire has the same aspect issue, although you'll be able to scroll easier. Google's Nexus 7 may be slightly better for that, because of a higher resolution, but you still won't be able to comfortably read a PDF page in a portrait mode. I was looking for the same thing as you. I wanted to be able to read PDF engineering books on a tablet. Currently iPad seems like the only device that can do that satisfactorily. The price is way too steep for what I would use it for however (I also hate anything made by Apple). As it is right now, I use my Samsung Netbook to read PDFs on a couch. But I keep a close eye on Microsoft's Surface this fall, and if the price is right I'll definitely but it.

    "There are only 10 types of people in the world - those who know binary and those who don't."

    The Lounge mobile question learning

  • Subversion is a mess : A Rant in E Minor
    B BinaryReason

    I'm in the same boat. I've been using VSS for over a decade. In fact the company is still using the 6.0 version. We've never had any issues with it. EDIT: Just had a look at Mercurial, and will definitely give it a look. Local branches are just what I was looking for.

    "There are only 10 types of people in the world - those who know binary and those who don't."

    The Lounge collaboration tutorial question announcement learning

  • Why the world hates Hungarian notation?
    B BinaryReason

    Back in my embedded C and MFC days I used to be big on hungarian notation. No more. These days I am working mostly with C# and stay away from prefixes as much as possible for a few reasons. 1. Readability As programmers we spend most of our time reading code not writing it. What's easier to read: sAccountNumber = CreateAccountNumber(nId, sLastName, wUniqueId); or accountNumber = CreateAccountNumber(id, lastName, uniqueId); 2. Maintenance Let's say I no longer want to use a string to store my account number. I want to encapsulate it inside a class. If you used accountNumber variable to begin with, you don't need to worry about renaming it. It's still just an accountNumber With modern compiler GUIs you really don't need to encode the variable type in it's name. You can hover with your mouse over it, and find out immediately whether it's an int or a string, or some other user defined type. In fact, you should try to avoid thinking about storage types as much as possible, and program at a higher level of abstraction. Only when you get to the low level code, take care of the types. I highly recommend Robert C. Martin's "Clean Code"[^], particularly Chapter 2: Meaningful Names apply to this discussion.

    "There are only 10 types of people in the world - those who know binary and those who don't."

    The Lounge question csharp c++ collaboration tutorial
  • Login

  • Don't have an account? Register

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