- Naming
- Cache consistency
- Off-by-One error
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
[2025-01-10 14:28:56,512] WARN [AdminClient clientId=ccloud-java-client-fe690841-bdf7-4231-8340-f78dd6a8cad9] Error connecting to node pkc-rgm37.us-west-2.aws.confluent.cloud:9092 (id: -1 rack: null) (org.apache.kafka.clients.NetworkClient) | |
java.io.IOException: Channel could not be created for socket java.nio.channels.SocketChannel[closed] | |
at org.apache.kafka.common.network.Selector.buildAndAttachKafkaChannel(Selector.java:368) | |
at org.apache.kafka.common.network.Selector.registerChannel(Selector.java:345) | |
at org.apache.kafka.common.network.Selector.connect(Selector.java:272) | |
at org.apache.kafka.clients.NetworkClient.initiateConnect(NetworkClient.java:1077) | |
at org.apache.kafka.clients.NetworkClient.ready(NetworkClient.java:321) | |
at org.apache.kafka.clients.admin.KafkaAdminClient$AdminClientRunnable.sendEligibleCalls(KafkaAdminClient.java:1270) | |
at org.apache.kafka.clients.admin.KafkaAdminClient$AdminClientRunnable.processRequests(KafkaAdminClient.java:1530) | |
at org.apache.kafka.clients.admin.KafkaAdminClient$Admi |
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
( | |
function() { | |
function massage_xkcd(txt) { | |
const arry = txt.split(' '); | |
const randNum = String(Math.random()).slice(2, 5); | |
const caps = arry.map(word => word.charAt(0).toUpperCase() + word.substring(1)); | |
caps.push(randNum); | |
return caps.join('.'); | |
} |
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
javascript:void( | |
( | |
function() { | |
var orig=location.href; | |
var url='http://chart.apis.google.com/chart?cht=qr&chs=300x250&chl='+encodeURIComponent(orig); | |
window.open(url,"_blank","width=320,height=270,resizable=yes,status=yes") | |
} | |
)() | |
) |
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
#!/bin/bash | |
# Git pre-commit hook to warn about CSV, TSV, or TXT files with 50 | |
# lines or more. Original example at: | |
# | |
# https://codeinthehole.com/tips/tips-for-using-a-git-pre-commit-hook/ | |
# Make sure this script is executable. Installation is simply: | |
# ln -s pre-commit.sh .git/hooks/pre-commit |
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
javascript:$('#branding img').css('width', '40%');jQuery('#ctaMessage').css('display', 'none'); |
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
function getString(str, offset) { | |
return str.split('') | |
.map(function(ch) { | |
return String.fromCharCode(ch.charCodeAt(0) + offset); | |
}) | |
.join(''); | |
} |
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
=============================================================================== | |
Some setup you must do manually if you haven't yet: | |
1. Setup default url options for your specific environment. Here is an | |
example of development environment: | |
config.action_mailer.default_url_options = { :host => 'localhost:3000' } | |
This is a required Rails configuration. In production it must be the |
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
// In JavaScript, binds an object to a callback function to use as "this". | |
// | |
// When a function is passed as an event callback, "this" is bound to | |
// the DOM element triggering the event; in other scenarios when a | |
// function is used as a callback, "this" is bound to the window | |
// object. | |
// | |
// To override the default binding of "this", call bindThis on your | |
// function. For example: | |
// |
NewerOlder