<div dir="ltr"><div>I have a command that's working, but it's slow – the method for clearing marks is definitely a bottleneck. So, yeah, it needs something simpler to clear all the marks and probably some feedback on improving the speed (I'm not a ruby dev). Also, clearing without the line number seems to clear the marks for all open docs every time, rather than just the one you're looking at. Perhaps saving a copy of the current files marks to a temp file would help, then you could read that in and remove them all.</div><div><br></div><a href="https://gist.github.com/gdsmith/10b7eefa413af7d1ba914fc5dffe44e9">https://gist.github.com/gdsmith/10b7eefa413af7d1ba914fc5dffe44e9</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 June 2016 at 07:35, Carpii UK <span dir="ltr"><<a href="mailto:carpii.uk@gmail.com" target="_blank">carpii.uk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thats beautiful :-)<div><br></div><div>thankyou <div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On 1 June 2016 at 03:56, Gerd Knops <span dir="ltr"><<a href="mailto:gerti-textmate@bitart.com" target="_blank">gerti-textmate@bitart.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>%!PS-Adobe-3.1 EPSF-3.0</div><div>%%BoundingBox: 0 0 10 10</div><div>newpath</div><div>0 0 moveto</div><div>0 10 rlineto</div><div>10 0 rlineto</div><div>0 -10 rlineto</div><div>closepath</div><div>0.1 0.4 0.7 setrgbcolor</div><div>fill</div><div><div><div><br></div><div><br></div><div><blockquote type="cite"><div>On May 31, 2016, at 21:20, Carpii UK <<a href="mailto:carpii.uk@gmail.com" target="_blank">carpii.uk@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Had a couple of hours spare today, so set about trying to see how I could generate an eps file from script (bash/PHP)<div><br></div><div>Saving a 10*10 flat color eps from Illustrator resulted in a 400k file. As Allan says, much of it will be boilerplate and error handling, but either way, its not practical to strip that down to a barebone vector eps.</div><div><br></div><div>Looking at the other software tools I had available, it seems many of them don't actually create a true vector image, but simply embed a rasterised bitmap inside an EPS wrapper (in which case it offers none of the advantages of EPS, as we may aswell revert to PNG).</div><div><br></div><div>Can anyone recommend some tools which are able to produce small eps files, but are still actually vectors?</div><div><br></div><div>Playing with ImageMagick at the moment, but Im not yet convinced thats not rasterising the end result also</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 May 2016 at 15:56, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 2016-05-31 15:12, Allan Odgaard wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You need to also close stdout/err, example:<br>
<br>
     pid = fork do<br>
       STDOUT.reopen(open('/dev/null', 'w'))<br>
       STDERR.reopen(open('/dev/null', 'w'))<br>
<br>
       sleep 5<br>
     end<br>
     Process.detach(pid)<br>
</blockquote>
<br></span>
Ah, that worked. Thanks.<span><font color="#888888"><br>
<br>
-- <br>
/Jacob Carlborg</font></span><div><div><br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" rel="noreferrer" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</div></div></blockquote></div><br></div>
<br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a></div></blockquote></div><br></div></div></div><br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" rel="noreferrer" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br></div></div></div></div></div>
<br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" rel="noreferrer" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Kind regards,</div><div>George.</div><div><br></div><a href="http://gsgd.co.uk" target="_blank">http://gsgd.co.uk</a></div></div>
</div>