Mind Bending

Mining Bits and Knowledge

MindBending at Twitter Mind Bending at Google Plus Mind Bending - Facebook RSS Feed em Português Full RSS Feed... Magnun at GitHub E-mail

  • Início
  • Languages
    • English
    • Português
  • Projects
    • Beholder
    • Tiamat
    • USBManager
  • Series
    • Bending Gnome Keyring with Python
    • Python e Udisks
    • PyCon 2011 Highlights
    • Dobrando o Gnome Keyring Com o Python
    • Python and Udisks
    • Destaques da PyCon 2011
    • Instalando e Configurando o Arch Linux
  • About Me

PyCon 2011 Highlights: Python IDEs Panel

25/03/11

Escrito por Magnun em Languages

12051 comentáriohttp%3A%2F%2Fwww.mindbending.org%2Fpycon-2011-highlights-python-ides-panel%2FPyCon+2011+Highlights%3A+Python+IDEs+Panel2011-03-25+22%3A04%3A13Magnunhttp%3A%2F%2Fblogs.codecommunity.org%2Fmindbending%2F%3Fp%3D1205

This is part 1 of 7 in the series PyCon 2011 Highlights
pt-br Este post também está disponível em Português

PyCon 2011 occurred on March 9th thought 17th in Atlanta, Georgia, and covered many interesting topics. The nice thing about PyCon is that all the lectures are available in this channel.

There were some really nice lectures that I’d like to highlight. The first one is about Python IDEs and the lecture title was “Python IDEs Panel”.

For many developers, IDEs are an essential tool-just as essential as source code control. The growth of Python in recent years has led to a number of projects and vendors developing Python-specific or Python-supporting IDEs. (…) This panel includes representatives from a number of Python-specific or Python-supporting IDE vendors, showing the ways that IDEs can speed up development on any platform.

Mais >

emacs, ide, komodo edit, komodo ide, pycharm, pycon, Python, video, visual studio, Wing IDE

PyCon 2011 Highlights: Hidden Treasures In The Standard Library

12/04/11

Escrito por Magnun em Languages

12411 comentáriohttp%3A%2F%2Fwww.mindbending.org%2Fpycon-2011-highlights-hidden-treasures-in-the-standard-library%2FPyCon+2011+Highlights%3A+Hidden+Treasures+In+The+Standard+Library2011-04-12+19%3A07%3A45Magnunhttp%3A%2F%2Fblogs.codecommunity.org%2Fmindbending%2F%3Fp%3D1241

This is part 2 of 7 in the series PyCon 2011 Highlights
pt-br Este post também está disponível em Português

This is another great presentation given by Doug Hellmann, from the blog series PyMOTW (Python Module Of The Week). This presentation is a quick overview from the blog series, which is a tour of the Python standard library through short examples.

Modules covered in this presentation:

  • csv (handling values);
  • sqlite3 (database communication);
  • hmac (signatures);
  • json (Object serializing);
  • sys.excepthook (Error Handling);
  • logging (Logging errors nicely).

The blog series has become a book, named “The Python Standar Library by Example”, pre-order it here. Also, the PyMOTW is available for download here with all the source code examples.

csv, exceptions, hmac json, logging, modules, pycon 2011, Python, sqlite3, standard library, sys

PyCon 2011 Highlights: How To write Obfuscated Python

04/07/11

Escrito por Magnun em Mind Bending in English

1507Nenhum comentáriohttp%3A%2F%2Fwww.mindbending.org%2Fpycon-2011-highlights-how-to-write-obfuscated-python-2%2FPyCon+2011+Highlights%3A+How+To+write+Obfuscated+Python2011-07-04+22%3A04%3A26Magnunhttp%3A%2F%2Fblogs.codecommunity.org%2Fmindbending%2F%3Fp%3D1507

This is part 3 of 7 in the series PyCon 2011 Highlights
pt-br Este post também está disponível em Português

After a long hiatus, I recapture to this series of posts that I was enjoying to write. To this return more exciting I’ve chosen one of the most incredible and difficult presentations from PyCon 2011 Atlanta: How To Write Obfuscated Python. This lecture was given by Johnny Healey

Obfuscated code is the act to write a simple code but in an obscure way, that is, making it difficult to understand. In many languages this is a relatively simple task, but the clear and concise Python syntax turns this easy task into something more challenging. When writing obfuscated code, not necessarily the code will be “ugly” but rather difficult to read. For those reasons this is an extremely fun and challenging lecture. So, I’ll make the same warning of the speaker:

 

Don't Panic

 

Python’s clean syntax can make traditional approaches to writing obfuscated code much more challenging. Fortunately, Python provides many useful abstractions that can be misused to write code that is unreadable or even deliberately misleading. This talk will provide a survey of silly python tricks that explore the boundaries of the language.

Topics:

  • Redefining builtins;
  • Rarely used syntax;
  • Comparison edge cases;
  • Things you probably shouldn’t do with decorators;
  • Fun with lambdas;
  • Bytecode manipulation;
  • Code Objects;

pycon2011, Python

PyCon2011 Highlights: Everything You Wanted to Know About Pickling

19/07/11

Escrito por Magnun em Mind Bending in English

1567Nenhum comentáriohttp%3A%2F%2Fwww.mindbending.org%2Fpycon2011-highlights-everything-you-wanted-to-know-about-pickling%2FPyCon2011+Highlights%3A+Everything+You+Wanted+to+Know+About+Pickling2011-07-19+17%3A48%3A50Magnunhttp%3A%2F%2Fblogs.codecommunity.org%2Fmindbending%2F%3Fp%3D1567

This is part 4 of 7 in the series PyCon 2011 Highlights
pt-br Este post também está disponível em Português

I was wondering how to describe this great presentation, by Richard T. Saunders. Just found this sentence: This is one of those lectures that open your mind.

One of the most mysterious thing in Python is the pickle module. He is able to serialize almost any object in Python and, symmetrically, deserialize it. Its usage looks just like magic, because it is simple and intuitive. In this talk, after a brief introduction about the pickle, its alternatives and comparisons, Mr. Saunders explains in detail the inner pieces of the pickle module.

Many will say it is not necessary to know (or it’s a waste of time to study) how pickle works, we just need to know how to use it. I believe that having this kind of knowledge is an ace in the hole! One day, when you’re dealing with a real problem, your subconscious will nudge you and say: “You can solve this problem using the same logic used in the pickle module.”

Richard T. Saunders uses Python in his 10 years working in Rincon Research Corporations and is also a professor of Software Engineering at the Arizona University. In his work he “reversed engineered” the pickle module and as a “consequence” of this, he created the PicklingTools library, an open source library to communicate Python with C++.

In this speech Mr. Saunders covers many points as:

  • Origin of the pickle name;
  • What is pickle, pickling and unpickling;
  • What is serialization;
  • Pickling and unpickling examples, used to save a game state;
  • Pickle alternatives (Marshall, XML, JSON, and Google protocol buffers);
  • Why use pickle (advantages and disadvantages);
  • Comparisons between the pickle alternatives;
  • Pickle versions (0, 1, 2 and 3) and a brief history of each;
  • Comparisons between pickle versions;
  • Machine code analysis (opcodes, value stack and the mark stack) used by pickle;

The slides from talk is available for download here in PDF .

At the end of this lecture I was surely tempted to write a “simplified” pickle module, just to be sure that I can.

pickle, pycon2011, Python

PyCon2011 Highlights: The Data Structures of Python

10/08/11

Escrito por Magnun em Mind Bending in English

1706Nenhum comentáriohttp%3A%2F%2Fwww.mindbending.org%2Fpycon2011-highlights-the-data-structures-of-python%2FPyCon2011+Highlights%3A+The+Data+Structures+of+Python2011-08-10+11%3A00%3A20Magnunhttp%3A%2F%2Fblogs.codecommunity.org%2Fmindbending%2F%3Fp%3D1706

This is part 5 of 7 in the series PyCon 2011 Highlights

I’ll start this article the same way that Alex Gaynor (the speaker) began. “Who here remembers their CS data structure class?”. Then he adds: “Who cares?”.

For those who learned to program in high level languages, data structures isn’t anything to worry. But for older people like me who started programming in C, data structures is extremely difficult, but valuable. What happens is that the high-level languages already have implemented various data structures, making its use simple and painless.

Python is no exception to this rule, but I do not agree with the idea that this knowledge is disposable. The speaker quoted a phrase from Tim Peters, one of the greatest Python gurus: “We read Knuth so you do not have to.”. Knuth is a renowned professor at Stanford University and author of The Art of Computer Programming , a reference in the field of computer science.

Python by default implements various types of data structures lists, tuples, dictionaries, sets, frozensets arrays, bytearrays and other less used or more recent (like OrderedDict). This talk attempts to show how and where to use some of these types (lists, tuples, sets and frozensets):

 
Mais >

benchmark, collections, data structures, dictionaries, forzensets, lists, Python, sets, speech, tuples

PyCon2011 Highlights – Why Is Python Slow And How PyPy Can Help

26/10/11

Escrito por Magnun em Mind Bending in English

20681 comentáriohttp%3A%2F%2Fwww.mindbending.org%2Fpycon2011-highlights-why-is-python-slow-and-how-pypy-can-help%2FPyCon2011+Highlights+-+Why+Is+Python+Slow+And+How+PyPy+Can+Help2011-10-26+11%3A31%3A39Magnunhttp%3A%2F%2Fblogs.codecommunity.org%2Fmindbending%2F%3Fp%3D2068

This is part 6 of 7 in the series PyCon 2011 Highlights

In continuation to the series of articles PyCon2011 Highlights, today I won’t just suggest but insist with you to watch this great talk by Maciej Fijałkowski and Alex Gaynor, about the Python’s Virtual Machine called PyPy. I always wondered how PyPy (which is written in Python) can be faster than CPython (which is written in C). This talk not only clarified this question of mine but made me very curious about the subject, which resulted in a little research to better understand PyPy and JIT.

 


 

For those who were lost during the lecture, here’s a brief explanation on how PyPy and JIT work.
Mais >

bytecode, compiled, compiler, cpython, interpreted, interpreter, JIT, language, lecture, machine, performance, pycon2011, pypy, Python, video, virtual

PyCon2011 Highlights: Python and CouchDB in Practice

26/12/11

Escrito por Magnun em Mind Bending in English

2312Nenhum comentáriohttp%3A%2F%2Fwww.mindbending.org%2Fpycon-2011-highlights-python-and-couchdb-in-practice%2FPyCon2011+Highlights%3A+Python+and+CouchDB+in+Practice2011-12-26+13%3A35%3A27Magnunhttp%3A%2F%2Fwww.mindbending.org%2F%3Fp%3D2312

This is part 7 of 7 in the series PyCon 2011 Highlights

This is another Atlanta PyCon2011 lecture that I’d like to highlight. This one was given by Luke Gotszling and talks about Python and CouchDB, a NoSQL database document oriented.

 


 
 
Now some additional information…

Mais >

book, CouchDB, ebook, english, lecture, NoSQL, pycon2011, Python
  • Pesquisar

    • Arquivos
    • Marcadores
    • Categorias
    • Arch Linux (21)
    • Games (4)
    • Git (4)
    • Gnome (22)
    • Languages (147)
      • Mind Bending em Português (90)
      • Mind Bending in English (58)
    • Linux (3)
    • Music (3)
    • Música (5)
    • No Category (2)
    • Project logs (24)
      • Tiamat (13)
      • USBManager (10)
    • Python (55)
    • Ubuntu (7)
    • VIM (6)
    • Xfce (1)
    arch bending blog code dbus debian design devicekit empathy games git gnome gnome3 gnome 3 gnome 3.0 gnome shell instalação keyring linux lock música news pacman palestra passwords pycon2011 pygi pygtk Python seahorse security ssh store Tiamat tutorial twitter ubuntu udisks usbmanager username vídeos video VIM wrapper yaourt
    • April 2012 (4)
    • March 2012 (2)
    • February 2012 (1)
    • January 2012 (6)
    • December 2011 (9)
    • November 2011 (5)
    • October 2011 (9)
    • September 2011 (13)
    • August 2011 (12)
    • July 2011 (15)
    • June 2011 (8)
    • May 2011 (7)
    • April 2011 (8)
    • March 2011 (26)
    • February 2011 (3)
    • January 2011 (3)
    • December 2010 (4)
    • October 2010 (2)
    • September 2010 (1)
    • June 2010 (1)
    • May 2010 (2)
    • March 2010 (6)
  • Registro do usuário






    • Cadastre-se
    • Perdeu a senha?
  • Series

    • Bending Gnome Keyring with Python (7)
    • Destaques da PyCon 2011 (7)
    • Dobrando o Gnome Keyring Com o Python (7)
    • Git Is For All (1)
    • Git para Todos (1)
    • Instalando e Configurando o Arch Linux (4)
    • PyCon 2011 Highlights (7)
    • Python and Udisks (5)
    • Python e Udisks (5)
  • Lista de Links

    • Planeta Arch Linux Brasil
    • Planeta GNU/Linux Brasil
    • Renda Bordô
  • Parceiros

    Berlotto Blog Cstropz.net
    SejaLivre.org Ad Square
  • Ad Square Ad Square
  • Tags

    arch bending blog code dbus debian design devicekit empathy games git gnome gnome3 gnome 3 gnome 3.0 gnome shell instalação keyring linux lock música news pacman palestra passwords pycon2011 pygi pygtk Python seahorse security ssh store Tiamat tutorial twitter ubuntu udisks usbmanager username vídeos video VIM wrapper yaourt
  • Tweets

    Mind Bending
    Mind Bending
    234 seguidores
    • E hoje, um #FF especial! Visitem o blog de culinária da minha esposa @RendaBordo :Dhá 1 dia atrás
    • Muito bom! vou testar com certeza... RT @tech4noobs: RT @espacoliberdade: New blog post: Ajudem o Audience Media Player http://t.co/vdQk2q9hhá 1 dia atrás
    • Bem vindos novos followers!!! @flipit3 e @fabioegashá 1 dia atrás
    • @RendaBordo vamos sim. A gente já praticamente bate ponto na expotché :Dhá 1 dia atrás
    • Configuring #EMACS as a #Python #IDE: http://t.co/IkXRGLbJ #Linuxhá 2 dias atrás
    Siga-me no Twitter!
    • I am GNOME
    • GNU Meditate
    • Mind Bending
Tema Mystique por digitalnature | Movido a WordPress
RSS Feeds XHTML 1.1 Topo
RP

Mind Bending / Log in Stop SOPA