pts.blog
2014-09-25
Change 1 character puzzle #2
›
Add or replace at most 1 character in the longest line of the following program so that it will print 20 dots. There are at least 10 solutio...
Change 1 character puzzle #1
›
Add or replace at most 1 character in the longest line of the following program so that it will print 20 dots. There are at least 3 solution...
2014-09-08
How to keep to your commitments without using up too much willpower
›
This blog post explains how hyperbolic discounting causes you to change your mind, and how to trick it so that you can keep to your commitme...
2014-08-16
On generating integer-sided triangles with an integer area/perimeter ratio
›
This blog post contains come comments about finding all triangles whose sizes are integers and the area/perimeter ratio is the integer r . T...
2014-08-12
How the lifetime of temporaries is extended because of references in C++
›
This blog post summarizes what I learned about C++ today about how the lifetime of temporaries is extended because of references. Normally ...
2014-07-29
How to discard committer info from git history
›
This blog post explains how to overwrite the git committer name, git committer e-mail and git committer date in previous commits in a git re...
2014-07-08
Programming tips for students
›
This blog post gives you advice to make the best use of your time for learning how to program and enjoying programming in your pre-college y...
Recommended books for programming students
›
This blog post lists the best books I can recommend to students who want to learn how to program. Please note that programming is more about...
2014-06-20
Message to the students
›
Dear Student, This is your life. Make it happy, productive and full for yourself! The smarter and more skilled you are, the more choices a...
What's the difference between StaticPython and PyRun?
›
This blog post explains the difference between StaticPython and PyRun . Both StaticPython and PyRun are free, portable binary distribution...
5 comments:
2014-04-26
How to parse an integer in C++ (and C) with overflow detection
›
This blog post explains how to write C++ code which parses integers, in a type-safe way for any integral type, paying attention to overflows...
9 comments:
2014-04-10
Announcing ssweb: single-shot webserver in Python
›
This blog post announces ssweb , a single-shot HTTP server library in Python 2.x. Single-shot means is that the webserver accepts only a sin...
2014-04-04
How to convert all YouTube links from http:// to https:// in Firefox history
›
This blog post explains how to convert the protocol from http:// to https:// in YouTube URLs in the browsing history of a Mozilla Firefox pr...
2014-01-19
How to run custom code before and after main in GCC?
›
This blog post explains how to register C or C++ code to be run at process startup (i.e. just before *main*) and process exit (e.g. when *ma...
3 comments:
2014-01-15
Announcing mplaylist: Audio playlist player using mplayer, with checkpointing
›
This blog post is the formal announcement of mplaylist , and audio playlist player using mplayer, with checkpointing. mplaylist is Python s...
1 comment:
2014-01-11
How to prevent YouTube from using HTTPS
›
This blog post explains how to configure your web browser (Mozilla Firefox or Google Chrome) to prevent YouTube from redirecting from the ht...
1 comment:
2014-01-10
How to remove almost all files from a Git repository
›
This blog post explains how to remove all files (including their history) from a Git repository, except for files in a whitelist. This can b...
1 comment:
‹
›
Home
View web version