Archive | Programming RSS for this section

jspm support for Capistrano

Capistrano

Quite recently, I started to use jspm for one of my Rails projects. Since I am also using Capistrano, I have needed to run a few tasks during each deployment. Because of that, I wrote two simple tasks and bundled them up in a gem that can be used with Capistrano 3.x.

capistrano-jspm is published on my Github account, so feel free to use it and contribute to it.

And if you are thinking about using jspm for your Rails project, Michal Cichra wrote a nice article about it.

Using React for an open source generator of custom Countries data

getCountries()

Few years ago, when I was still just a newbie in a programming world – I sacrificed one Sunday and wrote an open source MySQL, Firebird, XML, JSON, CSV and YAML generator for custom Countries data, which I have also published on Github. Well actually, at first it was just MySQL generator, but then open source community contributed to it and built a lot of other awesome functionalities – for which I am really grateful and which was also a great experience.

Up until now, code quality of that project was in quite some band shape – mostly because I was not such an expert when I wrote it for the first time.

More than half a year ago, I wanted to try React on a real project, and getCountries was a perfect example. At that point, I started to rewrite the project, and today, after a lot of larger breaks, I finally merged the Pull Request and brought the Reactification process to the end.

Thanks to everyone who helped out (specially zigomir), and feel free to continue to use the project and to contribute to it.

wparser – PhantomJS based website parser

6990138142_95c32fd19a_o

At the moment, I’m working on final exam and my topic is called “Modeling relation between technical parameters of web page design and its aesthetics“.

For one part of that project, I’ve needed a parser which will automatically pull some data from received list of urls. For this purpose, I’ve wrote PhantomJS based website parser called simply wparser. I’ve published that parser on Github since I thought that someone else can also find it useful and that maybe I can also get some experience from the community.

Anyway, feel free to go check it, report me about bugs, send me pull requests, give me some tips or whatever else you want.

Learning web design – machine learning school project

Vote for a website

With a colleague, I’m working on a school project (within “Machine Learning” class) named “Learning Web Design“.

For our current task, we need arbitrary number of people to vote for websites designs. We’ve made a simple web app that lists 500 of websites that need to be reviewed. Currently, there’s around ~142 websites left for review, so if you have few minutes it will be awesome if you can help us.

Application is hosted here: http://moonleerecords.com/lwd/

Task is simple. Click on a listed website (since preview is not working currently), check structure and design a little bit and vote between 1 and 10. There’s also few other instructions mentioned on website.

*** I know that it doesn’t make sense that arbitrary number of random people is giving votes, but hey, it’s like that and just the way it is ;)

Get countries – World `countries` in MySQL or XML format


After my post from yesterday evening, WordPress analytics are telling me that almost 13,000 views (mostly from Hackernews) have seen that post in less then 24 hours. I don’t know about you, but for me, this is pretty amazing, and I’m very thankful.

To prove you that, I’ve made an upgrade to my script, and now you can get world countries in MySQL or XML format – hope you’ll like it.

I would also like to mention that you can suggest (in comments) any additional ideas, or that you can even implement it right away, push it to Github and send me a pull request.

Get countries program | @Github repository

World `countries` – database table for MySQL


So today, I was buzzing around and searching for a `countries` table script that I could use in MySQL database. As you can imagine, it wouldn’t make any sense to add all world countries into database table one-by-one.

I’ve found few interesting things around there, but all of those solutions were not flexible and were created for individual projects – and when I say that, I mean that some of those tables have only two columns (like country code and country name), some of those have 3 columns, and some of those have bunch of columns (that are probably not useful to many developers).

Anyway, after checking some of those solutions I came to idea that I could make something on my own – something that will be flexible and customizable. And the result was GetCountries “program” where you can select which columns do you want, click “Get it!” and the program will fetch “fresh” results from Geonames API and will generate you a SQL script. After that you can copy/paste that script and eventually change column names.

Hope someone will find that useful.

GetCountries program | code @Github

What the heck are they listening to?

Few months ago I’ve build a hack for a school project. It was made really quickly and I have never polish it up – until now.  I’ve wanted to mess around with Last.Fm API and Google Charts, and the result is called “What the heck are they listening to?“.

It’s works simple – when you click on any world’s country, it gives you top music tags (and a nice graph) for selected country.

%d bloggers like this: