PHP7 with PDO_OCI and Oci8 using Docker

With docker we can run a container in several ways, we can download ready-made images that have the programs we want, as well as we can build our own images from a Dockerfile.

As I’m studying docker, I created an image that builds a PHP development environment with the Oracle database libraries installed.

I will be making available the image and the Dockerfile with the steps if you want to create your own image or modify it according to your needs.

I will not show how to install docker in you machine, there are a lot o materials about that on the internet, after install the docker, choose one option below.

Continue reading “PHP7 with PDO_OCI and Oci8 using Docker”

Fast Tip #1 – show the 100 biggest files [linux]

I will be starting a new serie, where I will give fast and simple tips, but sometimes that makes a whole difference.

The first tip is: How to show the 100 biggest files from a directory and its subdirectories.

$ du -a -h | sort -h -r | head -n 100 

If you want to know more about the command du, You can see its help page with the command:

$ du --help 

Lifeproject, the beginning!

I was in the search of a strategic planning software of life, financial control, organization (gtd), etc. In other words a software that manages the various areas of a person’s life.

Given the situation, I wouldn’t find something that fits perfectly in my needs, then I decided to create my first software that would use a free software license (open source), I am going to be releasing the software  under the GPLv2,  I also took advantage of the fact of being in the process of learning and fixing a new programming language as well as its main framework  (ruby on rails), for me you really learn something when you create some product with that that you have learnt, from my process of learnt  the rails I am creating the  LifeProject, that is my way of thank to the free software community , creating another free software, that way all of us win.

The software uses only open source resources, database PostgreSQL (I’ve not tested with other databases),  the template AdmiLTE, and as said before it is written upon the framework Ruby on Rails.

The software will manage various areas. But I will start the development from the area that I will call “Culture”. According to a quote that I like very much from Leandro Flores “A people without art and without culture is a people that does not exist”. In other words, culture is the basis of the human being, there you can take some things like art, movies, books or anything else you want to learn and then grow as a person.

The other areas that I intend to initially include besides culture are finances and goals (short, medium, long term and of life), within goals we can include projects, habits, etc.

Feel free to join on board, and contribute to the project on GitHub.

Installing Gogs(git), Nginx, MariaDB on Linux Ubuntu/Mint

The Microsoft bought the GitHub for US$ 7,5 Billions, and the  internet got wild, you can continue using the GitHub,  according to Microsoft, it will keep github as it is.

There are several alternatives as GitLab and the BitBucket, also there are options that are free source/open source that you can install there in your server. The GitLab has a Community version, it is written in Ruby and has a lot of resources, because it has many resources it demands at least a computer with the minimum of  4 GB of memory Ram, to old modests servers we have available the Gogs written in Golang, it is simple but it meets all our basic needs to whom uses the GitHub and it can be installed there in your old computer with 512 MB of memory Ram.

Gogs

Continue reading “Installing Gogs(git), Nginx, MariaDB on Linux Ubuntu/Mint”

Tips to learn a new language

Today we live in a time that the access to the information is very fast, it brings benefits to all areas of education, it also brings benefits to the learning of languages. The tips that I am going to give here, I bet that many people have already talked about, but sometimes we need to see something and see again so many times then that way we begin to give some attention to that information, and all of a sudden, we start  some project  in order to achieve that same goal.

I also write here those tips because in the future I want to remember the way I took in order to learn a new language. I don’t want to stop after learning English, that is the language I am studying now. I want to learn a lot more.

1-Take advantage of the era of free apps.

Duolingo

Take advantage of the apps web/mobile to expand your vocabulary, learn grammatical rules, and study with modern techniques such as Continue reading…

Installing PDO Oracle and OCI8 from PHP7 on Ubuntu/Mint (Oracle 11.2)

If you are facing problems or if you already had headache to install OCI8 and PDO_OCI modules for Oracle as me, here goes a step by step from what has worked for me. I hope that it helps you too.

The steps in this tutorial require that the user has root privileges.

If already have installed the Apache and the PHP, You only have to verify if your computer has all PHP packages listed on step 2.

Step 1 – Install Apache .

Open the terminal and type the follow commands:

sudo apt-get update
sudo apt-get install apache2

After install the Apache, try on the browser if Continue reading…

My history with the free software world

My history with the free software (as in freedom), has long date. I’ve begun to try to use when I was in the college, about 2006, I didn’t begin by encourage of my University, but I began because a friend of college encouraged me. I think that is a mistake courses in the area of technology don’t encourage to use free software, because free software gives more liberty and possibilities for who is learning to program. But coming back to my experience, I’ve tried to begin in one distribution for expert users in Linux, the Slackware, but as soon as I began, I gave up, due the difficult to found drivers to a modem of mine. I also had to compile the majority of the programs for this distribution. My Internet in that time was through a dial up modem 56k and I used only on the weekends because on the weekends was cheaper than Monday to Friday. After that I changed to Kurumin, a Brazilian distribution based on Kinnopix who already had Continue reading…

Why did I start a blog?

Why did i start a blog? Then this question shows up in my mind, and the main reasons that I see be these:

  • Practicing writing;
  • Practicing English (that I am learning);
  • Sharing knowledge in the areas that I love, mainly technology/software development/free software(open source);
  • Making new connections and friends;
  • And last, but not less important, sharing experiences of life.

And as every begin in something new, I imagine that my texts will not be the best, but I hope that I evolve and improve with the time.

I also see that, as a look through a time machine that can see past’s flashs, and then appreciate the evolution.