view counter

Linux Feed

Linux Support, Oracle Linux, Red Hat Enterprise Linux, SUSE, Oracle Unbreakable Enterprise Kernel and the Oracle Unbreakable Linux Support Program (ULN) resources, news, and support articles.

Python convert list values to int values

 
I have a list with int values as strings as following:
>>> mylist = ['1', '2', '3', '4']

>> mylist

['1', '2', '3', '4']
I would like to convert all values in mylist to int’s.
I used following code to convert values of lists to int’s:
>>> output = map(int, mylist)

>>> output

[1, 2, 3, 4]
Now just observer both list output values, all values in mylist are strings and all values in output list are int’s.

PuppetDB API Cheat Sheet and Useful One Liners

This is my puppetdb api cheat sheet of useful one liners for querying against the puppetdb api. These are geared for a command line environment, so you’ll notice that they depend on the curl jq commands. These available through the package manager on most linux distributions. This It’s a work in progress. Generate a host […]
The post PuppetDB API Cheat Sheet and Useful One Liners appeared first on Backdrift.

Remove ubuntu one with apt-get

 
To remove Ubuntu form your system run following commands in sequence:

Remove ubuntu one with apt-get

 
To remove Ubuntu form your system run following commands in sequence:

Google Transparency Report :- Saferemail

If you’re sending confidential information by mail, you wouldn’t put it in a postcard. Find out how secure your email is in a new section of our Transparency Report:http://www.google.com/transparencyreport/saferemail/

CentOS – Hostname Change

 
To change host name in CentOS use following steps:
Open /etc/sysconfig/network file
$ vim /etc/sysconfig/network
Now modifiy HOSTNAME= value
HOSTNAME=my.domain.com
my.domain.com is desired host for my machine, similarly we can use other valid domain names.
Next edit /etc/hosts file, here we need to change the host that is associated to your main IPaddress for your server.

CentOS – Hostname Change

 
To change host name in CentOS use following steps:
Open /etc/sysconfig/network file
$ vim /etc/sysconfig/network
Now modifiy HOSTNAME= value
HOSTNAME=my.domain.com
my.domain.com is desired host for my machine, similarly we can use other valid domain names.
Next edit /etc/hosts file, here we need to change the host that is associated to your main IPaddress for your server.

Create slide show from pictures - part 1

After you upload your pictures from your digital camera to your Linux computer, you want to view them without having to manually open each one. This post explains how to create a slide show from a set of picture files using ffmpeg, a command-line tool. My next post turns to Imagination, a GUI-based tool, to achieve the same goal.

Installing and Compiling Mankai Common Lisp on CentOS 5

ManKai Common Lisp (MKCL) aims to be a full implementation of the Common Lisp language in compliance with the ANSI X3J13 Common Lisp standard.
MKCL supports the operating systems Linux and Microsoft Windows, running on top of Intel x86 or AMD64 compatible processors.
For more information on installation of MKCL, do look at http://common-lisp.net/project/mkcl/

Installing and Compiling Mankai Common Lisp on CentOS 5

ManKai Common Lisp (MKCL) aims to be a full implementation of the Common Lisp language in compliance with the ANSI X3J13 Common Lisp standard.
MKCL supports the operating systems Linux and Microsoft Windows, running on top of Intel x86 or AMD64 compatible processors.
For more information on installation of MKCL, do look at http://common-lisp.net/project/mkcl/

view counter