Recently in Technology Category
Converting 32-bit code to 64-bit code
Some resources for avoiding pitfalls when moving C or C++ software from a 32-bit computer to a 64-bit computer:
- Apple: 64-bit transition guide: Making code 64-bit clean
- Viva64: A Collection of Examples of 64-bit Errors in Real Programs
- Viva64:20 issues of porting C++ code on the 64-bit platform
- The Unix System: 64bit and Data Size Neutrality
- IBM: Porting Linux applications to 64-bit systems
- MSDN: Rules for Using Pointers
In 2008, legendary computer scientist Donald Knuth complained about gcc on 64-bit platforms forcing the wasteful use of 64-bit pointers, when 32-bit pointers would suffice, and that the man page advertised an option to permit this, although it's only available for the obsolete MIPS platform. This Ubuntu bug page pursues the question.
A collection of useful tools for converting between machine-readable and human-readable timestamps. (The Unix Epoch is the number of seconds since midnight GMT January 1, 1970. This number is used for file creation and modification times and other system purposes.)
If you're trying to run an old educational CD-ROM game by Dorling Kindersley (DK) on Windows XP, you'll probably see an error message like this:
There's a patch to fix the problem. It's available through Global Software Publishing's support website. (GSP bought the DK Interactive Learning back catalog.) Here is a direct link to the DK audio patch file.
Which wires carry which signals? Here is a reference source with diagrams and details of 1,648 connectors, ports, cables, and more.
A different approach to remote desktop access, using free (as in free speech and free beer) open-source tools (PuTTY and RealVNC).
Pat Delany's open-source designs for human-powered machine tools that can be built with inexpensive scrap for about $200. The Multimachine, built out of an auto engine block, serves as a grinder, mill, lathe, and saw. The 16" swing screw-cutting lathe is made of concrete and scrap steel, using techniques that date back to World War I. A hand-powered drill can be built with scrap wood and parts for $1. A treadle-powered generator uses a car's alternator to turn human power into electricity that can charge batteries and mobile phones. (A commenter suggests "a flywheel on the bottom horizontal shaft, at the opposite end of the shaft to the large driving wheel. Firstly, this would stop the frame from toppling over if the ground was uneven. Secondly, once the mechanism was up to speed, the effort required would be much less than the initial start-up; it would simply be a case of keeping the flywheel up to speed.")
Delany and his open-source designs are featured in the latest issue of Makezine. opensourcemachinetools.org has even more information on these projects and historical do-it-yourself machine building.
MORE: The Open Source Machine site also has how-to articles for building an air compressor, hydraulic press, and screw press, for blacksmithing, and farm shop work from the early 20th century and U. S. Army courses on drafting, welding, machine tools, lathes, milling machines, and band saws.
You can follow Pat Delany on Twitter.
Resuscitation science has advanced tremendously, but the key techniques to bringing someone back from cardiac arrest aren't as widely known and used as they should be, says the author of Erasing Death. Chest compressions, no more than 8 breaths a minute with an ambu bag, cooling the body (down to about 32 degrees Celsius, or about 90 degrees Fahrenheit). "We use pads that get attached to the thighs and the upper body. In a matter of hours, the cooling machine brings the body temperature down to the desired level. But you could also do this at home, if you found someone there in cardiac arrest. Call an ambulance, administer CPR and place a bag of frozen peas or other frozen vegetables on the patient. It helps to protect the brain....
"Most brain damage after resuscitation occurs not within the first few minutes of death, but in the hours up to the first 72 hours after resuscitation. But with proper post resuscitation care, we can minimize that.... A recent study found that the optimal length of resuscitation to yield higher survival is at least 40 minutes. Yet most doctors will stop within 20 minutes.... As long as hospitals don't require their resuscitation doctors to implement all the nuances required to save brains and lives after cardiac arrest through fully trained specialists, survival rates in general will not improve."
Read through to page 2 to learn about Parnia's research into near-death experiences.
Why you want a hot skillet, how to tell when it's ready to turn over, and why too crowded a pan will result in "grayed" meat instead of properly browned meat.
Very cool and inexpensive hack