-
Corruption: not sure why, sometimes files get corrupted during a session and users lose all their work, either automatic or manual, which may correspond to days of computer time or, worse, human time. Corruption is more likely to happen because libhdf5 is a very complex piece of software, and a crash or sudden kill is likely to corrupt the file completely. This would be much rarer with flat binary or text files, at least you'd be able to recover part of the data.
-
Not possible to delete arrays, but that might be fixed in the future (not today though...).
-
Various bugs with strings on Windows and h5py: users may need to downgrade h5py in order to use their files, otherwise a nasty segfault occurs. Not a good sign...
-
There is a single implementation of HDF5 in the world, so we depend critically on it. It is almost impossible to contribute on such a complex piece of code since it is really low-level (in C). There are bugs and performance issues with it and there is nothing we can
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function query() { | |
var | |
total = 0, shown = 0, | |
// HN is done with very unsemantic classes. | |
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')), | |
query_list = Array.prototype.slice.call(arguments); | |
// This traverses up the dom stack trying to find a match of a specific class | |
function up_to(node, klass) { | |
if (node.className === klass) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HTTPClient: HTTPC | |
using JSON | |
# Fill in your city name and GitHub API token | |
const MEETUP_LOCATION = lowercase("Seattle") | |
const API_TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
# Pages of search results to examine. Warning - you WILL hit the rate limit | |
const NUM_PAGES = 1 | |
typealias Field Union{AbstractString,Void} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# I keep Julia binaries in /opt/julia with the same directory structure | |
# as ~/.julia to store different versions, and use this script to switch | |
# between them. I also like to maintain a link of the ~/.julia folder to | |
# ~/julia, for easier package development. | |
JBIN="" | |
PDIR="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( advice from @johnmyleswhite; ministorm starts with https://twitter.com/johnmyleswhite/status/766657182582513666 ) | |
I keep planning on writing a post about contributing to OSS effectively, but I'm starting to doubt I ever will. So here's some tweets. | |
(1) Credibility is everything. People are busy, so they heavily use personal trust to inform their decisions. You must become credible. | |
(2) Credibility starts with technical competence, rather than shared aesthetics. Do *not* start contributing by engaging in design debates. | |
(3) Instead, work on simple projects where success or failure will be clear. Write unit tests. Write docs. Improve a function's performance. | |
(4) That kind of work will allow you to demonstrate skill, which will make you credible. After, people will want to hear your design goals. | |
(5) Don't engage in debates that are long-standing without being familiar with the entire past history of the debate. | |
(6) Especially don't focus on the shallow part of a debate where you can participate without kno |
A quick and dirty syntax translation / conversion reference guide to ease the transition between Python and Julia. This is not meant as a reference to the language. For that you should read the manual.
- Arrays in Julia are indexed starting from 1.
- In Julia classes (i.e. types) don't own methods. Methods are implementations of generic functions and are invoked in a "static style", i.e. instead of Python's str1.rstrip(), we will have rstrip( str1 ), instead of file1.close(), close( file1 ).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Returns a BibTeX (www.bibtex.org) entry for one or more given DOIs | |
# (https://www.doi.org/). | |
# | |
# Call it like this: | |
# | |
# $ doi2bibtex.sh 10.1093/bioinformatics/btu533 | |
# | |
# Can also be used for several DOIs at once: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Returns a BibTeX (www.bibtex.org) entry for one or more given DOIs | |
# (https://www.doi.org/). | |
# | |
# Call it like this: | |
# | |
# $ doi2bibtex.sh 10.1093/bioinformatics/btu533 | |
# | |
# Can also be used for several DOIs at once: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{0: {'id': '01440764-n', | |
'label': 'tench, Tinca tinca', | |
'uri': 'http://wordnet-rdf.princeton.edu/wn30/01440764-n'}, | |
1: {'id': '01443537-n', | |
'label': 'goldfish, Carassius auratus', | |
'uri': 'http://wordnet-rdf.princeton.edu/wn30/01443537-n'}, | |
2: {'id': '01484850-n', | |
'label': 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
'uri': 'http://wordnet-rdf.princeton.edu/wn30/01484850-n'}, | |
3: {'id': '01491361-n', |