<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>sebenikela</title>
  <link>https://sebenikela.dreamwidth.org/</link>
  <description>sebenikela - Dreamwidth Studios</description>
  <lastBuildDate>Thu, 02 Apr 2020 16:06:15 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>sebenikela</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/9444977/2432870</url>
    <title>sebenikela</title>
    <link>https://sebenikela.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://sebenikela.dreamwidth.org/83580.html</guid>
  <pubDate>Thu, 02 Apr 2020 16:06:15 GMT</pubDate>
  <title>open source videoconferencing</title>
  <link>https://sebenikela.dreamwidth.org/83580.html</link>
  <description>&lt;p&gt;Because this seems like something people here might be interested in:
&lt;a href=&quot;https://jitsi.org/&quot;&gt;Jitsi Meet&lt;/a&gt; lets you set up your own server for video conference calls, or they have an in-browser setup that appears to be pretty straightforward to use &lt;a href=&quot;https://meet.jit.si/&quot;&gt;here&lt;/a&gt;, you create a meeting and then get a link to share, with the option to add a password. &lt;/p&gt;

&lt;p&gt;Apparently in addition to the various &quot;zoom bombings&quot; there&apos;s &lt;a href=&quot;https://uk.reuters.com/article/uk-spacex-zoom-video-commn/elon-musks-spacex-bans-zoom-over-privacy-concerns-memo-idUKKBN21J71J&quot;&gt;some concern about the security of zoom in general&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;(I am fine, btw, as much as one can be in all the craziness, I just haven&apos;t had the Brain to write posts and I expect this condition to persist for a while)&lt;/p&gt;
&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=sebenikela&amp;ditemid=83580&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://sebenikela.dreamwidth.org/83580.html</comments>
  <category>tech</category>
  <lj:security>public</lj:security>
  <lj:reply-count>1</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://sebenikela.dreamwidth.org/83401.html</guid>
  <pubDate>Mon, 24 Feb 2020 23:08:03 GMT</pubDate>
  <title>Today in computing mysteries</title>
  <link>https://sebenikela.dreamwidth.org/83401.html</link>
  <description>so for some reason my linux laptop hates R. This is confusing because:&lt;br /&gt;&lt;br /&gt;- the specs on this machine are similar to my 2015 MacBook Pro, which runs R without issues beyond occasional slowness (same 8GB of RAM, similar processing speed iirc, both SSD drives)&lt;br /&gt;&lt;br /&gt;- this machine runs similarly computationally intensive python code quite cheerfully&lt;br /&gt;&lt;br /&gt;HOWEVER&lt;br /&gt;&lt;br /&gt;- when using RStudio, my R session kept crashing anytime it dealt with large arrays&lt;br /&gt;&lt;br /&gt;- so I switched to R in a Jupyter notebook (well, technically Hydrogen in Atom but that’s essentially the same thing) and that froze the whole machine until it was done working&lt;br /&gt;&lt;br /&gt;- I have not done anything super complicated in straight up command line R from a terminal, but at this point I doubt that’d make much difference. also, that would be a shitty long-term solution regardless&lt;br /&gt;&lt;br /&gt;I have 2 questions for anyone who knows wtf I&apos;m talking about:&lt;br /&gt;&lt;br /&gt;1. WHY?&lt;br /&gt;&lt;br /&gt;2. Can I make R work better? How?&lt;br /&gt;&lt;br /&gt;Alternatively, I could apparently set up a remote notebook server on my mac and access it on my linux laptop, but that sounds like an even bigger pain in the ass.&lt;br /&gt;&lt;br /&gt;(relatedly, I configured my mac (which is no longer a laptop due to screen issues that means it needs an external display) to allow me to SSH in remotely, and to test that it was working I installed a terminal emulator (Terminus) on my phone which now means that I can execute R scripts to process multiple gigabytes of data... FROM MY PHONE. Which is the most hackerish thing ever and I am vastly amused by it)&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=sebenikela&amp;ditemid=83401&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://sebenikela.dreamwidth.org/83401.html</comments>
  <category>tech</category>
  <lj:security>public</lj:security>
  <lj:reply-count>2</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://sebenikela.dreamwidth.org/76370.html</guid>
  <pubDate>Thu, 11 Jul 2019 01:24:38 GMT</pubDate>
  <title>Calibre on linux tech support</title>
  <link>https://sebenikela.dreamwidth.org/76370.html</link>
  <description>&lt;p&gt;I mentioned on tumblr that I&apos;d gotten REAL FUCKING STUBBORN and spent 3 hours figuring out how to make the deDRM plugin for Calibre on linux work with stuff from Adobe Digital Editions. And &lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://sciatrix.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[personal profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://sciatrix.dreamwidth.org/&apos;&gt;&lt;b&gt;sciatrix&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; asked for the full how-to, which was good, because I&apos;d written down just enough to remember where in my search history to go to reconstruct the details, but not enough that I&apos;d actually have been able to repeat the process easily in 6 months or whatever when something inevitably breaks and I have to do it again. &lt;/p&gt;

&lt;p&gt;So I&apos;m putting the step-by-step instructions here for anyone else who wants it and also so I can find it again later.&lt;/p&gt;

&lt;p&gt;How to use the de-DRM plugin for Calibre on linux with Adobe Digital Editions:&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I &lt;em&gt;think&lt;/em&gt; this is what eventually worked for me (on Ubuntu 18.04 LTS, normal Calibre and deDRM plugin install)&lt;/p&gt;

&lt;p&gt;Step 0: get wine and winetricks
- &lt;em&gt;sudo apt install wine-stable winetricks&lt;/em&gt; (or something like this)&lt;/p&gt;

&lt;p&gt;Step 1: install ADE in wine (instructions from &lt;a href=&quot;https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=33276&amp;amp;iTestingId=104500&quot;&gt;here&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;create a new clean win32 wine prefix: &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE” WINEARCH=win32 wine wineboot&lt;/em&gt;   &lt;/li&gt;
&lt;li&gt;install some extra packages: &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE” winetricks corefonts dotnet40&lt;/em&gt;     &lt;/li&gt;
&lt;li&gt;Download ADE 4.5.0 – the latest 4.5.9 version refuses to install with “Adobe Digital Editions is already running :) :) :)” (which is infuriating) but you can get the 4.5.0 installer &lt;a href=&quot;https://filehippo.com/download_adobe_digital_editions/63548/&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Install ADE: &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE” wine ADE_4.5_Installer.exe&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;(optional, i don’t think i did this) fix graphics glitches:
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE” winetricks ddr=gdi&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 2: install a 32-bit version of python 2.7 WITHIN THAT WINE PREFIX:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;download &lt;a href=&quot;https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi&quot;&gt;x86 python installer&lt;/a&gt; &lt;a href=&quot;https://www.python.org/downloads/release/python-278/&quot;&gt;from python.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;install python into wine: &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE/” msiexec /i python-2.7.8.msi&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;install pycrypto tools from &lt;a href=&quot;http://www.voidspace.org.uk/python/modules.shtml&quot;&gt;here&lt;/a&gt; (I think it’s &lt;a href=&quot;http://www.voidspace.org.uk/downloads/pycrypto26/pycrypto-2.6.win32-py2.7.exe&quot;&gt;this one&lt;/a&gt; ) &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE/” wine pycrypto[…versionstuff].exe&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 3: Authorize ADE and download your stupid book&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open ADE and sign in with your Adobe ID&lt;/li&gt;
&lt;li&gt;Open the .ascm or whatever ADE-format file you got, this downloads the actual pdf/epub&lt;/li&gt;
&lt;li&gt;Close ADE&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 4: generate a key thingy and put it in Calibre&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The deDRM tools zipfile has an “other tools” folder with a bunch of scripts, one of which generates the key file you need. run that script from your wine directory, e.g.: &lt;br /&gt;
&lt;em&gt;~/.wineADE/drive_c/Other_Tools/DRM_Key_Scripts/Adobe_Digital_Editions$ wine python adobekey.pyw&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;This will create a file in that directory that’s something like &lt;em&gt;adobekey_1.der&lt;/em&gt;. Put that somewhere less awkward if you want.  &lt;/li&gt;
&lt;li&gt;Open Calibre preferences, go to the deDRM tools (under file types) and “customize plugins”, then click on the button for Adobe Digital Editions&lt;/li&gt;
&lt;li&gt;You’ll get a window with a place for your WINEPREFIX path, and a place to load the keyfile, at which point you go find the &lt;em&gt;adobekey_1.der&lt;/em&gt; file and put it there.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And now you should be able to add the ADE-downloaded PDF to Calibre and it will strip the DRM like with other formats.&lt;/p&gt;

&lt;p&gt;Notes: 
- there&apos;s probably ways to avoid putting the WINEPREFIX= bit in every time but whatever
- I am relatively new to linux so I probably can&apos;t answer a lot of questions but I can try
- Adobe can get fucked with a chainsaw for making this so goddamn difficult
&lt;/p&gt;

&lt;p&gt;ETA: I fucked up my wine prefix and then I couldn&apos;t get ADE 4.5 to work, but &lt;a href=&quot;https://patdavid.net/2018/05/installing-adobe-digital-editions-on-linux-with-wine/&quot;&gt;this guy&apos;s instructions for ADE 2.0&lt;/a&gt; seem to work&lt;/p&gt;
&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=sebenikela&amp;ditemid=76370&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://sebenikela.dreamwidth.org/76370.html</comments>
  <category>tech</category>
  <lj:security>public</lj:security>
  <lj:reply-count>8</lj:reply-count>
</item>
</channel>
</rss>
