Pages

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.

Saturday, June 29, 2013

Linux without Avira Antivirus ...

As a result, by June 30, 2016, we will discontinue our Linux product sector and concentrate increasingly on developing Avira’s Windows and Mac OS system product portfolio only. Specifically, Avira AntiVir Professional Linux, Avira Server Security Linux and Avira Free Antivirus Linux will be discontinued and Avira Endpoint Security and Avira Business Security Suite will be offered without Linux support.

I don't tested this antivirus with my Fedora. The only antivirus I tested and seam working well it's f-prot.

You can read more about this on avira support webpage.

News about the new MintBox 2.

Linux Mint will come with the new MintBox 2.
I want to see more distro to do that for the users.
What do you think if will see in the future Fedora Box, Gentoo Box and Debian Box?
Linux it's a free OS, why don't have some low price for hardware to promote the distro?
The donate way is poor and many users don't see it.
So I think the MintBox is a great idea.
See this comparison of the MintBox basic, the MintBox pro and the MintBox 2.

MintBox Basic
MintBox Pro
MintBox 2
CPU
AMD T40
AMD T56
Intel i5
RAM
4GB
8GB
4GB
HDD
250GB
250GB
500GB
Ethernet
Gigabit
Gigabit
Dual Gigabit
Warranty
1 year
1 year
5 years
Geekbench score
1077*
1615**
7541
Price
$476*** + shipping, VAT, duty
$549 + shipping, VAT, duty
$599****

Read more about this device here

Monday, June 24, 2013

The font python module from pygame is missing .

Today I try to see some old python source code.

I got this error and seam many python users have same error.

NotImplementedError: font module not available
(ImportError: No module named font)

It's the last release of pygame.

When I try to config the pygame I got this

pygame-1.9.1release]$ python2.7 config.py
Using UNIX configuration...


Backup existing "Setup" file [Y/n]:

Hunting dependencies...
sh: smpeg-config: command not found
WARNING: "smpeg-config" failed!
SDL     : found 1.2.13
FONT    : not found
IMAGE   : found
MIXER   : not found
SMPEG   : not found
PNG     : found
JPEG    : found
SCRAP   : found
PORTMIDI: not found
PORTTIME: not found


Warning, some of the pygame dependencies were not found. Pygame can still
compile and install, but games that depend on those missing dependencies
will not run. Would you like to continue the configuration? [Y/n]:

Not only FONT is not here. I will try to fix this issue.

Friday, June 21, 2013

News: Feedly Cloud and the new Feedly .

After Google Reader gone, I try to find another reader.
The best choice was Feedly.
The good news it's come now with a new feature Feedly Cloud, see:
June 19th - The Feedly Cloud is now available to everyone.
Learn more and make sure you are migrated
Already some applications were built on Feedly cloud ...
Feedly cloud is now live, providing a fast and scalable infrastructure to seamlessly replace Google Reader. Feedly cloud also comes with a completely stand-alone Web version of feedly, that works with all major browsers. Finally, we are please to announce the first nine applications built on feedly cloud, that allow you to expand your feedly experience.

Monday, June 17, 2013

News: Google map fail under Firefox 17.0

The new google map it's now online. Everyone knows this news.
The Google development team told us:
The new Google Maps is redrawn for every search and click you make...
Really !?
I have the last update of Firefox, see :

So firefox is not good for google map.

You can read more news and tutorials here.

Tuesday, June 4, 2013

Komodo 8.0.2 the best IDE .

Today I working with Komodo 8.0.2 .

The Komodo Edit it’s a very powerful free editor.

So if yo want to see more then read this.

Monday, June 3, 2013

How to export your project from Netbeans like RPM package.

I make another tutorial about Netbeans and RPM package.

If you want to see more read this.

I hope this help some people.

Monday, May 20, 2013

Send money with Gmail .

Google Wallet is now integrated into Gmail.

You can securely send money to friends and family in the U.S. using your Gmail inbox.

This is just for U.S. only.

Google introduce something like that to Gmail to push Google Wallet to a larger audience.

You can pay with your credit and debit cards for a low fee of 2.9% per transaction and receiving money is always free.

Friday, May 17, 2013

Working with GLFW library under Fedora.

This is another tutorial about OpenGL.

The main goal it's : using GLFW library.

It's very simple to use this library.

If you want to read more the go to this website.

Thursday, May 16, 2013

Using nethogs like top command .

NetHogs is a net tool like command top but show us bandwidth by process.

Now supported:

Shows TCP download- and upload-speed per process

Supports both IPv4 and IPv6

Supports both Ethernet and PPP

You can read and get archive from here.

Unarchive then use make and make install.

# ls
Changelog       decpcap.h         INSTALL      process.h
connection.cpp  decpcap_test      Makefile     README
connection.h    decpcap_test.cpp  nethogs.8    README.decpcap.txt
conninode.cpp   DESIGN            nethogs.cpp  refresh.cpp
conninode.h     devices.cpp       nethogs.h    refresh.h
cui.cpp         devices.h         packet.cpp
cui.h           inode2prog.cpp    packet.h
decpcap.c       inode2prog.h      process.cpp
# make
# make install 
install -d -m 755 /usr/local/sbin
install -m 755 nethogs /usr/local/sbin
install -d -m 755 /usr/local/share/man/man8/
install -m 644 nethogs.8 /usr/local/share/man/man8/

After that you have this files:

# ls
Changelog       decpcap.c         inode2prog.h  packet.o
connection.cpp  decpcap.h         inode2prog.o  process.cpp
connection.h    decpcap.o         INSTALL       process.h
connection.o    decpcap_test      Makefile      process.o
conninode.cpp   decpcap_test.cpp  nethogs       README
conninode.h     DESIGN            nethogs.8     README.decpcap.txt
conninode.o     devices.cpp       nethogs.cpp   refresh.cpp
cui.cpp         devices.h         nethogs.h     refresh.h
cui.h           devices.o         packet.cpp    refresh.o
cui.o           inode2prog.cpp    packet.h

Can you use now binary nethogs to run it.

The binary # ./decpcap_test not working on my system.

I don't know what is the reason.

Wednesday, May 15, 2013

Linux cool gadget checking spelling and gramar .

This gadget that vibrates when you make mistakes in legibility, spelling and gramar uses Linux to run the programs on its chip.

The gadget recognizes all writing movements and lets you know with an unmistakable vibration when you’ve made a mistake.

You can pre-order and once the first pens are available then you will purchase your Lernstift gadget.

Read more here.