2015. január 8.

Installing Windows and Ubuntu to DualBoot

Read the Ubuntu Help Wiki on WindowsDualBoot

Generally:

  1. Backup your hard drive. All of it.
  2. Have a Windows installer and an Ubuntu installer ready.
  3. Install Windows first, than Ubuntu second.
---------------
Additional notes to Windows7 installation:
  • to be able to change the display language you'll need Win7 Ultimate or Win7 Enterprise.
  • download additional language packs from the Control Panel, or directly from this site.
  • I gave 40GB space for Windows7 on my hard drive besides Ubuntu. It made 2 partitions out of it, one 100MB large for the system purposes, and another from the rest of the space for the rest of the system.

2015. január 4.

How to set up a Send to Kindle Button on Google Blogger

1. Visit The Send to Kindle Button for Websites page to generate design and code for your button:
http://www.amazon.com/gp/sendtokindle/developers/button

When generating the code for your button select the "Blogger / Blogspot" option twice, if you do not use the dinamic view on your blog.
If you use dinamic view, and you successfully install the Send to Kindle button on your blog, please do leave me a comment about how you did it! Thank you in advance!

2.1. Go to your Blogger home: https://www.blogger.com/home
2.2. Go to the Template menu of your blog.
2.3. Select Edit HTML button under the Live on Blog thumbnail.

3.1. Insert the "Step 1" code before the closing body tag.
3.2. Change the "&" to "&" in the code so the xml can understand it.
3.3. Click Save Template to see that you do not get any errors. If you get errors, google on the error message to solve your problems.

4.1. Insert the "Step 2" code in the "b:includable id='shareButtons' var='post'" section before the closing b:includable tag to have it together with the other shareButtons. (shareButtons have to be enabled from the Layout menu: edit Blog Entry and tick "Show Share Buttons".)
4.2. Click Save Template to see that you do not get any errors. If you get errors, google on the error message to solve your problems.

5. Check your blog, it now has a Send to Kindle button where ever you put it.

2015. január 3.

Plex Configuration for various reasons

Restart Plex Server:

~$ sudo service plexmediaserver stop
~$ sudo service plexmediaserver start

Install Plug-in manually:
Plug-in directory: /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/

To install a new plug-in:
the new plug-in's directory name should end with ".bundle" like the existing plug-in directories.
copy the downloaded plugin to the plex plug-in directory
~$ sudo cp -R /download_dir/new_plug-in_dir /plex_plugin_dir/
change the permissions to be like the existing plug-ins (this is not needed in 14.04 anymore)
~$ sudo chmod ugoa+rx /plex_plugin_dir/new_plug-in_dir
change the owner of the files to be like the existing plug-ins
~$ sudo chown -R plex:plex /plex_plugin_dir/new_plug-in_dir
restart plex server as written above.
the new plug-in should show up in plex.

Custom plug-in sources:


works fine for me.


To get AnimeToon working you need to update this file:
AnimeToon.bundle/Contents/Services/URL/AnimeToon/ServiceCode.pys

UPDATE: a fixed version of the plugin can be downloaded from here.

Add these lines to the end of the file:

###new stuff begins

elif each.find("videozoo") >= 0:
 page_data = HTML.ElementFromURL(each)
 string_data = HTML.StringFromElement(page_data)
 find_url = RE_PLAY44.search(string_data).group()
 url = String.Unquote(find_url, usePlus=False)
 Log(url)
 return [MediaObject(parts = [PartObject(key = url)])]

elif each.find("playbb") >= 0:
 page_data = HTML.ElementFromURL(each)
 string_data = HTML.StringFromElement(page_data)
 find_url = RE_PLAY44.search(string_data).group()
 url = String.Unquote(find_url, usePlus=False)
 Log(url)
 return [MediaObject(parts = [PartObject(key = url)])]

elif each.find("easyvideo") >= 0:
 page_data = HTML.ElementFromURL(each)
 string_data = HTML.StringFromElement(page_data)
 find_url = RE_VIDEO44.search(string_data).group()
 url = String.Unquote(find_url, usePlus=False)
 Log(url)
 return [MediaObject(parts = [PartObject(key = url)])]

elif each.find("playpanda") >= 0:
 page_data = HTML.ElementFromURL(each)
 string_data = HTML.StringFromElement(page_data)
 find_url = RE_PLAY44.search(string_data).group()
 url = String.Unquote(find_url, usePlus=False)
 Log(url)
 return [MediaObject(parts = [PartObject(key = url)])]

###new stuff over

2015. január 2.

Serviio Configuration for various reasons

Serviio promises features that require additional configuration and not work out of the box.

Online Resources
RSS feed reading requires the installation of serviio plugins, and that the feed be specifically readable for serviio.
Online streaming my desktop with VLC could work, but definitely not through wifi (it is too slow for that)

2014. december 23.

Experimenting with a Samsung UE32H6200 Smart LED TV

Useful links

Connecting to the TV
  • Using the HDMI port 
    • Connecting via HDMI Port (using the HDMI cable) 
    • Connecting with the HDMI (DVI) Port (using a DVI to HDMI cable)
  • Samsung Link (log in) connects content to the TV through cloud based software
  • Home Network (DLNA, UPnP) connects content to the TV through virtual network file server
  • Screen Mirroring for Samsung Mobile Devices
  • Wi-Fi Direct 
  • Samsung Smart View 2.0 for PC, for Samsung Mobile Devices, for iPhone to share the screen
DLNA connection from Ubuntu
Screen Casting with Wi-Fi Direct from Ubuntu
Read this summary first.
Read this how-to second.
Unfortunately HP Compaq TC4400 does not support Wi-Fi Direct.
I know this from the directions of the above how-to. I installed "iw" through synaptic and checked for "p2p" under "supported interface modes" in ~$ sudo iw list -- and there was none.



2014. október 6.

How to extract a unique distinct list from a column in LibreOffice Calc with range filter criteria

Using this method it is possible to filter a range of data with the INDIRECT function.

you will have to change the $A$2:$A$20 range two times to the wished range given by INDIRECT.

=INDEX($A$2:$A$20, MATCH(0, COUNTIF($B$1:B1, $A$2:$A$20), 0))

Let's say you have a third column, C with a header row 1 and data from row 2.
This function will work only if the data in column C is sorted.

You type your filter criteria in cell $E$1.
  1. using MATCH to find the first occurrence of the filter criteria:
  2. MATCH($E$1,$C$1:$C$20,0)
  3. using COUNTIF to fing out how many rows have this criteria:
    COUNTIF($C$1:$C$20,$E$1)
  4. the range will start in the row given by MATCH($E$1,$C$1:$C$20,0)
    and end in the row given by (MATCH($E$1,$C$1:$C$20,0)+COUNTIF($C$1:$C$20,$E$1)-1)
  5. now add the letter of the data column to the range like "A"&
  6. your range starting cell will be INDIRECT("A"&MATCH($E$1,$C$1:$C$20,0))
    your range ending cell will be INDIRECT("A"&(MATCH($E$1,$C$1:$C$20,0)+COUNTIF($C$1:$C$20,$E$1)-1))
  7. the string you will paste in place of $A$2:$A$20 will be INDIRECT("A"&MATCH($E$1,$C$1:$C$20,0)):INDIRECT("A"&(MATCH($E$1,$C$1:$C$20,0)+COUNTIF($C$1:$C$20,$E$1)-1))

How to extract a unique distinct list from a column in LibreOffice Calc

Hi all,

to this problem: http://nabble.documentfoundation.org/Generate-Unique-List-from-Values-in-Column-td4077250.html

this is the solution in MS Excel,
http://www.get-digital-help.com/2009/03/30/how-to-extract-a-unique-list-and-the-duplicates-in-excel-from-one-column/

and to do this in LibreOffice the single difference you have to make is to not click and drag, but to ctrl+click and drag down the cell contents!

so, step by step:

you have a header: row 1.
your list starts in row 2 in column A.
your unique list will start in row 2 column B.

you type =INDEX($A$2:$A$20, MATCH(0, COUNTIF($B$1:B1, $A$2:$A$20), 0)) in cell B2 and hit CTRL+SHIFT+ENTER

this should result in you having one of the values of your A2:A20 list in B2.

now press CRTL and click and drag down the bottom-right corner of B2 cell.

if you drag down long enough, #N/A cell contents should show up on the bottom of your unique list.