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
M

Matthew Barnett

@Matthew Barnett
About
Posts
26
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Following on from yesterday's little puzzler.
    M Matthew Barnett

    I (native speaker) would agree there. To me, there's a difference between "greater" and "larger", and between "less" and "smaller". Greater/less include the sign whereas larger/smaller refer to the absolute magnitude.

    The Lounge lounge css question

  • Why is a resource fork?
    M Matthew Barnett

    I was stumped years ago by a Mac when I wanted to eject a CD but there wasn't a button next to the CD slot, so I had to ask a colleague. Turned out the eject button was on the keyboard. Why there? It's not like it was easier because I'd have to reach out to the CD drive anyway to grab the ejected CD! And then there was the oddity of ejecting a disk by dragging an icon to the trash. The trash is for discarding/deleting stuff, so it felt like I was asking it to wipe the disk.

    The Lounge design question com graphics iot

  • Did anyone here ever race the electron beam? And did you win the race?
    M Matthew Barnett

    I'm surprised no-one's mentioned ZX80 and ZX81. They didn't have specialised circuitry to handle the display, but, instead, had the Z80 execute the contents of the screen, ensuring that the Z80 itself saw only NOP until the end of the line. The contents of the data bus (the actual character codes) were then fed to the character generator.

    The Lounge graphics debugging tools performance question

  • My Great Idea
    M Matthew Barnett

    Instead of inserting until there are no errors, have you tried deleting until there's an error and then re-inserting it? When you can't delete any without causing an error, you've finished.

    The Lounge linux help tutorial

  • "Always on top" attribute...
    M Matthew Barnett

    I've recently started using "EPG Centre", an app that reads the EPG that's broadcast by Freeview. Its progress bar is always on top. It takes several minutes to read the EPG, so I start it and then let it run in the background, but the progress bar stays on top, for no reason.

    The Lounge announcement question

  • How hard is it to implement a 1984 "simple" hardware communication protocol?
    M Matthew Barnett

    Well, all I can say is that the spec. I'm looking at does say UART!

    The Lounge hardware question

  • How hard is it to implement a 1984 "simple" hardware communication protocol?
    M Matthew Barnett

    I'm looking at the spec. and I don't see TX and RX. It's either MIDI IN or MIDI OUT, so the connection is unidirectional, and it uses a balanced pair at 5V.

    The Lounge hardware question

  • File transfer between two laptops
    M Matthew Barnett

    What I usually do is write something in Python for both machines that transfers via a socket. That's how I transfer files between my Windows PC and a Raspberry Pi.

    The Lounge question adobe

  • Basic question about where to start...
    M Matthew Barnett

    I'd like to suggest you have a look at Python, ideally Python 3.6. Even if you decide to go for C#, knowing Python is useful.

    The Lounge question c++ html tutorial

  • Loop exit
    M Matthew Barnett

    In Python, loops can take an 'else' clause. It's run if you don't break out of the loop. For example:

    for item in collection:
    if some_test(item):
    print('Found one!')
    break
    else:
    print('No match found.')

    The Lounge csharp c++ java delphi algorithms

  • What's in a name?
    M Matthew Barnett

    Windows Tile 'n' All

    The Insider News csharp com tools question announcement

  • Small Basic - Success Story [modified]
    M Matthew Barnett

    I'd suggest Python.

    The Lounge question csharp asp-net com performance

  • How to load 100,000 list view items without application freeze?
    M Matthew Barnett

    Is the code calling BeginUpdate and EndUpdate? It might make a difference, but it's still going to be slow...

    C# tutorial question

  • String array comparison
    M Matthew Barnett

    I think you need to use the 'compare' method. It returns 0 if they're equal, a positive int the string is greater, or a negative int if the string is less. Therefore: if (arg1.compare(a) == 0)

    C / C++ / MFC data-structures help question

  • What's a poor developer to do?
    M Matthew Barnett

    SilimSayo wrote:

    I think that would be more rewarding than coding.

    Heretic! :-D

    The Lounge c++ help tutorial question learning

  • Sort Functions
    M Matthew Barnett

    QuickSort isn't "infinitely" faster than a bubble sort. Its efficiency depends on the choice of pivot, and its performance can be sensitive to the initial order (as explained in that article). For small arrays a bubble sort can be faster! It's usually better to use a built-in sort because that will have had time spent on it to reduce such problems.

    C / C++ / MFC c++ database data-structures question

  • while (*s++ = ((*t & 0x60) == 0x40 ? *t ^ 0x20 : *t)) t++;
    M Matthew Barnett

    Larry G. Grimes wrote:

    It definitely returns a string with all lowercase characters.

    It'll change other characters too, such as '@' to '`'!

    The Lounge ruby question

  • Funny interview answers
    M Matthew Barnett

    There's also the collective noun for baboons: "flange". :-)

    The Lounge c++ question career

  • Sharks with freakin' laser beams on their heads
    M Matthew Barnett

    You should fit mirrors and wear one your head. If the walker looks at you then just look back at him! :)

    The Lounge question

  • 8th graders don't think you're cool
    M Matthew Barnett

    Interestingly(?), more people died making the V-series flying bombs and rockets (slave labour) than died at the receiving end.

    The Lounge com business question career
  • Login

  • Don't have an account? Register

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