tag:blogger.com,1999:blog-19484862746977772672024-02-07T07:01:12.398-08:00Riding PythonI mean, the languageAnonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-1948486274697777267.post-87618204222986512182013-07-17T13:54:00.002-07:002013-07-17T13:54:59.440-07:00Chemlab 0.3 Release. Fast rendering of molecules and amazing visual effects.<h2>
Post Processing Effects</h2>
The new chemlab release brings some top-notch features in the graphics department with the new post processing effects. Thanks to these effect you can create amazing representations, all at real time speeds. In this way you can visualize huge systems retaining performances and the possibility to do animations.<br />
<br />
You can improve your perception of depth and surface recesses by darkening occluded areas thanks to the <a href="http://en.wikipedia.org/wiki/Screen_space_ambient_occlusion">screen-space ambient occlusion</a> effect:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwLHBY7NEFEhasWq-7Y97uV_ulN3KDfgFqHaXFqfYHeGGBrUabOkGU9nWpYNUZcmD4N4_FQ5_ik2liJfaF-xw2BP3BacO4VwY5V_eu7Kn9cb9zeB75tk5TmgHrhmpSWfUwK_yI3bCVqnpd/s1600/opt_water600x600.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwLHBY7NEFEhasWq-7Y97uV_ulN3KDfgFqHaXFqfYHeGGBrUabOkGU9nWpYNUZcmD4N4_FQ5_ik2liJfaF-xw2BP3BacO4VwY5V_eu7Kn9cb9zeB75tk5TmgHrhmpSWfUwK_yI3bCVqnpd/s320/opt_water600x600.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
You can also make a smooth cartoon representation of a fullerene, with outlines and anti-aliasing:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4G_rpzeuBe7uJ0IwZWM3ZSe-51U5mFgmtzv-C72owsGNep7O-wWySQstdFz2jV_yCDVtKbq6klIg2yvj-yS0FhYQIM8lSqvrnTjDf32aaH9HVktevVF2wrGaBD5SErlAVyx4wYhfgYQPo/s1600/fullerene600x600.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4G_rpzeuBe7uJ0IwZWM3ZSe-51U5mFgmtzv-C72owsGNep7O-wWySQstdFz2jV_yCDVtKbq6klIg2yvj-yS0FhYQIM8lSqvrnTjDf32aaH9HVktevVF2wrGaBD5SErlAVyx4wYhfgYQPo/s320/fullerene600x600.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Take a look at the code with a <a href="http://nbviewer.ipython.org/urls/raw.github.com/chemlab/chemlab/master/docs/_static/Chemlab%25200.3%2520Demo.ipynb">demo notebook</a>.</div>
<h2>
Offline Rendering</h2>
<div>
It's now possible to render images directly to a file without popping out a window and taking a screenshot, even at very high resolution. Take a look at the documentation at <a href="http://chemlab.readthedocs.org/en/latest/graphics.html#offline-rendering">http://chemlab.readthedocs.org/en/latest/graphics.html#offline-rendering</a>.</div>
<h2>
More Databases</h2>
<div>
Now you can automatically download PDB entries from <a href="http://www.rcsb.org/pdb/home/home.do">http://www.rcsb.org/pdb/home/home.do</a> just by inserting the 4 character code:</div>
<div>
<div class="hlcode" style="background-color: white;">
<div class="syntax" style="background-color: #272822; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; color: #f8f8f2; margin-bottom: 10px; margin-top: 15px;">
<pre style="background-color: transparent; border: none; font-family: 'Bitstream Vera Sans Mono', monospace; font-size: 13px; overflow: auto; padding: 10px;"><span class="kn" style="color: #f92672;">from</span> <span class="nn">chemlab.db</span> <span class="kn" style="color: #f92672;">import</span> <span class="n">RcsbDB</span>
<span class="n">db</span> <span class="o" style="color: #f92672;">=</span> <span class="n">RcsbDB</span><span class="p">()</span>
<span class="n">mol</span> <span class="o" style="color: #f92672;">=</span> <span class="n">db</span><span class="o" style="color: #f92672;">.</span><span class="n">get</span><span class="p">(</span><span class="s" style="color: #e6db74;">"molecule"</span><span class="p">,</span> <span class="s" style="color: #e6db74;">"4b0n"</span><span class="p">)</span>
</pre>
</div>
</div>
<div style="background-color: white; color: #333333; font-family: Georgia, serif; font-size: 15px; line-height: 22px; margin-top: 10px;">
<br /></div>
</div>
<div class="gistLoad" data-id="6016608" div="" id="gist-6016608">
Other databases include ToxnetDB and ChemspiderDB.<br />
<h2>
Bonds</h2>
<div>
One of the missing fundamental features of chemlab were chemical bonds. Now each System or Molecule has a bonds attribute, that is an array of integers of size (2, nbonds) where the integer are the indices of the atoms making a bond.</div>
<div>
<div class="hlcode" style="background-color: white;">
<div class="syntax" style="background-color: #272822; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; color: #f8f8f2; margin-bottom: 10px; margin-top: 15px;">
<pre style="background-color: transparent; border: none; font-family: 'Bitstream Vera Sans Mono', monospace; font-size: 13px; overflow: auto; padding: 10px;"><span class="o" style="color: #f92672;">>>></span> <span class="kn" style="color: #f92672;">from</span> <span class="nn">chemlab.db</span> <span class="kn" style="color: #f92672;">import</span> <span class="n">ChemlabDB</span>
<span class="o" style="color: #f92672;">>>></span> <span class="n">water</span> <span class="o" style="color: #f92672;">=</span> <span class="n">ChemlabDB</span><span class="p">()</span><span class="o" style="color: #f92672;">.</span><span class="n">get</span><span class="p">(</span><span class="s" style="color: #e6db74;">'molecule'</span><span class="p">,</span> <span class="s" style="color: #e6db74;">'example.water'</span><span class="p">)</span>
<span class="o" style="color: #f92672;">>>></span> <span class="n">water</span><span class="o" style="color: #f92672;">.</span><span class="n">bonds</span>
<span class="n">array</span><span class="p">([[</span><span class="mi" style="color: #ae81ff;">0</span><span class="p">,</span> <span class="mi" style="color: #ae81ff;">1</span><span class="p">],</span>
<span class="p">[</span><span class="mi" style="color: #ae81ff;">0</span><span class="p">,</span> <span class="mi" style="color: #ae81ff;">2</span><span class="p">]])</span></pre>
</div>
</div>
<br /></div>
<div>
You can freely manipulate Molecule and Systems while retaining consistency.</div>
<h2>
Next Release</h2>
<div>
In the next release I'll be focused in bringing some user interaction features with the molecular viewer and doing some polishing of the API.</div>
<div>
<h3>
Links</h3>
Website: <a href="http://chemlab.github.com/chemlab">http://chemlab.github.com/chemlab</a><br />
Email: <a href="mailto:python-chemlab@googlegroups.com" id="" shape="rect" target="_blank">python-<span class="highlight">chemlab</span>@googlegroups.com</a><br />
<br />
<div>
Docs: <a href="http://chemlab.rtfd.org/">http://<span class="highlight">chemlab</span>.rtfd.org</a> </div>
<div>
Github: <a href="http://github.com/chemlab/chemlab">http://github.com/<span class="highlight">chemlab</span>/<span class="highlight">chemlab</span></a></div>
</div>
<div>
<br /></div>
<div>
<br /></div>
</div>
<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script> Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com0tag:blogger.com,1999:blog-1948486274697777267.post-40038523177211962532013-05-01T13:21:00.001-07:002013-05-01T13:21:43.019-07:00Chemlab 0.2 released. With database integration and ipython support!Chemlab is a versatile python tool for chemistry, this new release brings a lot of interesting features.<br />
<br />
<h3>
Databases</h3>
There are a lot of chemical databases with a wide variety of data: 3d structures, spectra, thermodynamic properties etc. With this release, chemlab defines a general interface to access this data, and implements a structure downloader from the <a href="http://cactus.nci.nih.gov/chemical/structure">Chemical Identifier Resolver</a> database. The implementation uses the very nice <a href="https://github.com/mcs07/CIRpy">cirpy</a> library, credits to the author. <br />
<br />
<pre>from chemlab.db import CirDB
db = CirDB()
db.get('molecule', 'naphtalene')</pre>
<br />
<pre> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii2MZlUbA_IBRyFoqEGbUATeBUmA6HLnhCrJmtFrnhHgZLU5LkcCH9VFbRiWRx59Zmz-lSVTvuM6M0ZGQg61YnX_XMNHI6VKWcmSqTjdSFqXNx8kUEbLp_FE1ilc4nN8PT2nCK_IWGIlMT/s1600/naphtalene.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="262" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii2MZlUbA_IBRyFoqEGbUATeBUmA6HLnhCrJmtFrnhHgZLU5LkcCH9VFbRiWRx59Zmz-lSVTvuM6M0ZGQg61YnX_XMNHI6VKWcmSqTjdSFqXNx8kUEbLp_FE1ilc4nN8PT2nCK_IWGIlMT/s320/naphtalene.png" width="320" /></a></pre>
<br />
<br />
Chemlab also provides a way to build your own <a href="https://chemlab.readthedocs.org/en/latest/db.html#having-your-own-molecular-database">local databases</a> for the most commonly used structures and systems.<br />
<br />
Want to see another database? Got an idea? Dump a comment or an issue on <a href="https://github.com/chemlab/chemlab/issues">github</a>.<br />
<h3>
Ipython integration</h3>
There is some preliminary integration with ipython. You can display molecules and systems by evaluating them as the last statement of a cell or by using the ipython display function.<br />
<br />
Enough talking, check out the <a href="http://nbviewer.ipython.org/urls/raw.github.com/chemlab/chemlab/master/docs/_static/chemlab.ipython%2520demonstration.ipynb">example notebook</a>! <br />
<br />
The current implementation generates static pngs by performing an offscreen rendering, while this approach has several advantages (it's a free by-product of the pyqt implementation and it's very simple) I was evaluating some interactive implementation with webgl on the lines of <a href="https://github.com/patrickfuller/imolecule">imolecule</a>. In this way it would be possible to have interactivity, animations and all sorts of goodness.<br />
<h3>
Other new stuff</h3>
New renderers, new file formats, utilities and optimizations. For a detailed list of changes check out the <a href="https://chemlab.readthedocs.org/en/v0.2/whatsnew.html#version-0-2">what's new</a> document.<br />
<br />
<h3>
Next release</h3>
My plans for the next release will be improving the molecular viewer quality by implementing <a href="http://en.wikipedia.org/wiki/Screen_space_ambient_occlusion">screen space ambient occlusion</a>, some sort of anti-aliasing or other post-processing effects and a toon shader. It would be great to have some feature requests from the users, such as new graphic representations, new file formats and new functions. <br />
<br />
For a complete list: <a href="https://github.com/chemlab/chemlab/issues?milestone=4&page=1&state=open">https://github.com/chemlab/chemlab/issues?milestone=4&page=1&state=open</a><br />
<h3>
Links</h3>
Website: <a href="http://chemlab.github.com/chemlab">http://chemlab.github.com/chemlab</a><br />
Email: <a href="mailto:python-chemlab@googlegroups.com" id="" shape="rect" target="_blank">python-<span class="highlight">chemlab</span>@googlegroups.com</a>
<br />
<br />
<div>
Docs: <a href="http://chemlab.rtfd.org/">http://<span class="highlight">chemlab</span>.rtfd.org</a> </div>
<div>
Github: <a href="http://github.com/chemlab/chemlab">http://github.com/<span class="highlight">chemlab</span>/<span class="highlight">chemlab</span></a></div>
<br />
<br />Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com0tag:blogger.com,1999:blog-1948486274697777267.post-51415654291430283562013-04-16T10:32:00.002-07:002013-04-16T10:32:36.510-07:00chemlab 0.1: The python chemistry package you were waiting for<div>
<span class="highlight"></span>It's with great pleasure that I announce the first release (0.1) of <span class="highlight">chemlab</span>!
</div>
<div>
<br clear="none" /></div>
<div>
<span class="highlight">Chemlab</span> is a new python chemistry
package that will make your life easier. It boosts a molecular viewer,
it's fast, and has full documentation.</div>
<div>
<br clear="none" /></div>
<div>
I started this project about one year ago during my master's study.
A lot of my time was spent in building geometries, running calculations
and parsing the results and to do that I had to use different and
somewhat awkward programs. What I really needed was a package that could
simplify those tasks. Python has a lot of ready-made and high quality
libraries to read, process and analyse data. <span class="highlight">Chemlab</span> naturally fits in this ecosystem by bringing numpy friendly data structures and a brand new molecular viewer.</div>
<div>
<br clear="none" /></div>
<div>
Please help this project by testing and participating in the development!</div>
<div>
</div>
<div>
<h4>
Useful Links</h4>
Website: <a href="http://chemlab.github.com/chemlab">http://chemlab.github.com/chemlab</a><br />
Email: <a href="mailto:python-chemlab@googlegroups.com" id="" shape="rect" target="_blank">python-<span class="highlight">chemlab</span>@googlegroups.com</a>
<br />
<div>
Docs: <a href="http://chemlab.rtfd.org/">http://<span class="highlight">chemlab</span>.rtfd.org</a> </div>
<div>
Github: <a href="http://github.com/chemlab/chemlab">http://github.com/<span class="highlight">chemlab</span>/<span class="highlight">chemlab</span></a></div>
<div>
<br clear="none" /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://chemlab.readthedocs.org/en/latest/_images/merge_systems.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="256" src="https://chemlab.readthedocs.org/en/latest/_images/merge_systems.png" width="320" /></a></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com0tag:blogger.com,1999:blog-1948486274697777267.post-62940637569522875512011-04-24T14:06:00.001-07:002011-04-25T12:49:09.727-07:00Using Eproject to Manage your Python Projects in Emacs<p>Emacs has no built-in project management. The situation is quite different from the traditional IDEs, no big, heavy all-included packs. The resources are fragmented in small pieces, composability reigns. One small library that features very simple project management capabilities is <em>eproject</em>.</p><p>What do you need from a project management helper? -- I'll tell you, the things that raw emacs misses are simple: you want to run commands from a root directory, and you may want to have some sort of session management. Period. The reason why, for example, version control is not included is because there are plenty of version control libraries for emacs out there, the same for grepping, file management, etc. Actually, some sort of integration between all this stuff doesn't hurt :P.</p><p>NOTE: there are two <em>eproject</em> projects with the same name, throughout the article I'm referring to the one in the emacs-wiki <a href="http://www.emacswiki.org/emacs/eproject">http://www.emacswiki.org/emacs/eproject</a>. NOT the one on github <a href="https://github.com/jrockway/eproject">https://github.com/jrockway/eproject</a>. They are totally different.</p><p><em>eproject</em> comes with a convenient interface. There's a <em>Setup</em> buffer (GUI-like) where you can edit your project settings and tools. I appreciate in particular the <em>Tools</em> section, where you can edit your project menu in an easy way, with keybindings support. After setting up the menu and the bindings you can hit your favorite f-key and you will be running your test suite outputting on a compile-mode buffer. Simple yet powerful!</p><p><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO9cxcPHoj9uZOIBtY6Hzm0lsppCueKDRL-bK_LoLq8BaNczZcUt9Y3MhPiGE0PAHSkiHe51XuCZ6iyf2ZPutefHGDgCEv-JahZZWTxhFs6EbXvNTPOrjO-73u_I3wP4C84vUWtVmS7cBW/" alt="" width="369" height="291" /></p><p>The session management is quite simple and not particular featureful, you create your project and that's it. "Opening" the project means that you'll restore all the previously opened buffers. The nice thing is that it doesn't come in your way.</p><p><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNiszLe3msy9TWKCTjdxD4T-bixw2aa2z-YIjGVCP7rx4A7ga2kJDY5KDQ5lEHld3TNFgJ9_I7pyKGMiCPVFOVG0n_ZJejaCafHKH9sPFeLDeOVbRiBGFVQ8YpJRgjq_dlnyLh85hfk5sc/" alt="eproject projects view" width="656" height="169" /></p><p>You can install eproject from <a href="http://tromey.com/elpa/">ELPA</a> otherwise I suggest you to look at the <a href="http://www.emacswiki.org/emacs/eproject">emacswiki</a> page, and If you still don't get it, write me :).</p><p><strong>Python Related Tips</strong></p><p>You can make a good use of this simple extension, like using virtualenv to run your scripts ;). From the eproject <em>Setup</em> buffer, go to the <em>Tools</em> section. You can insert your custom command to first load (using the <em>source</em> command) the virtualenv environment and then to run your script. It's actually that easy.</p><p> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfXKTO0T6NRmGJNUxqqpQCu3eUZsmkLB8YA_MTpW0o_wZwkL5FkMUzYn7wkEoTxJjYe0NMxPsn6QVrC2FOHhgPg6-58oBVHad_xClHXfojyI88TpZGBAwX947UJLlMDLtHYuKlEgnjQkG1/" alt="tools" width="622" height="186" /></p><p>Another trick is to use <em>eproject-grep</em>, to grep only in your project files. Adding multiple files to the project is not immediate, you can use the command <em>eproject-dired</em> to open a dired buffer where you can add multiple files to the project (using the letter <em>a</em>). </p><p><strong>My Plans</strong></p><p>I'm collecting ideas to fork and add features to this little piece of software. The first thing that I would like to implement would be to have some sort of built-in virtualenv/virtualenvwrapper support. Sort of:</p><p><span style="font-family: terminal, monaco;">-virt /path/to/virtualenv/testenv python command.py</span><br /> <span style="font-family: terminal, monaco;">-workon testenv python command.py</span></p><p>The second thing that I would like to add is some support to project templates. Now when you create a project by default your project menu will contain some <em>make</em> commands (make clean, make, etc.). As I abhor <em>make</em>, I prefer to add more pythonic commands and project utilities.</p><p>What features do you like to see? What do you think about emacs project management?</p>Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com1tag:blogger.com,1999:blog-1948486274697777267.post-26210900960454620372011-04-02T03:34:00.001-07:002011-04-02T05:46:42.957-07:00emacs-for-python 0.2.1 release<p>I'm pleased to announce the 0.2.1 release of emacs-for-python</p><p><strong>What is emacs-for-python?</strong></p><p>It's a collection of emacs extensions and settings to quickly setup the editor for python development.</p><p><strong>Main features included:</strong></p><ul><li>snippets</li><li>pymacs</li><li>ropemacs</li><li>auto-completion</li><li>on the fly synntax checking (flymake)</li><li>auto-pairing</li></ul><p>For a complete list and instructions consult the README file: <a href="https://github.com/gabrielelanaro/emacs-for-python">https://github.com/gabrielelanaro/emacs-for-python</a></p><p>I've paid attention to the documentation. Read about using emacs efficiently (tips, workflows, snippets...) in the wiki of the github project page:</p><p><a href="https://github.com/gabrielelanaro/emacs-for-python/wiki">https://github.com/gabrielelanaro/emacs-for-python/wiki</a></p><p><strong>What's new in this release:</strong></p><ul><li>more snippets also for django development</li><li>snippets behaviour fixed</li><li>new version of pymacs</li><li>a better packaging script</li></ul><p><strong>Downloads:</strong></p><p><a href="https://github.com/downloads/gabrielelanaro/emacs-for-python/emacs-for-python-0.2.1.zip">emacs-for-python-0.2.1.zip</a></p><p><a href="https://github.com/downloads/gabrielelanaro/emacs-for-python/emacs-for-python-0.2.1.tar.gz">emacs-for-python-0.2.1.tar.gz</a></p><p><strong>Contacts and Links:</strong></p><ul><li>Github: <a href="https://github.com/gabrielelanaro/emacs-for-python/wiki">https://github.com/gabrielelanaro/emacs-for-python</a></li><li>Twitter: <a href="http://twitter.com/#!/gabrielelanaro">http://twitter.com/#!/gabrielelanaro</a></li></ul><p> </p><p> </p><p> </p>Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com2tag:blogger.com,1999:blog-1948486274697777267.post-44752406371345130772011-03-22T14:39:00.001-07:002011-03-22T14:44:47.189-07:00Writing for the pleasure of writing<p>It's time to share something with the rest of the world, nothing usually leaves my room and my mind, simply because my daily achievements aren't of general interest. In writing here I can reach people interested in what I have (and I want) to say and this is a great privilege. Some news:</p><p>samsung clx2160N scanner works on archlinux, plug in the usb port and install the package samsung-mfp-sane from AUR, it provides the drivers. To use it as normal user you have to add the user to the groups <em>lp</em> and <em>scanner</em></p><p>the <a href="http://en.wikipedia.org/wiki/Hipster_PDA">hipster PDA</a> is working in a great way, it's small, portable and I can design my own templates using <a href="http://www.google.it/url?sa=t&source=web&cd=1&ved=0CCUQFjAA&url=http%3A%2F%2Fwww.scribus.net%2F&ei=GxSJTezHLMiUswbftc2qDA&usg=AFQjCNG5rSYFcuknQkj5H5ceO3pThDsAkA&sig2=P9MfHO9ktJuq0JdRb50WSw">Scribus</a>, a little preview for the current status: </p><p><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiutDS6X-kFrSvdPnRki-cyRwoamnsgobitA4aH05D8wE9-o6sSx_eVgkHotJ6ZeIwKIXLPYplsLUgNCqKPsNBq6sqGHmdE2w4CsksemY_MmH9fhaM8TBA_Qu0459fNcTiwFHcojXl9_B8P/" alt="Daily Plan template" width="246" height="401" /></p><p>There's a lot more to say but now I quit, too much subjects in the same post, goodnight blog!</p><p> </p><div class="zemanta-articles">Similar articles, thanks to Zemanta:<br /> <ul class="zemanta-articles"><li><a href="http://www.43folders.com/2005/01/08/organizing-your-hipster-pda">Organizing Your Hipster PDA | 43 Folders</a></li><li><a href="http://www.diyplanner.com/templates/directory?filter0=**ALL**&filter1=18">Templates | D*I*Y Planner</a></li><li><a href="http://www.brighthub.com/computing/linux/articles/105004.aspx">Quick Guide To Open Source Scanning In Linux With XSane</a></li><li><a href="http://hesterpawling.wordpress.com/2010/04/19/hester-tries-to-learns-scribus/">Hester [Tries to] Learns Scribus</a></li></ul><div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=624d92d0-61ee-8487-a8c4-b0c452514e48" alt="" /></div></div>Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com0tag:blogger.com,1999:blog-1948486274697777267.post-13085047418204022512010-08-04T10:56:00.001-07:002010-08-04T11:05:58.695-07:00Emacs Starter Kit, a true bless
<div class="document"><!-- Emacs Starter Kit, a true bless --><p>I've found on <em>github</em> an extremely large group of people forking and
watching this <a class="reference external" href="http://github.com/technomancy/emacs-starter-kit">http://github.com/technomancy/emacs-starter-kit</a> . As the
name said, it is a set of configurations and extra packages to deal
with emacs expecially with dynamic languages (clojure and ruby support
seems to be excellent).</p><img alt="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSb66EqyUpKuZlK3N6xL-tEXv_BHvS6WUCvl8wpKkhen0plXObAzTyTIsmdokrkA3sadQEjwoil1F-BX3t2mIkUyK5bbqdheg94bkiptxmAexUxuvKaoKqqRARrcM0jlAnfMUOxY4z26N/" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSb66EqyUpKuZlK3N6xL-tEXv_BHvS6WUCvl8wpKkhen0plXObAzTyTIsmdokrkA3sadQEjwoil1F-BX3t2mIkUyK5bbqdheg94bkiptxmAexUxuvKaoKqqRARrcM0jlAnfMUOxY4z26N/" /><p>I was a bit skeptical about this stuff, I was thinking especially
about loading time... anyway I tried it and... it's
simply wonderful, I've removed my configuration from my .emacs and
completely embraced this one, since it <em>includes</em> my customization,
awesome!</p><p>It seems to be like the result of the perfect emacs customizations, it
configures and enables the cream of emacs extension making the editing
a real pleasure!</p><p>In addition the loading is blazing fast, it's wonderfully organized
and quite easy to install (you should rename it in .emacs.d and move
away your .emacs file).</p><p>The only drawback is that there is no python support, anyway this fork
<a class="reference external" href="http://github.com/tibonihoo/emacs-starter-kit">emacs-starter-kit</a> will do the job, it enables and configure also
ropemacs, yasnippet and the completion stuff, incredibly useful!</p><p>I'm also working on a similar package <a class="reference external" href="http://github.com/gabrielelanaro/emacs-for-python">emacs-for-python</a> (I will
integrate it with starter kit for sure) with a lot of emacs extension,
some of them are original, some of them are customized versions of
other extension to make them more stable and with additional features.</p><p>Be sure to check out all this wonderful stuff! It's a game-changing extension!</p></div>
Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com0tag:blogger.com,1999:blog-1948486274697777267.post-32592478232163119962010-06-28T09:32:00.001-07:002010-06-28T09:33:42.031-07:00Filesnake: Easy Linux File Transfer Utility
<div class="document"><!-- :: Title: Filesnake, Easy Linux file transfer utility --><p>Filesnake is a new software that makes the file sharing between computers an easy task. No configurations no samba, no ftp, no strange interfaces, all you have is a window like this:</p><div align="center" class="align-center"><img alt="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIP2uMy-1IJbQp6oW-TNWQTV5ThSU6RdDXpj_RAM1qvpdh3xJ9nkAU2MOb4EVKYoWWplNGLQf7S64pyKBfiWJ6H6By2fwIS755PAksErSOXtoL5zNDPil3S3m45pnbqdTwVbzR5_qHa-sg/" class="align-center" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIP2uMy-1IJbQp6oW-TNWQTV5ThSU6RdDXpj_RAM1qvpdh3xJ9nkAU2MOb4EVKYoWWplNGLQf7S64pyKBfiWJ6H6By2fwIS755PAksErSOXtoL5zNDPil3S3m45pnbqdTwVbzR5_qHa-sg/" /></div><p>You can see that there's a list of computers in the network (also yourself) right-click->send file will prompt you for sending a file to the other end. Pretty simple!</p><p>Once a computer in your network fire up filesnake this computer will appear in the list and should be available for sending files or directories. The destination is by default the home directory, anyway you can change it from preferences menu.</p><p>Let's step on how to install the program on your machine.</p><div class="section" id="installing-on-ubuntu"><h2>Installing on Ubuntu</h2><p>This procedure will install filesnake on your computer, it will be also automatically updated:</p><pre class="literal-block">
$ sudo add-apt-repository ppa:gabriele-lanaro/filesnake
$ sudo apt-get update
$ sudo apt-get install filesnake
</pre><p>You can find the application in your application menu recognizing the green arrow:</p><p><tt class="docutils literal"><span class="pre">Applications->Network(Internet)->Filesnake</span></tt></p></div><div class="section" id="further-info"><h2>Further Info</h2><ul class="simple"><li>The project page is at this address: <a class="reference external" href="http://bitbucket.org/gabriele/filesnake">http://bitbucket.org/gabriele/filesnake</a></li><li>Bug report: <a class="reference external" href="http://bitbucket.org/gabriele/filesnake/issues">http://bitbucket.org/gabriele/filesnake/issues</a></li></ul></div></div>
Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com0tag:blogger.com,1999:blog-1948486274697777267.post-58146555033390313782010-06-23T12:56:00.001-07:002010-06-28T07:25:06.553-07:00News on emacs blogger client
<div class="document"><p>Emacs blogger client seems to proceed quite well, I've introduces some interesting features:</p><ul class="simple"><li><tt class="docutils literal"><span class="pre">blogger-show</span></tt> will show the current list of blogs and entries, pressing <tt class="docutils literal">d</tt> on an entry will delete it.</li><li><tt class="docutils literal"><span class="pre">blogger-post</span></tt> from a rst-mode buffer you can directly upload the post, you will be prompted for the title</li></ul><p>I've also updated the source @ <a class="reference external" href="http://bitbucket.org">bitbucket</a>, check the project at <a class="reference external" href="http://bitbucket.org/gabriele/emacs-blogger">http://bitbucket.org/gabriele/emacs-blogger</a></p></div>
Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com0tag:blogger.com,1999:blog-1948486274697777267.post-28726088319836521152010-06-22T07:17:00.001-07:002010-06-28T07:25:21.876-07:00Writing an Emacs mode for Blogger
<div class="document"><!-- title: Writing an emacs mode for blogger --><p>On the lines of the last post, I'm trying to implement this new package for blog editing in emacs. Let's look at the commands I'm trying to implement.</p><div class="section" id="blogger-major-mode"><h2>Blogger Major Mode</h2><p>This is a mode for browsing posts and articles in emacs, it would be nice to spawn a buffer for example with <tt class="docutils literal"><span class="pre">(blogger-show)</span></tt> in this <tt class="docutils literal"><span class="pre">blogger-major-mode</span></tt>. Here's what I imagine the buffer:</p><pre class="literal-block">
+ Riding Python
- Emacs and python toghether 06/07/2010 :emacs:python:
- I love cats 02/11/2009 :loving:cat:
- I drink coffee 23/04/2009 :fluff:coffee:python:
</pre><p>It should be evident that there's a blog name (maybe collapsible, how many blogs do you own?) and under each blog a list of entries sorted by date, and with tags.
I'm designing this mode to be dired like, with the following actions:</p><blockquote><ul class="simple"><li><tt class="docutils literal">click on an entry</tt> -> prompt for something to do, or open the entry</li><li><tt class="docutils literal">u</tt> -> update the blog post (prompting for a buffer or a file name containing the content)</li><li><tt class="docutils literal">r</tt> -> rename entry (wdired like?)</li><li><tt class="docutils literal">d</tt> -> remove the entry</li><li><tt class="docutils literal">t</tt> -> add a new tag</li><li><tt class="docutils literal">c</tt> -> clean tags</li><li><tt class="docutils literal">r</tt> -> remove tag</li><li><tt class="docutils literal">+</tt> -> promtping for editing a new entry, asking for example which markup language to use etc..</li></ul></blockquote><dl class="docutils"><dt>An interface like that should be quite nice for such tasks, but for example the "new entry" make not much sense, imho a good workflow for posting <em>new</em> stuff would be:</dt><dd><ul class="first last simple"><li>Fire up emacs on a new file in some markup language</li><li>type <tt class="docutils literal"><span class="pre">M-x</span><span class="pre">blogger-publish</span></tt></li><li>answer to various prompt, like title, tags</li><li>confirm and you're done</li></ul></dd></dl></div><div class="section" id="utilities-for-images"><h2>Utilities for Images</h2><p>A simple function like <tt class="docutils literal"><span class="pre">M-x</span><span class="pre">upload-to-picasa-and-insert-link</span></tt> seems a pretty good choice, at least it is a throw away solution for fast uploading photos and inserting links in the blog.</p><p>Currently I'm developing this stuff in home, I'll put the code soon on <a class="reference external" href="http://www.bitbucket.org">bitbucket</a>. Unfortunately I'm not comfortable with writing the complete API in elisp, in fact I need a thin layer with python (using pymacs) to have the good apis provided by python-gdata. Unfortunately pymacs is not easy installable, though at least in linux it's pacakaged for most distributions.</p><p>I think nobody is reading this post, but comments are welcomed.</p></div></div>
Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com0tag:blogger.com,1999:blog-1948486274697777267.post-70405426202576160722010-06-21T15:15:00.001-07:002010-06-28T07:24:17.576-07:00Thinking about editing Blogger posts in Emacs
<div class="document">
<p>Editing <a class="reference external" href="http://www.blogger.com">Blogger</a> posts directly in emacs seems a natural choice. I've seen some Blogger clients for linux, such as BloGTK, though the editing features are not so good.</p>
<p>A quick, but great idea would be using some sort of markup language to edit posts, ideal choices would be RestructuredText, Markdown and OrgMode. The only problem is that in this way the blog entry is no more editable since the html isn't importable without loosing some information, but to some extent this is possible (there are very good importers).</p>
<p>Apart from editing that can be done on a separate stage a good set of feature would include a sort of "post browser" with the ability of deleting, renaming etc each entry of the blog.</p>
<p>And how about images? Another feature would be to automatically (or easily) uploading images to picasa and include the hyperlink in the post, from emacs.</p>
<p>About sourcecode? Pygments highlighter</p>
<p>Well, I've done a little set of requirements and a "test post" to try out the rst2html exporter and the GoogleCL utility to post articles on the blog.</p>
<p>Bye, Nobody!</p>
</div>
Anonymoushttp://www.blogger.com/profile/02440368750382303418noreply@blogger.com0