Archive for the ‘English’ Category

Installing PHP & MySQL on IIS7

Saturday, September 6th, 2008

The problem was getting PHP to tun on IIS, you need to choose to either do it as an ISAPI Module or through CGI (for development purposes there’s no real difference but for production there is better performance through ISAPI). After choosing ISAPI I found out that some specific libraries weren’t being loaded to control Data Bases (for me it was php_mysql.dll but this probably happens for php_mysqli.dll, postgre, oracle, mssql, etc) when the PHP script was running from IIS (if executed from command line everything was ok, but who would want to do that? Setting up PHP and MySQL is most definetely for Web, so obviously we’d want PHP script to run on IIS (or hell, you might be some left behind forever nerd developing Web scripts through command line, in which case, shoot yourself)). On the other hand there seemed to be an issue with SESSION if you chose using CGI, but I chose the first option.

When mapping PHP to ISAPI there’s one more thing to do: add an ISAPI filter pointing to the exact same .dll from PHP (probably php5isapi.dll) and done! No switching libmysql.dll versiones, no looking through configuration files for hours!

I found this guide after solving the thing:

http://www.canerten.com/php-installation-with-extensions-mysql-for-iis7-in-windows-vista/

Not very a popular subject but believe me, if you don’t arrive here by accident you’ll thank me.

Cheers,
Gorka

TOP NEWS - Kill whoever developed IIS7, change everything: take out everything about the ISAPI filters for PHP, and take the handler (it used to be php5isapi.dll) to php-cgi.exe and kill anyone that works for Microsoft.
Once everything seemed to work with the mysql extension some other libraries start failing, with me it was curl, ergo…

http://bugs.php.net/bug.php?id=39163

Wi-Fi vs. Bluetooth

Saturday, January 12th, 2008

Wi-Fi and Bluetooth are basically two technologies (protocols) used to exchange data via wireless.

Both words are heard everywhere, but which should you use? What are the main differences to choose one over the other? Here is a list of technical differences, I will address the issue from another point of view:

Wi-Fi equipment is used to connect to the Internet and Bluetooth is used to interconnect computers together without cables:

Could Wi-Fi connect two PCs together through the Internet? Yes.
Could we use Bluetooth to connect to a modem/router and hence have access to the Internet? Yes.

If both technologies maintain this level of scalability, which should we choose to install a wireless network?

To use systems/applications for Bluetooth one would have to install a Java Virtual Machine (translator to use certain types of programs) in each of the devices, although the majority of mobile phones today have it already installed for games.

To use Wi-Fi, devices must be able to read TCP/IP protocols and be able to read HTML, basically understand the Internet, with the advantage that once you do that, you’ll have access to any system/application/web page.

Developing Bluetooth uses Java, a technology fairly reliable, but very specific. It is not so easy to find Java developers and are it is not cheap.

For Wi-Fi there is a lot of technologies and you can use them together if you keep a clean development using SOA and MVC. Finally you can get very good developers/designers without much expense.

Bluetooth has a higher cost of development and maintenance, in addition, applications develped for Bluetooth will only work for the devices they were created. Wi-Fi has far more usability because it has the advantage that applications are used on the Internet, not specifically by device. Developing and mantainence is cheaper as well. Wi-Fi seems to me like the best option.

Why is Bluetooth technology (protocol) so popular today?

Let’s see it this way:

Who are the major companies rooting for Bluetooth?
It is most commonly used in cell phones, most of the mobile phones have the Java VM incorporated.

Why are Sony-Ericcson, Motorola, Nokia and others so concerned in boosting such technology?
The latest devices using Wi-Fi are now able to incorporate real-time communication through the Internet, this eliminates the use of traditional mobile phones. Let’s say that I have invested a lot in this type of telephony, enough to put satellites around the earth (I don’t think this is cheap), would’t it be a problem that the use of IP telephony turned down everything I invested in?

It is obvious that such companies would have to boost one type of wireless technology that would not to send to hell  traditional mobile phones. That is why there are big companies rooting for Bluetooth, they do not want to lose everything they have invested.

Cheers,
Gorka

Experiment # 4: Kaos

Wednesday, December 12th, 2007

The idea is to design a computer program that generates files (text, pictures, music and video) with random content.

The program will generate the content of text files by first choosing a collection of symbols. Then choose a random number of those symbols (with a non-uniform frequency to simulate practical use) to generate an alphabet. Finally it will generate a title and the text with a random length.

The program will generate the content of multimedia files (pictures, music or video) by creating a random number that will represents the file’s source. Once generated the number will be wrapped with the appropriate headers depending on the type of file.

Is there a direct relationship between any piece of art and the author’s view of the world?

Kaos can create or recreate art avoiding the concept behind the piece, ie without understanding the world that could or would create it.

If any work of art could be set up in this way, what happens to the artist? Can we really break the link between the artist and the piece of art? Is it possible to create art without the autohr’s view of the world? If someone discovered a piece of art before the artist created it, who would be the real author?

Kaos will generate different pieces, anyone who participates can claim each as their own.

Cheers,
Gorka

I do not like to watch soccer, I like to play it.

Wednesday, December 12th, 2007

Is it not strange that a a team that had to change it’s home town because it had no fans, and had not won a championship for 14 years, is the current champion?

The investment at the Riviera Maya with this new soccer team involves a great expense (new stadium being built, the teams have to spend money just to belong to the federation, marketing, etc.) and it is not a safe investment (who nowadays would take such a risk?). 

What if this new team wins the championship as soon as they begin playing? Would this boost consumption and create a good ROI? 

Do not forget that soccer teams are making bussiness and they use strategies to achieve succees, soccer is not exempt from this or corruption.

It is not different from wrestling, it is a show, but go ahead if you like to watch, I rather play the game.

Cheers,
Gorka

Non readable literature

Thursday, November 29th, 2007

Don’t read as you’ve always been told to (front to back).

Create your own way, read from half until the end, til the beginning.

Read here or there, actually you shouldn’t read at all, what you should do is write.

Jump, walk, run, fly, but do not follow the line infront of you, do for yourself.

This is Lenguaraz, a literature magazine run by guys that follow their own ideas.

Cheers,
Gorka

Experiment # 3: Global Information Expert System

Thursday, November 29th, 2007

The idea is to create an expert system that uses all the information posted on the Internet as it’s knowledge base.

Step 1: The system’ll receive a question. It’ll analyze the question semantically and recognize the most important part of it.
Example: What is an atom? Keyword: atom

Step 2: The system’ll seek all Internet documents that contain information relative to the question. It will retrieve all documents which are related to the first documents and so on with the new documents until you get enough information about the topic.
Example: All those documents in the Internet that contain the word “atom” and then documents containing every word from the texts with the original word and so on until you have enough information.

Step 3: The system’ll analyze the information and generate a knowledge network on the topic. Once generated the knowledge network the system will compare all of the documents to it, to rule out those which do not comply with an adequate level of similarity to the network.
Example: A knowledge network is generated with all those words, phrases, and concepts related to atom. We compare the documents with the knowledge network and those which do not have simlar information to the network are discarded.

Step 4: The system’ll create a logical concept tree to generate a summary using the obtained documents. It’ll do this by dividing concepts until it reaches an indivisible concept.
Example: It’ll explain the particles that make up an atom and then explain the particles that make up those particles, until it reaches particles that can not be divided anymore.

The system will use the algorithms used by search engines today, which already generate a first filtered layer of results relevant to the search (to decrease the analysis time to generate the knowledge network). The system can use statistics to generate answers to questions that do not have direct results. You’ll be able to ask whatever you want:

What outcome will be achieved at some sports event? 
Does Hell exist?
What is God?
Can I turn my brother in a lettuce?
How many times a year is it recommended to have sex in public places?
What is wrong with Michael Jackson?
Was there really a “chupacabras”?
Where is Walt Disney frozen?
Who killed JFK?
Where is Elvis?

He who asks decides the limit.

Cheers,
Gorka

Codes, not Laws

Friday, November 16th, 2007

We do not need laws to control us, we need codes to guide our actions.

Why are we taught in schools that we must obey laws? What is the reason for civic behavior classes? Laws provide rights but assume obligations, such are obviously not fulfilled.

“We are in need of a new ethical attitude” so would say my dear professor Carlos de la Isla, it is true, from my point of view we need to rethink the codes that guide our ways. We must remember and teach that great men are not the ones obsessed with quantity but live with quality and that virtues make us grow as human beings, they make us better.

Our reason guided by virtues won’t make mistakes. A code based on those virtues would be very helpful to improve personal and collective life.

Cheers,
Gorka

Waking Life Chapter 6.2

Tuesday, October 9th, 2007

You can’t fight city hall, death and taxes.
Don’t talk about politics or religion.
This is all the equivalent of enemy propaganda rolling across the picket line.
Lay down, G.I.
Lay down, G.I.
We saw it all through the 20th Century.
And now in the 21st Century it’s time to stand up and realize that we should not allow ourselves to be crammed into this rat maze.
We should not submit to dehumanization.
I don’t know about you, but I’m concerned with what’s happening in this world.
I’m concerned with the structure.
I’m concerned with the systems of control, those that control my life and those that seek to control it even more.
I want freedom!
That’s what I want!
And that’s what you should want!
It’s up to each and every one of us to turn loose and just shovel the greed, the hatred the envy and, yes, the insecurities because that is the central mode of control: make us feel pathetic, small, so we’ll givingly give up our sovereignty, our liberty, our destiny.
We have got to realize that we’re being conditioned on a mass scale.
Start challenging this corporate slave state!
The 21st Century is gonna be a new century, not the century of slavery, not the century of lies and issues of no significance and classism and statism and all the rest of the modes of control!
It’s gonna be the age of humanind standing up for something pure and something right!
What a bunch of garbage: liberal Democrat, conservative Republican.
It’s all there to control you.
Two sides of the same coin.
Two management teams bidding for control!
The C.E.O. job of Slavery, Incorporated!
The truth is out there in front of you, but they lay out this buffet of lies!
I’m sick of it, and I’m not gonna take a bite out of it! Do you got me?
Resistance is not futile.
We’re gonna win this thing.
Humankind is too good!
We’re not a bunch of underachievers!
We’re gonna stand up and we’re gonna be human beings!
We’re gonna get fired up about the real things, the things that matter: creativity and the dynamic human spirit that refuses to submit!
Well, that’s it! That’s all I got to say! It’s in your court.

Cheers,
Gorka

We have been slaves of logic for too long…

Friday, September 7th, 2007

Yesterday while watching “I Robot” I started thinking that the logical structure of our thoughts limits our perception of the world. For a second I asked myself if we took the right path (I know how irrationalism can be held responsible for the atrocities of World War II, but could there be another way?).

Vasconcelos said - I think it is the duty of an emotional race, much like ours, to lay the principles of interpreting the world through our emotions. However, emotions are expressed not in the categorical imperative, nor within reason but rather with aesthetic judgment, in particular the logic of emotions and beauty.

Indología p. 137
La Jaula de la Melancolía p. 136

This theory opposes both irrationalism (will as a guide) and rationalism (categorical imperative). What if we could deal with ethical problems from an aesthetic point of view? The beauty of life itself would seem sufficient to prove solutions would be rational. However we could end up with solutions that might differ from logical reasoning*.

The development of aesthetic judgment goes side by side to that of intuition. It may not be necessary to analyze a problem in all parts (positivism) if the intuitive solution proved an aesthetic character (this is where you must use emotions and senses to explain the decisions taken). This would turn intuition as a guide to life (the development of that intuition would intuitively be correct).

* Death from the aesthetic point of view receives characterizations as beautiful as life itself. Keeping life might not be the supreme goal of this theory.

Sincerely,
Gorka

The best body you can get is the one you already own…

Thursday, August 30th, 2007

It suits you perfectly for your type of life…

The body is the most obedient tool we have. It obeys our orders thoroughly. Anyone can modify it accordingly to the decisions taken. It is the best example of evolution out there.

If someone works out a lot, the body does not become more athletic because of exercise, but rather, evolves into a better suited one for the sports that the person practices. If someone spends a lot of time sitting, the body becomes more comfortable (ie it’ll gain fat so that it can spend more time in the same position relaxed). Does this mean that you can lose weight simply by standing? Yes (among other things). It is easier to stand more time with a lighter body than with a heavy one (the process is slow, but it won’t fail).

The human body is always looking for the optimal state of relaxation, but it is not the one in charge, the brain is. Because the body has to obey the brain, the body changes in order to find the most relaxing way to achieve the brain’s orders. Anything we do on a daily basis affects how the body responds. If someone is already starting to think about standing all day, it is important to realize that if one does not move, the body will now understand that things’ll be that way and gradually lose mobility.

Be responsible for what you do, don’t go “I won’t eat because I’m on a diet,” eat everything you want, but then balance out the orders you just gave your body. No more ”feeling tired”, move. We must begin to create the mental image of what we want to achieve and then carry it out, the body little by little will provide the way.

Cheers,
Gorka