Reputation
418
Top tag
Next privilege 500 Rep.
Access review queues
Badges
3 8
Newest
 Yearling
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 16 votes cast
2d
comment LSB-propagating left shift, conceptual equivalent of sign-propagating right shift
If the right most bit is zero do a normal left shift. If it is one the perform a loop for the number of shift, and in the loop shift one left then OR one. 15 <<< 3 = 127
Apr
8
awarded  Yearling
Apr
8
answered Bits - Least-Significant/Lowest is 0th or 1st; zero or one indexed
Apr
5
comment How to detect network interruptions
Sorry, wasn't paying attention, it is your question. Still, did you try snowman's second method?
Apr
4
comment How to detect network interruptions
Answer two above seems reasonable, but it really depends on what the specifics are. You should post your own question. Comments aren't to ask other questions.
Apr
4
comment How to detect network interruptions
The effectiveness of ping is dependent upon the network. If you are not in control of the network I wouldn't use ping. All it takes is the network engineer to decide to turn off ICMP Echo request / replies and you are sunk. If google ever does that the world economy may crash based on the code that I have seen that pings google to determine if the 'network' is OK.
Feb
19
comment What was the first mass-produced CPU to have an instruction for multiplication?
Is this about microprocessors or CPU's in general. If it is the latter IBM was making computers with multiplication in the 1950's. The Motorola 6809 had hardware multiply in 1978'ish.
Jan
3
awarded  Critic
Jan
3
revised Best way to deal with two independent booleans
added 134 characters in body
Jan
3
comment Best way to deal with two independent booleans
It isn't required to make it more legible, if anything it makes it confusing. When I first saw it I took a moments pause and wondered if I had missed something. I concluded that Boolean logic has not changed in my forty five years of programming.
Jan
3
comment Best way to deal with two independent booleans
@gnat at least you are consistent. I agree that this particular piece of code is short enough not to require detailed explanation. Maybe because it is exactly what I posted.
Jan
3
revised Best way to deal with two independent booleans
added 296 characters in body
Jan
3
revised Best way to deal with two independent booleans
added 296 characters in body
Jan
3
comment Best way to deal with two independent booleans
@gnat - sometimes a hammer is just a hammer. The OP didn't ask for a framing, ball peen, tinners, etc. hammer. I'll edit my response.
Jan
3
comment Best way to deal with two independent booleans
In the first else if why is !b required? Didn't the 'a && b' take care of that?
Jan
3
comment Best way to deal with two independent booleans
@xecgr In the elifs why are the nots required? Didn't the 'a and b' take care of that?
Jan
3
answered Best way to deal with two independent booleans
Dec
12
comment Development process used for the code on Apollo 11 missions?
Here are some links that might provide an answer. The Computer Weekly article has some embedded links that are fascinating, including the entire source code for the AGC for both the CM and LEM. Computer Weekly Dr. Dobbs MIT A NASA search retur
Dec
10
answered Which programming language (or machine language) first used line numbers?
Nov
30
comment Querying large amount of data for parallel processing
Take a look at stackoverflow.com/questions/187998/row-offset-in-sql-server .