Skip to content

Instantly share code, notes, and snippets.

View vibhcool's full-sized avatar

Vibhor Verma vibhcool

View GitHub Profile
vibhorverma291995@loklak-server-175311:~/loklak_server$ kubectl logs --namespace=web server-885370830-tpfck -p
starting loklak
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
2017-08-11 22:29:12.305:INFO :Log:main: Logging initialized @567ms
2017-08-11 22:29:12.307:INFO :LoklakServer:main: Starting loklak initialization
2017-08-11 22:29:12.423:INFO :DAO:main: initializing loklak DAO
2017-08-11 22:29:12.426:INFO :DAO:main: Can't load key pair. Creating new one
2017-08-11 22:29:12.837:INFO :DAO:main: Key creation finished. Peer hash: SHA-256 druRfV0UkH/4cJbmI3sc5pDz96Re9Jm+OH4pE9otZ+w=
2017-08-11 22:29:12.933:INFO :PluginsService:main: [Crimson Dynamo] modules [], plugins [], sites []
2017-08-11 22:29:13.514:INFO :DAO:main: Initializing user roles
java.lang.StackOverflowError
at java.lang.StringBuilder.append(StringBuilder.java:76) ~[?:1.8.0_91]
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:457) ~[?:1.8.0_91]
at java.lang.StringBuilder.append(StringBuilder.java:166) ~[?:1.8.0_91]
at java.lang.StringBuilder.append(StringBuilder.java:76) ~[?:1.8.0_91]
at org.joda.time.format.DateTimeFormatterBuilder$TimeZoneOffset.printTo(DateTimeFormatterBuilder.java:1997) ~[loklak_server-all.jar:?]
at org.joda.time.format.DateTimeFormatterBuilder$Composite.printTo(DateTimeFormatterBuilder.java:2457) ~[loklak_server-all.jar:?]
at org.joda.time.format.DateTimeFormatter.printTo(DateTimeFormatter.java:730) ~[loklak_server-all.jar:?]
at org.joda.time.format.DateTimeFormatter.printTo(DateTimeFormatter.java:589) ~[loklak_server-all.jar:?]
at org.joda.time.format.DateTimeFormatter.print(DateTimeFormatter.java:690) ~[loklak_server-all.jar:?]
vibhorverma1995@loklak-server-168209:~/loklak_server$ kubectl describe services
Name: kubernetes
Namespace: default
Labels: component=apiserver
provider=kubernetes
Annotations: <none>
Selector: <none>
Type: ClusterIP
IP: 10.3.240.1
Port: https 443/TCP
There were 3 failures:
1) testSimpleSearch(org.loklak.harvester.TwitterScraperTest)
org.junit.ComparisonFailure: expected:<...loklak_test/status/8[70536303569289216]> but was:<...loklak_test/status/8[49920752149254144]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.loklak.harvester.TwitterScraperTest.testSimpleSearch(TwitterScraperTest.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
var BaseLoklakScrapper = require('./base');
class LocationAndDateScrapper extends BaseLoklakScrapper {
constructor() {
super('LocationAndDate', 'http://www.timeanddate.com/worldclock/results.html?query=');
}
argumentSanityCheck(args) {
#find max
a=int(input("Enter a number: "))
b=int(input("Enter a second number: "))
c=int(input("Enter a third number: "))
w=(lambda a=a,t=(lambda b=b,c=c:b if b>c else c)():a if a>t else t)()
print(w)