Skip to content

Instantly share code, notes, and snippets.

View abinashmeher999's full-sized avatar
🤓
Don't mind me, just browsing

Abinash Meher abinashmeher999

🤓
Don't mind me, just browsing
  • Autonomous Ground Vehicle Research Group
  • Kharagpur, India
View GitHub Profile
@abinashmeher999
abinashmeher999 / CRCPBasic_unable_to_instantiate
Created July 2, 2015 00:07
make error while making an array or a variable of the type CRCPBasic
Scanning dependencies of target test_cwrapper
[ 73%] Building C object symengine/tests/cwrapper/CMakeFiles/test_cwrapper.dir/test_cwrapper.c.o
/home/abinashmeher999/gsoc/symengine/symengine/tests/cwrapper/test_cwrapper.c: In function ‘test_cwrapper’:
/home/abinashmeher999/gsoc/symengine/symengine/tests/cwrapper/test_cwrapper.c:7:15: error: array type has incomplete element type
CRCPBasic x[1], y[1], z[1];
^
/home/abinashmeher999/gsoc/symengine/symengine/tests/cwrapper/test_cwrapper.c:7:21: error: array type has incomplete element type
CRCPBasic x[1], y[1], z[1];
^
/home/abinashmeher999/gsoc/symengine/symengine/tests/cwrapper/test_cwrapper.c:7:27: error: array type has incomplete element type
@abinashmeher999
abinashmeher999 / free_symbols_error
Created July 9, 2015 12:08
Error while testing the ruby binding for free_symbols
/home/abinashmeher999/.rvm/gems/ruby-2.2.0/gems/bundler-1.10.4/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /home/abinashmeher999/agv/sandbox/devel in PATH, mode 040777
........./home/abinashmeher999/gsoc/symengine/symengine/ruby/lib/symengine/basic.rb:6: [BUG] Segmentation fault at 0x0000000000001c
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0042 p:---- s:0173 e:000172 CFUNC :pr_free_symbols
c:0041 p:0007 s:0170 e:000169 METHOD /home/abinashmeher999/gsoc/symengine/symengine/ruby/lib/symengine/basic.rb:6
c:0040 p:0073 s:0167 e:000166 BLOCK /home/abinashmeher999/gsoc/symengine/symengine/ruby/spec/basic_spec.rb:121 [FINISH]
c:0039 p:---- s:0161 e:000160 CFUNC :instance_exec
c:0038 p:0021 s:0157 e:000156 BLOCK /home/abinashmeher999/.rvm/gems/ruby-2.2.0/gems/rspec-core-3.3.1/lib/rspec/core/example.rb:206
@abinashmeher999
abinashmeher999 / error_free_symbols_rcp
Created July 9, 2015 15:39
Error while testing the ruby binding for free_symbols
SymEngine
SymEngine::Basic
.new
with no arguments
returns a Basic object
binary operations
#+
with another initialised Basic object as argument
returns a initialised Basic object that is result of
self added to the argument
@abinashmeher999
abinashmeher999 / comp_macros.h
Created July 27, 2015 13:19
Some of the most used macros in competitive programming
#include <cmath>
#include <climits>
#include <queue>
#include <vector>
#include <map>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream> // istringstream buffer(myString);
***
*** Warning! The following Teuchos::RCPNode objects were created but have
*** not been destroyed yet. A memory checking tool may complain that these
*** objects are not destroyed correctly.
***
*** There can be many possible reasons that this might occur including:
***
*** a) The program called abort() or exit() before main() was finished.
*** All of the objects that would have been freed through destructors
*** are not freed but some compilers (e.g. GCC) will still call the
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/4.8/bits/stdc++.h:64,
from Server_TCP.cpp:5:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<News*, std::vector<News> >; _Tp = News]’:
/usr/include/c++/4.8/bits/stl_algo.h:2283:70: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<News*, std::vector<News> >]’
/usr/include/c++/4.8/bits/stl_algo.h:2315:54: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<News*, std::vector<News> >; _Size = long int]’
/usr/include/c++/4.8/bits/stl_algo.h:5461:36: required from ‘void std::sort(
@abinashmeher999
abinashmeher999 / .vimrc
Last active February 11, 2016 11:23
My current vimrc
call plug#begin('~/.vim/plugged')
"
" always enabled
Plug 'junegunn/goyo.vim'
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/syntastic'
Plug 'bling/vim-airline'
Plug 'scrooloose/nerdcommenter'
Plug 'xolox/vim-misc'
Plug 'docunext/closetag.vim'
@abinashmeher999
abinashmeher999 / travis_osx_symenginerb
Created February 19, 2016 16:23
Complete log for symengine.rb#18
travis_fold:start:worker_info
Worker information
hostname: worker-jupiter-brain:5119659d-8b39-4b7e-b84b-9e5c9cac4c9b
version: v2.0.0 https://github.com/travis-ci/worker/tree/ca6cb0c5d3920912b1c3acc87c44a5da2120a971
instance: 1833e342-3a43-4e48-9326-0b6a71e9bedc:
startup: 1m14.533895312s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
03a3801c9a814014809ff8ee79f34550dcd680880191807bf0f79860511240df3c0faaa328b2fafc811f74f586f3ef6f5c804103ff932feb747ecae8ffbc2f5f6a982f0f6c40f7f1effa0767fb99ab14df90331d1e8fbc2403987f0abc9f9341c03293974af63bccd6b03fff729f211f7f28cdf9e3790f1710c030149e33fffe82ff60404a74edc41a9e4f0039030e88bfffa676830c023d9784385a3400cc2f1b1bc09460571c20ec937f4c1d89f0c73fdb62f34efc8a8216727f00e3006304360201d683d43167b9214ee09121c026ec5e6c9cdf25f7ff8bff407fe8d0be7139fffe833f25f6871a60d82dfcff80bcf7689d135384be1c09087f970e8012eb8978deff8190fe8020b9efafeafee03d6071dfb09b3ac2ae7f371d47ecff871d580fdf69460139f4aa89255ea829021b026fb35980bf03ad5a020008ee5d853fb3ff8a89c79f80633f00ff00ff602e4080405e00a30058df5b512c7d922f7f7a9528ff0f30a1ff62fe5947ff83917fc48142203f3fdf3bfffdd77b000001fe50203d53750812fcfc40ff14bbffbdff9524020000ff70276e0eba21d05b6340ba4046debeff4d44030b241c011f84000000fcf97f371ec0d8ffbfff4ca7200120cbba24dfa05087010407812d1b4a489eeec1030a384f87ffffff70ab20fd271712719fe9a816fa6cac003c341ae4370c951f6ff726062065fedfb1df910e929f
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Using Spark's repl log4j profile: org/apache/spark/log4j-defaults-repl.properties
To adjust logging level use sc.setLogLevel("INFO")
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 1.6.1