Code Monkey home page Code Monkey logo

cjdb.github.io's People

Contributors

cjdb avatar stephantlavavej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cjdb.github.io's Issues

Discussion for ch 4: conversions

char const letter = 'A'; // value is 65 in UTF-8
  1. Does the standard indeed say that you are guaranteed to get the ASCII code? I thought not. I could be wrong.
  2. Doesn't a UTF-8 thingumy consist of multiple char "code units"?
  3. Maybe just say "ascii" since students are more likely to have heard of that?

Mixed Content Security

The mixed use of HTTPS and HTTP is causing browsers to flag the site transition from http://cjdb.com.au/blog to https://github.com/cjdb/cjdb.github.io/issues as insecure. Looking at the source code for the cjdb.com.au/blog page, it looks like you're trying to load the GitHub Pages site as an iframe. The change from insecure frame contents to secure frame contents is what is the problem (I think).

I think there are two or three possible solutions. One would be to get SSL set up on your domain using Let's Encrypt so that there is no transition from insecure to secure. I think this step should be done regardless, as plain HTTP is being deprecated everywhere and Google is even ranking insecure pages lower.

You could also use a subdomain instead of a subdirectory (blog.cjdb.com.au as opposed to cjdb.com.au/blog). With this, you can just set the subdomain to resolve to the GitHub Pages site. See https://help.github.com/articles/setting-up-an-apex-domain. This has the benefit of not requiring a web server to manage the proxy over to GH Pages, so you only have to pay for the domain and not a full server as well.

The last one would be, instead of using an iframe, to set up /blog/ to forward to the cjdb.github.io directly. I'm not sure if you're using Apache or ngnix as your web server, but it should be straightforward to set that up. This is the more involved of the two, but has the benefit of keeping your links intact, which the subdomain does not, as well as keeping a web server active to service any other sites besides just managing the proxy.

Discussion for ch 5: Functions

Great stuff. Just a nitpick:

CHECK(hypotenuse(3.0, 4.0) == 5.0);

I would use ==Approx because floating point arithmetic.

Chapter 3: catch2 file not found

In chapter 3 there is an error when using Compiler Explorer;
fatal error: 'catch2/catch_test_macros.hpp' file not found
#include <catch2/catch_test_macros.hpp>

It appears that catch2 is not found by Compiler Explorer.

RSS?

Getting an RSS feed on your blog by any chance? I'd love to stay subscribed to it ;P

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.