echevemaster.org

Linux is my passion

By

Reading a csv file from python and ruby.

If you have to read a csv file from any of these languages I will show a few code snippets that can be helpful in doing so.

From python

import csv
with open('items-cantv-new.csv', 'rb') as csv_file:
... reader = csv.reader(csv_file, delimiter=',')
... for row in reader:
... print ', '.join(row)
...
nombre, apellidos, direccion, estado, ciudad
guillermo, gomez, altamira, distrito capital, caracas
desiree, falcon, guacara, carabobo, valencia
eduardo, echeverria, guacara, carabobo, valencia
guillermo, gonzales, altamira, distrito capital, caracas
eduardo, perez, guacara, carabobo, valencia

From Ruby

require 'csv'
csv_file = CSV.table("items-cantv-new.csv")
csv_file = CSV.table("items-cantv-new.csv") 
sorted = csv_file[:estado].uniq.reverse
res= [] 
sorted.each { |nombre| 
  csv_file.each { |csv_row| res << csv_row if csv_row[:estado].to_s.eql?(nombre) }  
}
p res.to_csv

"\"desiree,falcon,guacara,carabobo,valencia\n\",\"eduardo,echeverria,guacara,carabobo,valencia\n\",\"eduardo,perez,guacara,carabobo,valencia\n\",\"guillermo,gomez,altamira,distrito capital,caracas\n\",\"guillermo,gonzales,altamira,distrito capital,caracas\n\"\n"

By

Error message “Could not find the dist from branch name epel7″ to build on epel7

epelRecently I’ve added a package to the epel7 branch, and when I will  to build  with “fedpkg build” received this error message.

Could not execute build: Could not find the dist from branch name epel7
Please specify with --dist

The solution is easier than it seems. -

 yum update fedpkg

After that there will be no problem to build.

 

By

F20 Release Party Valencia – Venezuela

IMG_20140124_101248From I am part of Fedora, one of the things I like to do is organize and be part one release party,  it is always an opportunity to show how interesting a new version of Fedora, and this particular one had an additional element to celebrate, the “10 years of Fedora .”

The last two release parties, were held in the city of Caracas, this time it was the turn to my hometown, Valencia. So we with the help of my local LUG Vaslibre, we decided to celebrate in FACYT, Faculty of Science and Technology of the University of Carabobo.

And it was a success

I usually always give an overview of the new features of fedora, new packages, and technologies under development and adaptation. That was the opening talk, “New features in Fedora”

1618409_10202815102241165_1819183085_nGomix, the ruby sensei Fedora (at least in Latin America), did his explaining about in ruby cucumber. a tool that runs plain text functional descriptions as automated tests, which is written in Gherkin.

After we enjoyed a cake to celebrate 10 years of Fedora, and some pizzas for the organizing team :)

 

IMG_20140124_101712IMG_20140124_093329

 

 

 

 

 

1546106_10202815082000659_1667692806_nIMG_20140124_101744

By

Second Metting OpenStack Community Venezuela – Event Report

community_opOn Saturday November 16 was held in Caracas the Second Meeting of the OpenStack Community in Venezuela . I have to say this team consists of people highly professionals , who are intended to be forming a group of people with expertise on the deployment of OpenStack in public and private companies of Venezuela and willing to collaborate with developing upstream and documentation.

This community has an OpenStack installer in their github , developed by them for the Hispanic community . https://github.com/OpenStackVE , I talked to them and they promised me that when the project will be mature, they will release in english . Considering that other distros do not have an automated installer , this initiative would be an excellent starting point for Debian-based distros , Arch, to make OpenStack deployment of more expeditiously .

Speaking of automated installers , I was invited to talk about RDO . Our on Openstack deployment in Fedora community and also I  talked a bit about Big Data in Openstack ( Hadoop ) .148e4ba04f5111e3adda123e6c644eb7_8

I got to see a demo on havanna conducted by Reinaldo Martinez ( https://github.com/tigerlinux ) explaining the new features in Havanna: heat , full support for ceilometer , domains , etc. .

Also they spoke about the role of Puppet in deploying OpenStack , certainly very interesting introduction to puppet for newly initiated into automation of administrative tasks , many people were amazed at what the tool could do . I hope to help give a puppet workshop with a next meeting.

If you want to see my slides , you can download them from here http://echevemaster.fedorapeople.org/rdo_fedora.odp

 

IMAG05051459816_10151930606198880_536899396_n

By

Second Metting OpenStack Community Venezuela

openstackThe OpenStack’s guys  community in Venezuela, organized the second meeting of the community in Venezuela, which will take place on the premises of Sala Cabrujas Avenida Francisco de Miranda con 3era Avenida of Los Palos Grandes. CC. Parque Nivel C-1

The event program will be this:

  • Introducing OpensStack
  • Changes and improvements in Havana
  • Automatization of your infrastructure of OpenStack with Puppet
  • Introducing CFEngine and their use with OpenStack
  • Puppet Demonstration and their use with OpenStack
  • Demonstration of the new release
  • RDO Walkthrough in Fedora

We hope in there

By

Latinoware 2013, a FOSS event unforgettable

20131018_092846To Arrive to  Brazil after a few years without visiting was to reconnect with a culture and a people by that I have a great  passion , and this time was to present my experiences with cloud computing in what I like to do and live , the FOSS .

First, I want to thank to the organization Latinoware for the opportunity  have attended this great event. The organization of the event was impeccable and was careful in every detail , from my point of view was a titanic work.

Latinoware 2013 was held in Foz do Iguaçu (PR ), Brazil , in the premises of the Itaipu Technological Park ( PTI ) located within the area of ??the Itaipu Hydroelectric Power Plant . The participants were from many cities of Brazil and visitors from 10 countries around the world.

20131016_154129Many of my Fedora Brazilian folks we find ( and we met for the first time ) at the booth of the fedora and Red Hat , among them Leonardo Vaz, Daniel Bruno, Marcel Ribeiro DantasRamilton Gomes, Fernando Cabral , Juan Carlos Lin from Paraguay  and Rino Rondán and Roberto Stainbach from Argentina.

My first talk was about OpenStack ,OpenStack, A Walkthrought by the Open Source Cloud Computing ,  was the Thursday 17 October and I was pleased to impart it with  Luan Cistari a Redhat engineer very friendly and pleasant,  and Daniel Bruno one of the oldest ambassadors of Brazil in active .

My second talk was on Friday October 18 and was about What is the Fedora Community and how you can work with it,  and was together with a dear friend Rino Rondán (Mario Bros for friends) a great presenter and a person simple friendly , who knew long in IRC and which I had the opportunity to shake hands , joking about the pretty girls attending the event and take some beers in the nights :) ,   beers were of one liter … ; BTW  Rino will be soon packager and will become part of another team besides the Fedora ambassador .

20131017_13264420131018_10572720131018_101945

We did some installations , many people changed  towards Fedora operating system , was proud to see their faces when they realized that in 5 minutes I had the OS ready to use. one of them coming from ubuntu , said , it’s time to experience Fedora , you can order one more ? :)

I Looking forward to visiting again in 2014 Latinoware ,  missing my new friends , knowing that soon we will see in the future, wherever there is the spirit of Free Software, where what matters is the people who make it possible

By

Kausachun Fudcon, Long Live the Fudcon

Kausachun is a word that in Queshua language means Long Live!! and in this case we are attend to the last fudcon we have to say loudly “Kausachun Fudcon, Kausachun”

The higher number of attendees  in a FUDCon was in  Cusco, Peru, happening even  a transport strike in the city, it managed to gather more than 900 people in an auditorium, can you do a barcamp with that ? believe it or not,  was made, and was impressive and effective. People just proposed to collaborate and achieve a magnanimous event. Result: 65 lectures and workshops for a total of three days. I had started one of the best Fudcons of all time …

Foto Grupal Fudcon Cusco

The Mayor of the city of Cusco, and Jared Smith, former Fedora Project Leader welcomed all attendees, and heralded the coming talks,  Wolnei, Matias Basel Valentin Maceira began with a talk explaining how is the life of  collaborator on Fedora Project , and generally in the free software.

This was our first day schedule:

Room 1 Room 2 Room 3 Room 4
How to be Fedora Project Ambassador Migration to the FOSS in companies How to participate in a FOSS project
Server Administration Hardering Apache Python and  Django Explaining YUM
ICARO Fedora Releases Databases  NON-relationals Experiences with Fedora in education

Second day:

This was the day of Icaro and FEL and attendees were installing Fedora on your computer as the main OS.

The good news, a new control module will be added to Icarus, by some electronics enthusiasts in Cusco, that module will soon be packaged in Fedora, and will be  sponsored  new team members.

That same day, members of RPM-DEV team were teaching the principles of packaging for Fedora to some stakeholders, at least two members of the team will be packagers shortly.

This was our first day schedule:

 

Time Room 1 Room 2 Room 3 Room 4
09:00 – 10:00 Fedora Installation from Scratch (Jonathan Campos) Máxima and Octave (Mario Lamas) Free Software Philosophy (Abad Chambilla) GWT (Carlos Borda)
10:00 – 11:00 Fedora Electronic Lab (Kiara Navarro) Graphic Design in Fedora (Juan Barba) Losing the fear to the terminal (Neville, Julita) RPM Overview (Eduardo, Abdel, Luis, Itamar)
11:00 – 12:00 Hacking Web Basics (Anthony Mogrovejo) Doing a Development environmet in Java (Abdel, Yohan) Latin american datacenters future (Alejandro Pérez) LibreOffice (Alonso, Eddy, Nils)
12:00 – 1:00 Python 101 (Yohan Graterol) SSH Introduction(Abdel, Neville) Fedora Spins and Remixes (Wolnei Junior) Automatic Translator Spanish to Quechua based on Apertium (Hugo Calderón)
1:00 – 3:00 Lunch
03:00 – 04:00 Drupal in Fedora (Juan, Kiara, Abad) Signs and Digital certificates (Hugo Calderón) How to do technical documentation in Fedora  (Jared Smith) GTK (Mario Lamas)
04:00 – 05:00 Business Model in FOSS (Matias, Neville) Modeling with Blender (René Lujano) MongoDB in depth (Yohan Graterol) VPNs (Leonel Arroyo)
05:00 – 06:00 Fedora Servers  (Matias Maceira) Latex  (Mario Lamas) Applications of Augmented Reality (William Zamalloa) Tuning my Fedora (Julita Inca)
06:00 – 07:00 Mobile Apps (Alejandro Pérez) FOSS Licenses  (Eduardo Echeverría) How to create Fedora Remix  (Wolnei Junior) Manage your datacenter with ovirt (Abdel Martínez)

This was the day of the Fedora Infrastructure, is expected shortly, contributors  in other areas of Fedora, such as packaging and documentation, also will  part of the Infra team, the reason? Over the years, we have built a strong team in areas such as packaging, translation, documentation, and the team with almost no presence in Latin America in  the Fedora Infrastructure, Luis bazán!! we count with you in the process of mentoring.

This was our third day schedule:

 

Time Room 1 Room 2 Room 3 Room 4
09:00 – 10:00 Tracking using Gmaps and Android (Helen Conza) MariaDB (Abdel Martínez) Celery with Django (Mijail Gamarra)
10:00 – 11:00 Arduino (Kiara Navarro) Development e-commerce (Pierre) Openstack Cloud Computing (Eduardo Echevarría)
11:00 – 12:00 Python 3 (Yohan Graterol) Music Tools  DJing in Linux on Fedora (Tonet Jallo) Bigdata (Abdel Martinez)
12:00 – 1:00 USB Repos  (Neville Cross) Fedora ARM (Wolnei, Dennis) Infraestructure (Luis Bazán)
1:00 – 3:00 Lunch
03.00 – 04.00 Pymongo and Mongoengine – MongoDB use in Python (Yohan Graterol) OPS (Anthony Mogrovejo) Fedora Apps (luis Bazán)
04:00 – 05:00 Starting to use Fedora and not die trying GPG (Itamar Reis Peixoto)

We expect new contributors  in the course of the next weeks product of this wonderful event

 

By

Icaro in Fudcon Cusco – Get a plate and bring it to home

icaro_placaI just to talk with my friend Valentin Basel and he told me that he will bring to Fudcon Cusco 30 icaro plates for the persons that are insterested in contributing with the project

What are the condiction for obtain one?

Once done, Valentin will elect 30 people from the audience, and you will have a plate ready to hack Icaro!

By

New package for Fedora: python-landslide

To make dynamic presentations in HTML5 today there are many options, most of them based on Javascript language, to name a few we have:

So,  I packaged for Fedora to landslide, a tool for creating HTML5 presentations using files reStructuredText, Textile or Markdown.

It is very easy to use, consider an example with a Markdown file

 

Slide #3, With a Somewhat Long Title
====================================

**Hello Gentlemen**

- Mega Man 2
- Mega Man 3
- Spelunky
- Dungeon Crawl Stone Soup
- Etrian Odyssey

*Are you prepared to see beyond the veil of reason?* - DeceasedCrab

- Black Cascade
- Two Hunters
- Diadem of 12 Stars

---

Slide #4
========

render.py
---------

First code block:

    !python
    import jinja2
    import markdown

    with open('presentation.html', 'w') as outfile:
        slides_src = markdown.markdown(open('slides.md').read()).split('\n') 
slides = [] 
for slide_src in slides_src: header, content = slide_src.split('\n', 1)
slides.append({'header': header, 'content': content}) 
template = jinja2.Template(open('base.html').read()) 
outfile.write(template.render({'slides': slides})) 

Second code block: !php exec('python render.py --help');

Then just run landslide that take like argument the newly created file

$ landslide text.md

Install the package as well

yum install python-landslide

By

Fedora Release Party F19, Venezuela

Another fedora release, a new release party :)

20130803_181417Since I’m part of Fedora (mid-October last year) I liked it be organizer and part of these Release Parties, why?, You can share with new people and / or colleagues in your experiences and your ideas for Fedora and the community for the next release

This time in addition to celebrating the new release of Fedora and publicize its new features, we are discussing primarily on the need for documentation in our native language, Spanish. for and since end users. This is not a problem for the contributor (most of the time), but for the ordinary user, makes it very difficult to get “official” information on any topic related to Fedora..

20130803_182821

@ggomezs a.k.a. Gomix a longtime ago collaborator in the Fedora Project has done an excellent job with this documentation as http://docs.fedoraproject.org/es-ES/index.html and other guides, but him is just a person, maintainers are needed for this herculean task. So, we were discussing invite new partners to join this initiative and for that we have agreed to do a tutorial to DocBook and Publican and make it available to the community on our site https://plus.google.com/u/0/communities/103027051591113621787 order to attract our geeks to be official Fedora contributors.

20130803_151321

@Yograterol and me will take care also to make a manual for RPM packaging and make it part of the official Fedora documentation shortly.