Popular just now

ad1

Showing posts with label Yaws. Show all posts
Showing posts with label Yaws. Show all posts

Why not Erlang? The answer in three words...

When I first moved to live and work in Sweden in 1995 I had two ambitions. The first was to get a job working at Ericsson. My mobile phone was an Ericsson model that I was absolutely in love with and was much better than my previous Blaupunkt and Motorola phones. I just had to work for the company that made my new teddy bear. Unfortunately things did not work out. I found myself living in cold north of Sweden where there were no Ericsson offices or factories.

Drupal.se - 2010/02/01

Well it's been a week or more now since I announced that I would be building up Drupal.se as a community. Again there have been very disappointing results in a showing of interest in creating a community.

So I will start today with the wireframing of Drupal.se on my own. I am going to be running the site with Drupal 7 on Yaws webserver, Postgresql and of course the pre-requisite PHP. I am a big fan of wireframing and so I will be using the Zen CSS Wireframing theme.

This might take a bit longer but what the hell. I have time and since there is very little interest in participation collectively, I can make these decisions without feeling like I have disregarded the interests of the community.

The blog for the site will be this blog until further notice. So any suggestions or interactions should be posted here. This is to prevent any loss of information during the build up.
It took part of the day and some finessing but I finally have a Linux laptop up and runnning on Linux. I started with Linux Mint 8 and changed to xfce because Gnome was too resource hungry for the old IBM thinkpad. The wireless card was recongnized which is what I mostly wanted from Linux Mint. For some reason it is the only linux distro that does this without a lot of hacking.

The machine only has 256mb of ram but with xfce the system is using only 180mb. This makes for some decent speed for a web dev machine. The lastest Linux Mint also has Erlang R13B03 with all the goodies installed by default. This was a time saver. Yaws 1.8.2 is also in the repository and installing it give a working web server using Ubuntus particular flavor of file handling and configuration. What's nice also is that the install is not filled with all the example files in the default localhost directory.

So now I am another step closer to doing some Erlang hacking.

Erlang MySQL connection

Starting to collect all I can on using Erlang, Yaws and MySQL Here is a database connection and query for MySQL

application:start(odbc). ConnString = "Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=test; User=root;Password=ace152;Option=3;". {ok, Conn} = odbc:connect(ConnString, []). Results = odbc:sql_query(Conn, "SELECT * FROM test_table").


Now I need to find out how to iterate through records.