Skip to main content

Ralsina.Me — Roberto Alsina's website

Son of Bartlebog VII: the nuclear test site

A lot of new fea­tures go­ing on, like openo­my based file up­load­ing and links that work like sim­ple rst di­rec­tives:

.. openomy:: my-file.ext

And you should get a link to the file, stored in the 1GB the openo­my guys kind­ly pro­vide.

Al­so, you can ac­tu­al­ly see how the test site looks at //ralsi­na.me/we­blog (us­ing the ex­act same da­ta as this one).

I ac­tu­al­ly up­load al­most ev­ery change I do, so it breaks of­ten ;-)

Son of Bartleblog VI: The flickr directive

I added a Re­struc­tured Text di­rec­tive that takes as ar­gu­ment the ti­tle of one of your (my) flickr pic­tures, like this:

.. flickr:: pa120071

And pro­duces this:

Which is much nicer than my im­ages have looked for a while.

It can still be im­proved, prob­a­bly add a cap­tion, link to im­age com­ments if avail­able, etc.

The bad side is that if you don't have in­ter­net ac­cess the ren­der­ing fail­s.

Welcome fellow crank lovers!

Cu­ri­ous in­ter­net fac­t:

Since I post­ed my "re­view" of Crank I have had no less than 5 vis­i­tors dai­ly from google, search­ing for vari­a­tions on "haitian shit plant shit".

In fac­t, the re­view is al­most the top re­sult for that. Some­how I don't ex­pect this to atract any spon­sors, though ;-)

Son of bartleblog 5: Menus

Added a Ya­hoo! Ui menubar gen­er­a­tor. It turns this:

a
b
c
 1
 2
  x
  y
d

In­to this:

bartleblog4

Or this if you are us­ing links:

bartleblog5

Or rather in­to this, which ex­plains why it's nec­es­sary (con­sid­er this is a very sim­ple menu!):

<script type="text/javascript">
YAHOO.example.onMenuBarReady = function(p_oEvent)
{
    // Instantiate and render the menu bar

    var oMenuBar = new YAHOO.widget.MenuBar("None",
        {   autosubmenudisplay:true,
            hidedelay:750,
            lazyload:true
        });

    oMenuBar.render();
}

// Initialize and render the menu bar when it is available in the DOM
YAHOO.util.Event.onContentReady("None", YAHOO.example.onMenuBarReady);
</script>
        <div id="None" class="yuimenubar">
            <div class="bd">
                <ul class="first-of-type">
                    <li class="yuimenubaritem first-of-type">a </li>
                    <li class="yuimenubaritem">b</li>
                    <li class="yuimenubaritem"> c
                        <div id="c" class="yuimenu">
                            <div class="bd">
                                <ul>
                                    <li class="yuimenuitem"> 1</li>
                                    <li class="yuimenuitem"> 2
                                        <div id=" 2" class="yuimenu">
                                            <div class="bd">
                                                <ul class="first-of-type">
                                    <li class="yuimenuitem">  x</li>
                                    <li class="yuimenuitem">  y</li>
                                                </ul>
                                            </div>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </li>
                    <li class="yuimenubaritem">d</li>
                </ul>
            </div>
        </div>

Still some miss­ing fea­tures, but a neat thingie al­ready.

Son of Bartleblog IV

An­oth­er morn­ing, an­oth­er fea­ture: ar­chive

bartleblog3

Now I'm work­ing on the im­age tool, im­port­ing PyD­S's im­ages and up­load­ing to flick­r, etc.


Contents © 2000-2020 Roberto Alsina