This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BaseLoklakScrapper = require('./base'); | |
class LocationAndDateScrapper extends BaseLoklakScrapper { | |
constructor() { | |
super('LocationAndDate', 'http://www.timeanddate.com/worldclock/results.html?query='); | |
} | |
argumentSanityCheck(args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:?] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [] | |
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:290) ~[loklak_server-all.jar:?] | |
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:207) ~[loklak_server-all.jar:?] | |
at org.elasticsearch.client.transport.support.TransportProxyClient.execute(TransportProxyClient.java:55) ~[loklak_server-all.jar:?] | |
at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:288) ~[loklak_server-all.jar:?] | |
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:359) ~[loklak_server-all.jar:?] | |
at org.elasticsearch.client.support.AbstractClient$IndicesAdmin.execute(AbstractClient.java:1226) ~[loklak_server-all.jar:?] | |
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.ja |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vibhorverma291995@loklak-server-175311:~$ gcloud container clusters create loklak-main --num-nodes 2 --machine-type n1-standard-4 --zone europe-west2-a | |
Creating cluster loklak-main...done. | |
Created [https://container.googleapis.com/v1/projects/loklak-server-175311/zones/europe-west2-a/clusters/loklak-main]. | |
kubeconfig entry generated for loklak-main. | |
NAME ZONE MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS | |
loklak-main europe-west2-a 1.6.7 35.197.219.59 n1-standard-4 1.6.7 2 RUNNING | |
vibhorverma291995@loklak-server-175311:~$ gcloud container clusters get-credentials loklak-main --zone europe-west2-a --project loklak-server-175311 | |
Fetching cluster endpoint and auth data. | |
kubeconfig entry generated for loklak-main. | |
vibhorverma291995@loklak-server-175311:~$ cd loklak_server/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vibhcool2910@loklak-server-176723:~/loklak_server$ kubectl logs nginx-970708327-7s0j2 --namespace=nginx-ingress | |
I0814 23:55:53.466738 1 main.go:94] Using build: https://github.com/bprashanth/contrib.git - git-92b2bac | |
I0814 23:55:53.509755 1 main.go:123] Validated nginx-ingress/default-http-backend as the default backend | |
W0814 23:55:53.510085 1 ssl.go:132] no file dhparam.pem found in secrets | |
I0814 23:55:53.514241 1 controller.go:1126] starting NGINX loadbalancer controller | |
I0814 23:55:53.514785 1 command.go:35] Starting NGINX process... | |
I0814 23:55:53.527989 1 event.go:216] Event(api.ObjectReference{Kind:"Ingress", Namespace:"web", Name:"web-notls", UID:"e52e77dd-814b-11e7-a578-42010a92000a", APIVersion:"extensions", ResourceVersion:"135233", FieldPath:""}): type: 'Normal' reason: 'CREATE' web/web-notls | |
I0814 23:55:53.528170 1 event.go:216] Event(api.ObjectReference{Kind:"Ingress", Namespace:"web", Name:"web", UID:"e538f722-814b-11e7-a578-42010a92000a", APIVersion:"ex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.io.IOException: client connection to http://api.loklak.org/api/push.json fail: 0: Request Entity Too Large | |
at org.loklak.http.ClientConnection.init(ClientConnection.java:240) ~[loklak_server-all.jar:?] | |
at org.loklak.http.ClientConnection.<init>(ClientConnection.java:155) ~[loklak_server-all.jar:?] | |
at org.loklak.api.p2p.PushServlet.push(PushServlet.java:110) [loklak_server-all.jar:?] | |
at org.loklak.api.p2p.PushServlet.push(PushServlet.java:123) [loklak_server-all.jar:?] | |
at org.loklak.Caretaker.run(Caretaker.java:129) [loklak_server-all.jar:?] | |
2017-08-22 13:45:17.867:INFO :DAO:CARETAKER: failed pushing 1405 messages to backend [http://api.loklak.org] | |
2017-08-22 13:45:17.891:INFO :DAO:CARETAKER: Deleted 525 outdated(hour) messages | |
2017-08-22 13:45:18.001:INFO :DAO:CARETAKER: Deleted 635 outdated(day) messages | |
2017-08-22 13:45:18.045:INFO :DAO:CARETAKER: Deleted 13 outdated(week) messages |
OlderNewer