Skip to content

Instantly share code, notes, and snippets.

@rayleigh
rayleigh / gist:2710569
Created May 16, 2012 14:04
Code and error JSON
Code:
#!/usr/bin/perl
use strict;
use warnings;
use JSON::Any;
my %phenotype_to_genotype = ();
open KEY, "<", 'phenotype_to_genotype.txt';
@rayleigh
rayleigh / gist:1591869
Created January 10, 2012 23:25
Error messages for YapRI
Argument "" isn't numeric in addition (+) at /home/ray/cxgn/local-lib/lib/perl5/R/YapRI/Data/Matrix.pm line 1047.
Argument "" isn't numeric in addition (+) at /home/ray/cxgn/local-lib/lib/perl5/R/YapRI/Data/Matrix.pm line 1128.
(I think the causes are using add row and add col on an empty matrix object.)
@rayleigh
rayleigh / gist:1184563
Created August 31, 2011 20:05
More problems with Config::JFDI
cpanm (App::cpanminus) 1.4007 on perl 5.010000 built for i486-linux-gnu-thread-multi
Work directory is /home/ray/.cpanm/work/1314821016.27655
You have make /usr/bin/make
You have LWP 6.02
You have /bin/tar: tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
@rayleigh
rayleigh / gist:1184322
Created August 31, 2011 18:40
Config-JFDI-0.065 installation error message
cpanm (App::cpanminus) 1.4007 on perl 5.010000 built for i486-linux-gnu-thread-multi
Work directory is /home/ray/.cpanm/work/1314815761.19246
You have make /usr/bin/make
You have LWP 6.02
You have /bin/tar: tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
@rayleigh
rayleigh / gist:1184288
Created August 31, 2011 18:26
HTML::FormFu Error
cpanm (App::cpanminus) 1.4007 on perl 5.010000 built for i486-linux-gnu-thread-multi
Work directory is /home/ray/.cpanm/work/1314814488.17153
You have make /usr/bin/make
You have LWP 6.02
You have /bin/tar: tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
@rayleigh
rayleigh / gist:1184175
Created August 31, 2011 17:50
Error installing Catalyst::Controller::CGIBin
Use of uninitialized value $ENV{"REMOTE_USER"} in print at /home/ray/.cpanm/work
/1314812632.15569/Catalyst-Controller-WrapCGI-0.033/t/lib/TestApp/Controller/Root.pm line 66.
# Failed test 'REMOTE_USER was passed'
# at t/wrap-cgi.t line 65.
# got: ''
# expected: 'TEST_USER'
# Looks like you failed 1 test of 7.
t/wrap-cgi.t ...........
Dubious, test returned 1 (wstat 256, 0x100)
@rayleigh
rayleigh / gist:1178721
Created August 29, 2011 16:05
XML Format
<img_info>
<img_name>Flower</img_name>
<img_src>/tmp/flower/</img_src>
<exp>
<exp_name>Petal test</exp_name>
<PO_term_info>
<term>POxxxxx</PO_term>
<color>0,0,224</color>
<pixel>25,100</pixel>
#Because it uses fill, the program needs to know a pixel
@rayleigh
rayleigh / gist:1154586
Created August 18, 2011 17:29
Not sure about cause of error message
The error message is:
Attribute (control_signal_for_tissue) does not pass the type constraint because: Validation failed for 'HashRef[Num]' with value %dif_in_control_sig at /home/ray/cxgn/sgn/lib//SGN/Feature/ExpressionViewer/Converter.pm line 145
SGN::Feature::ExpressionViewer::Converter::calculate_comparison('SGN::Feature::ExpressionViewer::Converter=HASH(0x8bda4a0)', 'SGN::Feature::ExpressionViewer::Converter=HASH(0x8be3610)', 0, 0, 0, 0) called at /home/ray/cxgn/sgn/lib//SGN/Feature/ExpressionViewer/Analyzer.pm line 133
SGN::Feature::ExpressionViewer::Analyzer::make_comparison_picture('SGN::Feature::ExpressionViewer::Analyzer=HASH(0x8be3540)', 0, 0, 0, 0) called at image_conversion.t line 419
And the code is:
my ($self, $comparison_converter, $threshold,
$override, $grey_mask_on, $mask_ratio) = @_;
my %dif_in_gene_sig;
my %dif_in_control_sig;
@rayleigh
rayleigh / gist:1152806
Created August 17, 2011 22:27
Strict ref error
Can't use string ("SGN::Feature::ExpressionViewer::") as a HASH ref while "strict refs" in use at /home/ray/cxgn/sgn/lib//SGN/Feature/ExpressionViewer/Converter.pm (line 6) line 6.
@rayleigh
rayleigh / gist:1000867
Created May 31, 2011 16:53
Image::Magick Installation Errors
cpanm (App::cpanminus) 1.4007 on perl 5.010000 built for i486-linux-gnu-thread-multi
Work directory is /home/ray/.cpanm/work/1306860632.12582
You have make /usr/bin/make
You have LWP 5.813
You have /bin/tar: tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.