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.
Matthew Barnett
Posts
-
Following on from yesterday's little puzzler. -
Why is a resource fork?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.
-
Did anyone here ever race the electron beam? And did you win the race?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.
-
My Great IdeaInstead 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.
-
"Always on top" attribute...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.
-
How hard is it to implement a 1984 "simple" hardware communication protocol?Well, all I can say is that the spec. I'm looking at does say UART!
-
How hard is it to implement a 1984 "simple" hardware communication protocol?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.
-
File transfer between two laptopsWhat 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.
-
Basic question about where to start...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.
-
Loop exitIn 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.') -
What's in a name?Windows Tile 'n' All
-
Small Basic - Success Story [modified]I'd suggest Python.
-
How to load 100,000 list view items without application freeze?Is the code calling BeginUpdate and EndUpdate? It might make a difference, but it's still going to be slow...
-
String array comparisonI 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)
-
What's a poor developer to do?SilimSayo wrote:
I think that would be more rewarding than coding.
Heretic! :-D
-
Sort FunctionsQuickSort 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.
-
while (*s++ = ((*t & 0x60) == 0x40 ? *t ^ 0x20 : *t)) t++;Larry G. Grimes wrote:
It definitely returns a string with all lowercase characters.
It'll change other characters too, such as '@' to '`'!
-
Funny interview answersThere's also the collective noun for baboons: "flange". :-)
-
Sharks with freakin' laser beams on their headsYou should fit mirrors and wear one your head. If the walker looks at you then just look back at him! :)
-
8th graders don't think you're coolInterestingly(?), more people died making the V-series flying bombs and rockets (slave labour) than died at the receiving end.