Skip to content

Instantly share code, notes, and snippets.

@rbuels
rbuels / README.md
Last active August 31, 2016 18:05 — forked from brandonaaskov/README.md
This will fix node-oracledb's reference to Oracle Instant Client for El Capitan users. Check the README :)

Note: this isn't my solution, this is simply my findings from many github issues and blog posts coalesced into a single place.

To fix node-oracledb's reference to Oracle Instant Client on El Capitan, you'll need to run this from any repo that has node-oracledb as a dependency. Lines 16 and 17 need to point to the location of your zip files.

First, you'll need Oracle Instant Client on your machine. Once you click the environment that suits your needs, you'll need to grab two packages: basic, and sdk. Here's an example for the OSX client.

In the bash file also included with this gist, lines 16 and 17 need to be tweaked to point to those zip files you just downloaded.

Once that's done, you'll need to run it from your repo that has node-oracledb as a dependency. So, for example, let's say I had a folder structure like so:

  • dev
2016/08/22 12:16:29 [INFO] Terraform version: 0.7.0 e822a79165dbc06bbf8271ee349fe256867d53dc
2016/08/22 12:16:29 [DEBUG] Detected home directory from env var: /Users/rbuels
2016/08/22 12:16:29 [DEBUG] Detected home directory from env var: /Users/rbuels
2016/08/22 12:16:29 [DEBUG] Attempting to open CLI config file: /Users/rbuels/.terraformrc
2016/08/22 12:16:29 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/08/22 12:16:29 [DEBUG] Detected home directory from env var: /Users/rbuels
2016/08/22 12:16:29 [DEBUG] New state was assigned lineage "0b691238-9f9a-4351-a41b-67a1c52df352"
2016/08/22 12:16:29 [DEBUG] Starting graph walk: walkInput
2016/08/22 12:16:29 [DEBUG] vertex root.output.test_map: walking
2016/08/22 12:16:29 [DEBUG] vertex root.output.test_map: evaluating
rob@nightshade jbrowse2 (selenium_testing %)$ JBROWSE_URL='http://localhost/jbrowse2/index.html' nosetests -v --nologcapture tests/selenium_tests/
test_volvox (embedded_mode_test.EmbeddedModeTest) ...
working on refseq ctgA
working on track ExampleFeatures
working on track NameTest
working on track snps
working on track Motifs
working on track malformed_alignments
working on track Genes
working on track ReadingFrame
rob@nightshade jbrowse2 (selenium_testing %)$ JBROWSE_URL='http://localhost/jbrowse2/index.html' nosetests -v --nologcapture tests/selenium_tests/
test_volvox (embedded_mode_test.EmbeddedModeTest) ...
working on refseq ctgA
working on track ExampleFeatures
working on track NameTest
working on track snps
working on track Motifs
working on track malformed_alignments
working on track Genes
working on track ReadingFrame
rob@nightshade jbrowse2 (selenium_testing %)$ JBROWSE_URL='http://localhost/jbrowse2/index.html' nosetests -v --nologcapture tests/selenium_tests/
test_volvox (embedded_mode_test.EmbeddedModeTest) ...
working on refseq ctgA
working on track ExampleFeatures
working on track NameTest
working on track snps
working on track Motifs
working on track malformed_alignments
working on track Genes
working on track ReadingFrame
JBROWSE_URL='http://localhost/jbrowse2/index.html' nosetests -v --nologcapture tests/selenium_tests/
test_volvox (embedded_mode_test.EmbeddedModeTest) ...
working on refseq ctgA
working on track ExampleFeatures
working on track NameTest
working on track snps
working on track Motifs
working on track malformed_alignments
working on track Genes
working on track ReadingFrame
======================================================================
ERROR: test_yeast (yeast_biodb_compressed_test.CompressedYeastBiodbTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rob/jbrowse/jbrowse2/tests/selenium_tests/yeast_biodb_test.py", line 32, in test_yeast
self.overview_rubberband( 0.2, 0.5 )
File "/home/rob/jbrowse/jbrowse2/tests/selenium_tests/jbrowse_selenium/JBrowseTest.py", line 165, in overview_rubberband
self._rubberband( "//div[@id='overview']", start_pct, end_pct )
File "/home/rob/jbrowse/jbrowse2/tests/selenium_tests/jbrowse_selenium/JBrowseTest.py", line 121, in _rubberband
c.perform()
@rbuels
rbuels / foo.json
Last active December 25, 2015 17:19
{
"stores": {
"squirrelmine": {
"type": "JBrowse/Store/SeqFeature/REST",
"baseUrl": "http://localhost/squirrelmine/service/jbrowse/7227/",
"region_feature_densities": true
}
},
"tracks": [
{ "label":"squirrelmine_TransposableElement_track",
[{"length":135534747,"name":"chr10","start":0,"end":135534747,"seqChunkSize":20000},{"length":135006516,"name":"chr11","seqChunkSize":20000,"end":135006516,"start":0},{"length":133851895,"name":"chr12","start":0,"end":133851895,"seqChunkSize":20000},{"length":115169878,"name":"chr13","seqChunkSize":20000,"end":115169878,"start":0},{"length":107349540,"name":"chr14","start":0,"end":107349540,"seqChunkSize":20000},{"length":102531392,"name":"chr15","seqChunkSize":20000,"end":102531392,"start":0},{"length":90354753,"name":"chr16","start":0,"end":90354753,"seqChunkSize":20000},{"length":81195210,"name":"chr17","seqChunkSize":20000,"end":81195210,"start":0},{"length":78077248,"name":"chr18","start":0,"end":78077248,"seqChunkSize":20000},{"length":59128983,"name":"chr19","seqChunkSize":20000,"end":59128983,"start":0},{"length":249250621,"name":"chr1","start":0,"end":249250621,"seqChunkSize":20000},{"length":63025520,"name":"chr20","seqChunkSize":20000,"end":63025520,"start":0},{"length":48129895,"name":"chr21","sta
@rbuels
rbuels / deferred_reject.html
Created September 30, 2013 17:15
test showing Deferred not properly rejecting listeners
<html>
<head>
<script type="text/javascript" src="dojo.js" data-dojo-config="async: 1"></script>
</head>
<body>
<script type="text/javascript">
require({ baseUrl: '..', packages: ['dojo']}, ['dojo/Deferred'], function( Deferred ) {
var d = new Deferred();