« first day (4027 days earlier)      last day (1136 days later) » 

06:09
Good morning
 
1 hour later…
mr5
mr5
07:33
botler down
08:23
Hello friends!
What u talking about?
08:53
[Captain Obvious] Who knows
[Captain Obvious] I think he was getting confused with IList and IList<T>
[Captain Obvious] Oh hey botler was down
not my fault
09:19
@Bassem no it cant
it doesnt make shorter strings
it takes a guid (16 bytes of information) and represents it as a string in base64 (trimming the constant trailing characters)
the usual string representation, which is shown in the website, is longer because it is using a smaller set of characters to represent it and uses some formatting dashes to make it more readable
consider the following:
I can make numbers shorter, take for example the number:
five thousand three hundred and fourty six
we can "compress" this number into
5346
look! we did UBER compression!
that is basically what that library does
if you want a url shortener, you generally have a database table containing your url string as key and the actual string (usually url) as other column, then you can have short urls that basically redirect to a website/page with a long (tedious) url
if you want compression of strings in general, your string will most likely become less readable and even worse to type or even copy and paste (zip formats are probably the most common)
if you have strings that are limited already, for example numbers (which are limited to [0-9.,]) then you could compress the bytes those numbers represent into base64 and have a shorter string than the usual representation
those are your 3 options:
1 database
2 zip
3 limiting original character sets
(I probably forgot some other options, but iirc, these are the top 3)
short answer: dont
long answer: why do you need this? you can probably use a much better approach than reflection and bypasses
[Squirrel in Training] nah he wasn'T
[Squirrel in Training] Also pls repo link I wana add an auto-join functionality if i get around
09:47
[Captain Obvious] It would be ideal to listen to discord for commands too
If I summon Botler to js room...will the discord chat be relayed to js chat?
probably not
sending messages is done per channel on SO
the code would have to send multiple messages (looping over the connected channels)
considering it doesnt do so for sandbox, I doubt there is a loop
the other way around is more probable
relaying js chat to discord's C# room
because it is in the same events
however, again, considering it doesnt work like that for sandbox, I assume the code includes a filter for the chat room id
\[**[Squirrel in Training](https://discord.gg/PNMq3pBSUe)**] Yeah
And relay answers ^^
[Squirrel in Training] Killerino, there is a config which says "send this so.message to that discord.channel" and vica verca
 
2 hours later…
12:08
[Captain Obvious] The config has the java hookup but not js. Although it literally just needs a tweak in the json
[Captain Obvious] If you summon him to the room without having a relay hookup I actually don't know what'll happen. Maybe he'll crash, maybe he'll start shouting every time someone sends a message, I'm not sure
 
2 hours later…
14:27
@Feeds oh hell no
octopi do not have triangle-shaped heads
15:22
[Captain Obvious] Wait waht did feeds say
[Captain Obvious] Botler ignore him
some shit about an octopus and node,js
he said the fug word
 
2 hours later…
17:14
Hi Team,
anyone know how to implement pagination in dynamodb same as SQL/MYSQL ?
 
2 hours later…
19:41
posted on October 21, 2021 by Scott Hanselman

Great tweet from Oleg Kyrylchuk (follow him!) showing how cool Parallel.ForEachAsync is in .NET 6. It's new! Let's look at this clean bit of code in .NET 6 that calls the public GitHub API and retrieves n number of names and bios, given a list of GitHub users: using System.Net.Http.Headers; using System.Net.Http.Json; var userHandlers = new [] { "users/okyrylchuk", "users/shanselman",


« first day (4027 days earlier)      last day (1136 days later) »