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 Bookshelf topics Top

Razor54672
The answer to 3rd Problem of Chapter 5 (Making Choices) of “Practical Programming, Third Edition” seems incorrect in the given answer ke...
New
brianokken
Many tasks_proj/tests directories exist in chapters 2, 3, 5 that have tests that use the custom markers smoke and get, which are not decl...
New
yulkin
your book suggests to use Image.toByteData() to convert image to bytes, however I get the following error: "the getter ‘toByteData’ isn’t...
New
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
New
cro
I am working on the “Your Turn” for chapter one and building out the restart button talked about on page 27. It recommends looking into ...
New
curtosis
Running mix deps.get in the sensor_hub directory fails with the following error: ** (Mix) No SSH public keys found in ~/.ssh. An ssh aut...
New
oaklandgit
Hi, I completed chapter 6 but am getting the following error when running: thread 'main' panicked at 'Failed to load texture: IoError(O...
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
EdBorn
Title: Agile Web Development with Rails 7: (page 70) I am running windows 11 pro with rails 7.0.3 and ruby 3.1.2p20 (2022-04-12 revision...
New
New

Other popular topics Top

AstonJ
A thread that every forum needs! Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
New
New
PragmaticBookshelf
“Finding the Boundaries” Hero’s Journey with Noel Rappin @noelrappin Even when you’re ultimately right about what the future ho...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
Exadra37
Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
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
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New

Sub Categories: