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

Where Next?

Popular Pragmatic Bookshelf topics Top

mikecargal
Title: Hands-On Rust (Chapter 11: prefab) Just played a couple of amulet-less games. With a bit of debugging, I believe that your can_p...
New
jdufour
Hello! On page xix of the preface, it says there is a community forum "… for help if your’re stuck on one of the exercises in this book… ...
New
joepstender
The generated iex result below should list products instead of product for the metadata. (page 67) iex> product = %Product{} %Pento....
New
gilesdotcodes
In case this helps anyone, I’ve had issues setting up the rails source code. Here were the solutions: In Gemfile, change gem 'rails' t...
New
swlaschin
The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17. The correct Problem/Solution space diagrams ar...
New
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
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
dsmith42
Hey there, I’m enjoying this book and have learned a few things alredayd. However, in Chapter 4 I believe we are meant to see the “>...
New
creminology
Skimming ahead, much of the following is explained in Chapter 3, but new readers (like me!) will hit a roadblock in Chapter 2 with their ...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
New

Other popular topics Top

Devtalk
Reading something? Working on something? Planning something? Changing jobs even!? If you’re up for sharing, please let us know what you’...
1030 17300 381
New
ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
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
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
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
PragmaticBookshelf
Author Spotlight Mike Riley @mriley This month, we turn the spotlight on Mike Riley, author of Portable Python Projects. Mike’s book ...
New
PragmaticBookshelf
Author Spotlight: Tammy Coron @Paradox927 Gaming, and writing games in particular, is about passion, vision, experience, and immersio...
New

Sub Categories: