Skip to content
Sign upLog in
Profile icon

realTronsi

Hacker
@realTronsi
I know things.
Repls
Community
realTronsi
realTronsi
published an Update
10 months ago
0
uws-connerr
uws-connerr
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? Thanks
realTronsi
realTronsi
published a Repl
1 year ago
15
Trax - Kajam
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?
realTronsi
realTronsi
10/26/21 Publish - minified HTML and CSS1 year ago
LenaAtReplit
LenaAtReplit
Where do I put the join code? 11 months ago
realTronsi
realTronsi
shared a Post
2 years ago
1
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
PlayneEngine
Bash
CursorsDev
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
DynamicSquid
DynamicSquid
Why would I know something? I do C++ not web2 years ago
xxpertHacker
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
realTronsi
realTronsi
shared a Post
2 years ago
1
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
realTronsi
realTronsi
shared a Post
2 years ago
1
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
sat response
HTML, CSS, JS
Coder100
Coder100
can i give you the function i use i didn't write it, but i use it.2 years ago
realTronsi
realTronsi
shared a Post
2 years ago
1
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
Royb2010
try this! https://replit.com/talk/learn/DDOS-Protection-and-Packet-Limiting-with-express-rate-limit/377521 year ago
realTronsi
realTronsi
shared a Post
2 years ago
3
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
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
realTronsi
@SixBeeps @Coder100 you guys make console stuff, perhaps you know something about this?2 years ago
realTronsi
realTronsi
shared a Post
2 years ago
1
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
shell
Bash
19wintersp
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
realTronsi
realTronsi
shared a Post
2 years ago
1
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
sifi
C
xxpertHacker
xxpertHacker
Why did you think line 50 was the problem?2 years ago
xxpertHacker
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
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
realTronsi
realTronsi
shared a Post
2 years ago
1
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
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
FlaminHotValdez
FlaminHotValdez
probs a bug2 years ago
badst
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
realTronsi
realTronsi
shared a Post
2 years ago
12
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
asiaurre04
asiaurre04
git remote rm origin worked for me6 months ago
CoolCoderSJ
CoolCoderSJ
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
Coder100
Imagine repl.it getting something correct first-deployment lmao report to bugs and for now just use git commands like ... idk2 years ago
realTronsi
realTronsi
shared a Post
2 years ago
1
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
programmeruser
programmeruser
image2 years ago
realTronsi
realTronsi
shared a Post
2 years ago
1
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
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
xxpertHacker
xxpertHacker
https://forum.nasm.us/index.php?topic=810.02 years ago
SixBeeps
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
realTronsi
realTronsi
shared a Post
2 years ago
2
UnhandledPromiseRejectionWarning: Error: Can only get response body on requests captured after headers received. This code does not run on repl as re
maxina
maxina
Can you specify which language this is?2 years ago
CSharpIsGud
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
xxpertHacker
Whoa, what a coincidence? I had this same problem earlier, came to post and found you already asked about it.2 years ago
realTronsi
realTronsi
shared a Post
2 years ago
1
@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
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
FlaminHotValdez
FlaminHotValdez
As far as I know, the only way is to manually do it with a loop.2 years ago
xxpertHacker
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
realTronsi
realTronsi
shared a Post
2 years ago
3
Who wants a free website? I can create a one page portfolio for anyone
lussed
lussed
can you help check the website game: basketball legends2 years ago
programmeruser
programmeruser
Just wondering, what does NHS stand for? (I'll send a request so you won't get suspended)2 years ago
realTronsi
realTronsi
shared a Post
2 years ago
2
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
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
realTronsi
realTronsi
shared a Post
2 years ago
7
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
[EXTRA] corona
Node.js
haha0201
haha0201
yo @realTronsi I think you're desynced2 years ago
realTronsi
realTronsi
@xxpertHacker hi nerd u interested in making a VM or smth? My collaborator is busy with coding competitions2 years ago
realTronsi
realTronsi
@MocaCDeveloper hi :(2 years ago
realTronsi
realTronsi
shared a Post
2 years ago
6
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
programmeruser
programmeruser
/,\[\>\]\$\|>+\]\$\|>>+\]\$\|\[>^>!^\+\>_>.2 years ago
AnthonyMouse
AnthonyMouse
I can test but I don’t know much of BrainF, as you know…2 years ago
Coder100
Coder100
BrainF-- lmaooo2 years ago
realTronsi
realTronsi
shared a Post
2 years ago
5
Open in fullscreen for best experience! I scraped this together in about 30 minutes, probably my biggest contribution to society. Make sure to make
Console GIF
Node.js
Terra361
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
TANMAYBAGADIA
TANMAYBAGADIA
wtf happened i saw a gif made of pixels Brilliant work!!!!2 years ago
DynamicSquid
DynamicSquid
wtf just happen2 years ago