viktorianer

viktorianer

High Performance PostgreSQL for Rails: Contains non-printing unicode characters

I found it challenging to use code examples from this book, particularly because the queries containing non-printing Unicode characters. E.g.,

epub book:

rideshare_development=> REINDEX ​INDEX​ index_users_on_email;
ERROR:  syntax error at or near "​INDEX​"
LINE 1: REINDEX ​INDEX​ index_users_on_email;
                ^
Time: 0.917 ms

pdf book:

rideshare_development=> REINDEX INDEX index_users_on_email;
REINDEX
Time: 5906.267 ms (00:05.906)

Is there any way, to create epub format book, with printing Unicode characters only?

Thanks a lot!
Viktor

Marked As Solved

viktorianer

viktorianer

Oh, I just realized that you can click on each example to download the code :blush:. Did I miss this feature because I’ve been using the book without internet access? Or is there an explanation for this in the book that I might have overlooked?

Anyway, downloading the examples does help solve this problem, as I will go back to the code on my notebook eventually.

Initially, I was looking for the files in the repository itself and was surprised not to find those examples there. It was a bit frustrating not to find those files directly. Now, with the link, I understand why they are not included. :smiley:

But isn’t the book repository the best place for those code examples?

Also Liked

viktorianer

viktorianer

Hi Andrew,

Thank you for your response and suggestion.

I understand that the recommended approach is to download the code sample directory separately and work with the text files from there.

However, I’m actually using the epub format because I primarily use a Kindle for reading. The book seems to be generally written with the approach of going to the posts and code on the web, which doesn’t work well for me as I often read while on the go with my Kindle and don’t have access to those resources.

My current approach is to read as much as possible in the book and take notes along the way. When I’m back at my notebook, I then start again with the examples and links to posts.

It’s not the best method, but it works to some extent. Ideally, I would prefer to have the examples directly in the book for convenience.

I would appreciate any further suggestions or adjustments that could make the code examples more accessible within the epub format.

Thank you again for your help and understanding.

Best regards,

Viktor

Popular Pragmatic topics Top

jimschubert
In Chapter 3, the source for index introduces Config on page 31, followed by more code including tests; Config isn’t introduced until pag...
New
kuroneko
Whilst the author has been careful to provide exact results for the tests elsewhere in the book (such as surds with the transformation te...
New
iPaul
page 37 ANTLRInputStream input = new ANTLRInputStream(is); as of ANTLR 4 .8 should be: CharStream stream = CharStreams.fromStream(i...
New
mikecargal
Title: Hands-On Rust (Chap 8 (Adding a Heads Up Display) It looks like ​.with_simple_console_no_bg​(SCREEN_WIDTH*2, SCREEN_HEIGHT*2...
New
herminiotorres
Hi! I know not the intentions behind this narrative when called, on page XI: mount() |> handle_event() |> render() but the correc...
New
rmurray10127
Title: Intuitive Python: docker run… denied error (page 2) Attempted to run the docker command in both CLI and Powershell PS C:\Users\r...
New
nicoatridge
Hi, I have just acquired Michael Fazio’s “Kotlin and Android Development” to learn about game programming for Android. I have a game in p...
New
tkhobbes
After some hassle, I was able to finally run bin/setup, now I have started the rails server but I get this error message right when I vis...
New
redconfetti
Docker-Machine became part of the Docker Toolbox, which was deprecated in 2020, long after Docker Desktop supported Docker Engine nativel...
New
mcpierce
@mfazio23 I’ve applied the changes from Chapter 5 of the book and everything builds correctly and runs. But, when I try to start a game,...
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
New
DevotionGeo
I know that these benchmarks might not be the exact picture of real-world scenario, but still I expect a Rust web framework performing a ...
New
AstonJ
poll poll Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
AstonJ
If you are experiencing Rails console using 100% CPU on your dev machine, then updating your development and test gems might fix the issu...
New
gagan7995
API 4 Path: /user/following/ Method: GET Description: Returns the list of all names of people whom the user follows Response [ { ...
New
rustkas
Intensively researching Erlang books and additional resources on it, I have found that the topic of using Regular Expressions is either c...
New
CommunityNews
A Brief Review of the Minisforum V3 AMD Tablet. Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
New

Latest in PragProg

View all threads ❯