Full screen version.

 

Few weeks ago I transfered £750 from a bank account in London (England) to a bank account in Italy.
The charge for the transfer was £13.

Unfortunately the Italian bank changed their IBAN number therefore about 10 days later the money came back to the account in England, but only £711.73 came back.

So banks legally stole £750 – £711.73 = £38.27 + the original £13 charge makes it £51.27.
Obviously I still need to send the money to Italy so I will have to pay another £13 making the total taken (so far) £64.27.

We all work very hard to earn our living, why do we have to let banks regularly rip us off, we all know is not “real money” that they are transferring is all virtual and computerized, yet it still takes days to transfer money from one bank to another.

Then to add insult to injury, we have to read the huge bonuses bankers cash in every year, i know is probably not related with the money banks steal us every day, but it is still annoying.

 

The Zeitgeist Movement – New Mission Statement (as of 24th Apr, 2011)

Founded in 2008, The Zeitgeist Movement is a Sustainability Advocacy
Organization which conducts community based activism and awareness actions
through a network of Global/Regional Chapters, Project Teams, Annual
Events, Media and Charity Work.

The Movement’s principle focus includes the recognition that the majority
of the social problems which plague the human species at this time are not
the sole result of some institutional corruption, scarcity, a political
policy, a flaw of “human nature” or other commonly held assumptions of
causality in the activist community. Rather, The Movement recognizes that
issues such as poverty, corruption, collapse, homelessness, war, starvation
and the like appear to be “Symptoms” born out of an outdated social
structure.
While intermediate Reform steps and temporal Community Support are of
interest to The Movement, the defining goal here is the installation of a
new socioeconomic model based upon technically responsible Resource
Management, Allocation and Distribution through what would be considered
The Scientific Method of reasoning problems and finding optimized
solutions.

This “Resource-Based Economic Model” is about taking a direct technical
approach to social management as opposed to a Monetary or even Political
one. It is about updating the workings of society to the most advanced and
proven methods Science has to offer, leaving behind the damaging
consequences and limiting inhibitions which are generated by our current
system of monetary exchange, profits, corporations and other structural and
motivational components.

The Movement is loyal to a train of thought, not figures or institutions.
In other words, the view held is that through the use of socially targeted
research and tested understandings in Science and Technology, we are now
able to logically arrive at societal applications which could be profoundly
more effective in meeting the needs of the human population. In fact, so
much so, that there is little reason to assume war, poverty, 95% of most
crime and many other money-based scarcity effects common in our current
model cannot be resolved over time

The range of The Movement’s Activism & Awareness Campaigns extend from
short to long term. The long term view, which is the transition into a
Resource-Based Economic Model, is a constant pursuit and expression, as
stated before. However, in the path to get there, The Movement also
recognizes the need for transitional Reform techniques, along with direct
Community Support.

For instance, while “Monetary Reform” itself is not an end solution
proposed by The Movement, the merit of such legislative approaches are
still considered valid in the context of transition and temporal integrity.
Likewise, while food and clothes drives and other supportive projects to
help those in need today is also not considered a long term solution, it is
still also considered valid in the context of helping others in a time of
need, while also drawing awareness to the principle goal.

The Zeitgeist Movement also has no allegiance to a country or traditional
political platforms. It views the world as a single system and the human
species as a single family and recognizes that all countries must disarm
and learn to share resources and ideas if we expect to survive in the long
run. Hence, the solutions arrived at and promoted are in the interest to
help everyone on the planet Earth, not a select group.

http://www.thezeitgeistmovement.com/joomla/

>> git memo (182 views)

Git, in my opinion, is undoubtedly the best version control system, mostly, but not only, for its distributed nature, and the way branching and merging are handled.

However having used subversion for many years I find git learning curve a real pain, some of the commands are slightly arcane, therefore not easy to remember.

In this post I will try to keep a git memo of commands that I occasionally need and regularly forget:

create new repo with first commit and push

assuming new repo is called hayate

  • add hayate to gitosis config file (gitosis.conf)
    more on gitosis in this excellent tutorial: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way

    [group hayate]
    writable = hayate
    members = andrea@myhost

    then git add --all, git commit -a -m 'added hayate repo', git push
  • go in the hayate directory i.e. cd /var/www/hayate and type git init
  • git remote add origin git@hostname.com:hayate.git
  • add and/or update files and directories
  • git add --all
  • git commit -a -m 'First hayate commit'
  • then for the first push: git push origin master:refs/heads/master which creates the master branch

tagging

  • git tag v1.0 -m 'my first tag'
  • git push --tags commits the tag
  • git tag -l list all tags

clone into current directory

  • git clone git@hostname.com:hayate.git . <- note the dot (hayate directory will not be created)

change working branch

  • git branch -l lists local branches
  • git checkout <branch-name> switches working branch to “branch-name”

remove an added file or directory (before it is committed)

  • git reset <file-or-directory-name>

add submodule (an external repository) within local source tree

  • git submodule add <repo-url> <local-path>
    i.e. git submodule add git@hostname.com:hayate.git hayate

checkout a submodule

  • git submodule update --init

create a new remote branch tracking it locally

  • git checkout -b <branch_name>
  • git push -u origin <branch_name>
  • git checkout <branch_name> to switch to the new branch

start tracking a remote branch

  • git checkout --track -b <local name> origin/<remote name>

delete a remote branch

  • git push origin --delete <branch_name>

delete local branch

  • git branch -D <branch_name>

revert a merge

  • git revert -m 1 merge_hash

to suppress the following warning

warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated. This may
warning: not necessarily be what you want to happen.
warning:
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring ‘push.default’ to:
warning: ‘nothing’ : Do not push anything
warning: ‘matching’ : Push all matching branches (default)
warning: ‘tracking’ : Push the current branch to whatever it is tracking
warning: ‘current’ : Push the current branch

  • git config [--global] push.default current (–global is optional)

 

>> Pretty Comments (5,390 views)

Some time ago I came across, a nice jQuery plug-in (jWYSIWYG) that turns regular html textareas into very simple WYSIWYG text editors.

At the time I thought that the plug-in would work really well replacing the normal WordPress comment boxes, and finally I found (made) a little free time to encapsulate jWYSIWYG jQuery plug-in into a simple WordPress plug-in, and you can see it in action on this site.

The plug-in is called Pretty Comments and is free for anyone to use.

  • Please don’t use the comments for testing.
  • All “Test” comments will be deleted.
  • If you are asking for help please leave a link to your blog or most probably I won’t be able to help you.

 

>> BocaBo (79 views)

BocaBo

BocaBo.jp is a new dictionary to aid Japanese speakers learning Spanish, Portuguese, English and vice versa.

To kick start BocaBo’s database driven dictionaries I used EDICT and ENAMDICT dictionary files by Jim Breen. The Spanish and Portuguese versions are created by translating the English version from EDICT with the help of www.apertium.org.

BocaBo is a join project from www.yanasa.co.jp and www.byteset.com.

The original Japanese and English word list is based on the EDICT and ENAMDICT dictionaries (©1994-2001 James William Breen). Original Japanese/English files can be obtained directly from the EDICT web site.

 

This is a php5 library (two classes) I wrote to convert TrueType Font text into an image, using the GD library.
The project is hosted and can be downloaded from github: http://github.com/hayate/tic (it includes an example, documentation and some free fonts)
or using git: git clone git://github.com/hayate/tic.git
Documentation is also available online here: http://www.andreabelvedere.com/docs/tic/

To extend the library to add support for other Font types just extend the TIC abstract class and implement the create and dimension methods.

See example below on how to use it:

<?php
/**
 * @file image.php
 */
require_once 'lib/tic.php';
 
TIC::factory('fonts/AAJAX.TTF')
    ->setText('Hello World !')
    ->setBgColor(0x00, 0xff, 0xff)
    ->setFontColor(0x00, 0x00, 0x00)
    ->setFontSize(24)->create(true);

Than in your html:

<img src="image.php" alt="TIC" />

That will output the following image:

TIC

The library is under the LGPL license, which means you can freely use it for commercial and non commercial applications, please post a comment for feedbacks, bugs, or links of projects where you have use it.

This is a quick self-reminder on propset svn:ignore command.

To ignore all content in directory foo but not the directory:
svn propset svn:ignore '*' foo
To ignore the directory and its content:
svn propset svn:ignore 'foo' .

>> Web Font Tester (125 views)

The quick brown fox jumps over the lazy dog !

Font Name  (i.e. Arial, Courier etc.)
Font Size
Bold  
 

今年の5月にロンドンから東京に移住しました。 創造的、積極的で明るい雰囲気の東京の会社でのウェブ系プログラマーとしての仕事を探しています.
ウェブ系プログラマーとしては5年以上の実務経験 (Java, JSP, PHP, MVC, Zend Framework,Kohana)があり、ソフトウェア開発プログラマーとしても2年以上の実務経験があります(C/C++ .Net)。

もし御社で、才能とやる気のあるプログラマーを募集していらっしゃいましたらこのリンクからご連絡いただくか、履歴書 (167.63 kB)のダウンロードをよろしくお願いいたします。

 

I am in Tokyo and looking for a position as Web Application Developer in an innovative, bright and forward-thinking company based in Tokyo.

I have over 5 years of experience in Web Application Development (Java, JSP, PHP, MVC, Zend Framework,Kohana), and more than 2 years of experience in Software Development (C/C++ .Net).

If you are a small to medium size company based in Tokyo in need of a talented, hard working developer please contact me or download my resume (167.63 kB) for more information.