[GopherJS] Traverse DOM Tree

Traverse DOM tree via GopherJS.

 read more »

[GopherJS] Replace DOM Element in Place

Replace DOM element in place via GopherJS.

 read more »

[GopherJS] Check nodeType of DOM Element

Check node type (nodeType) of DOM element via GopherJS.

 read more »

[GopherJS] Access Child Nodes of DOM Element

Access child nodes (childNodes) of DOM element via GopherJS.

 read more »

[GopherJS] Add Tooltip to Every (Pāli) Word

Add tooltip to every word via GopherJS. Used in Pāli Tipiṭaka.

 read more »

[GopherJS] Treeview

Treeview via GopherJS. Used in Pāli Tipiṭaka.

 read more »

[GopherJS] Resizable Views

Resizable views via GopherJS. Used in Pāli Tipiṭaka.

 read more »

Moment by moment we identify ... - Dhamma by Ajahn Jayasāro

Moment by moment we identify ... - Dhamma by Ajahn Jayasāro

 read more »

[GopherJS] Register Event Handler (Event Binding)

Two ways to register event handler via GopherJS: Set element on-Event property or addEventListener.

 read more »

[GopherJS] getElementsByTagName

Use getElementsByTagName to access head element via GopherJS.

 read more »

[GopherJS] Tooltip

Tooltip via GopherJS. Used in Pāli Tipiṭaka.

 read more »

[GopherJS] Insert CSS Dynamically

Insert (add, append) CSS to head element via GopherJS.

 read more »

[Golang/GopherJS] setTimeout

JavaScript setTimeout equivalent in Go/GopherJS - time.AfterFunc.

 read more »

[GopherJS] this Keyword

Show how to access/use this keyword via GopherJS.

 read more »

[GopherJS] Set/Get DOM CSS

Example - Set or Get CSS property of DOM element via GopherJS.

 read more »

Once upon a time ... - Dhamma by Ajahn Jayasāro

Once upon a time ... - Dhamma by Ajahn Jayasāro

 read more »

[AngularJS] Add Tooltip to Every Word

Add tooltip to every word via AngularJS. Used in Pāli Tipiṭaka.

 read more »

Python try except Translated to Golang Synonyms

Synonyms - Python try-except translated to Go programming language.

 read more »

[AngularJS] i18n Directive

Client side gettext-like Internationalization (i18n) via AngularJS Directives.

 read more »

[AngularJS] gettext-like i18n Solution

Client side gettext-like Internationalization (i18n) via AngularJS.

 read more »

[AngularJS] Treeview

Treeview via AngularJS. Used in Pāli Tipiṭaka.

 read more »

[AngularJS] Tooltip

Tooltip via AngularJS. Used in Pāli Tipiṭaka.

 read more »

[AngularJS] Resizable Views

Resizable Views via AngularJS. Used in Pāli Tipiṭaka.

 read more »

There are two kinds of harmony ... - Dhamma by Ajahn Jayasāro

There are two kinds of harmony ... - Dhamma by Ajahn Jayasāro

 read more »

[Golang] Replace Pāli Word in Velthuis Scheme With Unicode

Find Pāli word in Velthuis scheme, and replace them with unicode via Go programming language.

 read more »

[Bash] Find Redundant Files Saved by Chrome

Find redundant files saved by Chrome browser via Bash script.

 read more »

[Golang] Find Redundant Files Saved by Chrome

Find redundant files saved by Chrome browser via Go.

 read more »

goquery - Iterate over All DOM Elements in HTML

Iterate over all DOM nodes/elements via goquery in Go programming language.

 read more »

[Bash] Find and Remove Files in One Line of Command

Use find command to find all files with specific name and delete them in one line of command.

 read more »

[Bash] find Command Exclude Sub-directory

Use find command to find all HTML files in a directory, but exclude the HTML files in some sub-directory.

 read more »

Even with teachers ... - Dhamma by Ajahn Jayasāro

Even with teachers ... - Dhamma by Ajahn Jayasāro

 read more »

Run wkhtmltopdf With Chinese Font Support on Travis CI

Run wkhtmltopdf on Travis CI, which convert HTML files with chinese characters to PDF.

 read more »

[Bash] HTML to PDF via wkhtmltopdf

Convert HTML files in directory to PDF recursively via wkhtmltopdf and Bash script.

 read more »

Guess Metadata from HTML and Converted to reStructuredText

Guess metadata from HTML webpage and convert it to reStructuredText format.

 read more »

Basic HTML Table to reStructuredText Support for HTML2RST service on GAE Go

Add basic HTML table to reStructuredText support for online HTML to reStructuredText service on Google App Engine Go.

 read more »

Online Taobao Item to reStructuredText Image on Google App Engine Go

Online service on Google App Engine Go, which helps you extract title, image URL from Taobao item webpage, and output in reStructuredText format.

 read more »

Online HTML to reStructuredText on Google App Engine Go

Online HTML to reStructuredText service on Google App Engine Go.

 read more »

[Golang] HTML to reStructuredText

Convert HTML to restructuredtext format via net/html package in Go programming language. (Not fully supported)

 read more »

Google App Engine Go - HTML Link to reStructuredText

Given a webpage URL. Fetch the title of the webpage and output reStructuredText link on Google App Engine Go.

 read more »

Renunciation of attachments seems intimidating ... - Dhamma by Ajahn Jayasāro

Renunciation of attachments seems intimidating ... - Dhamma by Ajahn Jayasāro

 read more »

[Golang] Get HTML Title via net/html Package

Get HTML title via net/html package in Go programming language.

 read more »

[Bash] Remove Execute Permission of Files in Directory Recursively

Remove execute(x) permission of files in directory recursively via chmod command and Bash script.

 read more »

[Golang] HTML a, img, ul, li Element to reStructuredText

Convert HTML unordered (bulleted) list, HTML link, and HTML image to restructuredtext format via net/html package in Go programming language.

 read more »

[Golang] HTML a, ul, li Element to reStructuredText

Convert HTML unordered (bulleted) list and HTML link to restructuredtext format via net/html package in Go programming language.

 read more »

Search Taobao.com

Search Taobao.com.

 read more »

goquery - Convert HTML Unordered List to reStructuredText

Convert HTML unordered (bulleted) list to restructuredtext format via goquery in Go programming language.

 read more »

goquery - Replace HTML Link Node with reStructuredText Text Node

Replace HTML links node with text node of restructuredtext format in a webpage via goquery in Go programming language.

 read more »

As a schoolboy I was quite curious ... - Dhamma by Ajahn Jayasāro

As a schoolboy I was quite curious ... - Dhamma by Ajahn Jayasāro

 read more »

rsync over SSH with Key

Example of copy local files to remote machine which allows only SSH key login via rsync command.

 read more »

GitHub Pages Custom 404 Page with Redirect Link

Custom 404 page for GitHub Pages. In the 404 page, a redirect link is created based on the current URL path.

 read more »

[AWS] Upgrade from Ubuntu 12.04 to 14.04

Upgrade from AWS EC2 t1.micro running Ubuntu 12.04 LTS with Apache-2.2 to t2.nano running Ubuntu 14.04 LTS with Apache-2.4.

 read more »

[AWS] Create/Migrate Linux Users on Amazon EC2

Create or migrate user account with SSH login only (no password login) on AWS EC2 t2.nano with Ubuntu 14.04 LTS.

 read more »

[Bash] Move Large Number of Files via tar Command

Move large number of files via tar command under Bash. This is much quicker than mv command if there are a lot of small files.

 read more »

[Golang] Wrap Pāli Words in Span Element

Wrap Pāli words in span element via regular expression and Go.

 read more »

goquery Get Number of Children Nodes

Get the number of children nodes via goquery in Go.

 read more »

One day during my teenage years ... - Dhamma by Ajahn Jayasāro

One day during my teenage years, ... - Dhamma by Ajahn Jayasāro

 read more »

[Bash] Process HTML Files Format in Volumn

Convert the format (Big5 encoding to UTF-8, remove DOS newline in file, replace string big5 with UTF-8, and append UNIX newline to end of file) of HTML files in directory via Bash script.

 read more »

[Bash] Rename Files in Directory to Lowercase

Convert the name of files in directory to lowercase via Bash script.

 read more »

[Golang] Fixed Width/Length String

Output fixed width/length string in Go programming language.

 read more »

[Golang] Read Yes/No From Console

Read Yes/No (i.e., ask for user confirmation) from console in Go programming language.

 read more »

[Golang] Create reStructuredText Metadata via text/template Package

Create reStructuredText metadata via Go text/template and text/width package.

 read more »

[Golang] Number of Child Nodes via net/html Package

Get the number of child nodes via Go net/html package.

 read more »

A Nobel Truth is one that ennobles the person who truly understands it. ... - Dhamma by Ajahn Jayasāro

A Nobel Truth is one that ennobles the person who truly understands it. ... - Dhamma by Ajahn Jayasāro

 read more »

[Bash] Encoding Conversion, Newline Manipulation, String Replacement of File

Convert encoding of file from Big5 to UTF-8, remove DOS newline in file, replace string big5 with UTF-8, and append UNIX newline to end of file.

 read more »

[Golang] Get Vine Video src via goquery

Get Vine video src URL via goquery in Go programming language. My answer to Stack Overflow question: Getting blank return when using GoQuery to get video src

 read more »

[Golang] Scrape JavaScript Code via strings Package

Scape JavaScript code to get campaign number via Go strings package.

 read more »

goquery Example - Get Simple Text From HTML Page

Answer to Stack Overflow question: go - How to get simple text from HTML page with goquery?.

 read more »

Pelican reStructuredText Link to Section in Another Page

Pelican static site generator - Link to section in another page via reStructuredText.

 read more »

[Golang] getElementById via net/html Package

Equivalent of JavaScript getElementById via Go net/html package.

 read more »

[Golang] HTML Table to reStructuredText list-table via goquery

Convert HTML table to reStructuredText list-table via goquery in Go programming language.

 read more »

[Golang] Unrobust HTML Table to reStructuredText list-table

Convert HTML table to reStructuredText list-table via Go net/html package. This is experimental and not robust implementation.

 read more »

[Golang] Convert All HTML Links to reStructuredText via goquery

Convert all HTML links to restructuredtext in a webpage via goquery in Go programming language.

 read more »

[Golang] Extract Text via State Machine and goquery

Extract text (i.e., footnote) in HTML via state machine and goquery in Go programming language.

 read more »

[Golang] Iterate over All DOM Elements in HTML

Iterate over all DOM elements in HTML via Go programming language. Use net/html package to parse and iterate all elements in HTML. Search for HTML links and output them in reStructuredText format.

 read more »

[JavaScript] Copy to Clipboard

Copy content of textarea to clipboard via JavaScript.

 read more »

[Makefile] String Replacement Example

Example for how to replace a string in a variable in Makefile.

 read more »

A Time to Love - The Way It Is - Luang Por Sumedho

A TIME TO LOVE - The Way It Is - Luang Por Sumedho

 read more »

Search PTT BBS

Search PTT BBS.

 read more »

[Golang] Read Lines From File or String

Readlines from string or file in Go programming language.

 read more »

Some people take no interest in what other people think or feel. ... - Dhamma by Ajahn Jayasāro

Some people take no interest in what other people think or feel. ... - Dhamma by Ajahn Jayasāro

 read more »

[Golang] Write String to File

Go - write string to file via os Create method and fmt Fprintf method.

 read more »

[Golang] Hacker News Link to reStructuredText

Extract title and URL from Hacker News comment via goquery, and then output the info to reStructuredText footnote.

 read more »

Search Links of Major Search Engines

Search links of major search engines - Google, DuckDuckGo, Bing, Yahoo, Baidu, Yandex.

 read more »

[JavaScript] Wrap Pāli Words in Span Element

Wrap Pāli words in span element via regular expression and JavaScript.

 read more »

The Ariya Sangha - Peace Beyond Delusion (II) - Luang Por Liem Ṭhitadhammo

The Ariya Sangha - Peace Beyond Delusion (II) - Luang Por Liem Ṭhitadhammo

 read more »

[GopherJS] Copy to Clipboard

Copy content of textarea to clipboard via GopherJS.

 read more »

[Golang] Extract Title, Image, and URL via goquery

Extract title, image, and URL in buy123 product webpage via goquery, and then output the info to reStructuredText image.

 read more »

[sed] Replace reStructuredText Link by Regular Expression

Make reStructuredText links of the same name anonymous via regular expression by sed stream editor.

 read more »

Imagine living in a cottage on the side of a mountain. ... - Dhamma by Ajahn Jayasāro

Imagine living in a cottage on the side of a mountain. ... - Dhamma by Ajahn Jayasāro

 read more »

[sed] Replace Footnote by Regular Expression

Replace footnote in reStructuredText format via regular expression by sed stream editor.

 read more »

[Vim] Replace Footnote by Regular Expression

Replace footnote in reStructuredText format via regular expression in Vim editor.

 read more »

[Golang] Server Get Form POST Value

Server get HTML form value from HTTP POST in Go programming language.

 read more »

[Golang] Remove Query String From URL

Remove query string from URL in Go programming language.

 read more »

[GopherJS] Element Position (Offset)

Get DOM element position (offset) via GopherJS.

 read more »

Photos of Me on Facebook

Find photos of me on Facebook.

 read more »

[Golang] Get UTF-8 String Width

Get UTF-8 string width (width of English letter is 1, width of CJK character is 2) in Go programming language.

 read more »

When we have difficulties with other people, ... - Dhamma by Ajahn Jayasāro

When we have difficulties with other people, ... - Dhamma by Ajahn Jayasāro

 read more »

[Golang] Get HTML Title via goquery

A simple example to read HTML title via goquery in Go.

 read more »

Makefile notdir = Python basename / Golang path.Base

Makefile's notdir = Python basename / Go path.Base.

 read more »

[Golang] Convert File Encoding From Big5 to UTF-8

Convert file encoding from Big5 to UTF-8 via Go programming language.

 read more »

[sed] Insert Line After First Pattern Match

Insert a line after first pattern match via sed stream editor.

 read more »

[Golang] Download HTML From URL

Download and save HTML file from given URL via Go. Do nothing if the HTML file already locally exists.

 read more »

[Bash] Convert Files in Directory From Big5 to UTF-8

Convert all files in a directory recursively (i.e., including subdirectories of the directory) from Big5 encoding to UTF-8 via iconv command.

 read more »

[Golang] Find Pāli Word in Velthuis Scheme

Find Pāli word in Velthuis scheme via Go programming language.

 read more »

[Golang] Read JPEG Image Date via Exif Metadata

Read JPEG image date from Exif metadata in Go programming language.

 read more »

[sed] Append Text at the Beginning of Each Line

Append text at the beginning of each line via sed stream editor.

 read more »

[GopherJS] insertAfter - Insert New Node After Reference Node

insertAfter - Insert new node after reference node via GopherJS. (opposite of insertBefore)

 read more »

[GopherJS] Get head Element in HTML Document

Access head element in HTML document via GopherJS.

 read more »

[Makefile] Convert Traditional Chinese PO file to Simplified Chinese via OpenCC

Convert Traditional Chinese PO file to Simplified Chinese via OpenCC and sed in Makefile.

 read more »

[Makefile] Concetenate and Minify CSS via sed and tr Command

Concatenate and Minify CSS via sed and tr command in Makefile.

 read more »

[Golang] Minify HTML

Minify HTML via Go programming language.

 read more »

[Golang] Minify CSS

Minify CSS via Go programming language.

 read more »

[Golang] Remove C/C++ Style Comments

Remove C/C++ style comments via Go programming language.

 read more »

[Golang] Online Concatenate and Compress JavaScript Files

Concatenate and compress JavaScript files via Go programming language and online Google Closure Compiler.

 read more »

[Golang] Concatenate JavaScript Files

Concatenate JavaScript files via Go programming language.

 read more »

[Golang] Convert Traditional Chinese PO file to Simplified Chinese

Automatically convert Traditional Chinese (zh_TW) PO file to Simplified Chinese (zh_CN) by OpenCC and Go programming language.

 read more »

[Makefile] Create Symbolic Link If Not Exist

Makefile - Create symbolic link if it does not exist. Otherwise do nothing.

 read more »

[Python] Find Redundant Files Saved by Chrome

Find redundant files saved by Chrome browser via Python.

 read more »

[Golang] Example for block Action in Template package

Example for block action in Go text/template and html/template packages.

 read more »

[Python] Insert Line With Matched Pattern

Extract URL from reStructuredText link and insert the URL in the file as metadata via Python.

 read more »

[JavaScript] Button For Traditional/Simplified Chinese Conversion on Website

Conversion Button of Traditional/Simplified Chinese on Website via JavaScript.

 read more »

[Python] Convert HTML Table to reStructuredText list-table

Python script to convert HTML table to reStructuredText list-table via Beautiful Soup 4.

 read more »

[JavaScript] Font Size Larger/Smaller

Make font size of your website larger/smaller via JavaScript.

 read more »

[Python] Online Concatenate and Compress JavaScript Files

Online concatenate and compress JavaScript files via Python script.

 read more »

[Python] Concatenate JavaScript Files

Concatenate JavaScript files via Python script.

 read more »

[Python] Beautiful Soup 4 Synonyms with JavaScript

Synonyms - Python Beautiful Soup 4 translated to JavaScript.

 read more »

A good reason can always be found to do the wrong thing. ... - Dhamma by Ajahn Jayasāro

A good reason can always be found to do the wrong thing. ... - Dhamma by Ajahn Jayasāro

 read more »

Pelican Add Buddhist Calendar

Pelican static site generator - add Buddhist calendar in your theme.

 read more »

[Bash] Convert wav to mp3 via ffmpeg

Write a bash script to convert wav to mp3 via ffmpeg on Ubuntu Linux 15.10.

 read more »

[Golang] mkdir -p

mkdir -p command in Go

 read more »

[Python] mkdir -p

mkdir -p command in Python

 read more »

CSS for reStructuredText Footnote and Citation

CSS for reStructuredText (rst) footnote and citation.

 read more »

[Golang] Regular Expression Named Group - Extract Metadata from File Path

Go regexp example of named group matches - extract metadata from file path.

 read more »

Pelican Generate index.html by reStructuredText or Markdown

Pelican static site generator - Generate index.html by writing reStructuredText or Markdown.

 read more »

[Makefile] Echo Color Output

echo colorful output in Makefile.

 read more »

GopherJS XMLHttpRequest (XHR) and MakeFunc Example

Show how to use MakeFunc in GopherJS by XMLHttpRequest (XHR) example.

 read more »

[Python] Export PIXNET Blog to reStructuredText Files

Python scripts to export PIXNET blog posts to files of reStructuredText format.

 read more »

[Golang] Test if Item Exist in Web Storage by GopherJS

Check if an item exists (is populated) in web storage (localStorage or sessionStorage) by GopherJS.

 read more »

[Python] Convert Footnote to reStructuredText Format

Python Regular Expression to convert footnotes in file to reStructuredText format.

 read more »

[Golang] querySelectorAll and querySelector Example by GopherJS

Go querySelectorAll and querySelector Example by GopherJS.

 read more »

[Golang] Tiny Embedding Example of reStructuredText StringList Implementation

Tiny Go embedding code example of analogy to StringList implementation of reStructuredText.

 read more »

[Golang] Call Struct Method With Multiple Arguments And Returns by Name

Call a function (method), with multiple arguments and returns, of a struct by name during run-time in Go. (run-time reflection)

 read more »

[Golang] Call a Struct and its Method by Name

Call a function (method) of a struct by name during run-time in Go. (run-time reflection)

 read more »

[Golang] Synonyms with Python Class

Synonyms - Python class translated to Go

 read more »

[Golang] Toggle-able Sidebar by GopherJS

Go toggle-able sidebar by GopherJS, inspired by Octopress.

 read more »

[Golang] Succinct Trie Implementation

Go implemantation of succinct trie ported from Bits.js.

 read more »

[Golang] Caveats of GopherJS Development

Fix runtime error via goroutine in Go code compiled to JavaScript by GopherJS.

 read more »

[Golang] undefined Test in GopherJS

Check if something (object, variable, API, ...) is undefined or not in GopherJS.

 read more »

[Golang] Count Leading Spaces of a String

Count leading spaces of a string in Go.

 read more »

[Golang] Walk All Files in Directory

List all files in a directory in Go. Similar to Python os.walk.

 read more »

[Golang] Iterate Over UTF-8 Strings (non-ASCII strings)

Iterate over UTF-8 or non-ASCII strings in Go. Iterations by for or range keywords.

 read more »

[JavaScript] Bug in Succinct Trie Implementation of Bits.js

Fix the bug in succinct trie implementation of Bits.js - Wrong trie insertion if words are not inserted in alphabetical order.

 read more »

[Golang] Input Text Element Enter Keypress Event by GopherJS

Add the enter keypress event handler for the input text element by GopherJS

 read more »

[Golang] Remove All Child Nodes of a DOM Element by GopherJS

Go programming language - Remove all children of a DOM element by GopherJS.

 read more »

[Golang] Save Variables of Any Type in JSON file

Save variables of any type (struct, map, array, slice, etc.) in JSON format file via Go programming language.

 read more »

[Golang] Pretty Print Variable (struct, map, array, slice)

Pretty print variable (struct, map, array, slice) in Go.

 read more »

[Makefile] Create Directory If Not Exist

Makefile - Create a directory if it does not exist. Otherwise do nothing.

 read more »

[Golang] GopherJS Synonyms with JavaScript

Synonyms - Go/GopherJS idioms and snippets translated to JavaScript

 read more »

[Golang] gettext Function on Frontend (Browser) by GopherJS

Implement gettext function on front-end (browsers) by GopherJS. The gettext function translates a text string into the user's native language.

 read more »

[Golang] Compile SASS/SCSS files to CSS via libsass

Write a Go program to compile your SASS/SCSS (CSS extension language) files to CSS via libsass and Go wrapper for libsass.

 read more »

[Golang] Convert PO file to JSON Format

Convert PO files to JSON format via Go. The data of JSON format can be passed to front-end by web servers to translate a text string into the user's native language. You can use the JSON data to implement gettext function in browsers.

 read more »

[Python] Convert PO file to JSON Format

Convert PO files to JSON format via Python. The data of JSON format can be passed to front-end by web servers to translate a text string into the user's native language. You can use the JSON data to implement gettext function in browsers.

 read more »

[Golang] Access HTTP Request Header by XHR getAllResponseHeaders()

Run Golang program in your browser by GopherJS. Access HTTP Request Header by getAllResponseHeaders() method in XMLHttpRequest (XHR) request.

 read more »

[Golang] Access HTTP Request Header (Accept-Language) by JSONP

Run Golang program in your browser by GopherJS. Access Accept-Language field in HTTP Request Header by JSONP to detect browser language preference (user locale).

 read more »

[Golang] Detect Browser Language Preference by window.navigator.language

Run Golang program in your browser by GopherJS. Access window.navigator.language of NavigatorLanguage API to detect browser language preference (user locale).

 read more »

[Golang] reStructuredText Package

Packages of reStructuredText (to HTML) implementation in Go.

 read more »

[Golang] JSONP Example (CORS) by GopherJS

Run Golang program in your browser by GopherJS. Show how to make cross-domain requests (CORS) by JSONP (JSON with Padding) technique, which allows data to be retrieved from servers of other domains. This is an example of full-stack Go, which uses Golang to develop web applications in both front-end and backend.

 read more »

[JavaScript] Parse Accept-Language in HTTP Request Header

Parse Accept-Language in HTTP Request Header in JavaScript Programming Language.

 read more »

[Golang] XMLHttpRequest (XHR) HTTP POST JSON Data by GopherJS

Run Golang program in your browser by GopherJS. Use XMLHttpRequest (XHR) to send HTTP POST requests to send JSON data to remote server. This is an example of full-stack Go, which uses Golang to develop web applications in both front-end and backend.

 read more »

[Golang] XMLHttpRequest (XHR) HTTP GET JSON Data by GopherJS

Run Golang program in your browser by GopherJS. Use XMLHttpRequest (XHR) to send HTTP GET requests to retrieve JSON data from remote server.

 read more »

xgettext Extract Translatable Strings From Golang html/template

Use xgettext (one of GNU gettext utilities) to extract translatable strings from HTML templates of Go html/template.

 read more »

i18n Golang Web Application by gettext and html/template

i18n (Internationalization) Go web applications by GNU gettext tools and html/template. Use PO and MO files generated by gettext in Golang web application to render HTML of specific languages by html/template.

 read more »

[Golang] Toggle (Show/Hide) HTML Element by GopherJS

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to toggle (show/hide) a HTML element by GopherJS and its DOM binding.

 read more »

[Golang] Draggable (Movable) Element by GopherJS

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to write a draggable/movable element by GopherJS and its DOM binding.

 read more »

i18n Python Web Application by gettext and Jinja2

i18n (Internationalization) Python web applications by GNU gettext tools and Jinja2. Use PO and MO files generated by gettext in Python web application to render HTML of specific languages by Jinja2 template engine.

 read more »

[Golang] GopherJS DOM Example - Dropdown Menu

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to write a dropdown menu by GopherJS and its DOM binding.

 read more »

[Golang] GopherJS DOM Example - Toggle (Play/Pause) Sound on Click Event

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to toggle (play/pause) sound on click event of a HTML DOM element.

 read more »

[Golang] GopherJS DOM Example - Play Sound on Click Event

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to play sound on click event of a HTML DOM element.

 read more »

[Python] Internationalization (i18n) of Python Application by GNU gettext Tools

Internationalization (i18n) of Python applications by GNU gettext tools. This post shows how to use PO and MO files in Python.

 read more »

[Golang] GopherJS DOM Example - Create and Append Element

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to create a new HTML element and append it to the DOM tree.

 read more »

[Golang] GopherJS DOM Example - Hide Element by display:none

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to hide HTML elements by setting its CSS property display:none.

 read more »

[Golang] Online Snake Game by GopherJS

Online snake game using Go programming language, compiled to JavaScript by GopherJS. (GopherJS DOM example)

 read more »

[Golang] Online Input Method (Pāli) by GopherJS

Online Pali (Pāli, Pāḷi) Input Method using Go programming language, compiled to JavaScript by GopherJS. (GopherJS DOM example)

 read more »

[Golang] GopherJS DOM Example - Access HTML Data Attribute

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example shows how to access HTML data-* attribute.

 read more »

[Golang] GopherJS DOM Example - Access Input Element Value

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to access the value of HTML input element.

 read more »

[Golang] GopherJS DOM Example - Detect Keypress (Keyboard Event)

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. Detect user keypress by registering keyboard event handler and print out the keycode of the keyboard event.

 read more »

[Golang] GopherJS DOM Example - Event Binding (addEventListener)

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. Use addEventListener to attach event handler to specific DOM element.

 read more »

[Golang] GopherJS serve and build Command Usage

Example of how to use serve and build command of GopherJS.

 read more »

[Golang] GopherJS DOM Example - getElementById and Set innerHTML

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. Use getElementById to access DOM element and set innerHTML of the element.

 read more »

[Golang] sqlite3 Database Example - Basic Usage

Use SQLite in Go program. Write a Golang program to initialize a database, create a table, write some data to the table and read data from the table.

 read more »

[Golang] Internationalization (i18n) of Go Application by GNU gettext Tools

Internationalization (i18n) of Go applications by GNU gettext tools. This post shows how to use PO and MO files in Golang.

 read more »

[Python] Automatically Convert Traditional Chinese PO file to Simplified Chinese

Automatically convert Traditional Chinese (zh_TW) PO file to Simplified Chinese (zh_CN) by OpenCC and Python programming language.

 read more »

Internationalization (i18n) of Web Application by GNU gettext Tools

Support multiple languages in your (web) applications, by GNU gettext tools, which include xgettext, msginit, msgmerge, and msgfmt.

 read more »

[Python] Web Scrape JavaScript Webpage by dryscrape

Web scrape JavaScript rendered webpages by dryscrape, a lightweight web scraping library for Python.

 read more »

Deploy Website by Pelican, Travis CI, and GitHub Pages

Automatic deployment of websites, by Pelican, Travis CI, and Github Pages

 read more »

[Python] Conversion of Traditional and Simplified Chinese

Conversion of Traditional and Simplified Chinese by OpenCC and Python programming language.

 read more »

[Golang] Conversion of Traditional and Simplified Chinese

Conversion of Traditional and Simplified Chinese by OpenCC and Go programming language.

 read more »

[Bash] Use wget to Fetch Webpages

Write a bash script to use wget to fetch webpages.

 read more »

[Python] Use Regular Expression to Find Strings Marked For Internationalization (i18n)

Use regular expression in Python to search and find strings marked for i18n (Internationalization)

 read more »

[Math] International Mathematical Olympiad (IMO) 2014 Problem 6

International Mathematical Olympiad (IMO) 2014 Problem 6

 read more »

[Math] Asian Pacific Mathematics Olympiad (APMO) 2015 Problem 4

Asian Pacific Mathematics Olympiad (APMO) 2015 Problem 4

 read more »

[Math] International Mathematical Olympiad (IMO) 2010 Problem 6

International Mathematical Olympiad (IMO) 2010 Problem 6

 read more »

[Math] International Mathematical Olympiad (IMO) 2015 Problem 6

International Mathematical Olympiad (IMO) 2015 Problem 6

 read more »

[Algorithm] Magical Recurrence

In a recent algorithmic coding contest which I didn't do well, the hardest problem killed me. It distinguished me from other superior coders. But it's still an interesting one. The problem is essentially to solve a 0/1 knapsack problem on a tree where each node is associated ...

 read more »

[Math] United States of America Mathematical Olympiad (USAMO) 2015 Problem 3

United States of America Mathematical Olympiad (USAMO) 2015 Problem 3

 read more »

[Golang] Generate Random String From [a-z0-9]

Generate a random string from [a-z0-9] in Golang.

 read more »

Internationalization and Localization of Google App Engine Python Webapp Using webapp2 and Jinja2

i18n and L10n of Google App Engine Python web application, with webapp2, Jinja2, Babel, and pytz.

 read more »

[Math] The infamous Grasshopper problem

The infamous Grasshopper problem

 read more »

[Golang] Save JSON Data in Directory

Save JSON-format data in the directory using Go programming language.

 read more »

[Golang] Wait For Goroutine to Finish

Use channels to wait for all goroutines to finish

 read more »

Responsive Navigation Bar (Navbar)

Responsive top navigation bar (navbar) used in this website.

 read more »

Import CSS File in SCSS with pyScss

Include regular CSS file in SCSS file with pyScss.

 read more »

Simple Custom Responsive Grid Layout

A simple custom responsive grid layout exmaple without CSS frameworks.

 read more »

Golang html/template versus Python Jinja2 (7) - Custom Functions and Filters

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Go template custom function vs Jinja2 custom filter and function.

 read more »

[Golang] Capture and Handle Ctrl+C Event

Run cleanup function when receiving ^C signal.

 read more »

[Golang] Goroutines Poll Web Feeds

Poll RSS/ATOM feeds with Goroutines

 read more »

[web.py] Multiple Application with Same Context

Multiple web.py applications with the same context (web.ctx)

 read more »

Golang html/template versus Python Jinja2 (6) - Template Inheritance (Extends)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Mimic Jinja2 template inheritance in Go html/template

 read more »

Golang html/template versus Python Jinja2 (5) - Maps and Dictionaries

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Loop through Python Dictionaries vs Go Maps

 read more »

Golang html/template versus Python Jinja2 (4) - Arrays and Slices Index

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slices - Loop Index

 read more »

Golang html/template versus Python Jinja2 (3) - Arrays and Slices

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slices

 read more »

[web.py] Web Application on Both Google App Engine and Apache

Web application (web.py framework) template runs on both Google App Engine Python and Apache with mod_wsgi.

 read more »

[Golang] Parse Web Feed - RSS and Atom

Parse Atom 1.0/RSS 2.0 web feeds in Go programming language.

 read more »

[Golang] Convert Atom to RSS

Convert Atom 1.0 to RSS 2.0 format in Go programming language.

 read more »

[Dart] Access HTML Data Attribute

Access data-* attribute of HTML elements in Dart

 read more »

[Golang] XML Parsing Example (8) - Parse Atom 1.0

How to read XML/HTML files in Go programming language (for newbie) - Parse Atom 1.0 format.

 read more »

[Golang] XML Parsing Example (7) - Parse RSS 2.0

How to read XML/HTML files in Go programming language (for newbie) - Parse RSS 2.0 format.

 read more »

[Golang] XML Parsing Example (6) - Parse OPML Concisely

How to read XML/HTML files in Go programming language (for newbie) - Parse OPML format concisely.

 read more »

[Golang] XML Parsing Example (5) - Parse OPML

How to read XML/HTML files in Go programming language (for newbie) - Parse OPML format.

 read more »

Golang html/template versus Python Jinja2 (2)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - print Hello World! on screen

 read more »

[Golang] XML Parsing Example (4)

How to read XML/HTML files in Go programming language (for newbie) - Read multiple direct child elements.

 read more »

[Dart] Online Input Method - Pali (Pāli, Pāḷi)

Online Pali (Pāli, Pāḷi) Input Method using Dart programming language.

 read more »

[Golang] Parse Accept-Language in HTTP Request Header

Parse Accept-Language in HTTP Request Header in Go Programming Language.

 read more »

Golang html/template versus Python Jinja2 (1)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Load and Serve Templates

 read more »

[Golang] XML Parsing Example (3)

How to read XML/HTML files in Go programming language (for newbie) - Read a direct child element.

 read more »

Use Object Instance Function as JSONP Callback Function

Cross-domain requests by JSONP with object instance function as callback on Google App Engine for Python.

 read more »

JSONP with Anonymous Callback Function

Cross-domain requests by JSONP with anonymous callback function on Google App Engine for Python.

 read more »

JSONP on Google App Engine Python

Cross-domain requests by JSONP on Google App Engine for Python.

 read more »

[Golang] XML Parsing Example (2)

How to read XML/HTML files in Go programming language (for newbie) - Read element attribute.

 read more »

[Dart] Keyboard Event (Arrow Key Example)

Detect keystrokes in Dart programming language.

 read more »

[Golang] Read Command-line Arguments Example

How to parse command-line arguments (flags) in Go programming language.

 read more »

[Golang] XML Parsing Example (1)

How to read XML/HTML files in Go programming language (for newbie) - Read element and its content.

 read more »

[Dart] Draggable (Movable) Element

Draggable, movable (drag and drop) HTML element using Dart programming language.

 read more »

[Dart] MouseEvent ClientX and ClientY Deprecated

e.clientX => e.client.x & e.clientY => e.client.y

 read more »

Draggable Toggleable Simple Web Keyboard

Demonstrate how to make an online 0-9 keypad, which is draggable and toggleable.

 read more »

[Webapp] Dart HTTP POST JSON Data to Go Server

Show how to pass JSON-format data using HTTP POST between browser (implemented with Dart) and web server (implemented with Go).

 read more »

Dart Dropdown Menu

Dropdown menu using Dart programming language.

 read more »

[Dart] Hide Div When Clicked Outside It

Hide div element when clicked outside it, using Dart programming language.

 read more »

Load Dart Script if Dartium, Otherwise Load JavaScript in Browser

Load Dart script while development or the browser supports dart. Otherwise load JavaScript as usual.

 read more »

Hide Div When Clicked Outside It

Hide div element when clicked outside it, in vanilla JavaScript way. No jQuery or libraries are used.

 read more »

Javascript Drop Down Menu

Dropdown menu using vanilla JavaScript. No jQuery or libraries are used.

 read more »

Toggle Element (Dropdown/Menu) Visibility with CSS

Toggle element (usually div) with pure CSS only (no JavaScript). Suitable for dropdown/menu application.

 read more »

[AngularJS] Dropdown Menu Using Directive

Use AngularJS powerful custom directive to implement dropdown menu without jQuery or any other library.

 read more »

[Bash] List All Files in Directory Recursively and Rename

List all files in a directory recursively (i.e., including subdirectories of the directory), and use sed to rename the files.

 read more »

The Four Principles of Indian Spirituality

“Whomsoever you encounter is the right one.”, “Whatever happened is the only thing that could have happened.”, “Each moment in which something begins is the right moment.”, “What is over, is over.”

 read more »

[Algorithm] Insane DFS

Insane DFS

 read more »

[Algorithm] Swap and Sum

Swap and Sum

 read more »

[Algorithm] Robot

Robot

 read more »

[Dart] DOM Element Remove All Children

DOM element remove all children in Dart programming language

 read more »

Hello World in C

Hello World program in C programming language

 read more »

[AngularJS] Toggle Element without JavaScript

Example of toggling DOM element using AngularJS, without any JavaScript code.

 read more »

[AngularJS] Get Element Offset (Position)

Get the offset (position) of an AngularJS DOM element without jQuery

 read more »

[AngularJS] Incorrect ng-mouseenter ng-mouseleave and Solution

Solution to mouseenter and mouseleave event in old version AngularJS.

 read more »

[AngularJS] Draggable (Movable) Element

Draggable, movable HTML element using AngularJS.

 read more »

[AngularJS] Safe Scope.$apply Implementation (Error: $apply already in progress)

Safely execute an expression in angular from outside of the angular framework.

 read more »

[Python] Pretty Print Variable (Dictionary, List, Object, Array)

Pretty print variable in Python

 read more »

[AngularJS] Set HTML Document Title

Set HTML document title in AngularJS

 read more »

[AngularJS] Update Property in Parent Scope

Update parent scope from child scope by event dispatching and listening mechanism.

 read more »

[AngularJS] datepicker with jQuery

jQuery datepicker wrapped in AngularJS directive.

 read more »

[C] Remove String Trailing Newline (Carriage Return)

Remove trailing newline (carriage return) of a string in C programming language.

 read more »

My Last Words - Ajahn Prawit

My Last Words - Ajahn Prawit

 read more »

[JavaScript] Toggle (Play/Pause) Sound on Click Event of DOM Element

Toggle sound on click event of DOM element.

 read more »

Detect User Language (Locale) on Google App Engine Python

Detect user locale/language from HTTP request header on Google App Engine for Python.

 read more »

[Python] Parse Accept-Language in HTTP Request Header

Parse Accept-Language in HTTP Request Header in Python.

 read more »

[JavaScript] Load CSS Dynamically

Load CSS file dynamically.

 read more »

[JavaScript] Remove Leading and Trailing Whitespaces

Remove leading and trailing whitespaces of a string in JavaScript.

 read more »

[JavaScript] Play Sound on Click Event of DOM Element

Play sound on click event of DOM element.

 read more »

[JavaScipt] Cross-Browser HTTP POST Request

JavaScript cross-browser HTTP POST request

 read more »

[JavaScipt] Cross-Browser HTTP GET Request

JavaScript cross-browser HTTP GET request

 read more »

DOM Ready without JavaScript Frameworks

Check DOM readiness in vanilla JavaScript.

 read more »

[JavaScript] Conversion of Traditional and Simplified Chinese

JavaScript library New Tong Wen Tang for conversion of Traditional and Simplified Chinese.

 read more »

[JavaScript] Firing Order (Precedence) of Event Handler

Use onmousedown event instead of onclick event if the event handler to be fired before onblur event.

 read more »

[JavaScript] Load Favicon Dynamically

Load website icon (favicon) dynamically.

 read more »

JavaScript basename()

JavaScript equivalent of basename program.

 read more »

[JavaScript] onMouseEnter and onMouseLeave Suppport for Old Browsers

JavaScript Cross-Browser Implementation of onMouseEnter and onMouseLeave Event

 read more »

[JavaScript] Change Scope (Context) of Anonymous Function

Change the scope (context) of anonymous function - change what "this" keyword refers to in anonymous function.

 read more »

[JavaScript] Scope (Context) of Event Handler Function

Discuss the scope (context) of event handler and how to change what "this" keyword refers to.

 read more »

[JavaScript] oninput and onpropertychange Event Alternative

Detect the content change of HTML input elements in a cross-browser and consistent manner.

 read more »

Add Social Buttons (Google+, Facebook, Twitter) on Website

Use social buttons to make your website more popular.

 read more »

[JavaScript] Single Callback For Multiple Asynchronous AJAX Requests (XMLHttpRequest)

JavaScript single callback for multiple asynchronous XHR requests.

 read more »

[JavaScript] Check Website Availability and Then Redirect by JSONP

Redirect users to another website if the website is available.

 read more »

[Python] Use XSL to Transform XML (XSLT)

XSLT (Extensible Stylesheet Language Transformations) in Python.

 read more »

[JavaScript] String startswith, endswith and contains Implementation

JavaScript equivalent of Python string startswith, endswith, and contains.

 read more »

JavaScript Create DOM Element Dynamically

Create DOM elements by JavaScript.

 read more »

Python Create HTML Element Dynamically on Server Side

Serve DOM elements to clients dynamically on Google App Engine Python

 read more »

JavaScript Remove All Children of a DOM Element

Bug-free way of removing child nodes of a DOM element in JavaScript.

 read more »

JavaScript Cross-Browser Cross-Domain XMLHttpRequest (XDomainRequest in IE)

Cross-domain AJAX requests

 read more »

[Javascript] Width Percentage to Pixel

1% width of browser window equal to how many pixels?

 read more »

[JavaScript] Width of Browser Window in Pixel

Width of browser window in pixel.

 read more »

Access-Control-Allow-Origin in HTTP Header on Google App Engine

Config Access-Control-Allow-Origin in HTTP headers on Google App Engine.

 read more »

[JavaScript] Comparison of MouseEnter MouseLeave MouseOver MouseOut

Compare mouseenter, mouseleave, mouseover, and mouseout events.

 read more »

Lightweight Dynamic JavaScript Loader with Dependency Handling

Load JavaScript scripts dynamically with dependencies.

 read more »

AJAX Form POST Request to Google App Engine Python

Send/receive data to/from Google App Engine Python servers by HTTP POST requests in AJAX way.

 read more »

JavaScript Drag and Drop (Draggable, Movable) Element without External Library

Draggable, movable HTML element using vanilla JavaScript.

 read more »

Google Closure Library Editor with Equation Editor Dialog

Rich text editor with math equation dialog using Google Closure Library.

 read more »

JavaScript DOM Element Position (Scroll Position Included)

Get DOM element position (including scroll position) using JavaScript

 read more »

JavaScript Back to Top Link

JavaScript Back to Top Link

 read more »

JavaScript Keyboard Event (Arrow Key Example)

Detect arrow keystrokes in JavaScript.

 read more »

JavaScript Event Target Element (srcElement)

Event target element in JavaScript event handling.

 read more »

Load External JavaScript or CSS file Dynamically

Load JavaScript or CSS on demand.

 read more »

JavaScript Prefix Match (Dictionary Application)

Given a set of strings (words), and an user input string, output a set of strings with prefix the same as the user input string

 read more »

Google App Engine Datastore Example : Dictionary Application

Simple usage example of Google App Engine Python Datastore.

 read more »

Fixed Menu Bar on Top of Website

Put your menu bar on top of the website, no matter how users scroll.

 read more »

Multiple Files Upload with Google App Engine Python

Let website users upload multiple files to Google App Engine (Python) servers.

 read more »

Python Library xml.dom.minidom Howto (7)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Special Format Conversion in Python

%2c%e3%80%90%e5%bd%a2%e3%80%91%e6%97%a0%e7%a2%8d%e7%9a%84%e3%80%82 <=> ,【形】无碍的。

 read more »

Evaluation of Multivariate Gaussian with NumPy

Evaluate Multivariate Normal Distribution with NumPy in Python.

 read more »

HTTP POST (multipart/form-data) on Android

Upload a file to the server in your Android app.

 read more »

Python Library xml.dom.minidom Howto (1)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (2)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (3)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (4)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (5)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (6)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Show argmax/argmin in LaTeX on Blog

Type the math symbol "argmin" and "argmax" in LaTeX

 read more »

Pāli Input Method on Ubuntu Linux

Type romanized Pāli on your Ubuntu Linux.

 read more »

Show Source Code on Web

Show source code on your website

 read more »

Show Math on Web

Show math symbols on the blog or website.

 read more »