- The certificate file used by the reverse proxy should be exactly the same as the one used by synapse. If you use the concatenated certificate chain on the reverse-proxy, it should be the same in synapse.
- You need to generate and give Diffie Hellman parameters to the reverse proxy. This ensures that the cipher suites required by matrix are available in the reverse proxy.
- Matrix servers use the 8448 port to talk with each other by default.
- Either you need to expose this port (8448) in the firewall, or you need to add a SRV record in the DNS pointing to port 443 (https port).
- This tool can help diagnose problems.
This file contains hidden or 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
public class Compute { | |
public static void main(String args[]) { | |
final long start = System.currentTimeMillis(); | |
final long ans = rep(8000); | |
final long end = System.currentTimeMillis(); | |
System.out.println(ans); | |
System.out.println("Time taken (ms): " + (end - start)); | |
} | |
public static long rep(long n) { |
This file contains hidden or 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
// Huffman estimation given symbol counts | |
val symbolCountsIn = Array(57728,32858,49395,15703,26381,4506,5797,1129,958,392,164,278,61,206,30,193,19,172,9,150,4,91,4,91,1,71,4,44,2,29,1,28,1,32,0,15,0,8,0,12,0,11,0,15,0,6,0,4,0,0,0,2,0,1,0,2) | |
case class Symbol(count:Int, idx: Int) | |
sealed trait TreeNode { | |
def value:Int | |
} |
- Racket
- Pyret
This file contains hidden or 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
#!/usr/bin/python | |
import SocketServer | |
import BaseHTTPServer | |
import SimpleHTTPServer | |
class ThreadingSimpleServer(SocketServer.ThreadingMixIn, | |
BaseHTTPServer.HTTPServer): | |
pass |
This file contains hidden or 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
import net.iryndin.jdbf.reader.* | |
import net.iryndin.jdbf.core.* | |
val fis = java.io.FileInputStream(args[0]) | |
val reader = DbfReader(fis) | |
val md = reader.getMetadata() | |
val fields = md.getFields() |
Navigating to Wikipedia home page was causing a massive slowdown of the browser. After analysis the problem turned out to be due to a long chain of causes.
This is a known and important issue, but will take time to fix. Issue #89. See Update below.
As a consequence of A
, every mouse move causes the body
element to be invalidated, and also its descendants. By itself, this is correct behaviour. (Not really, see update below).
This is bad but by itself it is not terribly inefficient. However, it causes more trouble...