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
require 'date' | |
# Actually doesn't matter WHAT you choose as the epoch, it | |
# won't change the algorithm. Just don't change it after you | |
# have cached computed scores. Choose something before your first | |
# post to avoid annoying negative numbers. Choose something close | |
# to your first post to keep the numbers smaller. This is, I think, | |
# reddit's own epoch. | |
$our_epoch = Time.local(2005, 12, 8, 7, 46, 43).to_time |
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
publicclass LerCertificado extends HttpServlet { | |
protectedvoid doGet(HttpServletRequest request, | |
HttpServletResponse response) throws ServletException, IOException { | |
PrintWriter out = response.getWriter(); | |
out.println(""); | |
out.println("ServletLerCertificado"); | |
out.println(""); | |
out.println("Certificado digital:"); | |
String cipherSuite = (String) request.getAttribute("javax.servlet.request.cipher_suite"); |
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
<Servicename="Catalina"> | |
... | |
<ConnectoracceptCount="100"connectionTimeout="20000" | |
executor="tomcatThreadPool"maxKeepAliveRequests="15"port="8080" | |
protocol="HTTP/1.1"redirectPort="8443"/> | |
<Connectorport="8443"maxThreads="200" | |
scheme="https"secure="true"SSLEnabled="true" | |
keystoreFile="${user.home}/.keystore"keystorePass="password" | |
clientAuth="true"sslProtocol="TLS"/> | |
... |
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
private JFreeChart createChart(XYDataset dataset, ICarteira car) { | |
// create the chart... | |
final JFreeChart chart = ChartFactory.createTimeSeriesChart( | |
car.getNome(), // title | |
"Tempo", // x axis label | |
"Valor", // y axis label | |
dataset, // data | |
true, // include legend | |
true, // tooltips | |
true // urls |
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
-XX:+UseConcMarkSweepGC | |
-XX:+CMSClassUnloadingEnabled | |
-XX:+CMSPermGenSweepingEnabled |
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
-Xverify:none |
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
-Xms512m | |
-Xmx512m | |
-XX:PermSize=256m | |
-XX:MaxPermSize=256m-Xms512m | |
-Xmx512m | |
-XX:PermSize=256m | |
-XX:MaxPermSize=256m |
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
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl |
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.UnsupportedOperationException: This parser does not support specification "null" version "null" |
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
SELECT CONSTRAINT_NAME, TABLE_NAME FROM USER_CONSTRAINTS WHERE CONSTRAINT_NAME='FK1_MY_CONSTRAINT_NAME'; |