31 mai 2015

Cum să vezi numărul de cadre făcute cu un CANON EOS 550D pe Linux

[root@calculator ~]# gphoto2 --get-config /main/status/shuttercounter
Label: Shutter Counter                                                        
Type: TEXT
Current: 80852

13 octombrie 2014

Make AllShare screen mirroring work again after rooting your Samsung Galaxy Note 3 phone with a custom ROM

Open the file /system/build.prop for editing, add the following line at the end
and reboot the phone.

Source: http://forum.xda-developers.com/showthread.php?t=2661854&page=7

04 septembrie 2014

Make Flash work under Firefox under Fedora Linux 20

Stop Firefox
sudo yum -y --nogpgcheck install cabextract
sudo rpm -i http://sourceforge.net/projects/mscorefonts2/files/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
sudo wget http://download.opensuse.org/repositories/home:/DarkPlayer:/Pipelight/Fedora_19/home:DarkPlayer:Pipelight.repo -O /etc/yum.repos.d/pipelight.repo
sudo yum -y --nogpgcheck install pipelight
sudo pipelight-plugin --update
sudo setsebool -P unconfined_mozilla_plugin_transition 0 
pipelight-plugin  --enable flash  

Start Firefox

14 ianuarie 2012

Can I have all the database in a spreadsheet please?

If you're a programmer, you were asked for this. Probably several times.

If you're a PHP programmer, you probably ended up using comma separated values for convenience.

My problem: exporting tens of thousands of records from the database to a spreadsheet using PHP.

CSV would be a nightmare for this. It's enough to say new lines, escape characters, the need to set filters when opening, differences between Microsoft Excel and LibreOffice and that fills your plate.

I haven't been able to find a proper library to write OpenDocument spreadsheets using PHP. All the libraries that I found, created the document in memory which is a big no for my problem. So I created a simple library that writes the file directly on the disk. And as a bonus, there's a simple php script that you can use to export directly a query's results to a OpenDocument spreadsheet.

And of course, it's free open source software, download it from here if you need it.

Here's to a good start of my second free project.