Skip to content

Instantly share code, notes, and snippets.

View smalyshev's full-sized avatar

Stanislav Malyshev smalyshev

View GitHub Profile
ERROR: ASTRangeCountOptimizer.java:129: java.util.concurrent.ExecutionException: java.lang.NullPointerException
ERROR: BigdataRDFServlet.java:191: cause=java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException, query=SPARQL-QUERY: queryStr=SELECT DISTINCT ?s
WHERE {
<http://www.wikidata.org/entity/Q2910999> ?statementPred ?statement .
FILTER( STRSTARTS(STR(?statement), "http://www.wikidata.org/entity/statement/") ) .
{ ?statement <http://www.w3.org/ns/prov#wasDerivedFrom> ?ref .
?ref ?expandedValuePred ?s .
} UNION {
?statement ?somePred ?s .
}
File: blazegraph.jnl
Length: 62415699968
Last Modified: Tue Apr 28 19:04:01 UTC 2015
Opening (read-only): blazegraph.jnl
BlazeGraph(TM) Graph Engine
Flexible
Reliable
Affordable

Keybase proof

I hereby claim:

  • I am smalyshev on github.
  • I am smalyshev (https://keybase.io/smalyshev) on keybase.
  • I have a public key whose fingerprint is C3BF F0D3 2829 A4BE F15B C22E 0ADE 5CA2 86F3 3DD3

To claim this, I am signing this object:

WARN : HttpParser.java:1358: badMessage: java.lang.IllegalStateException: too much data after closed for HttpChannelOverHttp@4145bf0e{r=1,c=false,a=IDLE,uri=-}
ERROR: DefaultResourceLocator.java:531: java.lang.NullPointerException
java.lang.NullPointerException
at com.bigdata.btree.Node._getChild(Node.java:2735)
at com.bigdata.btree.AbstractBTree$1.compute(AbstractBTree.java:363)
at com.bigdata.btree.AbstractBTree$1.compute(AbstractBTree.java:346)
at com.bigdata.util.concurrent.Memoizer$1.call(Memoizer.java:77)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at com.bigdata.util.concurrent.Memoizer.compute(Memoizer.java:92)
at com.bigdata.btree.AbstractBTree.loadChild(AbstractBTree.java:532)
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mysql-client-5.1' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package mysql-client-5.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mysql-server-core-5.5 mysql-server-5.5 mysql-client-5.5
E: Package 'mysql-client-5.1' has no installation candidate
@smalyshev
smalyshev / xhprof.php
Created January 27, 2011 19:28
xhprof with Sugar
<?php
if(mt_rand(0, 200) != 42) {
return;
}
if(!empty($_REQUEST['entryPoint']) && ($_REQUEST['entryPoint'] == 'getImage' || $_REQUEST['entryPoint'] == 'getYUIComboFile')) {
return;
}
xhprof_enable(XHPROF_FLAGS_LONGNAMES);
$xhprof_enabled = true;
include_once "xhprof_lib/utils/xhprof_lib.php";
<?php
return array(
'Accounts',
array(
array('id'=>1, 'status'=>array('code'=>2, 'description'=>'Object Removed')),
)
);
<?php
function getMetaData($session, $moduleName) {
return array('Contacts',
'fields' => array(...),
'links' => array(...),
'relationships' => array(...),
)
}
<?php
'fields' => array(
'id' => array('type' => 'id'),
'name' => array('type' => 'varchar'),
'date_created' => array('type' => 'datetime'),
'assigned_to' => array('type' => 'assigned_user_id'),
'account_name' => array('type' => 'relate', 'link' => 'accounts'),
'account_id' => array('type' => 'relate', 'link' => 'accounts'),
'reports_to_id' => array('type' => 'id', 'link' => 'reports_to_link'),
'reports_to_name' => array('type' => 'relate', 'link' => 'reports_to_link'),
<?php
'links' => array(
'accounts' => array('relationship' => 'accounts_contacts', 'module' => 'Accounts', 'type' => '1'),
'assigned_user' => array('relationship' => 'contacts_assigned_users', 'module' => 'Users', 'type' => '1'),
'reports_to_link' => array('relationship' => 'contact_direct_reports', 'module' => 'Contacts', 'type' => '1'),
'direct_reports' => array('relationship' => 'contact_direct_reports', 'module' => 'Contacts', 'type' => '*'),
'opportunities' => array('relationship' => 'contacts_opportunties', 'module' => 'Opportunities', 'type' => '*')
),