Display Multiplication Table With A Command Line

If you forgot your multiplication table and happen to have a terminal window opened in Linux  at the time, here’s the command to use: seq 9 | sed ‘H;g’ | awk -v RS=” ‘{for(i=1;i<=NF;i++)printf(“%dx%d=%d%s”, i, NR, i*NR, i==NR?”\n”:”\t”)}’ Same thing using perl:

Here’s the output:

Source (in French): http://www.tux-planet.fr/afficher-les-tables-de-multiplication-en-ligne-de-commande/ Jean-Luc Aufranc (CNXSoft)Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011. www.cnx-software.com

Raspberry Pi at ARM Techcon 2011

Raspberry Pi Foundation is currently at ARM Techcon 2011 showcasing their 25 USD ARM11 Linux Computer unveiled last May. The board is build around Broadcom BCM2835 (ARM11 @ 700Mhz + GPU) application processor with 128/256MB “soldered” on top of the processor (Package on package (PoP) technology) and a USB Hub/Ethernet adapter chip and that’s it. The board features an Ethernet 10/100 RJ45 connector, 2 USB 2.0 port, an Audio out, HDMI and composite video output and an SD card slot. They currently only have the larger alpha board, the final board will be shrunk to the size of a business card and should be available in November 2011 (but most probably December). They believe the board will have better multimedia performance than the Beagleboard. I’m not convinced of that yet, but we’ll see. There will be two versions: Without network and 128 MB RAM – 25 USD Network support (Ethernet) and […]

Ubuntu on Tegra 2 Netbook and Ubuntu Server on Pandaboard

Canonical showcases several demos at ARM Techcon 2011: Toshiba AC-100 Netbook (Nvidia Tegra 2)  running Ubuntu 11.10. with Unity interface. Freescale i.MX53 board playing a 1080p video in Ubuntu 11.10. TI Pandaboard running Ubuntu 11.10 Server Edition. Ubuntu 11.04 is not officially supported for Toshiba AC-100, but the community if working on it and the image can be downloaded at http://ac100.gudinna.com/ Canonical however supports Netbook and Headless (Server) edition for OMAP3 (Beagleboard) and OMAP4 (Pandaboard). Those image are available at https://wiki.ubuntu.com/ARM/NattyReleaseNotes Watch the interview by Charbax and demos in the video below. Jean-Luc Aufranc (CNXSoft)Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011. www.cnx-software.com

Long Term Support Initiative (LTSI) Linux Kernel for Consumer Electronics

The Linux Foundation announced a new project, the Long Term Support Initiative (LTSI), created by the Consumer Electronics Workgroup (CE WG) at Linuxcon Europe 2011 in Prague. LTSI aims at reducing duplication of effort in maintaining separate private industry kernel trees. The LTSI project intends to deliver an annual release of a Linux kernel suitable for supporting the lifespan of consumer electronics products and regular updates of those releases for two to three years. The project is backed by several companies in the consumer electronics industry including Hitachi, LG Electronics, NEC, Panasonic, Qualcomm Atheros, Renesas Electronics Corporation, Samsung Electronics, Sony and Toshiba. LTSI will allow device makers to spend less time doing significant back-porting, bug testing and driver development on their own, which carries substantial cost in terms of time-to-market, as well as development and engineering effort to maintain those custom kernels. In some ways, this is similar to Linaro, […]

Yocto Project Release 1.1 Announced

The Linux foundation announced Yocto Project Release 1.1 today. This release codenamed “Edison” and based on Poky 6.0 is the the second release of the project, one year after it was announced in October 2010 to provide developers with greater consistency in the software and tools they’re using across multiple architectures for embedded Linux development. The Yocto Project reached the following milestones during the last year: Alignment of OpenEmbedded technology and the inclusion of OpenEmbedded representation in the Yocto Project governance structure. The projects share a common core that consists of software build recipes and core Linux components that prevent fragmentation and reinforce the OpenEmbedded methodology as an open standard for embedded Linux build systems. Contribution of tools and technologies such as Cross-prelink, EGLIBC, Pseudo, Shoeleather Lab (for automated testing) and Swabber have been contributed from Intel, Mentor Graphics, MontaVista Software and Wind River. Commercial adoption with examples such as […]

Linux 3.1 Release

Linux Torvalds announced the release of Linux Kernel 3.1 yesterday: As promised, the kernel summit has started, and Linux-3.1 is out. The (small) shortlog of changes since -rc10 are appended, we have mostly some sparc and networking changes, along with some radeon and intel iommu fixes (mostly for largepages and integrated graphics issues). Most people probably will not notice the changes. One big change from -rc10 is that there are tar-balls and patches, so if you aren’t a git user (why?) you can download it now in a traditional format. On of the things to note is that the files are now signed by my gpg key, and it’s the *uncompressed* version that the signature is for. And of course, this means that the merge window for 3.2 is open. I’ll do some merging during the KS, but probably most when I get back home – but you can still […]

Renesas R-Car H1 Automotive SoC

Renesas announced the R-Car H1, their new automotice SoC with 4 Cortex-A9 cores clocked at 1GHz and Imagination Technologies’ SGX-543-MP2 graphics processing unit (GPU) aimed at high-end navigation systems. It also features a Renesas SH-4A high-reliability real-time processing CPU core acting as a multimedia engine (MME) . The R-Car H1 SoC can also powered with Renesas’ IMP-X3 core (optional), a real-time image processing unit that enables developers to implement augmented reality application such as  360-degree camera views (Thanks to up to four independent input camera channels) and sign recognition. Here’s an excerpt of the press release: Renesas Electronics Corporation (TSE: 6723) and its subsidiary, Renesas Mobile Corporation, today announced a new member of the R-Car series of automotive systems-on-chip (SoCs), the R-Car H1, capable of delivering up to 11,650 Dhrystone MIPS (DMIPS), and ideal for the high-end car navigation market. The R-Car H1 SoC offers an innovative architecture where the application […]

ARM big.LITTLE Processing Demo

ARM uploaded a big.LITTLE demonstration by Nandan Nayampally, Director, Product Marketing. The demo runs the Android 2.3 (Gingerbread) with graphs showing CPU usage and when Cortex A7 / A15 is running. At the beginning Cortex A7 handles the background tasks, and when they start the Android Browser, Cortex A15 is used instead to render the page and once this is done, the system switches back to Cortex A7. Scrolling the webpage will increase CPU usage, but this will still be handled by Cortex A7. They did not have to do any modifications to Android, but they just added a big.LITTLE aware Power Management Driver which will be open sourced and integrated in future version of the linaro kernel. Jean-Luc Aufranc (CNXSoft)Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later […]

Exit mobile version
EmbeddedTS embedded systems design