tcms, connecting to postgres ….
January 27th, 2010 § Leave a Comment
This evening I rewrote the first class (database connection and query handling) to use postgreSQL. It seems to work fine….
$this->conn = pg_connect(
"host='" . $this->tcmshost .
"' port='" . $this->tcmsport .
"' dbname= '" . $this->tcmsdb .
"' user= '" . $this->tcmsuser .
"' password= '" . $this->tcmspwd ."' ");
The next step will be to change the login code, menu code (I love to see how pg will parse my treebuilder with only one query) etc…
Twitter, een onderzoek
January 22nd, 2010 § 1 Comment
Blijkbaar dringt het door tot mensen dat twitter iets is dat niet iedereen begrijpt. Er is een experiment gestart waarbij 5 journalisten gaan kijken of ze het nieuws dat ze normaal gesproken via diverse media verzamelen en uitdiepen ook via alleen Facebook en Twitter kunnen verzamelen en wellicht ook kunnen gebruiken.
Nu lijkt me dat best een grappig experiment. Het zou nog mooier zijn geweest als ze alleen Twitter hadden mogen ontvangen/lezen maar het feit dat mensen altijd een iets andere versie van een verhaal doorvertellen aan een ander dan het orginele verhaal kan ook heel leuk uitpakken. Zal dat ook bij facebook gelden? Of is dat alleen iets dat werkt in het echte leven…?
Zelf ben ik begonnen om actief mensen te blokken op social networks die Twitter misbruiken om aan te geven dat ze nu in een trein naar Heerlen of Roermond zitten (sorry Brenno). Dat houd voor Linkedin o.a. in dat ik ook hun andere aankondigingen niet meer zie. Jammer maar het houd het voor mij wat meer overzichtelijk.
Ik ga zeker proberen om wat meer over het experiment te weten te komen waarmee ik dit bericht begon. Mocht dat positief uitpakken dan vermoed ik dat ik wel een Twitter account neem om nieuws te volgen, ik zal het echter niet gebruiken om aan te geven waar ik met de auto ben, in welke winkel ik verse pasta ga halen of hoeveel kusjes ik mijn lief heb gegeven. Vermoedelijk zal ik er nooit wat op posten want ik zit nu al op 252 woorden terwijl ik bij Twitter volgens mij maar 140 chars mag posten……
Google squared, bi op een foute manier?
January 22nd, 2010 § 1 Comment
Zat net met iemand op irc te praten die allerlei links online gooide met een zoektocht op google waarbij er een subdir is aangesproken (squared).
Zo op het eerste gezicht lijkt het een soort BI achtige omgeving waarbij je vragen kunt stellen op een menselijke manier. Het geeft een overzicht van soorten kaas, maar ook over mensen die ergens wonen of naar toe verhuizen (verzin zelf gewoon een vraag).
Nu wist de persoon dat ik vanuit Nederland naar Duitsland was vertrokken dus vroeg hij de volgende link aan:
http://www.google.com/squared/search?q=dutch+people+who+moved+to+germany
Wat staat er nu bij de antwoorden op de eerste plek? Anne Frank, jawel, het Joodse meisje uit het welbekende verhaal.
Nu is mijn kennis niet helemaal op en top maar volgens mij is een deportatie iets anders dan een verhuizing. Overigens, bij mij was het wel een verhuizing.
html5 svg/swf player in javascript
January 19th, 2010 § Leave a Comment
Heb nog niet echt kunnen kijken of het echt wat is maar er lijken nu toch langzaam oplossingen te komen die er voor zorgen dat media onafhankelijk van de player te zien is in een browser. Wel moet je html5 kunnen bekijken in je browser.
http://paulirish.com/work/gordon/demos/
First steps in converting MySQL data to PostgreSQL
January 13th, 2010 § Leave a Comment
Yesterday I installed PostgreSQL using Fink. I could have chosen to download and install the .dmg from Enterprisedb but that one gave me some troubles (might be the machine I am using for development).
Today I started to look in converting my MySQL data to PostgreSQL. It seems there is a tool called mysql2pgsql. It converts a dump file into a format postgres can read. Once run you will have translated auto_increment fields for a primary key to sequences:
CREATE SEQUENCE “tcms_content_id_seq” START WITH 786 ;
CREATE TABLE “tcms_content” (
“id” integer DEFAULT nextval(‘”tcms_content_id_seq”‘) NOT NULL,
“content” text NOT NULL,
“page_id” int CHECK (“page_id” >= 0) NOT NULL,
primary key (“id”)
) ;
I was able to import it into PostgreSQL and using pgAdmin it shows the constraints, tables, etc..
The next time I will work on tcms I will start translating the php code to connect to PostgreSQL and see what will need to be altered.
tcms, changing to postgresql
January 11th, 2010 § 1 Comment
Before the season holidays I decided to do some more development on tcms. I must say I was a bit lazy and was searching an excuse for myself to not do any development. Maybe there was a reason for it if I look back at the last couple of weeks.
On Januari the 4th I posted about Monty who seems to spam all users, even those addresses he seems to have sold to Sun. I replied on the page where he points to in his e-mail stating I think he is not entitled to those addresses. He never responded but I did catch up reading about his plans. He seems to look for a way where someone can own the database he sold to Sun for a lot of money on a dual license.
This made me decide to not select MySQL as a base development database and switch to PostgreSQL. I must be honest, it’s not the only reason. PostgreSQL has more features that I would like to use and seems to be more stable.
It might set back tcms development for a short while but I hope it will be a more robust solution without doubting over the support in the future.
Is Monty spamming?
January 4th, 2010 § 1 Comment
Since I do a lot of business using MySQL I am subscribed to a few newsletters from mysql.com. I used to be subscribed at my home e-mail address but since I am working for a company for more then a few years now I also subscribed with my business e-mail address.
Today I received an email form helpmysql.org stating the following:
Hi!
I am contacting you because you have in the past shown interest in
MySQL and from that I assume you are interested in the future
well-being of MySQL.
Now you have a unique opportunity to make a difference. By signing
the petition at http://www.helpmysql.org you can help affect the
future of MySQL as an Open Source database.
You can find more information of this on my latest blog post at:
http://monty-says.blogspot.com/2009/12/help-keep-internet-free.html
Help us spread the world about this petition!
http://www.helpmysql.org is available in 18 languages and every vote
is important, independent of from where in the world it comes!
If you know people that are using MySQL, please contact them and
ensure they also sign the petition!
Regards,
Monty
Creator of MySQL
PS: If you already have signed the petition or know about it, sorry for
reminding you about this! Because of the importance of this issue,
I am trying to contact every person that I have ever communicated
with regarding MySQL.
Although I am very thankful for the free software there are some limits in how data is supposed to be handled once someone sells his product and company to another company. Currently it looks like he is using everyone who ever subscribed to the list in the past to spam his cry for help. Is he allowed to use this data?
As far as I know the owners sold MySQL to Sun and they sold it to Oracle. I do not think he is entitled to use people who are subsribed (and not at all if it is used to send massive unsolicited email). What will he do if the users are not responding? Sell the data to another company?
Lekker de sneeuw in.
January 3rd, 2010 § Leave a Comment
Nadat we eerst een uur bezig waren om de sneeuw op de oprit en een gedeelte van de straat op te ruimen besloten we maar eens terug te gaan naar Springendal. We waren daar afgelopen Oktober al eens geweest toen we volop in de herft zaten. Vandaag was het echt heel mooi daar aangezien er een centimeter of 10 a 15 sneeuw ligt.
Ja hoor, nog meer sneeuw…
January 2nd, 2010 § Leave a Comment
Wat we eigenlijk afgelopen nacht al verwachten komt nu alsnog even naar beneden vallen. Rond half 8 is het begonnen met lichte ijzel maar inmiddels valt er weer een leuk nieuw pak sneeuw naar beneden. Wellicht minder leuk voor de mensen in Friesland maar voor het zicht is het erg mooi.
Morgen maar eens zien of we nog wat mooie plaatjes kunnen schieten.



