Calling 1959 from your Web code: A COBOL bridge for Node.js

Have you ever wanted to just cut and paste some of that legacy COBOL code from mainframe applications into your latest Web application? No? Well, Romanian Web developer  Ionică Bizău  has developed a way to do just that, creating a COBOL bridge for Node.js , the JavaScript-based cross-platform runtime environment that has become a go-to technology for server-side Web development. The plugin is an attempt to breathe new life into the programming language derived from the work of computing pioneer Admiral Grace Hopper. Published under the “Kindly” license (as in, if you want to use it in a commercial application, you should “kindly ask the author”), Node COBOL requires you install GNUCobol along with it. COBOL code can then be embedded in JavaScript. Here’s an example provided by Bizău: // Dependencies var Cobol = require(“cobol”); // Execute some COBOL snippets Cobol(function () /* IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. ENVIRONMENT DIVISION. DATA DIVISION. PROCEDURE DIVISION. PROGRAM-BEGIN. DISPLAY “Hello world”. PROGRAM-DONE. STOP RUN. */ , function (err, data) console.log(err ); // => “Hello World” Cobol(__dirname + “/args.cbl”, args: [“Alice”] , function (err, data) console.log(err ); // => “Your name is: Alice” // This will read data from stdin Cobol(function () /* IDENTIFICATION DIVISION. PROGRAM-ID. APP. *> http://stackoverflow.com/q/938760/1420197 ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT SYSIN ASSIGN TO KEYBOARD ORGANIZATION LINE SEQUENTIAL. DATA DIVISION. FILE SECTION. FD SYSIN. 01 ln PIC X(64). 88 EOF VALUE HIGH-VALUES. WORKING-STORAGE SECTION. PROCEDURE DIVISION. DISPLAY “Write something and then press the key” OPEN INPUT SYSIN READ SYSIN AT END SET EOF TO TRUE END-READ PERFORM UNTIL EOF DISPLAY “You wrote: “, ln DISPLAY “————” READ SYSIN AT END SET EOF TO TRUE END-READ END-PERFORM CLOSE SYSIN STOP RUN. */ , stdin: process.stdin , stdout: process.stdout , function (err) if (err) console.log(err); }); // => Write something and then press the key // You wrote: Hi there! // => ———— Bizău notes on his GitHub page that Node COBOL is ready for use in production—though he knows of no one who is doing so as of yet. Read on Ars Technica | Comments

Visit link:
Calling 1959 from your Web code: A COBOL bridge for Node.js

Factory Reset On Millions of Android Devices Doesn’t Wipe Storage

Bismillah writes: Ross Anderson and Laurent Simon of Cambridge University studied a range of Android devices and found that even though a “factory reset” is supposed to fully wipe storage, it often doesn’t. Interestingly enough, full-device encryption could be compromised by the incomplete wiping too. ITnews reports: “The researchers estimated that 500 million Android devices may not fully wipe device disk partitions. As many as 630 million phones may not wipe internal SD cards. Five ‘critical failures’ were outlined in the researchers’ Security Analysis of Android Factory Resets paper. Read more of this story at Slashdot.

More:
Factory Reset On Millions of Android Devices Doesn’t Wipe Storage

GE 3D-Printed a Miniature Jet Engine That Runs at 33,000 RPM

Curious about just how far they could take the company’s additive manufacturing technology, engineers at GE Aviation’s Additive Development Center in Cincinnati successfully created a simple jet engine, made entirely from 3D printed parts , that was able to rev up to 33, 000 RPM. Read more…

Excerpt from:
GE 3D-Printed a Miniature Jet Engine That Runs at 33,000 RPM

Tech vs. terror: Drones and data fight a new battle against poachers

When night falls, danger unfolds at the uMkhuze Game Reserve. And while some of the world’s most deadly predators—ranging in size from hyenas to lions—coexist next to African elephants, giraffes, and more within this massive, 140 square mile natural area, they aren’t the only creatures out hunting at night. This particular section of the iSimangaliso Wetland Park in KwaZulu-Natal, South Africa plays host to one of the country’s most profitable, albeit illegal, industries: poaching. In Africa, it’s a $70 billion business. Organized crime rings dabbling in poaching often carry ties to other smuggling industries like narcotics and weapons; some even connect with terrorist organizations. In this specific target area, rhinos most often land in the criminal crosshairs, with over 3,800 killed in South Africa alone over the past seven years. Their horns allegedly sell for $65,000 per kilogram as poachers look to profit from ivory and rhino horn powder. On the evening of November 4, 2014, two poaching suspects entered the reserve. One carried a .458 caliber rifle outfitted with a silencer. A cane knife—a long, machete-like tool used for harvesting—may have also been involved. Nearly 80 rhinos had been poached already that year; more seemed destined for the tally. But by chance, four park rangers noticed suspicious movement while on foot patrol that evening. A firefight ensued. Read 30 remaining paragraphs | Comments

More:
Tech vs. terror: Drones and data fight a new battle against poachers

Building an NES Emulator

An anonymous reader writes: Programmer Michael Fogleman recently built his own emulator for the original Nintendo Entertainment System. He’s now put up a post sharing many technical insights he learned along the way. For example: “The NES used the MOS 6502 (at 1.79 MHz) as its CPU. The 6502 is an 8-bit microprocessor that was designed in 1975. … The 6502 had no multiply or divide instructions. And, of course, no floating point. There was a BCD (Binary Coded Decimal) mode but this was disabled in the NES version of the chip—possibly due to patent concerns. The 6502 had a 256-byte stack with no overflow detection. The 6502 had 151 opcodes (of a possible 256). The remaining 105 values are illegal / undocumented opcodes. Many of them crash the processor. But some of them perform possibly useful results by coincidence. As such, many of these have been given names based on what they do.” It’s an interesting look at how software and hardware interacted back then, and what it takes to emulate that in modern times. Fogleman released the source code on GitHub. Read more of this story at Slashdot.

See more here:
Building an NES Emulator

Stanford Breakthrough Could Make Better Chips Cheaper

angry tapir writes: Researchers at Stanford University have come up with a new way to make chips and solar panels using gallium arsenide, a semiconductor that beats silicon in several important areas but is typically too expensive for widespread use. “[I]t can cost about $5, 000 to make a wafer of gallium arsenide 8 inches in diameter, versus $5 for a silicon wafer, according to Aneesh Nainani, who teaches semiconductor manufacturing at Stanford. The new Stanford process (abstract) seeks to lessen this thousand-to-one cost differential by reusing that $5, 000 wafer. Today the working electronic circuits in a gallium arsenide device are grown on top of this wafer. Manufacturers make this circuitry layer by flowing gaseous gallium arsenide and other materials across the wafer surface. This material condenses into thin layer of circuitry atop the wafer. In this scenario, the wafer is only a backing. The thin layer of circuitry on top of this costly platter contains all of the electronics.” Read more of this story at Slashdot.

Read More:
Stanford Breakthrough Could Make Better Chips Cheaper

Electrical Engineering Employment Declines Nearly 10%, But Developers Up 12%

dcblogs writes The number of people working as electrical engineers declined by 29, 000 last year, continuing a long-standing trend, according to government data. But the number of software developers, the largest IT occupational category, increased by nearly 12%, or a gain of 132, 000 jobs. There were 1.235 million people working as software developers last year, and 271, 000 electrical engineers, according U.S. Bureau of Labor Statistics data. Read more of this story at Slashdot.

More:
Electrical Engineering Employment Declines Nearly 10%, But Developers Up 12%

Microsoft Finally Allows Customers To Legally Download Windows 7 ISOs

MojoKid writes: It’s long been a pet peeve of many end users that Microsoft has made it such a challenge to procure a legitimate ISO image of its various operating systems. It seems like the company should have no problem offering them in an easy-to-find spot on its website, because after all, it’s not like they can be taken utilized without a legal key. Sometimes, people simply lose the disc or ISO they had, and so it shouldn’t be such a challenge to get a replacement. Fortunately, with a new feature on the Microsoft site, you are now able to get that replacement Windows 7 ISO. However, it’s behind a bit of protection. You’ll need to provide your legal product code, and then the language, in order to go through to the download page. If you’ve somehow lost your key but are still using the OS that it’s tied to, you can retrieve it through a few different third party tools. However, it does seem like not all valid keys work properly just yet, since some users are reporting valid keys throwing errors or not enabling a download for some reason. Read more of this story at Slashdot.

Visit site:
Microsoft Finally Allows Customers To Legally Download Windows 7 ISOs

With Insider Help, ID Theft Ring Stole $700,000 In Apple Gift Cards

itwbennett writes The Manhattan District Attorney’s office has indicted five people for using personal information stolen from around 200 people to fund the purchase of hundreds of thousands of dollars in Apple gift cards, which in turn were used to buy Apple products. “Using stolen information to purchase Apple products is one of the most common schemes employed by cybercrime and identity theft rings today, ” District Attorney Cyrus Vance said in a statement. “We see in case after case how all it takes is single insider at a company—in this instance, allegedly, a receptionist in a dentists’ office—to set an identity theft ring in motion, which then tries to monetize the stolen information by purchasing Apple goods for resale or personal use, ” he said. Read more of this story at Slashdot.

More:
With Insider Help, ID Theft Ring Stole $700,000 In Apple Gift Cards

VirtualBox Development At a Standstill

jones_supa writes: Phoronix notes how it has been a long time since last hearing of any major innovations or improvements to VirtualBox, the virtual machine software managed by Oracle. This comes while VMware is improving its products on all platforms, and KVM, Xen, Virt-Manager, and related Linux virtualization technologies continue to advance as well. Is there any hope left for a revitalized VirtualBox? It has been said that there are only four paid developers left on the VirtualBox team at the company, which is not enough manpower to significantly advance such a complex piece of software. The v4.3 series has been receiving some maintenance updates during the last two years, but that’s about it. Read more of this story at Slashdot.

Originally posted here:
VirtualBox Development At a Standstill