lunes, 16 de agosto de 2010

Luffy Laughters

ALERT: Some One Piece Spoilers!!!

Many thanks to YouTube and those people who cut some of these clips. These really made me laugh!! But more importantly, many thanks to Eiichiro Oda and Toei Animation for making this lovely One Piece to happen!!

Meeting Crocus
http://www.youtube.com/watch?v=ZPDCu0IBVak

Ero-Camel
(Chapter 97, 20:29)

That Camel gets beaten
(Chapter 103, 15:58)

Zoro and Sanji wake-up 'kiss'
http://www.youtube.com/watch?v=WnldPHfOT78&feature=related

Zoro's Tarzan Call
http://www.youtube.com/watch?v=tGL2-9pcPfk

Nami hits a wolf
(Chapter 166, 15:38)

Luffy's Baka Song
http://www.youtube.com/watch?v=gQG0V2yHlEI

173: 13:58 "Funny Vehicle Horn"
195: 10:17 "Going Merry scared"
195: 15:41 "Zoro woke up"
200: 7:48 "Condoriano"
205: 2:14 "Sanji hugs Nami"
213: 4:22 Luffy eating a "cucumber"-like kiwi
242: 5:50 Iceburg Testament
258: 8:44 Nami dress-up on Rocket Man
285: 16:49 Nya Nya Song
290: 5:43 Sogeking's Shakeen!!
302: 9:20 Calling Usopp
303: 9:06 Luffy's Sakura Song
304: 10:05 Carring Usopp + Kabuto
307: 10:03 Sanji's Nyngou
357: 4:40 Ussopp's Best Fight
359: 8:50 Sanji's Spoiled Dream
408: 19:43 Luffy's Seta
409: 8:53 Luffy's Kintama
416: 7:50 Luffy's Binks' Sake
418: 18:10 Franky's Right & Left (after his sneeze)

No laughs, but worth mention:
24: Mihawk Vs. Zoro
26: Zeff & Sanji's Story
28: 19:34 Luffy's Best Gomu Gomu No Pisutoru
30: 16:19...19:08 Red Leg's Farewell to Sanji
37: 18:16 Nami begs a favour from Luffy
348: 20:46 Yoho hohó, Yoho hóho
414: 20:04 Sonia's Back is burning
419: 16:24 Coincidence?

Idea of a Web of Ideas

I was contemplating my sms_list, while I got the idea of a web of ideas. In this web, ideas can be compared and analyzed using synonyms and similar words, to make it easier either acceptance or rejection by applying the rule of the majority.

While I was thinking about that web, I took an example of somebody promoting the idea of 100% Perfect. but instead, I promote 99.99%. I imagined a situation on which a person says that my 99.99% idea is wrong, and that person let me try to explain it, and I choose an example of a wake.

I was trying to continue that story in that previous linear form, but I decided to transform it into a dialog. And so, I did this:

- Your idea is wrong. I can get the 100% of my plan.
- No plan is 100% Perfect.
- Ok. Explain it better.
- I will put an example. Imagine that you are in a wake. Take the opportunity to say some words in that wake and say 'I love God'
- I won't do it because you say it. I'm not your pawn.
- O.K., don't do it. Don't say that you love God. Even in that moment, you will hide your love for Him.
- Why don't you tell it instead?
- Because I don't feel it nice. Also, I'm no the one promoting the 100%
- What does it have to do with 100%?
- Somebody will give you a suggestion which is in concordance with the plan, but because it was exactly that person (me in this case) you will show, bring or find any kinds of blockade, errors and mistakes. You will dismiss the possibility that person shows, and so, that 0.01%.
- Well, to say 'I Love God' in that moment is not completely necessary.
- And there goes that 0.01% away... Also, while you execute your plan, alternatives appear...

It was a nice thought, but this sequence in my head impressed me so much, that I decided to plaster it here.

viernes, 13 de agosto de 2010

FUD

Ogg versus the world: don't fall for open-source FUD

I believe in Communties. The previous link could be the result of scrapping some FSF press releases, but if some things it shows are true, then they prove an Universal Law: that even Entities against some Forces will use any mean to get noticed, including means used exaclty by their Opposition or Enemies.

What to do if both bands have partners in both sides, partners that keep their rivalry ignited? In warfare, this is called Department of Intelligence.

What to do if every idea or action can be misinterpreted? This is because every good act have a bad point of view.

What to do if you try to achieve fame by every possible mean? Will you do a wrong action because your point of view is the right one?

The only True Truth in this Universe are those Needs we will always have.

Manga War

Best Manga Review: Pluto
http://bestmangareview.blogspot.com/2007/12/pluto.html

I have read Pluto manga. The previous URL inspired me to re-read it again, so I went to OneManga... What a big surprise! They don't offer the manga anymore!

Many other online-reading manga websites have been blocked, and are prohibited to show mangas.

This is my anger.

This is the kind of action that characterize Japanese. This kind of mentality have earned my atomic bombs. :-@

It is like the battle between Open Source and Paid Software (Copyright vs. Community). My solace is that Black Market will always exists. I thought they would improve lessons from Linux, instead of going totally backwards.

Pluto and Robots, equals money.

We users can show our gratitude and pay a fee, but is not acceptable for me to buy the physical manga version, and to wait for those "big robots" to translate our beloved mangas.

Could it be a pressure from U.S.A.? Or an egoist Japanese Nationalism? Or are they zealous because they couldn't see the idea of a big community of international manga evangelists coming through?

Instead of giving merit to those websites that helped them to spread fame, they try to remove or ban a possible right or opportunity.

Unless, of course, that you, "big robots", want to centralize online manga and scanlation.

Next match will be: Anime War.

jueves, 5 de agosto de 2010

Extra Comma

Middle-Square Method vs. Linear Congruential Generator. Two methods for generating random numbers... TIMTOWTDI.

A friend of mine (Puntiel) and I were analyzing a common problem that I have named "Extra Comma". When you elaborate a query to insert several records at once, each input should be separated with comma, except either the first or the last one.

A similar problem also is presented when you should separate several web links with the pipe character '|'.

I think the best way to do this is by using a flag boolean to indicate if it's either the first or the last data, but its easier to indicate the first data.

$isFirstTime = true;
$comma="";
while($data = get_value($rst)) {
$output .= "{$comma} '{$data}'";
if($isFirstTime) {
$comma = ",";
$isFirstTime = false;
}
}

Although I believe that's the ideal way, I don't like how it looks. So, I modified it a little bit.

$comma="";
while($data = get_value($rst)) {
$output .= "{$comma} '{$data}'";
$comma = ",";
}

I chose this one because I didn't find that comma re-assignation as expensive, and also it's easier to read. But my friend prefer this method:

while($data = get_value($rst)) {
$output .= ", '{$data}'";
}
$output = substr($output, 1);

He says that his method is faster than mine. It could be true, because we are not benchmarking anything. But I don't believe that 'substr' is faster than:

while($data = get_value($rst)) {
$output .= ", '{$data}'";
}
$output[0]='';

TIMTOWTDI ("Tim Toady") as you can see. When performance is an issue, these trivialities become important. But, only a benchmarking for both, processes and network, shows when those modifications gives us a real gain.

lunes, 2 de agosto de 2010

Memento of our Society

I saw Memento.

Good and Evil are playing with all of us humans.

Although we have no vision, we should have a system to test or define our direction. But, any system can be sabotaged.

It's not to choose the best thing for one person, or a country, but for the whole world.

We still keep playing inside this kinder-garden bubble that we (we) have called Earth.

The sad part of all this is that, even if Earth explodes, it will be so hard to reconstruct this knowledge again.

20100813T1103: In another point of view, a possibility I also explored is how could we misinterpret old or former memories or facts of the past with our limited memory. It could also mean that it could be a mistake to try to seek the origin of everything with our current level of development, because we can take that complete beginning as all wrong, as we normally do every time we see any "better" alternative or suggestion.

My Highest Thanks

These are three paragraphs I wrote some days ago. I tried my best to express my feelings with them; although they will never be enough to express what I really mean, I wrote them because I don't want to forget them.

"First, I want to thank THE CREATOR, for letting me be able to live the life I have. I know it could be better, but also it could be worse! Sometimes I make this big mistake of forgetting these thanks, but it's because I'm too busy trying to not repeat many of terrenal mistakes, and trying to take note of them. Someday, I could help someone using these notes, or someone could help me to improve my actual status in life that I have defined within these notes. [20100727T1247]"

"Second, I want to take this opportunity to give thanks to all the people capable to create art. Art that digs out from deep of ourselves those feelings of joy, fun, happiness, shame, sadness,... all what makes us still feel human and not robot. Feelings that keep us pushing our limits: writing, painting, music, movies. All my depressions from my former jobs were aliviated by the Art, and the actual one won't be the exception, nor the future one! Thank you all! Like Love, Art will never die!
[7 ARTS]: architecture, sculpture, painting, dance, music, poetry, cinema,"

"Third, I want to thank all and every one of the people who helped me and made possible the level of understanding that guided me through this life. Each one of them put something in me, but I won't name them all because I'm not still on the podium. ;-D
[20100820T1230]"

viernes, 30 de julio de 2010

Genius + Brute Force = Ingenious

These two statements have been branded with fire in my mind:
  • Genius find a solution instantly
  • Brute Force searches for a needle in a haystack
Sometimes we need to generate random numbers. History has kept evidence of Dice and Coin toss as methods of generating random choices.

Donald Knuth invented algorithms for pseudo-random number generation.

Edsger Dijkstra stated that there are two approaches to solve computer problems: Mozart Vs. Beethoven. (As a curious fact, Mozart and Beethoven met each other in 1787) The former is a genius, but the latter works by brute force.

In India, Pachisi and Chaturanga were played with Dice. Orthodox Chess can be also played with dice, but Chess isn't normally played that way. The praise of what is random have been lost.

In Watchmen movie, Dr. Manhattan talks about the "Pleasure of Randomness" If there's an origin for that phrase, I'd like to find it out. Also, some levels of randomness are required to produce Fine Arts.

To try to get in touch with that "Pleasure of Randomness", I decided to create a little program that generated three numbers between zero and one-hundred inclusive. Then, I will use only the first two numbers and some operations to generate a result equal to the third number. For example, if those three numbers where {2, 3, 6}, then (2+3)+(3-2)=6. Of course that 2*3=6, but what would you do if numbers were {53, 92, 59}? This is what I did, using Python IDLE:
## OUR THREE RANDOM NUMBERS

a=53 ; b=92 ; c=59 ;

## EXPLORING NUMBERS
92-53 = 39   (b-a)
53-39 = 14 a-(b-a)
39-14 = 25 (b-a)-(a-(b-a))

25-14 = 11 (b-a)-(a-(b-a)) - (a-(b-a)) //???

92-11-11-11 = 59 //MAGIC!

b \
-((b-a)-(a-(b-a))-(a-(b-a))) \
-((b-a)-(a-(b-a))-(a-(b-a))) \
-((b-a)-(a-(b-a))-(a-(b-a))) \
== c

## SIMPLIFICATION

>>> ((b-a)-(a-(b-a))-(a-(b-a)))
11
>>> ((b-a)-(a-b+a)-(a-(b-a)))
11
>>> (b-a-a+b-a-(a-(b-a)))
11
>>> (b-a-a+b-a-(a-b+a))
11
>>> (b-a-a+b-a+(-a+b-a))
11
>>> (b-a-a+b-a-a+b-a)
11
>>> b-a-a+b-a-a+b-a
11
>>> 3*b-5*a
11
>>> (9*b-15*a)
33
>>> b-(9*b-15*a)==c
True
>>> b+(-9*b+15*a)
59
>>> b-9*b+15*a
59
>>> 15*a-8*b
59
Looking at this simplification, some questions pops out from my mind: Would a genius had gotten an equation like this from the start? Would have a genius known that a solution found using this method could be simplified without even trying to solve one problem in the first place? I don't know, but I'm sure I'm not a genius.

This simple game taught me some lessons:
  • Pseudo-Random exploration is helpful to find a solution.
  • Be ware of the word 'repeat'. It could hide a mathematical operation.

---
20100729T0948:
round a problem many times
look for hindrances, obstacles, inconveniences
re-round each found obstacle and find inner obstacles
until one obstacle is solved
then, that solution will solve another
and so, like a domino effect,
the first and original problem
starts to get solved
- [id, status, created, modified, position, modcount]

20100729T1125:
writing undefined sentences to describe the problem
making calculations with parameters to find a result
opening many files to understand and solve the code

20100729T1143:
TDD to automate tests "seems" the way to go.
GUI needs to be scriptable, and HTML allows this.
Maybe JavaScript could be a problem, but if you could
append a [SCRIPT] tag and run it, it will be no problem

Enterprise, Human Resources, People and Wars:
- If you kill people, you must find and train new ones.
- If you forgive people, they will squeeze you.

martes, 20 de julio de 2010

SQL = Sets Quarantined, Lost

I have two tables in a MySQL database. They both have persons, but BOTH tables have persons that are not in both. So, I wanted to bring all those people that are not repeated. I can do this using inner loops, but I tried to do it by MySQL alone.

I elaborated an example with two sets: t1=[a,b,c]; t2=[a,b,d]. What I want to bring is this set: r=[c,d]; because [a,b] can be retrieved by a simple INNER JOIN.


#TEMPORARY TABLES WE WILL USE
#TABLES WITH ELEMENTS WILL BE: t1 AND t2

DROP TEMPORARY TABLE IF EXISTS t1,t2,plus,minus;

#FIRST DATA SET
CREATE TEMPORARY TABLE t1 AS
SELECT 'a' AS f1 UNION SELECT 'b' UNION SELECT 'c';

#SECOND DATA SET
CREATE TEMPORARY TABLE t2 AS
SELECT 'a' AS f2 UNION SELECT 'b' UNION SELECT 'd';

#CREATING THE "UNION"
CREATE TEMPORARY TABLE plus AS
SELECT * FROM t1
UNION
SELECT * FROM t2;

#CREATING THE "INTERSECTION"
CREATE TEMPORARY TABLE minus AS
SELECT t1.* FROM t1
INNER JOIN t2
ON t1.f1=t2.f2;

#CHECK OUR TEMPORARY TABLES
SELECT * FROM t1; #FIRST TABLE
SELECT * FROM t2; #SECOND TABLE
SELECT * FROM plus; #ALL ELEMENTS
SELECT * FROM minus; #COMMON ELEMENTS

#AND THIS IS THE OPERATOR I NEED IN MYSQL
SELECT plus.* FROM plus
LEFT JOIN minus
ON minus.f1=plus.f1
WHERE minus.f1 IS NULL

/*
AN UNION MINUS AN INTERSECTION BRINGS ALL RECORDS
THAT ARE NOT PRESENT IN ANY SET

YOU SEE, VENN DIAGRAMS AND SET THEORY ARE TOO OLD SCHOOL
THAT THEY SEEM NOT NEEDED NOWADAYS. BUT NOW,
OBJECT-ORIENTED ANALYSIS AND DESIGN IS, AGAIN,
BRINGING ALL THOSE OLD-SCHOOLERS BACK!!
*/

domingo, 11 de julio de 2010

Common Sense = Prejudices

"Common sense is the collection of prejudices acquired by age eighteen."
Albert Einstein

There are faults that we allow because they are logical and common sense. This is an example of how a bad action can be seen as good, and that there's no absolute true.
  1. Mixing milk with water
  2. Mixing flour and yeast to make bread
  3. Accepting or giving "payment" to correct a legal "fault"
  4. Drinking "juice powder" instead of natural fruits
  5. Forbidding abortion on EVERY possible situation.
  6. Cutting big trees because they interfere with power lines
  7. Keeping the extra-change mistake because they won't give it back if the mistake was ours.
  8. Not asking questions; but instead, either requesting or begging for answers.
Sadly, I see some of these topics as 'Necessary Prejudices' in some aspects too.