Home Blog Page 1315

GtkInspector Now Supports Dealing With Multiple Back-Ends For GTK

Matthias Clasen did some weekend hacking to allow GtkInspector to work across different display connections, e.g. debugging a GTK application running in Wayland while GtkInspector is running under X11 or the HTML5 Broadway back-end…

Read more at Phoronix

Will We Ever Be Able to Run OS X Apps in Linux With Darling?

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.

Read more at ITworld.

How to Install and Setup ‘My Weather Indicator’ in Ubuntu 14.10

weatherThere’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!.

 
Read more at 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…

Read more at Phoronix

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.

 

Read more

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…”

Read more at DistroWatch

The Companies That Support Linux: Altera

Findlay Shearer AlteraContributing 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.