Anonymous

hacker
@xxpertHacker (944)
Learn to unlearn.
xxpertHacker
xxpertHacker
shared a Post
1 year ago
34
XHTML Introduction
Share
Thanks to @RayhanADev, @k9chelsea2, and @19wintersp for helping with the project. An introduction to XHTML I had joined Repl.it only slightly over a
XHTML Intro
HTML, CSS, JS
Read full post
Baconman321
Baconman321 The only problem I have with xhtml is that if I name something index.xhtml the Go server (or the web browser, whichever one does that kind of stuff) doesn't recognize it as the index file (which is sad since I actually like xhtml. I found out about it a bit before you went rambling on about how it is sooo good lol). And what about HTML5 handlebars and HTML5 twig and such (templating languages but still). Also, don't forget ASP.net!12 months ago
INCOGNITO001
INCOGNITO001 HEY!!! THIS IS A DISGRACE. HOW COULD FREAKING JS HTML OR UGH- CSS EVER, EVER, EVER "Look down upon" LANGUAGES LIKE C++ PYTHON OR EVEN- I KNOW THIS IS RIDICULOUS- C#???!?!?!?!?!?1/!?!?!!?!?!?!?!?!?!!?!?!?Also, I'm actually not mad but whatever UGH1 year ago
adsarebbbad
adsarebbbad doesn't work for me1 year ago
xxpertHacker
xxpertHacker
shared a Post
1 year ago
22
The Modern JavaScript Tutorial Series; Part 1
Tutorials
Author's note: This tutorial series should explain everything that I have learned in my time using JavaScript. I've known the language for less than
ES Tutorial
Bash
represa
represa Thank you so much for this tutorial! I was looking for a short and comprehensive tutorial and I found just the one. Looking forward to the part 3!1 year ago
RayhanADev
RayhanADev Developed in 1995, JavaScript, weakly and dynamically typed, multi-paradigm scripting language. I feel like that is an insult to JS but at the same time it’s not wrong xD. Great tutorial I loved (re)learning JS!1 year ago
xxpertHacker
xxpertHacker @EpicGamer007 @DynamicSquid There's literally no way that you two found this and finished reading this that fast.1 year ago
xxpertHacker
xxpertHacker
shared a Post
2 years ago
27
Using Memoization to Speed Up Code
Tutorials
What is memoization? Yeah, that's right, memo, not memor. I asked my self this when I first saw it. Simply put, memoization can be described as the c
MemoizedFibonacci
Node.js
AdarshKumar5
AdarshKumar5 Is dynamic programming and memoization the same?1 year ago
SpaceFire
SpaceFire Complaint: I requested the 69420th number of fibonacci yet here i am precicely 531 seconds later still waiting for my answer. i would like a full refund.2 years ago
AmazingMech2418
AmazingMech2418 Is this supposed to happen? image2 years ago
xxpertHacker
xxpertHacker
shared a Post
1 year ago
15
Browser Crasher
Share
About a month ago, I had opened Chromium bug reports explaining this, informing them that a single page can crash a whole browser, but they... seem to
wasm
HTML, CSS, JS
Hyderite
Hyderite i dont wanna run this since the pc im using rn is brand new6 months ago
programmeruser
programmeruser You don't need to exploit a bug, you can just fork bomb with web workers: while (true) { const worker = new Worker('script.js'); } It makes your RAM usage skyrocket to 97%. Demo: https://web-worker-fork-bomb.programmeruser.repl.co Also, there's a related bug report on Firefox's Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=537527.1 year ago
adsarebbbad
adsarebbbad virtual machine go brrr1 year ago
xxpertHacker
xxpertHacker
shared a Post
1 year ago
4
Team to develop a language learning web site
Ask
I'm thinking about creating one of those websites that you use to learn a coding (programming/scripting/markup) language, think FCC, KhanAcademy, Tuto
CodePoint
Bash
dakshg
dakshg @xxpertHacker hey if youre accepting new ppl, i can help. ik c++ pretty well and have read up on the cpp-httplib api.11 months ago
Kookiez
Kookiez @firefish, you might be interested in CodePoint. We want another fish person to work on the backend (which is a messy-ish combination of C++ and Rust, but it's supposed to be C++. Want to help? Also, CodePoint is a programming language learning site, theme is mountain (we'll tell you why if you join). We're using SCSS and XHTML on the frontend. Interested? (Or not)12 months ago
coderbot100
coderbot100 Make sure to learn HTML Make sure you actually know what HTML is! Please mark as correct answer!12 months ago
xxpertHacker
xxpertHacker
shared a Post
1 year ago
7
The Modern JavaScript Tutorial Series; Part 2
Tutorials
The Modern JavaScript Tutorial Part 2: Modularization and Modernization Part one is here. To the haters out there like @Coder100 who suggest bundle
ES Tutorial
Bash
Baconman321
Baconman321 You forgot to include that "import" won't work in a normal "text/javascript" script, it has to be a module (as well). As far as I know, anyways.12 months ago
Zavexeon
Zavexeon Idea, wrap the entire script in a closure so that the variables are isolated when using multiple scripts in HTML. (() => { // your script })() `12 months ago
EpicGamer007
EpicGamer007 do we need to make the file extension .mjs if we are using a module?12 months ago
xxpertHacker
xxpertHacker
shared a Post
1 year ago
3
Low-level programming; how to implement an allocator?
Ask
I am dealing with a system where a mix of GC, RC, and manual memory management is needed. The program has a static block of memory, precisely 65535 (
xxpertHacker
xxpertHacker @fuzzyastrocat 25 days later I cleared my schedule enough to get around to it... lmao. Turns out, what I said about: > The program has a static block of memory, precisely 65535 (0xffff) bytes. was wrong for two reasons: a) I was off by 1, it was 0x1000. lmao, off-by-one errors are the best b) I didn't understand the machine I was compiling to; each memory is isolated, so I can use multiple memories, I just need to dynamically link them. This means I could use the most naive solution possible:1 year ago
xxpertHacker
xxpertHacker @fuzzyastrocat I had gotten distracted with a bunch of other stuff, but I'm getting around to this soon. I realized that I need to make sure my data is aligned to 16 bytes, I belive I understand alignment already, yet I wouldn't want to blindly assume without the proper knowledge. Do you know anything about alignment that I might need to know? Would alignment have any effect here? (accessing misaligned data is slow, right?)1 year ago
xxpertHacker
xxpertHacker
shared a Post
2 years ago
12
microChat, derived from Vandeism14’s “tiny chat,” but ever smaller!
Share
Disclaimer: I am, in no way whatsoever assuming authorship of the original code by repl.it user “Vandeism14,” whose code can be found at https://repl.
microChat
Node.js
mat1
mat1 19 bytes, when do I receive my award? https://repl.it/@mat1/tinyerestchat require("tinychat")2 years ago
staticvoidliam7
staticvoidliam7 you can just spam the chat lol2 years ago
xxpertHacker
xxpertHacker
shared a Post
2 years ago
7
How Repl works (specifically HTML repls)
Ask
I'm pretty sure I'll need a Repl.it developer. Background If you make your own .replit file and configure it correctly, it will override the predefin
eankeen
eankeen we know that repl handles html repls differently not just from those facts, but because loading time on html repls is much faster and doesn't have that loading / progress bar. i don't know precisely the differences between html repls and non-html repls. you can find all repl types that are treated like non-html repls, or regular repls on their polygott repository. we know the environment of each repl of those different languages is the same. and by environment, i mean libraries (ex. libc), prog2 years ago
pyelias
pyelias .replit files control what command repl.it uses to run code in languages that are run server-side. HTML repls don't actually execute any code when they are run, so .replit files don't change anything. There are a few other languages that aren't run server-side (the new Basic, some esolangs, etc.), most of which don't have files at all (but if they did, .replit wouldn't work). It's hard to be sure, but I don't think the default run settings are determined with .replit files. In languages without2 years ago
HackermonDev
HackermonDev I am not a mod anymore but I can answer the question so I will. It does work on an HTML repl because repl.it runs an HTML repl on your computer instead of their computer and your computer doesn't know what .replit is so it doesn't work. And what do you mean by what is the predefined .replit file look like?2 years ago
xxpertHacker
xxpertHacker
shared a Post
1 year ago
2
Disconnecting pseudo-elements from their element? CSS expert help wanted!
Ask
I'm not asking how this can be done, since I know that it can be done. How can one disconnect a CSS pseudo-element from its actual element? By "disc
block pseudo-element disconnect fail
HTML, CSS, JS
fuzzyastrocat
fuzzyastrocat Are you looking for all: initial (which would set everything to their initial values) or all: unset (which would un-inherit all default-inherited CSS values)? So you would do section::before { all: initial; /* or unset, depending on what you want */ /* put the rest of your css here */ } `1 year ago
Coder100
Coder100 section::before:hover?1 year ago
realTronsi
realTronsi I guess pseudo elements behave kind of like a child, so I'm guessing the styling is also being applied on to it. I guess you could always just apply styling to the pseudo element yourself section::before { display: block; content: "This is a pseudo-element, which shouldn't be tied to the actual element."; color: black; background: white; } > I'm not asking how this can be done, since I know that it can be done. This is where you're confusing me, you say you know it is possible, so wha1 year ago
xxpertHacker
xxpertHacker
shared a Post
2 years ago
10
JavaScript Canvas Virus Animation
Share
Original source and author: https://codepen.io/curtlol/full/PpwNpR Presenting this (heavily modified) browser JavaScript animation: Virus Update Thi
VirusUpdate
HTML, CSS, JS
DREWNOLT
DREWNOLT cool! :D1 year ago
xxpertHacker
xxpertHacker
shared a Post
12 months ago
3
[Closed] Function prototype method to replace expression
Ask
I don't even know what to title this question tbh. I have a function: const passAll = func => { return function () { return func(this, ...argument
AmazingMech2418
AmazingMech2418 So, if I understand this correctly, you want to basically recreate JS's prototyping system? Why can't you use lambdas though? You could probably get rid of the this part by using a passTo function or something, where you pass the object you are using to the function, but this is pretty much a wrapper function that you need, which would need lambdas.12 months ago
programmeruser
programmeruser What? I'm really confused now.12 months ago
realTronsi
realTronsi what12 months ago
xxpertHacker
xxpertHacker
shared a Post
11 months ago
5
How often do you use vectorized operations?
Ask
Vectorized operations are operations that apply to vectors. Pseudo code: vector x = [ 1 2 3 4 5 ]; x = x + 3; x : [ 4 5 6 7 8 ] They're often used
programmeruser
programmeruser Not really, since I don't do a lot of graphics and math related code11 months ago
tussiez
tussiez Not really If I read the post correctly, yes A lot Not really Finally - I do an unhealthy amount of vector math in SortaCraft (voxel engine/data processing) Do not look at the code, thank you Also, here is the module I wrote to make this easier: Methods (ignore WASM)11 months ago
Coder100
Coder100 Well vectors are usually used for when you need to abstract well, a vector. Vectors are pertaining to 2D and 3D objects in themselves so this is in a way a really dumb question. Anyways maybe matrix addition?11 months ago
xxpertHacker
xxpertHacker
shared a Post
8 months ago
3
Vector splitting and reassigning causes seg fault when using 8-byte vectors
Ask
I add everything in an array of 256 bytes by adding the second half into the first half. The algorithm is the following pseudo-code: sum(u8 vector[25
vec sum
Bash
xxpertHacker
xxpertHacker @realTronsi Made sure not to use my brain, wanna check it out?8 months ago
xxpertHacker
xxpertHacker
shared a Post
1 year ago
3
[Solved] How to limit number of options shown from HTML <select> element?
Ask
This was an XY problem. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option I was looking for an HTML element that shows a list of valu
badst
badst Seems like you want the .size attribute. Here's a repl I created for reference: https://repl.it/@pepelaugh/ugh from mdn: If the control is presented as a scrolling list box (e.g. when multiple is specified), this attribute [size] represents the number of rows in the list that should be visible at one time. edit: lmao i didn't read the other comments. mb.1 year ago
Coder100
Coder100 https://officialstormytype.coder100.repl.co/ haha pog1 year ago
Coder100
Coder100 hack yourself one lol1 year ago
xxpertHacker
xxpertHacker
shared a Post
1 year ago
4
[Closed] Does anyone have suggestions to name my site?
Ask
I'm developing a language learning site with a team, but one of the most important parts of a site is its name but... we're stuck! I asked for anyone
Rendangbike
Rendangbike Proking??1 year ago
HappyLunchBox
HappyLunchBox Cenius, or Codigy?1 year ago
xxpertHacker
xxpertHacker
shared a Post
9 months ago
4
/bugs, /feedback, /language-requests removed?
Ask
It seems like all three of the mentioned URLs are no longer on Replit's navigation sidebar, and all 404 upon opening them. Has the change been mentio
RayhanADev
RayhanADev @xxpertHacker there are ✨ new features ✨ 1B90F327-455D-48CC-BFED-CEC7BCFE25099 months ago
RayhanADev
RayhanADev I noticed it around the same time as you on accident :/9 months ago
FlaminHotValdez
FlaminHotValdez 404ing for me too9 months ago
xxpertHacker
xxpertHacker
shared a Post
1 year ago
5
[Solved] Simple multiplication table code fails to run loop
Ask
Figured it out myself (If you don't want to or don't know how to help me, could you upvote this so that it gets seen by more people?) I was setting
multiplication Table Fail
HTML, CSS, JS
firefish
firefish My question is why do you use wasm1 year ago
xxpertHacker
xxpertHacker
shared a Post
11 months ago
2
[Solved] C++ What is the point of referencing object methods via class
Ask
One can call a method on an object, ex: "123"s.at(0), or reference the method from the class, ex: std::string::at. Yet, the latter always causes an e
Non-static methods
C++
xxpertHacker
xxpertHacker @Coder100 Omg, all I needed to do was put the & before it... &std::string::at; Actually no, wtf is that? Is there a name for this? I found this syntax from C++ stdlib proposals and stuff.10 months ago
Coder100
Coder100 I think the latter was actually meant for definition, like: ... std::string::at(...) { ... } ya know?11 months ago
xxpertHacker
xxpertHacker
shared a Post
2 years ago
4
Text Editor
Share
An extremely simple text editor that allows you to same your data by using Ctrl + S, can safely run on phones that have low processing power, and will
BasicTextEditor
HTML, CSS, JS
Codemonkey51
Codemonkey51 AWESOME!!!2 years ago