Pages

Thursday, July 25, 2013

Using cat command to see all source code from one folder.

You can see all content of your files using cat command.

I created one function named catt in my .bashrc file.

This is the function you can change to show any type of files not just javascript.

That allow you to working in same folder with many files and see the changes.

If you have another idea about how to see changes in all source of code then just send me one mail or comment.

function catt(){
    for i in *.js;
        do echo "__""$i""__";
        echo "--------------------------";
        cat "$i" -n -b;
        echo "--------------------------";
        done ;
}

And this is result output for all javascript from my node.js folder.

--------------------------
__serv.js__
--------------------------
     1 var sys = require("sys"),
     2 my_http = require("http");
     3 my_http.createServer(function(request,response){
     4  sys.puts("I got kicked");
     5  response.writeHeader(200, {"Content-Type": "text/plain"});
     6  response.write("Hello World");
     7  response.end();
     8 }).listen(8080);
     9 sys.puts("Server Running on 8080");
--------------------------
__test.js__
--------------------------
     1 var sys = require("sys");
     2 sys.puts("Hello World");
--------------------------

One problem can be the number of files parse by this function.

In this case you will not able to see all content of files. Will be to much for you.

But for settings files will work great.

Sunday, July 21, 2013

Far Out tracks people using GPS to learn their routine... and even more.

Now Microsoft and Google can predict where a person will be years from now using a new computer software called Far Out.

Researchers uses this information to accurately guess their future locations.

Using all data about their job, relationship or moves house and adapts its predictions to predict the long-term human mobilty.

You can read my personal opinion about this World Domination : here.

Friday, July 19, 2013

Use your linux to see the sun... online or java application.

I saw on youtube many videos about strange objects near sun.

Most of this is taken using this website.

If you want to install one application to see the sun then just read this tutorial.

Also you can read more about the sun and the way can be detected from internet.

Thursday, July 18, 2013

Giant Robot Storms ...

I thinking ... : This robot running some Linux OS ?

Google will come with new encryption.

Maybe is not a Fedora or Linux news but this can change your life.
According to this article written by news.cnet.com Google has begun experimenting with encrypting Google Drive files.
After many users and companies try to protect data with SSL and HTTPS now seam the encryption will be AES - Advanced Encryption Standard.
This not means that is still a possibility to get access data before the data is encrypted or during the user is actively connected.
This will calm down some users and companies.

Saturday, July 13, 2013

Selenium can deal with your cookies browser.

Today I will show how to deal with cookies and Firefox.

Selenium Python Client Driver is a Python language binding for Selenium Remote Control.

You can read more about this module here.

You can find some examples , but most of webpages working with cookies.So let's make one simple tutorial.

The next source code is very simple and most of the python users knows what means.


$ python 
Python 2.7.3 (default, Jan  2 2013, 16:53:07) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> from selenium.common.exceptions import NoSuchElementException
>>> from selenium.webdriver.common.keys import Keys
>>> browser = webdriver.Firefox()
>>> browser.get("http://facebook.com/")

If you want then you can read more about my tutorial here.

Also you can see more about my work with python here.

Sunday, June 30, 2013

Using .bashrc function to connect and debug your android application.

This is a simple way to use your tablet device to debug your android applications.

Go to root account and open the .bashrc file.

Type the next source code using your home folder account.

function tablet()
{
cd /home/free-tutorials/android-studio/sdk/platform-tools/
./adb kill-server
./adb server
./adb devices
}

Restart your terminal, connect your tablet device .

Now you can use this command : tablet to start connection with your tablet.

If you want to see more about programming android application under Fedora distro , just go to this website.