Search This Blog

Monday, December 28, 2015

KMP algorithm test word

"abdabcabdabdf"

[-1, 0, 0, 0, 1, 2, 0, 1, 2, 3, 4, 5, 3]

Tuesday, September 8, 2015

WPF tutorial

http://www.wpf-tutorial.com/

WPF data binding: http://www.wpf-tutorial.com/data-binding/introduction/

WPF built-in value converts: http://stackoverflow.com/questions/505397/built-in-wpf-ivalueconverters

Missing dialogs in WPF: http://www.wpf-tutorial.com/dialogs/the-other-dialogs/

Common interface controls: http://www.wpf-tutorial.com/common-interface-controls/menu-control/

Missing code for Users in code-behind for http://www.wpf-tutorial.com/rich-text-controls/advanced-flowdocument-content/
    
public class User
{
    string _name;
    public string Name
    {
        get { return _name; }
        set { _name = value; }
    }
    int _age;
    public int Age
    {
        get { return _age; }
        set { _age = value; }
    }
}

Friday, September 4, 2015

Universal Windows apps?

Universal Windows apps

https://msdn.microsoft.com/en-us/library/Dn975273.aspx

Friday, July 24, 2015

Server less than $500

NUC5i5RYH $360
16GB Kit (8GBx2) DDR3-1600 MT/s (PC3-12800) 204-Pin SODIMM $92.96
WD BLACK SERIES WD7500BPKX 750GB 7200 RPM $60

Requirement:

smtp server
web server
db server (MySQL or MariaDB)
PHP

* Wordpress uses PHP and MySQL

Friday, July 3, 2015

OS X synergys test in bash

OS X synergys test in bash

Error message: FATAL: An error occurred: assistive devices does not trust this process, allow it in system settings.

Solution:
Enable the accessibility of 'Terminal.app' or 'iTerm.app'

Tuesday, March 10, 2015

Special characters in Octave or Gnuplot

https://www.gnu.org/software/octave/doc/interpreter/Which-TeX-symbols-are-implemented-in-dialog-functions_003f.html

http://gnuplot.sourceforge.net/docs_4.2/node411.html

http://www.math.u-bordeaux1.fr/~mleguebe/docs/gnuplot_liite34.pdf

Tuesday, February 24, 2015

Used Apple TV

Top


Front

Left



Back

Right

Bottom

Power cable

Remote control top

Remote control  bottom

Play apple trailer




Main screen


Diverse menu provided

Subtitle is also possible


Now restoring it to factory default


Saturday, February 21, 2015

Racing wheels (rims)

Volk rims

http://www.rayswheels.co.jp/products/brand_detail.php?lang=ja&brand=VOLK
http://www.rayswheels.co.jp/products/wheel.php?lang=ja&wheel=TE37ULTRA

Good place to check for a car

http://www.tirerack.com/

Available rims for Kia Rio

http://www.tirerack.com/wheels/results.jsp?&autoMake=Kia&autoModel=Rio+5-Door&autoYear=2015&autoModClar=EX&filterFinish=All&filterSize=All&filterSpecial=false&filterNew=All&filterWeight=All&filterBrand=All&sort=PriceR

BBS rims

http://www.bbs-usa.com/road-wheels-overview.cfm

Wednesday, February 18, 2015

Create user for pi

sudo adduser

sudo deluser

sudo adduser

usermod -a -G group1,group2

groups

Monday, February 16, 2015

Recovery from Semaphore leak

There is no way to recover the semaphore. Therefore, if a process is going to be killed or crashed, using semaphore will note be a good idea. In other words, the process needs to manage semaphore create/release very carefully.

http://stackoverflow.com/questions/2053679/how-do-i-recover-a-semaphore-when-the-process-that-decremented-it-to-zero-crashe

Saturday, February 14, 2015

Lego NXT communication protocol

http://www.robotappstore.com/Knowledge-Base/Introduction-To-Lego-NXT-Programming/32.html

Friday, February 13, 2015

Google gave up XMPP server-to-server federation!

Consequently, other XMPP servers cannot talk to google talk (or hangout).

http://www.zdnet.com/article/google-moves-away-from-the-xmpp-open-messaging-standard/

Thursday, February 12, 2015

Invalid or unreadable path specified for ssl_ca_path. at /opt/local/lib/perl5/site_perl/5.16.3/XML/Stream.pm line 640.

$ssl_cert_dir


XML::Stream CPAN install error

Make sure that /etc/hosts has the information of the  $HOSTNAME

Perl CPAN module install

http://perl.about.com/od/packagesmodules/qt/perlcpan.htm

perl -MCPAN -e 'install HTML::Template'

* sudo may be required!

OSX Semaphore probem


http://stackoverflow.com/questions/15171121/sem-wait-posix-api-and-osx
http://charette.no-ip.com:81/programming/2010-01-13_PosixSemaphores/#problem

Wednesday, February 4, 2015

Saturday, January 10, 2015

Unison profiles

Unison profile location

Linux: ~/.unison
OS X: ~/Library/Application Support/Unison

ar*: unison archive
fp*: unison fingerprint cache

A general recommendation for trouble shooting is to delete the archive files (ar*) on both replicas.

Blog Archive