Wine is very well known in the Linux community since it lets you run Windows apps on your Linux computer. But Darling, it’s counterpart for running OS X apps in Linux, has never gotten as much attention. A redditor reminds us that the Darling project is alive and kicking.
How to Install and Setup ‘My Weather Indicator’ in Ubuntu 14.10
There’s no drought of ways to be kept abreast of the weather on the Ubuntu desktop, with the Unity Dash and desktop utilities like ‘weather indicator’ and Typhoon all offering to assist. But the most popular weather utilities tend to be indicator applets or panel-based tools. These offer quick glance condition and temperature stats, with a ream of […]
The post How to Install and Setup ‘My Weather Indicator’ in Ubuntu 14.10 first appeared on OMG! Ubuntu!.
Openage: Making Age of Empires II Open-Source
Like Xoreos, GemRB, and OpenMW that seek to remake popular proprietary games/engines as open-source, Openage is another such project and it’s seeking to free the once popular Age of Empires II game…
PostgreSQL features that may interest you
Range Types
Ever had start_date and end_date columns? Have you written queries like this to find overlapping date ranges?:
… WHERE ('2014-07-15 15:20:00’ >= start_date
AND '2014-07-15 15:20:00’ < end_date)
OR ('2014-07-15 15:50:00’ > start_date
AND '2014-07-15 15:50:00’ <= end_date);
Well this isn’t necessary in PostgreSQL
CREATE TABLE appointments (
id serial primary key,
appointment tstzrange,
details text);INSERT INTO appointments (appointment, details)
VALUES ('[2014-07-15 15:00:00,2014-07-15 15:30:00)’, 'Dentist’);SELECT *
FROM appointments
WHERE appointment && '[2014-07-15 15:20:00, 2014-07-15 15:50:00)’::tstzrange;
Square brackets mean “including”, round brackets mean “from/to but not including”. So the appointment is from 15:00, and up to, but not including, 15:30. We want it this way because if we had an appointment at 15:30, we don’t want it overlapping the previous appointment at all. The && operator means “overlaps”.
Arrays
Ever had several items that you wanted to store together, but had to create a column for each one? In PostgreSQL any type (even user-created ones) can be specified as an array type by adding “[]” to the end of the type name. (note: the ISBN13 type shown below is part of the core extension “lsn”)
CREATE TABLE books (isbn ISBN13, title TEXT, author text, tags TEXT[]);INSERT INTO books (isbn, title, author, tags)
VALUES
('978-0575081406','The Name of the Wind','Patrick Rothfuss', ARRAY['fantasy','fiction','epic']),
('978-0753827666','Gone Girl','Gillian Flynn',ARRAY['mystery','fiction']),
('978-0575079755','The Lies of Locke Lamora','Scott Lynch', ARRAY['fantasy','epic']);
SELECT *
FROM books
WHERE tags @> '{fantasy}';
isbn | title | author | tags
-------------------+--------------------------+------------------+------------------------
978-0-575-08140-6 | The Name of the Wind | Patrick Rothfuss | {fantasy,fiction,epic}
978-0-575-07975-5 | The Lies of Locke Lamora | Scott Lynch | {fantasy,epic}
(2 rows)
Function Languages
PostgreSQL supports not just SQL and plpgsql as function languages, but many others including Perl, Python, Bash, TCL, Sh, R, Java, Javascript, Javascript V8, LOLcode, Scheme, PHP, Ruby, Lua, or any other language you wish to add:
CREATE OR REPLACE FUNCTION divide_python(a numeric, b numeric) RETURNS numeric AS $$
if b > 0:
return a / b
$$ LANGUAGE plpython3u;
CREATE OR REPLACE FUNCTION divide_perl(numeric, numeric) RETURNS numeric AS $$
if ($_[1] > 0) {
return $_[0] / $_[1];
}
$$ LANGUAGE plperl;
Foreign Data Wrappers
PostgreSQL can connect to pretty much any external data source:
-- Create the file_fdw extension so we can read in files from disk.
CREATE EXTENSION file_fdw;
-- Create the server definition which is straight-forward for files
CREATE SERVER file FOREIGN DATA WRAPPER file_fdw;
-- Now create the definition of the foreign table that will read in the file when queried.
CREATE FOREIGN TABLE report_file (report_date date, item text, count int) SERVER file
OPTIONS (FILENAME '/tmp/report.csv', HEADER 'true', FORMAT 'csv');-- Let's query it as if it were just a regular table
SELECT * FROM report_file ORDER BY count desc;
report_date | item | count
-------------+---------+-------
2014-10-15 | Books | 15
2014-10-15 | Glasses | 5
2014-10-17 | Laptops | 3
(3 rows)
Try the New Makulu Cinnamon Debian Edition: Gaming-Ready, Cinnamon at Its Peak
In the past I have reviewed MakuLinux MATE Edition, which came with a very polished and beautiful interface, but also bundled in the ISO a big number of applications to be installed. At the time the MATE edition made a very good impression on me, so I kept a close eye on the development of Makulu.
So now it’s time to look at the brand new MCDE – MakuluLinux Cinnamon Debian Edition – which features Cinnamon 2.2, is based on Debian Testing and comes ships with components to make it a great choice for gamers, beautiful appearance customization themes and wallpapers, a custom control center and many more features.
Enterprises: We Need More Mobile App Developers
Survey of IT managers finds half report backlogs of at least 10 mobile apps.
Distribution Release: LinHES 8.2
Cecil Watson has announced the release of LinHES 8.2, the latest stable version of the project’s specialist Arch-based distribution designed for set-top boxes and home entertainment computers: “The LinHES dev team is pleased to announce the release of LinHES 8.2. LinHES 8.2 brings updates to the kernel, system…”
The Companies That Support Linux: Altera
Contributing upstream to the Linux kernel is hugely important to Altera, says Findlay Shearer, a senior manager of product marketing at the Silicon Valley-based chip maker.
Altera’s kernel code helps ensure Linux developers can work on their SoCFPGA architecture, which integrates FPGA (field programmable gate array) devices with ARM processors into a single SoC (system-on-chip). This enables innovation in the embedded industry, based on Altera’s SoCFPGA chips.
Altera’s contributions don’t stop there, however.
“Altera believes that upstreaming the code for the SoCFPGA architecture from the beginning was the right decision,” said Shearer, who’s responsible for open source runtime and tools for Altera’s SoCs. “However, keeping up with the contributions is paramount to guarantee Altera’s success and reputation within the open source community.”
To become more involved in the Linux community, Altera recently joined The Linux Foundation as a new corporate member.
“The ability to network with like-minded developers, customers, partners and competitors within the Linux community in a synergistic manner ensures the longevity of Linux and the Linux Foundation,” Shearer says in the Q&A, below. “The longevity of Linux is paramount to Altera and its customers’ success in the marketplace.”
Here Shearer tells us more about Altera, how it’s involved in Linux kernel development, why it joined the Linux Foundation, and why it’s a great company for Linux developers.
Linux.com: What is Altera?
Findlay Shearer: Altera is the pioneer of programmable logic solutions and power management technologies enabling system and semiconductor companies to rapidly and cost effectively innovate, differentiate, and win in their markets. Altera offers FPGAs, FPGAs with embedded processor systems (SoCs), and CPLDs in combination with software tools, intellectual property, and customer support to provide high-value programmable solutions to customers worldwide. Altera was founded in 1983 and is headquartered in San Jose, California, and employs more than 3,000 people in over 20 countries.
How and why do you use Linux?
Altera contributes to Linux, including participation on RocketBoards.org, as an enablement for our SoC customers. We provide kernel, U-boot and meta-altera layer for Angstrom and the Yocto Project. Altera contributes to the open source community to enable the Linux kernel to run on its SoCFPGA architecture. Contributions include improvements to the general kernel as well as new SoCFPGA specific functions like the FPGA manager framework. By nature, these improvements benefit everybody in the Linux community.
Altera’s approach for SoCFPGA is centered around upstreaming and “maintainership” of the Linux kernel. Consequently Altera’s Linux team was assembled with this in mind. An Altera employee is the maintainer of the SoCFPGA layer as well as the SoCFPGA clock driver in the Linux kernel.
Altera believes that upstreaming the code for the SoCFPGA architecture from the beginning was the right decision. However, keeping up with the contributions is paramount to guarantee Altera’s success and reputation within the open source community.
In addition to providing the latest stable kernel for the SoCFPGA architecture, Altera also supports U-Boot, LTSI kernel with and without PREEMPT_RT and a meta-altera layer all running and tested on the Yocto Compatible, Angstrom distribution and available via the public git repositories on RocketBoards.org, a “one-stop-shop” for Linux developers working on Altera’s SoCs.
Why did you join the Linux Foundation?
Altera recognizes the importance of Linux and unequivocally believes joining the Linux Foundation sustains Linux, and demonstrates Altera’s commitment to Linux. The Linux Foundation brings together sponsorship for emerging open source projects, education and a common meeting place for the open source community. The ability to network with like-minded developers, customers, partners and competitors within the Linux community in a synergistic manner ensures the longevity of Linux and the Linux Foundation. The longevity of Linux is paramount to Altera and its customers’ success in the marketplace.
What interesting or innovative trends are you witnessing in hardware and embedded systems and what role does Linux play in them?
One innovative trend is the integration of ARM-based processors with FPGAs providing increased flexibility through hardware differentiation combined with the increased capabilities and flexibility of Linux results in a differentiated and successful products based on Altera’s SoCs. Another trend is the transition to ARM v8 architecture with virtualization extensions leveraging projects like KVM, Xen and Linux containers. Furthermore many of our customers are selecting Linux and at Altera, we enable choice for our customers.
How is Altera participating in that innovation?
It is important for Altera to contribute to the Linux kernel. Specifically Altera innovates by augmenting the Linux kernel with new features, like an FPGA Manager Framework for programming and reconfiguring the FPGA. Furthermore, Altera is enhancing the Kernel to better handle memory map reconfiguration via dynamic device trees.
What other future technologies or industries do you think Linux and open source will increasingly become important in and why?
A future path for Linux is where it becomes a foundation for other things; where the world moves to software defined systems, Linux could become the common operating system that enables these software defined systems. Linux clearly has become pervasive, now touching many aspects of our professional and personal lives, giving users choices.
Are you hiring?
From improving Linux kernels to developing innovative features both on Linux and tools, Altera is always looking for talented Linux developers. Working at Altera means you are at the forefront of technology innovation, providing customers programmable solutions for leading-edge electronic systems that are shaping our modern world. Altera’s products are preferred by customers in a variety of end-markets, including communications, networking, cloud computing and storage, industrial, automotive and defense. Careers at Altera are founded on a core set of values that allow employees to champion innovation for customers, colleagues, and the company. You can find more information at Altera.com.
Join the Linux Foundation as a new corporate member.
Windows, Linux ARM Servers are on Their Way to the Data Center
Microsoft joins a push towards ARM servers that have been building up for years.
SUSE Linux Enterprise 12 Debuts With ‘Rock-Solid’ Cloud Support

After more than five years of development, SUSE on Monday rolled out SUSE Linux Enterprise 12, a brand-new version of the enterprise-class edition of its popular Linux platform. Built for reliability, scalability and security, the new release is designed to help companies efficiently deploy and manage highly available IT services in physical, virtual or cloud infrastructures.
SUSE Linux Enterprise 12 serves as the foundation for all SUSE data center operating systems and extensions. New operating systems and software extensions based on it include SUSE Linux Enterprise Server for x86_64, IBM Power Systems and IBM System z; SUSE Linux Enterprise High Availability Extension and Geo Clustering for SUSE Linux Enterprise High Availability Extension; SUSE Linux Enterprise Virtual Machine Driver Pack; and SUSE Linux Enterprise Desktop and SUSE Linux Enterprise Workstation Extension.
Included in these new products are feature enhancements aimed at better enabling system uptime, improving operational efficiency and accelerating innovation, SUSE says. Also new in this version is an updated customer portal designed to make it easier for customers to manage their subscriptions, access patches and updates and communicate with SUSE customer support.
Linux.com recently had a chance to speak about the highlights of this new release with several members of the SUSE Linux Enterprise team, including George Shi, its product marketing manager; Kerry Kim, director of strategic marketing; and Matthias Eckermann, senior product manager for SUSE Linux Enterprise.
Support for Linux Containers
There are a number of new features in SUSE Linux Enterprise 12 with particular benefits for companies operating in cloud computing environments, the team said.
For example, “we now have modules,” Eckermann told Linux.com. Specifically, SUSE Linux Enterprise Server Modules offer a choice of supplemental packages, including tools for web development and scripting, public cloud management and advanced systems management. Modules are part of companies’ SUSE Linux Enterprise Server subscriptions and are delivered as online repositories.
As part of the public cloud module, for instance, SUSE worked with leading cloud vendors to use and provide their tools precompiled and prepackaged for enterprises, he explained.
“A module is a part of SUSE Enterprise Server that has a more aggressive life cycle than the base of the OS,” Eckermann pointed out. “With these kinds of modules, we are helping people in industry have enterprise-ready support but also receive and be able to develop on recent software stacks.”
With support for Microsoft tools along with VMware, Xen and KVM, SUSE Linux Enterprise Server also supports Linux Containers, which are integrated into the virtualization management infrastructure (lib-virt). Docker is provided as a technology preview.
“There is no enterprise mission-critical support for Docker available anywhere,” Eckermann said.
KIWI for Image Building
KIWI, meanwhile, is “a really nice tool that can help customers integrate the image-building process,” Shi noted. “You can take one configuration, build an image, and deploy it onto Xen, KVM, Docker. It offers one configuration, deploy anywhere.”
With regard to containers, “you want to be as lightweight on the disk as possible,” he pointed out. “You can make them small with KIWI, but if you want to have the real space-saving capabilities, you want to use Btrfs. The file system itself is capable of deciding if it has to waste extra space for bytes coming in or if it can reuse an existing space. It also supports cloning directly. This is where the real benefits come in: Hundreds of containers per minute can be spawned off. This is what is coming down the road.”
In many ways, private clouds are replacing what classically the big companies’ data centers have done, Eckermann said. Accordingly, “you want the cloud host systems to be rock-solid.”
With SUSE Linux Enterprise 12, “we are trying to eliminate downtime and increase uptime,” he added. “On cloud hosts, you don’t want to have any kind of weakness, because mission-critical infrastructures and applications will depend on the private cloud going forward.”
SUSE Linux Enterprise Server 12 images—with modules enabled—are also now available on Amazon Web Services, Google Compute Engine and Microsoft Azure. More information about SUSE Linux Enterprise 12 is available online, as are details on pricing and availability for SUSE Linux Enterprise Server 12.