Python is my programming language of choice, its easy and a nicely structured.
Events in kilkenny is written in python using the web2py framework.
Over the last while getting people to add events was proving quite difficult…So with the help of python I wrote a few parsers for grabbing information off different websites. Parsing websites can be quite difficult as it might not be structured in a way that allows easy access to content.
For events in kilkenny I have made it very easy to parse the content. and if you have some programming skills you could actually grab all the content of my site without breaking a sweat, that’s how easy I make it.
For starters I add schema.org json code to the actual web page, and to the HTML tag.
Python has a wonderful library call beautifulSoup that is ideal for parsing good and malformed html and I use this library extensively. It took we a few hours to actually write the parser but to me the few hours spend writing the parser in python, will in the long run will save me hours as I will not having to add events manually to the site. Adding 20 events took me less than 1 minutes, I’m a big fan of automation and if something can save me minutes or hours then I’ll go for that.
Some sites I parse are easy enough but some are not, Most sites I am parsing are using wordpress with some sort of events plugin, but unfortunately the plugin does not cater for structured data mostly everything it wrapped around <p> </p> html tags.
Anyway if your are starting out in the world of programming I would recommend python as not only is it easy to understand but you can get productive very fast.
I have being running an events listing website (http://eventsinkilkenny.com) for the last 2 years now and I’ve learned quite a lot in that time. The site is built in python using the web2py framework (http://web2py.com) So far it has 2 hosts 1 is the front end server using ngnix as the webserver passing the requests onto uswgi host(s).
I can scale the website up to meet any traffic if needed( mostly it’s not required). uwsgi give me the flexibility to have a number of backend workers doing the hard labour with a fairly small front end web server to pass the requests on.
As a side project I’ve been working on trying to automate things as much as I can. I stumbled across a package management software call SaltStack (http://saltstack.org)
Its a package management and infrastructure management all in one.
Quote from saltstack:
SaltStack takes a new approach to infrastructure management by
developing software that is easy enough to get running in minutes,
scalable enough to manage tens of thousands of servers, and fast
enough to communicate with them in seconds.
It literally took me 1 hour from the time of reading the docs to actually making use of it.Compared to Puppet or chef which would take alot longer than 1 hour to be productive.
I’ve now got the the stage on EC2 I can spin up a instance, bootstrap saltstack, then after excepting the keys for the host, deploy the software all within about 20 minutes.Combine SaltStack with boto library and you have a match made in python heaven for quickly deploying production or development environments.
The website it self is very automated, notifications are sent out via AWS email service. Twitter posts are automated to notify followers that an events is on with my interaction.
I will be adding more feature as required, but first I want to over hall the design of events in kilkenny. stay tuned….
What happens when mailing lists become too elitist ?
I was part of a well known Linux mailing list in Ireland , but left it because of elitist attitudes.
The whole idea of a open mailing list is for discussion, but when the answer is “justfuckinggoogleit” it kind of defeats the purpose of the mailing list in the first place!
I just happen to read the public archive of the said mailing list, there was a discussion about JTAG, now not many people would have heard about JTAG unless you work on embedded systems or motherboard manufacturing, or just maybe you new to all this( it happens).
And what pray tell what the first answer ? well its wasn’t an explanation of what JTAG is and does, it was simple you should have google’ed it before bothering us.
This kind of attitude is why the mailing list has only a handful of members anymore! and I am glad that I am not part of it anymore.
Can you imagine if the coder dojo guy said, “What you don’t know what a ‘int’ or a ‘linked-list’ is, just ‘googlefuckinggoogleit’ it and get back to me..”For one thing the coder dojo would not be where it is today!
END OF RANT!
I joined amazon in their data centre operations dept a few months back. I’m really enjoying to challenge of working for a company this size and reach. The people are nice and easy to work with. I am commuting to Dublin pretty much every other day… I don’t mind it to be honest but it can be quite draining long term, but I think its worth it. If anyone has the opportunity to apply for a job within amazon they could go for it!
There is a referendum coming up in Ireland on the fiscal treaty, is it good for ireland ?
I think enshrining this sort of legislation in our Constitution will be bad for this country, as the only way to remove it would be another referendum.The government is saying that we don’t need another bail out and this is only an insurance policy, but is it?Ireland is in a recession for 4 years now and there is no sign of it ending soon, voting yes for this treaty delay us getting back normality anytime soon.
Anyway this is why I’m voting NO.
I have not updated this blog in ages, I suppose I better…
I’m still alive and paying bills
I now work in Dublin for a big multinational,nice place and nice people.
I launched a free to list events guide on Tuesday night in the Set Theatre.
It’s called http://www.eventsinkilkenny.com
About 40 People turned out, The Mayor of kilkenny David Fitzgerald said a few words about how it would be beneficial for kilkenny to have this sort of website.
I am at the galway film featival, such good films,a russian film, weather station, perfect senses. I also when to the frameworks shorts, some really good live action shorts this year. I voluntered for the galway arts festival and ended up meeting killian muphy after his play mistermen,Very good, but dark.
What does it mean to be ipv6 enabled?
Today is world ipv6 day where ipv6 is enabled on sites across the world.So is just enabling ipv6 one your website enough?
Take yahoo, their website is enabled but there mail service is not. So although some services of major isp’s are ipv6 enabled things like mail and dns servers are not.
So it doesn’t reflect all services thats could be enabled for ipv6, so is the is a true test of ipv6?
Maybe for ipv6 day 2 will these services be enabled.
Posted in General
Tagged internet, ipv6
The independent is running a story about TD’s employing their own family members in government jobs. I’m not going to get annoyed but if true, then nothing really has changed has it ?
Eamon ryan was elected leader of the green party on the 27 May 2011, succeeding John Gormley. The competition was from Malcom Noonan and Phil Kearney. To be honest Malcom should have got the job as Eamon Ryan was a member of the last government in which the greens played their part for the crippling debt of this country, only under severe pressure did they call a halt to their time in government. They then got rightly hammered in the election and lost all seats.
The green party days are numbered within government for a very long time. Eamon ryan talked about rebuilding trust. It will take me a very long time to trust the green party, if ever!
An Irish company “www.prizeclub.ie” sends you a text.
Heres the scam, you click on a link that redirects you to a website address, All seems innocent at first you answer a question, On the website you are not told that it will cost anything and as you are answering via a website address everything looks is fine, but it’s not. They send you a message back to your phone which then cost 2 euro.
I was scammed by this and ended up answering a few more that I should without thinking about it, I must say it’s great social engineering scam.
I am going to be emailing comreg and o2 in relation to this, as I feel that these companies who present seemly great offer are scamming by people into thinking it is free until it’s too late.
At least with betting companies or the lotto you know before hand how much it is going to cost you to play.
I wonder did I over use the word scam ?
It would seem that the government is going to bail out the banks once again.
This is the reason why Fianna Fail is not in power. The Irish people voted so that we would not have to keep bailing out the banks, but the new government is breaking it’s first promise and they are going to be sinking 24 Billion of borrowed money into them.
Here’s my 2 cents worth.
The PIIGS as we are called (Portugal,Ireland, Italy, Greece and Spain) are all struggling with national debt, for us it’s bank debt turned into National sovereign debt.
Everyone and their granny know that ireland cannot pay back all the money owed by us to the ECB, our biggest bond holder to date. So what to do?
Well If I were ECB trying to stop a massive bailout of 4 huge countries, I would allow the smaller of the countries take all the pain (Ireland) as it would be the least costly.
After this, the hope would be that the European economy would recover sufficiently and that the other countries get there national debt in order.
So what would happen in a few years if other members of the PIIGS club do not need a bailout ? well, I would slowly let Ireland default on some of the debt, the markets hopefully will be in a better condition at that time and as it’s the ECB’s money they will write all the money down as a bad loan, Ireland will be free of the debt burden over time, slow enough as to not rock the boat.
This is my thoughts on the whole mess!
It would seem that Irish politicians are immune to Prosecution.
John O’Donoghue or Ivor Callely have yet to be fine or prosecuted for their illegal expense claims.
In england: Ex-Labour MP Jim Devine sentenced to 16 months in prison for expenses fraud.
Why can we not send our politicians to prison ?
I created a website called http://www.fiannafailsucks.com
it is just a bit of fun, its so easy to take the piss out of finna fail, the comments use redis for storing comments is amazingly fast even hosted on a vps server. i hope i get to use redis for other things at a later stage.
Posted in General
Tagged fianna fail
I wonder what the outcome of this is going to be?
1. ICTU calls off their march, and says this is the best for the country.
2. ICTU still goes ahead with the march, and petitions the IMF/EU that there must be a better way…
We’ll know soon I suppose.
I stood outside the townhall in Kilkenny from 3pm to 6pm on Tuesday. I collected 100 signatures for this petition, what was really strange to me is that only about 1 in 4 people who I asked signed the petition for “Brian Cowen to resign and call a General election.” Some people responded with “What good will it do ?” or “No, I won’t”, “who’s else is going to run the country”. These are all valid question.
Has it come down to the fact that people just don’t care what happens in Ireland any more?
It’s a sad day in Ireland when we stand idle and do absolutely nothing, It’s no wonder the British ruled us for so long. We are just all “sheep” following the next sheep to the slaughter!
I do hope that this country wakes the fuck up and does something about it.
Online petitions are a waste of time as most politicians can’t even use a computer.
EVERYONE WHO IS UNEMPLOYED AND OUT OF WORK SHOULD BE MARCHING ON THE STREETS EVERYDAY UNTIL THIS GOVERNMENT RESIGNS.
Fianna Fail won’t get into government next term, but they will be back in sooner rather than later, I could bet on it, and it will be a shameless country that will put them back there.
I now feel worse!
I was for a long time thinking of finishing my degree course which I started a few years back. I obtained a Certificate with the Waterford Institute of technology, so I figured that this would be a natural place to finish it. I went about contacting the Adult education Centre in WIT as I wanted to do this part time. I got the number of the guy over the course, I rang this number and talked to him about completing the course as a part time, I sent my C.V to him they already had the results of my Certificate. He announced that I have all the requirement except one. JAVA, he said, as I don’t have any experience with Java that I cannot do this course. I argued my point that as I have experience with other languages (php, C, python etc) that I should be able to catch up and finished in this area. He just repeated that I did not have any JAVA experience and so I would not be able to complete this course.
I find it hard to believe that after completing a course with the WIT and now I wanted to finish my degree. I would need to first do a Course in JAVA to be able to complete this. I asked if there was any way I could prove that I can do the Java module. he said he would send me out some material, great I was thinking, it’s a start. I waited for the information to arrive in the post, It came yesterday. The information was relating to the modules that I could be doing, Java progamming, and java GUI programming. Great so how was this suppose to help me prove that I can catch up with java ?
I feel so let down with the WIT, My next course of action (no pun intented) is to write a letter of complaint about this to the Board of WIT. I wonder has anyone else come up against this ?
Having emailed a few politicians lately about different thing I have not got a response from any of them. It is a sad state of affairs.
The 2 recent politicians I email ; Eamon Ryan and Pat Rabbit, and I never even got an acknowledgement of my email.
I suppose it could have ended up as spam or it got read and deleted, but who know when they can even stick on an auto responder on they email address.
No wonder people are fed up with Irish politics!
I recently went it alone, and now I’m trying to start my own business InHouseIT.ie ,providing(linux) IT support. I finished up in Blacknight in July after a year and a bit working there.
From my conversations on the phone to different (blacknight) clients I figured out that there is a market of this Linux stuff
So 2 months on and its really going slow, Who knew it would be this hard to start a business
I think my problem is that I’m not a business head and so I’m learning the hard way about starting a business.
To be continued….