profile
viewpoint
Mansour Behabadi oxplot oxplot Sydney Australia https://blog.oxplot.com

oxplot/gitwatch 269

Watch a git repository for changes

oxplot/pdftilecut 240

pdftilecut lets you sub-divide a PDF page(s) into smaller pages so you can print them on small form printers.

oxplot/fysom 158

Finite State Machine for Python (based on Jake Gordon's javascript-state-machine)

oxplot/ted2mkv 122

Downloads and converts TED videos to MKV format

oxplot/fabpide2 74

STUSB4500 Breakout — Stand-alone USB PD Sink Controller

oxplot/bradybound 66

Minimalist download speed limiter/shaper

oxplot/tjtag-pi 64

TJTAG JTAG flash programmer for WRT54G and related routers with Raspberry Pi support

oxplot/rsyncbtrfs 63

Backup tool combining rsync and btrfs

oxplot/svglinkify 31

Export inkscape SVGs to PDF while preserving hyperlinks

oxplot/imdb2json 22

Convert IMDB list files to JSON

issue closedoxplot/pdftilecut

Not working due to "cannot find MediaBox for page" error

./pdftilecut -tile-size A4 -in "Math 215 Course Outline.pdf" -out "Math 215 Course Outline split.pdf"
2020/06/04 10:25:41 cannot find MediaBox for page:
  /Contents 10 0 R
  /Parent 3 0 R
  /Resources 12 0 R
  /Type /Page

closed time in 3 days

archon810

issue closedoxplot/pdftilecut

How can I set the output size to 100% instead of the default "Small increase in output size."

I just want to output the original size of my A3 drawing tiled over several A4 pages. Is this possible? I didnt find your SmallIncreaseInOutputSize variable ;D

closed time in 3 days

rafo

push eventoxplot/quantemia

Mansour Behabadi

commit sha bd7d90494c7ac33127dd439780d197813cd68752

wip

view details

push time in 8 days

push eventoxplot/svglinkify

Mansour Behabadi

commit sha 4c48bf8c24c97b4b2a44d37f3cbf98d930af17e4

Update Readme.md

view details

push time in 8 days

issue closedoxplot/svglinkify

Unable to open output PDF in Adobe Reader

Hi there, not sure if you still actively maintain this but I tried to use your script and encountered the following problem:

  1. Create a test svg with some test link
  2. svglinkify drawing.svg drawing.pdf
  3. a. Opens fine in Okular, links are clickable b. Send to friend who uses Windows/Adobe Acrobat and it only shows a white box

capture

I have reproduced it on my own Windows installation as well so it's not an isolated issue.

Files are as attached: drawing.zip

Platform: Linux x86_64 OS: Arch Linux Inkscape: ver 0.92.4-2

Any workaround?

closed time in 8 days

sunjerry019

issue commentoxplot/svglinkify

Unable to open output PDF in Adobe Reader

It seems that the latest version of inkscape now embeds the links automatically ! (v1.0 (4035a4fb49, 2020-05-01))

This is amazing news! Well, that marks the end of this project. Thanks for letting us know.

sunjerry019

comment created time in 8 days

create barnchoxplot/quantemia

branch : master

created branch time in 8 days

created repositoryoxplot/quantemia

created time in 8 days

pull request commentpicocss/pico

Apply the same margin optimization for html select

Unfortunately, I don't have the tools setup on my machine to build the CSS files. I'll leave it to you. Thanks and cheers.

oxplot

comment created time in 11 days

PR opened picocss/pico

Apply the same margin optimization for html select

the same way it's done for input elements.

+1 -1

0 comment

1 changed file

pr created time in 11 days

push eventoxplot/pico

Mansour Behabadi

commit sha 4efd232d3602068c5f2db4e6defaaa9777df9eed

Apply the same margin optimization for html select the same way it's done for input elements.

view details

push time in 11 days

fork oxplot/pico

Graceful & Minimal CSS design system in pure semantic HTML

https://picocss.com

fork in 11 days

issue closedspaetz/offlineimap

Gmail Chat Log Sync Issue

Google recently added chat logs as a folder in IMAP to allow backups using IMAP clients. However, offlineimap fails when "select"ing the mailbox. Here's the error trace I get:

Server 'imap.gmail.com' closed connection, error on SELECT '[Gmail]/Chats'. Server said: [Gmail]/Chats is not writable

Traceback:
  File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 413, in syncfolder
    if not remotefolder.check_uidvalidity():
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 123, in check_uidvalidity
    return self.get_saveduidvalidity() == self.get_uidvalidity()
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 79, in get_uidvalidity
    self.selectro(imapobj)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 55, in selectro
    imapobj.select(self.getfullname(), force = force)
  File "/usr/lib/python2.7/site-packages/offlineimap/imaplibutil.py", line 62, in select
    raise OfflineImapError(errstr, severity)

I temporarily fixed this issue by raising IMAP.readonly exception when IMAP.abort occurs as result of select() call in imaplibutil.py:55 :

    try:
        result = super(UsefulIMAPMixIn, self).select(mailbox, readonly)
    except self.abort, e:
        raise self.readonly() # added to temporarily fix the issue
        # self.abort is raised when we are supposed to retry

closed time in 16 days

oxplot

fork oxplot/gexto

EXT2/EXT3/EXT4 Filesystem library for Golang

fork in a month

startednerd2/gexto

started time in a month

fork oxplot/mcp2221a

Go module for the MCP2221A USB to I²C/UART Protocol Converter with GPIO

fork in a month

issue commentoxplot/pdftilecut

How can I set the output size to 100% instead of the default "Small increase in output size."

the cutting marks are exactly at 2x2.54cm?

Yep. Trim margin is 5/6" of an inch and bleed margin is 1/6", total of 1 inch margin around the page.

rafo

comment created time in a month

issue commentoxplot/pdftilecut

How can I set the output size to 100% instead of the default "Small increase in output size."

OK, I can't print this right now, but looking at the page sizes as reported by my PDF viewer, this is what I see:

  • Page size of the original PDF: A3, Landscape (16.54 × 11.69 inch)
  • Page size of each tile is: 7.51 × 7.85 inch

Each tile has exactly a 1 inch border. There are 3 tiles across and 2 tiles down. So let's do the math:

  • Total content width of tiles across = (7.51 - 2) * 3 = 16.53
  • Total content height of tiles down = (7.85 - 2) * 2 = 11.7

So they're off by 0.01 inch and that's just rounding error. The only thing I can think of is that your print settings are exactly right and the pages are being stretched before printing.

rafo

comment created time in a month

issue commentoxplot/pdftilecut

How can I set the output size to 100% instead of the default "Small increase in output size."

Also note that each tile has a margin which in addition to the content, must fit inside the output size you specify.

rafo

comment created time in a month

issue commentoxplot/pdftilecut

How can I set the output size to 100% instead of the default "Small increase in output size."

The output is what I expect.

Perhaps the point of confusion is that the tiles are not in fact A4 sized. This is because the output size you set is the maximum size, and not the exact size. pdftilecut tries to make all tiles the same size, while ensuring each tile is under the output size you specify, but as large as possible.

Does this clarify why the output is the way it is?

rafo

comment created time in a month

issue commentoxplot/pdftilecut

How can I set the output size to 100% instead of the default "Small increase in output size."

I can send you the PDF if you want.

Yes please send both the original and the tiled one.

rafo

comment created time in a month

IssuesEvent

issue closedoxplot/pdftilecut

How can I set the output size to 100% instead of the default "Small increase in output size."

I just want to output the original size of my A3 drawing tiled over several A4 pages. Is this possible? I didnt find your SmallIncreaseInOutputSize variable ;D

closed time in a month

rafo

push eventoxplot/pdftilecut

Mansour Behabadi

commit sha 9ca9338b13d120e34102b909110a5ad47328359a

Clarify feature

view details

push time in a month

issue commentoxplot/pdftilecut

How can I set the output size to 100% instead of the default "Small increase in output size."

I just want to output the original size of my A3 drawing tiled over several A4 pages. Is this possible? I didnt find your SmallIncreaseInOutputSize variable ;D

The output canvas is always at 100% of the original size. The "small increase in output size" refers to the file size. I'll clarify this.

rafo

comment created time in a month

issue commentoxplot/pdftilecut

Not working due to "cannot find MediaBox for page" error

Thanks for the report. Can you upload a sample PDF with this issue?

archon810

comment created time in 2 months

created tagoxplot/pdftilecut

tagv0.4

pdftilecut lets you sub-divide a PDF page(s) into smaller pages so you can print them on small form printers.

created time in 2 months

push eventoxplot/pdftilecut

Mansour Behabadi

commit sha af9ca3bff60eed47026a6e1c40b6ef85e5b36393

ci: set exec flag on release binaries

view details

push time in 2 months

issue commentoxplot/fabpide2

Resistor Numbering Skips 12

Thanks Brendan. Is it bad practice to have gaps in numbering?

BrendanMcCallum

comment created time in 2 months

push eventoxplot/gists

Mansour Behabadi

commit sha 964900c3a05909e26373dc32fcef34a13898b121

Add QR URL opener

view details

push time in 2 months

delete branch oxplot/mqtt2prometheus

delete branch : sensor-name-filtering

delete time in 3 months

push eventoxplot/vense

Mansour Behabadi

commit sha 5aae8699f969c93b383984506caf6dc859fbe890

Add some data

view details

push time in 3 months

push eventoxplot/vense

Mansour Behabadi

commit sha 0aac1e020f84bdcdb1412c5bc3cb551d3f2aeda5

Fail less often

view details

Mansour Behabadi

commit sha b04a37743af770e6f9518e847cb4cc989edbee8c

More scripts

view details

push time in 3 months

push eventoxplot/vense

Mansour Behabadi

commit sha 7f9f8079b69046e5b0920bf9f00eb3c00f62634a

New tools

view details

push time in 3 months

push eventoxplot/vense

Mansour Behabadi

commit sha dc40fd34ab0b8ee7f87bdea99fb684ea5e2157b8

Add derive_rules

view details

push time in 3 months

pull request commenthikhvar/mqtt2prometheus

Sensor name filtering

Done

oxplot

comment created time in 3 months

push eventoxplot/mqtt2prometheus

Mansour Behabadi

commit sha 7b5796b042a02066034f98222d09cd5f7a0fe4f7

Add sensor name filter config

view details

Mansour Behabadi

commit sha 8d0c1e0f2b0b4e1fb1b4c0d4580d3b9e10beca09

gofmt cmd/

view details

push time in 3 months

pull request commenthikhvar/mqtt2prometheus

Sensor name filtering

Is this intended?

No. And I see — the shape of the config file threw me off. I missed that a map is constructed to based on MQTT name.

I think the ingestor should iterate over all the rules and apply the first matching one.

oxplot

comment created time in 3 months

PR opened hikhvar/mqtt2prometheus

Sensor name filtering
+40 -6

0 comment

4 changed files

pr created time in 3 months

create barnchoxplot/mqtt2prometheus

branch : sensor-name-filtering

created branch time in 3 months

delete branch oxplot/mqtt2prometheus

delete branch : parse-more-value-types

delete time in 3 months

more