Apache sslv3 test

openssl s_client -connect google.com:443 -ssl3

 

How to disable?

SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite “EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS”

service httpd graceful

Reference:
http://blog.adityapatawari.com/2014/10/how-to-check-for-ssl-poodle-sslv3-bug.html

Calibre Server

http://linuxphilia.blogspot.com/2012/06/my-wife-and-i-like-to-read-books-on-go.html

http://dearauthor.com/ebooks/create-your-own-cloud-of-ebooks-with-calibre-calibre-opds-dropbox/

Someone has finally created a Web Interface for calibre.  (link)

http://blog.slucas.fr/en/oss/calibre-opds-php-server

https://www.digitalocean.com/community/tutorials/how-to-create-a-calibre-ebook-server-on-ubuntu-14-04

LaTex for Beginners

I’ll be doing this under windows, but will be listing software that works under all operating systems.

Tutorials:

  • http://www.andy-roberts.net/writing/latex
  • http://tex.stackexchange.com/questions/3852/latex-template-for-a-technical-reference-manual-user-guide
  • http://www.ctan.org/pkg/refman
  • http://www.ctan.org/pkg/memoir
  • http://mirrors.rit.edu/CTAN/info/latex-samples/MemoirChapStyles/MemoirChapStyles.pdf
  • http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/memoir/memman.pdf

LaTex Editors

Crashplan setup

Diagnosing

The steps below can confirm whether or not memory usage is causing the symptoms described above.

  1. Navigate to the log folder for your operating system:
    • Windows XP: C:\Documents and Settings\All Users\Application Data\CrashPlan\log
    • Windows Vista, 7, 8: C:\ProgramData\CrashPlan\Log
    • Mac OS X: /Library/Logs/CrashPlan
    • Linux (default): /usr/local/crashplan/log
    • Solaris (default): /opt/sfw/crashplan/log
  2. Open each service.log.# file in a text editor and look for the phrase “OutOfMemoryError”:
[09.23.12 22:33:02.273 ERROR   QPub-BackupMgr       backup42.service.backup.BackupController] OutOfMemoryError occurred...RESTARTING! message=OutOfMemoryError in BackupQueue!
  1. If you see this message, adjust the maximum amount of memory that the CrashPlan app can use by following the steps in the recommended solution for your operating system.

Considerations

 

  • CrashPlan uses memory up to the maximum allotted. The maximum is used only if it is needed.
  • Code42 typically recommends allocating 1 GB (1024 MB) of memory per 1 TB of storage (or per 1 million files).​ Although CrashPlan only requires approximately 600 MB of memory per 1 TB of storage (or per 1 million files), our recommendation is intended to account for growth in your file selection.

Sample Recommendations    

Backup Selection Size Recommended Memory Allocation (MB)
Up to 1 TB or up to 1 million files 1024 (default)
1.5 TB or 1.5 million files 1536
2 TB or 2 million files 2048
2.5 TB or 2.5 million files 2560
3 TB or 3 million files 3072

Memory Limitations

You should not allocate more memory to the CrashPlan app than the maximum supported by your computer. For example, if your computer has 8 GB of RAM, you shouldn’t allocate more than 8 GB (8192 MB) to the CrashPlan app.

Windows 32-bit Operating Systems
On computers running a 32-bit Windows operating system, programs are limited to a maximum of 2 GB of RAM. After accounting for other resources required by your system, this limits CrashPlan’s maximum memory allocation to approximately 1200-1500 MB. If you are running a 32-bit operating system, we recommend allocating a maximum of 1536 MB of memory to CrashPlan. Alternatively, you can remove files from your backup selection to reduce the size of your backup archive.

 

Recommended Solution

Windows

  1. Stop the backup engine
  2. Open the Start menu
  3. Locate the Notepad program, right-click it, and select Launch as Administrator.
  4. Use File > Open to navigate to C:\Program Files\CrashPlan\
    • If you don’t see CrashPlanService.ini, change the filter in the bottom right from Text Document (*.txt) toAll Files.
  5. Open the file CrashPlanService.ini
  6. Find this line in the file:
    -Xmx1024m
  7. Change the number to a larger value, depending on the size of your file selection.
    • See guidelines above for recommendations.
    • For example, if you are backing up 1.5 TB of data, we recommend setting this line to -Xmx1536m
  8. Start the backup engine

Mac OS X

 

You will use Terminal for the steps below. To open the Terminal Application:

  • Using Finder, go to: Applications > Utilities > Terminal
  • Using Spotlight, search for Terminal
  1. Stop the CrashPlan service by entering this command:
    sudo launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist
  2. When prompted, enter your password, then Enter.
    Note: The password doesn’t display as you enter it.
  3. Run the following command to open a command line text editor:
    sudo nano /Library/LaunchDaemons/com.crashplan.engine.plist
  4. Using the arrow keys on your keyboard, find the line that contains the following:
    -Xmx1024m
  5. Change the number to a larger value, depending on the size of your file selection.
    • See guidelines above for recommendations.
    • For example, if you are backing up 1.5 TB of data, we recommend setting this line to -Xmx1536m
  6. Press Control+X to exit.
  7. Press Y to confirm the changes.
  8. You’ll see the prompt “File Name to Write”. Press Return to save to the existing location.

 

  1. Start the backup engine by typing:
    sudo launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist

Linux / Solaris

  1. Stop the backup engine
  2. Using your favorite Terminal based editor, open for editing the file/usr/local/crashplan/bin/run.conf
  3. Locate the line that begins SRV_JAVA_OPTS
  4. Locate this argument:
    -Xmx1024m
  5. Change the number to a larger value, depending on the size of your file selection.
    • See guidelines above for recommendations.
    • For example, if you are backing up 1.5 TB of data, we recommend setting this line to -Xmx1536m
  6. Start the backup engine

Alternative Solutions

CrashPlan app version 3.6.3 and later

Solution 1: Increasing Memory Limit With Manual Commands

 

You can use the CrashPlan app’s manual commands to allocate more memory. You must be able to open the CrashPlan app to use this solution.

Steps

  1. Open the CrashPlan app
  2. Double-click the CrashPlan logo in the upper-right corner
  3. Enter the following command, using a value appropriate for the size of your backup selection (for example, 1536 for a 1.5 TB selection):
    java mx 1536, deauthorize, restart
    The CrashPlan app will close
    Deauthorize app
  4. Open the CrashPlan app​ and sign in
    CrashPlan resumes backing up with the increased memory allocation

 

Solution 2: Increasing Memory Limit After Reinstalling Your CrashPlan App

You can reinstall the CrashPlan app and use manual commands to fix the problem. This solution can work even if you can’t open the CrashPlan app.

Uninstalling the CrashPlan app removes most log information. Our Customer Champions use logs to help troubleshoot problems, so you may want to contact our Customer Champions before uninstalling. Uninstalling the CrashPlan app does not remove your CrashPlan archive, so your information is safe while you’re reinstalling.

Steps

  1. Uninstall the CrashPlan app
  2. Reinstall the CrashPlan app
  3. Open the CrashPlan app, but do not sign in yet
  4. Double-click the CrashPlan logo in the upper-right corner
  5. Enter the following command, using a value appropriate for the size of your backup selection (for example, 1536 for a 1.5 TB selection):​
    java mx 1536, restart
    The CrashPlan app will close
    Finding the Command window in the CrashPlan app
  6. Open the CrashPlan app
  7. Sign in to the CrashPlan app and back up normally

Source Fabric (Book Type) – Open source book authoring tool

 

 

You can download it here.  Installation instructions are here, but I will summarize the install I did below.  I’m hosting a server at digitalocean.

 

So far things that need to be learned:

  1. How do you get the table of contents to auto populate, right now it’t pretty empty
  2. Can the cover be text or does it have to be an image?
  3. Linux install here as given by sourcefabric instructions

 

Solidworks to Inkscape

http://clock.bonsignore.com/post/49837495031/2d-design-with-solidworks-and-inkscape-mit

2D Design with Solidworks and Inkscape

MIT Technology Review recently published an article that argued “a lack of accessible design tools is holding back 3-D printing”. I have to agree, and the same applies to 2D laser cut design. I have access to Solidworks at work, and I wish that I could avoid using it for open hardware projects like this. While it’s expensive and bloated, it is an excellent tool for designing and developing engineered structures. So I’ve downloaded or created Solidworks versions of the clock’s innards, used it to design the pieces of the enclosures, and put everything together in an assembly to check the fit and tweak dimensions and features before laser cutting anything.

Ponoko requires an .SVG file for laser cutting, and they recommend using Adobe Illustrator, CorelDRAW, or Inkscape to create the file. Inkscape is open-source, but there isn’t a Mac native version readily available. I found a suspicious looking link tohttp://rapidshare.com/files/2591591009/Inkscape-r-10.7%2B-x86_64_RC5.dmg on an Inkscape forum. I was surprised to find that it works fine. Here’s are some notes on my workflow:

  • I created some basic T-slot box templates in Inkscape using Justin Shaw’s http://wyolum.com/t-slot-boxmaker/
  • From Inkscape, “Save as…” a DXF file, and select “mm” as the base unit, with “LWPOLYLINE type of line output” checked.
  • Opened the DXF file in Solidworks as a 2D sketch. I used the template as a reference for slot and tab sizes, hole placements, etc, and created my new geometry using dimensions, constraints, and all the other usual Solidworks methods.
  • I created all of the components as separate bodies in a single “parent” .SLDPRT file. This makes it easier to line up mating components, and reference feature dimensions between components. After everything was complete, I used “Insert > Feature > Save Bodies” to create separate new part files for each component. Then I created an assembly with each of the children, plus additional .SLDPRT’s for the electronics and other components. From here, I checked the fit and alignment of everything, and made changes in the original parent .SLDPRT file. The children and assembly update automatically when they are regenerated.
  • Once everything checked out OK, I created a Solidworks drawing (.SLDDRW) from the parent .SLDPRT with all the enclosure components (File > Make drawing from part). When prompted to select a sheet format, choose “cancel” because we don’t want any decorations — only geometry. Make sure the scale for the view is 1:1 (I also set the sheet scale to 1:1). Then save as a .DXF, an in the “options” dialog, choose version R13 and select the checkbox for “scale output 1:1 – enable”
  • Back in Inkscape, open the .DXF file. When prompted, make sure that the check box for “automatic scaling” is not checked, and that a manual scale factor of 1.0 is selected.
  • Now, make sure Inkscape is using “mm” units on its grid. Preferences > Grid > Rectangular grid > Grid units > “mm”. Select a feature and check the height and width dimensions displayed near the grid at the top of the window, and confirm that the scale is correct!
  • Select everything, and change the object properties for the line stroke to “0.010 mm” and color to 0/0/255 per Ponoko’s instructions.
  • Copy everything, and paste into a Ponoko template. I like to create groups for each part (box-select the features, then command-G) before moving them around to arrange them on the sheet.