TechSolutions
http://techsolutions.twoday.net/
danielgruen
danielgruen
2015-02-02T18:46:14Z
en
hourly
1
2000-01-01T00:00:00Z
TechSolutions
http://static.twoday.net/icon.gif
http://techsolutions.twoday.net/
-
iPhone to linux
http://techsolutions.twoday.net/stories/1022393604/
<div class="moblog_text">gphoto2 --port=usb -R -P copies all images from an iPhone to the<br />
current directory</div>
danielgruen
Copyright © 2015 danielgruen
2015-02-02T18:46:14Z
-
MNRAS submission problems with Type 3 fonts
http://techsolutions.twoday.net/stories/752348010/
<div class="moblog_text">Matplotlib ps files like to contain Type 3 fonts, which is something<br />
publishers hate. A grep of the ps files for FontType tells you which<br />
of them are problematic. Then the gs command<br />
<br />
gs -sDEVICE=epswrite -dNOCACHE -sOutputFile=zzz_f1.ps -q -dbatch<br />
-dNOPAUSE zzz.ps -c quit<br />
<br />
will generate a copy of the file with the fonts magically converted.</div>
danielgruen
Copyright © 2014 danielgruen
2014-04-13T17:45:25Z
-
PPPOE connection problems
http://techsolutions.twoday.net/stories/434213140/
<div class="moblog_text">I was facing connection problems after some technical changes on the<br />
side of our DSL provider Tele2 with Linux/PPPOE. While the connection<br />
was established and some websites (in particular google) were loading,<br />
most websites were waiting for connection without success.<br />
<br />
The solution was to decrease the mtu to 1400 in /etc/ppp/peers/dsl-provider</div>
danielgruen
Copyright © 2013 danielgruen
2013-06-28T23:51:11Z
-
Sort products randomly in Magento categories
http://techsolutions.twoday.net/stories/64965491/
<div class="moblog_text">http://www.magentocommerce.com/boards/v/viewthread/232826/#t331309<br />
nicely describes how to sort products randomly in Magento categories.<br />
If you override the model and block by local code instead of editing<br />
the core code, you'll have a upgrade-proof version of this.</div>
danielgruen
Copyright © 2012 danielgruen
2012-02-01T16:29:16Z
-
The real deal for compressing PDFs
http://techsolutions.twoday.net/stories/49609037/
<div class="moblog_text">gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen<br />
-dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf</div>
danielgruen
Copyright © 2011 danielgruen
2011-11-11T15:02:33Z
-
Archivierung mit tsm
http://techsolutions.twoday.net/stories/49594799/
<div class="moblog_text"><blockquote>
/opt/tivoli/tsm/client/ba/bin/dsmc ar -descr="blabla" foo.tar.gz
</blockquote></div>
danielgruen
Copyright © 2011 danielgruen
2011-10-26T12:37:15Z
-
Installing PSFEx locally
http://techsolutions.twoday.net/stories/49586851/
<div class="moblog_text">Install ATLAS first, as prescribed; then run
<blockquote>
./configure --prefix=/home/rigel/dgruen</blockquote></div>
danielgruen
Copyright © 2011 danielgruen
2011-10-20T12:41:19Z
-
Using an external hard drive on multiple systems
http://techsolutions.twoday.net/stories/43003994/
<div class="moblog_text">Using an external hard drive with file systems such as ext or xft on<br />
multiple systems can be difficult when user privileges are scrambles<br />
due to different user and group ids on different hosts. My best<br />
current bet was to adapt the local user and group id of my user on the<br />
machine I have root access to to the one on the machine where I only<br />
have user access.<br />
<br />
You can use usermod and groupmod to change the uid and gid<br />
(http://www.cyberciti.biz/faq/howto-change-rename-user-name-id/) then
<blockquote>
find / -user 1000 | xargs chown -h 2284<br />
find / -group 1000 | xargs chown -h 2000
</blockquote>
to change user and group ids of files accordingly (here, the initial<br />
user was 1000.1000 and the final is 2284.2000).<br />
<br />
Change all user ids on the external hard drive accordingly and it should work!</div>
danielgruen
Copyright © 2011 danielgruen
2011-10-14T14:15:59Z
-
Downloading reference catalogs with cdsclient
http://techsolutions.twoday.net/stories/29746366/
danielgruen
Copyright © 2011 danielgruen
2011-06-20T21:26:36Z
-
Sorting Numpy Python Arrayz by Column
http://techsolutions.twoday.net/stories/25482973/
danielgruen
Copyright © 2011 danielgruen
2011-06-16T22:50:53Z
-
Extracting FITS header
http://techsolutions.twoday.net/stories/25482737/
<div class="moblog_file"><a href="http://techsolutions.twoday.net/files/extractheader/">extractheader</a> (py, 0 KB)</div>
danielgruen
Copyright © 2011 danielgruen
2011-06-16T18:24:50Z
-
Latex-Literaturverzeichnis mit anderer Überschrift
http://techsolutions.twoday.net/stories/19463452/
danielgruen
Copyright © 2011 danielgruen
2011-06-06T15:35:06Z
-
SExtractor backgrounds
http://techsolutions.twoday.net/stories/19450752/
<div class="moblog_text">SExtractor uses an interpolated background for object detection and<br />
either the same or a locally determined background for photometry (see<br />
keyword BACKPHOTO_TYPE). But what is the background returned as the<br />
output parameter BACKGROUND and subtracted from the image for the<br />
output VIGNET?<br />
<br />
BACKGROUND is the actual background used for photometry and selected<br />
with BACKPHOTO_TYPE. The output VIGNET has the globally interpolated<br />
background subtracted, however does not change if you use<br />
BACKPHOTO_TYPE LOCAL. This is true as of version 2.8.6.</div>
danielgruen
Copyright © 2011 danielgruen
2011-06-01T15:30:30Z
-
Multiplication with expr
http://techsolutions.twoday.net/stories/19445519/
<div class="moblog_text">One stupid fact about multiplication with expr is that a simple '*'<br />
won't work; you have to escape it as in
<blockquote>
expr 3 \* 4
</blockquote></div>
danielgruen
Copyright © 2011 danielgruen
2011-05-30T17:55:04Z
-
Graphviz-Graphen in einzelne Seiten aufteilen
http://techsolutions.twoday.net/stories/19445506/
<div class="moblog_text">Ein <a href="http://www.graphviz.org/">Graphviz</a>-Graph ist oft so<br />
gross, dass er gar nicht sinnvoll auszudrucken ist. Mit der Zeile
<blockquote>
page = "8.27,11.69"
</blockquote>
innerhalb des digraph-Environments laesst sich die Ausgabe aber<br />
automatisch in DIN-A4-Seiten (deren Groesse hier in Zoll angegeben<br />
ist) aufteilen und so bequem ausdrucken und an die Wand kleben^.</div>
danielgruen
Copyright © 2011 danielgruen
2011-05-30T17:46:41Z
find
Search this site:
q
http://techsolutions.twoday.net/search