Archive

Posts Tagged ‘music’

Announcing BD-review, a free platform for music reviews written using JavaEE

July 29th, 2009 bodom_lx No comments

BD-review is a dynamic website to allow people to review releases (albums, demos, EPs, singles) of (young, unsigned) music bands. The project is the outcome of the Internet Technologies course at the Faculty of Computer Science of the Free University of Bolzano. The requirements of the project were to build a website using a small subset of JavaEE technologies, without the use of web-frameworks.

A screenshot of a Review

A screenshot of a Review

The project is not really meant for production use. It was made as a strong, working and correct base for studying JavaEE academically. It should be useful for every student (also non-student) willing to have an overview on JSP and study it. The code is well-written, uses MVC, and the whole project is documented in detail in a 20+ pages report.

Read more on the project page, download the sources and play with it! Please let me know about your experience with BD-review code.

Related posts

BD-review

July 29th, 2009 bodom_lx No comments

BD-review is a dynamic website to allow people to review releases (albums, demos, EPs, singles) of (young, unsigned) music bands. The project is the outcome of the Internet Technologies course at the Faculty of Computer Science of the Free University of Bolzano.  The requirements of the project were to build a website using a small subset of JavaEE technologies, without the use of web-frameworks.

Therefore, this project is not really meant for production use. It was made as a strong, working and correct base for studying JavaEE academically. It should be useful for every student (also non-student) willing to have an overview on JSP and study it. The code is well-written, uses MVC, and the whole project is documented in detail in a 20+ pages report.

A screenshot of a Review

A screenshot of a Review

I encourage to read the PDF report of the project. It contains detailed information about the analysis and design phases, as well as the architecture description, screenshots, problems found etc. Please read also the README file. It contains configuration instructions.

There is a running demo located on the evaluation server of the course, but I think it will be removed soon.

Quick Jump:

Vision

Requirements Implemented

Technologies Overview

Download

License

Vision

The aim of the project is to build a dynamic website to allow people to review releases (albums, demos, EPs, singles) of (young, unsigned) music bands. Users will be able to signal interesting materials and review them, while other users will be able to comment the reviews, too.
This web 2.0-oriented application should allow unknown talented musicians to achieve a higher notoriety but also to improve their productions.

Screenshot of the personal user page

Screenshot of the personal user page

Requirements Implemented

I report here the requirements of the course, all implemented by BD-review:
What BD-review implements is:

  • User Management
    • List existing users of the system
    • Creation of a new user
    • Deletion of the existing user
  • List and modify access rights of the users
    • check boxes with some capabilities (min 3)
  • User registration and login to the system
  • Items management
    • Users add, edit or remove items
    • Users comments or reviews items
    • Administrator can manage the comments (edit,remove, add)
  • Personalization
    • Salutation for a returning user
    • List resources that are new from the last visit
    • Customization of the layout for a class of users.
  • Techniques – MUST be used
    • Static HTML
    • CSS: all the look and feel must be in CSS files
    • Javascript: check input and manage menus
    • Servlet: Reading (parameters and headers) and writing headers and resulting page
    • Servlet: Session management with cookies and session object
    • Servlet: Redirect the client
    • Servlet: Forward to another page or servlet
    • JSP: Expressions, scriptlets and declarations Beans
    • DBMS access trough JDBC
    • Integration of JSP and Servlets (forward and include) using MVC pattern.

In addition, BD-review implements two Filters and plays with Regular Expressions.

Technologies Overview

  • J2EE technologies (JSP, Servlets and JavaBeans)
  • Database support (PostgreSQL 8.3) through JDBC 4
  • XHTML Strict 1.0 + Cascading Style Sheets 2.1 for presentation
  • Apache Commons for conversion and Bean population routines
  • Some utility methods found on Books and Internet (their provenience is cited in the sourcecode)
  • Javascript for confirmation system and form validation
  • Regular Expressions
  • TinyMCE rich WYSIWYG HTML editor
Screenshot: modifying a Review

Screenshot: modifying a Review

Download

PDF report of the project
Complete Source Code and Documentation (as Netbeans Project)

The Future

There will not be future developments for the project. It was not a real-life project but I will be very proud if you find it an useful example for learning JSP. You can also use it as a basis for developing a real project (also a University Project). You can do anything you want with BD-review, but please respect the license. I would be happy if you send me an email about your experience in using BD-review.

License

BD-review is released under The Gnu Affero GPL version 3! This is different from the license of the contents of the blog

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see < http ://www.gnu.org/licenses/ >.

Related posts

How to have both Mac Os X and Linux installed and share the same home directory files

February 27th, 2009 bodom_lx 2 comments

So much time since my last post! I’m sure that the best way to come back to blog posting is a nice tutorial.
I’m going to write how to have the same home directory shared between Mac Os X and Gnu/Linux. Let me call Gnu/Linux just Linux from now on.

A unique place for your working directory on both Mac Os X and Linux!

The configuration I’m proposing should be very confortable, as it works with symbolic links.
It lets you to boot either Mac Os X or Linux and have the same directories and files for your everyday use. Meanwhile, the important configuration files and directories (e.g. ~/Library for Mac Os X, ~/.config for Linux) are kept separately on their corresponding partitions.
Another advantage of this configuration is that you can have a small partition dedicated to Linux – let’s say 10GB but could be even less – just for installing the programs you need, while your videos, documents, music files are kept inside the biggest partition, the one for Mac Os X.

Disclaimer, assumptions

Basically, you will mount your Mac Os X root partition in Linux, and soft-link your important directories to your Linux home directory.
You will then use them as there were real directories in your Linux home directory. For this how to, there are a couple of things I assume that:

  • You have Linux installed and running natively on your Mac(Book). I’m going to give commands with sudo, so configure it if you’re not using Ubuntu-based distros!
  • You know your partition layout. The following is mine. I’m going to use it as example:

    disk0s2 /dev/sda2 MacOsx /
    disk0s3 /dev/sda3 Linux /
    disk0s4 /dev/sda4 Swap

  • You have a clean Linux home directory. This means that you don’t have directories whose names are in conflict with those on your Mac Os X home directory
  • You are going to disable file system journaling on your Mac Os X root partition! Please read carefully this Wikipedia page about journaling and this Apple page about HFS+ journaling if you need more information.

Boot Mac Os X

Follow these instructions under Mac Os X:

Open a Terminal.

Identify your Mac Os X root partition:

$ sudo diskutil list

/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *111.8 Gi disk0
1: EFI 200.0 Mi disk0s1
2: Apple_HFS MacOsX 99.9 Gi disk0s2
3: EFI 10.7 Gi disk0s3
4: Linux Swap 1.0 Gi disk0s4

Disable file system journaling for the partition:

$ sudo diskutil disablejournal disk0s2

Do a ls -n of your home directory to discover your user id uid:

$ ls -n

total 0
drwx——+ 11 501 20 374 25 Feb 17:43 Desktop
drwxrwxrwx+ 32 501 20 1088 26 Feb 18:19 Documents
drwxrwxrwx+ 8 501 20 272 26 Feb 18:06 Downloads
[Few Others ...]

My UID is 501. Keep your UID in mind, you will need it under Linux. You obtain the same results by using the command “id”.
Reboot your Mac.

Boot Linux

Follow these instructions in a linux shell.

Change your Linux user id (UID). To correctly share the same home directory between both OS, you need to have on Linux the same UID of your Mac Os X user.

sudo usermod -u <uid> <username>

(sudo usermod -u 501 bodom_lx in my case)

To have your new UID applied, either reboot or logout from every shell you opened, even from your desktop environment. Login again.

Create a directory in which you are going to mount Mac Os X root partition:

sudo mkdir /media/</strong>MacOsX</strong
sudo chmod 775 /media/</strong>MacOsX</strong>

put this line at the end of /etc/fstab, as root, with your favourite editor:

/dev/sda2 /media/MacOsX hfsplus rw,nosuid,nodev,uhelper=hal 0 0

Remember to change sda2 and MacOsX

Either reboot the system or type:

sudo mount /media/MacOsX

To mount your Mac Os X root directory in your mount point directory.

Now cd to your Linux home directory and begin to soft-link all of your important Mac Os X directories. Here are some of those I needed:

ln -s /media/MacOsX/Users/bodom_lx/Documents/ .
ln -s /media/MacOsX/Users/bodom_lx/Pictures/ .
ln -s /media/MacOsX/Users/bodom_lx/Projects/ .
[…and many more]
 

Don’t soft-link the Library directory.

Conclusions

Now you have the same important files shared on both Mac Os X and Linux, while the important hidden configuration files are kept in separate phyisical places.
You can listen to your Itunes mp3 collection on both operating systems. You can now develop programs under Gnu/Linux. You can reboot your machine to Mac Os X and take notes during the lectures, and so on! Hope you liked this how to, and comment it as well. Contact me if you find some mistakes or you’re in trouble!

Related posts

Morak, album Resurrecturi available for FREE

December 27th, 2008 bodom_lx 3 comments

After so many problems regarding studio registration, promotion, album printing, mastering, …, me and my group decided to release our fantastic self-produced EP Resurrecturi under a Creative Commons Free License!
Yes, you can download the whole album for free, under some conditions regarding the modification of the songs and making profit with them.

Check more details about the license here.

Morak - Resurrecturi Cover Art

Morak - Resurrecturi Cover Art

There is a torrent of Resurrecturi on mininova.
There is also a Vuze download.

update:

Other trackers are hosting the torrent, check the links and use the ones with more seeders :-)

mininova
vuze
isohunt
torrentreactor
torrentdownloads
mybittorrent
extratorrent
torrentdownloads
onlytorrents
btmon

Please spread this album on file-sharing programs like bittorrent and emule, it is legal and we encourage this behavior!

24 hours after the upload of the first torrent, we may say that there have been 361 downloads of the album! Great! The album has been uploaded using piratebay’s open tracker, which was censored by the Italian Government in August because of “anti-piracy policies”. Well, this album is 100% legal and more than 360 people can appreciate it for free thanks to this file sharing protocol..

update 2, http downloads
I also decided to put Resurrecturi on 3 file-hosting sites, to help those who are not able to use bittorrent. Please share those links, too! You can also send one single mp3 to a friend, as well as download the album from here and then share it on a p2p program :-) just help us!
Download Resurrecturi from:
mediafire
rapidshare
megaupload

Related posts

Piratebay bloccato in Italia, soluzione alla censura

August 11th, 2008 bodom_lx 4 comments

Ieri sera prima di andare a dormire ho fatto il mio consueto salto su Slashdot per leggere le ultime notizie, e per la prima volta posso dire di essere rimasto inorridito da un sito che tratta argomenti geek..
Il più popolare motore di ricerca / tracker BitTorrent al mondo, piratebay, è stato bloccato in Italia! . Lo segnala torrentfreak.com, un decreto ha obbligato i provider italiani a bloccare i vari domini appartenenti a the piratebay (il sito è raggiungibile attraverso più domini), nonchè l’indirizzo IP vero e proprio. Dopo la chiusura del rimpianto Colombo-bt, tra i più promettenti tracker europei e ovviamente primo tra gli italiani, l’Italia è stata colpita da un fenomeno che fin’ora si è visto solo in regimi dittatoriali: la censura. Mi vergogno tantissimo per questo, mi sentivo nauseato già quando la Cina bloccava siti come Google e Wikipedia, ma era pur sempre un regime comunista / circa dittatoriale..
L’italia (almeno in teoria) è una repubblica democratica…giusto? Nonostante questo viene limitata la nostra libertà di navigare in Internet. BitTorrent è si un sistema di file-sharing, e si, tantissimi file scambiati con questo sistema violano il copyright. Ma gli altri? Tutte le persone che lo hanno scelto per condividere il loro lavoro (musica, libri) con licenza Creative Commons? I creatori di distribuzioni Gnu/Linux minori che si appoggiano a BitTorrent per non sovraccaricare i loro server e permettere a tutti di contribuire al download della loro opera?
Non è il sistema da penalizzare, ma chi lo usa in modo errato.
Immediato il controattacco dei famosi pirati, che hanno creato un nuovo dominio per noi italiani, Labaia.org, nonchè cambiato indirizzo IP dei loro server, consentendo il funzionamento alla maggior parte degli utenti dello Stivale.
Ma quanto durerà? Poco, per questo la soluzione migliore è di passare a dei server DNS “anarchici” e non dipendenti da provider o stati.
Parlo di OpenDNS, un servizio gestito dalla comunità di server dns per non essere legati a quelli influenzabili dai governi.
Per chi non ci capisce niente, un server DNS non è altro che un servizio che consente a chi digita “www.google.it” nel proprio programma di navigazione Internet, di essere trasportato al server che ospita quel sito richiesto, in quanto trasforma il nome di dominio in indirizzo di rete numerico legato al server. Google.it diventa 66.249.93.104 (provate entrambi, il risultato è lo stesso). Bene, con piratebay è successo che i DNS dei nostri provider di telefonia non consentivano più questa operazione, anzi bloccavano tutto.
Passare a DNS indipendenti è un grande passo avanti per non cadere vittima della censura.
Per chi sa come cambiarli nel proprio router o nel proprio computer, i dns di OpenDNS sono:

208.67.222.222
208.67.220.220

Per chi vuole saperne di più, l’indirizzo da visitare (con esempi di configurazione per i router più famosi / sistemi operativi) è https://www.opendns.com/start
Se hai paura, ed è giusto che tu ne abbia, corri al riparo.

Related posts

Cambio contatto MSN

May 26th, 2008 bodom_lx 5 comments

ENGLISH VERSION
Caro utente della mia lista di MSN Messenger, cambio contatto.
Per ragioni tecniche, politiche e legate al buonsenso, non utilizzerò più Microsoft Windows Live Messenger nè il suo protocollo di rete MSN Messenger. Mi darò al protocollo Jabber/XMPP.
Non volendo però perdere te e gli altri circa 200 contatti di Messenger, Read more…

Related posts