Skip to content

Instantly share code, notes, and snippets.

[virtualtestbench@sch-emu omnetpp-5.0]$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: -----------------------------------------------
configure: reading configure.user for your custom settings
configure: -----------------------------------------------
checking for clang... no
checking for icc... no
checking for gcc... gcc
checking whether the C compiler works... yes
runid all fs
num_q all 197
num_ret all 19552
num_rel all 15873
num_rel_ret all 1542
map all 0.0515
gm_map all 0.0083
Rprec all 0.0928
bpref all 0.0855
recip_rank all 0.4671
[Script Info]
ScriptType: v4.00+
Collisions: Normal
PlayDepth: 0
Timer: 100,0000
Video Aspect Ratio: 0
WrapStyle: 0
ScaledBorderAndShadow: no
[V4+ Styles]
class A {
static final String name = "A";
static final String name2 = B.name;
A () {
System.out.println(name2 + " is loading...");
}
}
class A {
static final String name = "A";
static final B b = new B();
A () {
System.out.println(name + " is loading...");
}
}
@eckucukoglu
eckucukoglu / Solution.java
Created January 18, 2018 19:40
Java solution of Pramp - Word Count Engine problem
import java.io.*;
import java.util.*;
class Solution {
static String tokenizeString(String str) {
int len = str.length();
String result = "";
for (int i = 0; i < len; i++) {
char c = str.charAt(i);
eckucukoglu@neptune:~/.../KeywordManager$ source /opt/sestek.env.sheckucukoglu@neptune:~/.../KeywordManager$ make
arm-oe-linux-gnueabi-g++ -march=armv7-a -mfloat-abi=softfp -mfpu=neon --sysroot=/usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux-gnueabi -O2 -g -Wall -fmessage-length=0 -std=c++11 -pthread -DDEVICE -I../ExternalLibs/include -c KeywordManager.cpp -o KeywordManager.o
KeywordManager.cpp: In member function 'bool KeywordManager::enable(int)':
KeywordManager.cpp:117:105: error: invalid conversion from 'void (*)(void*, char*)' to 'qci_keyword_cb {aka void (*)(void*, char*, unsigned int, unsigned int, unsigned int, unsigned int)}' [-fpermissive]
int setcbResult = qci_keyword_setcb(KeywordManager::keywordTriggered, (void *)"QUANTA_USER_DATA_STRING");
^
In file included from KeywordManager.cpp:14:0:
../ExternalLibs/include/qci_lib.h:198:5: note: initializing argument 1 of 'int qci_keyword_s
#include "OnboardingServer.h"
#include "HttpConnectionInfo.h"
#include "PropAP.h"
#include <thread>
#include <mutex>
#include <condition_variable>
#include <iostream>
#include <fstream>
#include <string.h>
eckucukoglu@neptune:~/.../OnboardingManager$ make
g++ -O2 -g -Wall -fmessage-length=0 -std=c++11 -pthread -DDEVICE -I../ExternalLibs/include -c main.cpp -o main.o
In file included from main.cpp:30:0:
OnboardingServer.h:9:23: fatal error: curl/curl.h: No such file or directory
compilation terminated.
Makefile:18: recipe for target 'main.o' failed
make: *** [main.o] Error 1
eckucukoglu@neptune:~/.../OnboardingManager$ make
g++ -O2 -g -Wall -fmessage-length=0 -std=c++11 -pthread -DDEVICE -I../ExternalLibs/include -c main.cpp -o main.o
In file included from OnboardingServer.h:2:0,
from main.cpp:30:
HttpConnectionInfo.h:2:24: fatal error: microhttpd.h: No such file or directory
compilation terminated.
Makefile:18: recipe for target 'main.o' failed
make: *** [main.o] Error 1