From 2074edea81ea129085f451792b5ef601bbba46c2 Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 19 Mar 2019 12:04:02 +0100 Subject: new stuff and sort stuff --- 00_blog/00015_Admin/00040_Oneliners/index.md | 18 +++ .../00030_The-Hell-of-Autotools/index.md | 74 --------- .../00040_Various-notes-on-Building/index.md | 93 ----------- 00_blog/00018_Building/index.md | 3 - .../00030_Computer-Games/00020_MERP-World/index.md | 31 ++++ .../00020_MERP-World/merp1.png | Bin 0 -> 145864 bytes .../00020_MERP-World/merp2.png | Bin 0 -> 272458 bytes .../00020_MERP-World/merp3.png | Bin 0 -> 194202 bytes .../00020_MERP-World/merp4.png | Bin 0 -> 51888 bytes .../00110_Blender-Ball-Maze/ballmaze.mp4 | Bin 0 -> 1277005 bytes .../00110_Blender-Ball-Maze/ballmaze.webm | Bin 0 -> 730823 bytes .../00110_Blender-Ball-Maze/index.md | 18 +++ .../00030_Computer-Games/00150_TU-Racer/index.md | 21 +++ .../00008_Computer-Science-Literature/index.md | 48 ++++++ 00_blog/00035_Programming/00010_IPC/.index.md.swp | Bin 12288 -> 0 bytes 00_blog/00035_Programming/00010_IPC/index.md | 24 --- .../00030_The-Hell-of-Autotools/index.md | 74 +++++++++ .../00040_Various-notes-on-Building/index.md | 93 +++++++++++ 00_blog/00035_Programming/00018_Building/index.md | 3 + .../00020_Computer-Science-Literature/index.md | 48 ------ 00_blog/00035_Programming/00020_IPC/.index.md.swp | Bin 0 -> 12288 bytes 00_blog/00035_Programming/00020_IPC/index.md | 24 +++ .../00035_Programming/00030_Mandelmaister/1.jpg | Bin 0 -> 177318 bytes .../00035_Programming/00030_Mandelmaister/2.jpg | Bin 0 -> 48798 bytes .../00035_Programming/00030_Mandelmaister/3.jpg | Bin 0 -> 142330 bytes .../00035_Programming/00030_Mandelmaister/4.jpg | Bin 0 -> 96506 bytes .../00035_Programming/00030_Mandelmaister/index.md | 44 ++++++ .../00030_Mandelmaister/mandelmaister.jar | Bin 0 -> 9024 bytes .../00035_Programming/00030_Mandelmaister/shot.jpg | Bin 0 -> 53051 bytes .../00035_Programming/00030_Mandelmaister/src.rar | Bin 0 -> 4269 bytes .../00035_Programming/00040_3DS-Loader/3ds_1.png | Bin 0 -> 45088 bytes .../00035_Programming/00040_3DS-Loader/3ds_2.png | Bin 0 -> 51134 bytes .../00035_Programming/00040_3DS-Loader/3ds_3.png | Bin 0 -> 77940 bytes .../00035_Programming/00040_3DS-Loader/3ds_4.png | Bin 0 -> 79178 bytes .../00035_Programming/00040_3DS-Loader/3ds_5.png | Bin 0 -> 108655 bytes .../00035_Programming/00040_3DS-Loader/index.md | 18 +++ .../00035_Programming/00040_Hex-Converter/hex.png | Bin 0 -> 14814 bytes .../00040_Hex-Converter/hexman.html | 170 +++++++++++++++++++++ .../00035_Programming/00040_Hex-Converter/index.md | 10 ++ .../00050_Optimialius-Square-Packing/index.md | 15 ++ .../00050_Optimialius-Square-Packing/opt1.png | Bin 0 -> 49349 bytes .../00050_Optimialius-Square-Packing/opt2.png | Bin 0 -> 87003 bytes .../00050_Optimialius-Square-Packing/opt3.png | Bin 0 -> 23491 bytes .../00100_Webkit-Keyboardless-Navigation/index.md | 29 ++++ .../00100_Webkit-Keyboardless-Navigation/v1.ogv | Bin 0 -> 1005278 bytes 00_blog/00035_Programming/index.md | 2 +- 00_blog/00040_Hex-Converter/hex.png | Bin 14814 -> 0 bytes 00_blog/00040_Hex-Converter/hexman.html | 170 --------------------- 00_blog/00040_Hex-Converter/index.md | 10 -- .../00100_Webkit-Keyboardless-Navigation/index.md | 29 ---- .../00100_Webkit-Keyboardless-Navigation/v1.ogv | Bin 1005278 -> 0 bytes 51 files changed, 617 insertions(+), 452 deletions(-) delete mode 100644 00_blog/00018_Building/00030_The-Hell-of-Autotools/index.md delete mode 100644 00_blog/00018_Building/00040_Various-notes-on-Building/index.md delete mode 100644 00_blog/00018_Building/index.md create mode 100644 00_blog/00030_Computer-Games/00020_MERP-World/index.md create mode 100644 00_blog/00030_Computer-Games/00020_MERP-World/merp1.png create mode 100644 00_blog/00030_Computer-Games/00020_MERP-World/merp2.png create mode 100644 00_blog/00030_Computer-Games/00020_MERP-World/merp3.png create mode 100644 00_blog/00030_Computer-Games/00020_MERP-World/merp4.png create mode 100644 00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/ballmaze.mp4 create mode 100644 00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/ballmaze.webm create mode 100644 00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/index.md create mode 100644 00_blog/00030_Computer-Games/00150_TU-Racer/index.md create mode 100644 00_blog/00035_Programming/00008_Computer-Science-Literature/index.md delete mode 100644 00_blog/00035_Programming/00010_IPC/.index.md.swp delete mode 100644 00_blog/00035_Programming/00010_IPC/index.md create mode 100644 00_blog/00035_Programming/00018_Building/00030_The-Hell-of-Autotools/index.md create mode 100644 00_blog/00035_Programming/00018_Building/00040_Various-notes-on-Building/index.md create mode 100644 00_blog/00035_Programming/00018_Building/index.md delete mode 100644 00_blog/00035_Programming/00020_Computer-Science-Literature/index.md create mode 100644 00_blog/00035_Programming/00020_IPC/.index.md.swp create mode 100644 00_blog/00035_Programming/00020_IPC/index.md create mode 100644 00_blog/00035_Programming/00030_Mandelmaister/1.jpg create mode 100644 00_blog/00035_Programming/00030_Mandelmaister/2.jpg create mode 100644 00_blog/00035_Programming/00030_Mandelmaister/3.jpg create mode 100644 00_blog/00035_Programming/00030_Mandelmaister/4.jpg create mode 100644 00_blog/00035_Programming/00030_Mandelmaister/index.md create mode 100644 00_blog/00035_Programming/00030_Mandelmaister/mandelmaister.jar create mode 100644 00_blog/00035_Programming/00030_Mandelmaister/shot.jpg create mode 100644 00_blog/00035_Programming/00030_Mandelmaister/src.rar create mode 100644 00_blog/00035_Programming/00040_3DS-Loader/3ds_1.png create mode 100644 00_blog/00035_Programming/00040_3DS-Loader/3ds_2.png create mode 100644 00_blog/00035_Programming/00040_3DS-Loader/3ds_3.png create mode 100644 00_blog/00035_Programming/00040_3DS-Loader/3ds_4.png create mode 100644 00_blog/00035_Programming/00040_3DS-Loader/3ds_5.png create mode 100644 00_blog/00035_Programming/00040_3DS-Loader/index.md create mode 100644 00_blog/00035_Programming/00040_Hex-Converter/hex.png create mode 100644 00_blog/00035_Programming/00040_Hex-Converter/hexman.html create mode 100644 00_blog/00035_Programming/00040_Hex-Converter/index.md create mode 100644 00_blog/00035_Programming/00050_Optimialius-Square-Packing/index.md create mode 100644 00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt1.png create mode 100644 00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt2.png create mode 100644 00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt3.png create mode 100644 00_blog/00035_Programming/00100_Webkit-Keyboardless-Navigation/index.md create mode 100644 00_blog/00035_Programming/00100_Webkit-Keyboardless-Navigation/v1.ogv delete mode 100644 00_blog/00040_Hex-Converter/hex.png delete mode 100644 00_blog/00040_Hex-Converter/hexman.html delete mode 100644 00_blog/00040_Hex-Converter/index.md delete mode 100644 00_blog/00100_Webkit-Keyboardless-Navigation/index.md delete mode 100644 00_blog/00100_Webkit-Keyboardless-Navigation/v1.ogv diff --git a/00_blog/00015_Admin/00040_Oneliners/index.md b/00_blog/00015_Admin/00040_Oneliners/index.md index c16a515..a4384a0 100644 --- a/00_blog/00015_Admin/00040_Oneliners/index.md +++ b/00_blog/00015_Admin/00040_Oneliners/index.md @@ -39,3 +39,21 @@ not really a one-lier but will print 256 colors in a bash: fi done +## Web Video and Audio + +convert a video to the **WebM** container format, accommodating the **VP8** video codec +and the **MP4** container accommodating the **H.264** codec. + +Providing this two versions of your video should result in a decent coverage according to: + + + ffmpeg -i video.mp4 -vcodec vp8 mazeball.webm + ffmpeg -i video.mp4 -vcodec h264 mazeball.mp4 + +If you require an audio codec as well use **Vorbis** in **WebM** and +**AAC** inside **MP4** respectively. + +Yet before making a final decision, consider that many modern devices +have hardware to assist in video and audio decoding, saving on CPU and +battery consumption. + diff --git a/00_blog/00018_Building/00030_The-Hell-of-Autotools/index.md b/00_blog/00018_Building/00030_The-Hell-of-Autotools/index.md deleted file mode 100644 index 746bd82..0000000 --- a/00_blog/00018_Building/00030_The-Hell-of-Autotools/index.md +++ /dev/null @@ -1,74 +0,0 @@ -The Hell of Autotools -===================== - March 19, 2018 -In this trivial example we compile a custom **webkit2gtk+ extension** with -**autotools**. For a start we need to provide two files, `Makefile.am` -and `configure.ac`, beside our actual `ext.c` source file, which contains -the extension code itself. - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.c .numberLines} -// File: ext.c // - -#include - -G_MODULE_EXPORT void -webkit_web_extension_initialize_with_user_data (WebKitWebExtension *extension, - GVariant *user_data) -{ - g_print("Hello Extension!\n"); -} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.makefile .numberLines} -# File: Makefile.am # - -webextension_LTLIBRARIES = libmyappwebextension.la -webextensiondir = /home/miguel/temp - -WEB_EXTENSION_CFLAGS = `pkg-config --cflags webkit2gtk-web-extension-4.0` -WEB_EXTENSION_LIBS2 = `pkg-config --libs webkit2gtk-web-extension-4.0` - -libmyappwebextension_la_SOURCES = ext.c -libmyappwebextension_la_CFLAGS = $(WEB_EXTENSION_CFLAGS) -libmyappwebextension_la_LIBADD = $(WEB_EXTENSION_LIBS) -libmyappwebextension_la_LDFLAGS = -module -avoid-version -no-undefined $(WEB_EXTENSION_LIBS2) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.makefile .numberLines} -# File: configure.ac # - -AC_PREREQ([2.69]) -AC_INIT(ext,0.1,test@example.com) -AM_INIT_AUTOMAKE -AC_CONFIG_SRCDIR([ext.c]) -AC_PROG_CC -LT_INIT -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Put the above files in a new fresh directory and you are ready to see the -powers of autotools in action. - -Run the following commands on your pash prompt: - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.bash} -touch NEWS README AUTHORS ChangeLog -aclocal -autoconf -automake --add-missing -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -After this steps, we end up with 18 files in our directory. Finally we -can _configure_, _build_ and _install_ our extension. The following -commands will probably look familiar. Note that the _configure_ step -generates 6 additional files, totaling in **24 files** before the actual -_make_ command is run. - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.bash} -./configure -make -make install -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -... just to compile one **single C file**. diff --git a/00_blog/00018_Building/00040_Various-notes-on-Building/index.md b/00_blog/00018_Building/00040_Various-notes-on-Building/index.md deleted file mode 100644 index 0639063..0000000 --- a/00_blog/00018_Building/00040_Various-notes-on-Building/index.md +++ /dev/null @@ -1,93 +0,0 @@ -# Various Notes on Building - -## Webkit - -Let’s compile a release with debug info and install to /usr/local - -~~~~~~ {.bash} -wget https://webkitgtk.org/releases/webkitgtk-2.20.0.tar.xz -tar -xvf webkitgtk-2.20.0.tar.xz -cd webkitgtk-2.20.0 -# install all the libs that will be reported missing in the next step. -# I could not find the woff2 stuff in debian so skipped it... -cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_WOFF2=NO -GNinja -# this takes about 30minutes on my i7-4790K .. zzzzz..zzz -ninja -sudo ninja install -~~~~~~~~~~~ - - pkg-config - - pkg-config uses our new build now: - - [1] https://trac.webkit.org/wiki/BuildingGtk - [2] https://webkitgtk.org/ - -## GCC - -This is how I build gcc (5.2.0) and binutils (2.25.1). Check [5] first. - -* unpack binutils-x.y.z -* create a new directory binutils-x.y.z-build and inside it run the following commands: - -~~~~~~ {.bash} - $ ../binutils-x.y.z/configure --disable-nls --with-sysroot --enable-targets=all - $ make -j4 - $ make install -~~~~~~~~~~~~ - -* unpack gcc-x.y.z and run the contrib/download_prerequisites script inside. -* create a new directory: gcc-x.y.z-build and inside it run: - -~~~~~~ {.bash} - $ ../gcc-x.y.z/configure --disable-nls --enable-languages=c,c++ --enable-threads - $ make -j4 - $ make install -~~~~~~~~~~~~ - - REF: - - [1] binutils and gcc README files. - [2] https://gcc.gnu.org/install/ - [3] http://wiki.osdev.org/Building_GCC - [4] http://stackoverflow.com/questions/1726042/recipe-for-compiling-binutils-gcc-together - [5] https://gcc.gnu.org/install/prerequisites.html - -## Linux - - cd linux-source-[xxx] - make mrproper - cp someconfig .config -i - make oldconfig - make menuconfig - make localmodconfig - make localyesconfig - make - (OPT) make modules - su - make install - (OPT) make modules_install - (OPT) update-intiramfs -c -k [kernel-postfix] - - (REMOVE UNWANTED FILES FROM BOOT!) - update-grub - grub-install /dev/sda - reboot - - -## Clang - - http://llvm.org/releases/3.7.0/docs/CMake.html - http://clang.llvm.org/get_started.html - put MAKEFLAGS="-j8" or similar in front of your CMake invocations. - - extracted llvm to ~/temp/clang/llvm-3.7.0.src/ - extracted clang to ~/temp/clang/llvm-3.7.0.src/tools/clang/ - extracted compiler-rt to ~/temp/clang/llvm-3.7.0.src/projects/compiler-rt - extracted libcxx to ~/temp/clang/llvm-3.7.0.src/projects/libcxx - - $ cd ~/temp/clang/llvm-3.7.0-build - $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/miguel/opt/llvm-3.7.0 ../llvm-3.7.0.src - $ cmake --build . - $ cmake --build . --target install - diff --git a/00_blog/00018_Building/index.md b/00_blog/00018_Building/index.md deleted file mode 100644 index 1ee18e7..0000000 --- a/00_blog/00018_Building/index.md +++ /dev/null @@ -1,3 +0,0 @@ -# Building - -Some Random Notes about Building Software. diff --git a/00_blog/00030_Computer-Games/00020_MERP-World/index.md b/00_blog/00030_Computer-Games/00020_MERP-World/index.md new file mode 100644 index 0000000..31f1f8d --- /dev/null +++ b/00_blog/00030_Computer-Games/00020_MERP-World/index.md @@ -0,0 +1,31 @@ + 2005 +# MERP World + +A quite extensive app supporting the game-master in the Middle Earth +role play game. Coded together with my good friend Nick. + +## Features + +* Weather +* Vegetation +* Random Events +* Moon Phases +* Generating People +* Generating Enemies +* Generating complete Villages +* and many more... + +## Screenshots +![](merp2.png)\ +![](merp1.png)\ +![](merp3.png) +![](merp4.png) + +## Source Code + +The source code is confidental, sorry. + + diff --git a/00_blog/00030_Computer-Games/00020_MERP-World/merp1.png b/00_blog/00030_Computer-Games/00020_MERP-World/merp1.png new file mode 100644 index 0000000..3ae7ebc Binary files /dev/null and b/00_blog/00030_Computer-Games/00020_MERP-World/merp1.png differ diff --git a/00_blog/00030_Computer-Games/00020_MERP-World/merp2.png b/00_blog/00030_Computer-Games/00020_MERP-World/merp2.png new file mode 100644 index 0000000..d57a9e9 Binary files /dev/null and b/00_blog/00030_Computer-Games/00020_MERP-World/merp2.png differ diff --git a/00_blog/00030_Computer-Games/00020_MERP-World/merp3.png b/00_blog/00030_Computer-Games/00020_MERP-World/merp3.png new file mode 100644 index 0000000..719eb4f Binary files /dev/null and b/00_blog/00030_Computer-Games/00020_MERP-World/merp3.png differ diff --git a/00_blog/00030_Computer-Games/00020_MERP-World/merp4.png b/00_blog/00030_Computer-Games/00020_MERP-World/merp4.png new file mode 100644 index 0000000..f57252a Binary files /dev/null and b/00_blog/00030_Computer-Games/00020_MERP-World/merp4.png differ diff --git a/00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/ballmaze.mp4 b/00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/ballmaze.mp4 new file mode 100644 index 0000000..396e3c4 Binary files /dev/null and b/00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/ballmaze.mp4 differ diff --git a/00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/ballmaze.webm b/00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/ballmaze.webm new file mode 100644 index 0000000..9ded902 Binary files /dev/null and b/00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/ballmaze.webm differ diff --git a/00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/index.md b/00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/index.md new file mode 100644 index 0000000..3e22fab --- /dev/null +++ b/00_blog/00030_Computer-Games/00110_Blender-Ball-Maze/index.md @@ -0,0 +1,18 @@ + June 2017 +# Ball Maze + +A quick little game put together using **Blender**'s built-in **Game Engine**. +Now I regret not setting up a shadow to easier understand the position of the +ball. Note that the Game Engine will most probably not be part of Blender 2.8 anymore. + + + + diff --git a/00_blog/00030_Computer-Games/00150_TU-Racer/index.md b/00_blog/00030_Computer-Games/00150_TU-Racer/index.md new file mode 100644 index 0000000..2cbbe1a --- /dev/null +++ b/00_blog/00030_Computer-Games/00150_TU-Racer/index.md @@ -0,0 +1,21 @@ + June 2005 +# TU Racer + +My top rated Game Project from University Times implemented for the +legendary _Computergraphik_ II & III Courses. + +You participate in deadly races around the Technical University, as well +as in psychodelic worlds to earn money for your tuition fees, which the +Austrian government just invented. (back then in 2005...) + +The game is using a custom game engine based on raw OpenGL. + +## Features + +* Precalculated Lightmaps +* View Frustum Culling +* Split-screen Multiplayer +* Ghost Car / Highscores +* Lights and Transparency +* 3 Unique Levels +* 4 Cars with individual physics diff --git a/00_blog/00035_Programming/00008_Computer-Science-Literature/index.md b/00_blog/00035_Programming/00008_Computer-Science-Literature/index.md new file mode 100644 index 0000000..114294e --- /dev/null +++ b/00_blog/00035_Programming/00008_Computer-Science-Literature/index.md @@ -0,0 +1,48 @@ + +# Comp Science Literature +This is a list of some books, focusing on topics around computer science, which I recently read or am currently reading or want to read :P + +* Anthony Williams, C++ Concurrency in Action: Practical Multihreading +* The Boost C++ Libraries, Boris Schäling (Online book) +* Meyers, Effective C++ (Addison-Wesley) C++98 only? +* Meyers, More Effective C++ (Addison-Wesley) C++98 only? +* Meyers, Effective STL. C++98 only? +* Sutter, Exceptional C++ +* Sutter, More Exceptional C++ +* Karlson, Beyond the C++ Standard Library: An Introduction to Boost 1st Edition +* Maybe Something on Multiprocessing (?) +* Donald Knuth. The Art Of Computer Programming +* Algorithms 3rd Edition (by Cormen, Leiserson, Rivest, Stein) +* Jonathan Bartlett. Programming from the Ground Up +* C++ in a Nutshell (O’REILLEY, by Lischner) +* C++ Primer (5th Edition) by Lippman, Lajoie, Moo +* The C++ Programming Language 4th Edition +* Dive into Python (2 and 3) by Mark Pilgrim +* Version Control with Git (O’REILLEY, by Loeliger & McCullough) (next: 9(10) ?) +* The Linux Command Line, by William Shotts (http://linuxcommand.org/tlcl.php) +* Debian, The Administrators Handbook (by Hertzog and Mas) +* Absolute FreeBSD by Michael W. Lucas +* Modern Operating Systems, Third Edition (by Andrew S. Tannebaum) +* Linux Device Drivers (O’REILLEY, by Corbert, Rubini, Kroah-Hartman) +* Linux Kernel in a Nutshell (O’REILLEY, Greg Kroah-Hartman) +* Concrete Math (2nd) +* STOC '83 Proceedings of the fifteenth annual ACM symposium on Theory of computing / Primitives for the manipulation of general subdivisions and the computation of Voronoi diagrams +* sedgewick & waynes algorithms +* books from appendix, from programming from ground up? + +## What every programmer should know about + +* Undefined behaviour: http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html +* Memory: http://lwn.net/Articles/250967/ +* Floating point arithmetic: https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html + +## some areas of interest + +Some General Topics I am reasearching right now (or plan to do it). Or used to reasearch... + +* Neuronal Networks +* Deep Learning +* Random Forrests (and other techniques based on Decision Trees) +* Simmulated Annealing +* (Linear) Integer Programming + diff --git a/00_blog/00035_Programming/00010_IPC/.index.md.swp b/00_blog/00035_Programming/00010_IPC/.index.md.swp deleted file mode 100644 index 87e0eaa..0000000 Binary files a/00_blog/00035_Programming/00010_IPC/.index.md.swp and /dev/null differ diff --git a/00_blog/00035_Programming/00010_IPC/index.md b/00_blog/00035_Programming/00010_IPC/index.md deleted file mode 100644 index e42e38f..0000000 --- a/00_blog/00035_Programming/00010_IPC/index.md +++ /dev/null @@ -1,24 +0,0 @@ -# Inter Process Communication - March 14, 2018 - -We can attach nicely to same memory segment from 2 different processes: - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.c .numberLines} -// ipc via shared mem -// attach to shared memory; -key_t my_ftok = ftok("~/surf-webext-dom-shared-mem",'a'); - -int mem_seg=shmget(my_ftok,1024*1024,IPC_CREAT|0660); -if(mem_seg==-1) -{ -g_print("shmget failed: %s\n",strerror(errno)); -} - -shared_buf=shmat(mem_seg,NULL,0); -if(shared_buf==(void*)-1) -{ -g_print("shmat failed: %s\n",strerror(errno)); -} -g_print("attached to shared memory.\n"); -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - diff --git a/00_blog/00035_Programming/00018_Building/00030_The-Hell-of-Autotools/index.md b/00_blog/00035_Programming/00018_Building/00030_The-Hell-of-Autotools/index.md new file mode 100644 index 0000000..746bd82 --- /dev/null +++ b/00_blog/00035_Programming/00018_Building/00030_The-Hell-of-Autotools/index.md @@ -0,0 +1,74 @@ +The Hell of Autotools +===================== + March 19, 2018 +In this trivial example we compile a custom **webkit2gtk+ extension** with +**autotools**. For a start we need to provide two files, `Makefile.am` +and `configure.ac`, beside our actual `ext.c` source file, which contains +the extension code itself. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.c .numberLines} +// File: ext.c // + +#include + +G_MODULE_EXPORT void +webkit_web_extension_initialize_with_user_data (WebKitWebExtension *extension, + GVariant *user_data) +{ + g_print("Hello Extension!\n"); +} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.makefile .numberLines} +# File: Makefile.am # + +webextension_LTLIBRARIES = libmyappwebextension.la +webextensiondir = /home/miguel/temp + +WEB_EXTENSION_CFLAGS = `pkg-config --cflags webkit2gtk-web-extension-4.0` +WEB_EXTENSION_LIBS2 = `pkg-config --libs webkit2gtk-web-extension-4.0` + +libmyappwebextension_la_SOURCES = ext.c +libmyappwebextension_la_CFLAGS = $(WEB_EXTENSION_CFLAGS) +libmyappwebextension_la_LIBADD = $(WEB_EXTENSION_LIBS) +libmyappwebextension_la_LDFLAGS = -module -avoid-version -no-undefined $(WEB_EXTENSION_LIBS2) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.makefile .numberLines} +# File: configure.ac # + +AC_PREREQ([2.69]) +AC_INIT(ext,0.1,test@example.com) +AM_INIT_AUTOMAKE +AC_CONFIG_SRCDIR([ext.c]) +AC_PROG_CC +LT_INIT +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Put the above files in a new fresh directory and you are ready to see the +powers of autotools in action. + +Run the following commands on your pash prompt: + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.bash} +touch NEWS README AUTHORS ChangeLog +aclocal +autoconf +automake --add-missing +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +After this steps, we end up with 18 files in our directory. Finally we +can _configure_, _build_ and _install_ our extension. The following +commands will probably look familiar. Note that the _configure_ step +generates 6 additional files, totaling in **24 files** before the actual +_make_ command is run. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.bash} +./configure +make +make install +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +... just to compile one **single C file**. diff --git a/00_blog/00035_Programming/00018_Building/00040_Various-notes-on-Building/index.md b/00_blog/00035_Programming/00018_Building/00040_Various-notes-on-Building/index.md new file mode 100644 index 0000000..0639063 --- /dev/null +++ b/00_blog/00035_Programming/00018_Building/00040_Various-notes-on-Building/index.md @@ -0,0 +1,93 @@ +# Various Notes on Building + +## Webkit + +Let’s compile a release with debug info and install to /usr/local + +~~~~~~ {.bash} +wget https://webkitgtk.org/releases/webkitgtk-2.20.0.tar.xz +tar -xvf webkitgtk-2.20.0.tar.xz +cd webkitgtk-2.20.0 +# install all the libs that will be reported missing in the next step. +# I could not find the woff2 stuff in debian so skipped it... +cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_WOFF2=NO -GNinja +# this takes about 30minutes on my i7-4790K .. zzzzz..zzz +ninja +sudo ninja install +~~~~~~~~~~~ + + pkg-config + + pkg-config uses our new build now: + + [1] https://trac.webkit.org/wiki/BuildingGtk + [2] https://webkitgtk.org/ + +## GCC + +This is how I build gcc (5.2.0) and binutils (2.25.1). Check [5] first. + +* unpack binutils-x.y.z +* create a new directory binutils-x.y.z-build and inside it run the following commands: + +~~~~~~ {.bash} + $ ../binutils-x.y.z/configure --disable-nls --with-sysroot --enable-targets=all + $ make -j4 + $ make install +~~~~~~~~~~~~ + +* unpack gcc-x.y.z and run the contrib/download_prerequisites script inside. +* create a new directory: gcc-x.y.z-build and inside it run: + +~~~~~~ {.bash} + $ ../gcc-x.y.z/configure --disable-nls --enable-languages=c,c++ --enable-threads + $ make -j4 + $ make install +~~~~~~~~~~~~ + + REF: + + [1] binutils and gcc README files. + [2] https://gcc.gnu.org/install/ + [3] http://wiki.osdev.org/Building_GCC + [4] http://stackoverflow.com/questions/1726042/recipe-for-compiling-binutils-gcc-together + [5] https://gcc.gnu.org/install/prerequisites.html + +## Linux + + cd linux-source-[xxx] + make mrproper + cp someconfig .config -i + make oldconfig + make menuconfig + make localmodconfig + make localyesconfig + make + (OPT) make modules + su + make install + (OPT) make modules_install + (OPT) update-intiramfs -c -k [kernel-postfix] + + (REMOVE UNWANTED FILES FROM BOOT!) + update-grub + grub-install /dev/sda + reboot + + +## Clang + + http://llvm.org/releases/3.7.0/docs/CMake.html + http://clang.llvm.org/get_started.html + put MAKEFLAGS="-j8" or similar in front of your CMake invocations. + + extracted llvm to ~/temp/clang/llvm-3.7.0.src/ + extracted clang to ~/temp/clang/llvm-3.7.0.src/tools/clang/ + extracted compiler-rt to ~/temp/clang/llvm-3.7.0.src/projects/compiler-rt + extracted libcxx to ~/temp/clang/llvm-3.7.0.src/projects/libcxx + + $ cd ~/temp/clang/llvm-3.7.0-build + $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/miguel/opt/llvm-3.7.0 ../llvm-3.7.0.src + $ cmake --build . + $ cmake --build . --target install + diff --git a/00_blog/00035_Programming/00018_Building/index.md b/00_blog/00035_Programming/00018_Building/index.md new file mode 100644 index 0000000..1ee18e7 --- /dev/null +++ b/00_blog/00035_Programming/00018_Building/index.md @@ -0,0 +1,3 @@ +# Building + +Some Random Notes about Building Software. diff --git a/00_blog/00035_Programming/00020_Computer-Science-Literature/index.md b/00_blog/00035_Programming/00020_Computer-Science-Literature/index.md deleted file mode 100644 index 114294e..0000000 --- a/00_blog/00035_Programming/00020_Computer-Science-Literature/index.md +++ /dev/null @@ -1,48 +0,0 @@ - -# Comp Science Literature -This is a list of some books, focusing on topics around computer science, which I recently read or am currently reading or want to read :P - -* Anthony Williams, C++ Concurrency in Action: Practical Multihreading -* The Boost C++ Libraries, Boris Schäling (Online book) -* Meyers, Effective C++ (Addison-Wesley) C++98 only? -* Meyers, More Effective C++ (Addison-Wesley) C++98 only? -* Meyers, Effective STL. C++98 only? -* Sutter, Exceptional C++ -* Sutter, More Exceptional C++ -* Karlson, Beyond the C++ Standard Library: An Introduction to Boost 1st Edition -* Maybe Something on Multiprocessing (?) -* Donald Knuth. The Art Of Computer Programming -* Algorithms 3rd Edition (by Cormen, Leiserson, Rivest, Stein) -* Jonathan Bartlett. Programming from the Ground Up -* C++ in a Nutshell (O’REILLEY, by Lischner) -* C++ Primer (5th Edition) by Lippman, Lajoie, Moo -* The C++ Programming Language 4th Edition -* Dive into Python (2 and 3) by Mark Pilgrim -* Version Control with Git (O’REILLEY, by Loeliger & McCullough) (next: 9(10) ?) -* The Linux Command Line, by William Shotts (http://linuxcommand.org/tlcl.php) -* Debian, The Administrators Handbook (by Hertzog and Mas) -* Absolute FreeBSD by Michael W. Lucas -* Modern Operating Systems, Third Edition (by Andrew S. Tannebaum) -* Linux Device Drivers (O’REILLEY, by Corbert, Rubini, Kroah-Hartman) -* Linux Kernel in a Nutshell (O’REILLEY, Greg Kroah-Hartman) -* Concrete Math (2nd) -* STOC '83 Proceedings of the fifteenth annual ACM symposium on Theory of computing / Primitives for the manipulation of general subdivisions and the computation of Voronoi diagrams -* sedgewick & waynes algorithms -* books from appendix, from programming from ground up? - -## What every programmer should know about - -* Undefined behaviour: http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html -* Memory: http://lwn.net/Articles/250967/ -* Floating point arithmetic: https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html - -## some areas of interest - -Some General Topics I am reasearching right now (or plan to do it). Or used to reasearch... - -* Neuronal Networks -* Deep Learning -* Random Forrests (and other techniques based on Decision Trees) -* Simmulated Annealing -* (Linear) Integer Programming - diff --git a/00_blog/00035_Programming/00020_IPC/.index.md.swp b/00_blog/00035_Programming/00020_IPC/.index.md.swp new file mode 100644 index 0000000..87e0eaa Binary files /dev/null and b/00_blog/00035_Programming/00020_IPC/.index.md.swp differ diff --git a/00_blog/00035_Programming/00020_IPC/index.md b/00_blog/00035_Programming/00020_IPC/index.md new file mode 100644 index 0000000..e42e38f --- /dev/null +++ b/00_blog/00035_Programming/00020_IPC/index.md @@ -0,0 +1,24 @@ +# Inter Process Communication + March 14, 2018 + +We can attach nicely to same memory segment from 2 different processes: + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.c .numberLines} +// ipc via shared mem +// attach to shared memory; +key_t my_ftok = ftok("~/surf-webext-dom-shared-mem",'a'); + +int mem_seg=shmget(my_ftok,1024*1024,IPC_CREAT|0660); +if(mem_seg==-1) +{ +g_print("shmget failed: %s\n",strerror(errno)); +} + +shared_buf=shmat(mem_seg,NULL,0); +if(shared_buf==(void*)-1) +{ +g_print("shmat failed: %s\n",strerror(errno)); +} +g_print("attached to shared memory.\n"); +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + diff --git a/00_blog/00035_Programming/00030_Mandelmaister/1.jpg b/00_blog/00035_Programming/00030_Mandelmaister/1.jpg new file mode 100644 index 0000000..baad9c8 Binary files /dev/null and b/00_blog/00035_Programming/00030_Mandelmaister/1.jpg differ diff --git a/00_blog/00035_Programming/00030_Mandelmaister/2.jpg b/00_blog/00035_Programming/00030_Mandelmaister/2.jpg new file mode 100644 index 0000000..bb82f07 Binary files /dev/null and b/00_blog/00035_Programming/00030_Mandelmaister/2.jpg differ diff --git a/00_blog/00035_Programming/00030_Mandelmaister/3.jpg b/00_blog/00035_Programming/00030_Mandelmaister/3.jpg new file mode 100644 index 0000000..4fab9a8 Binary files /dev/null and b/00_blog/00035_Programming/00030_Mandelmaister/3.jpg differ diff --git a/00_blog/00035_Programming/00030_Mandelmaister/4.jpg b/00_blog/00035_Programming/00030_Mandelmaister/4.jpg new file mode 100644 index 0000000..8f5054e Binary files /dev/null and b/00_blog/00035_Programming/00030_Mandelmaister/4.jpg differ diff --git a/00_blog/00035_Programming/00030_Mandelmaister/index.md b/00_blog/00035_Programming/00030_Mandelmaister/index.md new file mode 100644 index 0000000..0224c1e --- /dev/null +++ b/00_blog/00035_Programming/00030_Mandelmaister/index.md @@ -0,0 +1,44 @@ + June 2008 +# Mandelmaister - Mandelbrot Fractal Viewer + +My old **Mandelbrot** viewer coded in Java long time ago. + +![](scale_shot.jpg){}\ + +## Supported Set + +The Mandelbrot Set $$z_n^2+c$$ + +## JAR File + +JAR Download: [mandelmaister.jar](mandelmaister.jar) + +You can run the jar file as follows: + + java -jar mandelmaister.jar + +## Source Code + +Download: [src.rar](src.rar) + +## Howto/Instructions + +* Click left mouse button at two positions to define vertices of rectangle for zooming in. +* Right mouse button to return to initial view. +* increase iterations for big magnifications: Options -> Iterations. +* The rendered area casn be saved as jpeg : File->Save Image. +* Different coloring modes are available under Coloring. +* Color Wrap and initial shift (0-1) can be also set untder Coloring->Color options. +* Options->GOto allows to specify valus for cx and cy, and also check current location. + +## Limitations & Bugs + +The zoom-in depth is limited due to the double number format precision. +changing to BigDecimal would fix this issue. +The y axis is flipped! + +## Screenshots +![](scale_1.jpg){}\ +![](scale_2.jpg){}\ +![](scale_3.jpg){}\ +![](scale_4.jpg){}\ diff --git a/00_blog/00035_Programming/00030_Mandelmaister/mandelmaister.jar b/00_blog/00035_Programming/00030_Mandelmaister/mandelmaister.jar new file mode 100644 index 0000000..bbfe384 Binary files /dev/null and b/00_blog/00035_Programming/00030_Mandelmaister/mandelmaister.jar differ diff --git a/00_blog/00035_Programming/00030_Mandelmaister/shot.jpg b/00_blog/00035_Programming/00030_Mandelmaister/shot.jpg new file mode 100644 index 0000000..7d2f0f0 Binary files /dev/null and b/00_blog/00035_Programming/00030_Mandelmaister/shot.jpg differ diff --git a/00_blog/00035_Programming/00030_Mandelmaister/src.rar b/00_blog/00035_Programming/00030_Mandelmaister/src.rar new file mode 100644 index 0000000..27a6941 Binary files /dev/null and b/00_blog/00035_Programming/00030_Mandelmaister/src.rar differ diff --git a/00_blog/00035_Programming/00040_3DS-Loader/3ds_1.png b/00_blog/00035_Programming/00040_3DS-Loader/3ds_1.png new file mode 100644 index 0000000..39fbe2b Binary files /dev/null and b/00_blog/00035_Programming/00040_3DS-Loader/3ds_1.png differ diff --git a/00_blog/00035_Programming/00040_3DS-Loader/3ds_2.png b/00_blog/00035_Programming/00040_3DS-Loader/3ds_2.png new file mode 100644 index 0000000..90c41f6 Binary files /dev/null and b/00_blog/00035_Programming/00040_3DS-Loader/3ds_2.png differ diff --git a/00_blog/00035_Programming/00040_3DS-Loader/3ds_3.png b/00_blog/00035_Programming/00040_3DS-Loader/3ds_3.png new file mode 100644 index 0000000..c61bec8 Binary files /dev/null and b/00_blog/00035_Programming/00040_3DS-Loader/3ds_3.png differ diff --git a/00_blog/00035_Programming/00040_3DS-Loader/3ds_4.png b/00_blog/00035_Programming/00040_3DS-Loader/3ds_4.png new file mode 100644 index 0000000..b1d88d7 Binary files /dev/null and b/00_blog/00035_Programming/00040_3DS-Loader/3ds_4.png differ diff --git a/00_blog/00035_Programming/00040_3DS-Loader/3ds_5.png b/00_blog/00035_Programming/00040_3DS-Loader/3ds_5.png new file mode 100644 index 0000000..ad77647 Binary files /dev/null and b/00_blog/00035_Programming/00040_3DS-Loader/3ds_5.png differ diff --git a/00_blog/00035_Programming/00040_3DS-Loader/index.md b/00_blog/00035_Programming/00040_3DS-Loader/index.md new file mode 100644 index 0000000..37c5ea2 --- /dev/null +++ b/00_blog/00035_Programming/00040_3DS-Loader/index.md @@ -0,0 +1,18 @@ + August 2001 +# Loader for the 3DS File Format + +Long ago I created this little loader for the binary 3DS file format, when +exploring its chunk based nature. It only supports a small subset of chunk IDs, +yet enough to get the faces and vertices. + +As you see the default color-scheme is somehow inspired by the good old C64 :smile: + +![](scale_3ds_3.png){}\ +![](scale_3ds_5.png){}\ +![](scale_3ds_4.png){}\ +![](scale_3ds_1.png){}\ +![](scale_3ds_2.png){}\ + + diff --git a/00_blog/00035_Programming/00040_Hex-Converter/hex.png b/00_blog/00035_Programming/00040_Hex-Converter/hex.png new file mode 100644 index 0000000..2c2ecf0 Binary files /dev/null and b/00_blog/00035_Programming/00040_Hex-Converter/hex.png differ diff --git a/00_blog/00035_Programming/00040_Hex-Converter/hexman.html b/00_blog/00035_Programming/00040_Hex-Converter/hexman.html new file mode 100644 index 0000000..86af3ef --- /dev/null +++ b/00_blog/00035_Programming/00040_Hex-Converter/hexman.html @@ -0,0 +1,170 @@ + + + + + + + + +
+ +
+
+
+

Miguel's Converter

+

Convert numbers between different bases. Supports decimal, octal, binary and hex. You can use a custom base as well.

+
+
+
+ +
+
+
+ +
+
+ 10 +
+
+
+ +
+
+
+ +
+
+ 8 +
+
+
+ +
+
+
+ +
+
+ 2 +
+
+ +
+
+
+ + + +
+
+
+ +
+
+ 16 +
+
+
+ +
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+

Hacked together by miguel

+

powered by JavaScript and Bootstrap.

+
+
+
+ + + + + diff --git a/00_blog/00035_Programming/00040_Hex-Converter/index.md b/00_blog/00035_Programming/00040_Hex-Converter/index.md new file mode 100644 index 0000000..a65501d --- /dev/null +++ b/00_blog/00035_Programming/00040_Hex-Converter/index.md @@ -0,0 +1,10 @@ + August 2018 +# Hex Converter + +This is my little javascript online converter, that can translate +numbers between different bases: + +![](hex.png){width=400px} + +You can try it online [here](hexman.html). + diff --git a/00_blog/00035_Programming/00050_Optimialius-Square-Packing/index.md b/00_blog/00035_Programming/00050_Optimialius-Square-Packing/index.md new file mode 100644 index 0000000..5d9b71d --- /dev/null +++ b/00_blog/00035_Programming/00050_Optimialius-Square-Packing/index.md @@ -0,0 +1,15 @@ + December 2004 +# Optimalius + +A holistic solution for a polish foil reselling company, focusing on +optimal square packing,.. beside managing their repository and billing. + +A quick heuristic was used to calculate satisfying layouts in feasible time. + +![](opt2.png){width=400px}\ +![](opt3.png){width=400px}\ +![](opt1.png){width=400px}\ + + diff --git a/00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt1.png b/00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt1.png new file mode 100644 index 0000000..0cd73b6 Binary files /dev/null and b/00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt1.png differ diff --git a/00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt2.png b/00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt2.png new file mode 100644 index 0000000..3e53659 Binary files /dev/null and b/00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt2.png differ diff --git a/00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt3.png b/00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt3.png new file mode 100644 index 0000000..cf423d1 Binary files /dev/null and b/00_blog/00035_Programming/00050_Optimialius-Square-Packing/opt3.png differ diff --git a/00_blog/00035_Programming/00100_Webkit-Keyboardless-Navigation/index.md b/00_blog/00035_Programming/00100_Webkit-Keyboardless-Navigation/index.md new file mode 100644 index 0000000..224c9bb --- /dev/null +++ b/00_blog/00035_Programming/00100_Webkit-Keyboardless-Navigation/index.md @@ -0,0 +1,29 @@ + April 2018 +Miguel's Surfing Quick Links +============================ + +Since I do not want to depend on JavaScript all of the time, I tried to +integrate simple keyboard-only navigation directly into the webkit2gtk+, +as a web extension. + +I use simple unix pipes for communication between the +main thread and my webextension. + +__Please note that this is a work in progress!__ + +You can take a look at both branches at my git repo: [https://gitweb.softwarefools.com/?p=miguel/surf-webext-dom.git](https://gitweb.softwarefools.com/?p=miguel/surf-webext-dom.git). + +The DOM is manipulated on the fly by the browser without any JavaScript involved. + +A little video demonstrating what was achieved so far (inside the glorious, webkit2gtk+ based, suckless surf browser): + + + +The browser itself can be found here: [https://surf.suckless.org/](https://surf.suckless.org/). + + diff --git a/00_blog/00035_Programming/00100_Webkit-Keyboardless-Navigation/v1.ogv b/00_blog/00035_Programming/00100_Webkit-Keyboardless-Navigation/v1.ogv new file mode 100644 index 0000000..a086103 Binary files /dev/null and b/00_blog/00035_Programming/00100_Webkit-Keyboardless-Navigation/v1.ogv differ diff --git a/00_blog/00035_Programming/index.md b/00_blog/00035_Programming/index.md index 3424ab3..ab14eed 100644 --- a/00_blog/00035_Programming/index.md +++ b/00_blog/00035_Programming/index.md @@ -1,3 +1,3 @@ # Programming -Some programming related stuff. +Some programs and programming related stuff. diff --git a/00_blog/00040_Hex-Converter/hex.png b/00_blog/00040_Hex-Converter/hex.png deleted file mode 100644 index 2c2ecf0..0000000 Binary files a/00_blog/00040_Hex-Converter/hex.png and /dev/null differ diff --git a/00_blog/00040_Hex-Converter/hexman.html b/00_blog/00040_Hex-Converter/hexman.html deleted file mode 100644 index 86af3ef..0000000 --- a/00_blog/00040_Hex-Converter/hexman.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - -
- -
-
-
-

Miguel's Converter

-

Convert numbers between different bases. Supports decimal, octal, binary and hex. You can use a custom base as well.

-
-
-
- -
-
-
- -
-
- 10 -
-
-
- -
-
-
- -
-
- 8 -
-
-
- -
-
-
- -
-
- 2 -
-
- -
-
-
- - - -
-
-
- -
-
- 16 -
-
-
- -
-
-
- -
-
- -
-
-
-
-
-
-
-
-
-
-
-
-

Hacked together by miguel

-

powered by JavaScript and Bootstrap.

-
-
-
- - - - - diff --git a/00_blog/00040_Hex-Converter/index.md b/00_blog/00040_Hex-Converter/index.md deleted file mode 100644 index a65501d..0000000 --- a/00_blog/00040_Hex-Converter/index.md +++ /dev/null @@ -1,10 +0,0 @@ - August 2018 -# Hex Converter - -This is my little javascript online converter, that can translate -numbers between different bases: - -![](hex.png){width=400px} - -You can try it online [here](hexman.html). - diff --git a/00_blog/00100_Webkit-Keyboardless-Navigation/index.md b/00_blog/00100_Webkit-Keyboardless-Navigation/index.md deleted file mode 100644 index 224c9bb..0000000 --- a/00_blog/00100_Webkit-Keyboardless-Navigation/index.md +++ /dev/null @@ -1,29 +0,0 @@ - April 2018 -Miguel's Surfing Quick Links -============================ - -Since I do not want to depend on JavaScript all of the time, I tried to -integrate simple keyboard-only navigation directly into the webkit2gtk+, -as a web extension. - -I use simple unix pipes for communication between the -main thread and my webextension. - -__Please note that this is a work in progress!__ - -You can take a look at both branches at my git repo: [https://gitweb.softwarefools.com/?p=miguel/surf-webext-dom.git](https://gitweb.softwarefools.com/?p=miguel/surf-webext-dom.git). - -The DOM is manipulated on the fly by the browser without any JavaScript involved. - -A little video demonstrating what was achieved so far (inside the glorious, webkit2gtk+ based, suckless surf browser): - - - -The browser itself can be found here: [https://surf.suckless.org/](https://surf.suckless.org/). - - diff --git a/00_blog/00100_Webkit-Keyboardless-Navigation/v1.ogv b/00_blog/00100_Webkit-Keyboardless-Navigation/v1.ogv deleted file mode 100644 index a086103..0000000 Binary files a/00_blog/00100_Webkit-Keyboardless-Navigation/v1.ogv and /dev/null differ -- cgit v1.2.3