profile
viewpoint

mattetti/merb-book 186

Open Source Merb book

aq1018/dm-is-slug 15

makes permalinks easy for datamapper objects

pointlessone/acts_as_xapian 4

Xapian full text search plugin for Ruby on Rails. See the Readme.textile for instructions.

pointlessone/cancan 1

Authorization Gem for Ruby on Rails.

pointlessone/chebatron-gentoo 1

My Gentoo overlay

pointlessone/CSS1K 1

A demonstration of what can be accomplished with only 1 K of CSS.

pointlessone/cucumber-rails 1

Rails Generators for Cucumber with localized steps for Capybara and Webrat

pointlessone/a-very-brief-intro-to-rust 0

a very quick intro to rust syntax for those new to the language

pointlessone/active_paypal_adaptive_payment 0

PayPal Adaptive Payments for Active Merchant

issue commentSQLiteFlow/SQLiteFlow-Issues

macOS Shortcuts support

Thank you for extensive explanation.

I guess this issue can be closed. Or moved to discussions for others to find.

pointlessone

comment created time in 8 days

issue commentprawnpdf/prawn

Repeater should be added before any other content (or allow it)

the only way to setup margin is only by giving parameter to Prawn::Document.generate() and start_new_page() right?

You can also use bounding_box with a block or assign bounds on the document.

estani

comment created time in 13 days

issue commentprawnpdf/prawn

Repeater should be added before any other content (or allow it)

You can try setting margins to leave enough space for your header image.

estani

comment created time in 14 days

issue commentprawnpdf/prawn

Repeater should be added before any other content (or allow it)

I don't think placing on_page_create into a repeater achieves anything useful.

I agree that this is a confusing behaviour but it's a nature of Prawn. You can think of Prawn as being a streaming library. Document is constructed as the code executes. The fact that you can jump around pages doesn't change this fact.

Streaming nature dictates how the document is created and in which order it is being constructed. For historical reasons (mostly) Prawn creates first page on initialization. That is before any on_page_create callback could be defined.

One work around might be to pass skip_page_creation: true option to Prawn document constructor. That will still create a page but it won't be added to the document sequence. You'll have an opportunity to define the callback but you'll have to manually add the first page.

require 'open-uri'

Prawn::Document.generate("test.pdf", skip_page_creation: true) do
  on_page_create do
    image URI.open("https://prawnpdf.org/images/prawn.png")
  end

  1.upto(3) do |n|
    start_new_page
    text "Page #{n}\n" * 10
  end
end

This produces a document with 3 pages each having an image in the background and the text in the foreground.

test.pdf

estani

comment created time in 14 days

issue commentSQLiteFlow/SQLiteFlow-Issues

macOS Shortcuts support

Well, that a workable workaround. Thank you.

pointlessone

comment created time in 19 days

issue commentSQLiteFlow/SQLiteFlow-Issues

macOS Shortcuts support

Is there any way to make actions portable?

For example, make a new action that accepts a db file as an input and have another action (or use the ones provided by Shortcuts) that can look that db file up in a portable manner?

pointlessone

comment created time in 20 days

startedandregasser/macos-fileprovider-api-example

started time in a month

issue openedLej77/tab-count-in-window-title

No clean-up when disabling the extension

When the extension is disabled/removed the title is kept with the last value of tab count. Obviously, it's not updated on new tabs or when tabs are closed. Tab count is cleaned up on browser restart.

created time in a month

issue closedprawnpdf/prawn

Text and images sometimes on the wrong page

Hi, I have problem when i generate a pdf file things seem to get mixed up.

(I use prawn 2.4.0 and prawn-table 0.2.2)

In development the report with a variable number of pages works ok. In production (Heroku) i get sometimes wrong text and images from other pages on the first page. Intended tekst on the first pages seems to be starting lower.

My code is quite complex but the flow is like below:

 @pdf = Prawn::Document.new
 #Put out header and table
 # loop for number of pages
  @pdf.start_new_page
  # put out header text table and images

Now i get sometimes an image and some text on the first page ?

Problem is i cannot reproduce the problem, if i run the report a second time the report is ok. Should i initialize some variables ?

Regards, Peter

closed time in a month

Bodata

issue commentprawnpdf/prawn

Text and images sometimes on the wrong page

No, you don't need to explicitly initialize any variables.

I suspect the code you presented is not quite representative of your actual code. Maybe your @pdf gets mixed up with something or is a leftover from previous call?

Try Prawn::Document.generate with a block and see if that fixes your issue. Other than that it's hard to recommend anything without a representative code example.

Bodata

comment created time in a month

push eventpointlessone/qBittorrent

Alexander Mankuta

commit sha 90aaa29fcdae978b1f53ffb2929472634bd69899

Trigger CI

view details

push time in a month

issue commentqbittorrent/qBittorrent

v4.3.5 not working on MacOS 11.3.1

I use Little Snitch. Turning it off doesn't seem to have any effect.

jamesblonde007

comment created time in 2 months

issue commentqbittorrent/qBittorrent

v4.3.5 not working on MacOS 11.3.1

I have this issue.

I think there might be some sort of race condition. The app starts fine with only a few of the .fastresume files but freezes when there are many. I removed all fastresume files and started adding them back as an experiment. I can have any 7 of my torrents back but when I add another one the app freezes on start.

It also freezes on exit with only 6 torrents. With 5 it manages to hide the window sometimes. Exit cleanly with 4.

There's nothing remotely interesting in the log.

jamesblonde007

comment created time in 2 months

issue closedprawnpdf/prawn

When using pdf.render_file, I want to save the file to amazon S3.

How should I write to specify the save destination?

pdf.render_file "test.pdf" This code will be saved in the root directory.

I spend many days on this difficult problem. It would be really helpful if you could tell me.

closed time in 2 months

akkyta

issue commentprawnpdf/prawn-table

State of maintainership?

You can consider this project feature stable. It is by no mean perfect and contributions are welcome but other then that it does what it was designed to do and does it fairly well for the majority of the most common use cases.

Also I'm not the maintainer of this project. This project has its own maintainers. However, I think my statement reflects their position at least to some degree.

leoarnold

comment created time in 2 months

issue commentkopia/kopia

High Memory Usage

I started using Kopia a few weeks ago and started getting OOMs not too long after that.

I'm using Kopia on a medium-sized VPS with 4 GB of RAM. I back up about 40GB of data.

kopia blob stats:

Count: 3929
Total: 52.1 GB
Average: 13.3 MB
Histogram:

        0 between 0 B and 10 B (total 0 B)
        3 between 10 B and 100 B (total 42 B)
       90 between 100 B and 1 KB (total 18.2 KB)
      585 between 1 KB and 10 KB (total 2.5 MB)
      116 between 10 KB and 100 KB (total 5 MB)
      176 between 100 KB and 1 MB (total 85.3 MB)
      686 between 1 MB and 10 MB (total 2 GB)
     2273 between 10 MB and 100 MB (total 50 GB)

kopia content stats:

Count: 976274
Total Bytes: 52.8 GB
Total Packed: 42.2 GB (compression 20.1%)
By Method:
  (uncompressed)         count: 439453 size: 32.5 GB
  lz4                    count: 536821 size: 20.3 GB packed: 9.7 GB compression: 52.3%
Average: 54.1 KB
Histogram:

        0 between 0 B and 10 B (total 0 B)
     9598 between 10 B and 100 B (total 576.5 KB)
   263406 between 100 B and 1 KB (total 118.2 MB)
   461187 between 1 KB and 10 KB (total 1.8 GB)
   204009 between 10 KB and 100 KB (total 4.5 GB)
    27386 between 100 KB and 1 MB (total 8.2 GB)
    10688 between 1 MB and 10 MB (total 27.5 GB)
        0 between 10 MB and 100 MB (total 0 B)

OOM report from the kernel:

Tasks state (memory values in pages):
[  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[...]
[   2227]     0  2227   640194   379572  3870720        0             0 kopia
[...]
oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=kopia,pid=2227,uid=0
oom_reaper: reaped process 2227 (kopia), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
ChromoX

comment created time in 2 months

starteddevfake/flox

started time in 2 months

issue commentprawnpdf/prawn

`width_of` not considering linebreaks

Prawn doesn't define the width of tab character. The font does. There's a glyph in the font that corresponds to the tab character. That glyph most likely has no graphic component to it but it has what's called Advance Width. That number specifies for how much to move the graphic cursor after rendering a glyph. Incidentally, that's what Prawn uses to determine width of a character.

estani

comment created time in 3 months

issue commentprawnpdf/prawn

`width_of` not considering linebreaks

You assume there's a thing called "tab stop". It's probably a valid assumption, after all you see it everywhere: terminals, word processors, etc. But it's not the case in Prawn. Prawn uses default advance values provided by the font. There's no way to define tab stops for text rendering in Prawn. You'll have to handle that manually.

estani

comment created time in 3 months

startedorhun/git-cliff

started time in 3 months

more