Tuesday, September 29, 2015

Framework Kivy - Developing For Android With Python

Framework Kivy - Developing For Android With Python


QPython recently installed on my Android device and found it very interesting. Surge give some possibilities, open - free code - interesting, which I decided to research. In the middle of this research I found the Kivy framework that seemed very interesting.


 
Tips:
Building interfaces and applications with Python
http://www.youtube.com/watch?v=yPWj6k5MRak
App enforcement demonstration on Android
https://youtu.be/MOYxeLdQinA

http://kivy.org
https://www.facebook.com/kivyframework

In Kivy page you can find pdf and tutorials as well as functional code samples. If you installed Kivy Launcher on your tablet, for example, create a directory '/ mnt / sdcard' named 'Kivy' case no longer exists. And creates the directory of your application containing the .apk or python code (the main referenced with main.py more android.txt file with the specifications below for the base case.).


name = <name-of-App>
author = <author-name>
orientation = <portrait | landscape>

More information about Android in https://developer.android.com/index.html

:-) _ / | \ _ I hope you find it useful. Do not forget to follow the blog and sharing, helping me so to be able to keep it.

Thank you all. Lots of light, peace, health and wisdom to all.
Wandeson Ricardo

フレームワークKivy - Pythonを使ってAndroidのために開発

フレームワークKivy - Pythonを使ってAndroidのために開発


QPythonは最近、私のAndroidデバイスにインストールされている、それは非常に興味深い発見しました。無料のコード - - 面白い、私が研究することを決めた、オープンないくつかの可能性を与えるサージ。本研究の途中で、私は非常に面白そうだったKivyフレームワークを発見しました。


 
ヒント:

 
Pythonのでインタフェースとアプリケーションの構築http://www.youtube.com/watch?v=yPWj6k5MRak
そして、それは全くLinuxで。
Android上のアプリケーション施行デモhttps://youtu.be/MOYxeLdQinA
http://kivy.orghttps://www.facebook.com/kivyframework
Kivyのページでは、PDFファイルやチュートリアルだけでなく、機能的なコードサンプルを見つけることができます。あなたがタブレットにKivyランチャーをインストールした場合は、例えば、指定されたディレクトリ」を/ mnt / SDカードを「作成」Kivy」の場合は存在しません。そして、.apkまたはPythonのコードを含むアプリケーション(主にベースケースについては、以下の仕様にmain.pyよりandroid.txtファイルを参照。)のディレクトリが作成されます。

name=<nome-da-App>
author=<author-nome>
orientation=<portrait|landscape> 

 
https://developer.android.com/index.htmlでAndroidの詳しい情報について

:-) _ / | \ _私はあなたがそれが役に立つことを願って。ので、それを維持することができるように私を助けて、ブログや共有に従うことを忘れないでください。
すべてに感謝します。すべての光、平和、健康と知恵がたくさん。Wandeson Ricardo

Overleaf - Latex Online Create Full Texts with Mutual Collaborations

The old page called WriteLatex now Overleaf help you write your scientific jobs and papers with many resources and mutual collaborations.


Saturday, September 26, 2015

Framework Kivy - Desenvolvendo Para Android Com Python

#‎Dica‬ ‪#‎Framework‬ ‪#‎Kivy‬

Recentemente instalei o QPython em meu dispositivo Android e achei muito interessante. Surge dai algumas possibilidades, abertas - codigo livre - interessantes, as quais resolvi pesquisar.
No meio desta pesquisa encontrei o framework Kivy que me pareceu bem interessante.


 Dicas:

1. Desenvolvimento Multiplataforma usando Python e Kivy
http://pycursos.com/desenvolvimento-agil-de-apps-cross-pla…/

2. Construindo Interfaces e Aplicações com Python
http://www.youtube.com/watch?v=yPWj6k5MRak

E isso totalmente dentro do linux.

Demonstração de execução de App em Android
https://youtu.be/MOYxeLdQinA

http://kivy.org
https://www.facebook.com/kivyframework

Na página do Kivy é possível encontrar pdf e tutoriais além de exemplos funcionais de códigos. Se tiver instalado Kivy Launcher em seu tablet, por exemplo, crie um diretório em '/mnt/sdcard' com nome 'kivy'  caso já não exista. E nele crie o diretorio de sua aplicação contendo o .apk ou código python (o principal referenciado com main.py mais o arquivo android.txt com as especificações abaixo para o caso básico.).


name=<nome-da-App>
author=<author-nome>
orientation=<portrait|landscape> 

Mais detalhes sobre Android em https://developer.android.com/index.html

(Post que fiz na comunidade "Linux Pernambuco" no facebook hoje pela manhã.)

:-) _/|\_ Espero que seja útil. Não deixem de seguir o blog e compartilhar, ajudando-me assim a ter condições de mantê-lo.

Obrigado à todos. Muita luz, paz, saúde e sabedoria à todos.
Wandeson Ricardo

Thursday, September 17, 2015

Adoniran Barbosa - O trem das onze

Brazilian song famous and classic. A classic of popular brazilian music. The artist Adoniran Barbosa the music "O Trem das Onze"

How to Draw the Figure in Charcoal with Steve Huston - Free HD Tutorial





We've decided to make another full-length New Masters Academy video
lesson available here on our YouTube channel, completely free! This
video is 1080P Full HD and is Closed Captioned for your convenience.

If you appreciate what we're doing please share, like, subscribe.

In
this lesson world-renowned painter Steve Huston will demonstrate his
charcoal drawing technique on one of his most famous subjects: the
boxer. Steve will take you through each step of his process, starting
with a light lay in using a stump loaded with charcoal powder. After
that you’ll learn how to establish a clear core shadow in charcoal and
then create the shadow side of your drawing by scrubbing in a gradient
away from that core. Next you will develop the major forms using
halftone, core shadows, and a darker contour line in conté crayon to
contain the volumes. You will learn how to resolve all major forms of
the figure as well as scrub in the environment using dark tones.

You can find the rest of the video lesson series at New Masters Academy: http://www.newmastersacademy.org

Friday Night Workshop - October 3, 2014

Transmitido ao vivo em 3 de out de 2014
Join
Jeffrey Watts on October 3rd from 7-10pm Pacific Time for a 3 hour
workshop. Jeff is going to focus on a life drawing with a female model
this session. The examples you will see will be very similar to Figure
Drawing classes offered at the Online school.

During the workshop Jeff will share many of the lessons and techniques taught at the Watts Atelier and the Watts Online school.

This
workshop is part of an ongoing series. You can watch it live for free.
Members of the Online school can access the full archive on demand.

For more information, visit our website: www.wattsatelier.com.

Discussion of Sight Size vs Other Figure Drawing Methods


Tuesday, September 15, 2015

OpenGL For Begginners And Wiki Help







OpenGL Documentation and Khronos Page

https://www.khronos.org/opengl/
https://www.opengl.org/
https://www.opengl.org/documentation/



Nvidia OpenGL


 "Originally developed by Silicon Graphics in the early '90s, OpenGL® has become the most widely-used open graphics standard in the world.. NVIDIA supports OpenGL and a complete set of OpenGL extensions, designed to give you maximum performance on our GPUs. NVIDIA continues to support OpenGL as well through technical papers and our large set of examples on our NVIDIA Graphics SDK."
https://developer.nvidia.com/opengl 


OpenGL - Glut Library


"There are numerous Windowing system and interface libraries available for OpenGL as well as Scengraphs and High-level libraries build on top of OpenGL."
https://www.opengl.org/resources/libraries/

Compile OpenGL In Linux

$ gcc <program>.c -o <program> -lGL -lGLU -lglut
The argument "-l<library>" is used for specify the library to compiler send to linker program, 'ld'. <program>.c program to compile and '-o <program>' name to output program compiled.
(See help type  'man gcc' in Terminal.)

http://goanna.cs.rmit.edu.au/~gl/teaching/Interactive3D/2012/compiling.html

Monday, September 14, 2015

X Window System & X11 and Window Managers Linux

X Window System and  Window Managers



https://en.wikipedia.org/wiki/X_window_manager
Simple example of Window Manager https://github.com/mackstann/tinywm/blob/master/tinywm.c

How to Write a Window Manager in Python

http://sqizit.bartletts.id.au/2011/03/28/how-to-write-a-window-manager-in-python/



The Xlib Manual

http://tronche.com/gui/x/xlib/



X11

"The X.Org project provides an open source implementation of the X Window System."
https://en.wikipedia.org/wiki/X_Window_System



http://www.x.org/wiki/

http://freedesktop.org/





Simple example code in C to create a minimal Window Manager.
(exemplo simples de código para criação de um gerenciador de janela - window manager - no linux usando Xlib)
       

 /* TinyWM is written by Nick Welch  in 2005 & 2011.
 *
 * This software is in the public domain
 * and is provided AS IS, with NO WARRANTY. 
*/

#include <X11/Xlib.h>

#define MAX(a, b) ((a) > (b) ? (a) : (b))

int main(void)
{
    Display * dpy;
    XWindowAttributes attr;
    XButtonEvent start;
    XEvent ev;

    if(!(dpy = XOpenDisplay(0x0))) return 1;

    XGrabKey(dpy, XKeysymToKeycode(dpy, XStringToKeysym("F1")), Mod1Mask,
            DefaultRootWindow(dpy), True, GrabModeAsync, GrabModeAsync);
    XGrabButton(dpy, 1, Mod1Mask, DefaultRootWindow(dpy), True,
            ButtonPressMask|ButtonReleaseMask|PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None);
    XGrabButton(dpy, 3, Mod1Mask, DefaultRootWindow(dpy), True,
            ButtonPressMask|ButtonReleaseMask|PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None);

    start.subwindow = None;
    for(;;)
    {
        XNextEvent(dpy, &ev);
        if(ev.type == KeyPress && ev.xkey.subwindow != None)
            XRaiseWindow(dpy, ev.xkey.subwindow);
        else if(ev.type == ButtonPress && ev.xbutton.subwindow != None)
        {
            XGetWindowAttributes(dpy, ev.xbutton.subwindow, &attr);
            start = ev.xbutton;
        }
        else if(ev.type == MotionNotify && start.subwindow != None)
        {
            int xdiff = ev.xbutton.x_root - start.x_root;
            int ydiff = ev.xbutton.y_root - start.y_root;
            XMoveResizeWindow(dpy, start.subwindow,
                attr.x + (start.button==1 ? xdiff : 0),
                attr.y + (start.button==1 ? ydiff : 0),
                MAX(1, attr.width + (start.button==3 ? xdiff : 0)),
                MAX(1, attr.height + (start.button==3 ? ydiff : 0)));
        }
        else if(ev.type == ButtonRelease)
            start.subwindow = None;
    }
}