Wednesday, October 26, 2016

CLISP: For loop Example

Command:

$ cat for_loop.lisp


Result:

(loop for x in '(hello world 123)
      do (print x))


Command:

$ clisp for_loop.lisp


Result:

HELLO
WORLD
123

CLISP: Command-line Argument Parsing Example

Command:

$ cat command_line_args_parsing.lisp


Result:

(print *args*)


Command:

$ clisp command_line_args_parsing.lisp Hello World 123


Result:

("Hello" "World" "123")

macOS Sierra: gnuplot: Installing and Plotting

Command:

$ gnuplot


Result:

G N U P L O T
Version 5.0 patchlevel 5    last modified 2016-10-02

Copyright (C) 1986-1993, 1998, 2004, 2007-2016
Thomas Williams, Colin Kelley and many others

gnuplot home:     http://www.gnuplot.info
faq, bugs, etc:   type "help FAQ"
immediate help:   type "help"  (plot window: hit 'h')

Terminal type set to 'unknown'


Command:

gnuplot> set terminal x11
Terminal type set to 'unknown'
                      ^
         unknown or ambiguous terminal type; type just 'set terminal' for a list


Command:

gnuplot> exit
$ brew uninstall gnuplot


Result:

Uninstalling /usr/local/Cellar/gnuplot/5.0.5... (45 files, 2.3M)


Command:

$ brew install gnuplot --with-aquaterm --with-x11


Result:

==> Using the sandbox
==> Downloading https://downloads.sourceforge.net/project/gnuplot/gnuplot/5.0.5/gnuplot-5.0.5.tar.gz
==> Downloading from http://jaist.dl.sourceforge.net/project/gnuplot/gnuplot/5.0.5/gnuplot-5.0.5.tar.gz
######################################################################## 100.0%
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/gnuplot/5.0.5 --with-readline=/usr/local/opt/readline --disable-wxwidgets --without-cairo --wit
==> make
==> make install
==> Caveats
AquaTerm support will only be built into Gnuplot if the standard AquaTerm
package from SourceForge has already been installed onto your system.
If you subsequently remove AquaTerm, you will need to uninstall and then
reinstall Gnuplot.
==> Summary
🍺  /usr/local/Cellar/gnuplot/5.0.5: 47 files, 2.5M, built in 59 seconds


Command:

$ gnuplot


Result:

G N U P L O T
Version 5.0 patchlevel 5    last modified 2016-10-02

Copyright (C) 1986-1993, 1998, 2004, 2007-2016
Thomas Williams, Colin Kelley and many others

gnuplot home:     http://www.gnuplot.info
faq, bugs, etc:   type "help FAQ"
immediate help:   type "help"  (plot window: hit 'h')

Terminal type set to 'x11'


Command:

gnuplot> plot sin(x)


Result:


Gnuplot Sine(x)

The Code (2001): Finnish-made Documentary about GNU/Linux

Richard Stallman: Interview in Zurich: Radio Stadtfilter

Richard Stallman

Richard Stallman: We're heading for a total disaster

Richard Stallman

Monday, October 24, 2016

macOS Sierra: Mupen64Plus: Installation: mupen64plus-core

Command:

$ git clone https://github.com/mupen64plus/mupen64plus-core.git


Result:

Cloning into 'mupen64plus-core'...
remote: Counting objects: 9361, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 9361 (delta 4), reused 0 (delta 0), pack-reused 9340
Receiving objects: 100% (9361/9361), 10.59 MiB | 1.81 MiB/s, done.
Resolving deltas: 100% (7055/7055), done.


Command:

$ cd mupen64plus-core/
$ cd projects/unix/
$ make all


Result:

Makefile:257: Using SDL 1.2 libraries
    CC  _obj/ai/ai_controller.o
    CC  _obj/api/callbacks.o
    CC  _obj/api/common.o
    CC  _obj/api/config.o
    CC  _obj/api/debugger.o
    CC  _obj/api/frontend.o
    CC  _obj/api/vidext.o
    CC  _obj/main/main.o
    CC  _obj/main/util.o
    CC  _obj/main/cheat.o
    CC  _obj/main/eep_file.o
    CC  _obj/main/eventloop.o
    CC  _obj/main/fla_file.o
    CC  _obj/main/md5.o
    CC  _obj/main/mpk_file.o
    CC  _obj/main/profile.o
    CC  _obj/main/rom.o
    CC  _obj/main/savestates.o
    CC  _obj/main/sdl_key_converter.o
    CC  _obj/main/sra_file.o
    CC  _obj/main/workqueue.o
    CC  _obj/memory/memory.o
    CC  _obj/pi/cart_rom.o
    CC  _obj/pi/flashram.o
    CC  _obj/pi/pi_controller.o
    CC  _obj/pi/sram.o
    CC  _obj/plugin/emulate_game_controller_via_input_plugin.o
    CC  _obj/plugin/emulate_speaker_via_audio_plugin.o
    CC  _obj/plugin/get_time_using_C_localtime.o
    CC  _obj/plugin/rumble_via_input_plugin.o
    CC  _obj/plugin/plugin.o
    CC  _obj/plugin/dummy_video.o
    CC  _obj/plugin/dummy_audio.o
    CC  _obj/plugin/dummy_input.o
    CC  _obj/plugin/dummy_rsp.o
    CC  _obj/r4300/r4300.o
    CC  _obj/r4300/cached_interp.o
    CC  _obj/r4300/cp0.o
    CC  _obj/r4300/cp1.o
    CC  _obj/r4300/exception.o
    CC  _obj/r4300/instr_counters.o
    CC  _obj/r4300/interupt.o
    CC  _obj/r4300/mi_controller.o
    CC  _obj/r4300/pure_interp.o
    CC  _obj/r4300/r4300_core.o
    CC  _obj/r4300/recomp.o
    CC  _obj/r4300/reset.o
    CC  _obj/r4300/tlb.o
    CC  _obj/rdp/fb.o
    CC  _obj/rdp/rdp_core.o
    CC  _obj/ri/rdram.o
    CC  _obj/ri/rdram_detection_hack.o
    CC  _obj/ri/ri_controller.o
    CC  _obj/rsp/rsp_core.o
    CC  _obj/si/af_rtc.o
    CC  _obj/si/cic.o
    CC  _obj/si/eeprom.o
    CC  _obj/si/game_controller.o
    CC  _obj/si/mempak.o
    CC  _obj/si/n64_cic_nus_6105.o
    CC  _obj/si/pif.o
    CC  _obj/si/rumblepak.o
    CC  _obj/si/si_controller.o
    CC  _obj/vi/vi_controller.o
    CC  _obj/osal/dynamiclib_unix.o
    CC  _obj/osal/files_unix.o
    CC  _obj/r4300/x86_64/assemble.o
    CC  _obj/r4300/x86_64/gbc.o
    CC  _obj/r4300/x86_64/gcop0.o
    CC  _obj/r4300/x86_64/gcop1.o
    CC  _obj/r4300/x86_64/gcop1_d.o
    CC  _obj/r4300/x86_64/gcop1_l.o
    CC  _obj/r4300/x86_64/gcop1_s.o
    CC  _obj/r4300/x86_64/gcop1_w.o
    CC  _obj/r4300/x86_64/gr4300.o
    CC  _obj/r4300/x86_64/gregimm.o
    CC  _obj/r4300/x86_64/gspecial.o
    CC  _obj/r4300/x86_64/gtlb.o
    CC  _obj/r4300/x86_64/regcache.o
    CC  _obj/r4300/x86_64/rjump.o
    CC  _obj/main/zip/ioapi.o
    CC  _obj/main/zip/zip.o
    CC  _obj/main/zip/unzip.o
    CXX _obj/osd/screenshot.o
    CXX _obj/osd/OGLFT.o
../../src/osd/OGLFT.cpp:376:5: warning: all paths through this function will call itself [-Winfinite-recursion]
    {
    ^
1 warning generated.
    CXX _obj/osd/osd.o
    LD  libmupen64plus.dylib
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
ld: warning: -read_only_relocs cannot be used with x86_64
if [ "" != "" ]; then ln -sf libmupen64plus.dylib ; fi


Command:

$ sudo make install


Result:

Makefile:257: Using SDL 1.2 libraries
install -d "/usr/local/lib"
install -m 0644  libmupen64plus.dylib "/usr/local/lib"
install -d "/usr/local/share/mupen64plus"
install -m 0644 ../../data/* "/usr/local/share/mupen64plus"
install -d "/usr/local/include/mupen64plus"
install -m 0644 ../../src/api/m64p_*.h "/usr/local/include/mupen64plus"
true   "/usr/local/lib"
if [ ! -e "/usr/local/lib/" ]; then ln -sf "libmupen64plus.dylib" "/usr/local/lib/"; fi


Command:

$ ls -al /usr/local/lib/libmupen64plus.dylib


Result:

-rw-r--r--  1 root  wheel  1222400 Oct 24 18:18 /usr/local/lib/libmupen64plus.dylib

Evolution of First Levels in Mario games

Shigeru Miyamoto (宮本茂): How Nintendo made Mario's most iconic level

Shigeru Miyamoto