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 / .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'
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(
***
*** 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
@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);
@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 / 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 / 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 / bt
Created June 30, 2015 20:33
GDB result of running test_cwrapper
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
void basic_args(const basic a, const basic_struct*** array, int *size)
{
std::vector<RCP<const Basic> > args;
args = (*RCP_const_cast(a))->get_args();
*size = args.size();
*array = (const basic_struct**)malloc((*size)*sizeof(basic_struct*));
std::vector<RCP<const Basic>>::iterator it;
int index = 0;
for (it = args.begin(); it != args.end(); ++it) {
(*array)[index++] = reinterpret_cast<const basic_struct*>(&(*it));
error: could not apply ef2e21a... Created a basic structure for the new Polynomial class and tried to integrate it with the visitor pattern
When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".
Could not apply ef2e21a74790abea24d9d89f4ee041160046c1c4... Created a basic structure for the new Polynomial class and tried to integrate it with the visitor pattern