Kostas Antonakoglou

Blogging about personal, technological and musical adventures…

Happy new year & YouTube HTML5 Switch v0.1.3

leave a comment »

Happy new year everybody!!!

Here I am, once more, to announce the new version of my recent small project YouTube HTML5 Switch. I made quite a few additions to the previous version (for which I already made a post) and changes to it and it’s on its way to become a fully reviewed add-on for Firefox :)

So what the 0.1.3 version does and has right now is:

  • A navigation bar button using the toolbarbutton-jplib (and its depdencies) by erikvold
  • a new 16×16 icon for better cross-platform compatibility (I know, it used to be prettier but I will make it again soon)
  • It works only when «youtube.com/watch» has been opened
  • It doesn’t work if &html5=1 is already in the URL
  • A clickable widget icon at the add-on bar.

What really changed is that now the navigation bar button is movable and its position is maintained if you open a new window etc. More fixes soon :)

Once again, the code is on my github repo. Of course, for any major change I will keep you posted :)

For those and only those who already use YouTube HTML5 Switch and will upgrade to v0.1.3: Don’t worry if the old icon remains on the browser window. Just restart Firefox and everything will work fine!

————————- Ahem…ahem… Your attention please :)  ————————————–

Update: The campaign ended successfully :)

Another project I want to talk about is one that’s on Indiegogo, a crowdfunging website! It’s for my band, Wonky Doll and the Echo. If you dig cinema and like our music please, have a look on our Double project: a music video & a short movie. We will collaborate with a director, Costas Gounaris, for our first music video! Our page is here: http://igg.me/p/297701/ Every cent counts and everyone wins gifts too!

By the way…this is the song of the music video:

Written by constanton

Ιανουαρίου 5, 2013 at 4:16 πμ

Αναρτήθηκε στις fedora, Mozilla, music, open source

Tagged with , , , , , ,

YouTube HTML5 Switch (and other news)

with 3 comments

Hello! Long time no see!

It’s been a busy period and I have lots of news to share. First of all, I decided to have a look on the Mozilla Add-on SDK . It has a very simple API to create Add-ons for Firefox.

Anyway, I tried to come up with an idea of what would be my first Add-on. Hmmm…An Add-on that can make my web experience less annoying. Considering that I spend half of my time on YouTube to listen to songs (mostly), view videos etc, as a Linux user, I get really annoyed when the Flash plug-in crashes and I have to restart Firefox.  You can always visit youtube.com/html5 to change that but what if you delete your cookies? It’s a boring procedure.

youtube_html5_switch_logo

YouTube HTML5 Switch logo

So, what I thought was to make an Add-on that would simply add the «html5=1″ parameter on the URL. And I did it…well, kind of, it’s now an experimental Add-on for Firefox. I need to add some more features for it to be considered as a proper Add-on. It’s called «YouTube HTML5 Switch» and here it is at the Mozilla Add-ons website, and here is the source code on Github.

I currently develop the Add-on at the Add-on Builder (that means online). I will eventually download the SDK and try it on Fedora :) It’s not the smartest Add-on in the world, but I think it’s a good start for a newbie. By the way I need to say that the SDK’s documentation is not very helpful and I needed to google a lot to write down a few lines of code. Anyway, in every «major» release I will be posting here any changes etc. You can also read the README.md on Github.

What’s more? Wonky Doll and the Echo (the band where I play) are supporting I Like Trains here in Athens on December 15, 2012. You can check our Bandcamp page and listen to our songs. Now, if you have installed the Add-on you can test it with these video…if you go on YouTube of course :)

Some videos like this for instance don’t have an HTML5 player so the plugin will not be of any use here.

Other videos though, do have have an HTML5 version and the plugin will work!

Written by constanton

Δεκεμβρίου 3, 2012 at 6:38 μμ

Αναρτήθηκε στις fedora, Mozilla, music, open source

Tagged with , , , ,

Disable NVIDIA on Sony VAIO VPCZ11X9E (Fedora 17) and more news

with 7 comments

Hey! I know I haven’t posted anything these past few months but I would have no excuse if I didn’t post about that: I have disabled my NVIDIA card from the «Dynamic Hybrid Graphics System» of my Sony VAIO VPCZ11X9E.

A few more news: 2nd semester on my post-grad program was even better than the 1st one. Plus, the band I am participating in (both playing and composing), named Wonky Doll and the Echo, is about to release it’s debut album! Feel free to listen to four of our songs on SoundCloud (even more links there :) )

Now, back to modifying our system, why would I want to disable my NVIDIA card? It’s because what I can only get out of this «hybrid system» is only the performance of my Intel card at the cost of Intel + NVIDIA working together! That means, more heat and faster battery discharges! Oh, by the way, I am now using Fedora 17 which is a lot more stable than Fedora 16 I must say (thanks GNOME!).

What I need to tell you is that: If you don’t know what you are doing, don’t trust any guide like this (…or do things at your own risk) :) But you should know that in case of failure of this procedure, if you have at least once updated your kernel, you can just go back to the previous one and delete the files we will create. This will solve most of the crashes that might happen if you don’t follow the instructions correctly.

The Bumblebee project is for resolving the NVIDIA Optimus problem, not SONY’s hybrid system installed on some VAIO’s. So, I didn’t try that. What we are going to use is  acpi_call which is a kernel module (tip: that means it needs to be compiled again after a kernel update :) )that will help us configure Fedora»s power management system in order to shut down the NVIDIA card.

My resources in order to learn how to shut down the card were mainly these:
http://amolh.weebly.com/2/post/2012/02/asusu36sd.html
http://hybrid-graphics-linux.tuxfamily.org/index.php?title=ACPI_calls

We first need (as root) to download (lines 1-3), get inside the folder (line 4), compile (line 5, for that you need gcc, kernel-headers etc. if you don’t know what all that is…ask someone!), install the module on the current kernel  (lines 6-8) and test if it worked (that means the output of test_off.sh should get you one «works» next to a ACPI handle :

# yum -y update
# yum install git
# git clone https://github.com/mkottman/acpi_call
# cd acpi_call
# make
# cp acpi_call.ko /lib/modules/`uname -r`/kernel/drivers/acpi
# depmod -a
# modprobe acpi_call
# chmod +x ./test_off.sh

I got this one: Trying \_SB.PCI0.P0P2.DGPU._OFF: works! …which is great!

The result of the script will also be an increase of the battery duration (which I haven’t tested yet as my battery died a few months ago) and a decrease in the temperature of your system (you can see that in your terminal if you install the lm_sensors package on «Add/Remove Software» or «yum install lm_sensors». The temprature of the NVIDIA card will drop to -1 degrees Celsious. The temprature of my CPU dropped approx. from 70 to 58 degrees!!!
Now you are able to shut down the NVIDIA card manually while you are using Fedora. Next, we have to make Fedora do this automatically in every boot.

As «su -» we will create a script named nvidia_off.sh :

# gedit  /usr/local/bin/nvidia_off.sh

and inside this script you will paste this:

#!/bin/sh
echo «——————————-» >> /var/log/nvidia.log
echo `date` >> /var/log/nvidia.log
echo «Disabling Nvidia video adapter !! » >> /var/log/nvidia.log
echo «——————————-» >> /var/log/nvidia.log
echo «\_SB.PCI0.P0P2.DGPU._OFF» > /proc/acpi/call

What’s important is the first and the last line only. The last line might need modification from your part as the ACPI handler might be different for your system (if you have a different laptop than mine). The other lines are not compulsory. Since I use an SSD disc and have moved my /var/log folder in RAM that means logging this info is not really of value. But for everyone else who hasn’t done this it’s cool for debugging.

Now we need to modify the priviledges of this script with:

# chmod 775 /usr/local/bin/nvidia_off.sh

Next step is to configure our system to load the acpi_call module we installed in each boot. For that purpose we create a .conf file here (again with su -):

# gedit /etc/modules-load.d/acpi_call.conf

and just write or paste just this : acpi_call

Since we now know that our module will be loaded it is safe to execute our «nvidia_off.sh» script.

To do that we need to create another script in /etc/rc.d/ named «rc.local» (it used to exist in previous releases, now it doesn’t):

# gedit /etc/rc.d/rc.local

and write down  or copy-paste this:

#!/bin/bash
/usr/bin/sh /usr/local/bin/nvidia_off.sh

The final step is to stop the nouveau driver get activated during startup, as it will crash your system. We need to edit grub2:

# gedit /boot/grub2/grub.cfg

in this file you must be able to recognise the kernel in which you have just installed acpi_call next to the word menuentry :) if you are not sure what’s your current kernel just use the command «uname -r».

Now, right before the word quiet (which is before the command «echo ‘Loading initial ramdisk …’ «) paste this:

rdblacklist=nouveau

Yes, it blacklists the nouveau driver so that it will not load. If you boot succesfuly you will notice that the temprature of the NVIDIA card will not be mentioned anymore but the significant temprature drop will still be there. :)

Written by constanton

Ιουλίου 26, 2012 at 3:56 μμ

Αναρτήθηκε στις fedora, open source

Tagged with , , , , , , , ,

New Linux OS, New University, New Album!

with 2 comments

Hello world :)

I am writing this post from my freshly installed Fedora 16 (If you still haven’t downloaded and installed yet I suggest you do it). I am really excited and proud I am using Gnome 3.2. It has achieved a tremendous change on how we must start to perceive our desktop environment. It also does this with style (with minimal touches that I really love). And so far is doing great in terms of stability. No freezes at all. OK, some small details on some drivers is my weak point but I have to blame the manufacturers for that. Well, something I always wanted to yell on the internet: WHY ON EARTH DON’T YOU RELEASE LINUX DRIVERS? …sigh. Anyway everything runs smoothly.

Moving on to our next subject. Well, it’s about my studies. I am doing my master’s degree at the University of Athens. It’s an interdepartmental master of the Physics Department and the IT Department focusing on Electronics Automation…hell yeah. It’s not easy, but I enjoy it so far :)

Now, to the last subject. I uploaded my new album on Jamendo!!! It’s called «The pursuit of happiness«.I think it’s my best work so far…I have until now a very productive year. I hope the following years will be the same as this one. I don’t want to say much, it would be better if you just listen :)

Ladies and gentlemen, I hope you enjoy it ! :)

The pursuit of hapiness cover

Written by constanton

Νοεμβρίου 22, 2011 at 3:01 πμ

Αναρτήθηκε στις education, fedora, Gnome, music, open source

Tagged with , , , ,

That’s one cool video!

leave a comment »

Udi Goren made a video using my Creative Commons licenced music. The song is called «Waterdrops that miss you» from the album «Scream of a butterfly«. Great stuff:

Flow from Udi Goren on Vimeo.

Written by constanton

Οκτωβρίου 30, 2011 at 7:31 μμ

Αναρτήθηκε στις Uncategorized

DIY Reverb pedal PCB (in Greek)

leave a comment »

Λοιπόν guys & girls,

Φτιάχνω ένα κύκλωμα ενός πεταλιού reverb για κιθάρα με ελατήρια [1] Εδώ είναι και το σχηματικό για εκτύπωση [2] Η μέθοδος που χρησιμοποίησα είναι η μέθοδος μεταφοράς του σχηματικού μέσω laser printer!

Η μικρή πλακέτα εκτυπώθηκε στο χαλκό τέλεια!!! Στη μεγάλη μου βγήκε πρόβλημα με το μελάνι (βγήκε ελάχιστο μαζί με το χαρτί αλλά αρκετό ώστε να προκαλέσει αλλοίωση του κυκλώματος)

Τί έκανα (στο 5ο βήμα βγήκε το πρόβλημα της μεθόδου) :

1) Με πράσινο σφουγγάρι κουζίνας (τα πουλάνε και σκέτα όχι μαζί με την κίτρινη πλευρά), έτριψα πολύ καλά τη χάλκινη επιφάνεια της πλακέτας να λάμψει. Καθρέφτιζε λίγο μπορώ να πω.

2) Έπειτα εκτύπωσα (με laser printer) σε γυαλιστερό χαρτί περιοδικού μόδας (όχι το εξώφυλλο, τα μέσα φύλλα και σε λευκή σελίδα που έψαξα και βρήκα) το σχηματικό!

3) Έκοψα την περιοχή που με ενδιέφερε και κόλλησα το χαρτί (με κολλητική ταινία στην ακριανή μεριά της πλακέτας) για να είναι σταθερό και να ακουμπάει όσο γίνεται το χαρτί την πλακέτα χωρίς κενά ενδιάμεσα. Φυσικά η πλευρά του σχεδίου πρέπει να βλέπει το χαλκό.

4) Έβαλα το σίδερο στο φουλ (το προθέρμανα αρχικά) ακούμπησα σε ένα χοντρό κομμάτι ξύλο που έχω την πλακέτα με το χαρτί και πάτησα με το σίδερο (από την πλευρά του χαρτιού) για 45». Μετά το πρώτο γερό πάτημα τον 45 δευτερολέπτων πίεσα προσεκτικά κάθετα προς την επιφάνεια της πλακέτας με τη μύτη του σίδερου σε αρκετά σημεία της πλακέτας. ΜΗΝ το πάτε πέρα δώθε το μελάνι χυθεί παντού στην πλακέτα.

5) Ξέπλυνα με νερό να φύγει το χαρτί. Έμεινε το μελάνι πάνω στον χαλκό. ΑΛΛΑ!!!!

Μέχρι εδώ το προσπάθησα 3 φορές. Το μελάνι ΔΕΝ έμενε πάντα στις περιοχές που έπρεπε αλλά απλωνόταν και για αυτό αναγκάστηκα να ξύσω προσεκτικά τις περιοχές που δεν ήθελα μελάνι.

Όταν αποκολλήθηκε σε ορισμένα σημεία έφυγε και λίγο μελάνι. Κάτι που είναι σημαντικό διότι καταστρέφει το επιθυμητό κύκλωμα (μετά την αποχάλκωση). Έτσι μια πρόχειρη λύση που βρήκα ήταν να βάψω αυτά τα σημεία με ανεξίτηλο μαρκαδόρο και εν μέρη δούλεψε!

6) Στην αποχάλκωση δεν πείρα έτοιμο αποχαλκωτικό. Έφτιαξα το δικό μου και δούλεψε σούπερ! Το έκανα δυστυχώς περίπου με το μάτι (σύγκρινα παρόμοια δοχεία, τεσπά πατέντα της στιγμής) αλλά σε 4 λεπτά έφυγε ο χαλκός!!!

130 ml HCl υδροχλωρικό οξύ (6-12% περιεκτικότητα, πείρα τηλέφωνο τον Έλλην κατασκευαστή και αυτό μου απάντησαν) και 3 σφυνάκια perhydrol (περιεκτικότητα 50% Η2Ο2, το κοινό οξυζενέ του φαρμακείου μου είχε 3% περιεκτικότιτα).  Περίπου αναλογία  5:1. Πρώτο το HCl μετά λίγο λίγο το perhydrol. Βούτιξα την πλακέτα με προσοχή (φορούσα γάντια, γυαλιά και δεν άφησα εκτεθημένο σημείο του σώματος μου). Το μείγμα αυτό είναι ΚΑΥΣΤΙΚΌ και ΤΟΞΙΚΌ!!! Δεν χρησιμοποιούμε μεταλλικά σκεύη. Μονάχα πλαστικά ή γυάλινα.

Με το που έβαλα την πλακέτα άφρισε, έβγαλε καπνούς (είναι τοξικοί) και έγινε γαλαζοπράσινο. Ο χαλκός έφυγε σε 4 λεπτά.

Είμαι σε αυτό το βήμα αυτή τη στιγμή και το αποτέλεσμα είναι αυτό [3]

Θα δοκιμάσω τώρα να βγάλω το μελάνι με ακετόνη (το ασετόν που είχα και ήταν για νύχια είχε έλαια κτλ δεν έκανε τίποτα σχεδόν όπως θα δείτε). Θα ακολουθήσουν και άλλα posts όπως καταλαβαίνετε!

[1] http://www.solorb.com/elect/musiccirc/reverb2/index.html

[2] http://gaussmarkov.net/layouts/springrev/project.pdf

[3] https://picasaweb.google.com/lh/photo/E3ti09J6kqIqDvSFrDv5hg?feat=directlink

Written by constanton

Αυγούστου 4, 2011 at 8:52 μμ

Αναρτήθηκε στις diy, electronics, hardware

Tagged with , , , ,

Review of Mozilla Balkans meeting @ Sofia

with one comment

If you follow my identi.ca or twitter account, you might had noticed that Pierros , Freddy and myself wore our Mozilla hats and went to Sofia for the Mozilla Balkans meeting. An easy trip since Bulgaria is very close to Greece.

On overall : it was a great experience! How could be otherwise? I met new people (including Chris Hofmann, William Quiviger and others), got in touch again with cool people I’ve already met (in Ljubljana, Slovenia) and had the chance to discuss the hot topics that concern the Mozilla Balkans community.

I shouldn’t whine at all, but there was no wifi at the meeting area. But! We got through it using Fedora (actually the Network Manager internet/wifi sharing coolness) and one Ethernet port available on the room.

By the way, sticking post-it notes with what’s good, bad, giving a thank you and expressing ideas on the wall (each category was a part of the wall) was beyond cool, making it even more interesting than using our laptops.

What I suggested was to run a DemoParty[1] covering the Balkans area (Matjaž Horvat-approved suggestion ;) ): each one of our communities (if possible of course) will run a DemoParty on its own, locally. I think this is a good chance to attract creative people as our goal is also to make the web better, not only the browser (we wouldn’t want the best browser for a web that sucks anyway). What is needed is the participation of the members of each community, an announcement on each Mozilla community website with the rules etc, judges, support from others in Mozilla that have already run a DemoParty and if possible a place (hackerspace or whatever) to announce the winners etc.

I also suggested aborting the  Skype calls. It’s simple, imagine all the people in the room in Sofia participating via Skype. Suicide is next! I mentioned four other reasons as well. IRC meetings are much more productive since we can log our conversation and plan our discussion beforehand.

Furthermore, Athens was proposed to be the next city to run the next Mozilla Balkans meeting (we compete Belgrade!)

Not to forget the newly created ReMo project! hooray!!! [2]

What’s more? The Greek Mozilla community website is under construction. We will mainly post our news there to let you know what’s going on. I need to mention our new mailing list as well! You can join us  here [3].

Anyway you can learn more (also see photos) for what happened in Sofia here at our aftermath page [4]. Once more a thank you to the organizers (yeah to Bogo too!).

<off-topic> This week has been very busy, since I am finishing my studies this semester. I am also looking for a postgraduate program in embedded systems/HCI/electronic automation (so far the universities of Athens, Leiden and Delft have what I want :) ) . If you know something about that matter and want to share it with me, please do :) </off-topic>

[1] http://mozillalabs.com/demoparty/

[2] https://wiki.mozilla.org/ReMo

[3] http://lists.mozilla.org/listinfo/community-greece

[4] http://wiki.mozilla.org/Balkans/Events:2011/Sofia/Aftermath

Written by constanton

Ιουνίου 18, 2011 at 7:59 μμ

Αναρτήθηκε στις countries, Mozilla, open source

Tagged with , , ,

Follow

Get every new post delivered to your Inbox.

Join 44 other followers

%d bloggers like this: