I know things.
0
Websocket not Connecting
I'm unable to connect to my uWebsocket server. I'm not quite familiar with uws compatibility with replit api, but is a socket upgrade required?
Thanks0
1
0
15
Trax - KajamTrax - 2021 Kajam Entry
Open the game in a new tab for the best experience. All music and art is made by us! Thanks for playing our game!
~ Adi & Tronsi
Overview:
You and a friend team up to survive as long as possible in an action-packed arena by avoiding enemies. One player must be "huge" at all times, but you can transfer the size to the other player. Being huge makes you much slower and vulnerable, and transferring your size comes at the cost of permanently increasing the max size.
Use WASD or arrow keys to move
[Space] to transfer your size
Hold [Shift] to slow down by 50% for more control
There are multiple enemy types and stages, how far can you get?
138
8
15
1) I have a cameraZ variable as the scaling of the canvas:
ctx.translate(-cameraX + canvas.width / 2, -cameraY + canvas.height / 2);
ctx.scale(camera
Bash
CursorsDev @realTronsi assuming you havent posted in TCD, pls post there intead cuz frankly its easier to send a discord message than a replit comment
EDIT: i don't see any jittering, it may be a browser issue instead2 years ago
xxpertHacker Sorry, I put checking this out on my personal TODO list, but I put it near the bottom, lol.
I'll check this out in ~4 hours.2 years ago
I'm using a simple script to get the "real" mouse position on a canvas with a cameraX, cameraY, and cameraZ representing the scale/zoom. The mouse coo
I'm learning the Separated Axis Theorem for 2D collisions and response. I want to support collisions with concave polygons, so I'm triangulating polyg
HTML, CSS, JS
My website has been getting non-stop DDoSed for the past few days, so I've had to manually block some IPs. Unfortunately, blocked ip addresses are sti
Royb2010 try this! https://replit.com/talk/learn/DDOS-Protection-and-Packet-Limiting-with-express-rate-limit/377522 years ago
I'm grabbing the console dimensions using ioctl, but the dimensions are inconsistent with the actual size.
Executing the same code (as provided below
19wintersp As in, the output window in the Replit IDE is different to the result? That's expected, the IDE doesn't communicate the output window size back to the Docker container.2 years ago
realTronsi @SixBeeps @Coder100 you guys make console stuff, perhaps you know something about this?2 years ago
I would expect the makefile to execute when I call make in bash. The behavior of simply executing makefile by default simply makes no sense
Bash
19wintersp I think Replit just does that. If you make a blank Polygott repl, the default command is make. I think it just makes whenever there's a Makefile.2 years ago
On line 50 in server.c I have
fd_set readfds;
which is causing a segmentation fault. fd_set macro is imported from ``.
--
Makefile:11: recipe for
C
xxpertHacker I'm getting a realloc abortion, but I don't see it directly called anywhere... oh, nvm, line 35 server.c, realloc is failing.
You can't realloc a pointer that didn't even come from alloc!
And even then, you're not always able to realloc a pointer from alloc anyways!
(Also, doesn't realloc invalidate old pointers?)
Also, I told you that you were on your own, I can't help you out here.
Isn't server.clients garbage memory right now?2 years ago
programmeruser Well, running with GDB gives me this:
[WARNING] ~ SIFI: Master socket initalization failed
Program received signal SIGSEGV, Segmentation fault.
GIlibcrealloc (bytes=4, oldmem=0x3) at malloc.c:3165
3165 malloc.c: No such file or directory.
`2 years ago
Repl recently went through some updates, so I'm not sure if this is intended. If I'm inactive on a repl for more than about 10min, the "IDE is having
RYANTADIPARTHI that happens a lot for me. If i close my computer, it does it like that. That's a bug. One temporary way to fix it is to be on a different tab. That sometimes helps. it doesn't give the ide is having trouble message. But that's just a bug though.2 years ago
badst This happens to me as well. most likely a bug, it makes no sense to add an afk "kick" feature for a code editor.2 years ago
Is there any way to disconnect a git repo from a repl? Forking kept the repo connected, while downloading then importing as a zip removed folder struc
TheRealSnowSJ I have a similar issue, someone else connected a git repo to their repl, and when i forked it, it connected their git repo to my repl
> I guess as long as I dont commit anything I dont care though2 years ago
Coder100 Imagine repl.it getting something correct first-deployment lmao
report to bugs and for now just use git commands like ... idk2 years ago
I'm receiving missing separator error, it seems to me as if repl treats tabs as two spaces, which breaks Makefile. Any help?
CC = gcc
CFLAGS = -Wall
Is there anyways to write a cross compatible compiler? The compiler will ultimately compile down to assembly, but assembly obviously isn't cross platf
xxpertHacker I've heard of bytecode but I'm looking for some expert opinions.
Bytecode is for interpreters, lmao.
Python runs in a VM with a tracing JiT, and it uses bytecode.
JavaScript runs in a VM, and it uses bytecode.
Java runs in a VM, and it uses bytecode. (Java is JiT compiled, but transported as bytecode)
In contrast, a language like Rust uses binary. It is transported in text and compiled to hardware instructions using LLVM.2 years ago
SixBeeps Not an expert, just kinda know some things here and there.
Bytecode is certainly a popular option, and with good reason. All you need to do is create a VM that can take that bytecode and turn it into whatever instructions are compatible with the current architecture.
Of course, it'd be better to not have to create a runner for every architecture, but i don't think there's any other way to unify different instruction sets. Unless maybe you could limit the compiled stuff to instructions that do 2 years ago
UnhandledPromiseRejectionWarning: Error: Can only get response body on requests captured after headers received.
This code does not run on repl as re
CSharpIsGud From the error and a quick skim I assume its because you are trying to get the response body of a request that hasn't finished yet. Try waiting like a second or two before you run the rest of requestIntercepted and see if that changes anything2 years ago
xxpertHacker Whoa, what a coincidence? I had this same problem earlier, came to post and found you already asked about it.2 years ago
@MocaCDeveloper and I are creating a programming language in C and we are currently implementing string parsing where we extract things such as \n etc
xxpertHacker Seeing as this isn't answered yet, alternatively, instead of parsing character-by-character, that is, 1 at a time, you could parse multiple at once.
ex:
char const * const input = ...;
enum escape_character : unsigned short {
new_line = 28252 // '\n'
};
typedef escapecharacter const * const unescapedptr;
unescapedptr unescapedinput = (unescaped_ptr)input;
if ( *input == new_line ) {
printf("The first character is an a new-line escape sequence!");
} // a switch case might be better,2 years ago
xxpertHacker I'm literally lost as to what alternative you're even trying to think of.
Yes, you can.
Since I'm sure that C has a regular expression library somewhere, you don't have to do anything.2 years ago
Who wants a free website? I can create a one page portfolio for anyone
programmeruser Just wondering, what does NHS stand for? (I'll send a request so you won't get suspended)2 years ago
I was playing around with lists in C and I did a big poopoo
#include
int main(void)
{
int display25[3];
for(int a = 0; a < 25; a++){
for(in
Coder100 Why did you stop looping? Just like how you can't do:
char* str = "asdf";
str = "oops tupo";
because they are pointers. Fixed code is:
#include
int main(void)
{
int display25[3];
for(int a = 0; a < 25; a++){
for(int b = 0; b < 25; b++){
for(int c = 0; c < 3; c++){
displaya[c] = 0;
}
}
}
return 0;
}
smh
also choose a consistent style, either:
if ()
{
or:
if () {
but not both!2 years ago
Virus Demonstration
Now, more than ever, is the perfect time to demonstrate how a virus works...
How it Works
It uses two modules fs and glob. fs i
Node.js
realTronsi @xxpertHacker hi nerd
u interested in making a VM or smth? My collaborator is busy with coding competitions2 years ago
Any BrainF enthusiasts up for a challenge? I'm currently developing a superset of BrainF called BrainF- and I am in need of a few testers.
BrainF- is
Open in fullscreen for best experience!
I scraped this together in about 30 minutes, probably my biggest contribution to society.
Make sure to make
Node.js
Terra361 Man, that's awesome. People tend to underestimate the power of Javascript. I think this is a good example of what it can do. If you zoom out, those same pixels would be smaller, by the way.2 years ago