Foresight Linux Planet

February 28, 2015

Martin Bähr

Building an API with Zinc-REST in Pharo Smalltalk

In this session we are going to build a simple RESTful API using the Zinc-REST package.

The base image is again Moose, now the latest build of Moose 5.1

You may watch part one, part two and part three of this series if you are interested to find out what lead to this point. They are however not needed to be able to follow this session.

by Martin Baehr (mbaehr@community.gotpike.org) at February 28, 2015 05:23 PM

A static webapplication hosted on Pharo Smalltalk

For part three of our workshop series we start from scratch, and build a small website that hosts nothing but static files from a memory FileSystem.

We are also going to explore the new development tools that are built in the Moose project

You may watch the first and second parts of this series, or you may jump right in here.

In the next session we are going to build the RESTful API to make this application functional

by Martin Baehr (mbaehr@community.gotpike.org) at February 28, 2015 05:20 PM

February 13, 2015

Martin Bähr

Serving files through FileSystem in Pharo Smalltalk

In the second part of this series we transform our website to serve all content as files from a FileSystem object.

If you haven't yet, take a look at part 1

In the next session we will serve an actual web-application

by Martin Baehr (mbaehr@community.gotpike.org) at February 13, 2015 08:41 AM

February 03, 2015

Martin Bähr

Using the FileSystem class in Pharo Smalltalk

I am learning how to build a website with a RESTful API in Pharo Smalltalk. This project started during Google Code-In as a set of tasks for students to work on. A handful of students were interested and picked up tasks to learn Pharo.

Now that Google Code-In is over, the students are interested to continue learning and so i am running workshops with them, where we explore the tools needed to build this server.

The first workshop was held last week on sunday the 25th, and the next one will be on saturday the 31st of Jnauary. from 2pm to 6pm chinese time, that is 7am to 11am CET or 6am to 10am UTC. We will meet on freenode irc in the channels #fossasia and #pharo.

A part of website consists of static files. To simplify development and deployment, we want to serve those files from the smalltalk image. One way to hold several documents inside an image is using a memory FileSystem. The FileSystem class is described in the book "Deep into Pharo" in chapter 3.

In the first workshop we try to use the FileSystem class in a sample application. We use the tutorial "Building and deploying your first web app with Pharo" as a starting point, and adapt the code to store images in a FileSystem object.

If you want to follow along, please first complete the tutorial and then watch the screencast below to continue:

In the next session we will convert the rest of the website to using our FileSystem object.

by Martin Baehr (mbaehr@community.gotpike.org) at February 03, 2015 05:41 AM

January 31, 2015

Martin Bähr

the community calendar project at google code in

For the community-calendar project in total, 11 tasks were proposed, of which 7 got completed:

Not so much work got done on the code itself, but we now have some documentation of the API as well as the start of a testing framework to help keep the API stable.

As a sideproject, these tasks were designed to explore the ember.js framework. the calendar-widget, going to be embedded into different websites was a good target because we now can offer both versions for embedding.

For ember.js the student, samarjeet wrote about the work in his weblog. An initial comparison: Comparing the community-calendar
Creating Ember Components turned out to be more dificult, and we had to enlist outside help to solve it.
Finally, a deeper comparison of Angular.js vs. Ember.js

This leaves us with 4 tasks that were not worked on

by Martin Baehr (mbaehr@community.gotpike.org) at January 31, 2015 09:19 AM

January 29, 2015

Martin Bähr

csdn interview

I have been interviewed by CSDN. The interview has been published today in chinese.

The original english answers as i sent them are below:

1. Could you introduce yourself to us first?

I am using and developing Free Software and Open Source for more than 20 years. I am a contributor to the Pike programming language, the Foresight Linux distribution and several other Free Software Projects. I co-edited a book on Pike and organized developer conferences. I am also a mentor at FOSSASIA. Throughout my career I focused on developing and advocating Free Software. I have lived and worked in several countries around our planet Earth. I came to china in 2008. I am currently the CTO at eKita, a startup in Bangkok, and the General Manager at Realsoftservice, a Linux service firm in Beijing where i offer software development, training and internships. I live in Beijing with my family.

2. Compared with your own country, what attracts you most in China or Beijing?

China (and Asia in general) has a different culture from western countries. Learning chinese culture allows me to look at situations from a different perspective.

I believe that all the world should be united into one country. And in order to do that we need to understand the different parts of the world, what everyone can contribute to this world, and what unifies us.

China is a large part of this world, and also not much is known about china outside of it. The only way to learn about china is to be here.

China is also huge. I like to travel, and china allows me to travel long distances to places that are very different from each other without having to cross any borders.

3. What is your role in BLUG? Could you describe the important development milestones of BLUG?

I am acting as the secretary. That means i help to arrange meetings and events for the group.

I joined the BLUG in 2008 and i am not familiar with the history before. One important event before i joined was the 2007 Software Freedom Day which was chosen as the best SFD event for that year.

At the time, when i joined, the BLUG had monthly meetings, frequent quan'r dinners and BLUG Tuesday events. We also had a group aiming to build a quadcopter and a library. Active members were both foreigners and chinese.

In summer 2008 an intern at Exoweb where i worked at the time, together with me initiated a hackaton event called "Coding For Fun". I then continued hosting the event by myself as part of the BLUG. When i left Beijing other BLUG members continued hosting the event.

When I came back to Beijing some active members had left. I took over the management of the group in 2013, when most active members had left. At that time active participation was very low. I continued running the monthly meetings and Coding For Fun events. In Autumn we re-started BLUG Tuesday and used it to test new meeting locations. That way we found our current meeting place.

We slowly regained new active members, most of them chinese.

4. What kind of difficulties have BLUG encountered in the process of development, and how to solve them?

The main difficulty we have is finding good locations for the meeting and Coding For Fun events. It is still an unsolved problem. We don't have sponsors to pay for using locations, so we rely on offers for places we can use for free.

5. What are the daily activities in BLUG? Do you (or BLUG) have any interactions with other communities?

I am trying to visit and keep relations with every group that i can find in Beijing. I am regularly participating at events from the Beijing Open Party, Ruby, Python, Angular.js meetups. Barcamp and more.

Most of these groups have Linux users, but as i am a programmer, many groups are interesting to me personally too.

We also work with other groups to organize events, for example the Software Freedom Day. or we support conferences like GNOME.asia and FUDcon or the OpenSUSE summit, all of which had volunteers who are BLUG members.

We also participated at Google Code-In with FOSSASIA.

6. Have you ever attended open source activities in other countries or regions?

What are the differences between other countries and China in Open-source activities?

Every place and every country i have lived in, i participate in the local activities. These vary in size and regularity. In some cases my visit was the motivation for a group to have more meetings. In most groups the meeting involved some form of topic presentation and discussion. But sometimes it was just going out for dinner. Really not much different from china.

7. From your personal point of view, could you share with us some tips on how to manage one open source community successfully?

Well, there are different kinds of communities, for example those that revolve around a particular software project where all members in some form contribute to that software project. The contributions to such projects are often motivated by the contributors own needs. The main goal for community managers is to get active contributors to the project.

Other communities are more loose where people just share a common ideal, but actually may contribute to different projects.

The BLUG is of the latter kind. People contribute to the BLUG more out of a desire to serve the community than out of a personal need. And many do not contribute to the BLUG directly.

The goal of the BLUG is to provide a venue for Free Software contributors and users to share and meet like-minded people. Most Free Software Communities are spread all over the world, whereas groups like the BLUG are very local.

To manage a local group, i believe persistence would be the most important aspect. If the group has meetings, they should be regular, so that new people can easily find out when and where the meetings happen. Then it takes a while for the word to spread, and attendance to grow. Keep holding the meetings, even if only two or three people join. Then keep advertising the group and invite new people. Eventually more will join and come back regularly.

8. Could you introduce us some active and outstanding members in BLUG?

It is difficult to praise the contributions of some people without unjustly leaving out others. Moreover i don't even know all the contributions of every member. Some members don't come to the meeting often but they are very active elsewhere in the Free Software and Open Source Community. This is one of the things that tends to be miss-understood about the Free Software community.

Some people worry if they release their work with a Free Software license, then others can take advantage of it without giving anything back. But we don't know if those users are not active somewhere else making contributions to our society in other ways.

This is after all what i believe is the purpose of our life. All Men have been created to carry forward an ever-advancing civilization. (人人生�是为了推动文明�断进步的)

9. GNU project founder Richard Stallman came to China in May, 2014, did you have a meet with him?

And what do you think about the Free Software campaign leaded by Richard Stallman since 1980th?

I have met richard stallman a few times before, but never had much direct interaction with him. This year he joined us for a BLUG Dinner. As for his campaign, i fully support the idea of Free Software. I believe that all knowledge should be shared, and everyone should have the opportunity to use all of the worlds knowledge in their work. To fulfill the purpose of life we should all use our work to contribute to society. And allowing others to use and modify our software is a great and very easy way of doing that.

10. The last one, could you reveal to us the BLUG's future development plan, and what kind of activity will be organized in the future days?

Future plans of the BLUG depend on its members. For now my goal is to get more active members, people who help to host events, give talks, or help contribute to our website. The BLUG website is very old and in dire need of an upgrade. but it is difficult to do if we want to keep all the data.

I am also trying to work on a community calendar where we can share all events

by Martin Baehr (mbaehr@community.gotpike.org) at January 29, 2015 08:13 AM

January 01, 2015

Martin Bähr

learning smalltalk with Google Code In

For years i have been meaning to learn smalltalk. my first exploration started about 10 years ago while teaching two children to make a game with squeak. Then i worked through a tutorial about making a simple game. Unfortunately it didn't capture my interest. So the my attempts to learn smalltalk were stalled as i searched for a project that i could do with it.

Why do i want to learn smalltalk? Because it is the first object-oriented language. Many of the OO concepts were invented in smalltalk. There is also the concept of working in an image that not only contains my code but also a full IDE which is used to update my code at runtime. Updating code at runtime is a concept that has been with me for more than 20 years now, ever since i started programming MUDs in LPC and writing modules for the Spinner/Roxen webserver in Pike. Pike allows recompiling classes at runtime. Any new instances will be made from the new class, while old instances remain as is. If the compilation fails, the class is not replaced and the old class continues to work. This way it is possible to make changes on a live server without restarting and disrupting ongoing requests. A decade later i discovered sTeam, the platform that also drives this very website. It takes this process even further: sTeam persists code and objects in a database. While in Roxen objects live as long as it takes to process a request, in sTeam objects are permanent, much like in a smalltalk image. sTeam then adds the capability to update live objects with new class implementations. The image concept of smalltalk is therefore already very familiar, and the major difference is smalltalk's GUI.

Recently a friend asked me what it would take to build a text search application for the Baha'i writings in chinese. There is one for english and other western languages, but not for chinese, and it does not run on mobile devices. It is also not Free Software, so i can't use it as a base to improve. But i didn't really want to take on a new project either so i just filed the idea for the time being.

One of my customers is managing access to several internal resources through htaccess and htpasswd. Because they have many interns who need to have access to some of these, and because they are now spread over multiple servers, it is becoming more and more cumbersome to manage them manually via these files. It also does not help that a salt module which we could use to help depends on apache helpers, which we can not install because apache conflicts with nginx which we are using. So i started exploring alternatives. One such alternative is a different way for nginx to verify access. It can make a request to an external service which then grants or rejects access depending on the resource and credentials. This could be implemented as a webservice with a webinterface to manage the users. I looked for some existing applications that would get me part of the way but i found nothing suitable.

Enter Google Code-In: FOSSASIA invited the BLUG to join them as mentors.

At first i put up tasks for the community-calendar project, but then i realized that this was an opportunity to explore new ideas. Figuring that teaching is the best way to learn i put up those project ideas as tasks for the students. I could ask students to learn and explore, and finally work on those projects. I would pick the technology and guide the students through a sequence of tasks to acquire the skills needed to implement the actual applications. This was my chance to get back into smalltalk. Since code-In targets middle and highschool students, it is quite unlikely that any of them already know smalltalk, or have even heared about it. so in a way this will introduce a few students to smalltalk. I picked pharo because i feel it is going in the right direction trying to improve itself and also adding things like commandline support.

The desktop application was straight-forward: find out how to embed text-documents in the image and make them searchable.

The web application took more exploration. I wanted to do it with a RESTful api and a javascript frontend. Again, the frontend was easy to define: create a user management interface. For the backend, the question was which webframework to use? AIDA/web has builtin user management and REST style url support by default. Seaside includes a REST module, but both are strong on generating html which i am not interested in. Then there is iliad, which appears more lightweight. Eventually i figured i could just let the students explore each, and i created a task for each tutorial that i could find:

(some of these i repeated because the student who did the them first time didn't pick up the follow-up tasks.)

Finally i discovered that Zinc, the HTTP server used by most frameworks is powerful enough to build a RESTful API without all the templating extras that the above frameworks provide. I also discovered teapot, a microframework that might be useful.

Once the students are familiar with the smalltalk environment, they can move on to the next steps:

Of course there are also tasks for the front-end

Related is also this task about a file editor, which i believe should make it easier to edit static assets like html and css pages from within the image:

by Martin Baehr (mbaehr@community.gotpike.org) at January 01, 2015 03:18 PM

December 31, 2014

Og Maciel (OgMaciel)

2014 in Book Covers

For my last post of 2014 I wanted to show, with pictures, the books I read and spent so much time with this year.

Back in January of 2014 I set out to read 30 books as part of my Reading Challenge. I wanted to focus on reading Brazilian authors early on as I felt that I really needed to learn more about Brazilian literature and this time, read books for fun and not because I was told to back when I was much younger.

books 1

I took advantage that UNC has a vast books collection with a very decent section on Brazilian authors and I was able to read some really awesome books by Erico Verissimo, Joaquim Manuel de Macedo, José de Alencar, Jorge Amado and Machado de Assis! I also fell in love with these authors and the fact that it took me a couple of decades to truly appreciate them doesn’t bother me at all, since I believe that it took me this long to reach the right maturity level… in other words, I was not ready for them yet until this year.

books 2

I also fell in love with John Steinbeck and Ray Bradbury, and I think that Grapes of Wrath and Dandelion Wine are two of the best books I have ever read!

Lastly, 2014 was also the year I started reading short stories (to sample different authors and see what they ‘have to offer’), and I highly recommend the short stories of Flannery O’Connor, John Cheever, Simon Rich, and Gabriel Garcí­a Márquez.

books 3

In 2015 I plan to continue reading more Brazilian authors and exploring different authors and genres! I may even re-read The Lord of the Rings again. :)

by Og Maciel (omaciel@ogmaciel.com) at December 31, 2014 01:26 PM

Martin Bähr

leaning smalltalk through Google Code In

For years i have been meaning to learn smalltalk. my first exploration started about 10 years ago while teaching two children to make a game with squeak. Then i worked through a tutorial about making a simple game. Unfortunately it didn't capture my interest. So the my attempts to learn smalltalk were stalled as i searched for a project that i could do with it.

Why do i want to learn smalltalk? Because it is the first object-oriented language. Many of the OO concepts were invented in smalltalk. There is also the concept of working in an image that not only contains my code but also a full IDE which is used to update my code at runtime. Updating code at runtime is a concept that has been with me for more than 20 years now, ever since i started programming MUDs in LPC and writing modules for the Spinner/Roxen webserver.

Recently a friend asked me what it would take to build a text search application for the Baha'i writings in chinese. There is one for english and other western languages, but not for chinese, and it does not run on mobile devices. It is also not Free Software, so i can't use it as a base to improve. But i didn't really want to take on a new project either so i just filed the idea for the time being.

One of my customers is managing access to several internal resources through htaccess and htpasswd. Because they have many interns who need to have access to some of these, and because they are now spread over multiple servers, it is becoming more and more cumbersome to manage them manually via these files. It also does not help that a salt module which we could use to help depends on apache helpers, which we can not install because apache conflicts with nginx which we are using. So i started exploring alternatives. One such alternative is a different way for nginx to verify access. It can make a request to an external service which then grants or rejects access depending on the resource and credentials. This could be implemented as a webservice with a webinterface to manage the users. I looked for some existing applications that would get me part of the way but i found nothing suitable.

Enter Google Code-In: FOSSASIA invited the BLUG to join them as mentors.

At first i put up tasks for the community-calendar project, but then i realized that this was an opportunity to explore new ideas. Figuring that teaching is the best way to learn i put up those project ideas as tasks for the students. I could ask students to learn and explore, and finally work on those projects. I would pick the technology and guide the students through a sequence of tasks to acquire the skills needed to implement the actual applications. This was my chance to get back into smalltalk. Since code-In targets middle and highschool students, it is quite unlikely that any of them already know smalltalk, or have even heared about it. so in a way this will introduce a few students to smalltalk. I picked pharo because i feel it is going in the right direction trying to improve itself and also adding things like commandline support.

The desktop application was straight-forward: find out how to embed text-documents in the image and make them searchable.

The web application took more exploration. I wanted to do it with a RESTful api and a javascript frontend. Again, the frontend was easy to define: create a user management interface. For the backend, the question was which webframework to use? AIDA/web has builtin user management and REST style url support by default. Seaside includes a REST module, but both are strong on generating html which i am not interested in. Then there is iliad, which appears more lightweight. Eventually i figured i could just let the students explore each, and i created a task for each tutorial that i could find:

(some of these i repeated because the student who did the them first time didn't pick up the follow-up tasks.)

Finally i discovered that Zinc, the HTTP server used by most frameworks is powerful enough to build a RESTful API without all the templating extras that the above frameworks provide. I also discovered teapot, a microframework that might be useful.

Once the students are familiar with the smalltalk environment, they can move on to the next steps:

Of course there are also tasks for the front-end

Related is also this task about a file editor, which i believe should make it easier to edit static assets like html and css pages from within the image:

by Martin Baehr (mbaehr@community.gotpike.org) at December 31, 2014 06:11 AM

Google Code In with FOSSASIA

FOSSASIA is a mentor organization at Google Code-In, and the Beijing GNU/Linux User Group has been invited to join them as mentors.

Two of us joined and created tasks for our projects.

At first i created tasks for our community-calendar project, but then i took the opportunity to get students to work on new projects that i had been hoping to do. For a long time i wanted to learn smalltalk, but i lacked good project ideas. This changed recently, as a friend asked me about a text search application, and one of my customers needed a better solution than htpasswd to manage users for nginx. I decided that both could be done in smalltalk.

So i created tasks for three new projects: A text search application to run on the desktop, and one on mobile, and a user-management web-application. For the desktop and the web-application i stipulated pharo smalltalk as the implementation platform. For good measure i also threw in my idealist for sup, a reimplementation of the frontend for this weblog in angular.js, a t-shirt design for the BLUG, packaging pike, and exploration of the meetup.com api. I also proposed a new structure of the files for the fossasia api, and helped mentor a few tasks relating to getting chinese communities added to the api.

  • community-calendar (7 tasks)
  • desktop text search application (2 tasks)
  • mobile text search application (2 tasks)
  • user-management web-application (12 tasks)
  • sup ideas (more than 50 ideas, create tasks as needed)
  • fossasia (1 task)
  • sTeam weblog ui (1 task)
  • blug t-shirt (1 task)
  • amber (2 tasks)
  • file-editor (1 task)
  • packaging pike (1 task)
  • meetup.com api (3 tasks)
new tasks will be added as needed, when i get another idea for improvements on one of the projects, or if i feel a task needs to be redone.

by Martin Baehr (mbaehr@community.gotpike.org) at December 31, 2014 03:53 AM

December 22, 2014

Tomas Forsman (TForsman / Zinden)

Updated Google-chrome

Maybe you are using google-chrome-stable in Foresight-c7. Then you might be using the contrib repository. To get the latest, you need to change the repository to grab it from foresighters instead.

 

I have updated the wiki to use foresighters repo instead, read more here.

by Tomas Forsman at December 22, 2014 09:01 PM

December 05, 2014

Og Maciel (OgMaciel)

Three Years and Counting!

Making a quick pit stop to mark this milestone in my professional career: today is my 3-year anniversary at Red Hat! Time has certainly flown by and I really cannot believe that it has been three years since I joined this company.

I know it is sort of cliche to say “I can not believe that it has been this long…” and so on and so forth, but it is so true. Back then I joined a relatively new project with very high ambitions, and the first few months had me swimming way out in the deepest part of the pool, trying to learn all ‘Red Hat-things’ and Clojure for the existing automation framework (now we are fully using Python).

I did a lot of swimming for sure, and through the next months, through many long days and weekends and hard work, tears and sweat (you know, your typical life for a Quality Engineer worth his/her salt), I succeeded in adding and wearing many types of hats, going from a Senior Quality Engineer, to a Supervisor of the team, to eventually becoming the Manager for a couple of teams, spread over 4 different countries. Am I bragging? Maaaybe a little bit :) but my point is really to highlight a major key factor that made this rapid ascension path possible: Red Hat’s work philosophy and culture of rewarding those who work hard and truly embrace the company! Sure, I worked really hard, but I have worked just as hard before in previous places and gotten nowhere really fast! Being recognized and rewarded for your hard work is something new to me, and I owe a great debt of gratitude to those who took the time to acknowledge my efforts and allowed me room to grow within this company!

The best part of being a Red Hatter for 3 years? Being surrounded by an enormous pool of talented, exciting people who not only enjoy what they do, but are always willing to teach you something new, and/or to drop what they’re working on to lend you a helping hand! There is not a single day that I don’t learn something new, and thankfully I don’t see any sign of this trend stopping :) Have I mentioned that I love my teammates too? What a great bunch of guys!!! Getting up early in the morning and walking to my home office (yeah, they let me work remotely too) day in, day out, is never a drag because I just know that there are new things to learn and new adventures and ‘achievements to unlock’ right around the corner.

I am Red Hat!!!

by Og Maciel (omaciel@ogmaciel.com) at December 05, 2014 10:49 AM

December 01, 2014

Tomas Forsman (TForsman / Zinden)

Dropbox available

Many users uses dropbox in their smartphones and want to be able to sync from the computer too. Been added in FLR repo. Read more about dropbox in our wiki site here.

Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

by Tomas Forsman at December 01, 2014 09:55 AM

November 28, 2014

Tomas Forsman (TForsman / Zinden)

New packages available

We have added few packages that might come in handy. They are added in the wiki.

Virtualbox – Always fun to play around with different things in a virtual system.

Android-tools – Needed to get fastboot and adb into your system.

Deja-dup – Probably want to make some backups.

Chromium – Open Source web browser.

 

 

by Tomas Forsman at November 28, 2014 12:19 PM

November 27, 2014

Tomas Forsman (TForsman / Zinden)

Enable Contrib and Epel7 repository in your system

If you have already installed or planning to install in the near future, you need to enable atleast 2 repository to get hold of more packages. Contrib and Epel repository.

It will give you more packages to be able to install from conary.

Read more at: Repository

Those will be enabled as default later, when installation notes and installation guides gets updated. So if you already installed conary with centos, then make sure to enable them.

 

by Tomas Forsman at November 27, 2014 08:01 PM

November 24, 2014

Tomas Forsman (TForsman / Zinden)

Make Foresight to ask continue with update? [Y/n]

From scratch, you won’t get the question when installing/updating/removing applications. That need to be enabled in your system. It will assume you want to do the action and do it. To make it ask first, you need to open a file and add a setting for it. To do it, follow this guide:

sudo gedit /etc/conaryrc

Add this line on a new row:

interactive True

Save the file, now it will ask like you see below.

 

[tforsman@tforsman ~]$ sudo conary install chromium
[sudo] password for tforsman:
The following updates will be performed:
Install chromium(:rpm)=39.0.2171.65_1.el7.centos-1-1
continue with update? [Y/n]

 

by Tomas Forsman at November 24, 2014 09:22 AM

November 23, 2014

Tomas Forsman (TForsman / Zinden)

Possible to download recipes – Foresighters repo

Iv’e been busy to find a way for users to see what’s been added to foresighters repo and able to download the recipe for the package. And now it’s possible.

First, you can see latest added recipes in the widget on the right side and browse all recipes here: https://www.foresightlinux.se/flr-recipes/

Don’t forget to look at Videos section, as Iv’e been planning to make some videos in the near future.

Wondered how Foresight Linux 7 looks like? Take a look at the video below.

by Tomas Forsman at November 23, 2014 09:29 PM

November 22, 2014

Foresight Linux Official News

Foresight – Based on Centos 7

Foresight Linux will be based on Centos 7. We will have a stable core and maintained for years.We will have whole centos main repository available and whole epel 7. We will have own repository for additional packages and packages that we need to tweak, for fitting into foresight and make it unique.

There is already a way to install it and use conary as package manager. read more at: http://wiki.foresightlinux.se/index.php?title=Installation

Remember, this is a early beta stage. 

We already have whole main repository from centos and fully updated. We also have epel repository, but not built with deep closed checks. That means if you install filezilla or similar, you might need to add missing packages on your own. Or it will tell you that you are missing libraries, that filezilla needs. No huge issue at the moment, it will be fixed in near future.

We will write more about foresight, when we are starting to get somewhere. If you need any help, easiest to get help is from irc or mailinglist.

by Tomas Forsman at November 22, 2014 08:52 PM

September 21, 2014

Og Maciel (OgMaciel)

Books

Woke up this morning and, as usual, sat down to read the Books section of The New York Times while drinking my coffee. This has become sort of a ‘tradition’ for me and because of it I have been able to learn about many interesting books, some of which I would not have found out on my own. I also ‘blame’ this activity to turning my nightstand into a mini-library on its own.

Currently I have the following books waiting for me:

Anyhow, while drinking my coffee this morning I realized just how much I enjoy reading and (what I like to call) catching up with all the books I either read when I was younger but took for granted or finally getting to those books that have been so patiently waiting for me to get to them. And now, whenever I’m not working or with my kids, you can bet your bottom dollar that you’ll find me somewhere outside (when the mosquitos are not buzzing about the yard) or cozily nestled with a book (or two) somewhere quiet around the house.

Book Queue

But to the point of this story, today I realized that, if I could go back in time (which reminds me, I should probably add “The Time Machine” to my list) to the days when I was looking to buy a house, I would have done two things differently:

  1. wire the entire house so that every room would have a couple of ethernet ports;
  2. chosen a house with a large-ish room and add wall-to-wall bookcases, like you see in those movies where a well-off person takes their guests into their private libraries for tea and biscuits;

I realize that I can’t change the past, and I also realize that perhaps it is a good thing that I took my book reading for granted during my high school and university years… I don’t think I would have enjoyed reading “Dandelion Wine” or “Mrs. Dalloway” as much back then as I when I finally did. I guess reading books is very much like the process of making good wines… with age and experience, the reader, not the book, develops the maturity and ability to properly savor a good story.

by Og Maciel (omaciel@ogmaciel.com) at September 21, 2014 12:07 PM

September 06, 2014

Foresight Linux Official News

How to install Foresight 3

We have written down how you can install Foresight 3 and get cinnamon or openbox as desktop. (more desktop env will come)

Read all about it here:

http://wiki.foresightlinux.se/index.php?title=Installation

About the issue: exceptions.ImportError: libpopt.so.0: cannot open shared object file: No such file or directory

That error is probably gone, but has the information there, just in case.

We know that conary updateall or conary update *** doesn’t work for the moment, because the groups are out of sync. But will be fixed later.

Leave a comment if you wonder anything.

Note: The old wiki is located here: http://www.foresightlinux.se/wiki-en

The new wiki will live here: http://wiki.foresightlinux.se

 

Remember, these wiki’s are unofficial ones. But worth mention.

by Tomas Forsman at September 06, 2014 06:46 AM

July 12, 2014

Og Maciel (OgMaciel)

The End For Pylyglot

Background

It was around 2005 when I started doing translations for Free and Open-Source Software. Back then I was warmly welcomed to the Ubuntu family and quickly learned all there was to know about using their Rosetta online tool to translate and/or review existing translations for the Brazilian Portuguese language. I spent so much time doing it, even during working hours, that eventually I sort of “made a name for myself” and made my way up to the upper layers of the Ubuntu Community echelon.

Then I “graduated” and started doing translations for the upstream projects, such as GNOME, Xfce, LXDE, and Openbox. I took on more responsabilities, learned to use Git and make commits for myself as well as for other contributors, and strived to unify all Brazilian Portuguese translations across as many different projects as possible. Many discussions were had, (literally) hundreds of hours were spent going though also hundreds of thoundands of translations for hundreds of different applications, none of it bringing me any monetary of financial advantage, but all done for the simple pleasure of knowing that I was helping make FOSS applications “speak” Brazilian Portuguese.

I certainly learned a lot though the experience of working on these many projects… some times I made mistakes, other times I “fought” alone to make sure that standards and procedures were complied with. All in all, looking back I only have one regret: not being nominated to become the leader for the Brazilian GNOME translation team.

Having handled 50% of the translations for one of the GNOME releases (the other 50% was handled by a good friend, Vladimir Melo while the leader did nothing to help) and spent much time making sure that the release would go out the door 100% translated, I really thought I’d be nominated to become the next leader. Not that I felt that I needed a ‘title’ to show off to other people, but in a way I wanted to feel that my peers acknowledged my hard work and commitment to the project.

Seeing other people, even people with no previous experience, being nominated by the current leader to replace him was a slap in the face. It really hurt me… but I made sure to be supportive and continue to work just as hard. I guess you could say that I lived and breathed translations, my passion not knowing any limits or knowing when to stop…

But stop I eventually did, several years ago, when I realized how hard it was to land a job that would allow me to support my family (back then I had 2 small kids) and continue to do the thing I cared the most. I confess that I even went through a series of job interviews for the translation role that Jono Bacon, Canonical’s former community manager, was trying to hire, but in the end things didn’t work out the way I wanted. I also flirted with another similar role at MeeGo but since they wanted me to move to the West Coast I decided not to pursue it (I also had fallen in love with my then current job).

Pylyglot

As a way to keep myself somewhat still involved with the translation communities and at the same time learn a bit more about the Django framework, I then created Pylyglot, “a web based glossary compedium for Free and Open Source Software translators heavily inspired on the Open-tran.eu web site… with the objective to ‘provide a concise, yet comprehensive compilation of a body of knowledge’ for translators derived from existing Free and Open Source Software translations.”

Pylyglot

I have been running this service on my own and paying for the cost of domain registration and database costs out of my own pocket for a while now, and I now find myself facing the dilema of renewing the domain registration and keep Pylyglot alive for another year… or retire it and end once and for all my relationship with FOSS translations.

Having spent the last couple of months thinking about it, I have now arrived at the conclusion that it is time to let this chapter of my life rest. Though the US$140/year that I won’t be spending won’t make me any richer, I don’t foresee myself either maintaining or spending any time improving the project. So this July 21st, 2014 Pylyglot will close its doors and cease to exist in its current form.

To those who knew about Pylyglot and used it and, hopefuly, found it to be useful, my sincere thanks for using it. To those who supported my idea and the project itself, whether by submitting code patches, building the web site or just giving me moral support, thank you!

by Og Maciel (omaciel@ogmaciel.com) at July 12, 2014 11:20 AM

June 30, 2014

Og Maciel (OgMaciel)

FauxFactory 0.3.0

Took some time from my vacation and released FauxFactory 0.3.0 to make it Python 3 compatible and to add a new generate_utf8 method (plus some nice tweaks and code clean up).

As always, the package is available on Pypi and can be installed via pip install fauxfactory.

If you have any constructive feedback, suggestions, or file a bug report or feature request, please use the Github page.

by Og Maciel (omaciel@ogmaciel.com) at June 30, 2014 07:00 PM

June 14, 2014

Tomas Forsman (TForsman / Zinden)

Tips – Huge discount on Linux steam games

When summer arrives, many games sites starts to sell out cheap games. We have found several games that works perfectly on Linux.

All games comes from  Green Man Gaming and needs steam.

Left 4 Dead Bundle

l4d

This pack contains:

  • Left 4 Dead
  • Left 4 Dead 2

£22.99 £5.74

 

 Half Life Complete

thumbnail-half-life-complete_boxart_tall-296x346

 

This pack contains:

  • Team Fortress Classic
  • Half-Life: Opposing Force
  • Half-Life
  • Half-Life: Blue Shift
  • Half-Life 2
  • Half-Life: Source
  • Half-Life 2: Deathmatch
  • Half-Life 2: Lost Coast
  • Half-Life 2: Episode One
  • Half-Life 2: Episode Two

£26.99 £6.74

 

Valve Complete Pack

(This pack contains few games that only works on win though)

thumbnail-valve-complete-pack_boxart_tall-296x346

This pack contains:

  • Counter-Strike
  • Team Fortress Classic
  • Day of Defeat
  • Deathmatch Classic
  • Half-Life: Opposing Force
  • Ricochet
  • Half-Life
  • Counter-Strike: Condition Zero
  • Half-Life: Blue Shift
  • Half-Life 2
  • Counter-Strike: Source
  • Half-Life: Source
  • Day of Defeat: Source
  • Half-Life 2: Deathmatch
  • Half-Life 2: Lost Coast
  • Half-Life 2: Episode One
  • Half-Life Deathmatch: Source
  • Left 4 Dead
  • Half-Life 2: Episode Two
  • Team Fortress 2
  • Portal
  • Left 4 Dead 2
  • Portal 2
  • Counter-Strike: Global Offensive

 £49.99 £16.99

voucher code

You can also make these deals even more extreme by abusing the below 15% voucher code:

ENCORE-IFDSAL-E15OFF
Code comes from GMG blog

 

by Tomas Forsman at June 14, 2014 03:08 PM

June 11, 2014

Tomas Forsman (TForsman / Zinden)

Hard to install and use bumblebee in Foresight?

bumblebee foresight

someone told me once that users thought it was hard to install and use bumblebee for Nvidia optimus cards in Foresight.

So we listened and took care of it.

Now you only need to run two commands in terminal and reboot, and you are done. No need to edit files or similar.

Read all about how you install it here: Bumblebee

There is probably no easier way to install it somewhere else either. Sure you can bake in so you run one command to make 2 things. But we believe that you can handle 2 commands  :)

by Tomas Forsman at June 11, 2014 04:26 PM

HOWTO – adblock midori browser

adblock midori

It’s time to learn how to add and activate Advertisement Blocker in midori browser. Open up Preferences from the menu midori Go to Extensions tab and choose Advertisement Blocker

Advertisement blockerAdvertisement blocker

Click on configure icon on the right side adblock midori   Activate EasyPrivacy and Easylist. Also possible to go those sites and add even more blocklists. But these two should be enough to block most of the common ads. Restart midori browser and you will see less ads from now on. Everytime you start midori, it will look for updates for the blocklist. Now you have a working adblock midori.

by Tomas Forsman at June 11, 2014 07:39 AM

June 08, 2014

Tomas Forsman (TForsman / Zinden)

Updating menus + Getting started

I’m currently fixing the menu and added Getting started. Hopefully it will become easier to navigate for newcomers and easier to find help when it’s needed.

As always, got some complaints or suggestions, feel free to leave a comment about it.

by Tomas Forsman at June 08, 2014 11:15 AM

June 07, 2014

Tomas Forsman (TForsman / Zinden)

Setup the perfect Foresight Linux

Perfect Foresight Linux

I will show you how to get the latest stuff in your Foresight Linux.

As for now, we can call it a perfect Foresight Linux.

We will erase these applications:

Evolution
Firefox (will be installed again)
OpenOffice
Gedit
Gcalctool
Transmission
Totem
Gnome-do (+ do-plugins)

We will install these applications:

Firefox
claws-mail
LibreOffice
medit
galculator
qbittorrent
vlc (+firefox plugin)

Why?

You will get newer applications and they have more features than the applications we are removing. The system will feel more updated and will be alot more updated. And you can call it for the perfect foresight linux.

A bit of explanation

Firefox > Firefox
Just changing to a newer firefox that’s not available in fl:2-devel label.

Evolution > Claws-mail
Evolution is useful, but many bugs have been spotted and fixed in newer versions. as we are still using gnome2, then we can change application instead.
Don’t forget to look at: HOWTO – Setup Claws-mail the best way

OpenOffice > LibreOffice
To get more recent version and use LibreOffice instead.

 Gedit > Medit
Medit is heavily customized and can either make it very thin or very powerful. Also remembers the documents you had opened before.

 Galctool > Galculator
Get a fresh calculator instead.

Transmission > Qbittorrent
A nicer layout and more updated torrent application.

 Totem > Vlc
Vlc can handle alot more and more popoular than totem. Also easier to find help if needed. Also we will use vlc as playback for some videos in firefox.

Let’s get started

We are asuming you are using gnome and fl:2-devel label. Make sure you are using latest updated system, or npapi-vlc won’t be available and you end up with a error that it doesn’t exist. So we start to make sure we are updated.

sudo conary updateall

To find out if you are using fl:2-qa or fl:2-devel label, open terminal and write:

conary q group-gnome-dist --labels

Now you can see if it has fl:2-qa or fl:2-devel in the line.

[tforsman@localhost ~]$ conary q group-gnome-dist --labels
group-gnome-dist=foresight.rpath.org@fl:2-devel/2.5.5+2014.06.02-0.1-2[~!gcc.core]
[tforsman@localhost ~]$

If you need to change to development label, read this.

Now we will edit your system-model file.

Let’s start with open the file,

sudo gedit /etc/conary/system-model

How the file should look like

I added a file here to see how it should look like: system-model

If you run 32bit system, change the name of firefox-64 to firefox-32 instead.

Save your system-model file and close it. You shouldn’t change anything above the comments line that starts with #

Now update your system.

sudo conary updateall

All done. Now you got a bit more updated system with common applications you probably use. So now you have a perfect foresight linux system :)

perfect foresight linux

 

Also some users doesn’t like banshee. You might want to do something with that one.

sudo conary erase banshee banshee-community-extensions

Then install something smaller.

sudo conary install guayadeque

Homepage: Guayadeque

Additional applications

Maybe you need some more applications to get going.

Wine – To install windows applications.
Dropbox – A cloud based storage.
Teamviewer – To get help from me? :)
Spotify – To play music from an application

To install all of those, open terminal and write:

sudo conary install wine wine-gecko dropbox teamviewer spotify

 

Conclusion

This is only based on what I think you should do with your Foresight system. So you can exclude some applications, if you want.

But I call my system perfect foresight linux system :)

If you feel like I’m missing something. Feel free to comment about it.

by Tomas Forsman at June 07, 2014 04:35 PM

Libreoffice 4.2.4 is available in Foresight Linux

Now you can easily install latest stable release of libreoffice 4.2.4 for foresight linux.

libreoffice foresight linuxlibreoffice foresight linux

Better document file formats

Round-trip interoperability with Microsoft OOXML, particularly for DOCX, as well as legacy RTF, has also improved considerably. A new import filter for Abiword documents has also been added.

A new engine for Calc

Massive parallel calculations of formula cells using GPU via OpenCL are now possible thanks to our new formular interpreter.

Read more and download at wiki.foresightlinux.se

by Tomas Forsman at June 07, 2014 08:30 AM

June 06, 2014

Tomas Forsman (TForsman / Zinden)

Last 90 days of security incapsula for foresightlinux.se

Incapsula is doing what it should do + more. I’m very pleased with incapsula and what it really do for foresightlinux.se

incapsula

Based on 90 days, we can clearly see that bad bots and comments are the worst problems out there. But it grabs them and keeping foresightlinux.se free from bad comments and hacking attempts.

You probably think it’s based on a few attempts only.

26 May – 2 June

If we only look under period May. 26 ,2014 – Jun. 2 ,2014

Screenshot-4

As you can see, it’s alot of attempts every day. And last week it was a drop of 67%. So we are talking about 70+ comment spammer that incapsula blocks.

If it wasn’t for incapsula, I probably would have given up running this site.

by Tomas Forsman at June 06, 2014 08:03 PM

Huge discount on Watch dogs – pc game uplay

Watch Dogs

Watch dogs

Now available for $39.84 for a uplay key.  -41% from original prize.

 

Product Description


All it takes is the swipe of a finger. We connect with friends. We buy the latest gadgets and gear. We find out what’s happening in the world. But with that same simple swipe, we cast an increasingly expansive shadow. With each connection, we leave a digital trail that tracks our every move and milestone, our every like and dislike. And it’s not just people. Today, all major cities are networked. Urban infrastructures are monitored and controlled by complex operating systems.

In Watch_Dogs, this system is called the Central Operating System (ctOS) – and it controls almost every piece of the city’s technology and holds key information on all of the city’s residents.

You play as Aiden Pearce, a brilliant hacker and former thug, whose criminal past led to a violent family tragedy. Now on the hunt for those who hurt your family, you’ll be able to monitor and hack all who surround you by manipulating everything connected to the city’s network. Access omnipresent security cameras, download personal information to locate a target, control traffic lights and public transportation to stop the enemy…and more.

Use the city of Chicago as your ultimate weapon and exact your own style of revenge.

Features


HACK THE CITY
Watch_Dogs takes place in a fully simulated living city where, using your smartphone, you have real-time control over the city’s infrastructure. Trap your enemy in a 30-car pileup by manipulating the traffic lights. Stop a train, and then board it to evade the authorities. Narrowly escape capture by quickly raising a drawbridge. Anything connected to the city’s ctOS can become your weapon.

STREET JUSTICE
Living in inner city Chicago where violence is best answered by violence, you have the skills to take the fight to the streets. Take down enemies by delivering devastating blows with your baton, or experience a shoot-out like never before with a physics simulation that rivals anything in the shooter category. Overall, you will have access to more than 30 traditional weapons.

HIGH OCTANE
With help from Ubisoft Reflections, the acclaimed studio behind the award-winning Driver series, Watch_Dogs offers a stable bursting with horsepower. Get behind the wheel of more than 65 vehicles, each with state-of-art physics and handling, and explore the massive city while completing missions.

EVERYTHING IS UNDER CONTROL
Disrupt, the all-new game engine dedicated to Watch_Dogs, uses advanced processing and graphics to deliver a stunning visual and an incredibly realistic experience. Disrupt gives you the power to affect the story, the city and the life of the population with your choices creating a ripple effect throughout the city.

DYNAMIC NAVIGATION
Watch_Dogs gives you the ability to not only use the city’s ctOS to your advantage, but the streets as well. In real-world Chicago, cut through one of the buildings or climb to the rooftops to catch your target.

 

 

System Requirements


Minimum

  • Supported OS: Windows Vista SP2 64bit, Windows 7 SP1 64bit, Windows 8 64bit
  • Processor: Intel Core 2 Quad Q8400 @ 2.66Ghz or AMD Phenom II X4 940 @ 3.0Ghz
  • RAM: 6 GB
  • Video Card: 1024 VRAM DirectX 11 with Shader Model 5.0 (see supported list)
  • Sound Card: DirectX 9 compatible Sound Card
  • This product supports 64-bit operating systems ONLY

 

Recommended

  • Processor: Core i7 3770 @ 3.5Ghz or AMD FX-8350 @ 4.0Ghz
  • RAM: 8 GB
  • Video Card: 2048 VRAM DirectX 11 with Shader Model 5.0 or higher (see supported list)
  • Sound Card: Surround Sound 5.1 capable sound card
  • Supported Video Cards at Time of Release: nVidia GeForce GTX460 or better, GT500, GT600, GT700 series, AMD Radeon HD5850 or better, HD6000, HD7000, R7 and R9 series, Intel® Iris™ Pro HD 5200

 

Conclusion

So this is a huge prize drop from original prize. A huge discount with another word for Watch dogs.

by Tomas Forsman at June 06, 2014 10:19 AM

June 03, 2014

Tomas Forsman (TForsman / Zinden)

HOWTO – Setup Claws-mail the best way

When you install claws-mail, you will only see text messages for all mails you have and will get. You need to load a plugin that will let you show mails as they were excpected.

This is how it looks like from beginning

Screenshot-FREE tee with Sniper Elite 3 | LEGO Batman 3 | WWE 2K15 & more

Open Configuration inside claws-mail, choose Plugins

Click on load and find fancy.so file.

Screenshot-Plugins

Then click on Close. Open Configuration again, click on Preferences, find Message View and click on Text options.

claws-mail

Make sure you choose “Select the HTML part of Multipart/alternative messages.

Then in same preferences, go to Plugins and highlight Fancy.

Screenshot-Preferences-1

There you can choose to “Enable loading of remote content and Display images.

Then click on Apply and Ok.

Now your mails will look normal again.

Screenshot-FREE tee with Sniper Elite 3 | LEGO Batman 3 | WWE 2K15 & more-1

This is the same mail as the first image in this post.

So now you got a great mail application and the mails look sane.

To install it in Foresight, open terminal and write:

sudo conary install claws-mail

I also recommend to load bogofilter and Notification from plugins. As bogofilter will help you against spam and notification will notify you with a popup window.

by Tomas Forsman at June 03, 2014 03:53 PM

Different ways to get help with Foresight

There are few ways to get help with Foresight and get help with various issues you might hit.

 

  • JIRA – Official bug tracker

The problem can be that some users never knows when a issue is reported, if you don’t visit the tracker or subscribe on new entries.

 

  • Irc – Realtime chatting

A great way to get help right away, but also depends on users are there and awake.

 

Still kinda new way to get help. But works real fine and also visible in more places and users can see that someone asked something. Easy to follow from RSS feed too.

 

Probably the easiest way to get help, as it probably sends a notification to users that have “notify on” inside that group.

 

  • Forum – Unofficial forum

Those who still want to use forum and write all kinds of stuff.

 

Mailinglist – E-mail to our mailinglists

Some users might want to send a mail instead. Harder to follow for users that doesn’t subscribe on it though.

 

We always recommend Jira in first place, but you can also post that link from Jira in ask foresight or G+ to get users to notify about it.

Common questions, we recommend ask foresight, G+ or Forum.

We usually test packages and talks about development in irc. Mostly in devel channel. We use mailinglist for keep on track on ongoing development.

Fastest way to get help, use G+ or ask foresight for non critical issues.

I might be wrong in some stuff here, but this is my personal feeling about ways to get help and how fast we notice about the problem/issue.

by Tomas Forsman at June 03, 2014 11:24 AM

May 29, 2014

Tomas Forsman (TForsman / Zinden)

Latest Firefox versions available

I’ve been building Firefox 29.0.1 and 30.0b8 in foresighters repo.

To install any of them,  open terminal and write:

32bit

sudo conary install firefox-32=foresighters.rpath.org@fl:2-devel

or for beta

sudo conary install firefox-beta-32=foresighters.rpath.org@fl:2-devel

64bit

sudo conary install firefox-64=foresighters.rpath.org@fl:2-devel

or for beta

sudo conary install firefox-beta-64=foresighters.rpath.org@fl:2-devel

by Tomas Forsman at May 29, 2014 02:59 PM

May 28, 2014

Og Maciel (OgMaciel)

Twenty Three Years

My parents were eagerly awaiting our arrival on an early Spring morning, and when our plane finally landed after the almost 10 1/2 hours flight and we made our way to the luggage claim area, the reunion was filled with a lot of hugging, laughter and a huge sigh of relief. For someone who had spent most of their entire lives in a small and sleepy town in the East coast of Brazil, waking up and finding yourself at JFK Airport was nothing short of a major event! I had never seen so many people of so many different races and speaking so many different dialects in my entire life, all 16 years of them! Everywhere I looked, everything was so different from what I was used to… even signs (so many of them) were in a different language! Eventually we grabbed our luggage and made our way to the parking lot looking for our car.

Before my sister and I left Brazil, I had the very hard task of giving away all of my possessions and only bringing the very bare minimal to start “a new life”. I was still going through my mid-teenager years, so I had to give away all of my favorite music LPs, books, childhood toys, and all the mementos I had collected through the years. This may not be such a big deal to you, but I have always been very attached to the things people give me, specially if they were given by someone I really cared. Seeing the things that represented so many people and moments of my life slowly drifting away filled me with a great feeling of personal loss. This feeling would stay with me for the next couple of years as I tried to adjust to my new adopted country. I was a stranger in a different land, where nobody knew me and I did not know anyone.

It’s been 23 years since this event took place, and I’m still here in the “Land of the Free”. Through the years I have survived High School, graduated with a Bachelors in Science from an university in Upstate New York, married (another immigrant from another country who you shall meet soon), moved a couple of times, and now find myself raising three young girls in North Carolina, the first Maciel generation of our families to be born outside our countries! Our similarities and differences, however, go beyond only the generation gap!

You see, contrary to a lot of the “stereotypical” immigrant families, we have completely immersed ourselves into the Americal way of life and culture, with a dash of our childhood cultures sprinkled here and there to add a little diversity to the mix. My wife and I stopped observing the holidays from our countries of origin a long time ago, specially those with no corresponding holidays here. We share a lot of the things that we learned growing up with our kids, but always in a nostalgic, almost didactic sort of way. We speak a mix of Brazilian Portuguese-Mexican Spanish-New Jersey English at home and try our best not to force our children to learn either language in particular. As it stands now, our kids’ primary language is English and even though I still make a habit of speaking in Brazilian Portuguese to them, their vocabulary consists of several words that they only say either in Spanish or Portuguese, like the word “daddy”. My wife’s vocabulary has also gone through a very interesting transformation, and she now speaks more Portuguese than Spanish when talking to our kids. Maybe it is because she was very young when she moved to New York in the early 1990s and never really got a lot of exposure to the Spanish language growing up in a different country.

All I can say is that I call North Carolina home, I vote during elections, I always get emotional when hearing the American Anthem, and together with my wife I raise the next generation of the Maciel family! Maybe they will take some of our culture and teach it to their own kids one day… maybe one day they may even learn to speak Portuguese or Spanish… maybe they won’t, and that is ok by me. We don’t even force them to follow the same religion our parents (and their parents) taught us growing up, prefering that they make that decision on their own, when and if they’re ever interested in doing so. We want them to be able to choose their own paths and make educated decisions about every aspect of their lives without any pressure or guilt.

I’m an American-Brazilian, my wife is American-Mexican and our kids are Americans with a touch of Brazilian and Mexican pride and culture. Together we form the New American Family!

by Og Maciel (omaciel@ogmaciel.com) at May 28, 2014 06:32 PM

May 21, 2014

Tomas Forsman (TForsman / Zinden)

How to launch .jar files using nautilus

This is not nautilus specific issue and will work in more tools (like other file manager, xdg-open in cli etc)

Create a run-jar.desktop in your ~/.local/share/applications/ directory with the following content:

[DesktopEntry]
Encoding=UTF-8
Type=Application

Exec=java -jar %f
Icon=java

Name=run-jar
Name[zh_CN]=run-jar
Comment=Run the jar file
Comment[zh_CN]=运行 JAR 文件

Now when you open the file’s property dialog and go to open with tab, you can see run-jar mentioned in ‘show more app’.

To make run-jar the default action, use nautilus ‘set default’ button or the type the following command in a terminal:

xdg-mime query default application/x-java-archive

The mime type can be found with the command:

xdg-mime query filetype my_shiny_app.jar

 

There is other ways to do it too, like creating a nautilus script. But this feels like a better way though.

by Tomas Forsman at May 21, 2014 07:52 PM

The difference between an ‘akmod’ and ‘kmod’

 

A ‘kmod’ (kernel driver module) is the pre-compiled, low-level software interface between the kernel and a driver. It gets loaded (into RAM) and merged into the running kernel. Linux kmods are specific to one and only one kernel, and will not work (nor even load) for any other kernel.

Advantages: Pre-Compiled – no need to fool around with compiling, compilers, *-devel packages and other associated overhead.

Disadvantages: updating and re-booting into a new kernel without updating the kmod(s) will result in loss of functionality and inherent delays in updating kmods after kernel updates.

akmods (similar to dkms) is a solution to the problem of some kernel modules depending on specific versions of a kernel. As you start your computer, the akmod system will check if there are any missing kmods and if so, rebuild a new kmod for you. Akmods have more overhead than regular kmod packages as they require a few development tools such as gcc and automake in order to be able to build new kmods locally. If you think you’d like to try akmods, simply replace kmod with akmod

With akmod you don’t have to worry about kernel updates as it recreates the driver for the new kernel on boot. With kmod you have to wait until a matching kmod is available before installing the kernel update.

Advantages: obvious.

Disadvantages: HDD space required for compilers and *-devel packages; unforseen/uncorrectable driver problems that cannot be resolved by the automatic tools.

by Tomas Forsman at May 21, 2014 07:03 PM

May 19, 2014

Tomas Forsman (TForsman / Zinden)

Anyone interested to get updates for FL:2-devel ?

Hello all Foresight users.

I wonder if anyone is interested to still get some updates to current fl:2-devel repo? If so, leave a tiny comment and will put in some time to update some regular packages in near future.

As we all waiting for F20, so we are not sure how many users are left with latest Foresight today…..

by Tomas Forsman at May 19, 2014 03:44 PM

May 09, 2014

Og Maciel (OgMaciel)

FauxFactory 0.2.1

paper bag release

Short on its heels, today I’m releasing FauxFactory 0.2.1 to fix a brown paper bag bug I encountered last night before going to bed.

Basically, the new “Lorem Ipsum” generator was not honoring the words parameter if you asked for a string longer than 70 characters. I have fixed the issue as well as added a new test to make sure that the generator does the right thing.

The package is available on Pypi (sadly the page is still not rendering correctly… suggestions welcome) and can be installed via pip install fauxfactory.

If you have any constructive feedback, suggestions, or file a bug report or feature request, please use the Github page.

Image: Cry by LLewleyn Williams a.k.a. SCUD, some rights reserved.

by Og Maciel (omaciel@ogmaciel.com) at May 09, 2014 05:00 PM

May 08, 2014

Og Maciel (OgMaciel)

FauxFactory 0.2.0

Today I’m releasing FauxFactory 0.2.0 with a new feature, a “Lorem Ipsum” generator. I confess that I did not look around for any existing implementation in python out there and just started writing code. My idea was to create a method that would:

Return a “Lorem Ipsum” string if I passed no arguments:

In [1]: from fauxfactory import FauxFactory

In [2]: FauxFactory.generate_iplum()
Out[2]: u'Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.'

Return a single paragraph with a fixed number of words if I passed a numeric words=x argument. If words was a large number, the text would ‘wrap around’ as many times as needed:

In [3]: FauxFactory.generate_iplum(words=8)
Out[3]: u'Lorem ipsum dolor sit amet, consectetur adipisicing elit.'

In [4]: FauxFactory.generate_iplum(words=80)
Out[4]: u'Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.'

If paragraphs=x was used, then a given number of paragraphs containing the entire “Lorem Ipsum” string is returned:

In [5]: FauxFactory.generate_iplum(paragraphs=1)
Out[5]: u'Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.'

In [6]: FauxFactory.generate_iplum(paragraphs=2)
Out[6]: u'Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.\nLorem ipsum
dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.'

Finally, if both words and paragraphs are used, then a given number of paragraphs with the specified number of words is returned, with the text ‘flowing’ and ‘wrapping around’ as needed:

In [7]: FauxFactory.generate_iplum(paragraphs=1, words=7)
Out[7]: u'Lorem ipsum dolor sit amet, consectetur adipisicing.'

In [8]: FauxFactory.generate_iplum(paragraphs=3, words=7)
Out[8]: u'Lorem ipsum dolor sit amet, consectetur adipisicing.\nElit,
sed do eiusmod tempor incididunt ut.\nLabore et dolore magna aliqua.
Ut enim.'

The package is available on Pypi (sadly the page is not rendering correctly… suggestions welcome) and can be installed via pip install fauxfactory.

If you have any constructive feedback, suggestions, or file a bug report or feature request, please use the Github page.

by Og Maciel (omaciel@ogmaciel.com) at May 08, 2014 07:12 PM

May 01, 2014

Og Maciel (OgMaciel)

Hiring is Tough!

So I’ve been trying to hire two python developers to join my automation team here at Red Hat since last November, 2013… and believe it or not, so far I’ve had absolutely zero success in finding good, strong, with real world experience candidates in North Carolina! I either find really smart people, who do have relevant backgrounds or could ‘hit the ground running’ but are way out of my current budget, or they lack real world experience and fall into more of an entry level position.

Basically I’m looking for someone who not only can ‘speak python’ fluently but also has experience doing automation and writing tests, as well as that ‘QE mindset’ that makes you want to automate all things and question all things about a product! Someone who knows how to file a good bug report and knows how to provide pertinent, relevant information to developers so that they can fix a bug. Finally, someone who believes in continuous integration and is excited about an opportunity to improve and augment our existing testing framework and work with a very exciting product, knowing that your contributions will affect literally thousands of customers world wide!

Bonus points if you know what Selenium is and have played with Paramiko and/or Requests!!!

Does that interest you? Feel that you got what I’m looking for? Then take a peek at these two positions and apply fast!

by Og Maciel (omaciel@ogmaciel.com) at May 01, 2014 06:05 PM

April 05, 2014

Tomas Forsman (TForsman / Zinden)

Upcoming Foresight Linux 3 information

It’s been quite from us with information about Foresight Linux 3 and what’s happening. Iv’e been collected some information to give you some insight what’s going on.

Fedora respin?

First of all, we are importing the whole fedora repository for Foresight Linux. That means you will be using conary as package manager instead of yum. We are using a tool called mirrorball.

You will get the features from conary instead from yum. It means you will get a rolling linux dist with able to rollback your system, if something goes wrong from a update. I won’t write everything that differs from conary and yum.

Conary is pretty strict when it comes to dependency resolution. We already found packaging issues of fedora20 just by importing and rebuilding it with conary.

Why?

System-model. A file that will keep track of what your system has installed or deleted. That will make it very easy to remember all kinds of packages you have installed during the years of running your Foresight Linux OS.

Of course there are other benefits to use conary instead of yum, but we leave that information for now.

We will also be able to change default applications, so it might not even look like a fedora from beginning.

What’s next?

We are currently creating groups from our repository, to be able to remake your Fedora os to Foresight Linux 3. We will also create other ways to get your system going.

If you want to read more about the import process and so on, please read our mailinglist for even more information.

Foresight Linux is not dead, just taking a break from social media and focus on upcoming Foresight Linux 3.

Our developer Mark wrote a blog post about this too. Read all about it here.

by Tomas Forsman at April 05, 2014 06:47 AM

April 01, 2014

Mark Trompell (Mark__T)

The bright future of Foresight Linux

Refining Foresight

Why

Foresight is what I use for almost a decade now (and that means almost the whole time since it was created by Ken Vandine).
It was originally based on rPath Linux and Foresight 2.0 still is.
So rpath doesn't exist anymore (it was aquired by SAS a while ago) and our existing base is getting outdated to a point where maintenance is getting a burden.

How

There were several options to solve this issue.
1) build foresight 3 from scratch
2) rebuild an existing distribution from source and use it as a base
3) base on an existing (vital) distribution

Which one

Actually we discussed all these, but given our manpower we chose to base our new shiny Foresight on Fedora as is, so that we can focus again on providing a stable modern rolling binary distribution.

The Plan and Progress

So what we're doing is importing all! of Fedora20 into our own repositories using a tool called mirrorball
It will create Sourcepackages for conary containing the matching rpms and srpms and build conary packages from them.
I'm not going into the details here. You can look some up on our foresight-devel mailinglist
The initial import and built is already done and we're now in the process of creating conary groups from the information of the comps.xml
when that is done it should be possible already to adopt a fresh install of fedora20 for use with conary packagemanager.
Next step will be doing regular updates and imports of the fedora20 repository.
Then we will build foresight on top of this.
Creating groups like we want them, adding artwork and extras. Import rpmfusion repositories until we have a foresight that matches our needs.
And of course finding a way to easily install foresight and convert existing fedora installations.

Why not...

...just use fedora?
Well first we all got to love foresight as a distribution and a community.
And we love conary. Conary is pretty strict when it comes to dependency resolution. We already found packaging issues of fedora20 just by importing and rebuilding it with conary. foresight is a rolling distribution and we hope that with the adopting of fedora we can make it possible to just roll from fedora20 to fedora21 painlessly. Conary has rollbacks since it's beginning and it's a great packagemanager that helped us maintaining a rolling binary distribution for almost 10 years now.


by Mark Trompell (noreply@blogger.com) at April 01, 2014 01:09 PM

January 14, 2014

Tomas Forsman (TForsman / Zinden)

Vim mode Irssi – Foresight Linux

Vim mode Irssi

An Irssi script that provides vim-like keybindings for the input line.

The script allows you to toggle between INSERTCOMMAND and EX modes.

Another useful feature is the mode indicator, best used in conjunction with uberprompt.

From the README, the following common keybindings are supported:

  • Command mode: Esc <Ctrl-C>
  • Cursor motion: h l 0 ^ $ <Space> <BS> f t F T
  • History motion: j k gg G gg
  • Cursor word motion: w b ge e W gE B E
  • Word objects: aw aW
  • Yank and paste: C<y p P>
  • Change and delete: c d
  • Delete at cursor: x X
  • Replace at cursor: r
  • Insert mode: i a I A
  • Switch case: ~
  • Repeat change: .
  • Repeat: ftFT: ; ,
  • Registers: "a-"z "" "0 "* "+ "_
  • Line-wise shortcuts: dd cc yy
  • Shortcuts: s S C D
  • Scroll the scrollback buffer: Ctrl-E Ctrl-D Ctrl-Y Ctrl-U Ctrl-F Ctrl-B
  • Switch to last active window: Ctrl-6/Ctrl-^
  • Switch split windows: <Ctrl-W j Ctrl-W k>
  • Undo/Redo: u Ctrl-R

Get the script at: https://github.com/shabble/irssi-scripts/tree/master/vim-mode

by Tomas Forsman at January 14, 2014 01:14 AM

January 13, 2014

Tomas Forsman (TForsman / Zinden)

gist.io: Writing for hackers

Just recently heard of gist.io – a pastebin services that converts markdown formatted files from https://gist.github.com into HTML.

Useful for those times you want to quickly share info that’s off-topic to your blog and to an audience of non manpage readers. Why markdown? It’s prettier than plain text and syntactically much simpler than html. GitHub users should like this.

Also: images

You can embed images in posts too, and they’ll respect the width of your browser.

by Tomas Forsman at January 13, 2014 02:07 AM

January 12, 2014

Tomas Forsman (TForsman / Zinden)

bash copy file – almost every file

bash copy file – almost every file

I found an interesting trick in bash today that may help a few other folks as well. Occasionally I find that need to copy almost every file in a directory, except for one or two. Usually I’d copy everything and then delete the stragglers I didn’t want from the destination directory. There had to be a better way, but as I said I’m lazy. Turns out I found the better way today.

bash copy filebash copy file
[tforsman@localhost ~]$ cp -r !(file_to_ignore)  /destination/

This little trick gets a bit better. Bash is slick enough to understand ‘or’ in this context. So I can also ignore multiple files if I need to

[tforsman@localhost ~]$ cp -r !(file_to_ignore| this-one-too)  /destination/

Hopefully someone else finds this helpful as well.

If you get a error like:

bash: !: event not found

Then  extglob is off. To turn it on:

[tforsman@localhost ~]$ shopt -s extglob

to enable extended pattern matching and then you can do a cp !(whatever) . and it will work. Good way to bash copy file.

ref: http://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html

by Tomas Forsman at January 12, 2014 09:30 PM

Foresight Linux Official News

Forum is unavailable – We are working on it

We know that forum is down at the moment, we are working to get it up and running again.

In meantime use ircmailinglist or unofficial forum to ask questions or to get in touch with us.

For common questions, use this mailinglist: http://lists.foresightlinux.org/mailman/listinfo/foresight-distro

by Tomas Forsman at January 12, 2014 10:35 AM

January 11, 2014

Tomas Forsman (TForsman / Zinden)

Nautilus script gnome2 – Foresight Linux

Nautilus script gnome2 is an executable shell script that is placed in a special scripts directory so that the Nautilus graphical shell can find it. This allows you to extend the functionality of the file browser to do just about anything.

Scripts are invoked by selecting a file or group of files, and right-clicking with the mouse, to bring up a context menu. One of the options in this menu is the ‘Scripts‘ submenu, which allows you to select a script to invoke on the selected files.

Note: The submenu ‘Scripts’ only appears once you have at least one script in the scripts directory.

For a script to be found by Nautilus it needs to be located in your scripts directory (~/.gnome2/nautilus-scripts). This folder is located in your home folder but is hidden by default. To view hidden files and folders in Nautilus press Ctrl+H, or use the terminal to navigate to the folder:

cd ~/.gnome2/nautilus-scripts

Note: Once you place a script in your scripts directory, it’s name will not necessarily appear in the scripts menu immediately. You might have to visit the scripts directory with Nautilus – which can be done using the last option in the scripts menu. Once the directory is visited, Nautilus will know about which scripts you have, and you will be able to use them.

For scripts to be usable they need to be marked as executable. To make a script executable either right-click a script and select‘Properties → Permissions → Allow executing file as program‘ or use the following command in the terminal:

chmod +x name-of-script

 

External links to Natuilus script gnome2

http://g-scripts.sourceforge.net/ - Information about Nautilus scripts
http://mundogeek.net/nautilus-scripts/ - Collection Nautilus scripts

 

by Tomas Forsman at January 11, 2014 09:54 AM

Blog stats 2012 and 2013

Stats 2012

http://jetpack.me/annual-report/32639566/2012/

This blog had 35,000 views in 2012

The busiest day of the year was December 19th with 427 views.

 

Stats 2013

http://jetpack.me/annual-report/32639566/2013/

This blog was viewed about 99,000 times in 2013.

The busiest day of the year was August 18th with 677 views.

 

Conclusion

I’m very happy that we managed to get so many users to visit our site. This stats doesn’t show visitors to wiki page though.

by Tomas Forsman at January 11, 2014 07:57 AM

January 10, 2014

Tomas Forsman (TForsman / Zinden)

Screw you mediawiki – crashed wiki

Our wiki has faced some difficulties in past few days.

So I added few hours to try to restore the wiki page. First few hours, it went down the drain. Had no idea how to restore it. So was almost time to dig a grave and bury the wiki page for ever.

The main issue?

It all started from the time I updated mediawiki to 1.22.0

First view, it was accessable but coulden’t login to my account. So started to investigate after awhile, and even contacted my storage provider where I updated mediawiki from. They confirmed that something is wrong with version 1.22.0

I even installed more test mediawiki to make sure even a clean install didn’t work. And that was the case, that didn’t work as it should.

 

Restore

We confirmed this version doesn’t work as it should. Time to restore a previous backup.

Ohh crap, almost a year old. Damn, loose a whole year of the work in wiki. This I can’t accept. I did manage to browse wiki without login, so I managed to get to the special page where I can Export and Import pages. YES!!

I managed to grab all pages from the wiki. Now I started to restore from a previous version. It worked fine, so I started to think it might work this time if I again try to update to latest version. Offcourse not, somehow I managed to delete the whole mysql database too. Now I might be screwed. But no, my backups had mysql backups too. So created database with same name and user, managed to restore again to older version.

Now I can access wiki, but it’s got old menus and fresh installation main page. Imported all pages I managed to grab from wiki before, and managed to restore main page. All other pages was updated too.

Woohoo, now it looks like it should, almost. We do miss some pictures that I will manually add within few days.

While i’m at it, I updated our wiki link to:

http://wiki.foresightlinux.se

But also made sure our older wiki links still works. But I recommend to change your bookmark to that link instead.

If you created an account past year, you might need to create a new one to be able to edit pages and create pages. I hope it isn’t a big issue for you to do that.

I also love you guys that have given my a hand on the wiki and helped me with filling few pages in it. Appriciated alot. You are the guys that makes me going and try as hard as I can to get things going. If I knew no one cared, I might just ignored wiki and let it be. But too many users love the wiki and use it alot and want the ability to search for solutions and so on.

Let’s make 2014 the best year for Foresight Linux

by Tomas Forsman at January 10, 2014 09:54 PM

January 02, 2014

Tomas Forsman (TForsman / Zinden)

Updated mediawiki

We have updated mediawiki to version 1.22.0

The whole changelog is located here: MediaWiki 1.22.0

Our community wiki is located here

The post Updated mediawiki appeared first on Foresight Linux.

by Tomas Forsman at January 02, 2014 02:11 PM

December 27, 2013

Tomas Forsman (TForsman / Zinden)

WordPress seo plugin – optimize blogging

WordPress seo plugin

Here is some WordPress seo plugin that might be interest for your blog.

Iv’e been tested many different seo plugins for wordpress and many of them are doing a great job. Some of them is better than others.

Here are a few that Iv’e been tested and recommend for you.

SEO Ultimate

gives you control over title tags, noindex, meta tags, Open Graph, slugs, canonical, autolinks, 404 errors, rich snippets. It’s free and you can download it from the page above. It doesn’t give you ideas how to improve your writing on the articles though.

wordpress seo pluginwordpress seo plugin

 

WordPress SEO by Yoast

While this WordPress SEO plugin goes the extra mile to take care of all the technical optimization, more on that below, it first and foremost helps you write better content. WordPress SEO forces you to choose a focus keyword when you’re writing your articles, and then makes sure you use that focus keyword everywhere.

One of the most popoular SEO plugin for wordpress. The one I recommend, if you don’t want to pay anything for getting your blog more popoular.

seo

 

All in One SEO Pack

The one I recommend, if you plan to use additional tools with it. Like with SeoPressor or Squirrly.

Optimizes your WordPress blog for Search Engines (Search Engine Optimization).

It doesn’t have same features as seo by yoast, but it works fine and specially the pro version.

All-in-One-SEO-Pack-Page-Settings

SEOPressor

Over-Optimization Check: Tells user if they a™re optimized or over-optimized (from the score)

On-Page SEO: Real-time evaluation and recommendations to improve site content for SEO.  LSI (Latent Semantic Indexing) Analysis: Relates keywords together by extracting information from texts and associating them using semantic algorithms. Automatic and Intelligent Internal and External Linking: All the keywords on your site will be better-linked in terms of relevance and site navigation.

seopressor-score

Too bad it calculates density key words all wrong !!!

 

This is my key phrase in ten words of text.

What’s the keyword density in this sentence? I think you can clearly see it’s 50%, right?

But by counting the phrase as just a single word, SEOPressor, SEO Beast and ClickBump SEO! will all tell you it’s only 10%!

 

Easy WP SEO Plugin

Didn’t add much time with this plugin, it’s starting to get old and reported bugs haven’t been resolved against the customers. So I do not recommend this one at the moment. WordPress will work fine without it.

Easy-WP-SEO

Squirrly

The most powerful and active developed seo tool out there today. It have almost everything you need to optimize your blog posts or pages in your wordpress.

The only seo plugin that really helps you to understand and help you to solve the issues you might have with your wordpress site. You also get Weekly SEO Audit by Squirrly

That will give you very useful hints what you need to do to get more traffic and so on for your site. Squirrly also recommend to be run with all in one seo pack or wordpress seo by yoast. Those two can be easily run with squirrly without any issues at all.

squirrly-seo-assistant

Conclusion

I recommend All in one seo with squirrly. Squirrly costs a small amount of money every month, but worth the whole penny if you want to increase traffic and optimize your blogging. For those who doesn’t want to pay money, you can optimize 3 posts every month for free. Also different ways to “earn” days to get a pro account for a limited time.

I used to like seopressor. After some deeper testing with it, it seems it doesn’t calculate some settings right. Mentioned it above.

Today I use squirrly with all in one seo. That covers probably everything.

The post WordPress seo plugin – optimize blogging appeared first on Foresight Linux.

by Tomas Forsman at December 27, 2013 10:41 PM

what: locale::facet::_S_create_c_locale name not valid

what: locale::facet::_S_create_c_locale name not valid

If you hit that issue with any application, then you might need to setup your locale for LC_ALL=

First, we need to know what you have right now, open terminal and write:

locale

You will see something like:

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

As you see, you are missing language for LC_ALL

You can try to write in terminal:

export LC_ALL="en_US.utf-8"

Try to run the application again, see if it’s starts. This solution didn’t work for me though. I used this command in terminal instead:

export LC_ALL=C

Now the application started for me. This issue appeared with gparted for me.

You can get the same issue with mongo, like:

Mongo error exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid, terminating

This solution will also fix that issue.

name not validname not valid

The post what: locale::facet::_S_create_c_locale name not valid appeared first on Foresight Linux.

by Tomas Forsman at December 27, 2013 09:38 PM

Best kids games for free – Linux

The best kids games for Linux, also free.

It’s time to let the kids take over the comptuter and let them play what they want. Here is a list of great kids games that my kids loves. The age is between 4-8 years old.

Will list them as how often they want to play it.

 

Minetest

Like Minecraft, but it’s free to install and play. An infinite-world block sandbox game and a game engine, inspired by InfiniMiner, Minecraft and the like. It doesn’t need java to run.

The best game for my 4,5 and 8 year old kids. they always wants to play it. Specially now when you can easily add new mods inside the game. (from version 0.4.7 + git)

minetest

kids games

Installation

Foresight

 

 

Gcompris

GCompris is a high quality educational software suite comprising of numerous activities for children aged 2 to 10.

Some of the activities are game orientated, but nonetheless still educational. Many different things can be done in the game, that’s why it’s so popular.

gcompris

Installation

Foresight

 

 

Ri-li

Ri-li is an arcade game licensed under the GPL (General Public License). You drive a toy wood engine in many levels and you must collect all the coaches to win.You can dowload it and play indefinitely. It’s Free.

This game is not for 4-6 years old, but older kids loves this game.

ri-li

Installation

Foresight

 

 

Tux Paint

Not a game though, but very popular for 4-7 years old kids. It combines an easy-to-use interface, fun sound effects, and an encouraging cartoon mascot who guides children as they use the program.

kids games

children games tux paint

 

Conclusion

There is alot more kids games out there, but these ones stands out and kids loves them.

The post Best kids games for free – Linux appeared first on Foresight Linux.

by Tomas Forsman at December 27, 2013 10:26 AM

December 18, 2013

Tomas Forsman (TForsman / Zinden)

DETECT_ARTICLE_LANGUAGE is not defined in config.php

Error: DETECT_ARTICLE_LANGUAGE is not defined in config.php

If you recently updated Tiny Tiny RSS server that you might be running, you need to add some configs in your config.php to get it going again.

Like updating from version 1.10 to 1.11

You get this issue:

Startup failed

Tiny Tiny RSS was unable to start properly. This usually means a misconfiguration or an incomplete upgrade. Please fix errors indicated by the following messages:

Required configuration file parameter DETECT_ARTICLE_LANGUAGE is not defined in config.php. You might need to copy it from config.php-dist.

First you need to download and open the file config.php-dist
That file is located where you have tiny tiny rss server installed.
In that file you find this:

  define(‘DETECT_ARTICLE_LANGUAGE’, true);
// Detect article language when updating feeds, presently this is only
// used for hyphenation. This may increase amount of CPU time used by
// update processes, disable if necessary (i.e. you are being billed
// for CPU time).

Copy the whole part and add it to your config.php file that is on your tiny tiny rss server. Save the file and everything is back to normal again.

Foresight ttrss users

We updated to latest tiny tiny rss version here at foresightlinux.se

tiny tiny rss

If you missed it before, I mentioned that foresight users are free to use our tiny tiny rss server. Read about that at the bottom of this post: Google reader alternatives – Running own server

As always, just take contact with me to get some missing plugins activated for you. Thanks all so far for the positive feedback for running tiny tiny rss server and those that are using it.

The post DETECT_ARTICLE_LANGUAGE is not defined in config.php appeared first on Foresight Linux.

by Tomas Forsman at December 18, 2013 09:06 PM

December 17, 2013

Tomas Forsman (TForsman / Zinden)

Find out what you have installed – Linux

Find out what you have installed in your Linux OS, specially in foresight linux.

Seems it’s hard to find out what applications  you have installed manually in various Linux distros out there. But not in Foresight, one of the easiest thing to find out and even wipe it out.

After a few months, you might start consider to erase some unused applications. But it’s hard when you have no idea what you have actually installed. That’s the main issue in many other distros.

Find out what you have installed

Start with open your terminal and open system-model file:

sudo gedit /etc/conary/system-model

# This file is an attempt to describe an existing system.
# It is intended to describe the “meaning” of the installed system.
#
# After this file is installed as /etc/conary/system-model any
# following conary update/install/erase operations will be done
# by modifying this file, then building a representation of the
# new desired state of your local system described in the modified
# file, and then updating your system to that new state.
#
# It is reasonable to edit this file with a text editor.
# Conary will preserve whole-line comments (like this one)
# when it edits this file, so you may use comments to describe
# the purpose of your modifications.
#
# After you edit this file, run the command
# conary sync
# This command will move your system to the state you have
# described by your edits to this file, or will tell you
# about errors you have introduced so that you can fix them.
#
# The “install” and “update” lines are relative only to things
# mentioned earlier in this model, not relative to what has been
# previously installed on your system.
#

Screenshot-medit - -etc-conary-system-model

As you can see, all modifications has been saved in that file. And you can easily remove a few lines to get them erased/installed again. There is no other Linux distribution that can do the same.

What do I actually do?

Just erase what you have installed and save the system-model file. Now just run:

sudo conary updateall

Now it will remove those applications and dependencies that might got installed with those applications you have removed.

Isn’t that easy?

Try to do the same in other Linux distributions, probably will give you a headache :)

The post Find out what you have installed – Linux appeared first on Foresight Linux.

by Tomas Forsman at December 17, 2013 09:29 AM

December 16, 2013

Tomas Forsman (TForsman / Zinden)

Christmas present from Foresight Linux – Free game

Exosyphen studios has given Foresight the opportunity to share the game Hacker Evolution Duality for free for all Foresight Linux users !!

Hacker Evolution Duality

Normally this game costs $19.95 but when running foresight, you get it for free.

 

How to get the game

Install requirements, if you are not using group-gnome-dist-devel, group-lxde-dist-devel or group-xfce-dist-devel

In Terminal, write this to see if it’s installed or not:

conary q conary-build

If you don’t have it, installed it with:

sudo conary install conary-build

Open terminal, write:

cvc cook hed=@gameway.rpath.org@fl:2 --download

It will download the game and the download will be located at: ~/home/conary/cache/hed/****/***

Unpack the compressed file to your ~/home folder, then go into that folder with terminal:

cd HackerEvolutionDuality

Make it executable (64bit):

chmod +x HackerEvolutionDuality-64bit

for 32bit:

chmod +x HackerEvolutionDuality-32bit

 

Play the game

Write in terminal:

./HackerEvolutionDuality-64bit

For 32bit:

./HackerEvolutionDuality-32bit

The post Christmas present from Foresight Linux – Free game appeared first on Foresight Linux.

by Tomas Forsman at December 16, 2013 10:56 AM

December 15, 2013

Tomas Forsman (TForsman / Zinden)

Bitcoin – How to get started and backup

Bitcoin

Is an innovative payment network and a new kind of money.

Bitcoin uses peer-to-peer technology to operate with no central authority or banks; managing transactions and the issuing of bitcoins is carried out collectively by the network. Bitcoin is open-source; its design is public, nobody owns or controls Bitcoin and everyone can take part. Through many of its unique properties, Bitcoin allows exciting uses that could not be covered by any previous payment system.

 

Multibit

It is an application that can be easily run in Linux and specially in Foresight Linux. It uses bitcoin to transfer and request money.

MultiBit bitcoin wallet

MultiBit bitcoin wallet

Installation: Foresight Linux

How to backup your wallet using private keys

You can export your private keys from a MultiBit wallet into a file (using the ‘Tools | Export private keys Export private keys’ option) and, as long as you do not manually create new receiving addresses, you can use the private key file as a backup for the wallet.

If something happened to your wallet and you want to recreate it do the following:

Create a new empty wallet.
Import your private keys file using the ‘Tools | Import private keys Import private keys’ option.
MultiBit then adds the private keys from the file into the new wallet and replays the blockchain to get the transactions.

The post Bitcoin – How to get started and backup appeared first on Foresight Linux.

by Tomas Forsman at December 15, 2013 10:25 PM

December 13, 2013

Tomas Forsman (TForsman / Zinden)

Changed theme foresightlinux.se

foresightlinux.se has changed theme template.

We have changed theme. Easier now to see recent posts and comments. Easier to maintain and loads a bit faster than the older theme.

 

by Tomas Forsman at December 13, 2013 10:37 PM

December 02, 2013

Foresight Linux Official News

Removed packages from official repository

abgx360, abgx360-gui, desmume and zsnes has been removed from official repository.
To install it, you need to install them from foresighters repo.

Read more at: http://www.foresightlinux.se/wiki-en/index.php?title=List_Of_Emulators

 

by Tomas Forsman at December 02, 2013 06:52 PM

December 01, 2013

Tomas Forsman (TForsman / Zinden)

Auto mount mtp devices – Android in Linux

Auto-mount  Android devices in Foresight.

Foresight will now auto mount mtp devices, like android telephones in nautilus.

android

Tested with Samsung galaxy S3, Samsung galaxy S3 4G, Sony Xperia Z. Works perfectly with those.

by Tomas Forsman at December 01, 2013 08:45 PM