Canonical Voices

What Shuduo talks about

Posts tagged with 'article'


After Victor Palau wrote a new blog for his PiGlow API snap, I tried to operate PiGlow LED and learnt following ways to interact with it.

a. Use python:

python3 -c 'from urllib.request import urlopen; print(urlopen("http://REALIP:8000/v1/on", data=b""))'

b. Use curl:

curl -i -X POST "http://REALIP:8000/v1/on"

c. Use html web page in web browser

<title>test piglow</title>
<form action="" method="post">
<input type=submit value=flare>

Read more

1, components on the desk
Image and video hosting by TinyPic

2, bag
Image and video hosting by TinyPic

3, assembling
Image and video hosting by TinyPic

4, and…
Image and video hosting by TinyPic

5, and…
Image and video hosting by TinyPic

6, piglow plugged
Image and video hosting by TinyPic

7, finish
Image and video hosting by TinyPic

8, Ubuntu Sanppy is running.. \o/
Image and video hosting by TinyPic

Read more

1, Install Ubuntu 14.04 or 15.04 on ONDA V116w.
2, Plug ethernet cable
3, sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install build-essential git
4.1, git clone
4.2, cd rtl8723bu
4.3, make
4.4, sudo make install
5.1, git clone
5.2, cd rtl8723au_bt
5.3, ‘git checkout new’ for kernel 3.18 and later
5.4, make
5.5, sudo make install
5, add ‘8723bu’ and ‘btusb’ in /etc/modules

Read more

  1. start from official tutorial

    1. implement search function

    2. implement preview function

    3. modify data/XXXX.scope

    4. modify data/

    5. modify

    6. build executable file, and dbus service file out

    7. install executable file, scope file and service file.

    8. killall unity-scope-home to restart the Home scope so that it loads the new scope

  2. what’s scope? what’s master scope?

    1. Scope

The search engine itself, talking to a web service or a local database. It can be exposed to the user in two ways in the Dash: as a standalone scope or as part of a master scope.

  1. Master scope

The architecture used to merge multiple scopes in the same Dash view.

  1. how to debug?

    1. use libunity-tool -g

  2. My first scope project

    1. lp:~sangshuduo/+junk/scope500px


  1. BKMs and tips

    1. recommend C language to programming scope for performance although python and vala still working


    2. Ubuntu SDK do not show Unity Scope project in project list

      1. apt-get remove all QT related packages and reinstall Ubuntu SDK

    3. dbus name limitation


    4. unreliable libunity-tool

      1. sometime libunity-tool can’t list all running scopes’ dbus name. we can fill its group name and unique name manually

      2. use master scope to list all results.

    5. manually add headers path and libraries to link


    6. check name matched in all place

      1. config.h

      2. data/XXXX.scope

      3. data/

    7. who familiar Unity API

      1. Michal Hruby (mhr3)

    8. build and install. some files will be not installed if only run ‘sudo make install’

      1. qmake

      2. make

      3. sudo make install

Read more

I followed the link [1] of linuxjournal to make my Nexus 7 can boot up Android and Ubuntu Touch without reflash system. Now I can easy show off Ubuntu Touch to my friends and read ebook by Kindle for Android now. I’m interested what solution will be  used for dualboot on Ubuntu Edge or its successor.



Read more